Add API to retrieve router diag information. (#225)

This commit is contained in:
Jonathan Hui
2016-07-01 10:47:40 -07:00
committed by GitHub
parent 4779fb20eb
commit 50acd07a17
8 changed files with 179 additions and 0 deletions
+45
View File
@@ -27,6 +27,7 @@ OpenThread test scripts use the CLI to execute test cases.
* [releaserouterid](#releaserouterid)
* [rloc16](#rloc16)
* [route](#route)
* [router](#router)
* [routerupgradethreshold](#routerupgradethreshold)
* [scan](#scan)
* [start](#start)
@@ -421,6 +422,50 @@ Invalidate a prefix in the Network Data.
Done
```
### router list
List allocated Router IDs
```bash
> router list
8 24 50
Done
```
### router \<id\>
Print diagnostic information for a Thread Router. The `id` may be a Router ID or an RLOC16.
```bash
> router 50
Alloc: 1
Router ID: 50
Rloc: c800
Next Hop: c800
Link: 1
Ext Addr: e2b3540590b0fd87
Cost: 0
LQI In: 3
LQI Out: 3
Age: 3
Done
```
```bash
> router 0xc800
Alloc: 1
Router ID: 50
Rloc: c800
Next Hop: c800
Link: 1
Ext Addr: e2b3540590b0fd87
Cost: 0
LQI In: 3
LQI Out: 3
Age: 7
Done
```
### routerupgradethreshold
Get the ROUTER_UPGRADE_THRESHOLD value.