| ... | @@ -78,7 +78,7 @@ sudo ip addr show wpan0 |
... | @@ -78,7 +78,7 @@ sudo ip addr show wpan0 |
|
|
- https://github.com/zephyrproject-rtos/zephyr/tree/main/modules/openthread/platform
|
|
- https://github.com/zephyrproject-rtos/zephyr/tree/main/modules/openthread/platform
|
|
|
- https://github.com/zephyrproject-rtos/openthread
|
|
- https://github.com/zephyrproject-rtos/openthread
|
|
|
|
|
|
|
|
### Usage
|
|
## Usage / Flow
|
|
|
|
|
|
|
|
On node (arduino-nano-ble) :
|
|
On node (arduino-nano-ble) :
|
|
|
|
|
|
| ... | @@ -92,12 +92,16 @@ Done |
... | @@ -92,12 +92,16 @@ Done |
|
|
uart:~$ ot eui64
|
|
uart:~$ ot eui64
|
|
|
????????????????
|
|
????????????????
|
|
|
|
|
|
|
|
|
# Generate QR code, use app
|
|
|
|
|
|
|
|
# On node:
|
|
|
uart:~$ ot discover
|
|
uart:~$ ot discover
|
|
|
| Network Name | Extended PAN | PAN | MAC Address | Ch | dBm | LQI |
|
|
| Network Name | Extended PAN | PAN | MAC Address | Ch | dBm | LQI |
|
|
|
+------------------+------------------+------+------------------+----+-----+-----+
|
|
+------------------+------------------+------+------------------+----+-----+-----+
|
|
|
| OniroThread | 11112222deadbeef | 1357 | 0627d9148a8cf1df | 26 | -51 | 168 |
|
|
| OniroThread | 11112222deadbeef | 1357 | 0627d9148a8cf1df | 26 | -51 | 168 |
|
|
|
Done
|
|
Done
|
|
|
|
|
|
|
|
|
# On node:
|
|
|
uart:~$ ot ipaddr
|
|
uart:~$ ot ipaddr
|
|
|
fd30:dc66:de2f:459c:0:ff:fe00:fc00
|
|
fd30:dc66:de2f:459c:0:ff:fe00:fc00
|
|
|
fd30:dc66:de2f:459c:0:ff:fe00:e400
|
|
fd30:dc66:de2f:459c:0:ff:fe00:e400
|
| ... | @@ -147,11 +151,62 @@ on node's console trace: |
... | @@ -147,11 +151,62 @@ on node's console trace: |
|
|
+----+--------+----------+-----------+-------+--------+-----+------------------+------+
|
|
+----+--------+----------+-----------+-------+--------+-----+------------------+------+
|
|
|
| 31 | 0x7c00 | 63 | 0 | 0 | 0 | 0 | 0627d9148a8cf1df | 0 |
|
|
| 31 | 0x7c00 | 63 | 0 | 0 | 0 | 0 | 0627d9148a8cf1df | 0 |
|
|
|
|
|
|
|
|
|
# On node
|
|
|
|
|
|
|
|
uart:~$ *** Booting Zephyr OS build zephyr-v3.1.0 ***
|
|
|
|
[00:00:00.006,042] <inf> regulator_fixed: vdd_env onoff: 0
|
|
|
|
[00:00:00.006,103] <inf> ieee802154_nrf5: nRF5 802154 radio initialized
|
|
|
|
[00:00:00.021,667] <inf> fs_nvs: 8 Sectors of 4096 bytes
|
|
|
|
[00:00:00.021,697] <inf> fs_nvs: alloc wra: 0, b28
|
|
|
|
[00:00:00.021,697] <inf> fs_nvs: data wra: 0, 7f0
|
|
|
|
[00:00:00.022,003] <inf> net_l2_openthread: State changed! Flags: 0x00038200 Current role: disabled
|
|
|
|
[00:00:00.022,125] <inf> net_l2_openthread: OpenThread version: OPENTHREAD/e2a765599; Zephyr; Jun 5 2022 11:19:10
|
|
|
|
[00:00:00.022,979] <inf> net_l2_openthread: State changed! Flags: 0x0900900b Current role: disabled
|
|
|
|
[00:00:00.028,076] <inf> net_config: Initializing network
|
|
|
|
[00:00:00.028,228] <inf> net_l2_openthread: State changed! Flags: 0x00000001 Current role: disabled
|
|
|
|
[00:00:00.028,350] <inf> openthreadnode: Oniro Gateway Blueprint OpenThread node
|
|
|
|
[00:00:05.394,775] <inf> net_l2_openthread: State changed! Flags: 0x0800c00b Current role: disabled
|
|
|
|
[00:00:10.334,594] <inf> net_l2_openthread: State changed! Flags: 0x08000000 Current role: disabled
|
|
|
|
[00:00:10.364,379] <inf> net_l2_openthread: State changed! Flags: 0x08000000 Current role: disabled
|
|
|
|
[00:00:10.425,903] <inf> net_l2_openthread: State changed! Flags: 0x18040100 Current role: disabled
|
|
|
|
[00:00:10.525,726] <inf> net_l2_openthread: Join success
|
|
|
|
[00:00:10.526,123] <inf> net_l2_openthread: State changed! Flags: 0x1800101f Current role: detached
|
|
|
|
[00:00:11.648,132] <inf> net_l2_openthread: State changed! Flags: 0x301b32b7 Current role: child
|
|
|
|
[00:00:11.648,223] <err> net_l2_openthread: Cannot add OpenThread unicast address
|
|
|
|
[00:00:11.648,498] <inf> net_l2_openthread: State changed! Flags: 0x00000001 Current role: child
|
|
|
|
[00:00:11.648,529] <err> net_l2_openthread: Cannot add OpenThread unicast address
|
|
|
|
uart:~$ ot ipaddr
|
|
|
|
2001:0:0:0:d68b:3ec2:f540:c19c
|
|
|
|
fdf6:ff2b:4c70:eeee:0:ff:fe00:7c01
|
|
|
|
fdf6:ff2b:4c70:eeee:e990:751a:92dd:f10e
|
|
|
|
fe80:0:0:0:b8bb:81a3:cc20:9bc6
|
|
|
|
2001:db8:0:0:0:0:0:2
|
|
|
|
Done
|
|
|
|
[00:00:46.048,919] <inf> net_l2_openthread: State changed! Flags: 0x00000064 Current role: router
|
|
|
|
[00:01:58.185,607] <inf> net_l2_openthread: State changed! Flags: 0x00000200 Current role: router
|
|
|
|
|
|
|
|
uart:~$ ot ipaddr
|
|
|
|
2001:0:0:0:d68b:3ec2:f540:c19c
|
|
|
|
fdf6:ff2b:4c70:eeee:0:ff:fe00:7c01
|
|
|
|
fdf6:ff2b:4c70:eeee:e990:751a:92dd:f10e
|
|
|
|
fe80:0:0:0:b8bb:81a3:cc20:9bc6
|
|
|
|
2001:db8:0:0:0:0:0:2
|
|
|
|
Done
|
|
|
|
|
|
|
|
# On gateway
|
|
|
~ $ sudo ot-ctl child table
|
|
~ $ sudo ot-ctl child table
|
|
|
|
Password:
|
|
|
| ID | RLOC16 | Timeout | Age | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt| Extended MAC |
|
|
| ID | RLOC16 | Timeout | Age | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt| Extended MAC |
|
|
|
+-----+--------+------------+------------+-------+------+-+-+-+---+---+-------+------------------+
|
|
+-----+--------+------------+------------+-------+------+-+-+-+---+---+-------+------------------+
|
|
|
|
| 1 | 0x7c01 | 240 | 14 | 3 | 252 |1|1|1| 2| 0 | 0 | babb81a3cc209bc6 |
|
|
|
|
|
|
|
|
# On gateway
|
|
|
|
ping 2001:0:0:0:d68b:3ec2:f540:c19c
|
|
|
|
PING 2001:0:0:0:d68b:3ec2:f540:c19c (2001::d68b:3ec2:f540:c19c): 56 data bytes
|
|
|
|
64 bytes from 2001::d68b:3ec2:f540:c19c: seq=0 ttl=64 time=39.111 ms
|
|
|
|
|
|
|
|
# Disconnect node, ping will stop, reconnect node
|
|
|
|
|
|
|
|
Done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
```
|
| ... | | ... | |