![]() I also have a matlab code which is able to read the packet, but I'm not able to understand what it does. I attached to this topic a table with all fields contained in a single packet. This isĮspecially critical when using the continuous data packet output mode. ![]() ![]() You must count the bytes received at your serial port and use theĬhecksum to ensure you are in sync with the data sent by the DMU. The header byte 0xFF will likely not be the only 0xFF byte in the data Sum all packet contents except header and checksum.ģ. The checksum is calculated in the following manner:ġ. In the sensor manual, packet format is explained in this way:Įach data packet begins with a header byte (255) and end with aĬhecksum. I think it would be better for me to use C/C++ under Ubuntu. I need to read data from an old sensor which use a serial port to send packets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |