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.

Data feed question

Other Parts Discussed in Thread: CC2540

Hello.

I am trying to send a constant feed of accelerometer readings. The way I do this, is by parsing accel. data into a modified simpleGattprofile, and doing a Read Using Characteristic UUID, then getting as much data as I can fit into an ATT_ReadByTypeRsp data package.

However, this doesn't seem to be fast enough; is there a way to do this faster?

Is it possible to set up the CC2540 to send a constant stream of data at fixed intervals, and if so, how?

Also, I see a lot of mentions of the UART, but is that what I need to get a hold on?

Thanks in advance :)

  • Hi Jesper,

    Sending via GATT_Notification would be faster, as it is unidirectional whereas ReadReq and ReadRsp necessarily take two connection events.

    You can send up to 4 notifications containing 20 bytes each on every connection interval. You can then try to decrease the connection interval, but note that some time is needed for processing.

    Best regards,
    Aslak 

  • Thank you :) I used it earlier, but apparently at a place that was only called once, thus I never understood why it wasnt called more than once, but moving the call to the accelerometer processevent fixed it :)