This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to read accelerometer data onto PC

Other Parts Discussed in Thread: CC2540

Hi all,

I am new to this Bluetooth development and I purchased CC2540 Mini Development board and installed IAR workbench and Btool too. Now, I made use of the KeyFobDemo project and made few changes to read accelerometer data.

My question is how to see the changes in accelerometer positions on PC when keyfob position is changed and do I need to install any other tool to sense these changes. Please explain me the procedure if any.

Other question is can we insert other sensors to this CC2450 Mini DK?

Thanks in advance..!!!

  • Hello,

    With Btool, you will want to connect and then enable accelerator and then specific axis reports. These are enabled by writing to client characteristic configuration. I'm not sure of handles, but in Btool you can click on connection (upper left ) and do a service discovery. Check out simpleBlePeripheral for example of how CCC is enabled by writing "01 00" to it. 

    BR,

    -Greg

  • Thank you so much Greg..!!

    Greg, I am able to do the above and I am reading serial data too but my doubt is what are the data values I am reading from the serial port, lets say if I read 8 bytes of data serially, what does the first data value signifies, like wise I need to know for all the data values and currently I read 12 bytes of data serially and out of that only two bytes i.e., 10th and 12th bytes of data are being are varied when I am varying my accelerometer. Also, Greg is there any way that the notifications from accelerometer are automatically enabled.

    Please do clarify me...

    Thanks in advance..!!