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

NRF_ERROR_RESOURCES occurred when the connection is disconnected

Dear

First of all, I am so sorry because of my english skill.

I got NRF_ERROR_RESOURCES when the connection between NRF Module and mobile device is disconnected  due to the reduced signal strength because of long distance.

However, if I disconnect the connection by sending the disconnection command from mobile device, it works well without any errors.

I used app_timer_start api to send data for notification every 1s as following,

err_code = app_timer_start(m_bms_measurement1_timer_id, BMS_MEASUREMENT1_TIMER_INTERVAL, NULL);
APP_ERROR_CHECK(err_code);

I already set NRF_SDH_BLE_GAP_EVENT_LENGTH as 100 and used BLE_GATTS_EVT_HVN_TX_COMPLETE.

But I had same result as before.

Thanks in advance.

Parents Reply Children
  • That sounds strange - this should mean that there would be no resource issues at all, since the connection events happens way more often than the queueing of new notifications.

    What is the value of the HVN_COMPLETE event's count when you receive it?

    Are you familiar with the nRF Sniffer tool? It is a powerful tool to wield when developing BLE applications as it lets you see all the on-air traffic. It would be very helpful if you could capture a sniffer trace of your communication with the device, so we may see what is actually being transmitted, and how often it is transmitted.

    EarlBread said:
    ble_cus_bms_measurement2_update

    Could you show me the contents of this function as well?

    Best regards,
    Karl

Related