This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Extracting Int values from Ascii strings received for motion data[rawdata][RPi][Python3]

I am able to receive motion data [rawdata] from thingy52 on my RPi 4 using bluepy library in Python3.

I want to extract the raw values of Gyro/Accl/Mag from sensor.

The data is received as byte-strings:

Notification: Rotation matrix: b'\xb4\xd9\xe8+}\x1a\xcf.n+\xae\xfb\x0f\xeb\xca\x10\xe6\xc5'

Based on the documentation, the length of byte-string matches the data size(18 bytes), but where can I find the representation of this data?

How can I recover values in a format suitable for plotting?

Thanks

Related