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

Interactive_pyaci timeout creating Provisioner object

Hi,

I was trying the interactive_pyaci together with the serial and light_switch server example.

I installed and programmed everything regarding the documentation on the webpage.

I'm using Ubuntu 18.04 and also Windows 10. Python versions I'm using are 32bit 3.6 and 3.7 in a virtual environment, created with virtualenv.

SDK version is 2.1.1, hardware  is nRF52840_Preview_DK.

The first issue, cmd.Echo"xxx") returning timeout I actually could fix with help of another post in the forum by changing a line in the flash_placement.xml

  <MemorySegment name="RAM" start="$(RAM_PH_START)" size="$(RAM_PH_SIZE)"> 

to

  <MemorySegment name="RAM" start="$(RAM_PH_START)" size="$(RAM_SIZE)">

Do a clean and compiling new maked the Echo command working.

But if I followed the instructions for the provisioning at

http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk%2Fdita%2Fsdk%2Fnrf5_sdk.html

I get the timeout problem at 

p = Provisioner(device, db)

Here the output in the interactive_pyaci script:

In [1]: cmd.Echo("Hallo")
Out[1]: 060248616C6C6F

In [2]: db = MeshDB("database/example_database.json")

In [3]: db.provisioners
Out[3]: [{'name': 'BT Mesh Provisioner', 'UUID': bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 'allocated_unicast_range': [{'low_address': 0010, 'high_address': 7fff}], 'allocated_group_range': [{'low_address': c000, 'high_address': feff}]}]

In [4]: p = Provisioner(device, db)

In [5]: 2018-08-14 14:16:11,495 - INFO - ttyACM0: cmd KeypairSet, timeout waiting for event
2018-08-14 14:16:13,515 - INFO - ttyACM0: cmd AddrLocalUnicastSet, timeout waiting for event
2018-08-14 14:16:15,521 - INFO - ttyACM0: cmd SubnetAdd, timeout waiting for event
2018-08-14 14:16:17,539 - INFO - ttyACM0: cmd AppkeyAdd, timeout waiting for event
2018-08-14 14:16:19,545 - INFO - ttyACM0: cmd AppkeyAdd, timeout waiting for event

I tried also doing the same on Windows with the same result as well using another board.

Other commands also work, like

In [6]: cmd.AdvAddrGet()
Out[6]: 0141

Do you have any suggestions?

BR, Hardy

Related