In my test application i am trying to send floating point data read from a sensor to phone through one of the custom characteristic in battery profile ,
for sending data i am using ke_timer. When timer delay is 20 ms every thing works fine but when i reduce timer delay to 10 ms the data transmission happens for a while then stops
for sending data i am using following functions
attmdb_att_update_value
prf_server_send_event
I know we can use the DSPS profile directly for this but still i could not find what is causing data sending to stop ?
( also states of pins are exactly like when micro-controller is reseted , I am not using WatchDog)
Device:
你确定你不发送速度比ble link is capable of? If you do that, the internal memory will run out of space (filled up with enqueued packets) and the da14580 will reboot.
Consider waiting for the GATTC_CMP_EVT before you send the next packet. Then you will be sure you don't overfill the internal memory. You should also update the connection internal to a smaller one to be able to update the sensor value more often if you want that.