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

pc-ble-driver-py failed to open

Hello,

I am trying to use PCA10000 dongle with the pb-ble-driver-py libraries with absolutely no success, as I get a "Failed to open. Error code: 13" error.

I am running Windows 10. I installed the library using pip.

  • I installed the latest JLink software package (V614a) just to be sure.
  • I tried having the library flash the dongle (that part worked) with no success, even after unplugging and replugging the dongle
  • I tried flashing the connectivity_1.0.1_115k2_with_s130_2.0.1 firmware manually with nrfConnect, still a big nope.

Here is one of the test commands I tried and the resulting output:

C:\Python27\Lib\site-packages\pc_ble_driver_py\examples>py -2 heart_rate_collector.py NRF51 COM3
Serial port used: COM3
Traceback (most recent call last):
  File "heart_rate_collector.py", line 187, in <module>
    main(serial_port)
  File "heart_rate_collector.py", line 149, in main
    collector.open()
  File "heart_rate_collector.py", line 67, in open
    self.adapter.driver.open()
  File "C:\Python27\lib\site-packages\wrapt\wrappers.py", line 561, in __call__
    args, kwargs)
  File "C:\Python27\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 126, in wrapper
    raise NordicSemiException('Failed to {}. Error code: {}'.format(wrapped.__name__, err_code))
pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 13

Note: my dongle is working fine with Master Control Panel 3.10.0.14, although I need to unplug-replug the dongle after flashing for it to respond.

Am I doing something wrong? Is anyone else encountering this issue?

Related