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

wpantund can not be configured for nrf52840-DK working as NCP

Hi,

I am trying to follow the OpenThread tutorial to build the nRF52840 NCP:

https://codelabs.developers.google.com/codelabs/openthread-hardware/#3

I installed the wpantund as the tutorial suggested, but when I try to configure the wpantund using the following command:

sudo /usr/local/sbin/wpantund -o Config:NCP:SocketPath /dev/ttyACM0 -o Config:TUN:InterfaceName utun7 -o Daemon:SyslogMask " -info"

I get the following errors:

wpantund[11303]: Starting wpantund 0.08.00d (Nov 14 2019 13:59:00) . . .
wpantund[11303]: SOURCE_VERSION = 0.07.01-327-g9e1c0da
wpantund[11303]: BUILD_VERSION = 0.07.01-327-g9e1c0da
wpantund[11303]: Configuration file "/etc/wpantund.conf" read.
wpantund[11303]: Ready. Using DBUS bus ":1.124"
wpantund[11303]: Running as root without dropping privileges!
wpantund[11303]: SpinelNCPInstance-Protothreads.cpp:412: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader)
wpantund[11303]: Resetting and trying again... (retry 1)
wpantund[11303]: SpinelNCPInstance-Protothreads.cpp:400: Requirement Failed (event == EVENT_NCP_RESET)
wpantund[11303]: Resetting and trying again... (retry 2)
wpantund[11303]: SpinelNCPInstance-Protothreads.cpp:400: Requirement Failed (event == EVENT_NCP_RESET)
wpantund[11303]: Resetting and trying again... (retry 3)
wpantund[11303]: SpinelNCPInstance-Protothreads.cpp:400: Requirement Failed (event == EVENT_NCP_RESET)
wpantund[11303]: The NCP is misbehaving: Repeatedly unable to initialize NCP. Entering fault state.
wpantund[11303]: State change: "uninitialized" -> "uninitialized:fault"

I am not sure what should I do next. Anyone could give me some advice? Thanks a lot.

Best,

Zhonghao

Parents
  • are you by any chance running your Linux system  on a virtual machine? To save you some time (back and forth over the weekend, not likely :p) I had a simmilar issue, which i solved by running linux natively. (driver issue from using open source Virtualbox perhaps?) either way, a thread i created earlier: github.com/.../4168.

    Also make sure to install all packages, if i remeber correcttly, libreadline didn't install automatically  during isntallation.  I can't remember the exact function of the feature, but nevertheles it seems to be recommended to have it.

  • Hi,

    Thanks for your attention. Yes, I am trying the Thread on the virtual machine via the VirtuBox. I checked the Github page you provided and I think I got the same issue. I will try to run the tutorial on the native Linux machine and see if it helpful. Thank you.

    Best,

    Zhonghao 

Reply Children
Related