Hi guys,
Does anyone can help on this,
I need to increment the Sequence Number of an ACK message to be sent back to the sender, it's an ACK message:
FF FE = ACK (2Bytes)
00 01 = Sequence Number (2Bytes)
8B B7 = CRC-16/Kermit (Complemented and reversed) (2 Bytes)
C0 = End-Char.
for example if there is an incoming message with sequence number 00 04, I have to send the same acknowledgment message that with same sequence number 00 04 Too, for example:
01 60 00 04 00 61 89 4B C0 ---------------->>
<<--------------- FF FE 00 04 26 E0 C0 >> ACK
The sequence number increments from 1 to 65535 and then wraps back to 1.
Thank you in advance.