Open Webber860 opened 3 years ago
@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.
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