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 Reply Children
  • Hey Simonr,

    I have done that already.

    Now whatever 241 bytes i am able to receive as notifications are sent in 20 byte packets itself. I want to know how the next 241 bytes of data can be sent after sending this first 241bytes.

    whats happening is when I try to send a string of size say anythin more than 241 bytes, the first 241 bytes are sent successfully and that is notified on the nRF connect app. But the next bytes are not sent. That is the issue I am facing.

    Thank you

  • 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

Related