Hi all,
i'm writing device support for the MeCom protocol for a TEC driver from Meerstetter Engineering.
In order to parse the response correctly I need to calculate a checksum thats not included in the response. This is because the response includes the checksum of the command and not the response.
For example:
Command format:
# address sequence_number command CRC16 terminator
# 01 15AA ?IF 257D \r
Response is:
# address sequence_number CRC16 terminator
# 01 15AA 257D \r
So to parse the response I need to calculate a CRC that's not included in the response. For example:
OUT "#0115AA?IF%<xmodem>\r"
IN "#0115AA%<xmodem>\r" but the CRC is for the OUT not the IN.
Any ideas would be much appreciated.
Thanks,
David