mirror of
https://github.com/espressif/openthread.git
synced 2026-09-16 14:10:09 +00:00
Feature/extra clis for thci support (#345)
Update feature extra clis for thci support. * cli: add set/get PartitionId * cli: add get information about thread device's parent. * cli: add set/get the data poll period for sleepy end device. * cli: add blacklist relative commands to support network topology defined in Harness test case. * cli: add set/get assigned linkquality during parent selection of attaching. * cli: add reset to trigger a platform reset. * Add link-local 16 only for sleepy end device.
This commit is contained in:
@@ -8,6 +8,7 @@ OpenThread test scripts use the CLI to execute test cases.
|
||||
## OpenThread Command List
|
||||
|
||||
* [channel](#channel)
|
||||
* [blacklist](#blacklist)
|
||||
* [child](#child)
|
||||
* [childtimeout](#childtimeout)
|
||||
* [contextreusedelay](#contextreusedelay)
|
||||
@@ -19,16 +20,21 @@ OpenThread test scripts use the CLI to execute test cases.
|
||||
* [ifconfig](#ifconfig)
|
||||
* [ipaddr](#ipaddr)
|
||||
* [keysequence](#keysequence)
|
||||
* [leaderpartitionid](#leaderpartitionid)
|
||||
* [leaderweight](#leaderweight)
|
||||
* [linkquality](#linkquality)
|
||||
* [masterkey](#masterkey)
|
||||
* [mode](#mode)
|
||||
* [netdataregister](#netdataregister)
|
||||
* [networkidtimeout](#networkidtimeout)
|
||||
* [networkname](#networkname)
|
||||
* [panid](#panid)
|
||||
* [parent](#parent)
|
||||
* [ping](#ping)
|
||||
* [pollperiod](#pollperiod)
|
||||
* [prefix](#prefix)
|
||||
* [releaserouterid](#releaserouterid)
|
||||
* [reset](#reset)
|
||||
* [rloc16](#rloc16)
|
||||
* [route](#route)
|
||||
* [router](#router)
|
||||
@@ -42,6 +48,62 @@ OpenThread test scripts use the CLI to execute test cases.
|
||||
|
||||
## OpenThread Command Details
|
||||
|
||||
### blacklist
|
||||
|
||||
List the blacklist entries.
|
||||
|
||||
```bash
|
||||
> blacklist
|
||||
Enabled
|
||||
166e0a0000000002
|
||||
166e0a0000000003
|
||||
Done
|
||||
```
|
||||
|
||||
### blacklist add \<extaddr\>
|
||||
|
||||
Add an IEEE 802.15.4 Extended Address to the blacklist.
|
||||
|
||||
```bash
|
||||
> blacklist add 166e0a0000000002
|
||||
Done
|
||||
```
|
||||
|
||||
### blacklist clear
|
||||
|
||||
Clear all entries from the blacklist.
|
||||
|
||||
```bash
|
||||
> blacklist clear
|
||||
Done
|
||||
```
|
||||
|
||||
### blacklist disable
|
||||
|
||||
Disable MAC blacklist filtering.
|
||||
|
||||
```bash
|
||||
> blacklist disable
|
||||
Done
|
||||
```
|
||||
|
||||
### blacklist enable
|
||||
|
||||
Enable MAC blacklist filtering.
|
||||
|
||||
```bash
|
||||
> blacklist enable
|
||||
Done
|
||||
```
|
||||
|
||||
### blacklist remove \<extaddr\>
|
||||
|
||||
Remove an IEEE 802.15.4 Extended Address from the blacklist.
|
||||
|
||||
```bash
|
||||
> blacklist remove 166e0a0000000002
|
||||
Done
|
||||
```
|
||||
### channel
|
||||
|
||||
Get the IEEE 802.15.4 Channel value.
|
||||
@@ -312,6 +374,25 @@ Set the Thread Key Sequence.
|
||||
Done
|
||||
```
|
||||
|
||||
### leaderpartitionid
|
||||
|
||||
Get the Thread Leader Partition ID.
|
||||
|
||||
```bash
|
||||
> leaderpartitionid
|
||||
4294967295
|
||||
Done
|
||||
```
|
||||
|
||||
### leaderpartitionid \<partitionid>\
|
||||
|
||||
Set the Thread Leader Partition ID.
|
||||
|
||||
```bash
|
||||
> leaderpartitionid 0xffffffff
|
||||
Done
|
||||
```
|
||||
|
||||
### leaderweight
|
||||
|
||||
Get the Thread Leader Weight.
|
||||
@@ -331,6 +412,25 @@ Set the Thread Leader Weight.
|
||||
Done
|
||||
```
|
||||
|
||||
### linkquality \<extaddr>\
|
||||
|
||||
Get the link quality on the link to a given extended address.
|
||||
|
||||
```bash
|
||||
> linkquality 36c1dd7a4f5201ff
|
||||
3
|
||||
Done
|
||||
```
|
||||
|
||||
### linkquality \<extaddr>\ \<linkquality>\
|
||||
|
||||
Set the link quality on the link to a given extended address.
|
||||
|
||||
```bash
|
||||
> linkquality 36c1dd7a4f5201ff 3
|
||||
Done
|
||||
```
|
||||
|
||||
### masterkey
|
||||
|
||||
Get the Thread Master Key value.
|
||||
@@ -445,6 +545,17 @@ Set the IEEE 802.15.4 PAN ID value.
|
||||
Done
|
||||
```
|
||||
|
||||
### parent
|
||||
|
||||
Get the diagnostic information for a Thread Router as parent.
|
||||
|
||||
```bash
|
||||
> parent
|
||||
Ext Addr: be1857c6c21dce55
|
||||
Rloc: 5c00
|
||||
Done
|
||||
```
|
||||
|
||||
### ping \<ipaddr\> [size] [count] [interval]
|
||||
|
||||
Send an ICMPv6 Echo Request.
|
||||
@@ -454,6 +565,25 @@ Send an ICMPv6 Echo Request.
|
||||
16 bytes from fdde:ad00:beef:0:558:f56b:d688:799: icmp_seq=1 hlim=64 time=28ms
|
||||
```
|
||||
|
||||
### pollperiod
|
||||
|
||||
Get the data poll period of sleepy end device
|
||||
|
||||
```bash
|
||||
> pollperiod
|
||||
240
|
||||
Done
|
||||
```
|
||||
|
||||
### pollperiod \<pollperiod>\
|
||||
|
||||
Set the data poll period for sleepy end device
|
||||
|
||||
```bash
|
||||
> pollperiod 240
|
||||
Done
|
||||
```
|
||||
|
||||
### prefix add \<prefix\> [pvdcsr] [prf]
|
||||
|
||||
Add a valid prefix to the Network Data.
|
||||
@@ -483,11 +613,19 @@ Done
|
||||
|
||||
### releaserouterid \<routerid\>
|
||||
Release a Router ID that has been allocated by the device in the Leader role.
|
||||
|
||||
```bash
|
||||
> releaserouterid 16
|
||||
Done
|
||||
```
|
||||
|
||||
### reset
|
||||
Signal a platform reset.
|
||||
|
||||
```bash
|
||||
> reset
|
||||
```
|
||||
|
||||
### rloc16
|
||||
|
||||
Get the Thread RLOC16 value.
|
||||
|
||||
Reference in New Issue
Block a user