Hi,
I'm using nrf52840 to connect a mobile device via BLE.
I've noticed that when a lot of messages are sent, a disconnection occurs with reason code of NRF_ERROR_RESOURCES.
Can you please help me?
Thanks!
Hi,
I'm using nrf52840 to connect a mobile device via BLE.
I've noticed that when a lot of messages are sent, a disconnection occurs with reason code of NRF_ERROR_RESOURCES.
Can you please help me?
Thanks!
Hi,
NRF_ERROR_RESOURCES is the disconnect reason code from p_ble_evt->evt.gap_evt.params.disconnected.reason, after I'm using nrf_strerror_get() to convert it to a string. Am I doing something wrong?
Thanks
You can't use nrf_strerror_get(), since it's not an error, it is a reason. I suspect that the value it is converting here is '19', this means BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION. So the peer is disconnecting the link, difficult to say why, I cannot see any reason it should depend on the messages sent.
Kenneth
That is correct - the value is 19. In addition - I can see the log "Generating ECC key pair" from function nrf_ble_lesc_keypair_generate, before disconnection. Do you think it may be related?
Thanks
I do not see any reason why that should trigger disconnect, but does the issue go away if you disable LESC support during bonding?
Kenneth
I don't think it's the trigger as well.
However - I've noticed something else - each time disconnection with value 19 occurs - my BLE mobile application disappears, maybe crushed. I think it may be related to overload of messages on the mobile. Does it make sense?