Not truely a tcp/ip question so apologies.
Have a serial connection that is sending data as follows:
'A packet header byte is sent followed by data pertaining to that packet followed by a 16 bit CRC.'
Now the problem is, I cant seem to reproduce the same CRC.
An example of packet sent (hex):
AA 0C 16 10 03 93 4D AA
Now from what I can work out, the 0C 16 10 03 is the data, the 93 4D is the CRC. Is this right? Having said that, the '0C' may not be used to work out the CRC as that never (as of yet) seems to change.
Thing is, I can't seem to recreate this CRC.
Am I totally wrong in this? Wouldn't suprise me.
Have a serial connection that is sending data as follows:
'A packet header byte is sent followed by data pertaining to that packet followed by a 16 bit CRC.'
Now the problem is, I cant seem to reproduce the same CRC.
An example of packet sent (hex):
AA 0C 16 10 03 93 4D AA
Now from what I can work out, the 0C 16 10 03 is the data, the 93 4D is the CRC. Is this right? Having said that, the '0C' may not be used to work out the CRC as that never (as of yet) seems to change.
Thing is, I can't seem to recreate this CRC.
Am I totally wrong in this? Wouldn't suprise me.