data transmission stopping after a while

2 posts / 0 new
Last post
mohit3112
Offline
Last seen:6 months 3 weeks ago
Expert
Joined:2014-08-04 13:45
data transmission stopping after a while

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:
Joacimwe
Offline
Last seen:1 year 3 months ago
Guru
Joined:2014-01-14 06:45
Are you sure you are not

你确定你不发送速度比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.