How to use NRF52 dongle to connect to a device in Python?

I have an NRF52840 dongle programmed with the connectivity firmware and I want to use it as a central device to connect to a peripheral, and I want to set this up in Python.  

I have successfully used the Blatann python library to connect to my device and read/write to certain characteristics, but when pairing, it does not seem to save the bonding credentials correctly and I have to force-repair every time I want to pair. I have not be able to resolve this issue and I cannot find any documentation to guide me on this, or other issues related to Blatann.

I have thus been looking for alternative solutions: using the pc-ble-driver-py library seems to be outdated? And just directly communicating to the dongle using pyserial seems complicated and I cannot find documentation on this either?

So I would like to know what you would suggest for this issue please, how to command my dongle in a Python script - please let me know if there are alternative options or some documentation that I have missed.

Parents
  • Hi,

    using the pc-ble-driver-py library seems to be outdated?

    Since pc-ble-driver-py is serialization of the old SoftDevice from nRF5 SDK, it is still at the feature set which it had back when nRF5 SDK was put in maintenance mode a few years back, ref. nRF Connect SDK and nRF5 SDK statement.

    just directly communicating to the dongle using pyserial seems complicated and I cannot find documentation on this either?

    I suggest having a look at Bluetooth HCI: You can run the HCI USB sample from nRF Connect SDK on the dongle, then find a suitable BLE Host for the PC.

    Regards,
    Terje

Reply
  • Hi,

    using the pc-ble-driver-py library seems to be outdated?

    Since pc-ble-driver-py is serialization of the old SoftDevice from nRF5 SDK, it is still at the feature set which it had back when nRF5 SDK was put in maintenance mode a few years back, ref. nRF Connect SDK and nRF5 SDK statement.

    just directly communicating to the dongle using pyserial seems complicated and I cannot find documentation on this either?

    I suggest having a look at Bluetooth HCI: You can run the HCI USB sample from nRF Connect SDK on the dongle, then find a suitable BLE Host for the PC.

    Regards,
    Terje

Children
No Data
Related