Hi everyone,
I was wondering if the nRF52840 DK will have NCP OpenThread support for wpantund Linux (other than Raspberry Pi) or if it already exists. I flashed the nRF52840 DK with the NCP binary from the 0.10.0 Thread SDK and I built the wpantund on Ubuntu 16.04. I used the following wpantund configuration for the communication between the NCP and the host PC:
Config:TUN:InterfaceName wpan0 Config:NCP:SocketPath "serial:/dev/ttyS0,raw,b115200,crtscts=0" Config:NCP:DriverName spinel
The program was able to establish the serial connection but the initialization failed with these errors:
wpantund[2316]: Initializing NCP wpantund[2316]: NCP is now BUSY. wpantund[2316]: [->NCP] CMD_PROP_VALUE_GET(PROP_PROTOCOL_VERSION) tid:1 wpantund[2316]: ↳ 810201 wpantund[2316]: SpinelNCPInstance-Protothreads.cpp:440: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) wpantund[2316]: Resetting and trying again... (retry 1) wpantund[2316]: [->NCP] CMD_RESET tid:2 wpantund[2316]: ↳ 8201 wpantund[2316]: SpinelNCPInstance-Protothreads.cpp:430: Requirement Failed (event == EVENT_NCP_RESET) wpantund[2316]: Resetting and trying again... (retry 2) wpantund[2316]: SpinelNCPInstance-Protothreads.cpp:430: Requirement Failed (event == EVENT_NCP_RESET) wpantund[2316]: Resetting and trying again... (retry 3) wpantund[2316]: [->NCP] CMD_RESET tid:3 wpantund[2316]: ↳ 8301 wpantund[2316]: SpinelNCPInstance-Protothreads.cpp:430: Requirement Failed (event == EVENT_NCP_RESET) wpantund[2316]: The NCP is misbehaving: Repeatedly unable to initialize NCP. Entering fault state. wpantund[2316]: State change: "uninitialized" -> "uninitialized:fault"
Thank you.
Hi,
It seems that your configuration is wrong. Usually USB CDC class, used for serial over USB communication, is under "/dev/ttyACM0", NOT "/dev/ttyS0".
Best regards, Krzysztof …
Best regards, Krzysztof Loska