increase and know the max data possible to send

Hello, i'm using the example ble app uart and I would like to know the maximum data that I cand send to my putty and my phone. Could I have to procedure? I would like to send a lot of data 

Thank you in advance

Parents
  • Hello Karl, i saw this document but i'm going to explain to you my goal : send unlimited data/informations (maybe 100k of data) how can i do this? because for now I have a limit of 244 bytes/data and it is not useful for me. Thank you in advance 

  • lm said:
    Okay, thank you for your fast reply.

    No problem at all, I am happy to help!

    lm said:
    I'm using the Ble app uart and I don't know about the kbps... 

    How much will you be needing to send?
    I recommend that you try to make an estimate, to see if it is feasible for BLE transfer.
    For example, if you intend on sampling the SAADC with 12 bit resolution every 1 ms you will need 2 kbps throughput.

    lm said:
    What I can see for now is that I can have 244 characters on my phone or putty and I would like to have a lot more.

    244 is the limit for a single packet. You can however send multiple notifications back to back, to transfer more data. If the connection interval is long enough to accommodate additional packets, and there are additional packets queued for sending, the SoftDevice will send them in the same connection event.
    What types of measurements / data will you be transferring?

    lm said:
    What I meant before was to send a ton of characters without any limitation because we have frames that are big.

    You can send bigger frames, but this will be fragmented by the SoftDevice and sent in multiple packets. How big is the frames you need to transfer?

    Best regards,
    Karl

  • Hello, How can i do that?

    "244 is the limit for a single packet. You can however send multiple notifications back to back, to transfer more data. If the connection interval is long enough to accommodate additional packets, and there are additional packets queued for sending, the SoftDevice will send them in the same connection event.
    What types of measurements / data will you be transferring? "

    My frames are 1000 long and some more

  • The send packets is not happening to me and I don't know why when I send  250 bytes it blocked and don't have nothing on the computer with putty and I have a gatt error 

  • Hello Karl,

    How much will you be needing to send?

    is I want to send 1000 data bytes what  data throughput do i need? Thank you :) 

    244 is the limit for a single packet. You can however send multiple notifications back to back, to transfer more data. If the connection interval is long enough to accommodate additional packets, and there are additional packets queued for sending, the SoftDevice will send them in the same connection event.
    What types of measurements/data will you be transferring? 

    i will transfer frames and commands of a product that will send me information. 

    You can send bigger frames, but this will be fragmented by the SoftDevice and sent in multiple packets. How big is the frames you need to transfer?

    I can say between 1000 and 10k of length. 

  • Hello,

    lm said:
    is I want to send 1000 data bytes what  data throughput do i need? Thank you :) 

    1000 bytes is an ok payload, but how fast do you need this transfer to happen?
    For example, does it need to happen within 5 seconds of its generation, or perhaps within 200 ms? This is how you determine your required throughput, since throughput takes into account both the data and transfer speed.

    lm said:
    I can say between 1000 and 10k of length. 

    If you mean that you will need to send 10 kB of data as a single frame then this data will need to be fragmented over multiple packets and connection events.

    lm said:
    The send packets is not happening to me and I don't know why when I send  250 bytes it blocked and don't have nothing on the computer with putty and I have a gatt error 

    Please elaborate on exactly what the error message says.
    What you do mean when you say that 'it blocked'?
    Does your application abruptly reset, for example?

    Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:

    This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.

    Best regards,
    Karl

Reply
  • Hello,

    lm said:
    is I want to send 1000 data bytes what  data throughput do i need? Thank you :) 

    1000 bytes is an ok payload, but how fast do you need this transfer to happen?
    For example, does it need to happen within 5 seconds of its generation, or perhaps within 200 ms? This is how you determine your required throughput, since throughput takes into account both the data and transfer speed.

    lm said:
    I can say between 1000 and 10k of length. 

    If you mean that you will need to send 10 kB of data as a single frame then this data will need to be fragmented over multiple packets and connection events.

    lm said:
    The send packets is not happening to me and I don't know why when I send  250 bytes it blocked and don't have nothing on the computer with putty and I have a gatt error 

    Please elaborate on exactly what the error message says.
    What you do mean when you say that 'it blocked'?
    Does your application abruptly reset, for example?

    Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:

    This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.

    Best regards,
    Karl

Children
No Data
Related