Web Bluetooth on MetaMotionR
I'm trying to create a web app using the web bluetooth framework to connect to the device and visualise gyroscope and accelerator data to the browser in real time.. afterwards i want to send the captured data to a database of some sort. I realise that the device uses a custom protocol, not standard services and characteristics and there is no documentation about the GATT or anything related to the matter. So i'm trying to reverse engineer ,using wireshark and a ble-sniffer the connection, between the metabase app and the device. I got how to turn on the sensors and start them sending me notifications. The values that i get from the notification from only accelerator turned on are something like:
I don't have a clue on how to decode these values into actual accelerator values. Tried to split the value by 2,4,8 bytes and try to get the float32 of them but nothing seems to make sense..the only thing i know is that the accelerator sends a 16bit value.. Anyone who has an idea how to decode this or how even the device encodes this and by what criteria would be savior of mine.. Thanks everyone in advance who may take look into this !