Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCP is in offline state #505

Open
bhumikaajain opened this issue Sep 10, 2021 · 6 comments
Open

NCP is in offline state #505

bhumikaajain opened this issue Sep 10, 2021 · 6 comments
Labels

Comments

@bhumikaajain
Copy link

Hi,
I am using Nordic's nrf52840 as NCP in UART communication.
When I attach it to Rpi based border router, I can't get the NCP up. It is constantly in offline state. After some time it changes its state to uninitialized and then to uninitialized: fault.
Please suggest what can I do?
Screenshot 2021-09-09 at 5 34 41 PM

@jwhui jwhui transferred this issue from openthread/openthread Sep 10, 2021
@jwhui jwhui added the question label Sep 10, 2021
@jwhui
Copy link
Member

jwhui commented Sep 10, 2021

This error typically indicates that wpantund is not able to communicate with the NCP. I would suggest validating wpantund is configured with the proper device path (see Config:NCP:SocketPath) and that UART communication is configured properly.

@bhumikaajain
Copy link
Author

yes, I have changed the configuration path in wpantund.
It is Config:NCP:SocketPath "serial:/dev/ttyAMA0,raw,b115200,crtscts=1"
What else can I try?

@jwhui
Copy link
Member

jwhui commented Sep 10, 2021

Have you separately validated UART communication via /dev/ttyAMA0? Can you provide more details on the hardware setup?

@bhumikaajain
Copy link
Author

yes, I have validated the communication.
Can you specify what further details will be helpful?

@bhumikaajain
Copy link
Author

Hi,

Below are the syslog when I run wpanctl reset and wpanctl status command:
Sep 13 12:50:33 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTask.cpp:82: Requirement Failed (IS_EVENT_FROM_NCP(event) && ( (GetInstance(this)->mInboundHeader == mLastHeader) || spinel_callback_is_reset(event, args) )) Sep 13 12:50:33 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:50:33 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTask.cpp:82: Requirement Failed (IS_EVENT_FROM_NCP(event) && ( (GetInstance(this)->mInboundHeader == mLastHeader) || spinel_callback_is_reset(event, args) )) Sep 13 12:50:33 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:50:33 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:50:33 Zenatix-Testing-CBBhumika wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:16 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTask.cpp:86: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) Sep 13 12:51:16 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:16 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:16 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTask.cpp:86: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) Sep 13 12:51:16 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:16 Zenatix-Testing-CBBhumika wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:21 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTask.cpp:86: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) Sep 13 12:51:21 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:21 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:21 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTask.cpp:86: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) Sep 13 12:51:21 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:21 Zenatix-Testing-CBBhumika wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:26 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTask.cpp:82: Requirement Failed (IS_EVENT_FROM_NCP(event) && ( (GetInstance(this)->mInboundHeader == mLastHeader) || spinel_callback_is_reset(event, args) )) Sep 13 12:51:26 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:26 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:26 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTask.cpp:82: Requirement Failed (IS_EVENT_FROM_NCP(event) && ( (GetInstance(this)->mInboundHeader == mLastHeader) || spinel_callback_is_reset(event, args) )) Sep 13 12:51:26 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:26 Zenatix-Testing-CBBhumika wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:37 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTask.cpp:86: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) Sep 13 12:51:37 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:37 Zenatix-Testing-CBBhumika wpantund[1331]: wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007) Sep 13 12:51:37 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTask.cpp:86: Requirement Failed (IS_EVENT_FROM_NCP(event) && GetInstance(this)->mInboundHeader == mLastHeader) Sep 13 12:51:37 Zenatix-Testing-CBBhumika wpantund[1331]: SpinelNCPTaskSendCommand.cpp:351: Requirement Failed ((mRetVal) == 0) Sep 13 12:51:37 Zenatix-Testing-CBBhumika wpantund[1331]: SendCommand task encountered an error: 7 (0x00000007)

@bhumikaajain
Copy link
Author

@jwhui,
I have separately verified the UART communication, using loop_test, where I receive the hardware address of the module on sending a command. Thus UART communication is verified.

Still I am facing NCP state Offline issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants