LORD-MicroStrain / MSCL

MicroStrain Communication Library
https://www.microstrain.com/software/mscl
MIT License
76 stars 57 forks source link

Trouble by Parse the Logged Data from the SG-Link-200-OEM #360

Open 719283728 opened 12 months ago

719283728 commented 12 months ago

I am get to logged data from the SG-Link-200-OEM, and we have trouble for understanding the logged data-formate. Especially for the refresh header

uint8_t id = 0xBA; // refresh header id uint8_t sweepCount; // number of sweeps that follow the header

As what I got from the logged data of the Node, there're more 2 bit following the Sweep Count, below is The following is a small piece of data extracted from a package of the data that we got from the Logged data of the node, as an example.

BA 01 AF 92 7F 56 7B BA 01 88 9A 7F F1 5C BA 01 08 99 7F 6F DB BA 01 B2 98 7F 6B 84 BA 01 AE 90 7F 4F 78 BA 01 2F 92 7F D6 FB BA 01 04 92 7F 55 D0 BA 01 30 95 .........

I realy want to know what is those 2 bit data represent, and how to pares them. Could anyone help me for understanding what is it represented.