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 with error code 13

Hi all,

I wrote a small python script on top of the pc ble driver bindings and ran into a problem when deploying the script on a new pc:

c:\Python27\Scripts>python.exe btle_test.py -aC7EEEFA85254 -t NRF51
Serial port used: COM46
Traceback (most recent call last):
  File "btle_test.py", line 219, in <module>
    main(serial_port, args.address)
  File "btle_test.py", line 181, in main
    collector.open()
  File "btle_test.py", line 73, 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.__na
me__, err_code))
pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 13

It is running on a 64-bit windows 7 pc with a NRF51 dongle using v0.8.0 of the pc-ble-driver package. The dongle was working before on a similar setup. Already tried re-plugging a few times with no effect. Also running as administrator did not help.

Has anyone seen similar problems?

Parents
  • Hi Martijn,

    Which hex file did you use for the dongle ?

    I see the same error code if I use connectivity_1.0.1_1m_with_s130_2.0.1.hex.

    The ble_driver_py by default use 115kbps as the UART baudrate, you should flash it with connectivity_1.0.1_115k2_with_s130_2.0.1.hex or let the python code flash the board it self (erase the dongle, then run the heart_rate_collector.py for example).

Reply
  • Hi Martijn,

    Which hex file did you use for the dongle ?

    I see the same error code if I use connectivity_1.0.1_1m_with_s130_2.0.1.hex.

    The ble_driver_py by default use 115kbps as the UART baudrate, you should flash it with connectivity_1.0.1_115k2_with_s130_2.0.1.hex or let the python code flash the board it self (erase the dongle, then run the heart_rate_collector.py for example).

Children
Related