将 OpenThread 移植到新的硬件平台
在 GitHub 上查看源代码
将 OpenThread 堆栈移植至新的硬件平台包括以下步骤:
- 设置构建环境
- 定义 CMake 规则
- 实现平台抽象层 API
- 实现高级功能(硬件抽象层)
- 验证端口
- 认证和 README
OpenThread 需要以下平台服务:
- IEEE 802.15.4-2006
2.4 GHz 无线装置
- 发送和接收 IEEE 802.15.4 帧
- 生成 IEEE 802.15.4 确认帧
- 对接收到的帧提供接收信号强度指示器 (RSSI) 测量值
- 毫秒级的自由运行计时器,设有闹钟
- 用于存储网络配置设置的非易失性存储空间
- 真实随机数生成器 (TRNG)
build 示例
OpenThread 代码库中提供了几个示例 build。如需了解详情,请参阅平台。
有关一些有效端口的示例,请参阅 ot-cc2538
、ot-efr32
和 ot-nrf528xx
。建议从 ot-cc2538
开始,仅实现一个平台。ot-efr32
和 ot-nrf528xx
更复杂,因为它们可以实现对多个平台的支持。
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. Thread is a registered trademark of the Thread Group, Inc.
Last updated 2022-03-24 UTC.
[{
"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":"其他"
}]