Directly on your machine, clone and build a simulated OpenThread NCP as
described in How to build OpenThread. After cloning and
bootstraping, build the sim example:
./script/cmake-build simulation
Run the Pyspinel CLI, using the path to your simulated build:
cd path-to-pyspinelspinel-cli.py -p path-to-openthread/build/simulation/examples/apps/ncp/ot-ncp-ftd -n 1
Verify the OpenThread version:
version
OPENTHREAD/thread-reference-20200818-1938-g0f10480ed; SIMULATION; Aug 30 2022 10:53:44
Done
Start Thread on the simulated NCP and verify that it has become the leader
in a Thread network:
panid 1234
Done
ifconfig up
Done
thread start
Done
state
leader
Done
View the help menu to see what commands are available:
help
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
Last updated 2023-09-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-09-07 UTC."],[],[]]