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

Interactive PyACI timeout aka "working by chance"

Hi @ll,

I have a problem bringing the pyaci up and running.

I used it successfully for everything before but since today it is making a mess again:

When I'm trying to initalize a Proviner I get the following errors:
p = Provisioner(device,db)
2018-05-03 15:23:47,781 - INFO - ttyACM0: cmd AddrLocalUnicastSet, timeout waiting for event
2018-05-03 15:23:49,783 - INFO - ttyACM0: cmd SubnetAdd, timeout waiting for event
2018-05-03 15:23:51,784 - INFO - ttyACM0: cmd AppkeyAdd, timeout waiting for event
2018-05-03 15:23:53,793 - INFO - ttyACM0: cmd AppkeyAdd, timeout waiting for event

But once I press the button on the board I get this:
2018-05-03 15:24:00,001 - INFO - ttyACM0: Device rebooted.

So it seems as if the communication between the board and the host (ubuntu 17.10) is working.

Sometimes it is working and once the keys are generated/exchanged during the initialization everything else also works.

I'm using Mesh SDK 2.0.0 (as 2.0.1 has just this one minor bug fix that doesn't matter in this case) and a PC10040 v1.1.0 2016.16 for the serial communication (using the serial example)

My SEGGER Version is 6.16c . (Updating it to the latest version makes this problem even worse)

I also tried different USB-Ports and cables (long and short) with and without USB-hub. So the error/problem is completely random which makes it even more annoying.

Thank you for your help!

Andrej

Related