This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PC-BLE-DRIVER-PY with NRF52840 Dongle

Hello All,

I've had some success now connecting my 52840 Dev Kit with the NRF52840 Dongle and would now like to use the dongle as a receiver with the PC-BLE-DRIVER-PY library.

Unfortunately, while the 52840 dev kit appears in the heart_rate_collector.py as COM0, I haven't been able to locate NRF52840 Dongle at all. I've even tried running the serial_port_enum.py and nothing appears.

I have followed the advice of other forum posts suggesting the use of the sd_api_v5 with no luck. I have also used the nrfutil tool with the connectivity dfu pkg and still it refuses to appear.

Are there any further steps required? Can anyone provide perhaps a reference I may have overlooked?

Regards,

DM

  • Unlike DKs with the Segger Jlink interface, the nRF52840 Dongle's COM port will not be discovered automatically by driver.  This means you have to specify the port number when invoking the script.

    Does the script work if you include the com port number as an argument like this:

    > python heart_rate_collector.py NRF52 COMx

    ?

    DougMortime said:
    However, I can't seem to get the "nRF Connect USB CDC ACM" to show up.

    I'm not sure why the naming is different, but I don't think it should be a problem either. The main thing is that it shows up as a serial port. 

    Regards,

    Vidar

  • Hello Vidar,

    Thanks so much, it finally works, even on the desktop now. Obviously I'll need to set up Nordic_HRM for it to actually connect but the script runs fine, it even listed the TV nearby.

    To summarize for anyone who wants a stepped approach:

    1. Put the nRF52840 in your usb port and press the side button, its a small button above the push down button. Dongle will blink red light.

    2. Open nRF Connect for Desktop

    3. Open Bluetooth Low Energy

    4. Select the Dongle and press Yes to programming alert.

    5. Make sure you've installed PC-BLE-DRIVER-PY before you run the script (pip install pc-ble-driver-py)

    6. Go to the directory of the examples and then if using the Dongle SPECIFY COMx (e.g COM Port 5 = COM5)

    7. Enjoy thanks to Vidar and the nRF team!

    Regards,

    DM

Related