Metatracker Accelerometer Gatt Range

Using the Metatracker Accelerometer (BMI160), I am receiving default accelerometer gatt data, and have converted it to an 16-bit integer (unsigned), with these values from position 2 forward representing XX, YY, ZZ.

ex:
gatttool -i hci1 -b XX:XX:XX:XX:XX:XX -t random --char-read -a 0x001f
03 04 ef cc df 16 79 ce
x=0xccef=52463
y=0x16df=5855
z=0xce79=52857

I may be way off base here, but in trying to interpret this, the 16 bit integer range of 0 to 65535, by default, appears to represent a range of -/+ 1G (based on observing gravity alone). Where and how would I write to change this range using gatttool char-write-req? I would optimally like it to be -/+ 8Gs.

Thanks!

Comments

  • We do not support direct manipulation of the byte commands / responses. Use either the Python, JavaScript, or C# library to interact with the board on desktop Linux.

  • edited December 2018

    Is there any way to set these permanently so you don't have to go through the API every time?

  • use the macro functions

This discussion has been closed.