0
$\begingroup$

I am working on IMU data, this data was collected using wrist watch under the protocol BLE the reading are non-interpretable for me:

"data":"eyJBWCI6MC42OTksIkFZIjowLjY2NiwiQVoiOjAuMjIyLCJHWCI6MTYuMjk2LCJHWSI6OS44ODcsIkdaIjotMTMuODU1fQ==","from":{"Name":"wristband-d5","Protocol":"BLE"},"datetime":"2021-10-31T12:37:21.1352384-04:00","type":0

Thanks in Advance

$\endgroup$
3
  • 1
    $\begingroup$ It looks like it's a base64 format, to convert inherently binary data into something printable that'll pass through BLE without looking like control characters. You should start by looking to see if the structure of the binary record that's being passed is documented someplace; unless there's a known wristband format then there's a good chance that it's specific to your brand or even brand & model of watch. $\endgroup$
    – TimWescott
    Jun 13 at 4:35
  • 1
    $\begingroup$ convert from base64 to hexadecimal and then look at different measurements, see if you can spot patterns $\endgroup$
    – user253751
    Jun 13 at 10:14
  • $\begingroup$ The method that @user253751 gives is the way to go if you can't find data. Given how long that string is, there's more there than three accelerations and three rotations. $\endgroup$
    – TimWescott
    Jun 13 at 14:43

1 Answer 1

1
$\begingroup$

It's base64 encoded. The string

eyJBWCI6MC42OTksIkFZIjowLjY2NiwiQVoiOjAuMjIyLCJHWCI6MTYuMjk2LCJHWSI6OS44ODcsIkdaIjotMTMuODU1fQ==

decodes to

{"AX":0.699,"AY":0.666,"AZ":0.222,"GX":16.296,"GY":9.887,"GZ":-13.855}

You can try it online here.

$\endgroup$
1
  • $\begingroup$ OK. Why use base64, which is designed to make binary printable, and use it to encode something that's already printable, and human-readable to boot? $\endgroup$
    – TimWescott
    Jun 13 at 18:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.