This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Error in executing Advertising example given in pc-ble-driver

Hello,

I'm working with nRF52840 dongle, i installed nRF Connect on ubunto 18.4 and i am using python3. After installling pc-ble-driver version 0.15.0 in python3 i tried to execute the example (Advertising)  given in pc-ble-driver i got this error.

Serial port used: /dev/ttyACM0
Traceback (most recent call last):
  File "./advertising.py", line 107, in <module>
    main(sys.argv[2])
  File "./advertising.py", line 65, in main
    driver.open()
  File "/home/wintual-pc/.local/lib/python3.6/site-packages/pc_ble_driver_py/ble_driver.py", line 107, in wrapper
    error_code=err_code,
pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NRF_ERROR_SD_RPC_H5_TRANSPORT_STATE

Has anyone else had an issue like this?

Parents
  • Hi,

    Did you program the connectivity firmware hex ?

    Try to program this hex file using the nRF Connect Programmer app.

    connectivity_4.1.4_usb_with_s132_5.1.0.hex

    alternatively this one, if the first one does not work,

    connectivity_4.1.4_usb_with_s132_3.1.0.hex

  • hello,

    Just for more explanation , i typed the command python3 ./advertising.py NRF52 /dev/ttyACM0
    and i got  this error :

    Serial port used: /dev/ttyACM0
    Traceback (most recent call last):
      File "./advertising.py", line 107, in <module>
        main(sys.argv[2])
      File "./advertising.py", line 65, in main
        driver.open()
      File "/home/my_pc/.local/lib/python3.6/site-packages/pc_ble_driver_py/ble_driver.py", line 107, in wrapper
        error_code=err_code,
    pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NRF_ERROR_TIMEOUT

    i have obtained the same error with sudo python3 ./advertising.py NRF52 /dev/ttyACM0

    Have you any idea, please ?

Reply
  • hello,

    Just for more explanation , i typed the command python3 ./advertising.py NRF52 /dev/ttyACM0
    and i got  this error :

    Serial port used: /dev/ttyACM0
    Traceback (most recent call last):
      File "./advertising.py", line 107, in <module>
        main(sys.argv[2])
      File "./advertising.py", line 65, in main
        driver.open()
      File "/home/my_pc/.local/lib/python3.6/site-packages/pc_ble_driver_py/ble_driver.py", line 107, in wrapper
        error_code=err_code,
    pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NRF_ERROR_TIMEOUT

    i have obtained the same error with sudo python3 ./advertising.py NRF52 /dev/ttyACM0

    Have you any idea, please ?

Children
Related