Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]

Hello,

I am using the nordic nRF52840-DK and trying to connect to a nRF52840-Dongle and sending/receiving data to custom services and characteristics using pc_ble_driver_py. I modified the heart rate collector.

But the problem is that when I am connected to the Dongle the connection last 25 to 30 secondes and I receive a message : "Disconnected: 0 BLEHci.remote_user_terminated_connection" and the error message is : "line 477, in write_req attr_handle = self.db_conns[conn_handle].get_char_value_handle(uuid) KeyError: 0". However, when I use the nRF connect mobile/PC version I don't have this problem so I think it is a problem with my code. I check it out if there is some time out equal to like 25_30 secondes but I didn't find any solution.

Could someone help me please to find some solution.

Thanks in advance.

Cordially

Joe

Parents Reply
  • Hello,

    We are going to investigate in that again, but you think they might be some unhandled connection parameter update requests in your example code (from SDK ble_blinky_app )?
    And since it is working correctly with your nRF connect application, is there a specific reason we missed that makes you not suspect the python librairy pc-ble-driver-py?
    I will share a pcapng file using nrfconnect and I have the same info: "Connection Parameter Update Request" at line 8482.
    Thanks
Children
Related