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

Unable to understand error returned by scan_start()

I am trying to port pc-ble-driver-py to soft device version 6.1. I have made changes to python code to take care of changed API signatures, new constants etc.

When testing it, adapter open, enable BLE succeeds. But when starting scan, I am getting following error
 self.adapter.driver.ble_gap_scan_start()
  File "c:\sources\nordic\pc-ble-driver-py\pc_ble_driver_py\ble_driver.py", line 105, in wrapper
    error_code=err_code,
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_gap_scan_start. Error code: 32771
I have 52840 dongle on Windows 10 with soft device 6.1 and corresponding connectivity firmware. I am not able to understand error  32771. It doesn't seem to be from NRF error code. 
Can someone please help me understand what does this error code mean?
regards,
-Prashant.
Parents
  • Hi,

    What version of pc-ble-driver-py do you base your port on, and what version of pc-ble-driver does it build on?

    The latest release of pc-ble-driver is currently v4.1.1, which uses SoftDevice v6.1.1.

    The latest release of pc-ble-driver-py is currently v0.12.0, which supports SoftDevice API v5.

    Error code 32771, or 0x8003 in hexadecimal, may mean that there is a compatibility issue between the SoftDevice present on the connectivity device, and the API that you use from the pc-ble-driver side. We have seen that for earlier versions of pc-ble-driver, e.g. pc-ble-driver built for SD v4.1.0 giving that error code on API calls when using connectivity firmware with SD v4.0.0.

    If you need SoftDevice api v6 then it is best to use the currently latest version of pc-ble-driver v4.1.1, and s140 v6.1.1.

    Regards,
    Terje

Reply
  • Hi,

    What version of pc-ble-driver-py do you base your port on, and what version of pc-ble-driver does it build on?

    The latest release of pc-ble-driver is currently v4.1.1, which uses SoftDevice v6.1.1.

    The latest release of pc-ble-driver-py is currently v0.12.0, which supports SoftDevice API v5.

    Error code 32771, or 0x8003 in hexadecimal, may mean that there is a compatibility issue between the SoftDevice present on the connectivity device, and the API that you use from the pc-ble-driver side. We have seen that for earlier versions of pc-ble-driver, e.g. pc-ble-driver built for SD v4.1.0 giving that error code on API calls when using connectivity firmware with SD v4.0.0.

    If you need SoftDevice api v6 then it is best to use the currently latest version of pc-ble-driver v4.1.1, and s140 v6.1.1.

    Regards,
    Terje

Children
Related