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

nRF5 Mesh SDK Serial Example Interactive PyACI Provisioning problem

Hello,

I am new to nrf5 mesh. I have setup my system based on Nordic's documentation and was evaluating Serial Example with Interactive Py script.

My setup consists of: 2 no. PCA10028 V 1.0.0 dev boards, Windows 7 PC, with Python 3.6.4 (32-bit) installed. I have generated "serial_nrf51422_xxAC_s130_2_0_1.emProject" with CMake and flashed both the boards with its HEX files via SES IDE.

I am running the interactive_pyaci.py script am trying to do Provisioning as per the doc. But I am getting the following error: ERROR - COM5: OobUse: ERROR_INVALID_LENGTH

Please see the log messages below:

$ python interactive_pyaci.py -d COM5 COM6 -b 115200 --no-logfile

    To control your device, use d[x], where x is the device index.
    Devices are indexed based on the order of the COM ports specified by the -d option.
    The first device, d[0], can also be accessed using device.

    Type d[x]. and hit tab to see the available methods.

Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: p = Provisioner(d[0])

In [2]: 2018-02-28 10:13:44,035 - INFO - COM5: Success
2018-02-28 10:13:44,038 - INFO - COM5: Success
2018-02-28 10:13:44,046 - INFO - COM5: SubnetAdd: {'subnet_handle': 0}
a = Provisionee(d[1])

In [3]: 2018-02-28 10:13:52,684 - INFO - COM6: Success
2018-02-28 10:13:52,688 - INFO - COM6: Success


In [3]: p.scan_start()

In [4]: 2018-02-28 10:14:12,202 - INFO - COM5: Success


In [4]: a.listen()

In [5]: 2018-02-28 10:14:22,778 - INFO - COM6: Success
2018-02-28 10:14:22,915 - INFO - COM5: Received UUID BA95A3713305A75BA838872DABA62B92 with RSSI: -208 dB


In [5]: p.provision()

In [6]: 2018-02-28 10:14:57,995 - INFO - COM5: Provision: {'context': 0}
2018-02-28 10:14:58,011 - INFO - COM6: Link established
2018-02-28 10:14:58,026 - INFO - COM5: Link established
2018-02-28 10:14:58,081 - INFO - COM5: Received capabilities
2018-02-28 10:14:58,082 - INFO - COM5: Number of elements: 2
2018-02-28 10:14:58,085 - ERROR - COM5: OobUse: ERROR_INVALID_LENGTH

I am following the Interactive PyACI documentation present in the SDK. Please let me know where am I going wrong.

Thanks

Related