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

pc-ble-driver.py : NRF_ERROR_TIMEOUT in driver.open() for NRF_SD_BLE_API_VERSION=7

I tried running pc-ble-driver-py/advertising.py 

my command was " python3 advertising.py NRF52 /dev/ttymxc4" and then I got following error

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 "/usr/local/lib/python3.7/dist-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

my sd_ble_api_version is 7 and i don't see any library in pc-ble-driver for version 7.

Can anyone help me in solving this issue?

Parents
  • Hello,

    There could be many reasons for a COM port failing to open. Could you make sure that the port is not being used by any other application already, and that it is properly closed between your calls to open it?
    Could you also confirm whether the example ever has worked for you, or if you see this error when trying to launch the example for the first time?

    my sd_ble_api_version is 7 and i don't see any library in pc-ble-driver for version 7.

    The pc-ble-driver-py does not have support for API version 7 yet. Please make sure to flash your connectivity device with a SoftDevice compatible with the pc-ble-driver-py before use.

    Best regards,
    Karl

  • Hi, 

    Could you also confirm whether the example ever has worked for you, or if you see this error when trying to launch the example for the first time?

    Previously I was working on sdk16 and nrf_sd_ble_api_version 5.1 , for that everything was working fine. 

    Now I am working on sdk17 and nrf_sd_ble_version 7.2 , where I got stuck.

    The pc-ble-driver-py does not have support for API version 7 yet.

    Is there any way that can help me work with API version 7?

    Thanks,

    Vraj Joshi

  • Hello Vraj Joshi,

    Vraj Joshi said:

    Previously I was working on sdk16 and nrf_sd_ble_api_version 5.1 , for that everything was working fine. 

    Now I am working on sdk17 and nrf_sd_ble_version 7.2 , where I got stuck.

    Yes, this is as expected, since the pc-ble-driver does not support SoftDevice versions above 6 as of yet. May I ask why you need to update your pc-ble-driver-py SoftDevice version in the first place?
    You mention your SDK v17 - how does this relate to your usage of the pc-ble-driver-py? The pc-ble-driver-py can use an older SoftDevice version and still communicate just fine with a nRF SoC running a 7.2 version SoftDevice. I get the feeling that you might have gotten something here mixed up, since the pc-ble-driver-py is completely independent of the nRF5 SDK.

    Vraj Joshi said:
    Is there any way that can help me work with API version 7?

    No, unfortunately the latest SoftDevice compatible with the pc-ble-driver is v6 at this time.

    Best regards,
    Karl

Reply
  • Hello Vraj Joshi,

    Vraj Joshi said:

    Previously I was working on sdk16 and nrf_sd_ble_api_version 5.1 , for that everything was working fine. 

    Now I am working on sdk17 and nrf_sd_ble_version 7.2 , where I got stuck.

    Yes, this is as expected, since the pc-ble-driver does not support SoftDevice versions above 6 as of yet. May I ask why you need to update your pc-ble-driver-py SoftDevice version in the first place?
    You mention your SDK v17 - how does this relate to your usage of the pc-ble-driver-py? The pc-ble-driver-py can use an older SoftDevice version and still communicate just fine with a nRF SoC running a 7.2 version SoftDevice. I get the feeling that you might have gotten something here mixed up, since the pc-ble-driver-py is completely independent of the nRF5 SDK.

    Vraj Joshi said:
    Is there any way that can help me work with API version 7?

    No, unfortunately the latest SoftDevice compatible with the pc-ble-driver is v6 at this time.

    Best regards,
    Karl

Children
No Data
Related