Langsung di mesin Anda, clone dan bangun simulasi OpenThread NCP sebagai
dijelaskan dalam Cara membuat OpenThread. Setelah cloning dan
bootstrap, bangun contoh sim ini:
./script/cmake-build simulation
Jalankan Pyspinel CLI, menggunakan jalur ke simulasi build Anda:
cd path-to-pyspinelspinel-cli.py -p path-to-openthread/build/simulation/examples/apps/ncp/ot-ncp-ftd -n 1
Verifikasi versi OpenThread:
version
OPENTHREAD/thread-reference-20200818-1938-g0f10480ed; SIMULATION; Aug 30 2022 10:53:44
Done
Mulai Thread di NCP yang disimulasikan dan verifikasi bahwa NCP tersebut telah menjadi pemimpin
dalam jaringan Thread:
panid 1234
Done
ifconfig up
Done
thread start
Done
state
leader
Done
Lihat menu bantuan untuk melihat perintah yang tersedia:
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.
Terakhir diperbarui pada 2024-08-22 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-08-22 UTC."],[],[]]