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

Error code definition with wpanctl in Diagnostic mode #479

Open
Webber860 opened this issue Jan 26, 2021 · 1 comment
Open

Error code definition with wpanctl in Diagnostic mode #479

Webber860 opened this issue Jan 26, 2021 · 1 comment

Comments

@Webber860
Copy link

Hi,
Where I can find the definition out for error code below such as "Error 27 (0x1B)"
root@OpenWrt:/# wpanctl
wpanctl:wpan0> mfg start
start diagnostics mode
status 0x00
wpanctl:wpan0> mfg save set
Error 27 (0x1B)
.....

many thanks

@abtink
Copy link
Member

abtink commented Jan 26, 2021

@Webber860 the radio specific mfg commands, what they do, and their error code, are generally platform specific. It is not tied to wpantund and/or wpanctl.

The way OpenThread diag/mfg commands work is that there are some basic commands that are provided by the OpenThread core code itself (e.g. mfg start). The more advanced commands (e.g. save set that you mention) is something that I guess is defined by a platform layer (radio driver). OpenThread passes such commands to platform layer using otPlatDiagProcess() to be processed by platform. For such commands, the output (which is a string) from platform layer call is simply passed as is by OT to wpantund/wpanctl and printed.

You can search for implementation of the otPlatDiagProcess() by different platforms to understand what different commands they support and what are the error code they use.

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

No branches or pull requests

2 participants