want to achieve 1-2 Mbps through BLE.

I am working on project in which i want to read data from sd card and send it to mobile through BLE , I am using ble_nus_send to send data but when i decrease the delay then its giving me error 19 and when i increase delay then it is running smoothly .

Can i achieve something between 1-2 Mbps through ble_nus_Send or have to do with some other approach . 

Parents
  • Hello,

    ble_nus_send to send data but when i decrease the delay then its giving me error 19 and when i increase delay then it is running smoothly .

    Exactly which function is returning error 19?

    Can i achieve something between 1-2 Mbps through ble_nus_Send or have to do with some other approach . 

    Please see the SoftDevice throughput documentation for what parameters to use to achieve the highest throughputs.

    Best regards,
    Karl

  • Hello, 

    I have seen throughput documentation please tell me how to achieve highest rate and which example can i use to achieve highest rate . 

  • Mohsin khan said:
    Please have a look at my code

    Please check your formatting before posting. The code you have posted is absolutely unreadable.
    Please make sure to use the Insert -> Code option when sharing code here on DevZone.

    Mohsin khan said:
    I am using ble_hrs_c code

    Mohsin khan said:
    ble_nus_data_send giving me error 19 . 

    Have you successfully merged the NUS service into the ble_hrs_c 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.
    Please do this, and let me know what this error message reads.

    Mohsin khan said:
    I have seen throughput documentation please tell me how to achieve highest rate and which example can i use to achieve highest rate . 

    For a minimal throughput demonstration I would recommend that you begin with the BLE UART examples directly, and modify them to use the connection parameters detailed in the throughput documentation. The important part here is that you configure both sides of the link to accept these parameters as detailed in the documentation - including PHY, connection event length, connection interval and data length extension.

    Best regards,
    Karl

Reply
  • Mohsin khan said:
    Please have a look at my code

    Please check your formatting before posting. The code you have posted is absolutely unreadable.
    Please make sure to use the Insert -> Code option when sharing code here on DevZone.

    Mohsin khan said:
    I am using ble_hrs_c code

    Mohsin khan said:
    ble_nus_data_send giving me error 19 . 

    Have you successfully merged the NUS service into the ble_hrs_c 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.
    Please do this, and let me know what this error message reads.

    Mohsin khan said:
    I have seen throughput documentation please tell me how to achieve highest rate and which example can i use to achieve highest rate . 

    For a minimal throughput demonstration I would recommend that you begin with the BLE UART examples directly, and modify them to use the connection parameters detailed in the throughput documentation. The important part here is that you configure both sides of the link to accept these parameters as detailed in the documentation - including PHY, connection event length, connection interval and data length extension.

    Best regards,
    Karl

Children
No Data
Related