wpantund[16597]: Starting wpantund 0.08.00d (Jun 7 2018 12:45:25) . . .wpantund[16597]: SOURCE_VERSION = 0.07.01-216-g5b87c93wpantund[16597]: BUILD_VERSION = 0.07.01-216-g5b87c93wpantund[16597]: Configuration file "/etc/wpantund.conf" read.wpantund[16597]: Ready. Using DBUS bus ":1.0"wpantund[16597]: Running as root without dropping privileges!wpantund[16597]: State change: "uninitialized" -> "offline"wpantund[16597]: NCP is running "OPENTHREAD/20170716-00634-gddf177e-dirty; NRF52840; Jun 7 2018 16:33:08"wpantund[16597]: Driver is running "0.08.00d (0.07.01-216-g5b87c93; Jun 7 2018 12:45:25)"wpantund[16597]: HARDWARE ADDRESS IS INVALID, MULTICAST BIT IS SET!wpantund[16597]: Network is not joinablewpantund[16597]: Resetting interface(s). . .wpantund[16597]: ../util/netif-mgmt.c:530: Requirement Failed ((ret) == 0)wpantund[16597]: ../util/netif-mgmt.c:530: Requirement Failed ((ret) == 0)wpantund[16597]: ../util/netif-mgmt.c:530: Requirement Failed ((ret) == 0)wpantund[16597]: ../util/netif-mgmt.c:530: Requirement Failed ((ret) == 0)wpantund[16597]: ../util/netif-mgmt.c:530: Requirement Failed ((ret) == 0)wpantund[16597]: Finished initializing NCP
wpantund[16425]: Starting wpantund 0.08.00d (Jun 7 2018 12:45:25) . . .wpantund[16425]: SOURCE_VERSION = 0.07.01-216-g5b87c93wpantund[16425]: BUILD_VERSION = 0.07.01-216-g5b87c93wpantund[16425]: Configuration file "/etc/wpantund.conf" read.wpantund[16425]: Ready. Using DBUS bus ":1.0"wpantund[16425]: Running as root without dropping privileges!wpantund[16425]: SpinelNCPInstance-Protothreads.cpp:414: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader)wpantund[16425]: Resetting and trying again... (retry 1)wpantund[16425]: SpinelNCPInstance-Protothreads.cpp:402: Requirement Failed (event == EVENT_NCP_RESET)wpantund[16425]: Resetting and trying again... (retry 2)wpantund[16425]: SpinelNCPInstance-Protothreads.cpp:402: Requirement Failed (event == EVENT_NCP_RESET)wpantund[16425]: Resetting and trying again... (retry 3)wpantund[16425]: SpinelNCPInstance-Protothreads.cpp:402: Requirement Failed (event == EVENT_NCP_RESET)wpantund[16425]: The NCP is misbehaving: Repeatedly unable to initialize NCP. Entering fault state.wpantund[16425]: State change: "uninitialized" -> "uninitialized:fault"
It doesn't seem to matter how many nRF52840 boards are attached. The target board is at /dev/ttyACM0 with serial $SERIAL.
1) build the NCP image:
cd ~/openthreadmake -f examples/Makefile-nrf52840 cleanmake -j4 -f examples/Makefile-nrf52840 JOINER=1cd ~/openthread/output/nrf52840/binarm-none-eabi-objcopy -O ihex ot-ncp-ftd ~/work/ot-ncp-ftd.hex
2) build the CLI image:cd ~/openthreadmake -f examples/Makefile-nrf52840 cleanmake -j4 -f examples/Makefile-nrf52840 COMMISSIONER=1 JOINER=1cd ~/openthread/output/nrf52840/binarm-none-eabi-objcopy -O ihex ot-cli-ftd ~/work/ot-cli-ftd.hex3) flash the CLI image to the board:cd ~/nrfjprog/./nrfjprog -f nrf52 -s $serial --chiperase --program ~/work/ot-cli-ftd.hex --reset4) cycle the power on the board5) open a cli session:sudo screen /dev/ttyACM0 1152006) press ENTER a couple of times until the > prompt is displayed7) flash the NCP mage to the board:cd ~/nrfjprog/./nrfjprog -f nrf52 -s $serial --chiperase --program ~/work/ot-ncp-ftd.hex --reset8) start wpantund:sudo /usr/local/sbin/wpantund -o Config:NCP:SocketPath /dev/ttyACM0 \-o Config:TUN:InterfaceName utun7 \-o Daemon:SyslogMask " -info"
--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To post to this group, send email to openthre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/ef184978-32b3-4038-8da8-076691ec566b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sudo screen /dev/ttyACM0 115200