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
  • How do you know that you are sending 150 bytes and only receiving 17 of them?
    Could you show me the logs from nRF Connect and the peripheral itself, when this happens?

    I receive all 150 in nrf toolbox app but not on nrf connect .

    When i try to see data while using both nrf connect and nrf toolbox then it shows me whole data but when i use alone nrf connect then this issue occurs . 

    I notice that you are also calling ble_nus_data_send in your UART handler. Are you sending data to the UART at the same time as you are trying to transfer your sensor data?

    No i am not sending any data to UART , Its not using uart handler . 

    Btw that's less important . Important is throughput which is very low for my application . 

    Best regards ,

    Mohsin khan

  • Mohsin khan said:
    When i try to see data while using both nrf connect and nrf toolbox then it shows me whole data but when i use alone nrf connect then this issue occurs . 

    Please provide the logs for all these instances so I may take a look.
    Please also include the peripheral's logs for these instances.

    Could you detail exactly how you are calculating your achieved throughput, by the way?

    Mohsin khan said:

    No i am not sending any data to UART , Its not using uart handler . 

    Btw that's less important . Important is throughput which is very low for my application . 

    It could directly influence your throughput if you are only measuring the throughput of your main context, while in reality a lot of the throughput is lost to the UART handler. This is why I mention it. You should make sure that the UART is not receiving any data which it then queues for sending.

    Best regards,
    Karl

Reply
  • Mohsin khan said:
    When i try to see data while using both nrf connect and nrf toolbox then it shows me whole data but when i use alone nrf connect then this issue occurs . 

    Please provide the logs for all these instances so I may take a look.
    Please also include the peripheral's logs for these instances.

    Could you detail exactly how you are calculating your achieved throughput, by the way?

    Mohsin khan said:

    No i am not sending any data to UART , Its not using uart handler . 

    Btw that's less important . Important is throughput which is very low for my application . 

    It could directly influence your throughput if you are only measuring the throughput of your main context, while in reality a lot of the throughput is lost to the UART handler. This is why I mention it. You should make sure that the UART is not receiving any data which it then queues for sending.

    Best regards,
    Karl

Children
No Data
Related