Parse and read data frame in C?
- by user253656
I am writing a program that reads the data from the serial port on Linux.
The data are sent by another device with the following frame format:
|start | Command | Data | CRC | End |
|0x02 | 0x41 | (0-127 octets) | | 0x03|
----------------------------------------------------
The Data field contains 127 octets as shown…