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

Data Transfer between SoftDevice and Android too slow.

All,

We have an issue with the data transfer rate between a device that uses a nRF52480 (Rigado-340).

We are sending a number of data chunks, approximately 400, where each chunk is 32634 bytes long.

We call the SoftDevice and pass in a buffer containing the data.

The data is received by an android app.

The issue we have is there appears to be a delay between the 244 byte long packets. Below is an extract from a log running on he receive side.

The timestamp shows each 244 bytes takes approximately 28ms and 43ms before the next 244 bytes are received.

We need to cut this down to below. 2ms.

Any ideas where we are losing time? Or anyway we can narrow down to the problem area?

{"ItemID":"ebf7770f-9206-451e-af4c-35795e665c11","Date":"2019-02-25T15:17:09.388261+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 485; Expected Length=32634"}

{"ItemID":"92b3edf9-6447-47bf-9059-6593f9feaf56","Date":"2019-02-25T15:17:09.432112+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 729; Expected Length=32634"}

{"ItemID":"53cd76d1-7664-4a09-81a0-80c3d7d656cb","Date":"2019-02-25T15:17:09.462934+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 973; Expected Length=32634"}

{"ItemID":"fd21e1ab-23a8-4b52-af57-8318793d457a","Date":"2019-02-25T15:17:09.493724+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 1217; Expected Length=32634"}

{"ItemID":"14569d02-5a7b-47f0-87ab-6070ef698b7c","Date":"2019-02-25T15:17:09.522119+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 1461; Expected Length=32634"}

{"ItemID":"8b020188-c1e5-4cbf-927d-097f33b2e52f","Date":"2019-02-25T15:17:09.553428+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 1705; Expected Length=32634"}

{"ItemID":"3a6a0a24-965e-4004-bd2c-0e64f758c1a8","Date":"2019-02-25T15:17:09.597234+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 1949; Expected Length=32634"}

{"ItemID":"0825cbf4-5010-43a1-85aa-65ee529e534d","Date":"2019-02-25T15:17:09.640867+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 2193; Expected Length=32634"}

{"ItemID":"cf401e92-331f-4bfd-af54-10184b3a3ade","Date":"2019-02-25T15:17:09.673169+00:00","Action":"PayloadChunk","Data":"Chunk length = 244; Current Length = 2437; Expected Length=32634"}

Parents
  • Hi,

    What SDK version are you using ?

    What is the connection interval?

    What phone are you using ?

    What is the value of NRF_SDH_BLE_GAP_DATA_LENGTHNRF_SDH_BLE_GAP_EVENT_LENGTH and NRF_SDH_BLE_GATT_MAX_MTU_SIZE in sdk_config.h ?

  • Hello,

    Please see the answers below

    What SDK version are you using ?                

    15.0.0

    What is the connection interval?                    

    Settings in the FW (Peripheral):                    

    MIN_CONN_INTERVAL: MSEC_TO_UNITS(7.5, UNIT_1_25_MS)

    MAX_CONN_INTERVAL: MSEC_TO_UNITS(400, UNIT_1_25_MS)

    What phone are you using ?

    Samsung J3 and Nokia 7.1. Both have the same issues. ie Bluetooth 4.2 and Bluetooh 5

    What is the value of NRF_SDH_BLE_GAP_DATA_LENGTHNRF_SDH_BLE_GAP_EVENT_LENGTH and NRF_SDH_BLE_GATT_MAX_MTU_SIZE in sdk_config.h ?

    NRF_SDH_BLE_GAP_DATA_LENGTH = 251

    NRF_SDH_BLE_GAP_EVENT_LENGTH = 6

    NRF_SDH_BLE_GATT_MAX_MTU_SIZE = 247 

Reply
  • Hello,

    Please see the answers below

    What SDK version are you using ?                

    15.0.0

    What is the connection interval?                    

    Settings in the FW (Peripheral):                    

    MIN_CONN_INTERVAL: MSEC_TO_UNITS(7.5, UNIT_1_25_MS)

    MAX_CONN_INTERVAL: MSEC_TO_UNITS(400, UNIT_1_25_MS)

    What phone are you using ?

    Samsung J3 and Nokia 7.1. Both have the same issues. ie Bluetooth 4.2 and Bluetooh 5

    What is the value of NRF_SDH_BLE_GAP_DATA_LENGTHNRF_SDH_BLE_GAP_EVENT_LENGTH and NRF_SDH_BLE_GATT_MAX_MTU_SIZE in sdk_config.h ?

    NRF_SDH_BLE_GAP_DATA_LENGTH = 251

    NRF_SDH_BLE_GAP_EVENT_LENGTH = 6

    NRF_SDH_BLE_GATT_MAX_MTU_SIZE = 247 

Children
Related