開始使用
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
前往 GitHub 查看原始碼
如要開始使用 Pyspinel,最快的方法是試用 CLI:
- 首先,安裝 Pyspinel 與依附元件 (沒有 extcap)。
按照如何建構 OpenThread 中所述,直接在您的機器上複製及建構模擬的 OpenThread NCP。複製及開機後,建構模擬範例:
./script/cmake-build simulation
使用模擬版本的路徑執行 Pyspinel CLI:
cd path-to-pyspinel
spinel-cli.py -p path-to-openthread/build/simulation/examples/apps/ncp/ot-ncp-ftd -n 1
驗證 OpenThread 版本:
version
OPENTHREAD/thread-reference-20200818-1938-g0f10480ed; SIMULATION; Aug 30 2022 10:53:44
Done
在模擬的 NCP 上啟動 Thread,並驗證其已成為 Thread 網路中的領導者:
panid 1234
Done
ifconfig up
Done
thread start
Done
state
leader
Done
查看說明選單,瞭解有哪些可用的指令:
help
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。Thread 是 Thread Group, Inc. 的註冊商標。
上次更新時間:2023-09-07 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]