This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Data updating upto 241 bytes

Hello,

I have developed an application that transmits a string as a notification to the phone app whenever there is a corresponding command received from the phone app.

I actually want to send a string of size around 3KB. Now whenever I try to do that using a for loop to send chunks of 20 bytes of data at a time, the maximum number of bytes that I am able to see as notifications is 241 bytes. 

So how do I send the rest of data to the phone app?

Is this something to do with the connection interval?

If so how to solve this and send further data?

Any relevant links or details would be appreciated.

Thanks & Regards 

Sudeep R J

Parents
  • Hi Sudeep

    I recommend you divide your packets into 20-byte packets, as this is the most efficient way to transfer large amounts of data like this over BLE. Please take a look at this case, for some more pointers on the matter.

    Best regards,

    Simon

  • Hey Simonr,

    I clearly understood what Ole has written in case of Heart Rate Monitor and i tried the same thing but when i wrote a if condition to check for BLE_ERROR_NO_TX_BUFFERS i got an error saying this is undefined. I searched the entire project but BLE_ERROR_NO_TX_BUFFERS is nowhere to be found. should i manually add this event in the BLE_GATTS_EVT or in nus_evts ?

    I think with what Ole has described my program should work according to that. Kindly let me know how to solve this BLE_ERROR_NO_TX_BUFFERS issue.

    Thanks & Regards

    Sudeep R J

Reply
  • Hey Simonr,

    I clearly understood what Ole has written in case of Heart Rate Monitor and i tried the same thing but when i wrote a if condition to check for BLE_ERROR_NO_TX_BUFFERS i got an error saying this is undefined. I searched the entire project but BLE_ERROR_NO_TX_BUFFERS is nowhere to be found. should i manually add this event in the BLE_GATTS_EVT or in nus_evts ?

    I think with what Ole has described my program should work according to that. Kindly let me know how to solve this BLE_ERROR_NO_TX_BUFFERS issue.

    Thanks & Regards

    Sudeep R J

Children
No Data
Related