openthread: WPANTUND fails to initialize nrf52840-mdk

This is more of a question then a bug. If this is not the correct place for this question then please point me to the correct place to post this question. Also please let me know if I’ve formatted this correctly.

Describe the bug I’m following these instructions to setup an NCP Joiner. wpantund fails to initialize the NCP.

To Reproduce See the instructions I linked to. I believe I followed each step exactly. The point of failure for me is the command under the “Configure wpantund” section.

Expected behavior Set the NCP to an offline state.

Console/log output purvisb@Ubuntu-Research:~$ bash start-wpantund.sh [sudo] password for purvisb: wpantund[12682]: Starting wpantund 0.07.01 (Dec 22 2020 17:11:04) . . . wpantund[12682]: SOURCE_VERSION = 0.07.01 wpantund[12682]: BUILD_VERSION = 0.07.01-2-g6993264 wpantund[12682]: Reading configuration from “/etc/wpantund.conf” . . . wpantund[12682]: Configuration file “/etc/wpantund.conf” read. wpantund[12682]: set-config-param: “Config:NCP:SocketPath” = “/dev/ttyACM0” wpantund[12682]: set-config-param: “Config:TUN:InterfaceName” = “utun7” wpantund[12682]: set-config-param: “Daemon:SyslogMask” = " -info" wpantund[12682]: Ready. Using DBUS bus “:1.0” wpantund[12682]: Running as root without dropping privileges! wpantund[12682]: SpinelNCPInstance-Protothreads.cpp:436: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) wpantund[12682]: Resetting and trying again… (retry 1) wpantund[12682]: SpinelNCPInstance-Protothreads.cpp:426: Requirement Failed (event == EVENT_NCP_RESET) wpantund[12682]: Resetting and trying again… (retry 2) wpantund[12682]: SpinelNCPInstance-Protothreads.cpp:426: Requirement Failed (event == EVENT_NCP_RESET) wpantund[12682]: Resetting and trying again… (retry 3) wpantund[12682]: SpinelNCPInstance-Protothreads.cpp:426: Requirement Failed (event == EVENT_NCP_RESET) wpantund[12682]: The NCP is misbehaving: Repeatedly unable to initialize NCP. Entering fault state. wpantund[12682]: State change: “uninitialized” -> “uninitialized:fault” ^C Caught SIGINT! wpantund[12682]: select() errno=“Interrupted system call” (4) wpantund[12682]: Cleaning up. (gRet = 130) wpantund[12682]: Stopped.

Additional context start-wpantund.sh: #!/bin/sh sudo /usr/local/sbin/wpantund -o Config:NCP:SocketPath /dev/ttyACM0 \ -o Config:TUN:InterfaceName utun7 \ -o Daemon:SyslogMask " -info"

The NCP firmware found here worked for me. By “work” I mean it managed to set the device to an offline state. I don’t know why this firmware works.

I’ve run through the documentation on a VM and on macbook running Ubuntu locally. I’ve run through the documentation on Ubuntu 18 & 20.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

That makes sense.

I also see that your documentation includes USB=1 as a parameter when making the firmware. I did follow this documentation. But at the step where this is burned to the chip, I never though to re-confirm that I was using the right ttyACM file. Because I thought I already confirmed I was using the right one previously. I was mistaking ttyACM0 as the one for openthread, when really it was for the DAPLink firmware.

I don’t know why the makerdiary documentation does not include USB=1 as a parameter. I will close the issue I opened with them with the suggestion to add this information.

Thank you for your assistance, this issue can probably be closed.

I just emailed support@makerdiary.com. I’ll post any relevant suggestions on this issue unless told otherwise.