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

Bonding with pc-ble-driver-py

Hello

System:

Windows 10

nRF Connect v2.6.0 and Bluetooth Low Energy v2.2.0

Python 2.7.13

After some research I didn't find any examples of bonding with pc-ble-driver-py so I decided to ask here.

When I'm trying to do bond using nRF Connect it always done succsessful, I just checking all checkboxes and type passcode after request.

But when I'm trying to do that with pc-ble-driver-py it won't work.

I'm using authenticate() method to do bonding:

res = self.adapter.authenticate(conn_handle, bond     = True,
                                             mitm     = True,
                                             oob      = True,
                                             lesc     = True,
                                             keypress = True)

But in some time after code executed it just will crash.

When I'm trying to pass more arguments to this method I will get the next message: No handlers could be found for logger "pc_ble_driver_py.ble_driver"

To be clear:

I'm trying to bond just after the device is connected(also tested with delay = 3s after connection, nothing changed)

Connection params are exactly the same as in heart_rate_collector.py

Firmware in the dongle: connectivity_1.2.3_usb_with_s132_3.1.hex

Is there a working examples of bonding with pc-ble-driver-py? It would be helpful in solving my problem.

Parents Reply Children
No Data
Related