https://github.com/yplam/ot1m
OpenThread Demos base on NRF52840 and Zephyr.
https://github.com/yplam/ot1m
lwm2m nrf52840 openthread zephyr zephyr-rtos
Last synced: 7 months ago
JSON representation
OpenThread Demos base on NRF52840 and Zephyr.
- Host: GitHub
- URL: https://github.com/yplam/ot1m
- Owner: yplam
- Created: 2020-12-29T07:55:34.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-08T12:00:49.000Z (over 3 years ago)
- Last Synced: 2024-10-24T16:49:17.885Z (12 months ago)
- Topics: lwm2m, nrf52840, openthread, zephyr, zephyr-rtos
- Language: C
- Homepage:
- Size: 347 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OT1M - OpenThread Development Module
========================================OT1M 是一个开源的低功耗物联网模块,提供一个简便的方式来接入与测试 OpenThread 网络。
模块硬件基于 NRF52840,引脚跟常见的 ESP8266 模块兼容,以及引出了USB相关引脚;
OT1M 模块为设备接入物联网提供一个低功耗的选择,适合电池供电设备。NRF52840 是一个支持多协议的低功耗无线 SOC,支持 BLE,Zigbee,Thread,在这里选用的是 Thread 协议 。
OpenThread 是由 Google 发布的 Thread 的开源实现,基于 IEEE 802.15.4,
主要特点是实现了一个低功耗的IPv6协议,可以很容易的将原来基于IP协议的应用移植过来。模块软件基于 Zephyr RTOS,实现了以下几个子应用:
* at_server,AT Server 用于配置网络,请求数据,实现了 SNTP 客户端、COAP 客户端以及LWM2M客户端功能
* thingsboard_coap_sersor,配合 OT1M_EVM 底板,实现温湿度传感器数据通过COAP协议发送到ThingsBoard服务端
* mcuboot,Bootloader 相关配置
* cpu_idle,用于测试模块静止功耗## 入门
参考 Zephyr 官方文档,安装 SDK:https://docs.zephyrproject.org/latest/getting_started/index.html
创建项目主目录,如 ot_app,然后 clone 此项目源码到 ot1m 目录,然后使用 west 命令编译,如:
```
mkdir ot_app
cd ot_app
git clone https://github.com/yplam/ot1m.git
west init -l ot1m
west update
cd ot1m/applications/at_server
west build -b nrf52840ot1m_nrf52840 -- -DCONF_FILE="prj.conf overlay-at-modem.conf overlay-coap.conf"```
## 功耗
* cpu_idle 状态下平均电流约 3ua
* thingsboard_coap_sersor SED 模式,100s SLEEPY_POLL_PERIOD,并且没60秒读取温湿度上传,平均电流约 30ua-50ua,