Hello,
I have been running simpleBLEPeripheral project on CC2650, and communicate with my CC2540 USB dongle in BLE device monitor (version 2.1.2)
I added ADC service into the project (ported Sensor Controller Studio codes into Code Composer Studio). Once every 10 ADC samples are collected, an interrupt will trigger (fwGenQuickAlertInterrupt()) ADC task to send these 10 samples out to USB dongle, though GATT notification. Then the USB dongle should display all received data in BLE device monitor event log.
It seems the maximum GATT characteristic attribute update rate in BLE device monitor is 10Hz, which is equivalent to 100Hz sampling rate in CC2650 ADC.
I am not quite sure if this is limited by
1) RTOS time conflict between ADC task and BLE stack task?
I followed this post (e2e.ti.com/.../1720852, and tried commenting out power saving options in main.c:
Power_setConstraint(Power_SB_DISALLOW);
//Power_setConstraint(Power_IDLE_PD_DISALLOW);
But it doesn't work for me.
On the other hand, unfortunately the debug mode in my CCS6.1 is not working properly, especially ROV. (Here is the link to the question I posted in CCS forum regarding non-functional ROV: e2e.ti.com/.../1852378
At this moment, I am not really able to debug and tell if this is a RTOS task conflict problem.
2) BLE device monitor itself, probably there is some inherent update rate limit? For example, there is no way that GATT characteristic attribute in BLE device monitor is able to update as fast as 100Hz, or even 1kHz.
Your inputs will be greatly appreciated! Thanks!
Best,
Xiaoxiao