Adding existing ot-cli commands to pyspinel for NCP architecture #8086
-
Hello, My platform is SiLABS ThunderSense2 and I am trying to use ot-ftd-ncp demo app (thead-1.3) I am able to communicate with it using pyspinel but a bit surprised that only a very small subset of command is available ( Is there a good reference commit on how to add ot-cli supported command to pyspinel? Does every ot-cli command added automatically have a SPINEL.PROP defined on the ot-code side that I should match? The closest recent example I came across is this: Thank you for everyone's time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Not every OT CLI command has a matching Spinel property. Note that Spinel was originally designed to be a property-based interface, which is a different model from OT CLI. Spinel does support getting/setting Active Operational Datasets, but how that is done differs from OT CLI. openthread/src/lib/spinel/spinel.h Line 2684 in cba1beb |
Beta Was this translation helpful? Give feedback.
-
I think it's actually might be a good idea to support CLI commands via NCP for debugging purposes. |
Beta Was this translation helpful? Give feedback.
pyspinel
has not been actively supported for some time. As a result, some of the more recent features have not been implemented. Thedataset
command, as you noted, is one of those unimplemented commands.Not every OT CLI…