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

bt_nus_shell error

Hello 

I am using Linux PC

nrf52832

chmod 777 to the nordic serial port

using the bt_nus_shell script : 

sudo python bt_nus_shell.py --name BT_NUS_shell --com /dev/ttyUSB00 --family NRF52 --snr 683829089
Board already flashed with connectivity firmware.
Socket created
Socket bind complete
Socket now listening

up to this point all is as expected, but when I try to connect via putty, raw, 127.0.0.1:8889 I get the following error:

Connected with 127.0.0.1:46315
Traceback (most recent call last):
File "bt_nus_shell.py", line 207, in <module>
b = BLE_Serial(comport, args.name, conn)
File "bt_nus_shell.py", line 64, in __init__
self.adapter.driver.open()
File "/home/ilan/.local/lib/python2.7/site-packages/pc_ble_driver_py/ble_driver.py", line 127, in wrapper
raise NordicSemiException('Failed to {}. Error code: {}'.format(wrapped.__name__, err_code))
pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 3

please advice 

  • Hello,

    self.adapter.driver.open()
    File "/home/ilan/.local/lib/python2.7/site-packages/pc_ble_driver_py/ble_driver.py", line 127, in wrapper
    raise NordicSemiException('Failed to {}. Error code: {}'.format(wrapped.__name__, err_code))
    pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 3

    It seems that the issue here is with opening the COM port.

    sudo python bt_nus_shell.py --name BT_NUS_shell --com /dev/ttyUSB00 --family NRF52 --snr 683829089

    Could you verify for me that ttyUSB00 is in fact the intended port, or could it be that you meant the default ttyUSB0 port?
    Could you show me a list of the available COM ports on your machine?

    Best regards,
    Karl

Related