This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

It will post NRF_ERROR_RESOURCES if I send 20 bytes to pperpherial device per 30ms in BLE_GAP_PHY_1MBPS

These are Central device 52840 settings:

These are peripheral device 52810 settings:

I use official sdk16.0. Central Project is ble_app_multilink_central.Peripheral project is ble_app_blinky.Central device is 52840, peripheral device is 52810,

I change the ble service data len from 1bytes to 20 bytes.

I create a app-timer to send data to peripheral device if there is a link that has post BLE_LBS_C_EVT_DISCOVERY_COMPLETE. If 52840 send data per 30ms, 52840 will print NRF_ERROR_RESOURCES log as shown in the figure above. 

52840 send 20bytes to 52810 per 30ms, I don't think it exceeded the speed limit.

attempt:

1、52840 send data per 50ms, there is no exception.But its transmission speed doesn't near maximum;

Parents
  • I change my code.52840 will send 20bytes when BLE_LBS_C_EVT_DISCOVERY_COMPLETE is posted and I will send data in  BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE handler,It will still post <error> nrf_ble_gq: SD GATT procedure (1) failed on connection handle 0 with error: 0x00000013.

    So should i do?

Reply
  • I change my code.52840 will send 20bytes when BLE_LBS_C_EVT_DISCOVERY_COMPLETE is posted and I will send data in  BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE handler,It will still post <error> nrf_ble_gq: SD GATT procedure (1) failed on connection handle 0 with error: 0x00000013.

    So should i do?

Children
No Data
Related