1*cfb92d14SAndroid Build Coastguard Worker# OpenThread CLI Reference 2*cfb92d14SAndroid Build Coastguard Worker 3*cfb92d14SAndroid Build Coastguard WorkerThe OpenThread CLI exposes configuration and management APIs via a command line interface. Use the CLI to play with OpenThread, which can also be used with additional application code. The OpenThread test scripts use the CLI to execute test cases. 4*cfb92d14SAndroid Build Coastguard Worker 5*cfb92d14SAndroid Build Coastguard Worker## Separator and escaping characters 6*cfb92d14SAndroid Build Coastguard Worker 7*cfb92d14SAndroid Build Coastguard WorkerThe whitespace character (`' '`) is used to delimit the command name and the different arguments, together with tab (`'\t'`) and new line characters (`'\r'`, `'\n'`). 8*cfb92d14SAndroid Build Coastguard Worker 9*cfb92d14SAndroid Build Coastguard WorkerSome arguments might require to accept whitespaces on them. For those cases the backslash character (`'\'`) can be used to escape separators or the backslash itself. 10*cfb92d14SAndroid Build Coastguard Worker 11*cfb92d14SAndroid Build Coastguard WorkerExample: 12*cfb92d14SAndroid Build Coastguard Worker 13*cfb92d14SAndroid Build Coastguard Worker```bash 14*cfb92d14SAndroid Build Coastguard Worker> networkname Test\ Network 15*cfb92d14SAndroid Build Coastguard WorkerDone 16*cfb92d14SAndroid Build Coastguard Worker> networkname 17*cfb92d14SAndroid Build Coastguard WorkerTest Network 18*cfb92d14SAndroid Build Coastguard WorkerDone 19*cfb92d14SAndroid Build Coastguard Worker> 20*cfb92d14SAndroid Build Coastguard Worker``` 21*cfb92d14SAndroid Build Coastguard Worker 22*cfb92d14SAndroid Build Coastguard Worker## OpenThread Command List 23*cfb92d14SAndroid Build Coastguard Worker 24*cfb92d14SAndroid Build Coastguard Worker- [ba](#ba) 25*cfb92d14SAndroid Build Coastguard Worker- [bbr](#bbr) 26*cfb92d14SAndroid Build Coastguard Worker- [br](README_BR.md) 27*cfb92d14SAndroid Build Coastguard Worker- [bufferinfo](#bufferinfo) 28*cfb92d14SAndroid Build Coastguard Worker- [ccathreshold](#ccathreshold) 29*cfb92d14SAndroid Build Coastguard Worker- [channel](#channel) 30*cfb92d14SAndroid Build Coastguard Worker- [child](#child-list) 31*cfb92d14SAndroid Build Coastguard Worker- [childip](#childip) 32*cfb92d14SAndroid Build Coastguard Worker- [childmax](#childmax) 33*cfb92d14SAndroid Build Coastguard Worker- [childsupervision](#childsupervision-interval) 34*cfb92d14SAndroid Build Coastguard Worker- [childtimeout](#childtimeout) 35*cfb92d14SAndroid Build Coastguard Worker- [coap](README_COAP.md) 36*cfb92d14SAndroid Build Coastguard Worker- [coaps](README_COAPS.md) 37*cfb92d14SAndroid Build Coastguard Worker- [coex](#coex) 38*cfb92d14SAndroid Build Coastguard Worker- [commissioner](README_COMMISSIONER.md) 39*cfb92d14SAndroid Build Coastguard Worker- [contextreusedelay](#contextreusedelay) 40*cfb92d14SAndroid Build Coastguard Worker- [counters](#counters) 41*cfb92d14SAndroid Build Coastguard Worker- [csl](#csl) 42*cfb92d14SAndroid Build Coastguard Worker- [dataset](README_DATASET.md) 43*cfb92d14SAndroid Build Coastguard Worker- [debug](#debug) 44*cfb92d14SAndroid Build Coastguard Worker- [delaytimermin](#delaytimermin) 45*cfb92d14SAndroid Build Coastguard Worker- [detach](#detach) 46*cfb92d14SAndroid Build Coastguard Worker- [deviceprops](#deviceprops) 47*cfb92d14SAndroid Build Coastguard Worker- [diag](#diag) 48*cfb92d14SAndroid Build Coastguard Worker- [discover](#discover-channel) 49*cfb92d14SAndroid Build Coastguard Worker- [dns](#dns-config) 50*cfb92d14SAndroid Build Coastguard Worker- [domainname](#domainname) 51*cfb92d14SAndroid Build Coastguard Worker- [dua](#dua-iid) 52*cfb92d14SAndroid Build Coastguard Worker- [eidcache](#eidcache) 53*cfb92d14SAndroid Build Coastguard Worker- [eui64](#eui64) 54*cfb92d14SAndroid Build Coastguard Worker- [extaddr](#extaddr) 55*cfb92d14SAndroid Build Coastguard Worker- [extpanid](#extpanid) 56*cfb92d14SAndroid Build Coastguard Worker- [factoryreset](#factoryreset) 57*cfb92d14SAndroid Build Coastguard Worker- [fake](#fake) 58*cfb92d14SAndroid Build Coastguard Worker- [fem](#fem) 59*cfb92d14SAndroid Build Coastguard Worker- [history](README_HISTORY.md) 60*cfb92d14SAndroid Build Coastguard Worker- [ifconfig](#ifconfig) 61*cfb92d14SAndroid Build Coastguard Worker- [instanceid](#instanceid) 62*cfb92d14SAndroid Build Coastguard Worker- [ipaddr](#ipaddr) 63*cfb92d14SAndroid Build Coastguard Worker- [ipmaddr](#ipmaddr) 64*cfb92d14SAndroid Build Coastguard Worker- [joiner](README_JOINER.md) 65*cfb92d14SAndroid Build Coastguard Worker- [joinerport](#joinerport-port) 66*cfb92d14SAndroid Build Coastguard Worker- [keysequence](#keysequence-counter) 67*cfb92d14SAndroid Build Coastguard Worker- [leaderdata](#leaderdata) 68*cfb92d14SAndroid Build Coastguard Worker- [leaderweight](#leaderweight) 69*cfb92d14SAndroid Build Coastguard Worker- [linkmetrics](#linkmetrics-config-async-ipaddr-enhanced-ack-clear) 70*cfb92d14SAndroid Build Coastguard Worker- [linkmetricsmgr](#linkmetricsmgr-disable) 71*cfb92d14SAndroid Build Coastguard Worker- [locate](#locate) 72*cfb92d14SAndroid Build Coastguard Worker- [log](#log-filename-filename) 73*cfb92d14SAndroid Build Coastguard Worker- [mac](#mac-retries-direct) 74*cfb92d14SAndroid Build Coastguard Worker- [macfilter](#macfilter) 75*cfb92d14SAndroid Build Coastguard Worker- [meshdiag](#meshdiag-topology-ip6-addrs-children) 76*cfb92d14SAndroid Build Coastguard Worker- [mliid](#mliid-iid) 77*cfb92d14SAndroid Build Coastguard Worker- [mlr](#mlr-reg-ipaddr--timeout) 78*cfb92d14SAndroid Build Coastguard Worker- [mode](#mode) 79*cfb92d14SAndroid Build Coastguard Worker- [multiradio](#multiradio) 80*cfb92d14SAndroid Build Coastguard Worker- [nat64](#nat64-cidr) 81*cfb92d14SAndroid Build Coastguard Worker- [neighbor](#neighbor-list) 82*cfb92d14SAndroid Build Coastguard Worker- [netdata](README_NETDATA.md) 83*cfb92d14SAndroid Build Coastguard Worker- [netstat](#netstat) 84*cfb92d14SAndroid Build Coastguard Worker- [networkdiagnostic](#networkdiagnostic-get-addr-type-) 85*cfb92d14SAndroid Build Coastguard Worker- [networkidtimeout](#networkidtimeout) 86*cfb92d14SAndroid Build Coastguard Worker- [networkkey](#networkkey) 87*cfb92d14SAndroid Build Coastguard Worker- [networkname](#networkname) 88*cfb92d14SAndroid Build Coastguard Worker- [networktime](#networktime) 89*cfb92d14SAndroid Build Coastguard Worker- [nexthop](#nexthop) 90*cfb92d14SAndroid Build Coastguard Worker- [panid](#panid) 91*cfb92d14SAndroid Build Coastguard Worker- [parent](#parent) 92*cfb92d14SAndroid Build Coastguard Worker- [parentpriority](#parentpriority) 93*cfb92d14SAndroid Build Coastguard Worker- [partitionid](#partitionid) 94*cfb92d14SAndroid Build Coastguard Worker- [ping](#ping-async--i-source--m-ipaddr-size-count-interval-hoplimit-timeout) 95*cfb92d14SAndroid Build Coastguard Worker- [platform](#platform) 96*cfb92d14SAndroid Build Coastguard Worker- [pollperiod](#pollperiod-pollperiod) 97*cfb92d14SAndroid Build Coastguard Worker- [preferrouterid](#preferrouterid-routerid) 98*cfb92d14SAndroid Build Coastguard Worker- [prefix](#prefix) 99*cfb92d14SAndroid Build Coastguard Worker- [promiscuous](#promiscuous) 100*cfb92d14SAndroid Build Coastguard Worker- [pskc](#pskc) 101*cfb92d14SAndroid Build Coastguard Worker- [pskcref](#pskcref) 102*cfb92d14SAndroid Build Coastguard Worker- [radio](#radio-enable) 103*cfb92d14SAndroid Build Coastguard Worker- [radiofilter](#radiofilter) 104*cfb92d14SAndroid Build Coastguard Worker- [rcp](#rcp) 105*cfb92d14SAndroid Build Coastguard Worker- [region](#region) 106*cfb92d14SAndroid Build Coastguard Worker- [releaserouterid](#releaserouterid-routerid) 107*cfb92d14SAndroid Build Coastguard Worker- [reset](#reset) 108*cfb92d14SAndroid Build Coastguard Worker- [rloc16](#rloc16) 109*cfb92d14SAndroid Build Coastguard Worker- [route](#route) 110*cfb92d14SAndroid Build Coastguard Worker- [router](#router-list) 111*cfb92d14SAndroid Build Coastguard Worker- [routerdowngradethreshold](#routerdowngradethreshold) 112*cfb92d14SAndroid Build Coastguard Worker- [routereligible](#routereligible) 113*cfb92d14SAndroid Build Coastguard Worker- [routerselectionjitter](#routerselectionjitter) 114*cfb92d14SAndroid Build Coastguard Worker- [routerupgradethreshold](#routerupgradethreshold) 115*cfb92d14SAndroid Build Coastguard Worker- [childrouterlinks](#childrouterlinks) 116*cfb92d14SAndroid Build Coastguard Worker- [scan](#scan-channel) 117*cfb92d14SAndroid Build Coastguard Worker- [service](#service) 118*cfb92d14SAndroid Build Coastguard Worker- [singleton](#singleton) 119*cfb92d14SAndroid Build Coastguard Worker- [sntp](#sntp-query-sntp-server-ip-sntp-server-port) 120*cfb92d14SAndroid Build Coastguard Worker- [state](#state) 121*cfb92d14SAndroid Build Coastguard Worker- [srp](README_SRP.md) 122*cfb92d14SAndroid Build Coastguard Worker- [tcat](README_TCAT.md) 123*cfb92d14SAndroid Build Coastguard Worker- [tcp](README_TCP.md) 124*cfb92d14SAndroid Build Coastguard Worker- [test](#test-tmforiginfilter-enabledisable) 125*cfb92d14SAndroid Build Coastguard Worker- [thread](#thread-start) 126*cfb92d14SAndroid Build Coastguard Worker- [timeinqueue](#timeinqueue) 127*cfb92d14SAndroid Build Coastguard Worker- [trel](#trel) 128*cfb92d14SAndroid Build Coastguard Worker- [tvcheck](#tvcheck-enable) 129*cfb92d14SAndroid Build Coastguard Worker- [txpower](#txpower) 130*cfb92d14SAndroid Build Coastguard Worker- [udp](README_UDP.md) 131*cfb92d14SAndroid Build Coastguard Worker- [unsecureport](#unsecureport-add-port) 132*cfb92d14SAndroid Build Coastguard Worker- [uptime](#uptime) 133*cfb92d14SAndroid Build Coastguard Worker- [vendor](#vendor-name) 134*cfb92d14SAndroid Build Coastguard Worker- [verhoeff](#verhoeff-calculate) 135*cfb92d14SAndroid Build Coastguard Worker- [version](#version) 136*cfb92d14SAndroid Build Coastguard Worker 137*cfb92d14SAndroid Build Coastguard Worker## OpenThread Command Details 138*cfb92d14SAndroid Build Coastguard Worker 139*cfb92d14SAndroid Build Coastguard Worker### bbr 140*cfb92d14SAndroid Build Coastguard Worker 141*cfb92d14SAndroid Build Coastguard WorkerShow current Primary Backbone Router information for Thread 1.2 device. 142*cfb92d14SAndroid Build Coastguard Worker 143*cfb92d14SAndroid Build Coastguard Worker```bash 144*cfb92d14SAndroid Build Coastguard Worker> bbr 145*cfb92d14SAndroid Build Coastguard WorkerBBR Primary: 146*cfb92d14SAndroid Build Coastguard Workerserver16: 0xE400 147*cfb92d14SAndroid Build Coastguard Workerseqno: 10 148*cfb92d14SAndroid Build Coastguard Workerdelay: 120 secs 149*cfb92d14SAndroid Build Coastguard Workertimeout: 300 secs 150*cfb92d14SAndroid Build Coastguard WorkerDone 151*cfb92d14SAndroid Build Coastguard Worker``` 152*cfb92d14SAndroid Build Coastguard Worker 153*cfb92d14SAndroid Build Coastguard Worker```bash 154*cfb92d14SAndroid Build Coastguard Worker> bbr 155*cfb92d14SAndroid Build Coastguard WorkerBBR Primary: None 156*cfb92d14SAndroid Build Coastguard WorkerDone 157*cfb92d14SAndroid Build Coastguard Worker``` 158*cfb92d14SAndroid Build Coastguard Worker 159*cfb92d14SAndroid Build Coastguard Worker### bbr mgmt dua \<status\|coap-code\> [meshLocalIid] 160*cfb92d14SAndroid Build Coastguard Worker 161*cfb92d14SAndroid Build Coastguard WorkerConfigure the response status for DUA.req with meshLocalIid in payload. Without meshLocalIid, simply respond any coming DUA.req next with the specified status or COAP code. 162*cfb92d14SAndroid Build Coastguard Worker 163*cfb92d14SAndroid Build Coastguard WorkerOnly for testing/reference device. 164*cfb92d14SAndroid Build Coastguard Worker 165*cfb92d14SAndroid Build Coastguard Workerknown status value: 166*cfb92d14SAndroid Build Coastguard Worker 167*cfb92d14SAndroid Build Coastguard Worker- 0: ST_DUA_SUCCESS 168*cfb92d14SAndroid Build Coastguard Worker- 1: ST_DUA_REREGISTER 169*cfb92d14SAndroid Build Coastguard Worker- 2: ST_DUA_INVALID 170*cfb92d14SAndroid Build Coastguard Worker- 3: ST_DUA_DUPLICATE 171*cfb92d14SAndroid Build Coastguard Worker- 4: ST_DUA_NO_RESOURCES 172*cfb92d14SAndroid Build Coastguard Worker- 5: ST_DUA_BBR_NOT_PRIMARY 173*cfb92d14SAndroid Build Coastguard Worker- 6: ST_DUA_GENERAL_FAILURE 174*cfb92d14SAndroid Build Coastguard Worker- 160: COAP code 5.00 175*cfb92d14SAndroid Build Coastguard Worker 176*cfb92d14SAndroid Build Coastguard Worker```bash 177*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt dua 1 2f7c235e5025a2fd 178*cfb92d14SAndroid Build Coastguard WorkerDone 179*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt dua 160 180*cfb92d14SAndroid Build Coastguard WorkerDone 181*cfb92d14SAndroid Build Coastguard Worker``` 182*cfb92d14SAndroid Build Coastguard Worker 183*cfb92d14SAndroid Build Coastguard Worker### bbr mgmt mlr listener 184*cfb92d14SAndroid Build Coastguard Worker 185*cfb92d14SAndroid Build Coastguard WorkerShow the Multicast Listeners. 186*cfb92d14SAndroid Build Coastguard Worker 187*cfb92d14SAndroid Build Coastguard WorkerOnly for testing/reference Backbone Router device. 188*cfb92d14SAndroid Build Coastguard Worker 189*cfb92d14SAndroid Build Coastguard Worker```bash 190*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt mlr listener 191*cfb92d14SAndroid Build Coastguard Workerff04:0:0:0:0:0:0:abcd 3534000 192*cfb92d14SAndroid Build Coastguard Workerff04:0:0:0:0:0:0:eeee 3537610 193*cfb92d14SAndroid Build Coastguard WorkerDone 194*cfb92d14SAndroid Build Coastguard Worker``` 195*cfb92d14SAndroid Build Coastguard Worker 196*cfb92d14SAndroid Build Coastguard Worker### bbr mgmt mlr listener add \<ipaddr\> \[\<timeout\>\] 197*cfb92d14SAndroid Build Coastguard Worker 198*cfb92d14SAndroid Build Coastguard WorkerAdd a Multicast Listener with a given IPv6 multicast address and timeout (in seconds). 199*cfb92d14SAndroid Build Coastguard Worker 200*cfb92d14SAndroid Build Coastguard WorkerOnly for testing/reference Backbone Router device. 201*cfb92d14SAndroid Build Coastguard Worker 202*cfb92d14SAndroid Build Coastguard Worker```bash 203*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt mlr listener add ff04::1 204*cfb92d14SAndroid Build Coastguard WorkerDone 205*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt mlr listener add ff04::2 300 206*cfb92d14SAndroid Build Coastguard WorkerDone 207*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt mlr listener 208*cfb92d14SAndroid Build Coastguard Workerff04:0:0:0:0:0:0:2 261 209*cfb92d14SAndroid Build Coastguard Workerff04:0:0:0:0:0:0:1 3522 210*cfb92d14SAndroid Build Coastguard WorkerDone 211*cfb92d14SAndroid Build Coastguard Worker``` 212*cfb92d14SAndroid Build Coastguard Worker 213*cfb92d14SAndroid Build Coastguard Worker### bbr mgmt mlr listener clear 214*cfb92d14SAndroid Build Coastguard Worker 215*cfb92d14SAndroid Build Coastguard WorkerRemoves all the Multicast Listeners. 216*cfb92d14SAndroid Build Coastguard Worker 217*cfb92d14SAndroid Build Coastguard WorkerOnly for testing/reference Backbone Router device. 218*cfb92d14SAndroid Build Coastguard Worker 219*cfb92d14SAndroid Build Coastguard Worker```bash 220*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt mlr listener clear 221*cfb92d14SAndroid Build Coastguard WorkerDone 222*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt mlr listener 223*cfb92d14SAndroid Build Coastguard WorkerDone 224*cfb92d14SAndroid Build Coastguard Worker``` 225*cfb92d14SAndroid Build Coastguard Worker 226*cfb92d14SAndroid Build Coastguard Worker### bbr mgmt mlr response \<status\> 227*cfb92d14SAndroid Build Coastguard Worker 228*cfb92d14SAndroid Build Coastguard WorkerConfigure the response status for the next MLR.req. 229*cfb92d14SAndroid Build Coastguard Worker 230*cfb92d14SAndroid Build Coastguard WorkerOnly for testing/reference device. 231*cfb92d14SAndroid Build Coastguard Worker 232*cfb92d14SAndroid Build Coastguard WorkerKnown status values: 233*cfb92d14SAndroid Build Coastguard Worker 234*cfb92d14SAndroid Build Coastguard Worker- 0: ST_MLR_SUCCESS 235*cfb92d14SAndroid Build Coastguard Worker- 2: ST_MLR_INVALID 236*cfb92d14SAndroid Build Coastguard Worker- 3: ST_MLR_NO_PERSISTENT 237*cfb92d14SAndroid Build Coastguard Worker- 4: ST_MLR_NO_RESOURCES 238*cfb92d14SAndroid Build Coastguard Worker- 5: ST_MLR_BBR_NOT_PRIMARY 239*cfb92d14SAndroid Build Coastguard Worker- 6: ST_MLR_GENERAL_FAILURE 240*cfb92d14SAndroid Build Coastguard Worker 241*cfb92d14SAndroid Build Coastguard Worker```bash 242*cfb92d14SAndroid Build Coastguard Worker> bbr mgmt mlr response 2 243*cfb92d14SAndroid Build Coastguard WorkerDone 244*cfb92d14SAndroid Build Coastguard Worker``` 245*cfb92d14SAndroid Build Coastguard Worker 246*cfb92d14SAndroid Build Coastguard Worker### bbr state 247*cfb92d14SAndroid Build Coastguard Worker 248*cfb92d14SAndroid Build Coastguard WorkerShow local Backbone state ([`Disabled`,`Primary`, `Secondary`]) for Thread 1.2 FTD. 249*cfb92d14SAndroid Build Coastguard Worker 250*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 251*cfb92d14SAndroid Build Coastguard Worker 252*cfb92d14SAndroid Build Coastguard Worker```bash 253*cfb92d14SAndroid Build Coastguard Worker> bbr state 254*cfb92d14SAndroid Build Coastguard WorkerDisabled 255*cfb92d14SAndroid Build Coastguard WorkerDone 256*cfb92d14SAndroid Build Coastguard Worker 257*cfb92d14SAndroid Build Coastguard Worker> bbr state 258*cfb92d14SAndroid Build Coastguard WorkerPrimary 259*cfb92d14SAndroid Build Coastguard WorkerDone 260*cfb92d14SAndroid Build Coastguard Worker 261*cfb92d14SAndroid Build Coastguard Worker> bbr state 262*cfb92d14SAndroid Build Coastguard WorkerSecondary 263*cfb92d14SAndroid Build Coastguard WorkerDone 264*cfb92d14SAndroid Build Coastguard Worker``` 265*cfb92d14SAndroid Build Coastguard Worker 266*cfb92d14SAndroid Build Coastguard Worker### bbr enable 267*cfb92d14SAndroid Build Coastguard Worker 268*cfb92d14SAndroid Build Coastguard WorkerEnable Backbone Router Service for Thread 1.2 FTD. `SRV_DATA.ntf` would be triggered for attached device if there is no Backbone Router Service in Thread Network Data. 269*cfb92d14SAndroid Build Coastguard Worker 270*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 271*cfb92d14SAndroid Build Coastguard Worker 272*cfb92d14SAndroid Build Coastguard Worker```bash 273*cfb92d14SAndroid Build Coastguard Worker> bbr enable 274*cfb92d14SAndroid Build Coastguard WorkerDone 275*cfb92d14SAndroid Build Coastguard Worker``` 276*cfb92d14SAndroid Build Coastguard Worker 277*cfb92d14SAndroid Build Coastguard Worker### bbr disable 278*cfb92d14SAndroid Build Coastguard Worker 279*cfb92d14SAndroid Build Coastguard WorkerDisable Backbone Router Service for Thread 1.2 FTD. `SRV_DATA.ntf` would be triggered if Backbone Router is Primary state. o `OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 280*cfb92d14SAndroid Build Coastguard Worker 281*cfb92d14SAndroid Build Coastguard Worker```bash 282*cfb92d14SAndroid Build Coastguard Worker> bbr disable 283*cfb92d14SAndroid Build Coastguard WorkerDone 284*cfb92d14SAndroid Build Coastguard Worker``` 285*cfb92d14SAndroid Build Coastguard Worker 286*cfb92d14SAndroid Build Coastguard Worker### bbr register 287*cfb92d14SAndroid Build Coastguard Worker 288*cfb92d14SAndroid Build Coastguard WorkerRegister Backbone Router Service for Thread 1.2 FTD. `SRV_DATA.ntf` would be triggered for attached device. 289*cfb92d14SAndroid Build Coastguard Worker 290*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 291*cfb92d14SAndroid Build Coastguard Worker 292*cfb92d14SAndroid Build Coastguard Worker```bash 293*cfb92d14SAndroid Build Coastguard Worker> bbr register 294*cfb92d14SAndroid Build Coastguard WorkerDone 295*cfb92d14SAndroid Build Coastguard Worker``` 296*cfb92d14SAndroid Build Coastguard Worker 297*cfb92d14SAndroid Build Coastguard Worker### bbr config 298*cfb92d14SAndroid Build Coastguard Worker 299*cfb92d14SAndroid Build Coastguard WorkerShow local Backbone Router configuration for Thread 1.2 FTD. 300*cfb92d14SAndroid Build Coastguard Worker 301*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 302*cfb92d14SAndroid Build Coastguard Worker 303*cfb92d14SAndroid Build Coastguard Worker```bash 304*cfb92d14SAndroid Build Coastguard Worker> bbr config 305*cfb92d14SAndroid Build Coastguard Workerseqno: 10 306*cfb92d14SAndroid Build Coastguard Workerdelay: 120 secs 307*cfb92d14SAndroid Build Coastguard Workertimeout: 300 secs 308*cfb92d14SAndroid Build Coastguard WorkerDone 309*cfb92d14SAndroid Build Coastguard Worker``` 310*cfb92d14SAndroid Build Coastguard Worker 311*cfb92d14SAndroid Build Coastguard Worker### bbr config \[seqno \<seqno\>\] \[delay \<delay\>\] \[timeout \<timeout\>\] 312*cfb92d14SAndroid Build Coastguard Worker 313*cfb92d14SAndroid Build Coastguard WorkerConfigure local Backbone Router configuration for Thread 1.2 FTD. `bbr register` should be issued explicitly to register Backbone Router service to Leader for Secondary Backbone Router. `SRV_DATA.ntf` would be initiated automatically if BBR Dataset changes for Primary Backbone Router. 314*cfb92d14SAndroid Build Coastguard Worker 315*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 316*cfb92d14SAndroid Build Coastguard Worker 317*cfb92d14SAndroid Build Coastguard Worker```bash 318*cfb92d14SAndroid Build Coastguard Worker> bbr config seqno 20 delay 30 319*cfb92d14SAndroid Build Coastguard WorkerDone 320*cfb92d14SAndroid Build Coastguard Worker``` 321*cfb92d14SAndroid Build Coastguard Worker 322*cfb92d14SAndroid Build Coastguard Worker### bbr jitter 323*cfb92d14SAndroid Build Coastguard Worker 324*cfb92d14SAndroid Build Coastguard WorkerShow jitter (in seconds) for Backbone Router registration for Thread 1.2 FTD. 325*cfb92d14SAndroid Build Coastguard Worker 326*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 327*cfb92d14SAndroid Build Coastguard Worker 328*cfb92d14SAndroid Build Coastguard Worker```bash 329*cfb92d14SAndroid Build Coastguard Worker> bbr jitter 330*cfb92d14SAndroid Build Coastguard Worker20 331*cfb92d14SAndroid Build Coastguard WorkerDone 332*cfb92d14SAndroid Build Coastguard Worker``` 333*cfb92d14SAndroid Build Coastguard Worker 334*cfb92d14SAndroid Build Coastguard Worker### bbr jitter \<jitter\> 335*cfb92d14SAndroid Build Coastguard Worker 336*cfb92d14SAndroid Build Coastguard WorkerSet jitter (in seconds) for Backbone Router registration for Thread 1.2 FTD. 337*cfb92d14SAndroid Build Coastguard Worker 338*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE` is required. 339*cfb92d14SAndroid Build Coastguard Worker 340*cfb92d14SAndroid Build Coastguard Worker```bash 341*cfb92d14SAndroid Build Coastguard Worker> bbr jitter 10 342*cfb92d14SAndroid Build Coastguard WorkerDone 343*cfb92d14SAndroid Build Coastguard Worker``` 344*cfb92d14SAndroid Build Coastguard Worker 345*cfb92d14SAndroid Build Coastguard Worker### ba 346*cfb92d14SAndroid Build Coastguard Worker 347*cfb92d14SAndroid Build Coastguard WorkerShow current Border Agent information. 348*cfb92d14SAndroid Build Coastguard Worker 349*cfb92d14SAndroid Build Coastguard Worker### ba port 350*cfb92d14SAndroid Build Coastguard Worker 351*cfb92d14SAndroid Build Coastguard WorkerPrint border agent service port. 352*cfb92d14SAndroid Build Coastguard Worker 353*cfb92d14SAndroid Build Coastguard Worker```bash 354*cfb92d14SAndroid Build Coastguard Worker> ba port 355*cfb92d14SAndroid Build Coastguard Worker49152 356*cfb92d14SAndroid Build Coastguard WorkerDone 357*cfb92d14SAndroid Build Coastguard Worker``` 358*cfb92d14SAndroid Build Coastguard Worker 359*cfb92d14SAndroid Build Coastguard Worker### ba state 360*cfb92d14SAndroid Build Coastguard Worker 361*cfb92d14SAndroid Build Coastguard WorkerPrint border agent state. 362*cfb92d14SAndroid Build Coastguard Worker 363*cfb92d14SAndroid Build Coastguard WorkerPossible states are 364*cfb92d14SAndroid Build Coastguard Worker 365*cfb92d14SAndroid Build Coastguard Worker- `Stopped` : Border Agent is stopped. 366*cfb92d14SAndroid Build Coastguard Worker- `Started` : Border Agent is running with no active connection with external commissioner. 367*cfb92d14SAndroid Build Coastguard Worker- `Active` : Border Agent is running and is connected with an external commissioner. 368*cfb92d14SAndroid Build Coastguard Worker 369*cfb92d14SAndroid Build Coastguard Worker```bash 370*cfb92d14SAndroid Build Coastguard Worker> ba state 371*cfb92d14SAndroid Build Coastguard WorkerStarted 372*cfb92d14SAndroid Build Coastguard WorkerDone 373*cfb92d14SAndroid Build Coastguard Worker``` 374*cfb92d14SAndroid Build Coastguard Worker 375*cfb92d14SAndroid Build Coastguard Worker### ba disconnect 376*cfb92d14SAndroid Build Coastguard Worker 377*cfb92d14SAndroid Build Coastguard WorkerDisconnects border agent from any active secure sessions. 378*cfb92d14SAndroid Build Coastguard Worker 379*cfb92d14SAndroid Build Coastguard Worker```bash 380*cfb92d14SAndroid Build Coastguard Worker> ba disconnect 381*cfb92d14SAndroid Build Coastguard WorkerDone 382*cfb92d14SAndroid Build Coastguard Worker``` 383*cfb92d14SAndroid Build Coastguard Worker 384*cfb92d14SAndroid Build Coastguard Worker### ba ephemeralkey 385*cfb92d14SAndroid Build Coastguard Worker 386*cfb92d14SAndroid Build Coastguard WorkerIndicates if an ephemeral key is active. 387*cfb92d14SAndroid Build Coastguard Worker 388*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE`. 389*cfb92d14SAndroid Build Coastguard Worker 390*cfb92d14SAndroid Build Coastguard Worker```bash 391*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey 392*cfb92d14SAndroid Build Coastguard Workerinactive 393*cfb92d14SAndroid Build Coastguard WorkerDone 394*cfb92d14SAndroid Build Coastguard Worker 395*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey set Z10X20g3J15w1000P60m16 1000 396*cfb92d14SAndroid Build Coastguard WorkerDone 397*cfb92d14SAndroid Build Coastguard Worker 398*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey 399*cfb92d14SAndroid Build Coastguard Workeractive 400*cfb92d14SAndroid Build Coastguard WorkerDone 401*cfb92d14SAndroid Build Coastguard Worker``` 402*cfb92d14SAndroid Build Coastguard Worker 403*cfb92d14SAndroid Build Coastguard Worker### ba ephemeralkey set \<keystring\> \[timeout\] \[port\] 404*cfb92d14SAndroid Build Coastguard Worker 405*cfb92d14SAndroid Build Coastguard WorkerSets the ephemeral key for a given timeout duration. 406*cfb92d14SAndroid Build Coastguard Worker 407*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE`. 408*cfb92d14SAndroid Build Coastguard Worker 409*cfb92d14SAndroid Build Coastguard WorkerThe ephemeral key can be set when Border Agent is already running and is not currently connected to any external commissioner (i.e., `ba state` gives `Started`). 410*cfb92d14SAndroid Build Coastguard Worker 411*cfb92d14SAndroid Build Coastguard WorkerThe `keystring` string is directly used as the ephemeral PSK (excluding the trailing null `\0` character). Its length MUST be between 6 and 32, inclusive. 412*cfb92d14SAndroid Build Coastguard Worker 413*cfb92d14SAndroid Build Coastguard WorkerThe `timeout` is in milliseconds. If not provided or set to zero, the default value of 2 minutes will be used. If the timeout value is larger than 10 minutes, the 10 minutes timeout value will be used instead. 414*cfb92d14SAndroid Build Coastguard Worker 415*cfb92d14SAndroid Build Coastguard WorkerThe `port` specifies the UDP port to use with the ephemeral key. If UDP port is zero or is not provided, an ephemeral port will be used. `ba port` will give the current UDP port in use by the Border Agent. 416*cfb92d14SAndroid Build Coastguard Worker 417*cfb92d14SAndroid Build Coastguard WorkerSetting the ephemeral key again before a previously set one is timed out, will replace the previous one. 418*cfb92d14SAndroid Build Coastguard Worker 419*cfb92d14SAndroid Build Coastguard WorkerDuring the timeout interval, the ephemeral key can be used only once by an external commissioner to establish a connection. After the commissioner disconnects, the ephemeral key is cleared, and the Border Agent reverts to using PSKc. If the timeout expires while a commissioner is still connected, the session will be terminated, and the Border Agent will cease using the ephemeral key and revert to PSKc. 420*cfb92d14SAndroid Build Coastguard Worker 421*cfb92d14SAndroid Build Coastguard Worker```bash 422*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey set Z10X20g3J15w1000P60m16 5000 1234 423*cfb92d14SAndroid Build Coastguard WorkerDone 424*cfb92d14SAndroid Build Coastguard Worker``` 425*cfb92d14SAndroid Build Coastguard Worker 426*cfb92d14SAndroid Build Coastguard Worker### ba ephemeralkey clear 427*cfb92d14SAndroid Build Coastguard Worker 428*cfb92d14SAndroid Build Coastguard WorkerCancels the ephemeral key in use if any. 429*cfb92d14SAndroid Build Coastguard Worker 430*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE`. 431*cfb92d14SAndroid Build Coastguard Worker 432*cfb92d14SAndroid Build Coastguard WorkerCan be used to cancel a previously set ephemeral key before it is used or times out. If the Border Agent is not running or there is no ephemeral key in use, calling this function has no effect. 433*cfb92d14SAndroid Build Coastguard Worker 434*cfb92d14SAndroid Build Coastguard WorkerIf a commissioner is connected using the ephemeral key and is currently active, calling this method does not change its state. In this case the `ba ephemeralkey` will continue to return `active` until the commissioner disconnects. 435*cfb92d14SAndroid Build Coastguard Worker 436*cfb92d14SAndroid Build Coastguard Worker```bash 437*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey clear 438*cfb92d14SAndroid Build Coastguard WorkerDone 439*cfb92d14SAndroid Build Coastguard Worker``` 440*cfb92d14SAndroid Build Coastguard Worker 441*cfb92d14SAndroid Build Coastguard Worker### ba ephemeralkey callback enable 442*cfb92d14SAndroid Build Coastguard Worker 443*cfb92d14SAndroid Build Coastguard WorkerEnables callback from Border Agent for ephemeral key state changes. 444*cfb92d14SAndroid Build Coastguard Worker 445*cfb92d14SAndroid Build Coastguard Worker```bash 446*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey callback enable 447*cfb92d14SAndroid Build Coastguard WorkerDone 448*cfb92d14SAndroid Build Coastguard Worker 449*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey set W10X12 5000 49155 450*cfb92d14SAndroid Build Coastguard WorkerDone 451*cfb92d14SAndroid Build Coastguard Worker 452*cfb92d14SAndroid Build Coastguard WorkerBorderAgent callback: Ephemeral key active, port:49155 453*cfb92d14SAndroid Build Coastguard WorkerBorderAgent callback: Ephemeral key inactive 454*cfb92d14SAndroid Build Coastguard Worker``` 455*cfb92d14SAndroid Build Coastguard Worker 456*cfb92d14SAndroid Build Coastguard Worker### ba ephemeralkey callback disable 457*cfb92d14SAndroid Build Coastguard Worker 458*cfb92d14SAndroid Build Coastguard WorkerDisables callback from Border Agent for ephemeral key state changes. 459*cfb92d14SAndroid Build Coastguard Worker 460*cfb92d14SAndroid Build Coastguard Worker```bash 461*cfb92d14SAndroid Build Coastguard Worker> ba ephemeralkey callback disable 462*cfb92d14SAndroid Build Coastguard WorkerDone 463*cfb92d14SAndroid Build Coastguard Worker``` 464*cfb92d14SAndroid Build Coastguard Worker 465*cfb92d14SAndroid Build Coastguard Worker### ba counters 466*cfb92d14SAndroid Build Coastguard Worker 467*cfb92d14SAndroid Build Coastguard WorkerGet the border agent counter values. 468*cfb92d14SAndroid Build Coastguard Worker 469*cfb92d14SAndroid Build Coastguard WorkerNote that it requires `OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE` to output the ePSKc counters. 470*cfb92d14SAndroid Build Coastguard Worker 471*cfb92d14SAndroid Build Coastguard Worker```bash 472*cfb92d14SAndroid Build Coastguard Worker> ba counters 473*cfb92d14SAndroid Build Coastguard WorkerepskcActivation: 2 474*cfb92d14SAndroid Build Coastguard WorkerepskcApiDeactivation: 1 475*cfb92d14SAndroid Build Coastguard WorkerepskcTimeoutDeactivation: 1 476*cfb92d14SAndroid Build Coastguard WorkerepskcMaxAttemptDeactivation: 0 477*cfb92d14SAndroid Build Coastguard WorkerepskcDisconnectDeactivation: 0 478*cfb92d14SAndroid Build Coastguard WorkerepskcInvalidBaStateError: 1 479*cfb92d14SAndroid Build Coastguard WorkerepskcInvalidArgsError: 1 480*cfb92d14SAndroid Build Coastguard WorkerepskcStartSecureSessionError: 0 481*cfb92d14SAndroid Build Coastguard WorkerepskcSecureSessionSuccess: 0 482*cfb92d14SAndroid Build Coastguard WorkerepskcSecureSessionFailure: 0 483*cfb92d14SAndroid Build Coastguard WorkerepskcCommissionerPetition: 0 484*cfb92d14SAndroid Build Coastguard WorkerpskcSecureSessionSuccess: 0 485*cfb92d14SAndroid Build Coastguard WorkerpskcSecureSessionFailure: 0 486*cfb92d14SAndroid Build Coastguard WorkerpskcCommissionerPetition: 0 487*cfb92d14SAndroid Build Coastguard WorkermgmtActiveGet: 0 488*cfb92d14SAndroid Build Coastguard WorkermgmtPendingGet: 0 489*cfb92d14SAndroid Build Coastguard WorkerDone 490*cfb92d14SAndroid Build Coastguard Worker``` 491*cfb92d14SAndroid Build Coastguard Worker 492*cfb92d14SAndroid Build Coastguard Worker### bufferinfo 493*cfb92d14SAndroid Build Coastguard Worker 494*cfb92d14SAndroid Build Coastguard WorkerShow the current message buffer information. 495*cfb92d14SAndroid Build Coastguard Worker 496*cfb92d14SAndroid Build Coastguard Worker- The `total` shows total number of message buffers in pool. 497*cfb92d14SAndroid Build Coastguard Worker- The `free` shows the number of free message buffers. 498*cfb92d14SAndroid Build Coastguard Worker- The `max-used` shows the maximum number of used buffers at the same time since OT stack initialization or last `bufferinfo reset`. 499*cfb92d14SAndroid Build Coastguard Worker- This is then followed by info about different queues used by OpenThread stack, each line representing info about a queue. 500*cfb92d14SAndroid Build Coastguard Worker - The first number shows number messages in the queue. 501*cfb92d14SAndroid Build Coastguard Worker - The second number shows number of buffers used by all messages in the queue. 502*cfb92d14SAndroid Build Coastguard Worker - The third number shows total number of bytes of all messages in the queue. 503*cfb92d14SAndroid Build Coastguard Worker 504*cfb92d14SAndroid Build Coastguard Worker```bash 505*cfb92d14SAndroid Build Coastguard Worker> bufferinfo 506*cfb92d14SAndroid Build Coastguard Workertotal: 40 507*cfb92d14SAndroid Build Coastguard Workerfree: 40 508*cfb92d14SAndroid Build Coastguard Workermax-used: 5 509*cfb92d14SAndroid Build Coastguard Worker6lo send: 0 0 0 510*cfb92d14SAndroid Build Coastguard Worker6lo reas: 0 0 0 511*cfb92d14SAndroid Build Coastguard Workerip6: 0 0 0 512*cfb92d14SAndroid Build Coastguard Workermpl: 0 0 0 513*cfb92d14SAndroid Build Coastguard Workermle: 0 0 0 514*cfb92d14SAndroid Build Coastguard Workercoap: 0 0 0 515*cfb92d14SAndroid Build Coastguard Workercoap secure: 0 0 0 516*cfb92d14SAndroid Build Coastguard Workerapplication coap: 0 0 0 517*cfb92d14SAndroid Build Coastguard WorkerDone 518*cfb92d14SAndroid Build Coastguard Worker``` 519*cfb92d14SAndroid Build Coastguard Worker 520*cfb92d14SAndroid Build Coastguard Worker### bufferinfo reset 521*cfb92d14SAndroid Build Coastguard Worker 522*cfb92d14SAndroid Build Coastguard WorkerReset the message buffer counter tracking maximum number buffers in use at the same time. 523*cfb92d14SAndroid Build Coastguard Worker 524*cfb92d14SAndroid Build Coastguard Worker```bash 525*cfb92d14SAndroid Build Coastguard Worker> bufferinfo reset 526*cfb92d14SAndroid Build Coastguard WorkerDone 527*cfb92d14SAndroid Build Coastguard Worker``` 528*cfb92d14SAndroid Build Coastguard Worker 529*cfb92d14SAndroid Build Coastguard Worker### ccathreshold 530*cfb92d14SAndroid Build Coastguard Worker 531*cfb92d14SAndroid Build Coastguard WorkerGet the CCA threshold in dBm measured at antenna connector per IEEE 802.15.4 - 2015 section 10.1.4. 532*cfb92d14SAndroid Build Coastguard Worker 533*cfb92d14SAndroid Build Coastguard Worker```bash 534*cfb92d14SAndroid Build Coastguard Worker> ccathreshold 535*cfb92d14SAndroid Build Coastguard Worker-75 dBm 536*cfb92d14SAndroid Build Coastguard WorkerDone 537*cfb92d14SAndroid Build Coastguard Worker``` 538*cfb92d14SAndroid Build Coastguard Worker 539*cfb92d14SAndroid Build Coastguard Worker### ccathreshold \<ccathreshold\> 540*cfb92d14SAndroid Build Coastguard Worker 541*cfb92d14SAndroid Build Coastguard WorkerSet the CCA threshold measured at antenna connector per IEEE 802.15.4 - 2015 section 10.1.4. 542*cfb92d14SAndroid Build Coastguard Worker 543*cfb92d14SAndroid Build Coastguard Worker```bash 544*cfb92d14SAndroid Build Coastguard Worker> ccathreshold -62 545*cfb92d14SAndroid Build Coastguard WorkerDone 546*cfb92d14SAndroid Build Coastguard Worker``` 547*cfb92d14SAndroid Build Coastguard Worker 548*cfb92d14SAndroid Build Coastguard Worker### channel 549*cfb92d14SAndroid Build Coastguard Worker 550*cfb92d14SAndroid Build Coastguard WorkerGet the IEEE 802.15.4 Channel value. 551*cfb92d14SAndroid Build Coastguard Worker 552*cfb92d14SAndroid Build Coastguard Worker```bash 553*cfb92d14SAndroid Build Coastguard Worker> channel 554*cfb92d14SAndroid Build Coastguard Worker11 555*cfb92d14SAndroid Build Coastguard WorkerDone 556*cfb92d14SAndroid Build Coastguard Worker``` 557*cfb92d14SAndroid Build Coastguard Worker 558*cfb92d14SAndroid Build Coastguard Worker### channel \<channel\> 559*cfb92d14SAndroid Build Coastguard Worker 560*cfb92d14SAndroid Build Coastguard WorkerSet the IEEE 802.15.4 Channel value. 561*cfb92d14SAndroid Build Coastguard Worker 562*cfb92d14SAndroid Build Coastguard Worker```bash 563*cfb92d14SAndroid Build Coastguard Worker> channel 11 564*cfb92d14SAndroid Build Coastguard WorkerDone 565*cfb92d14SAndroid Build Coastguard Worker``` 566*cfb92d14SAndroid Build Coastguard Worker 567*cfb92d14SAndroid Build Coastguard Worker### channel manager 568*cfb92d14SAndroid Build Coastguard Worker 569*cfb92d14SAndroid Build Coastguard WorkerGet channel manager state. 570*cfb92d14SAndroid Build Coastguard Worker 571*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` is required. 572*cfb92d14SAndroid Build Coastguard Worker 573*cfb92d14SAndroid Build Coastguard Worker```bash 574*cfb92d14SAndroid Build Coastguard Workerchannel: 11 575*cfb92d14SAndroid Build Coastguard Workerauto: 1 576*cfb92d14SAndroid Build Coastguard Workerdelay: 120 577*cfb92d14SAndroid Build Coastguard Workerinterval: 10800 578*cfb92d14SAndroid Build Coastguard Workersupported: { 11-26} 579*cfb92d14SAndroid Build Coastguard Workerfavored: { 11-26} 580*cfb92d14SAndroid Build Coastguard WorkerDone 581*cfb92d14SAndroid Build Coastguard Worker``` 582*cfb92d14SAndroid Build Coastguard Worker 583*cfb92d14SAndroid Build Coastguard Worker### channel manager change \<channel\> 584*cfb92d14SAndroid Build Coastguard Worker 585*cfb92d14SAndroid Build Coastguard WorkerInitiate a channel change with the channel manager. 586*cfb92d14SAndroid Build Coastguard Worker 587*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` is required. 588*cfb92d14SAndroid Build Coastguard Worker 589*cfb92d14SAndroid Build Coastguard Worker```bash 590*cfb92d14SAndroid Build Coastguard Worker> channel manager change 11 591*cfb92d14SAndroid Build Coastguard Workerchannel manager change 11 592*cfb92d14SAndroid Build Coastguard WorkerDone 593*cfb92d14SAndroid Build Coastguard Worker``` 594*cfb92d14SAndroid Build Coastguard Worker 595*cfb92d14SAndroid Build Coastguard Worker### channel manager select \<skip quality check (boolean)\> 596*cfb92d14SAndroid Build Coastguard Worker 597*cfb92d14SAndroid Build Coastguard WorkerRequest a channel selection with the channel manager. 598*cfb92d14SAndroid Build Coastguard Worker 599*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` and `OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` are required. 600*cfb92d14SAndroid Build Coastguard Worker 601*cfb92d14SAndroid Build Coastguard Worker```bash 602*cfb92d14SAndroid Build Coastguard Worker> channel manager select 1 603*cfb92d14SAndroid Build Coastguard Workerchannel manager select 1 604*cfb92d14SAndroid Build Coastguard WorkerDone 605*cfb92d14SAndroid Build Coastguard Worker``` 606*cfb92d14SAndroid Build Coastguard Worker 607*cfb92d14SAndroid Build Coastguard Worker### channel manager auto \<enable (boolean)\> 608*cfb92d14SAndroid Build Coastguard Worker 609*cfb92d14SAndroid Build Coastguard WorkerEnable/disable the auto-channel-selection functionality. 610*cfb92d14SAndroid Build Coastguard Worker 611*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` and `OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` are required. 612*cfb92d14SAndroid Build Coastguard Worker 613*cfb92d14SAndroid Build Coastguard Worker```bash 614*cfb92d14SAndroid Build Coastguard Worker> channel manager auto 1 615*cfb92d14SAndroid Build Coastguard Workerchannel manager auto 1 616*cfb92d14SAndroid Build Coastguard WorkerDone 617*cfb92d14SAndroid Build Coastguard Worker``` 618*cfb92d14SAndroid Build Coastguard Worker 619*cfb92d14SAndroid Build Coastguard Worker### channel manager delay \<delay\> 620*cfb92d14SAndroid Build Coastguard Worker 621*cfb92d14SAndroid Build Coastguard WorkerSet the channel change delay (in seconds). 622*cfb92d14SAndroid Build Coastguard Worker 623*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` and `OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` are required. 624*cfb92d14SAndroid Build Coastguard Worker 625*cfb92d14SAndroid Build Coastguard Worker```bash 626*cfb92d14SAndroid Build Coastguard Worker> channel manager delay 120 627*cfb92d14SAndroid Build Coastguard Workerchannel manager delay 120 628*cfb92d14SAndroid Build Coastguard WorkerDone 629*cfb92d14SAndroid Build Coastguard Worker``` 630*cfb92d14SAndroid Build Coastguard Worker 631*cfb92d14SAndroid Build Coastguard Worker### channel manager interval \<interval\> 632*cfb92d14SAndroid Build Coastguard Worker 633*cfb92d14SAndroid Build Coastguard WorkerSet the auto-channel-selection interval (in seconds). 634*cfb92d14SAndroid Build Coastguard Worker 635*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` and `OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` are required. 636*cfb92d14SAndroid Build Coastguard Worker 637*cfb92d14SAndroid Build Coastguard Worker```bash 638*cfb92d14SAndroid Build Coastguard Worker> channel manager interval 10800 639*cfb92d14SAndroid Build Coastguard Workerchannel manager interval 10800 640*cfb92d14SAndroid Build Coastguard WorkerDone 641*cfb92d14SAndroid Build Coastguard Worker``` 642*cfb92d14SAndroid Build Coastguard Worker 643*cfb92d14SAndroid Build Coastguard Worker### channel manager supported \<mask\> 644*cfb92d14SAndroid Build Coastguard Worker 645*cfb92d14SAndroid Build Coastguard WorkerSet the supported channel mask for the auto-channel-selection. 646*cfb92d14SAndroid Build Coastguard Worker 647*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` and `OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` are required. 648*cfb92d14SAndroid Build Coastguard Worker 649*cfb92d14SAndroid Build Coastguard Worker```bash 650*cfb92d14SAndroid Build Coastguard Worker> channel manager supported 0x7fffc00 651*cfb92d14SAndroid Build Coastguard Workerchannel manager supported 0x7fffc00 652*cfb92d14SAndroid Build Coastguard WorkerDone 653*cfb92d14SAndroid Build Coastguard Worker``` 654*cfb92d14SAndroid Build Coastguard Worker 655*cfb92d14SAndroid Build Coastguard Worker### channel manager favored \<mask\> 656*cfb92d14SAndroid Build Coastguard Worker 657*cfb92d14SAndroid Build Coastguard WorkerSet the favored channel mask for the auto-channel-selection. 658*cfb92d14SAndroid Build Coastguard Worker 659*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE` and `OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` are required. 660*cfb92d14SAndroid Build Coastguard Worker 661*cfb92d14SAndroid Build Coastguard Worker```bash 662*cfb92d14SAndroid Build Coastguard Worker> channel manager favored 0x7fffc00 663*cfb92d14SAndroid Build Coastguard Workerchannel manager favored 0x7fffc00 664*cfb92d14SAndroid Build Coastguard WorkerDone 665*cfb92d14SAndroid Build Coastguard Worker``` 666*cfb92d14SAndroid Build Coastguard Worker 667*cfb92d14SAndroid Build Coastguard Worker### channel monitor 668*cfb92d14SAndroid Build Coastguard Worker 669*cfb92d14SAndroid Build Coastguard WorkerGet current channel monitor state and channel occupancy. 670*cfb92d14SAndroid Build Coastguard Worker 671*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` is required. 672*cfb92d14SAndroid Build Coastguard Worker 673*cfb92d14SAndroid Build Coastguard Worker```bash 674*cfb92d14SAndroid Build Coastguard Worker> channel monitor 675*cfb92d14SAndroid Build Coastguard Workerchannel monitor 676*cfb92d14SAndroid Build Coastguard Workerenabled: 1 677*cfb92d14SAndroid Build Coastguard Workerinterval: 41000 678*cfb92d14SAndroid Build Coastguard Workerthreshold: -75 679*cfb92d14SAndroid Build Coastguard Workerwindow: 960 680*cfb92d14SAndroid Build Coastguard Workercount: 10552 681*cfb92d14SAndroid Build Coastguard Workeroccupancies: 682*cfb92d14SAndroid Build Coastguard Workerch 11 (0x0cb7) 4.96% busy 683*cfb92d14SAndroid Build Coastguard Workerch 12 (0x2e2b) 18.03% busy 684*cfb92d14SAndroid Build Coastguard Workerch 13 (0x2f54) 18.48% busy 685*cfb92d14SAndroid Build Coastguard Workerch 14 (0x0fef) 6.22% busy 686*cfb92d14SAndroid Build Coastguard Workerch 15 (0x1536) 8.28% busy 687*cfb92d14SAndroid Build Coastguard Workerch 16 (0x1746) 9.09% busy 688*cfb92d14SAndroid Build Coastguard Workerch 17 (0x0b8b) 4.50% busy 689*cfb92d14SAndroid Build Coastguard Workerch 18 (0x60a7) 37.75% busy 690*cfb92d14SAndroid Build Coastguard Workerch 19 (0x0810) 3.14% busy 691*cfb92d14SAndroid Build Coastguard Workerch 20 (0x0c2a) 4.75% busy 692*cfb92d14SAndroid Build Coastguard Workerch 21 (0x08dc) 3.46% busy 693*cfb92d14SAndroid Build Coastguard Workerch 22 (0x101d) 6.29% busy 694*cfb92d14SAndroid Build Coastguard Workerch 23 (0x0092) 0.22% busy 695*cfb92d14SAndroid Build Coastguard Workerch 24 (0x0028) 0.06% busy 696*cfb92d14SAndroid Build Coastguard Workerch 25 (0x0063) 0.15% busy 697*cfb92d14SAndroid Build Coastguard Workerch 26 (0x058c) 2.16% busy 698*cfb92d14SAndroid Build Coastguard Worker 699*cfb92d14SAndroid Build Coastguard WorkerDone 700*cfb92d14SAndroid Build Coastguard Worker``` 701*cfb92d14SAndroid Build Coastguard Worker 702*cfb92d14SAndroid Build Coastguard Worker### channel monitor start 703*cfb92d14SAndroid Build Coastguard Worker 704*cfb92d14SAndroid Build Coastguard WorkerStart the channel monitor. 705*cfb92d14SAndroid Build Coastguard Worker 706*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` is required. 707*cfb92d14SAndroid Build Coastguard Worker 708*cfb92d14SAndroid Build Coastguard Worker```bash 709*cfb92d14SAndroid Build Coastguard Worker> channel monitor start 710*cfb92d14SAndroid Build Coastguard Workerchannel monitor start 711*cfb92d14SAndroid Build Coastguard WorkerDone 712*cfb92d14SAndroid Build Coastguard Worker``` 713*cfb92d14SAndroid Build Coastguard Worker 714*cfb92d14SAndroid Build Coastguard Worker### channel monitor stop 715*cfb92d14SAndroid Build Coastguard Worker 716*cfb92d14SAndroid Build Coastguard WorkerStop the channel monitor. 717*cfb92d14SAndroid Build Coastguard Worker 718*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE` is required. 719*cfb92d14SAndroid Build Coastguard Worker 720*cfb92d14SAndroid Build Coastguard Worker```bash 721*cfb92d14SAndroid Build Coastguard Worker> channel monitor stop 722*cfb92d14SAndroid Build Coastguard Workerchannel monitor stop 723*cfb92d14SAndroid Build Coastguard WorkerDone 724*cfb92d14SAndroid Build Coastguard Worker``` 725*cfb92d14SAndroid Build Coastguard Worker 726*cfb92d14SAndroid Build Coastguard Worker### channel preferred 727*cfb92d14SAndroid Build Coastguard Worker 728*cfb92d14SAndroid Build Coastguard WorkerGet preferred channel mask. 729*cfb92d14SAndroid Build Coastguard Worker 730*cfb92d14SAndroid Build Coastguard Worker```bash 731*cfb92d14SAndroid Build Coastguard Worker> channel preferred 732*cfb92d14SAndroid Build Coastguard Worker0x7fff800 733*cfb92d14SAndroid Build Coastguard WorkerDone 734*cfb92d14SAndroid Build Coastguard Worker``` 735*cfb92d14SAndroid Build Coastguard Worker 736*cfb92d14SAndroid Build Coastguard Worker### channel supported 737*cfb92d14SAndroid Build Coastguard Worker 738*cfb92d14SAndroid Build Coastguard WorkerGet supported channel mask. 739*cfb92d14SAndroid Build Coastguard Worker 740*cfb92d14SAndroid Build Coastguard Worker```bash 741*cfb92d14SAndroid Build Coastguard Worker> channel supported 742*cfb92d14SAndroid Build Coastguard Worker0x7fff800 743*cfb92d14SAndroid Build Coastguard WorkerDone 744*cfb92d14SAndroid Build Coastguard Worker``` 745*cfb92d14SAndroid Build Coastguard Worker 746*cfb92d14SAndroid Build Coastguard Worker### child list 747*cfb92d14SAndroid Build Coastguard Worker 748*cfb92d14SAndroid Build Coastguard WorkerList attached Child IDs. 749*cfb92d14SAndroid Build Coastguard Worker 750*cfb92d14SAndroid Build Coastguard Worker```bash 751*cfb92d14SAndroid Build Coastguard Worker> child list 752*cfb92d14SAndroid Build Coastguard Worker1 2 3 6 7 8 753*cfb92d14SAndroid Build Coastguard WorkerDone 754*cfb92d14SAndroid Build Coastguard Worker``` 755*cfb92d14SAndroid Build Coastguard Worker 756*cfb92d14SAndroid Build Coastguard Worker### child table 757*cfb92d14SAndroid Build Coastguard Worker 758*cfb92d14SAndroid Build Coastguard WorkerPrint table of attached children. 759*cfb92d14SAndroid Build Coastguard Worker 760*cfb92d14SAndroid Build Coastguard Worker```bash 761*cfb92d14SAndroid Build Coastguard Worker> child table 762*cfb92d14SAndroid Build Coastguard Worker| ID | RLOC16 | Timeout | Age | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt|Suprvsn| Extended MAC | 763*cfb92d14SAndroid Build Coastguard Worker+-----+--------+------------+------------+-------+------+-+-+-+---+---+-------+-------+------------------+ 764*cfb92d14SAndroid Build Coastguard Worker| 1 | 0xc801 | 240 | 24 | 3 | 131 |1|0|0| 3| 0 | 0 | 129 | 4ecede68435358ac | 765*cfb92d14SAndroid Build Coastguard Worker| 2 | 0xc802 | 240 | 2 | 3 | 131 |0|0|0| 3| 1 | 0 | 0 | a672a601d2ce37d8 | 766*cfb92d14SAndroid Build Coastguard WorkerDone 767*cfb92d14SAndroid Build Coastguard Worker``` 768*cfb92d14SAndroid Build Coastguard Worker 769*cfb92d14SAndroid Build Coastguard Worker### child \<id\> 770*cfb92d14SAndroid Build Coastguard Worker 771*cfb92d14SAndroid Build Coastguard WorkerPrint diagnostic information for an attached Thread Child. The `id` may be a Child ID or an RLOC16. 772*cfb92d14SAndroid Build Coastguard Worker 773*cfb92d14SAndroid Build Coastguard Worker```bash 774*cfb92d14SAndroid Build Coastguard Worker> child 1 775*cfb92d14SAndroid Build Coastguard WorkerChild ID: 1 776*cfb92d14SAndroid Build Coastguard WorkerRloc: 9c01 777*cfb92d14SAndroid Build Coastguard WorkerExt Addr: e2b3540590b0fd87 778*cfb92d14SAndroid Build Coastguard WorkerMode: rn 779*cfb92d14SAndroid Build Coastguard WorkerCSL Synchronized: 1 780*cfb92d14SAndroid Build Coastguard WorkerNet Data: 184 781*cfb92d14SAndroid Build Coastguard WorkerTimeout: 100 782*cfb92d14SAndroid Build Coastguard WorkerAge: 0 783*cfb92d14SAndroid Build Coastguard WorkerLink Quality In: 3 784*cfb92d14SAndroid Build Coastguard WorkerRSSI: -20 785*cfb92d14SAndroid Build Coastguard WorkerSupervision Interval: 129 786*cfb92d14SAndroid Build Coastguard WorkerDone 787*cfb92d14SAndroid Build Coastguard Worker``` 788*cfb92d14SAndroid Build Coastguard Worker 789*cfb92d14SAndroid Build Coastguard Worker### childip 790*cfb92d14SAndroid Build Coastguard Worker 791*cfb92d14SAndroid Build Coastguard WorkerGet the list of IP addresses stored for MTD children. 792*cfb92d14SAndroid Build Coastguard Worker 793*cfb92d14SAndroid Build Coastguard Worker```bash 794*cfb92d14SAndroid Build Coastguard Worker> childip 795*cfb92d14SAndroid Build Coastguard Worker3401: fdde:ad00:beef:0:3037:3e03:8c5f:bc0c 796*cfb92d14SAndroid Build Coastguard WorkerDone 797*cfb92d14SAndroid Build Coastguard Worker``` 798*cfb92d14SAndroid Build Coastguard Worker 799*cfb92d14SAndroid Build Coastguard Worker### childip max 800*cfb92d14SAndroid Build Coastguard Worker 801*cfb92d14SAndroid Build Coastguard WorkerGet the maximum number of IP addresses that each MTD child may register with this device as parent. 802*cfb92d14SAndroid Build Coastguard Worker 803*cfb92d14SAndroid Build Coastguard Worker```bash 804*cfb92d14SAndroid Build Coastguard Worker> childip max 805*cfb92d14SAndroid Build Coastguard Worker4 806*cfb92d14SAndroid Build Coastguard WorkerDone 807*cfb92d14SAndroid Build Coastguard Worker``` 808*cfb92d14SAndroid Build Coastguard Worker 809*cfb92d14SAndroid Build Coastguard Worker### childip max \<count\> 810*cfb92d14SAndroid Build Coastguard Worker 811*cfb92d14SAndroid Build Coastguard WorkerSet the maximum number of IP addresses that each MTD child may register with this device as parent. 0 to clear the setting and restore the default. 812*cfb92d14SAndroid Build Coastguard Worker 813*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is required. 814*cfb92d14SAndroid Build Coastguard Worker 815*cfb92d14SAndroid Build Coastguard Worker```bash 816*cfb92d14SAndroid Build Coastguard Worker> childip max 2 817*cfb92d14SAndroid Build Coastguard WorkerDone 818*cfb92d14SAndroid Build Coastguard Worker``` 819*cfb92d14SAndroid Build Coastguard Worker 820*cfb92d14SAndroid Build Coastguard Worker### childmax 821*cfb92d14SAndroid Build Coastguard Worker 822*cfb92d14SAndroid Build Coastguard WorkerGet the Thread maximum number of allowed children. 823*cfb92d14SAndroid Build Coastguard Worker 824*cfb92d14SAndroid Build Coastguard Worker```bash 825*cfb92d14SAndroid Build Coastguard Worker> childmax 826*cfb92d14SAndroid Build Coastguard Worker5 827*cfb92d14SAndroid Build Coastguard WorkerDone 828*cfb92d14SAndroid Build Coastguard Worker``` 829*cfb92d14SAndroid Build Coastguard Worker 830*cfb92d14SAndroid Build Coastguard Worker### childmax \<count\> 831*cfb92d14SAndroid Build Coastguard Worker 832*cfb92d14SAndroid Build Coastguard WorkerSet the Thread maximum number of allowed children. 833*cfb92d14SAndroid Build Coastguard Worker 834*cfb92d14SAndroid Build Coastguard Worker```bash 835*cfb92d14SAndroid Build Coastguard Worker> childmax 2 836*cfb92d14SAndroid Build Coastguard WorkerDone 837*cfb92d14SAndroid Build Coastguard Worker``` 838*cfb92d14SAndroid Build Coastguard Worker 839*cfb92d14SAndroid Build Coastguard Worker### childsupervision interval 840*cfb92d14SAndroid Build Coastguard Worker 841*cfb92d14SAndroid Build Coastguard WorkerGet the Child Supervision interval value on the child. 842*cfb92d14SAndroid Build Coastguard Worker 843*cfb92d14SAndroid Build Coastguard WorkerChild Supervision feature provides a mechanism for parent to ensure that a message is sent to each sleepy child within the supervision interval. If there is no transmission to the child within the supervision interval, OpenThread enqueues and sends a Child Supervision Message to the child. 844*cfb92d14SAndroid Build Coastguard Worker 845*cfb92d14SAndroid Build Coastguard Worker```bash 846*cfb92d14SAndroid Build Coastguard Worker> childsupervision interval 847*cfb92d14SAndroid Build Coastguard Worker30 848*cfb92d14SAndroid Build Coastguard WorkerDone 849*cfb92d14SAndroid Build Coastguard Worker``` 850*cfb92d14SAndroid Build Coastguard Worker 851*cfb92d14SAndroid Build Coastguard Worker### childsupervision interval \<interval\> 852*cfb92d14SAndroid Build Coastguard Worker 853*cfb92d14SAndroid Build Coastguard WorkerSet the Child Supervision interval value on the child. 854*cfb92d14SAndroid Build Coastguard Worker 855*cfb92d14SAndroid Build Coastguard Worker```bash 856*cfb92d14SAndroid Build Coastguard Worker> childsupervision interval 30 857*cfb92d14SAndroid Build Coastguard WorkerDone 858*cfb92d14SAndroid Build Coastguard Worker``` 859*cfb92d14SAndroid Build Coastguard Worker 860*cfb92d14SAndroid Build Coastguard Worker### childsupervision checktimeout 861*cfb92d14SAndroid Build Coastguard Worker 862*cfb92d14SAndroid Build Coastguard WorkerGet the Child Supervision Check Timeout value on the child. 863*cfb92d14SAndroid Build Coastguard Worker 864*cfb92d14SAndroid Build Coastguard WorkerIf the device is a sleepy child and it does not hear from its parent within the specified check timeout, it initiates the re-attach process (MLE Child Update Request/Response exchange with its parent). 865*cfb92d14SAndroid Build Coastguard Worker 866*cfb92d14SAndroid Build Coastguard Worker```bash 867*cfb92d14SAndroid Build Coastguard Worker> childsupervision checktimeout 868*cfb92d14SAndroid Build Coastguard Worker30 869*cfb92d14SAndroid Build Coastguard WorkerDone 870*cfb92d14SAndroid Build Coastguard Worker``` 871*cfb92d14SAndroid Build Coastguard Worker 872*cfb92d14SAndroid Build Coastguard Worker### childsupervision checktimeout \<timeout\> 873*cfb92d14SAndroid Build Coastguard Worker 874*cfb92d14SAndroid Build Coastguard WorkerSet the Child Supervision Check Timeout value on the child. 875*cfb92d14SAndroid Build Coastguard Worker 876*cfb92d14SAndroid Build Coastguard Worker```bash 877*cfb92d14SAndroid Build Coastguard Worker> childsupervision checktimeout 30 878*cfb92d14SAndroid Build Coastguard WorkerDone 879*cfb92d14SAndroid Build Coastguard Worker``` 880*cfb92d14SAndroid Build Coastguard Worker 881*cfb92d14SAndroid Build Coastguard Worker### childsupervision failcounter 882*cfb92d14SAndroid Build Coastguard Worker 883*cfb92d14SAndroid Build Coastguard WorkerGet the current value of supervision check timeout failure counter. 884*cfb92d14SAndroid Build Coastguard Worker 885*cfb92d14SAndroid Build Coastguard WorkerThe counter tracks the number of supervision check failures on the child. It is incremented when the child does not hear from its parent within the specified check timeout interval. 886*cfb92d14SAndroid Build Coastguard Worker 887*cfb92d14SAndroid Build Coastguard Worker```bash 888*cfb92d14SAndroid Build Coastguard Worker> childsupervision failcounter 889*cfb92d14SAndroid Build Coastguard Worker0 890*cfb92d14SAndroid Build Coastguard WorkerDone 891*cfb92d14SAndroid Build Coastguard Worker``` 892*cfb92d14SAndroid Build Coastguard Worker 893*cfb92d14SAndroid Build Coastguard Worker### childsupervision failcounter reset 894*cfb92d14SAndroid Build Coastguard Worker 895*cfb92d14SAndroid Build Coastguard WorkerReset the supervision check timeout failure counter to zero. 896*cfb92d14SAndroid Build Coastguard Worker 897*cfb92d14SAndroid Build Coastguard Worker```bash 898*cfb92d14SAndroid Build Coastguard Worker> childsupervision failcounter reset 899*cfb92d14SAndroid Build Coastguard WorkerDone 900*cfb92d14SAndroid Build Coastguard Worker``` 901*cfb92d14SAndroid Build Coastguard Worker 902*cfb92d14SAndroid Build Coastguard Worker### childtimeout 903*cfb92d14SAndroid Build Coastguard Worker 904*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Child Timeout value. 905*cfb92d14SAndroid Build Coastguard Worker 906*cfb92d14SAndroid Build Coastguard Worker```bash 907*cfb92d14SAndroid Build Coastguard Worker> childtimeout 908*cfb92d14SAndroid Build Coastguard Worker300 909*cfb92d14SAndroid Build Coastguard WorkerDone 910*cfb92d14SAndroid Build Coastguard Worker``` 911*cfb92d14SAndroid Build Coastguard Worker 912*cfb92d14SAndroid Build Coastguard Worker### childtimeout \<timeout\> 913*cfb92d14SAndroid Build Coastguard Worker 914*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Child Timeout value. 915*cfb92d14SAndroid Build Coastguard Worker 916*cfb92d14SAndroid Build Coastguard Worker```bash 917*cfb92d14SAndroid Build Coastguard Worker> childtimeout 300 918*cfb92d14SAndroid Build Coastguard WorkerDone 919*cfb92d14SAndroid Build Coastguard Worker``` 920*cfb92d14SAndroid Build Coastguard Worker 921*cfb92d14SAndroid Build Coastguard Worker### coex 922*cfb92d14SAndroid Build Coastguard Worker 923*cfb92d14SAndroid Build Coastguard WorkerGet the coex status. 924*cfb92d14SAndroid Build Coastguard Worker 925*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. 926*cfb92d14SAndroid Build Coastguard Worker 927*cfb92d14SAndroid Build Coastguard Worker```bash 928*cfb92d14SAndroid Build Coastguard Worker> coex 929*cfb92d14SAndroid Build Coastguard WorkerEnabled 930*cfb92d14SAndroid Build Coastguard WorkerDone 931*cfb92d14SAndroid Build Coastguard Worker``` 932*cfb92d14SAndroid Build Coastguard Worker 933*cfb92d14SAndroid Build Coastguard Worker### coex disable 934*cfb92d14SAndroid Build Coastguard Worker 935*cfb92d14SAndroid Build Coastguard WorkerDisable coex. 936*cfb92d14SAndroid Build Coastguard Worker 937*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. 938*cfb92d14SAndroid Build Coastguard Worker 939*cfb92d14SAndroid Build Coastguard Worker```bash 940*cfb92d14SAndroid Build Coastguard Worker> coex disable 941*cfb92d14SAndroid Build Coastguard WorkerDone 942*cfb92d14SAndroid Build Coastguard Worker``` 943*cfb92d14SAndroid Build Coastguard Worker 944*cfb92d14SAndroid Build Coastguard Worker### coex enable 945*cfb92d14SAndroid Build Coastguard Worker 946*cfb92d14SAndroid Build Coastguard WorkerEnable coex. 947*cfb92d14SAndroid Build Coastguard Worker 948*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. 949*cfb92d14SAndroid Build Coastguard Worker 950*cfb92d14SAndroid Build Coastguard Worker```bash 951*cfb92d14SAndroid Build Coastguard Worker> coex enable 952*cfb92d14SAndroid Build Coastguard WorkerDone 953*cfb92d14SAndroid Build Coastguard Worker``` 954*cfb92d14SAndroid Build Coastguard Worker 955*cfb92d14SAndroid Build Coastguard Worker### coex metrics 956*cfb92d14SAndroid Build Coastguard Worker 957*cfb92d14SAndroid Build Coastguard WorkerShow coex metrics. 958*cfb92d14SAndroid Build Coastguard Worker 959*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. 960*cfb92d14SAndroid Build Coastguard Worker 961*cfb92d14SAndroid Build Coastguard Worker```bash 962*cfb92d14SAndroid Build Coastguard Worker> coex metrics 963*cfb92d14SAndroid Build Coastguard WorkerStopped: false 964*cfb92d14SAndroid Build Coastguard WorkerGrant Glitch: 0 965*cfb92d14SAndroid Build Coastguard WorkerTransmit metrics 966*cfb92d14SAndroid Build Coastguard Worker Request: 0 967*cfb92d14SAndroid Build Coastguard Worker Grant Immediate: 0 968*cfb92d14SAndroid Build Coastguard Worker Grant Wait: 0 969*cfb92d14SAndroid Build Coastguard Worker Grant Wait Activated: 0 970*cfb92d14SAndroid Build Coastguard Worker Grant Wait Timeout: 0 971*cfb92d14SAndroid Build Coastguard Worker Grant Deactivated During Request: 0 972*cfb92d14SAndroid Build Coastguard Worker Delayed Grant: 0 973*cfb92d14SAndroid Build Coastguard Worker Average Request To Grant Time: 0 974*cfb92d14SAndroid Build Coastguard WorkerReceive metrics 975*cfb92d14SAndroid Build Coastguard Worker Request: 0 976*cfb92d14SAndroid Build Coastguard Worker Grant Immediate: 0 977*cfb92d14SAndroid Build Coastguard Worker Grant Wait: 0 978*cfb92d14SAndroid Build Coastguard Worker Grant Wait Activated: 0 979*cfb92d14SAndroid Build Coastguard Worker Grant Wait Timeout: 0 980*cfb92d14SAndroid Build Coastguard Worker Grant Deactivated During Request: 0 981*cfb92d14SAndroid Build Coastguard Worker Delayed Grant: 0 982*cfb92d14SAndroid Build Coastguard Worker Average Request To Grant Time: 0 983*cfb92d14SAndroid Build Coastguard Worker Grant None: 0 984*cfb92d14SAndroid Build Coastguard WorkerDone 985*cfb92d14SAndroid Build Coastguard Worker``` 986*cfb92d14SAndroid Build Coastguard Worker 987*cfb92d14SAndroid Build Coastguard Worker### contextreusedelay 988*cfb92d14SAndroid Build Coastguard Worker 989*cfb92d14SAndroid Build Coastguard WorkerGet the CONTEXT_ID_REUSE_DELAY value. 990*cfb92d14SAndroid Build Coastguard Worker 991*cfb92d14SAndroid Build Coastguard Worker```bash 992*cfb92d14SAndroid Build Coastguard Worker> contextreusedelay 993*cfb92d14SAndroid Build Coastguard Worker11 994*cfb92d14SAndroid Build Coastguard WorkerDone 995*cfb92d14SAndroid Build Coastguard Worker``` 996*cfb92d14SAndroid Build Coastguard Worker 997*cfb92d14SAndroid Build Coastguard Worker### contextreusedelay \<delay\> 998*cfb92d14SAndroid Build Coastguard Worker 999*cfb92d14SAndroid Build Coastguard WorkerSet the CONTEXT_ID_REUSE_DELAY value. 1000*cfb92d14SAndroid Build Coastguard Worker 1001*cfb92d14SAndroid Build Coastguard Worker```bash 1002*cfb92d14SAndroid Build Coastguard Worker> contextreusedelay 11 1003*cfb92d14SAndroid Build Coastguard WorkerDone 1004*cfb92d14SAndroid Build Coastguard Worker``` 1005*cfb92d14SAndroid Build Coastguard Worker 1006*cfb92d14SAndroid Build Coastguard Worker### counters 1007*cfb92d14SAndroid Build Coastguard Worker 1008*cfb92d14SAndroid Build Coastguard WorkerGet the supported counter names. 1009*cfb92d14SAndroid Build Coastguard Worker 1010*cfb92d14SAndroid Build Coastguard Worker```bash 1011*cfb92d14SAndroid Build Coastguard Worker> counters 1012*cfb92d14SAndroid Build Coastguard Workerbr 1013*cfb92d14SAndroid Build Coastguard Workerip 1014*cfb92d14SAndroid Build Coastguard Workermac 1015*cfb92d14SAndroid Build Coastguard Workermle 1016*cfb92d14SAndroid Build Coastguard WorkerDone 1017*cfb92d14SAndroid Build Coastguard Worker``` 1018*cfb92d14SAndroid Build Coastguard Worker 1019*cfb92d14SAndroid Build Coastguard Worker### counters \<countername\> 1020*cfb92d14SAndroid Build Coastguard Worker 1021*cfb92d14SAndroid Build Coastguard WorkerGet the counter value. 1022*cfb92d14SAndroid Build Coastguard Worker 1023*cfb92d14SAndroid Build Coastguard WorkerNote: 1024*cfb92d14SAndroid Build Coastguard Worker 1025*cfb92d14SAndroid Build Coastguard Worker- `OPENTHREAD_CONFIG_UPTIME_ENABLE` is required for MLE role time tracking in `counters mle` 1026*cfb92d14SAndroid Build Coastguard Worker- `OPENTHREAD_CONFIG_IP6_BR_COUNTERS_ENABLE` is required for `counters br` 1027*cfb92d14SAndroid Build Coastguard Worker 1028*cfb92d14SAndroid Build Coastguard Worker```bash 1029*cfb92d14SAndroid Build Coastguard Worker> counters mac 1030*cfb92d14SAndroid Build Coastguard WorkerTxTotal: 10 1031*cfb92d14SAndroid Build Coastguard Worker TxUnicast: 3 1032*cfb92d14SAndroid Build Coastguard Worker TxBroadcast: 7 1033*cfb92d14SAndroid Build Coastguard Worker TxAckRequested: 3 1034*cfb92d14SAndroid Build Coastguard Worker TxAcked: 3 1035*cfb92d14SAndroid Build Coastguard Worker TxNoAckRequested: 7 1036*cfb92d14SAndroid Build Coastguard Worker TxData: 10 1037*cfb92d14SAndroid Build Coastguard Worker TxDataPoll: 0 1038*cfb92d14SAndroid Build Coastguard Worker TxBeacon: 0 1039*cfb92d14SAndroid Build Coastguard Worker TxBeaconRequest: 0 1040*cfb92d14SAndroid Build Coastguard Worker TxOther: 0 1041*cfb92d14SAndroid Build Coastguard Worker TxRetry: 0 1042*cfb92d14SAndroid Build Coastguard Worker TxErrCca: 0 1043*cfb92d14SAndroid Build Coastguard Worker TxErrBusyChannel: 0 1044*cfb92d14SAndroid Build Coastguard WorkerRxTotal: 2 1045*cfb92d14SAndroid Build Coastguard Worker RxUnicast: 1 1046*cfb92d14SAndroid Build Coastguard Worker RxBroadcast: 1 1047*cfb92d14SAndroid Build Coastguard Worker RxData: 2 1048*cfb92d14SAndroid Build Coastguard Worker RxDataPoll: 0 1049*cfb92d14SAndroid Build Coastguard Worker RxBeacon: 0 1050*cfb92d14SAndroid Build Coastguard Worker RxBeaconRequest: 0 1051*cfb92d14SAndroid Build Coastguard Worker RxOther: 0 1052*cfb92d14SAndroid Build Coastguard Worker RxAddressFiltered: 0 1053*cfb92d14SAndroid Build Coastguard Worker RxDestAddrFiltered: 0 1054*cfb92d14SAndroid Build Coastguard Worker RxDuplicated: 0 1055*cfb92d14SAndroid Build Coastguard Worker RxErrNoFrame: 0 1056*cfb92d14SAndroid Build Coastguard Worker RxErrNoUnknownNeighbor: 0 1057*cfb92d14SAndroid Build Coastguard Worker RxErrInvalidSrcAddr: 0 1058*cfb92d14SAndroid Build Coastguard Worker RxErrSec: 0 1059*cfb92d14SAndroid Build Coastguard Worker RxErrFcs: 0 1060*cfb92d14SAndroid Build Coastguard Worker RxErrOther: 0 1061*cfb92d14SAndroid Build Coastguard WorkerDone 1062*cfb92d14SAndroid Build Coastguard Worker> counters mle 1063*cfb92d14SAndroid Build Coastguard WorkerRole Disabled: 0 1064*cfb92d14SAndroid Build Coastguard WorkerRole Detached: 1 1065*cfb92d14SAndroid Build Coastguard WorkerRole Child: 0 1066*cfb92d14SAndroid Build Coastguard WorkerRole Router: 0 1067*cfb92d14SAndroid Build Coastguard WorkerRole Leader: 1 1068*cfb92d14SAndroid Build Coastguard WorkerAttach Attempts: 1 1069*cfb92d14SAndroid Build Coastguard WorkerPartition Id Changes: 1 1070*cfb92d14SAndroid Build Coastguard WorkerBetter Partition Attach Attempts: 0 1071*cfb92d14SAndroid Build Coastguard WorkerParent Changes: 0 1072*cfb92d14SAndroid Build Coastguard WorkerTime Disabled Milli: 10026 1073*cfb92d14SAndroid Build Coastguard WorkerTime Detached Milli: 6852 1074*cfb92d14SAndroid Build Coastguard WorkerTime Child Milli: 0 1075*cfb92d14SAndroid Build Coastguard WorkerTime Router Milli: 0 1076*cfb92d14SAndroid Build Coastguard WorkerTime Leader Milli: 16195 1077*cfb92d14SAndroid Build Coastguard WorkerTime Tracked Milli: 33073 1078*cfb92d14SAndroid Build Coastguard WorkerDone 1079*cfb92d14SAndroid Build Coastguard Worker> counters ip 1080*cfb92d14SAndroid Build Coastguard WorkerTxSuccess: 10 1081*cfb92d14SAndroid Build Coastguard WorkerTxFailed: 0 1082*cfb92d14SAndroid Build Coastguard WorkerRxSuccess: 5 1083*cfb92d14SAndroid Build Coastguard WorkerRxFailed: 0 1084*cfb92d14SAndroid Build Coastguard WorkerDone 1085*cfb92d14SAndroid Build Coastguard Worker> counters br 1086*cfb92d14SAndroid Build Coastguard WorkerInbound Unicast: Packets 4 Bytes 320 1087*cfb92d14SAndroid Build Coastguard WorkerInbound Multicast: Packets 0 Bytes 0 1088*cfb92d14SAndroid Build Coastguard WorkerOutbound Unicast: Packets 2 Bytes 160 1089*cfb92d14SAndroid Build Coastguard WorkerOutbound Multicast: Packets 0 Bytes 0 1090*cfb92d14SAndroid Build Coastguard WorkerRA Rx: 4 1091*cfb92d14SAndroid Build Coastguard WorkerRA TxSuccess: 2 1092*cfb92d14SAndroid Build Coastguard WorkerRA TxFailed: 0 1093*cfb92d14SAndroid Build Coastguard WorkerRS Rx: 0 1094*cfb92d14SAndroid Build Coastguard WorkerRS TxSuccess: 2 1095*cfb92d14SAndroid Build Coastguard WorkerRS TxFailed: 0 1096*cfb92d14SAndroid Build Coastguard WorkerDone 1097*cfb92d14SAndroid Build Coastguard Worker``` 1098*cfb92d14SAndroid Build Coastguard Worker 1099*cfb92d14SAndroid Build Coastguard Worker### counters \<countername\> reset 1100*cfb92d14SAndroid Build Coastguard Worker 1101*cfb92d14SAndroid Build Coastguard WorkerReset the counter value. 1102*cfb92d14SAndroid Build Coastguard Worker 1103*cfb92d14SAndroid Build Coastguard Worker```bash 1104*cfb92d14SAndroid Build Coastguard Worker> counters mac reset 1105*cfb92d14SAndroid Build Coastguard WorkerDone 1106*cfb92d14SAndroid Build Coastguard Worker> counters mle reset 1107*cfb92d14SAndroid Build Coastguard WorkerDone 1108*cfb92d14SAndroid Build Coastguard Worker> counters ip reset 1109*cfb92d14SAndroid Build Coastguard WorkerDone 1110*cfb92d14SAndroid Build Coastguard Worker``` 1111*cfb92d14SAndroid Build Coastguard Worker 1112*cfb92d14SAndroid Build Coastguard Worker### csl 1113*cfb92d14SAndroid Build Coastguard Worker 1114*cfb92d14SAndroid Build Coastguard WorkerGet the CSL configuration. 1115*cfb92d14SAndroid Build Coastguard Worker 1116*cfb92d14SAndroid Build Coastguard WorkerCSL period is shown in microseconds. 1117*cfb92d14SAndroid Build Coastguard Worker 1118*cfb92d14SAndroid Build Coastguard Worker```bash 1119*cfb92d14SAndroid Build Coastguard Worker> csl 1120*cfb92d14SAndroid Build Coastguard WorkerChannel: 11 1121*cfb92d14SAndroid Build Coastguard WorkerPeriod: 160000us 1122*cfb92d14SAndroid Build Coastguard WorkerTimeout: 1000s 1123*cfb92d14SAndroid Build Coastguard WorkerDone 1124*cfb92d14SAndroid Build Coastguard Worker``` 1125*cfb92d14SAndroid Build Coastguard Worker 1126*cfb92d14SAndroid Build Coastguard Worker### csl channel \<channel\> 1127*cfb92d14SAndroid Build Coastguard Worker 1128*cfb92d14SAndroid Build Coastguard WorkerSet CSL channel. 1129*cfb92d14SAndroid Build Coastguard Worker 1130*cfb92d14SAndroid Build Coastguard Worker```bash 1131*cfb92d14SAndroid Build Coastguard Worker> csl channel 20 1132*cfb92d14SAndroid Build Coastguard WorkerDone 1133*cfb92d14SAndroid Build Coastguard Worker``` 1134*cfb92d14SAndroid Build Coastguard Worker 1135*cfb92d14SAndroid Build Coastguard Worker### csl period \<period\> 1136*cfb92d14SAndroid Build Coastguard Worker 1137*cfb92d14SAndroid Build Coastguard WorkerSet CSL period in microseconds. Disable CSL by setting this parameter to `0`. 1138*cfb92d14SAndroid Build Coastguard Worker 1139*cfb92d14SAndroid Build Coastguard WorkerThe CSL period MUST be a multiple 160 microseconds which is 802.15.4 "ten symbols time". 1140*cfb92d14SAndroid Build Coastguard Worker 1141*cfb92d14SAndroid Build Coastguard Worker```bash 1142*cfb92d14SAndroid Build Coastguard Worker> csl period 30000000 1143*cfb92d14SAndroid Build Coastguard WorkerDone 1144*cfb92d14SAndroid Build Coastguard Worker``` 1145*cfb92d14SAndroid Build Coastguard Worker 1146*cfb92d14SAndroid Build Coastguard Worker### csl timeout \<timeout\> 1147*cfb92d14SAndroid Build Coastguard Worker 1148*cfb92d14SAndroid Build Coastguard WorkerSet the CSL timeout in seconds. 1149*cfb92d14SAndroid Build Coastguard Worker 1150*cfb92d14SAndroid Build Coastguard Worker```bash 1151*cfb92d14SAndroid Build Coastguard Worker> csl timeout 10 1152*cfb92d14SAndroid Build Coastguard WorkerDone 1153*cfb92d14SAndroid Build Coastguard Worker``` 1154*cfb92d14SAndroid Build Coastguard Worker 1155*cfb92d14SAndroid Build Coastguard Worker### debug 1156*cfb92d14SAndroid Build Coastguard Worker 1157*cfb92d14SAndroid Build Coastguard WorkerExecutes a series of CLI commands to gather information about the device and thread network. This is intended for debugging. 1158*cfb92d14SAndroid Build Coastguard Worker 1159*cfb92d14SAndroid Build Coastguard WorkerThe output will display each executed CLI command preceded by "\$", followed by the corresponding command's generated output. 1160*cfb92d14SAndroid Build Coastguard Worker 1161*cfb92d14SAndroid Build Coastguard WorkerThe generated output encompasses the following information: 1162*cfb92d14SAndroid Build Coastguard Worker 1163*cfb92d14SAndroid Build Coastguard Worker- Version 1164*cfb92d14SAndroid Build Coastguard Worker- Current state 1165*cfb92d14SAndroid Build Coastguard Worker- RLOC16, extended MAC address 1166*cfb92d14SAndroid Build Coastguard Worker- Unicast and multicast IPv6 address list 1167*cfb92d14SAndroid Build Coastguard Worker- Channel 1168*cfb92d14SAndroid Build Coastguard Worker- PAN ID and extended PAN ID 1169*cfb92d14SAndroid Build Coastguard Worker- Network Data 1170*cfb92d14SAndroid Build Coastguard Worker- Partition ID 1171*cfb92d14SAndroid Build Coastguard Worker- Leader Data 1172*cfb92d14SAndroid Build Coastguard Worker 1173*cfb92d14SAndroid Build Coastguard WorkerIf the device is operating as FTD: 1174*cfb92d14SAndroid Build Coastguard Worker 1175*cfb92d14SAndroid Build Coastguard Worker- Child and neighbor table 1176*cfb92d14SAndroid Build Coastguard Worker- Router table and next hop Info 1177*cfb92d14SAndroid Build Coastguard Worker- Address cache table 1178*cfb92d14SAndroid Build Coastguard Worker- Registered MTD child IPv6 address 1179*cfb92d14SAndroid Build Coastguard Worker- Device properties 1180*cfb92d14SAndroid Build Coastguard Worker 1181*cfb92d14SAndroid Build Coastguard WorkerIf the device supports and acts as an SRP client: 1182*cfb92d14SAndroid Build Coastguard Worker 1183*cfb92d14SAndroid Build Coastguard Worker- SRP client state 1184*cfb92d14SAndroid Build Coastguard Worker- SRP client services and host info 1185*cfb92d14SAndroid Build Coastguard Worker 1186*cfb92d14SAndroid Build Coastguard WorkerIf the device supports and acts as an SRP sever: 1187*cfb92d14SAndroid Build Coastguard Worker 1188*cfb92d14SAndroid Build Coastguard Worker- SRP server state and address mode 1189*cfb92d14SAndroid Build Coastguard Worker- SRP server registered hosts and services 1190*cfb92d14SAndroid Build Coastguard Worker 1191*cfb92d14SAndroid Build Coastguard WorkerIf the device supports TREL: 1192*cfb92d14SAndroid Build Coastguard Worker 1193*cfb92d14SAndroid Build Coastguard Worker- TREL status and peer table 1194*cfb92d14SAndroid Build Coastguard Worker 1195*cfb92d14SAndroid Build Coastguard WorkerIf the device supports and acts as a border router: 1196*cfb92d14SAndroid Build Coastguard Worker 1197*cfb92d14SAndroid Build Coastguard Worker- BR state 1198*cfb92d14SAndroid Build Coastguard Worker- BR prefixes (OMR, on-link, NAT64) 1199*cfb92d14SAndroid Build Coastguard Worker- Discovered prefix table 1200*cfb92d14SAndroid Build Coastguard Worker 1201*cfb92d14SAndroid Build Coastguard Worker### delaytimermin 1202*cfb92d14SAndroid Build Coastguard Worker 1203*cfb92d14SAndroid Build Coastguard WorkerGet the minimal delay timer (in seconds). 1204*cfb92d14SAndroid Build Coastguard Worker 1205*cfb92d14SAndroid Build Coastguard Worker```bash 1206*cfb92d14SAndroid Build Coastguard Worker> delaytimermin 1207*cfb92d14SAndroid Build Coastguard Worker30 1208*cfb92d14SAndroid Build Coastguard WorkerDone 1209*cfb92d14SAndroid Build Coastguard Worker``` 1210*cfb92d14SAndroid Build Coastguard Worker 1211*cfb92d14SAndroid Build Coastguard Worker### delaytimermin \<delaytimermin\> 1212*cfb92d14SAndroid Build Coastguard Worker 1213*cfb92d14SAndroid Build Coastguard WorkerSet the minimal delay timer (in seconds). 1214*cfb92d14SAndroid Build Coastguard Worker 1215*cfb92d14SAndroid Build Coastguard Worker```bash 1216*cfb92d14SAndroid Build Coastguard Worker> delaytimermin 60 1217*cfb92d14SAndroid Build Coastguard WorkerDone 1218*cfb92d14SAndroid Build Coastguard Worker``` 1219*cfb92d14SAndroid Build Coastguard Worker 1220*cfb92d14SAndroid Build Coastguard Worker### detach 1221*cfb92d14SAndroid Build Coastguard Worker 1222*cfb92d14SAndroid Build Coastguard WorkerStart the graceful detach process by first notifying other nodes (sending Address Release if acting as a router, or setting Child Timeout value to zero on parent if acting as a child) and then stopping Thread protocol operation. 1223*cfb92d14SAndroid Build Coastguard Worker 1224*cfb92d14SAndroid Build Coastguard Worker```bash 1225*cfb92d14SAndroid Build Coastguard Worker> detach 1226*cfb92d14SAndroid Build Coastguard WorkerFinished detaching 1227*cfb92d14SAndroid Build Coastguard WorkerDone 1228*cfb92d14SAndroid Build Coastguard Worker``` 1229*cfb92d14SAndroid Build Coastguard Worker 1230*cfb92d14SAndroid Build Coastguard Worker### detach async 1231*cfb92d14SAndroid Build Coastguard Worker 1232*cfb92d14SAndroid Build Coastguard WorkerStart the graceful detach process similar to the `detach` command without blocking and waiting for the callback indicating that detach is finished. 1233*cfb92d14SAndroid Build Coastguard Worker 1234*cfb92d14SAndroid Build Coastguard Worker```bash 1235*cfb92d14SAndroid Build Coastguard Worker> detach async 1236*cfb92d14SAndroid Build Coastguard WorkerDone 1237*cfb92d14SAndroid Build Coastguard Worker``` 1238*cfb92d14SAndroid Build Coastguard Worker 1239*cfb92d14SAndroid Build Coastguard Worker### deviceprops 1240*cfb92d14SAndroid Build Coastguard Worker 1241*cfb92d14SAndroid Build Coastguard WorkerGet the current device properties. 1242*cfb92d14SAndroid Build Coastguard Worker 1243*cfb92d14SAndroid Build Coastguard Worker```bash 1244*cfb92d14SAndroid Build Coastguard Worker> deviceprops 1245*cfb92d14SAndroid Build Coastguard WorkerPowerSupply : external 1246*cfb92d14SAndroid Build Coastguard WorkerIsBorderRouter : yes 1247*cfb92d14SAndroid Build Coastguard WorkerSupportsCcm : no 1248*cfb92d14SAndroid Build Coastguard WorkerIsUnstable : no 1249*cfb92d14SAndroid Build Coastguard WorkerWeightAdjustment : 0 1250*cfb92d14SAndroid Build Coastguard WorkerDone 1251*cfb92d14SAndroid Build Coastguard Worker``` 1252*cfb92d14SAndroid Build Coastguard Worker 1253*cfb92d14SAndroid Build Coastguard Worker### deviceprops \<power-supply\> \<is-br\> \<supports-ccm\> \<is-unstable\> \<weight-adjustment\> 1254*cfb92d14SAndroid Build Coastguard Worker 1255*cfb92d14SAndroid Build Coastguard WorkerSet the device properties which are then used to determine and set the Leader Weight. 1256*cfb92d14SAndroid Build Coastguard Worker 1257*cfb92d14SAndroid Build Coastguard Worker- power-supply: `battery`, `external`, `external-stable`, or `external-unstable`. 1258*cfb92d14SAndroid Build Coastguard Worker- weight-adjustment: Valid range is from -16 to +16. Clamped if not within the range. 1259*cfb92d14SAndroid Build Coastguard Worker 1260*cfb92d14SAndroid Build Coastguard Worker```bash 1261*cfb92d14SAndroid Build Coastguard Worker> deviceprops battery 0 0 0 -5 1262*cfb92d14SAndroid Build Coastguard WorkerDone 1263*cfb92d14SAndroid Build Coastguard Worker 1264*cfb92d14SAndroid Build Coastguard Worker> deviceprops 1265*cfb92d14SAndroid Build Coastguard WorkerPowerSupply : battery 1266*cfb92d14SAndroid Build Coastguard WorkerIsBorderRouter : no 1267*cfb92d14SAndroid Build Coastguard WorkerSupportsCcm : no 1268*cfb92d14SAndroid Build Coastguard WorkerIsUnstable : no 1269*cfb92d14SAndroid Build Coastguard WorkerWeightAdjustment : -5 1270*cfb92d14SAndroid Build Coastguard WorkerDone 1271*cfb92d14SAndroid Build Coastguard Worker 1272*cfb92d14SAndroid Build Coastguard Worker> leaderweight 1273*cfb92d14SAndroid Build Coastguard Worker51 1274*cfb92d14SAndroid Build Coastguard WorkerDone 1275*cfb92d14SAndroid Build Coastguard Worker``` 1276*cfb92d14SAndroid Build Coastguard Worker 1277*cfb92d14SAndroid Build Coastguard Worker### discover \[channel\] 1278*cfb92d14SAndroid Build Coastguard Worker 1279*cfb92d14SAndroid Build Coastguard WorkerPerform an MLE Discovery operation. 1280*cfb92d14SAndroid Build Coastguard Worker 1281*cfb92d14SAndroid Build Coastguard Worker- channel: The channel to discover on. If no channel is provided, the discovery will cover all valid channels. 1282*cfb92d14SAndroid Build Coastguard Worker 1283*cfb92d14SAndroid Build Coastguard Worker```bash 1284*cfb92d14SAndroid Build Coastguard Worker> discover 1285*cfb92d14SAndroid Build Coastguard Worker| J | Network Name | Extended PAN | PAN | MAC Address | Ch | dBm | LQI | 1286*cfb92d14SAndroid Build Coastguard Worker+---+------------------+------------------+------+------------------+----+-----+-----+ 1287*cfb92d14SAndroid Build Coastguard Worker| 0 | OpenThread | dead00beef00cafe | ffff | f1d92a82c8d8fe43 | 11 | -20 | 0 | 1288*cfb92d14SAndroid Build Coastguard WorkerDone 1289*cfb92d14SAndroid Build Coastguard Worker``` 1290*cfb92d14SAndroid Build Coastguard Worker 1291*cfb92d14SAndroid Build Coastguard Worker### dns config 1292*cfb92d14SAndroid Build Coastguard Worker 1293*cfb92d14SAndroid Build Coastguard WorkerGet the default query config used by DNS client. 1294*cfb92d14SAndroid Build Coastguard Worker 1295*cfb92d14SAndroid Build Coastguard WorkerThe config includes 1296*cfb92d14SAndroid Build Coastguard Worker 1297*cfb92d14SAndroid Build Coastguard Worker- Server IPv6 address and port 1298*cfb92d14SAndroid Build Coastguard Worker- Response timeout in msec (wait time to rx response) 1299*cfb92d14SAndroid Build Coastguard Worker- Maximum tx attempts before reporting failure 1300*cfb92d14SAndroid Build Coastguard Worker- Boolean flag to indicate whether the server can resolve the query recursively or not. 1301*cfb92d14SAndroid Build Coastguard Worker- Service resolution mode which specifies which records to query. Possible options are: 1302*cfb92d14SAndroid Build Coastguard Worker - `srv` : Query for SRV record only. 1303*cfb92d14SAndroid Build Coastguard Worker - `txt` : Query for TXT record only. 1304*cfb92d14SAndroid Build Coastguard Worker - `srv_txt` : Query for both SRV and TXT records in the same message. 1305*cfb92d14SAndroid Build Coastguard Worker - `srv_txt_sep`: Query in parallel for SRV and TXT using separate messages. 1306*cfb92d14SAndroid Build Coastguard Worker - `srv_txt_opt`: Query for TXT/SRV together first, if it fails then query separately. 1307*cfb92d14SAndroid Build Coastguard Worker- Whether to allow/disallow NAT64 address translation during address resolution (requires `OPENTHREAD_CONFIG_DNS_CLIENT_NAT64_ENABLE`) 1308*cfb92d14SAndroid Build Coastguard Worker- Transport protocol UDP or TCP (requires `OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE`) 1309*cfb92d14SAndroid Build Coastguard Worker 1310*cfb92d14SAndroid Build Coastguard Worker```bash 1311*cfb92d14SAndroid Build Coastguard Worker> dns config 1312*cfb92d14SAndroid Build Coastguard WorkerServer: [fd00:0:0:0:0:0:0:1]:1234 1313*cfb92d14SAndroid Build Coastguard WorkerResponseTimeout: 5000 ms 1314*cfb92d14SAndroid Build Coastguard WorkerMaxTxAttempts: 2 1315*cfb92d14SAndroid Build Coastguard WorkerRecursionDesired: no 1316*cfb92d14SAndroid Build Coastguard WorkerServiceMode: srv_txt_opt 1317*cfb92d14SAndroid Build Coastguard WorkerNat64Mode: allow 1318*cfb92d14SAndroid Build Coastguard WorkerTransportProtocol: udp 1319*cfb92d14SAndroid Build Coastguard WorkerDone 1320*cfb92d14SAndroid Build Coastguard Worker> 1321*cfb92d14SAndroid Build Coastguard Worker``` 1322*cfb92d14SAndroid Build Coastguard Worker 1323*cfb92d14SAndroid Build Coastguard Worker### dns config \[DNS server IP\] \[DNS server port\] \[response timeout (ms)\] \[max tx attempts\] \[recursion desired (boolean)\] \[service mode] \[protocol] 1324*cfb92d14SAndroid Build Coastguard Worker 1325*cfb92d14SAndroid Build Coastguard WorkerSet the default query config. 1326*cfb92d14SAndroid Build Coastguard Worker 1327*cfb92d14SAndroid Build Coastguard WorkerService mode specifies which records to query. Possible options are: 1328*cfb92d14SAndroid Build Coastguard Worker 1329*cfb92d14SAndroid Build Coastguard Worker- `def` : Use default option. 1330*cfb92d14SAndroid Build Coastguard Worker- `srv` : Query for SRV record only. 1331*cfb92d14SAndroid Build Coastguard Worker- `txt` : Query for TXT record only. 1332*cfb92d14SAndroid Build Coastguard Worker- `srv_txt` : Query for both SRV and TXT records in the same message. 1333*cfb92d14SAndroid Build Coastguard Worker- `srv_txt_sep`: Query in parallel for SRV and TXT using separate messages. 1334*cfb92d14SAndroid Build Coastguard Worker- `srv_txt_opt`: Query for TXT/SRV together first, if it fails then query separately. 1335*cfb92d14SAndroid Build Coastguard Worker 1336*cfb92d14SAndroid Build Coastguard WorkerTo set protocol effectively to tcp `OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE` is required. 1337*cfb92d14SAndroid Build Coastguard Worker 1338*cfb92d14SAndroid Build Coastguard Worker```bash 1339*cfb92d14SAndroid Build Coastguard Worker> dns config fd00::1 1234 5000 2 0 srv_txt_sep tcp 1340*cfb92d14SAndroid Build Coastguard WorkerDone 1341*cfb92d14SAndroid Build Coastguard Worker 1342*cfb92d14SAndroid Build Coastguard Worker> dns config 1343*cfb92d14SAndroid Build Coastguard WorkerServer: [fd00:0:0:0:0:0:0:1]:1234 1344*cfb92d14SAndroid Build Coastguard WorkerResponseTimeout: 5000 ms 1345*cfb92d14SAndroid Build Coastguard WorkerMaxTxAttempts: 2 1346*cfb92d14SAndroid Build Coastguard WorkerRecursionDesired: no 1347*cfb92d14SAndroid Build Coastguard WorkerServiceMode: srv_txt_sep 1348*cfb92d14SAndroid Build Coastguard WorkerNat64Mode: allow 1349*cfb92d14SAndroid Build Coastguard WorkerTransportProtocol: tcp 1350*cfb92d14SAndroid Build Coastguard WorkerDone 1351*cfb92d14SAndroid Build Coastguard Worker``` 1352*cfb92d14SAndroid Build Coastguard Worker 1353*cfb92d14SAndroid Build Coastguard WorkerWe can leave some of the fields as unspecified (or use value zero). The unspecified fields are replaced by the corresponding OT config option definitions `OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_{}` to form the default query config. 1354*cfb92d14SAndroid Build Coastguard Worker 1355*cfb92d14SAndroid Build Coastguard Worker```bash 1356*cfb92d14SAndroid Build Coastguard Worker> dns config fd00::2 1357*cfb92d14SAndroid Build Coastguard WorkerDone 1358*cfb92d14SAndroid Build Coastguard Worker 1359*cfb92d14SAndroid Build Coastguard Worker> dns config 1360*cfb92d14SAndroid Build Coastguard WorkerServer: [fd00:0:0:0:0:0:0:2]:53 1361*cfb92d14SAndroid Build Coastguard WorkerResponseTimeout: 6000 ms 1362*cfb92d14SAndroid Build Coastguard WorkerMaxTxAttempts: 3 1363*cfb92d14SAndroid Build Coastguard WorkerRecursionDesired: yes 1364*cfb92d14SAndroid Build Coastguard WorkerNat64Mode: allow 1365*cfb92d14SAndroid Build Coastguard WorkerTransportProtocol: udp 1366*cfb92d14SAndroid Build Coastguard WorkerDone 1367*cfb92d14SAndroid Build Coastguard Worker``` 1368*cfb92d14SAndroid Build Coastguard Worker 1369*cfb92d14SAndroid Build Coastguard WorkerThis final example shows how only 'recursion desired' and the service mode are set, and all other parameters are set to their defaults: 1370*cfb92d14SAndroid Build Coastguard Worker 1371*cfb92d14SAndroid Build Coastguard Worker```bash 1372*cfb92d14SAndroid Build Coastguard Worker> dns config :: 0 0 0 1 srv_txt_sep 1373*cfb92d14SAndroid Build Coastguard WorkerDone 1374*cfb92d14SAndroid Build Coastguard Worker 1375*cfb92d14SAndroid Build Coastguard Worker> dns config 1376*cfb92d14SAndroid Build Coastguard WorkerServer: [2001:4860:4860:0:0:0:0:8888]:53 1377*cfb92d14SAndroid Build Coastguard WorkerResponseTimeout: 6000 ms 1378*cfb92d14SAndroid Build Coastguard WorkerMaxTxAttempts: 3 1379*cfb92d14SAndroid Build Coastguard WorkerRecursionDesired: yes 1380*cfb92d14SAndroid Build Coastguard WorkerServiceMode: srv_txt_sep 1381*cfb92d14SAndroid Build Coastguard WorkerNat64Mode: allow 1382*cfb92d14SAndroid Build Coastguard WorkerTransportProtocol: udp 1383*cfb92d14SAndroid Build Coastguard WorkerDone 1384*cfb92d14SAndroid Build Coastguard Worker``` 1385*cfb92d14SAndroid Build Coastguard Worker 1386*cfb92d14SAndroid Build Coastguard Worker### dns resolve \<hostname\> \[DNS server IP\] \[DNS server port\] \[response timeout (ms)\] \[max tx attempts\] \[recursion desired (boolean)\] \[transport protocol\] 1387*cfb92d14SAndroid Build Coastguard Worker 1388*cfb92d14SAndroid Build Coastguard WorkerSend DNS Query to obtain IPv6 address for given hostname. 1389*cfb92d14SAndroid Build Coastguard Worker 1390*cfb92d14SAndroid Build Coastguard WorkerThe parameters after `hostname` are optional. Any unspecified (or zero) value for these optional parameters is replaced by the value from the current default config (`dns config`). 1391*cfb92d14SAndroid Build Coastguard Worker 1392*cfb92d14SAndroid Build Coastguard WorkerTo use tcp, `OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE` is required. 1393*cfb92d14SAndroid Build Coastguard Worker 1394*cfb92d14SAndroid Build Coastguard Worker```bash 1395*cfb92d14SAndroid Build Coastguard Worker> dns resolve ipv6.google.com 1396*cfb92d14SAndroid Build Coastguard Worker> DNS response for ipv6.google.com - 2a00:1450:401b:801:0:0:0:200e TTL: 300 1397*cfb92d14SAndroid Build Coastguard Worker``` 1398*cfb92d14SAndroid Build Coastguard Worker 1399*cfb92d14SAndroid Build Coastguard WorkerThe DNS server IP can be an IPv4 address, which will be synthesized to an IPv6 address using the preferred NAT64 prefix from the network data. 1400*cfb92d14SAndroid Build Coastguard Worker 1401*cfb92d14SAndroid Build Coastguard Worker> Note: The command will return `InvalidState` when the DNS server IP is an IPv4 address but the preferred NAT64 prefix is unavailable. 1402*cfb92d14SAndroid Build Coastguard Worker 1403*cfb92d14SAndroid Build Coastguard Worker```bash 1404*cfb92d14SAndroid Build Coastguard Worker> dns resolve example.com 8.8.8.8 1405*cfb92d14SAndroid Build Coastguard WorkerSynthesized IPv6 DNS server address: fdde:ad00:beef:2:0:0:808:808 1406*cfb92d14SAndroid Build Coastguard WorkerDNS response for example.com. - fd4c:9574:3720:2:0:0:5db8:d822 TTL:20456 1407*cfb92d14SAndroid Build Coastguard WorkerDone 1408*cfb92d14SAndroid Build Coastguard Worker``` 1409*cfb92d14SAndroid Build Coastguard Worker 1410*cfb92d14SAndroid Build Coastguard Worker### dns resolve4 \<hostname\> \[DNS server IP\] \[DNS server port\] \[response timeout (ms)\] \[max tx attempts\] \[recursion desired (boolean)\] 1411*cfb92d14SAndroid Build Coastguard Worker 1412*cfb92d14SAndroid Build Coastguard WorkerSend DNS query to obtain IPv4 address for a given hostname and provide the NAT64 synthesized IPv6 addresses for the IPv4 addresses from the query response. 1413*cfb92d14SAndroid Build Coastguard Worker 1414*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_DNS_CLIENT_NAT64_ENABLE`. 1415*cfb92d14SAndroid Build Coastguard Worker 1416*cfb92d14SAndroid Build Coastguard WorkerThe parameters after `hostname` are optional. Any unspecified (or zero) value for these optional parameters is replaced by the value from the current default config (`dns config`). 1417*cfb92d14SAndroid Build Coastguard Worker 1418*cfb92d14SAndroid Build Coastguard WorkerThis command requires a NAT64 prefix to be configured and present in Thread Network Data. 1419*cfb92d14SAndroid Build Coastguard Worker 1420*cfb92d14SAndroid Build Coastguard WorkerFor example, if a NAT64 prefix of `2001:db8:122:344::/96` is used within the Thread mesh, the outputted IPv6 address corresponds to an IPv4 address of `142.250.191.78` for the `ipv4.google.com` host: 1421*cfb92d14SAndroid Build Coastguard Worker 1422*cfb92d14SAndroid Build Coastguard Worker```bash 1423*cfb92d14SAndroid Build Coastguard Worker> dns resolve4 ipv4.google.com 1424*cfb92d14SAndroid Build Coastguard Worker> DNS response for ipv4.google.com - 2001:db8:122:344:0:0:8efa:bf4e TTL: 20456 1425*cfb92d14SAndroid Build Coastguard Worker``` 1426*cfb92d14SAndroid Build Coastguard Worker 1427*cfb92d14SAndroid Build Coastguard Worker### dns browse \<service-name\> \[DNS server IP\] \[DNS server port\] \[response timeout (ms)\] \[max tx attempts\] \[recursion desired (boolean)\] 1428*cfb92d14SAndroid Build Coastguard Worker 1429*cfb92d14SAndroid Build Coastguard WorkerSend a browse (service instance enumeration) DNS query to get the list of services for given service-name. 1430*cfb92d14SAndroid Build Coastguard Worker 1431*cfb92d14SAndroid Build Coastguard WorkerThe parameters after `service-name` are optional. Any unspecified (or zero) value for these optional parameters is replaced by the value from the current default config (`dns config`). 1432*cfb92d14SAndroid Build Coastguard Worker 1433*cfb92d14SAndroid Build Coastguard Worker```bash 1434*cfb92d14SAndroid Build Coastguard Worker> dns browse _service._udp.example.com 1435*cfb92d14SAndroid Build Coastguard WorkerDNS browse response for _service._udp.example.com. 1436*cfb92d14SAndroid Build Coastguard Workerinst1 1437*cfb92d14SAndroid Build Coastguard Workerinst2 1438*cfb92d14SAndroid Build Coastguard Workerinst3 1439*cfb92d14SAndroid Build Coastguard WorkerDone 1440*cfb92d14SAndroid Build Coastguard Worker``` 1441*cfb92d14SAndroid Build Coastguard Worker 1442*cfb92d14SAndroid Build Coastguard WorkerThe detailed service info (port number, weight, host name, TXT data, host addresses) is outputted only when provided by server/resolver in the browse response (in additional Data Section). This is a SHOULD and not a MUST requirement, and servers/resolvers are not required to provide this. 1443*cfb92d14SAndroid Build Coastguard Worker 1444*cfb92d14SAndroid Build Coastguard WorkerThe recommended behavior, which is supported by the OpenThread DNS-SD resolver, is to only provide the additional data when there is a single instance in the response. However, users should assume that the browse response may only contain the list of matching service instances and not any detail service info. To resolve a service instance, users can use the `dns service` or `dns servicehost` commands. 1445*cfb92d14SAndroid Build Coastguard Worker 1446*cfb92d14SAndroid Build Coastguard Worker```bash 1447*cfb92d14SAndroid Build Coastguard Worker> dns browse _service._udp.example.com 1448*cfb92d14SAndroid Build Coastguard WorkerDNS browse response for _service._udp.example.com. 1449*cfb92d14SAndroid Build Coastguard Workerinst1 1450*cfb92d14SAndroid Build Coastguard Worker Port:1234, Priority:1, Weight:2, TTL:7200 1451*cfb92d14SAndroid Build Coastguard Worker Host:host.example.com. 1452*cfb92d14SAndroid Build Coastguard Worker HostAddress:fd00:0:0:0:0:0:0:abcd TTL:7200 1453*cfb92d14SAndroid Build Coastguard Worker TXT:[a=6531, b=6c12] TTL:7300 1454*cfb92d14SAndroid Build Coastguard WorkerDone 1455*cfb92d14SAndroid Build Coastguard Worker``` 1456*cfb92d14SAndroid Build Coastguard Worker 1457*cfb92d14SAndroid Build Coastguard Worker```bash 1458*cfb92d14SAndroid Build Coastguard Worker> dns browse _airplay._tcp.default.service.arpa 1459*cfb92d14SAndroid Build Coastguard WorkerDNS browse response for _airplay._tcp.default.service.arpa. 1460*cfb92d14SAndroid Build Coastguard WorkerGabe's Mac mini 1461*cfb92d14SAndroid Build Coastguard Worker Port:7000, Priority:0, Weight:0, TTL:10 1462*cfb92d14SAndroid Build Coastguard Worker Host:Gabes-Mac-mini.default.service.arpa. 1463*cfb92d14SAndroid Build Coastguard Worker HostAddress:fd97:739d:386a:1:1c2e:d83c:fcbe:9cf4 TTL:10 1464*cfb92d14SAndroid Build Coastguard WorkerDone 1465*cfb92d14SAndroid Build Coastguard Worker``` 1466*cfb92d14SAndroid Build Coastguard Worker 1467*cfb92d14SAndroid Build Coastguard Worker> Note: The DNS server IP can be an IPv4 address, which will be synthesized to an IPv6 address using the preferred NAT64 prefix from the network data. The command will return `InvalidState` when the DNS server IP is an IPv4 address but the preferred NAT64 prefix is unavailable. When testing DNS-SD discovery proxy, the zone is not `local` and instead should be `default.service.arpa`. 1468*cfb92d14SAndroid Build Coastguard Worker 1469*cfb92d14SAndroid Build Coastguard Worker### dns service \<service-instance-label\> \<service-name\> \[DNS server IP\] \[DNS server port\] \[response timeout (ms)\] \[max tx attempts\] \[recursion desired (boolean)\] 1470*cfb92d14SAndroid Build Coastguard Worker 1471*cfb92d14SAndroid Build Coastguard WorkerSend a service instance resolution DNS query for a given service instance. Service instance label is provided first, followed by the service name (note that service instance label can contain dot '.' character). 1472*cfb92d14SAndroid Build Coastguard Worker 1473*cfb92d14SAndroid Build Coastguard WorkerThe parameters after `service-name` are optional. Any unspecified (or zero) value for these optional parameters is replaced by the value from the current default config (`dns config`). 1474*cfb92d14SAndroid Build Coastguard Worker 1475*cfb92d14SAndroid Build Coastguard Worker> Note: The DNS server IP can be an IPv4 address, which will be synthesized to an IPv6 address using the preferred NAT64 prefix from the network data. The command will return `InvalidState` when the DNS server IP is an IPv4 address but the preferred NAT64 prefix is unavailable. 1476*cfb92d14SAndroid Build Coastguard Worker 1477*cfb92d14SAndroid Build Coastguard Worker### dns servicehost \<service-instance-label\> \<service-name\> \[DNS server IP\] \[DNS server port\] \[response timeout (ms)\] \[max tx attempts\] \[recursion desired (boolean)\] 1478*cfb92d14SAndroid Build Coastguard Worker 1479*cfb92d14SAndroid Build Coastguard WorkerSend a service instance resolution DNS query for a given service instance with a potential follow-up address resolution for the host name discovered for the service instance (if the server/resolver does not provide AAAA/A records for the host name in the response to SRV query). 1480*cfb92d14SAndroid Build Coastguard Worker 1481*cfb92d14SAndroid Build Coastguard WorkerService instance label is provided first, followed by the service name (note that service instance label can contain dot '.' character). 1482*cfb92d14SAndroid Build Coastguard Worker 1483*cfb92d14SAndroid Build Coastguard WorkerThe parameters after `service-name` are optional. Any unspecified (or zero) value for these optional parameters is replaced by the value from the current default config (`dns config`). 1484*cfb92d14SAndroid Build Coastguard Worker 1485*cfb92d14SAndroid Build Coastguard Worker### dns server upstream \[enable|disable\] 1486*cfb92d14SAndroid Build Coastguard Worker 1487*cfb92d14SAndroid Build Coastguard WorkerEnable/Disable the upstream DNS feature. If no argument is provided, it prints whether the upstream DNS feature is enabled. 1488*cfb92d14SAndroid Build Coastguard Worker 1489*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_ENABLE` is required. 1490*cfb92d14SAndroid Build Coastguard Worker 1491*cfb92d14SAndroid Build Coastguard WorkerEnable the upstream DNS feature. 1492*cfb92d14SAndroid Build Coastguard Worker 1493*cfb92d14SAndroid Build Coastguard Worker``` 1494*cfb92d14SAndroid Build Coastguard Worker> dns server upstream enable 1495*cfb92d14SAndroid Build Coastguard WorkerDone 1496*cfb92d14SAndroid Build Coastguard Worker``` 1497*cfb92d14SAndroid Build Coastguard Worker 1498*cfb92d14SAndroid Build Coastguard WorkerGet whether the upstream DNS feature is enabled. 1499*cfb92d14SAndroid Build Coastguard Worker 1500*cfb92d14SAndroid Build Coastguard Worker``` 1501*cfb92d14SAndroid Build Coastguard Worker> dns server upstream 1502*cfb92d14SAndroid Build Coastguard WorkerEnabled 1503*cfb92d14SAndroid Build Coastguard WorkerDone 1504*cfb92d14SAndroid Build Coastguard Worker``` 1505*cfb92d14SAndroid Build Coastguard Worker 1506*cfb92d14SAndroid Build Coastguard Worker### dns compression \[enable|disable\] 1507*cfb92d14SAndroid Build Coastguard Worker 1508*cfb92d14SAndroid Build Coastguard WorkerEnable/Disable the "DNS name compression" mode. 1509*cfb92d14SAndroid Build Coastguard Worker 1510*cfb92d14SAndroid Build Coastguard WorkerBy default DNS name compression is enabled. When disabled, DNS names are appended as full and never compressed. This is applicable to OpenThread's DNS and SRP client/server modules. 1511*cfb92d14SAndroid Build Coastguard Worker 1512*cfb92d14SAndroid Build Coastguard WorkerThis is intended for testing only and available under `REFERENCE_DEVICE` config. 1513*cfb92d14SAndroid Build Coastguard Worker 1514*cfb92d14SAndroid Build Coastguard WorkerGet the current "DNS name compression" mode. 1515*cfb92d14SAndroid Build Coastguard Worker 1516*cfb92d14SAndroid Build Coastguard Worker``` 1517*cfb92d14SAndroid Build Coastguard Worker> dns compression 1518*cfb92d14SAndroid Build Coastguard WorkerEnabled 1519*cfb92d14SAndroid Build Coastguard Worker``` 1520*cfb92d14SAndroid Build Coastguard Worker 1521*cfb92d14SAndroid Build Coastguard WorkerSet the "DNS name compression" mode. 1522*cfb92d14SAndroid Build Coastguard Worker 1523*cfb92d14SAndroid Build Coastguard Worker``` 1524*cfb92d14SAndroid Build Coastguard Worker> dns compression disable 1525*cfb92d14SAndroid Build Coastguard WorkerDone 1526*cfb92d14SAndroid Build Coastguard Worker> 1527*cfb92d14SAndroid Build Coastguard Worker> 1528*cfb92d14SAndroid Build Coastguard Worker> dns compression 1529*cfb92d14SAndroid Build Coastguard WorkerDisabled 1530*cfb92d14SAndroid Build Coastguard WorkerDone 1531*cfb92d14SAndroid Build Coastguard Worker``` 1532*cfb92d14SAndroid Build Coastguard Worker 1533*cfb92d14SAndroid Build Coastguard Worker### domainname 1534*cfb92d14SAndroid Build Coastguard Worker 1535*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Domain Name for Thread 1.2 device. 1536*cfb92d14SAndroid Build Coastguard Worker 1537*cfb92d14SAndroid Build Coastguard Worker```bash 1538*cfb92d14SAndroid Build Coastguard Worker> domainname 1539*cfb92d14SAndroid Build Coastguard WorkerThread 1540*cfb92d14SAndroid Build Coastguard WorkerDone 1541*cfb92d14SAndroid Build Coastguard Worker``` 1542*cfb92d14SAndroid Build Coastguard Worker 1543*cfb92d14SAndroid Build Coastguard Worker### domainname \<name\> 1544*cfb92d14SAndroid Build Coastguard Worker 1545*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Domain Name for Thread 1.2 device. 1546*cfb92d14SAndroid Build Coastguard Worker 1547*cfb92d14SAndroid Build Coastguard Worker```bash 1548*cfb92d14SAndroid Build Coastguard Worker> domainname Test\ Thread 1549*cfb92d14SAndroid Build Coastguard WorkerDone 1550*cfb92d14SAndroid Build Coastguard Worker``` 1551*cfb92d14SAndroid Build Coastguard Worker 1552*cfb92d14SAndroid Build Coastguard Worker### dua iid 1553*cfb92d14SAndroid Build Coastguard Worker 1554*cfb92d14SAndroid Build Coastguard WorkerGet the Interface Identifier manually specified for Thread Domain Unicast Address on Thread 1.2 device. 1555*cfb92d14SAndroid Build Coastguard Worker 1556*cfb92d14SAndroid Build Coastguard Worker```bash 1557*cfb92d14SAndroid Build Coastguard Worker> dua iid 1558*cfb92d14SAndroid Build Coastguard Worker0004000300020001 1559*cfb92d14SAndroid Build Coastguard WorkerDone 1560*cfb92d14SAndroid Build Coastguard Worker``` 1561*cfb92d14SAndroid Build Coastguard Worker 1562*cfb92d14SAndroid Build Coastguard Worker### dua iid \<iid\> 1563*cfb92d14SAndroid Build Coastguard Worker 1564*cfb92d14SAndroid Build Coastguard WorkerSet the Interface Identifier manually specified for Thread Domain Unicast Address on Thread 1.2 device. 1565*cfb92d14SAndroid Build Coastguard Worker 1566*cfb92d14SAndroid Build Coastguard Worker```bash 1567*cfb92d14SAndroid Build Coastguard Worker> dua iid 0004000300020001 1568*cfb92d14SAndroid Build Coastguard WorkerDone 1569*cfb92d14SAndroid Build Coastguard Worker``` 1570*cfb92d14SAndroid Build Coastguard Worker 1571*cfb92d14SAndroid Build Coastguard Worker### dua iid clear 1572*cfb92d14SAndroid Build Coastguard Worker 1573*cfb92d14SAndroid Build Coastguard WorkerClear the Interface Identifier manually specified for Thread Domain Unicast Address on Thread 1.2 device. 1574*cfb92d14SAndroid Build Coastguard Worker 1575*cfb92d14SAndroid Build Coastguard Worker```bash 1576*cfb92d14SAndroid Build Coastguard Worker> dua iid clear 1577*cfb92d14SAndroid Build Coastguard WorkerDone 1578*cfb92d14SAndroid Build Coastguard Worker``` 1579*cfb92d14SAndroid Build Coastguard Worker 1580*cfb92d14SAndroid Build Coastguard Worker### eidcache 1581*cfb92d14SAndroid Build Coastguard Worker 1582*cfb92d14SAndroid Build Coastguard WorkerPrint the EID-to-RLOC cache entries. 1583*cfb92d14SAndroid Build Coastguard Worker 1584*cfb92d14SAndroid Build Coastguard Worker```bash 1585*cfb92d14SAndroid Build Coastguard Worker> eidcache 1586*cfb92d14SAndroid Build Coastguard Workerfd49:caf4:a29f:dc0e:97fc:69dd:3c16:df7d 2000 cache canEvict=1 transTime=0 eid=fd49:caf4:a29f:dc0e:97fc:69dd:3c16:df7d 1587*cfb92d14SAndroid Build Coastguard Workerfd49:caf4:a29f:dc0e:97fc:69dd:3c16:df7f fffe retry canEvict=1 timeout=10 retryDelay=30 1588*cfb92d14SAndroid Build Coastguard WorkerDone 1589*cfb92d14SAndroid Build Coastguard Worker``` 1590*cfb92d14SAndroid Build Coastguard Worker 1591*cfb92d14SAndroid Build Coastguard Worker### eui64 1592*cfb92d14SAndroid Build Coastguard Worker 1593*cfb92d14SAndroid Build Coastguard WorkerGet the factory-assigned IEEE EUI-64. 1594*cfb92d14SAndroid Build Coastguard Worker 1595*cfb92d14SAndroid Build Coastguard Worker```bash 1596*cfb92d14SAndroid Build Coastguard Worker> eui64 1597*cfb92d14SAndroid Build Coastguard Worker0615aae900124b00 1598*cfb92d14SAndroid Build Coastguard WorkerDone 1599*cfb92d14SAndroid Build Coastguard Worker``` 1600*cfb92d14SAndroid Build Coastguard Worker 1601*cfb92d14SAndroid Build Coastguard Worker### extaddr 1602*cfb92d14SAndroid Build Coastguard Worker 1603*cfb92d14SAndroid Build Coastguard WorkerGet the IEEE 802.15.4 Extended Address. 1604*cfb92d14SAndroid Build Coastguard Worker 1605*cfb92d14SAndroid Build Coastguard Worker```bash 1606*cfb92d14SAndroid Build Coastguard Worker> extaddr 1607*cfb92d14SAndroid Build Coastguard Workerdead00beef00cafe 1608*cfb92d14SAndroid Build Coastguard WorkerDone 1609*cfb92d14SAndroid Build Coastguard Worker``` 1610*cfb92d14SAndroid Build Coastguard Worker 1611*cfb92d14SAndroid Build Coastguard Worker### extaddr \<extaddr\> 1612*cfb92d14SAndroid Build Coastguard Worker 1613*cfb92d14SAndroid Build Coastguard WorkerSet the IEEE 802.15.4 Extended Address. 1614*cfb92d14SAndroid Build Coastguard Worker 1615*cfb92d14SAndroid Build Coastguard Worker```bash 1616*cfb92d14SAndroid Build Coastguard Worker> extaddr dead00beef00cafe 1617*cfb92d14SAndroid Build Coastguard Workerdead00beef00cafe 1618*cfb92d14SAndroid Build Coastguard WorkerDone 1619*cfb92d14SAndroid Build Coastguard Worker``` 1620*cfb92d14SAndroid Build Coastguard Worker 1621*cfb92d14SAndroid Build Coastguard Worker### extpanid 1622*cfb92d14SAndroid Build Coastguard Worker 1623*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Extended PAN ID value. 1624*cfb92d14SAndroid Build Coastguard Worker 1625*cfb92d14SAndroid Build Coastguard Worker**NOTE** The current commissioning credential becomes stale after changing this value. Use [pskc](#pskc--p-keypassphrase) to reset. 1626*cfb92d14SAndroid Build Coastguard Worker 1627*cfb92d14SAndroid Build Coastguard Worker```bash 1628*cfb92d14SAndroid Build Coastguard Worker> extpanid 1629*cfb92d14SAndroid Build Coastguard Workerdead00beef00cafe 1630*cfb92d14SAndroid Build Coastguard WorkerDone 1631*cfb92d14SAndroid Build Coastguard Worker``` 1632*cfb92d14SAndroid Build Coastguard Worker 1633*cfb92d14SAndroid Build Coastguard Worker### extpanid \<extpanid\> 1634*cfb92d14SAndroid Build Coastguard Worker 1635*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Extended PAN ID value. 1636*cfb92d14SAndroid Build Coastguard Worker 1637*cfb92d14SAndroid Build Coastguard Worker```bash 1638*cfb92d14SAndroid Build Coastguard Worker> extpanid dead00beef00cafe 1639*cfb92d14SAndroid Build Coastguard WorkerDone 1640*cfb92d14SAndroid Build Coastguard Worker``` 1641*cfb92d14SAndroid Build Coastguard Worker 1642*cfb92d14SAndroid Build Coastguard Worker### factoryreset 1643*cfb92d14SAndroid Build Coastguard Worker 1644*cfb92d14SAndroid Build Coastguard WorkerDelete all stored settings, and signal a platform reset. 1645*cfb92d14SAndroid Build Coastguard Worker 1646*cfb92d14SAndroid Build Coastguard Worker```bash 1647*cfb92d14SAndroid Build Coastguard Worker> factoryreset 1648*cfb92d14SAndroid Build Coastguard Worker``` 1649*cfb92d14SAndroid Build Coastguard Worker 1650*cfb92d14SAndroid Build Coastguard Worker### fake 1651*cfb92d14SAndroid Build Coastguard Worker 1652*cfb92d14SAndroid Build Coastguard WorkerSend fake Thread messages. 1653*cfb92d14SAndroid Build Coastguard Worker 1654*cfb92d14SAndroid Build Coastguard WorkerNote: Only for certification test. 1655*cfb92d14SAndroid Build Coastguard Worker 1656*cfb92d14SAndroid Build Coastguard Worker#### fake /a/an \<dst-ipaddr\> \<target\> \<meshLocalIid\> 1657*cfb92d14SAndroid Build Coastguard Worker 1658*cfb92d14SAndroid Build Coastguard Worker```bash 1659*cfb92d14SAndroid Build Coastguard Worker> fake /a/an fdde:ad00:beef:0:0:ff:fe00:a800 fd00:7d03:7d03:7d03:55f2:bb6a:7a43:a03b 1111222233334444 1660*cfb92d14SAndroid Build Coastguard WorkerDone 1661*cfb92d14SAndroid Build Coastguard Worker``` 1662*cfb92d14SAndroid Build Coastguard Worker 1663*cfb92d14SAndroid Build Coastguard Worker### fem 1664*cfb92d14SAndroid Build Coastguard Worker 1665*cfb92d14SAndroid Build Coastguard WorkerGet external FEM parameters. 1666*cfb92d14SAndroid Build Coastguard Worker 1667*cfb92d14SAndroid Build Coastguard Worker```bash 1668*cfb92d14SAndroid Build Coastguard Worker> fem 1669*cfb92d14SAndroid Build Coastguard WorkerLNA gain 11 dBm 1670*cfb92d14SAndroid Build Coastguard WorkerDone 1671*cfb92d14SAndroid Build Coastguard Worker``` 1672*cfb92d14SAndroid Build Coastguard Worker 1673*cfb92d14SAndroid Build Coastguard Worker### fem lnagain 1674*cfb92d14SAndroid Build Coastguard Worker 1675*cfb92d14SAndroid Build Coastguard WorkerGet the Rx LNA gain in dBm of the external FEM. 1676*cfb92d14SAndroid Build Coastguard Worker 1677*cfb92d14SAndroid Build Coastguard Worker```bash 1678*cfb92d14SAndroid Build Coastguard Worker> fem lnagain 1679*cfb92d14SAndroid Build Coastguard Worker11 1680*cfb92d14SAndroid Build Coastguard WorkerDone 1681*cfb92d14SAndroid Build Coastguard Worker``` 1682*cfb92d14SAndroid Build Coastguard Worker 1683*cfb92d14SAndroid Build Coastguard Worker### fem lnagain \<LNA gain\> 1684*cfb92d14SAndroid Build Coastguard Worker 1685*cfb92d14SAndroid Build Coastguard WorkerSet the Rx LNA gain in dBm of the external FEM. 1686*cfb92d14SAndroid Build Coastguard Worker 1687*cfb92d14SAndroid Build Coastguard Worker```bash 1688*cfb92d14SAndroid Build Coastguard Worker> fem lnagain 8 1689*cfb92d14SAndroid Build Coastguard WorkerDone 1690*cfb92d14SAndroid Build Coastguard Worker``` 1691*cfb92d14SAndroid Build Coastguard Worker 1692*cfb92d14SAndroid Build Coastguard Worker### ifconfig 1693*cfb92d14SAndroid Build Coastguard Worker 1694*cfb92d14SAndroid Build Coastguard WorkerShow the status of the IPv6 interface. 1695*cfb92d14SAndroid Build Coastguard Worker 1696*cfb92d14SAndroid Build Coastguard Worker```bash 1697*cfb92d14SAndroid Build Coastguard Worker> ifconfig 1698*cfb92d14SAndroid Build Coastguard Workerdown 1699*cfb92d14SAndroid Build Coastguard WorkerDone 1700*cfb92d14SAndroid Build Coastguard Worker``` 1701*cfb92d14SAndroid Build Coastguard Worker 1702*cfb92d14SAndroid Build Coastguard Worker### ifconfig up 1703*cfb92d14SAndroid Build Coastguard Worker 1704*cfb92d14SAndroid Build Coastguard WorkerBring up the IPv6 interface. 1705*cfb92d14SAndroid Build Coastguard Worker 1706*cfb92d14SAndroid Build Coastguard Worker```bash 1707*cfb92d14SAndroid Build Coastguard Worker> ifconfig up 1708*cfb92d14SAndroid Build Coastguard WorkerDone 1709*cfb92d14SAndroid Build Coastguard Worker``` 1710*cfb92d14SAndroid Build Coastguard Worker 1711*cfb92d14SAndroid Build Coastguard Worker### ifconfig down 1712*cfb92d14SAndroid Build Coastguard Worker 1713*cfb92d14SAndroid Build Coastguard WorkerBring down the IPv6 interface. 1714*cfb92d14SAndroid Build Coastguard Worker 1715*cfb92d14SAndroid Build Coastguard Worker```bash 1716*cfb92d14SAndroid Build Coastguard Worker> ifconfig down 1717*cfb92d14SAndroid Build Coastguard WorkerDone 1718*cfb92d14SAndroid Build Coastguard Worker``` 1719*cfb92d14SAndroid Build Coastguard Worker 1720*cfb92d14SAndroid Build Coastguard Worker### instanceid 1721*cfb92d14SAndroid Build Coastguard Worker 1722*cfb92d14SAndroid Build Coastguard WorkerShow OpenThread instance identifier. 1723*cfb92d14SAndroid Build Coastguard Worker 1724*cfb92d14SAndroid Build Coastguard Worker```bash 1725*cfb92d14SAndroid Build Coastguard Worker> instanceid 1726*cfb92d14SAndroid Build Coastguard Worker468697314 1727*cfb92d14SAndroid Build Coastguard WorkerDone 1728*cfb92d14SAndroid Build Coastguard Worker``` 1729*cfb92d14SAndroid Build Coastguard Worker 1730*cfb92d14SAndroid Build Coastguard Worker### ipaddr 1731*cfb92d14SAndroid Build Coastguard Worker 1732*cfb92d14SAndroid Build Coastguard WorkerList all IPv6 addresses assigned to the Thread interface. 1733*cfb92d14SAndroid Build Coastguard Worker 1734*cfb92d14SAndroid Build Coastguard Worker```bash 1735*cfb92d14SAndroid Build Coastguard Worker> ipaddr 1736*cfb92d14SAndroid Build Coastguard Workerfdde:ad00:beef:0:0:ff:fe00:0 1737*cfb92d14SAndroid Build Coastguard Workerfdde:ad00:beef:0:558:f56b:d688:799 1738*cfb92d14SAndroid Build Coastguard Workerfe80:0:0:0:f3d9:2a82:c8d8:fe43 1739*cfb92d14SAndroid Build Coastguard WorkerDone 1740*cfb92d14SAndroid Build Coastguard Worker``` 1741*cfb92d14SAndroid Build Coastguard Worker 1742*cfb92d14SAndroid Build Coastguard WorkerUse `-v` to get more verbose information about the address: 1743*cfb92d14SAndroid Build Coastguard Worker 1744*cfb92d14SAndroid Build Coastguard Worker- `origin`: can be `thread`, `slaac`, `dhcp6`, or `manual`, and indicates the origin of the address 1745*cfb92d14SAndroid Build Coastguard Worker- `plen`: prefix length (in bits) 1746*cfb92d14SAndroid Build Coastguard Worker- `preferred`: preferred flag (boolean) 1747*cfb92d14SAndroid Build Coastguard Worker- `valid`: valid flag (boolean) 1748*cfb92d14SAndroid Build Coastguard Worker 1749*cfb92d14SAndroid Build Coastguard Worker```bash 1750*cfb92d14SAndroid Build Coastguard Worker> ipaddr -v 1751*cfb92d14SAndroid Build Coastguard Workerfd5e:18fa:f4a5:b8:0:ff:fe00:fc00 origin:thread plen:64 preferred:0 valid:1 1752*cfb92d14SAndroid Build Coastguard Workerfd5e:18fa:f4a5:b8:0:ff:fe00:dc00 origin:thread plen:64 preferred:0 valid:1 1753*cfb92d14SAndroid Build Coastguard Workerfd5e:18fa:f4a5:b8:f8e:5d95:87a0:e82c origin:thread plen:64 preferred:0 valid:1 1754*cfb92d14SAndroid Build Coastguard Workerfe80:0:0:0:4891:b191:e277:8826 origin:thread plen:64 preferred:1 valid:1 1755*cfb92d14SAndroid Build Coastguard WorkerDone 1756*cfb92d14SAndroid Build Coastguard Worker``` 1757*cfb92d14SAndroid Build Coastguard Worker 1758*cfb92d14SAndroid Build Coastguard Worker### ipaddr add \<ipaddr\> 1759*cfb92d14SAndroid Build Coastguard Worker 1760*cfb92d14SAndroid Build Coastguard WorkerAdd an IPv6 address to the Thread interface. 1761*cfb92d14SAndroid Build Coastguard Worker 1762*cfb92d14SAndroid Build Coastguard Worker```bash 1763*cfb92d14SAndroid Build Coastguard Worker> ipaddr add 2001::dead:beef:cafe 1764*cfb92d14SAndroid Build Coastguard WorkerDone 1765*cfb92d14SAndroid Build Coastguard Worker``` 1766*cfb92d14SAndroid Build Coastguard Worker 1767*cfb92d14SAndroid Build Coastguard Worker### ipaddr del \<ipaddr\> 1768*cfb92d14SAndroid Build Coastguard Worker 1769*cfb92d14SAndroid Build Coastguard WorkerDelete an IPv6 address from the Thread interface. 1770*cfb92d14SAndroid Build Coastguard Worker 1771*cfb92d14SAndroid Build Coastguard Worker```bash 1772*cfb92d14SAndroid Build Coastguard Worker> ipaddr del 2001::dead:beef:cafe 1773*cfb92d14SAndroid Build Coastguard WorkerDone 1774*cfb92d14SAndroid Build Coastguard Worker``` 1775*cfb92d14SAndroid Build Coastguard Worker 1776*cfb92d14SAndroid Build Coastguard Worker### ipaddr linklocal 1777*cfb92d14SAndroid Build Coastguard Worker 1778*cfb92d14SAndroid Build Coastguard WorkerPrint Thread link-local IPv6 address. 1779*cfb92d14SAndroid Build Coastguard Worker 1780*cfb92d14SAndroid Build Coastguard Worker```bash 1781*cfb92d14SAndroid Build Coastguard Worker> ipaddr linklocal 1782*cfb92d14SAndroid Build Coastguard Workerfe80:0:0:0:f3d9:2a82:c8d8:fe43 1783*cfb92d14SAndroid Build Coastguard WorkerDone 1784*cfb92d14SAndroid Build Coastguard Worker``` 1785*cfb92d14SAndroid Build Coastguard Worker 1786*cfb92d14SAndroid Build Coastguard Worker### ipaddr mleid 1787*cfb92d14SAndroid Build Coastguard Worker 1788*cfb92d14SAndroid Build Coastguard WorkerPrint Thread Mesh Local EID address. 1789*cfb92d14SAndroid Build Coastguard Worker 1790*cfb92d14SAndroid Build Coastguard Worker```bash 1791*cfb92d14SAndroid Build Coastguard Worker> ipaddr mleid 1792*cfb92d14SAndroid Build Coastguard Workerfdde:ad00:beef:0:558:f56b:d688:799 1793*cfb92d14SAndroid Build Coastguard WorkerDone 1794*cfb92d14SAndroid Build Coastguard Worker``` 1795*cfb92d14SAndroid Build Coastguard Worker 1796*cfb92d14SAndroid Build Coastguard Worker### ipaddr rloc 1797*cfb92d14SAndroid Build Coastguard Worker 1798*cfb92d14SAndroid Build Coastguard WorkerPrint Thread Routing Locator (RLOC) address. 1799*cfb92d14SAndroid Build Coastguard Worker 1800*cfb92d14SAndroid Build Coastguard Worker```bash 1801*cfb92d14SAndroid Build Coastguard Worker> ipaddr rloc 1802*cfb92d14SAndroid Build Coastguard Workerfdde:ad00:beef:0:0:ff:fe00:0 1803*cfb92d14SAndroid Build Coastguard WorkerDone 1804*cfb92d14SAndroid Build Coastguard Worker``` 1805*cfb92d14SAndroid Build Coastguard Worker 1806*cfb92d14SAndroid Build Coastguard Worker### ipmaddr 1807*cfb92d14SAndroid Build Coastguard Worker 1808*cfb92d14SAndroid Build Coastguard WorkerList all IPv6 multicast addresses subscribed to the Thread interface. 1809*cfb92d14SAndroid Build Coastguard Worker 1810*cfb92d14SAndroid Build Coastguard Worker```bash 1811*cfb92d14SAndroid Build Coastguard Worker> ipmaddr 1812*cfb92d14SAndroid Build Coastguard Workerff05:0:0:0:0:0:0:1 1813*cfb92d14SAndroid Build Coastguard Workerff33:40:fdde:ad00:beef:0:0:1 1814*cfb92d14SAndroid Build Coastguard Workerff32:40:fdde:ad00:beef:0:0:1 1815*cfb92d14SAndroid Build Coastguard WorkerDone 1816*cfb92d14SAndroid Build Coastguard Worker``` 1817*cfb92d14SAndroid Build Coastguard Worker 1818*cfb92d14SAndroid Build Coastguard Worker### ipmaddr add \<ipaddr\> 1819*cfb92d14SAndroid Build Coastguard Worker 1820*cfb92d14SAndroid Build Coastguard WorkerSubscribe the Thread interface to the IPv6 multicast address. 1821*cfb92d14SAndroid Build Coastguard Worker 1822*cfb92d14SAndroid Build Coastguard Worker```bash 1823*cfb92d14SAndroid Build Coastguard Worker> ipmaddr add ff05::1 1824*cfb92d14SAndroid Build Coastguard WorkerDone 1825*cfb92d14SAndroid Build Coastguard Worker``` 1826*cfb92d14SAndroid Build Coastguard Worker 1827*cfb92d14SAndroid Build Coastguard Worker### ipmaddr del \<ipaddr\> 1828*cfb92d14SAndroid Build Coastguard Worker 1829*cfb92d14SAndroid Build Coastguard WorkerUnsubscribe the Thread interface to the IPv6 multicast address. 1830*cfb92d14SAndroid Build Coastguard Worker 1831*cfb92d14SAndroid Build Coastguard Worker```bash 1832*cfb92d14SAndroid Build Coastguard Worker> ipmaddr del ff05::1 1833*cfb92d14SAndroid Build Coastguard WorkerDone 1834*cfb92d14SAndroid Build Coastguard Worker``` 1835*cfb92d14SAndroid Build Coastguard Worker 1836*cfb92d14SAndroid Build Coastguard Worker### ipmaddr llatn 1837*cfb92d14SAndroid Build Coastguard Worker 1838*cfb92d14SAndroid Build Coastguard WorkerGet the Link-Local All Thread Nodes multicast address. 1839*cfb92d14SAndroid Build Coastguard Worker 1840*cfb92d14SAndroid Build Coastguard Worker``` 1841*cfb92d14SAndroid Build Coastguard Worker> ipmaddr llatn 1842*cfb92d14SAndroid Build Coastguard Workerff32:40:fdde:ad00:beef:0:0:1 1843*cfb92d14SAndroid Build Coastguard WorkerDone 1844*cfb92d14SAndroid Build Coastguard Worker``` 1845*cfb92d14SAndroid Build Coastguard Worker 1846*cfb92d14SAndroid Build Coastguard Worker### ipmaddr rlatn 1847*cfb92d14SAndroid Build Coastguard Worker 1848*cfb92d14SAndroid Build Coastguard WorkerGet the Realm-Local All Thread Nodes multicast address. 1849*cfb92d14SAndroid Build Coastguard Worker 1850*cfb92d14SAndroid Build Coastguard Worker``` 1851*cfb92d14SAndroid Build Coastguard Worker> ipmaddr rlatn 1852*cfb92d14SAndroid Build Coastguard Workerff33:40:fdde:ad00:beef:0:0:1 1853*cfb92d14SAndroid Build Coastguard WorkerDone 1854*cfb92d14SAndroid Build Coastguard Worker``` 1855*cfb92d14SAndroid Build Coastguard Worker 1856*cfb92d14SAndroid Build Coastguard Worker### joinerport \<port\> 1857*cfb92d14SAndroid Build Coastguard Worker 1858*cfb92d14SAndroid Build Coastguard WorkerSet the Joiner port. 1859*cfb92d14SAndroid Build Coastguard Worker 1860*cfb92d14SAndroid Build Coastguard Worker```bash 1861*cfb92d14SAndroid Build Coastguard Worker> joinerport 1000 1862*cfb92d14SAndroid Build Coastguard WorkerDone 1863*cfb92d14SAndroid Build Coastguard Worker``` 1864*cfb92d14SAndroid Build Coastguard Worker 1865*cfb92d14SAndroid Build Coastguard Worker### keysequence counter 1866*cfb92d14SAndroid Build Coastguard Worker 1867*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Key Sequence Counter. 1868*cfb92d14SAndroid Build Coastguard Worker 1869*cfb92d14SAndroid Build Coastguard Worker```bash 1870*cfb92d14SAndroid Build Coastguard Worker> keysequence counter 1871*cfb92d14SAndroid Build Coastguard Worker10 1872*cfb92d14SAndroid Build Coastguard WorkerDone 1873*cfb92d14SAndroid Build Coastguard Worker``` 1874*cfb92d14SAndroid Build Coastguard Worker 1875*cfb92d14SAndroid Build Coastguard Worker### keysequence counter \<counter\> 1876*cfb92d14SAndroid Build Coastguard Worker 1877*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Key Sequence Counter. 1878*cfb92d14SAndroid Build Coastguard Worker 1879*cfb92d14SAndroid Build Coastguard WorkerThis command is reserved for testing and demo purposes only. Changing Key Sequence Counter will render a production application non-compliant with the Thread Specification. 1880*cfb92d14SAndroid Build Coastguard Worker 1881*cfb92d14SAndroid Build Coastguard Worker```bash 1882*cfb92d14SAndroid Build Coastguard Worker> keysequence counter 10 1883*cfb92d14SAndroid Build Coastguard WorkerDone 1884*cfb92d14SAndroid Build Coastguard Worker``` 1885*cfb92d14SAndroid Build Coastguard Worker 1886*cfb92d14SAndroid Build Coastguard Worker### keysequence guardtime 1887*cfb92d14SAndroid Build Coastguard Worker 1888*cfb92d14SAndroid Build Coastguard WorkerGet Thread Key Switch Guard Time (in hours) 1889*cfb92d14SAndroid Build Coastguard Worker 1890*cfb92d14SAndroid Build Coastguard Worker```bash 1891*cfb92d14SAndroid Build Coastguard Worker> keysequence guardtime 1892*cfb92d14SAndroid Build Coastguard Worker0 1893*cfb92d14SAndroid Build Coastguard WorkerDone 1894*cfb92d14SAndroid Build Coastguard Worker``` 1895*cfb92d14SAndroid Build Coastguard Worker 1896*cfb92d14SAndroid Build Coastguard Worker### keysequence guardtime \<guardtime\> 1897*cfb92d14SAndroid Build Coastguard Worker 1898*cfb92d14SAndroid Build Coastguard WorkerSet Thread Key Switch Guard Time (in hours). 1899*cfb92d14SAndroid Build Coastguard Worker 1900*cfb92d14SAndroid Build Coastguard WorkerThis command is reserved for testing and demo purposes only. Changing Key Switch Guard Time will render a production application non-compliant with the Thread Specification. 1901*cfb92d14SAndroid Build Coastguard Worker 1902*cfb92d14SAndroid Build Coastguard Worker```bash 1903*cfb92d14SAndroid Build Coastguard Worker> keysequence guardtime 0 1904*cfb92d14SAndroid Build Coastguard WorkerDone 1905*cfb92d14SAndroid Build Coastguard Worker``` 1906*cfb92d14SAndroid Build Coastguard Worker 1907*cfb92d14SAndroid Build Coastguard Worker### leaderdata 1908*cfb92d14SAndroid Build Coastguard Worker 1909*cfb92d14SAndroid Build Coastguard WorkerShow the Thread Leader Data. 1910*cfb92d14SAndroid Build Coastguard Worker 1911*cfb92d14SAndroid Build Coastguard Worker```bash 1912*cfb92d14SAndroid Build Coastguard Worker> leaderdata 1913*cfb92d14SAndroid Build Coastguard WorkerPartition ID: 1077744240 1914*cfb92d14SAndroid Build Coastguard WorkerWeighting: 64 1915*cfb92d14SAndroid Build Coastguard WorkerData Version: 109 1916*cfb92d14SAndroid Build Coastguard WorkerStable Data Version: 211 1917*cfb92d14SAndroid Build Coastguard WorkerLeader Router ID: 60 1918*cfb92d14SAndroid Build Coastguard WorkerDone 1919*cfb92d14SAndroid Build Coastguard Worker``` 1920*cfb92d14SAndroid Build Coastguard Worker 1921*cfb92d14SAndroid Build Coastguard Worker### leaderweight 1922*cfb92d14SAndroid Build Coastguard Worker 1923*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Leader Weight. 1924*cfb92d14SAndroid Build Coastguard Worker 1925*cfb92d14SAndroid Build Coastguard Worker```bash 1926*cfb92d14SAndroid Build Coastguard Worker> leaderweight 1927*cfb92d14SAndroid Build Coastguard Worker128 1928*cfb92d14SAndroid Build Coastguard WorkerDone 1929*cfb92d14SAndroid Build Coastguard Worker``` 1930*cfb92d14SAndroid Build Coastguard Worker 1931*cfb92d14SAndroid Build Coastguard Worker### leaderweight \<weight\> 1932*cfb92d14SAndroid Build Coastguard Worker 1933*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Leader Weight. 1934*cfb92d14SAndroid Build Coastguard Worker 1935*cfb92d14SAndroid Build Coastguard Worker```bash 1936*cfb92d14SAndroid Build Coastguard Worker> leaderweight 128 1937*cfb92d14SAndroid Build Coastguard WorkerDone 1938*cfb92d14SAndroid Build Coastguard Worker``` 1939*cfb92d14SAndroid Build Coastguard Worker 1940*cfb92d14SAndroid Build Coastguard Worker### linkmetrics config \[async\] \<ipaddr\> enhanced-ack clear 1941*cfb92d14SAndroid Build Coastguard Worker 1942*cfb92d14SAndroid Build Coastguard WorkerSend a Link Metrics Management Request to clear an Enhanced-ACK Based Probing. 1943*cfb92d14SAndroid Build Coastguard Worker 1944*cfb92d14SAndroid Build Coastguard Worker- async: Use the non-blocking mode. 1945*cfb92d14SAndroid Build Coastguard Worker- ipaddr: Peer address (SHOULD be link local address of the neighboring device). 1946*cfb92d14SAndroid Build Coastguard Worker 1947*cfb92d14SAndroid Build Coastguard Worker```bash 1948*cfb92d14SAndroid Build Coastguard Worker> linkmetrics config fe80:0:0:0:3092:f334:1455:1ad2 enhanced-ack clear 1949*cfb92d14SAndroid Build Coastguard WorkerReceived Link Metrics Management Response from: fe80:0:0:0:3092:f334:1455:1ad2 1950*cfb92d14SAndroid Build Coastguard WorkerStatus: Success 1951*cfb92d14SAndroid Build Coastguard WorkerDone 1952*cfb92d14SAndroid Build Coastguard Worker 1953*cfb92d14SAndroid Build Coastguard Worker> linkmetrics config async fe80:0:0:0:3092:f334:1455:1ad2 enhanced-ack clear 1954*cfb92d14SAndroid Build Coastguard WorkerDone 1955*cfb92d14SAndroid Build Coastguard Worker> Received Link Metrics Management Response from: fe80:0:0:0:3092:f334:1455:1ad2 1956*cfb92d14SAndroid Build Coastguard WorkerStatus: Success 1957*cfb92d14SAndroid Build Coastguard Worker``` 1958*cfb92d14SAndroid Build Coastguard Worker 1959*cfb92d14SAndroid Build Coastguard Worker### linkmetrics config \[async\] \<ipaddr\> enhanced-ack register \<qmr\> \[r\] 1960*cfb92d14SAndroid Build Coastguard Worker 1961*cfb92d14SAndroid Build Coastguard WorkerSend a Link Metrics Management Request to register an Enhanced-ACK Based Probing. 1962*cfb92d14SAndroid Build Coastguard Worker 1963*cfb92d14SAndroid Build Coastguard Worker- async: Use the non-blocking mode. 1964*cfb92d14SAndroid Build Coastguard Worker- ipaddr: Peer address. 1965*cfb92d14SAndroid Build Coastguard Worker- qmr: This specifies what metrics to query. At most two options are allowed to select (per spec 4.11.3.4.4.6). 1966*cfb92d14SAndroid Build Coastguard Worker - q: Layer 2 LQI. 1967*cfb92d14SAndroid Build Coastguard Worker - m: Link Margin. 1968*cfb92d14SAndroid Build Coastguard Worker - r: RSSI. 1969*cfb92d14SAndroid Build Coastguard Worker- r: This is optional and only used for reference devices. When this option is specified, Type/Average Enum of each Type Id Flags would be set to `reserved`. This is used to verify the Probing Subject correctly handles invalid Type Id Flags. This is only available when `OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is enabled. 1970*cfb92d14SAndroid Build Coastguard Worker 1971*cfb92d14SAndroid Build Coastguard Worker```bash 1972*cfb92d14SAndroid Build Coastguard Worker> linkmetrics config fe80:0:0:0:3092:f334:1455:1ad2 enhanced-ack register qm 1973*cfb92d14SAndroid Build Coastguard WorkerReceived Link Metrics Management Response from: fe80:0:0:0:3092:f334:1455:1ad2 1974*cfb92d14SAndroid Build Coastguard WorkerStatus: Success 1975*cfb92d14SAndroid Build Coastguard WorkerDone 1976*cfb92d14SAndroid Build Coastguard Worker 1977*cfb92d14SAndroid Build Coastguard Worker> linkmetrics config async fe80:0:0:0:3092:f334:1455:1ad2 enhanced-ack register qm 1978*cfb92d14SAndroid Build Coastguard WorkerDone 1979*cfb92d14SAndroid Build Coastguard Worker> Received Link Metrics Management Response from: fe80:0:0:0:3092:f334:1455:1ad2 1980*cfb92d14SAndroid Build Coastguard WorkerStatus: Success 1981*cfb92d14SAndroid Build Coastguard Worker 1982*cfb92d14SAndroid Build Coastguard Worker> linkmetrics config async fe80:0:0:0:3092:f334:1455:1ad2 enhanced-ack register qm r 1983*cfb92d14SAndroid Build Coastguard WorkerDone 1984*cfb92d14SAndroid Build Coastguard Worker> Received Link Metrics Management Response from: fe80:0:0:0:3092:f334:1455:1ad2 1985*cfb92d14SAndroid Build Coastguard WorkerStatus: Cannot support new series 1986*cfb92d14SAndroid Build Coastguard Worker``` 1987*cfb92d14SAndroid Build Coastguard Worker 1988*cfb92d14SAndroid Build Coastguard Worker### linkmetrics config \[async\] \<ipaddr\> forward \<seriesid\> \<ldraX\> \<pqmr\> 1989*cfb92d14SAndroid Build Coastguard Worker 1990*cfb92d14SAndroid Build Coastguard WorkerSend a Link Metrics Management Request to configure a Forward Tracking Series. 1991*cfb92d14SAndroid Build Coastguard Worker 1992*cfb92d14SAndroid Build Coastguard Worker- async: Use the non-blocking mode. 1993*cfb92d14SAndroid Build Coastguard Worker- ipaddr: Peer address. 1994*cfb92d14SAndroid Build Coastguard Worker- seriesid: The Series ID. 1995*cfb92d14SAndroid Build Coastguard Worker- ldraX: This specifies which frames are to be accounted. 1996*cfb92d14SAndroid Build Coastguard Worker - l: MLE Link Probe. 1997*cfb92d14SAndroid Build Coastguard Worker - d: MAC Data. 1998*cfb92d14SAndroid Build Coastguard Worker - r: MAC Data Request. 1999*cfb92d14SAndroid Build Coastguard Worker - a: MAC Ack. 2000*cfb92d14SAndroid Build Coastguard Worker - X: This represents none of the above flags, i.e., to stop accounting and remove the series. This can only be used without any other flags. 2001*cfb92d14SAndroid Build Coastguard Worker- pqmr: This specifies what metrics to query. 2002*cfb92d14SAndroid Build Coastguard Worker - p: Layer 2 Number of PDUs received. 2003*cfb92d14SAndroid Build Coastguard Worker - q: Layer 2 LQI. 2004*cfb92d14SAndroid Build Coastguard Worker - m: Link Margin. 2005*cfb92d14SAndroid Build Coastguard Worker - r: RSSI. 2006*cfb92d14SAndroid Build Coastguard Worker 2007*cfb92d14SAndroid Build Coastguard Worker```bash 2008*cfb92d14SAndroid Build Coastguard Worker> linkmetrics config fe80:0:0:0:3092:f334:1455:1ad2 forward 1 dra pqmr 2009*cfb92d14SAndroid Build Coastguard WorkerReceived Link Metrics Management Response from: fe80:0:0:0:3092:f334:1455:1ad2 2010*cfb92d14SAndroid Build Coastguard WorkerStatus: SUCCESS 2011*cfb92d14SAndroid Build Coastguard WorkerDone 2012*cfb92d14SAndroid Build Coastguard Worker 2013*cfb92d14SAndroid Build Coastguard Worker> linkmetrics config async fe80:0:0:0:3092:f334:1455:1ad2 forward 1 dra pqmr 2014*cfb92d14SAndroid Build Coastguard WorkerDone 2015*cfb92d14SAndroid Build Coastguard Worker> Received Link Metrics Management Response from: fe80:0:0:0:3092:f334:1455:1ad2 2016*cfb92d14SAndroid Build Coastguard WorkerStatus: SUCCESS 2017*cfb92d14SAndroid Build Coastguard Worker``` 2018*cfb92d14SAndroid Build Coastguard Worker 2019*cfb92d14SAndroid Build Coastguard Worker### linkmetrics probe \<ipaddr\> \<seriesid\> \<length\> 2020*cfb92d14SAndroid Build Coastguard Worker 2021*cfb92d14SAndroid Build Coastguard WorkerSend a MLE Link Probe message to the peer. 2022*cfb92d14SAndroid Build Coastguard Worker 2023*cfb92d14SAndroid Build Coastguard Worker- ipaddr: Peer address. 2024*cfb92d14SAndroid Build Coastguard Worker- seriesid: The Series ID for which this Probe message targets at. 2025*cfb92d14SAndroid Build Coastguard Worker- length: The length of the Probe message, valid range: [0, 64]. 2026*cfb92d14SAndroid Build Coastguard Worker 2027*cfb92d14SAndroid Build Coastguard Worker```bash 2028*cfb92d14SAndroid Build Coastguard Worker> linkmetrics probe fe80:0:0:0:3092:f334:1455:1ad2 1 10 2029*cfb92d14SAndroid Build Coastguard WorkerDone 2030*cfb92d14SAndroid Build Coastguard Worker``` 2031*cfb92d14SAndroid Build Coastguard Worker 2032*cfb92d14SAndroid Build Coastguard Worker### linkmetrics request \[async\] \<ipaddr\> single \<pqmr\> 2033*cfb92d14SAndroid Build Coastguard Worker 2034*cfb92d14SAndroid Build Coastguard WorkerPerform a Link Metrics query (Single Probe). 2035*cfb92d14SAndroid Build Coastguard Worker 2036*cfb92d14SAndroid Build Coastguard Worker- async: Use the non-blocking mode. 2037*cfb92d14SAndroid Build Coastguard Worker- ipaddr: Peer address. 2038*cfb92d14SAndroid Build Coastguard Worker- pqmr: This specifies what metrics to query. 2039*cfb92d14SAndroid Build Coastguard Worker - p: Layer 2 Number of PDUs received. 2040*cfb92d14SAndroid Build Coastguard Worker - q: Layer 2 LQI. 2041*cfb92d14SAndroid Build Coastguard Worker - m: Link Margin. 2042*cfb92d14SAndroid Build Coastguard Worker - r: RSSI. 2043*cfb92d14SAndroid Build Coastguard Worker 2044*cfb92d14SAndroid Build Coastguard Worker```bash 2045*cfb92d14SAndroid Build Coastguard Worker> linkmetrics request fe80:0:0:0:3092:f334:1455:1ad2 single qmr 2046*cfb92d14SAndroid Build Coastguard WorkerReceived Link Metrics Report from: fe80:0:0:0:3092:f334:1455:1ad2 2047*cfb92d14SAndroid Build Coastguard Worker 2048*cfb92d14SAndroid Build Coastguard Worker - LQI: 76 (Exponential Moving Average) 2049*cfb92d14SAndroid Build Coastguard Worker - Margin: 82 (dB) (Exponential Moving Average) 2050*cfb92d14SAndroid Build Coastguard Worker - RSSI: -18 (dBm) (Exponential Moving Average) 2051*cfb92d14SAndroid Build Coastguard WorkerDone 2052*cfb92d14SAndroid Build Coastguard Worker 2053*cfb92d14SAndroid Build Coastguard Worker> linkmetrics request async fe80:0:0:0:3092:f334:1455:1ad2 single qmr 2054*cfb92d14SAndroid Build Coastguard WorkerDone 2055*cfb92d14SAndroid Build Coastguard Worker> Received Link Metrics Report from: fe80:0:0:0:3092:f334:1455:1ad2 2056*cfb92d14SAndroid Build Coastguard Worker 2057*cfb92d14SAndroid Build Coastguard Worker - LQI: 76 (Exponential Moving Average) 2058*cfb92d14SAndroid Build Coastguard Worker - Margin: 82 (dB) (Exponential Moving Average) 2059*cfb92d14SAndroid Build Coastguard Worker - RSSI: -18 (dBm) (Exponential Moving Average) 2060*cfb92d14SAndroid Build Coastguard Worker``` 2061*cfb92d14SAndroid Build Coastguard Worker 2062*cfb92d14SAndroid Build Coastguard Worker### linkmetrics request \[async\] \<ipaddr\> forward \<seriesid\> 2063*cfb92d14SAndroid Build Coastguard Worker 2064*cfb92d14SAndroid Build Coastguard WorkerPerform a Link Metrics query (Forward Tracking Series). 2065*cfb92d14SAndroid Build Coastguard Worker 2066*cfb92d14SAndroid Build Coastguard Worker- sync: Use the blocking mode. 2067*cfb92d14SAndroid Build Coastguard Worker- ipaddr: Peer address. 2068*cfb92d14SAndroid Build Coastguard Worker- seriesid: The Series ID. 2069*cfb92d14SAndroid Build Coastguard Worker 2070*cfb92d14SAndroid Build Coastguard Worker```bash 2071*cfb92d14SAndroid Build Coastguard Worker> linkmetrics request fe80:0:0:0:3092:f334:1455:1ad2 forward 1 2072*cfb92d14SAndroid Build Coastguard WorkerReceived Link Metrics Report from: fe80:0:0:0:3092:f334:1455:1ad2 2073*cfb92d14SAndroid Build Coastguard Worker 2074*cfb92d14SAndroid Build Coastguard Worker - PDU Counter: 2 (Count/Summation) 2075*cfb92d14SAndroid Build Coastguard Worker - LQI: 76 (Exponential Moving Average) 2076*cfb92d14SAndroid Build Coastguard Worker - Margin: 82 (dB) (Exponential Moving Average) 2077*cfb92d14SAndroid Build Coastguard Worker - RSSI: -18 (dBm) (Exponential Moving Average) 2078*cfb92d14SAndroid Build Coastguard WorkerDone 2079*cfb92d14SAndroid Build Coastguard Worker 2080*cfb92d14SAndroid Build Coastguard Worker> linkmetrics request async fe80:0:0:0:3092:f334:1455:1ad2 forward 1 2081*cfb92d14SAndroid Build Coastguard WorkerDone 2082*cfb92d14SAndroid Build Coastguard Worker> Received Link Metrics Report from: fe80:0:0:0:3092:f334:1455:1ad2 2083*cfb92d14SAndroid Build Coastguard Worker 2084*cfb92d14SAndroid Build Coastguard Worker - PDU Counter: 2 (Count/Summation) 2085*cfb92d14SAndroid Build Coastguard Worker - LQI: 76 (Exponential Moving Average) 2086*cfb92d14SAndroid Build Coastguard Worker - Margin: 82 (dB) (Exponential Moving Average) 2087*cfb92d14SAndroid Build Coastguard Worker - RSSI: -18 (dBm) (Exponential Moving Average) 2088*cfb92d14SAndroid Build Coastguard Worker``` 2089*cfb92d14SAndroid Build Coastguard Worker 2090*cfb92d14SAndroid Build Coastguard Worker### linkmetricsmgr disable 2091*cfb92d14SAndroid Build Coastguard Worker 2092*cfb92d14SAndroid Build Coastguard WorkerDisable the Link Metrics Manager. 2093*cfb92d14SAndroid Build Coastguard Worker 2094*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_LINK_METRICS_MANAGER_ENABLE` is required. 2095*cfb92d14SAndroid Build Coastguard Worker 2096*cfb92d14SAndroid Build Coastguard Worker```bash 2097*cfb92d14SAndroid Build Coastguard Worker> linkmetricsmgr disable 2098*cfb92d14SAndroid Build Coastguard WorkerDone 2099*cfb92d14SAndroid Build Coastguard Worker``` 2100*cfb92d14SAndroid Build Coastguard Worker 2101*cfb92d14SAndroid Build Coastguard Worker### linkmetricsmgr enable 2102*cfb92d14SAndroid Build Coastguard Worker 2103*cfb92d14SAndroid Build Coastguard WorkerEnable the Link Metrics Manager. 2104*cfb92d14SAndroid Build Coastguard Worker 2105*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_LINK_METRICS_MANAGER_ENABLE` is required. 2106*cfb92d14SAndroid Build Coastguard Worker 2107*cfb92d14SAndroid Build Coastguard Worker```bash 2108*cfb92d14SAndroid Build Coastguard Worker> linkmetricsmgr enable 2109*cfb92d14SAndroid Build Coastguard WorkerDone 2110*cfb92d14SAndroid Build Coastguard Worker``` 2111*cfb92d14SAndroid Build Coastguard Worker 2112*cfb92d14SAndroid Build Coastguard Worker### linkmetricsmgr show 2113*cfb92d14SAndroid Build Coastguard Worker 2114*cfb92d14SAndroid Build Coastguard WorkerDisplay the Link Metrics data of all subjects. The subjects are identified by its extended address. 2115*cfb92d14SAndroid Build Coastguard Worker 2116*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_LINK_METRICS_MANAGER_ENABLE` is required. 2117*cfb92d14SAndroid Build Coastguard Worker 2118*cfb92d14SAndroid Build Coastguard Worker```bash 2119*cfb92d14SAndroid Build Coastguard Worker 2120*cfb92d14SAndroid Build Coastguard Worker> linkmetricsmgr show 2121*cfb92d14SAndroid Build Coastguard WorkerExtAddr:827aa7f7f63e1234, LinkMargin:80, Rssi:-20 2122*cfb92d14SAndroid Build Coastguard WorkerDone 2123*cfb92d14SAndroid Build Coastguard Worker``` 2124*cfb92d14SAndroid Build Coastguard Worker 2125*cfb92d14SAndroid Build Coastguard Worker### locate 2126*cfb92d14SAndroid Build Coastguard Worker 2127*cfb92d14SAndroid Build Coastguard WorkerGets the current state (`In Progress` or `Idle`) of anycast locator. 2128*cfb92d14SAndroid Build Coastguard Worker 2129*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE` is required. 2130*cfb92d14SAndroid Build Coastguard Worker 2131*cfb92d14SAndroid Build Coastguard Worker```bash 2132*cfb92d14SAndroid Build Coastguard Worker> locate 2133*cfb92d14SAndroid Build Coastguard WorkerIdle 2134*cfb92d14SAndroid Build Coastguard WorkerDone 2135*cfb92d14SAndroid Build Coastguard Worker 2136*cfb92d14SAndroid Build Coastguard Worker> locate fdde:ad00:beef:0:0:ff:fe00:fc10 2137*cfb92d14SAndroid Build Coastguard Worker 2138*cfb92d14SAndroid Build Coastguard Worker> locate 2139*cfb92d14SAndroid Build Coastguard WorkerIn Progress 2140*cfb92d14SAndroid Build Coastguard WorkerDone 2141*cfb92d14SAndroid Build Coastguard Worker``` 2142*cfb92d14SAndroid Build Coastguard Worker 2143*cfb92d14SAndroid Build Coastguard Worker### locate \<anycastaddr\> 2144*cfb92d14SAndroid Build Coastguard Worker 2145*cfb92d14SAndroid Build Coastguard WorkerLocate the closest destination of an anycast address (i.e., find the destination's mesh local EID and RLOC16). 2146*cfb92d14SAndroid Build Coastguard Worker 2147*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE` is required. 2148*cfb92d14SAndroid Build Coastguard Worker 2149*cfb92d14SAndroid Build Coastguard WorkerThe closest destination is determined based on the the current routing table and path costs within the Thread mesh. 2150*cfb92d14SAndroid Build Coastguard Worker 2151*cfb92d14SAndroid Build Coastguard WorkerLocate the leader using its anycast address: 2152*cfb92d14SAndroid Build Coastguard Worker 2153*cfb92d14SAndroid Build Coastguard Worker```bash 2154*cfb92d14SAndroid Build Coastguard Worker> locate fdde:ad00:beef:0:0:ff:fe00:fc00 2155*cfb92d14SAndroid Build Coastguard Workerfdde:ad00:beef:0:d9d3:9000:16b:d03b 0xc800 2156*cfb92d14SAndroid Build Coastguard WorkerDone 2157*cfb92d14SAndroid Build Coastguard Worker``` 2158*cfb92d14SAndroid Build Coastguard Worker 2159*cfb92d14SAndroid Build Coastguard WorkerLocate the closest destination of a service anycast address: 2160*cfb92d14SAndroid Build Coastguard Worker 2161*cfb92d14SAndroid Build Coastguard Worker```bash 2162*cfb92d14SAndroid Build Coastguard Worker 2163*cfb92d14SAndroid Build Coastguard Worker> srp server enable 2164*cfb92d14SAndroid Build Coastguard WorkerDone 2165*cfb92d14SAndroid Build Coastguard Worker 2166*cfb92d14SAndroid Build Coastguard Worker> netdata show 2167*cfb92d14SAndroid Build Coastguard WorkerPrefixes: 2168*cfb92d14SAndroid Build Coastguard WorkerRoutes: 2169*cfb92d14SAndroid Build Coastguard WorkerServices: 2170*cfb92d14SAndroid Build Coastguard Worker44970 5d c002 s c800 2171*cfb92d14SAndroid Build Coastguard Worker44970 5d c002 s cc00 2172*cfb92d14SAndroid Build Coastguard WorkerDone 2173*cfb92d14SAndroid Build Coastguard Worker 2174*cfb92d14SAndroid Build Coastguard Worker> locate fdde:ad00:beef:0:0:ff:fe00:fc10 2175*cfb92d14SAndroid Build Coastguard Workerfdde:ad00:beef:0:a477:dc98:a4e4:71ea 0xcc00 2176*cfb92d14SAndroid Build Coastguard Workerdone 2177*cfb92d14SAndroid Build Coastguard Worker``` 2178*cfb92d14SAndroid Build Coastguard Worker 2179*cfb92d14SAndroid Build Coastguard Worker### log filename \<filename\> 2180*cfb92d14SAndroid Build Coastguard Worker 2181*cfb92d14SAndroid Build Coastguard Worker- Note: Simulation Only, ie: `OPENTHREAD_EXAMPLES_SIMULATION` 2182*cfb92d14SAndroid Build Coastguard Worker- Requires `OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_DEBUG_UART` 2183*cfb92d14SAndroid Build Coastguard Worker 2184*cfb92d14SAndroid Build Coastguard WorkerSpecifies filename to capture otPlatLog() messages, useful when debugging automated test scripts on Linux when logging disrupts the automated test scripts. 2185*cfb92d14SAndroid Build Coastguard Worker 2186*cfb92d14SAndroid Build Coastguard Worker### log level 2187*cfb92d14SAndroid Build Coastguard Worker 2188*cfb92d14SAndroid Build Coastguard WorkerGet the log level. 2189*cfb92d14SAndroid Build Coastguard Worker 2190*cfb92d14SAndroid Build Coastguard Worker```bash 2191*cfb92d14SAndroid Build Coastguard Worker> log level 2192*cfb92d14SAndroid Build Coastguard Worker1 2193*cfb92d14SAndroid Build Coastguard WorkerDone 2194*cfb92d14SAndroid Build Coastguard Worker``` 2195*cfb92d14SAndroid Build Coastguard Worker 2196*cfb92d14SAndroid Build Coastguard Worker### log level \<level\> 2197*cfb92d14SAndroid Build Coastguard Worker 2198*cfb92d14SAndroid Build Coastguard WorkerSet the log level. 2199*cfb92d14SAndroid Build Coastguard Worker 2200*cfb92d14SAndroid Build Coastguard Worker```bash 2201*cfb92d14SAndroid Build Coastguard Worker> log level 4 2202*cfb92d14SAndroid Build Coastguard WorkerDone 2203*cfb92d14SAndroid Build Coastguard Worker``` 2204*cfb92d14SAndroid Build Coastguard Worker 2205*cfb92d14SAndroid Build Coastguard Worker### meshdiag topology \[ip6-addrs\] \[children\] 2206*cfb92d14SAndroid Build Coastguard Worker 2207*cfb92d14SAndroid Build Coastguard WorkerDiscover network topology (list of routers and their connections). 2208*cfb92d14SAndroid Build Coastguard Worker 2209*cfb92d14SAndroid Build Coastguard WorkerThis command requires `OPENTHREAD_CONFIG_MESH_DIAG_ENABLE` and `OPENTHREAD_FTD`. 2210*cfb92d14SAndroid Build Coastguard Worker 2211*cfb92d14SAndroid Build Coastguard WorkerParameters are optional and indicate additional items to discover. Can be added in any order. 2212*cfb92d14SAndroid Build Coastguard Worker 2213*cfb92d14SAndroid Build Coastguard Worker- `ip6-addrs` to discover the list of IPv6 addresses of every router. 2214*cfb92d14SAndroid Build Coastguard Worker- `children` to discover the child table of every router. 2215*cfb92d14SAndroid Build Coastguard Worker 2216*cfb92d14SAndroid Build Coastguard WorkerOutput lists all discovered routers. Information per router: 2217*cfb92d14SAndroid Build Coastguard Worker 2218*cfb92d14SAndroid Build Coastguard Worker- Router ID 2219*cfb92d14SAndroid Build Coastguard Worker- RLOC16 2220*cfb92d14SAndroid Build Coastguard Worker- Extended MAC address 2221*cfb92d14SAndroid Build Coastguard Worker- Thread Version (if known). 2222*cfb92d14SAndroid Build Coastguard Worker- Whether the router is this device is itself (`me`) 2223*cfb92d14SAndroid Build Coastguard Worker- Whether the router is the parent of this device when device is a child (`parent`) 2224*cfb92d14SAndroid Build Coastguard Worker- Whether the router is `leader` 2225*cfb92d14SAndroid Build Coastguard Worker- Whether the router acts as a border router providing external connectivity (`br`) 2226*cfb92d14SAndroid Build Coastguard Worker- List of routers to which this router has a link: 2227*cfb92d14SAndroid Build Coastguard Worker - `3-links`: Router IDs to which this router has a incoming link with link quality 3 2228*cfb92d14SAndroid Build Coastguard Worker - `2-links`: Router IDs to which this router has a incoming link with link quality 2 2229*cfb92d14SAndroid Build Coastguard Worker - `1-links`: Router IDs to which this router has a incoming link with link quality 1 2230*cfb92d14SAndroid Build Coastguard Worker - If a list if empty, it is omitted in the out. 2231*cfb92d14SAndroid Build Coastguard Worker- If `ip6-addrs`, list of IPv6 addresses of the router 2232*cfb92d14SAndroid Build Coastguard Worker- If `children`, list of all children of the router. Information per child: 2233*cfb92d14SAndroid Build Coastguard Worker - RLOC16 2234*cfb92d14SAndroid Build Coastguard Worker - Incoming Link Quality from perspective of parent to child (zero indicates unknown) 2235*cfb92d14SAndroid Build Coastguard Worker - Child Device mode (`r` rx-on-when-idle, `d` Full Thread Device, `n` Full Network Data, `-` no flags set) 2236*cfb92d14SAndroid Build Coastguard Worker - Whether the child is this device itself (`me`) 2237*cfb92d14SAndroid Build Coastguard Worker - Whether the child acts as a border router providing external connectivity (`br`) 2238*cfb92d14SAndroid Build Coastguard Worker 2239*cfb92d14SAndroid Build Coastguard WorkerDiscover network topology: 2240*cfb92d14SAndroid Build Coastguard Worker 2241*cfb92d14SAndroid Build Coastguard Worker```bash 2242*cfb92d14SAndroid Build Coastguard Worker> meshdiag topology 2243*cfb92d14SAndroid Build Coastguard Workerid:02 rloc16:0x0800 ext-addr:8aa57d2c603fe16c ver:4 - me - leader 2244*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 46 } 2245*cfb92d14SAndroid Build Coastguard Workerid:46 rloc16:0xb800 ext-addr:fe109d277e0175cc ver:4 2246*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 02 51 57 } 2247*cfb92d14SAndroid Build Coastguard Workerid:33 rloc16:0x8400 ext-addr:d2e511a146b9e54d ver:4 2248*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 51 57 } 2249*cfb92d14SAndroid Build Coastguard Workerid:51 rloc16:0xcc00 ext-addr:9aab43ababf05352 ver:4 2250*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 33 57 } 2251*cfb92d14SAndroid Build Coastguard Worker 2-links:{ 46 } 2252*cfb92d14SAndroid Build Coastguard Workerid:57 rloc16:0xe400 ext-addr:dae9c4c0e9da55ff ver:4 2253*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 46 51 } 2254*cfb92d14SAndroid Build Coastguard Worker 1-links:{ 33 } 2255*cfb92d14SAndroid Build Coastguard WorkerDone 2256*cfb92d14SAndroid Build Coastguard Worker``` 2257*cfb92d14SAndroid Build Coastguard Worker 2258*cfb92d14SAndroid Build Coastguard WorkerDiscover network topology with router's IPv6 addresses and children: 2259*cfb92d14SAndroid Build Coastguard Worker 2260*cfb92d14SAndroid Build Coastguard Worker```bash 2261*cfb92d14SAndroid Build Coastguard Worker> meshdiag topology children ip6-addrs 2262*cfb92d14SAndroid Build Coastguard Workerid:62 rloc16:0xf800 ext-addr:ce349873897233a5 ver:4 - me - br 2263*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 46 } 2264*cfb92d14SAndroid Build Coastguard Worker ip6-addrs: 2265*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:0:ff:fe00:f800 2266*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:211d:39e9:6b2e:4ad1 2267*cfb92d14SAndroid Build Coastguard Worker fe80:0:0:0:cc34:9873:8972:33a5 2268*cfb92d14SAndroid Build Coastguard Worker children: none 2269*cfb92d14SAndroid Build Coastguard Workerid:02 rloc16:0x0800 ext-addr:8aa57d2c603fe16c ver:4 - leader - br 2270*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 46 51 } 2271*cfb92d14SAndroid Build Coastguard Worker ip6-addrs: 2272*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:0:ff:fe00:fc00 2273*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:0:ff:fe00:800 2274*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:8a36:a3eb:47ae:a9b0 2275*cfb92d14SAndroid Build Coastguard Worker fe80:0:0:0:88a5:7d2c:603f:e16c 2276*cfb92d14SAndroid Build Coastguard Worker children: 2277*cfb92d14SAndroid Build Coastguard Worker rloc16:0x0803 lq:3, mode:rn 2278*cfb92d14SAndroid Build Coastguard Worker rloc16:0x0804 lq:3, mode:rdn 2279*cfb92d14SAndroid Build Coastguard Workerid:33 rloc16:0x8400 ext-addr:d2e511a146b9e54d ver:4 2280*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 57 } 2281*cfb92d14SAndroid Build Coastguard Worker ip6-addrs: 2282*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:0:ff:fe00:8400 2283*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:824:a126:cf19:a9f4 2284*cfb92d14SAndroid Build Coastguard Worker fe80:0:0:0:d0e5:11a1:46b9:e54d 2285*cfb92d14SAndroid Build Coastguard Worker children: none 2286*cfb92d14SAndroid Build Coastguard Workerid:51 rloc16:0xcc00 ext-addr:9aab43ababf05352 ver:4 2287*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 02 46 57 } 2288*cfb92d14SAndroid Build Coastguard Worker ip6-addrs: 2289*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:0:ff:fe00:cc00 2290*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:2986:bba3:12d0:1dd2 2291*cfb92d14SAndroid Build Coastguard Worker fe80:0:0:0:98ab:43ab:abf0:5352 2292*cfb92d14SAndroid Build Coastguard Worker children: none 2293*cfb92d14SAndroid Build Coastguard Workerid:57 rloc16:0xe400 ext-addr:dae9c4c0e9da55ff ver:4 2294*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 33 51 } 2295*cfb92d14SAndroid Build Coastguard Worker ip6-addrs: 2296*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:0:ff:fe00:e400 2297*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:87d0:550:bc18:9920 2298*cfb92d14SAndroid Build Coastguard Worker fe80:0:0:0:d8e9:c4c0:e9da:55ff 2299*cfb92d14SAndroid Build Coastguard Worker children: 2300*cfb92d14SAndroid Build Coastguard Worker rloc16:0xe402 lq:3, mode:rn - br 2301*cfb92d14SAndroid Build Coastguard Worker rloc16:0xe403 lq:3, mode:rn 2302*cfb92d14SAndroid Build Coastguard Workerid:46 rloc16:0xb800 ext-addr:fe109d277e0175cc ver:4 2303*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 02 51 62 } 2304*cfb92d14SAndroid Build Coastguard Worker ip6-addrs: 2305*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:0:ff:fe00:b800 2306*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:df4d:2994:d85c:c337 2307*cfb92d14SAndroid Build Coastguard Worker fe80:0:0:0:fc10:9d27:7e01:75cc 2308*cfb92d14SAndroid Build Coastguard Worker children: none 2309*cfb92d14SAndroid Build Coastguard WorkerDone 2310*cfb92d14SAndroid Build Coastguard Worker``` 2311*cfb92d14SAndroid Build Coastguard Worker 2312*cfb92d14SAndroid Build Coastguard WorkerDiscover network topology with children: 2313*cfb92d14SAndroid Build Coastguard Worker 2314*cfb92d14SAndroid Build Coastguard Worker```bash 2315*cfb92d14SAndroid Build Coastguard Worker> meshdiag topology children 2316*cfb92d14SAndroid Build Coastguard Workerid:02 rloc16:0x0800 ext-addr:8aa57d2c603fe16c ver:4 - parent - leader - br 2317*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 46 51 } 2318*cfb92d14SAndroid Build Coastguard Worker children: 2319*cfb92d14SAndroid Build Coastguard Worker rloc16:0x0803 lq:0, mode:rn 2320*cfb92d14SAndroid Build Coastguard Worker rloc16:0x0804 lq:0, mode:rdn - me 2321*cfb92d14SAndroid Build Coastguard Workerid:46 rloc16:0xb800 ext-addr:fe109d277e0175cc ver:4 2322*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 02 51 62 } 2323*cfb92d14SAndroid Build Coastguard Worker children: none 2324*cfb92d14SAndroid Build Coastguard Workerid:33 rloc16:0x8400 ext-addr:d2e511a146b9e54d ver:4 2325*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 57 } 2326*cfb92d14SAndroid Build Coastguard Worker children: none 2327*cfb92d14SAndroid Build Coastguard Workerid:51 rloc16:0xcc00 ext-addr:9aab43ababf05352 ver:4 2328*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 02 46 57 } 2329*cfb92d14SAndroid Build Coastguard Worker children: none 2330*cfb92d14SAndroid Build Coastguard Workerid:57 rloc16:0xe400 ext-addr:dae9c4c0e9da55ff ver:4 2331*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 33 51 } 2332*cfb92d14SAndroid Build Coastguard Worker children: 2333*cfb92d14SAndroid Build Coastguard Worker rloc16:0xe402 lq:3, mode:rn - br 2334*cfb92d14SAndroid Build Coastguard Worker rloc16:0xe403 lq:3, mode:rn 2335*cfb92d14SAndroid Build Coastguard Workerid:62 rloc16:0xf800 ext-addr:ce349873897233a5 ver:4 - br 2336*cfb92d14SAndroid Build Coastguard Worker 3-links:{ 46 } 2337*cfb92d14SAndroid Build Coastguard Worker children: none 2338*cfb92d14SAndroid Build Coastguard Worker``` 2339*cfb92d14SAndroid Build Coastguard Worker 2340*cfb92d14SAndroid Build Coastguard Worker### meshdiag childtable \<router-rloc16\> 2341*cfb92d14SAndroid Build Coastguard Worker 2342*cfb92d14SAndroid Build Coastguard WorkerStart a query for child table of a router with a given RLOC16. 2343*cfb92d14SAndroid Build Coastguard Worker 2344*cfb92d14SAndroid Build Coastguard WorkerOutput lists all child entries. Information per child: 2345*cfb92d14SAndroid Build Coastguard Worker 2346*cfb92d14SAndroid Build Coastguard Worker- RLOC16 2347*cfb92d14SAndroid Build Coastguard Worker- Extended MAC address 2348*cfb92d14SAndroid Build Coastguard Worker- Thread Version 2349*cfb92d14SAndroid Build Coastguard Worker- Timeout (in seconds) 2350*cfb92d14SAndroid Build Coastguard Worker- Age (seconds since last heard) 2351*cfb92d14SAndroid Build Coastguard Worker- Supervision interval (in seconds) 2352*cfb92d14SAndroid Build Coastguard Worker- Number of queued messages (in case the child is sleepy) 2353*cfb92d14SAndroid Build Coastguard Worker- Device Mode 2354*cfb92d14SAndroid Build Coastguard Worker- RSS (average and last) and link margin 2355*cfb92d14SAndroid Build Coastguard Worker- Error rates, frame tx (at MAC layer), IPv6 message tx (above MAC) 2356*cfb92d14SAndroid Build Coastguard Worker- Connection time (seconds since link establishment {dd}d.{hh}:{mm}:{ss} format) 2357*cfb92d14SAndroid Build Coastguard Worker- CSL info 2358*cfb92d14SAndroid Build Coastguard Worker - If synchronized 2359*cfb92d14SAndroid Build Coastguard Worker - Period (in unit of 10-symbols-time) 2360*cfb92d14SAndroid Build Coastguard Worker - Timeout (in seconds) 2361*cfb92d14SAndroid Build Coastguard Worker - Channel 2362*cfb92d14SAndroid Build Coastguard Worker 2363*cfb92d14SAndroid Build Coastguard Worker```bash 2364*cfb92d14SAndroid Build Coastguard Worker> meshdiag childtable 0x6400 2365*cfb92d14SAndroid Build Coastguard Workerrloc16:0x6402 ext-addr:8e6f4d323bbed1fe ver:4 2366*cfb92d14SAndroid Build Coastguard Worker timeout:120 age:36 supvn:129 q-msg:0 2367*cfb92d14SAndroid Build Coastguard Worker rx-on:yes type:ftd full-net:yes 2368*cfb92d14SAndroid Build Coastguard Worker rss - ave:-20 last:-20 margin:80 2369*cfb92d14SAndroid Build Coastguard Worker err-rate - frame:11.51% msg:0.76% 2370*cfb92d14SAndroid Build Coastguard Worker conn-time:00:11:07 2371*cfb92d14SAndroid Build Coastguard Worker csl - sync:no period:0 timeout:0 channel:0 2372*cfb92d14SAndroid Build Coastguard Workerrloc16:0x6403 ext-addr:ee24e64ecf8c079a ver:4 2373*cfb92d14SAndroid Build Coastguard Worker timeout:120 age:19 supvn:129 q-msg:0 2374*cfb92d14SAndroid Build Coastguard Worker rx-on:no type:mtd full-net:no 2375*cfb92d14SAndroid Build Coastguard Worker rss - ave:-20 last:-20 margin:80 2376*cfb92d14SAndroid Build Coastguard Worker err-rate - frame:0.73% msg:0.00% 2377*cfb92d14SAndroid Build Coastguard Worker conn-time:01:08:53 2378*cfb92d14SAndroid Build Coastguard Worker csl - sync:no period:0 timeout:0 channel:0 2379*cfb92d14SAndroid Build Coastguard WorkerDone 2380*cfb92d14SAndroid Build Coastguard Worker``` 2381*cfb92d14SAndroid Build Coastguard Worker 2382*cfb92d14SAndroid Build Coastguard Worker### meshdiag childip6 \<parent-rloc16\> 2383*cfb92d14SAndroid Build Coastguard Worker 2384*cfb92d14SAndroid Build Coastguard WorkerSend a query to a parent to retrieve the IPv6 addresses of all its MTD children. 2385*cfb92d14SAndroid Build Coastguard Worker 2386*cfb92d14SAndroid Build Coastguard Worker```bash 2387*cfb92d14SAndroid Build Coastguard Worker> meshdiag childip6 0xdc00 2388*cfb92d14SAndroid Build Coastguard Workerchild-rloc16: 0xdc02 2389*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:ded8:cd58:b73:2c21 2390*cfb92d14SAndroid Build Coastguard Worker fd00:2:0:0:c24a:456:3b6b:c597 2391*cfb92d14SAndroid Build Coastguard Worker fd00:1:0:0:120b:95fe:3ecc:d238 2392*cfb92d14SAndroid Build Coastguard Workerchild-rloc16: 0xdc03 2393*cfb92d14SAndroid Build Coastguard Worker fdde:ad00:beef:0:3aa6:b8bf:e7d6:eefe 2394*cfb92d14SAndroid Build Coastguard Worker fd00:2:0:0:8ff8:a188:7436:6720 2395*cfb92d14SAndroid Build Coastguard Worker fd00:1:0:0:1fcf:5495:790a:370f 2396*cfb92d14SAndroid Build Coastguard WorkerDone 2397*cfb92d14SAndroid Build Coastguard Worker``` 2398*cfb92d14SAndroid Build Coastguard Worker 2399*cfb92d14SAndroid Build Coastguard Worker### meshdiag routerneighbortable \<router-rloc16\> 2400*cfb92d14SAndroid Build Coastguard Worker 2401*cfb92d14SAndroid Build Coastguard WorkerStart a query for router neighbor table of a router with a given RLOC16. 2402*cfb92d14SAndroid Build Coastguard Worker 2403*cfb92d14SAndroid Build Coastguard WorkerOutput lists all router neighbor entries. Information per entry: 2404*cfb92d14SAndroid Build Coastguard Worker 2405*cfb92d14SAndroid Build Coastguard Worker- RLOC16 2406*cfb92d14SAndroid Build Coastguard Worker- Extended MAC address 2407*cfb92d14SAndroid Build Coastguard Worker- Thread Version 2408*cfb92d14SAndroid Build Coastguard Worker- RSS (average and last) and link margin 2409*cfb92d14SAndroid Build Coastguard Worker- Error rates, frame tx (at MAC layer), IPv6 message tx (above MAC) 2410*cfb92d14SAndroid Build Coastguard Worker- Connection time (seconds since link establishment {dd}d.{hh}:{mm}:{ss} format) 2411*cfb92d14SAndroid Build Coastguard Worker 2412*cfb92d14SAndroid Build Coastguard Worker```bash 2413*cfb92d14SAndroid Build Coastguard Worker> meshdiag routerneighbortable 0x7400 2414*cfb92d14SAndroid Build Coastguard Workerrloc16:0x9c00 ext-addr:764788cf6e57a4d2 ver:4 2415*cfb92d14SAndroid Build Coastguard Worker rss - ave:-20 last:-20 margin:80 2416*cfb92d14SAndroid Build Coastguard Worker err-rate - frame:1.38% msg:0.00% 2417*cfb92d14SAndroid Build Coastguard Worker conn-time:01:54:02 2418*cfb92d14SAndroid Build Coastguard Workerrloc16:0x7c00 ext-addr:4ed24fceec9bf6d3 ver:4 2419*cfb92d14SAndroid Build Coastguard Worker rss - ave:-20 last:-20 margin:80 2420*cfb92d14SAndroid Build Coastguard Worker err-rate - frame:0.72% msg:0.00% 2421*cfb92d14SAndroid Build Coastguard Worker conn-time:00:11:27 2422*cfb92d14SAndroid Build Coastguard WorkerDone 2423*cfb92d14SAndroid Build Coastguard Worker``` 2424*cfb92d14SAndroid Build Coastguard Worker 2425*cfb92d14SAndroid Build Coastguard Worker### mliid \<iid\> 2426*cfb92d14SAndroid Build Coastguard Worker 2427*cfb92d14SAndroid Build Coastguard WorkerSet the Mesh Local IID. 2428*cfb92d14SAndroid Build Coastguard Worker 2429*cfb92d14SAndroid Build Coastguard WorkerIt must be used before Thread stack is enabled. 2430*cfb92d14SAndroid Build Coastguard Worker 2431*cfb92d14SAndroid Build Coastguard WorkerOnly for testing/reference device. 2432*cfb92d14SAndroid Build Coastguard Worker 2433*cfb92d14SAndroid Build Coastguard Worker```bash 2434*cfb92d14SAndroid Build Coastguard Worker> mliid 1122334455667788 2435*cfb92d14SAndroid Build Coastguard WorkerDone 2436*cfb92d14SAndroid Build Coastguard Worker``` 2437*cfb92d14SAndroid Build Coastguard Worker 2438*cfb92d14SAndroid Build Coastguard Worker### mlr reg \<ipaddr\> ... [timeout] 2439*cfb92d14SAndroid Build Coastguard Worker 2440*cfb92d14SAndroid Build Coastguard WorkerRegister Multicast Listeners to Primary Backbone Router, with an optional `timeout` (in seconds). 2441*cfb92d14SAndroid Build Coastguard Worker 2442*cfb92d14SAndroid Build Coastguard WorkerOmit `timeout` to use the default MLR timeout on the Primary Backbone Router. 2443*cfb92d14SAndroid Build Coastguard Worker 2444*cfb92d14SAndroid Build Coastguard WorkerUse `timeout = 0` to deregister Multicast Listeners. 2445*cfb92d14SAndroid Build Coastguard Worker 2446*cfb92d14SAndroid Build Coastguard WorkerNOTE: Only for Thread 1.2 Commissioner FTD device. 2447*cfb92d14SAndroid Build Coastguard Worker 2448*cfb92d14SAndroid Build Coastguard Worker```bash 2449*cfb92d14SAndroid Build Coastguard Worker> mlr reg ff04::1 2450*cfb92d14SAndroid Build Coastguard Workerstatus 0, 0 failed 2451*cfb92d14SAndroid Build Coastguard WorkerDone 2452*cfb92d14SAndroid Build Coastguard Worker> mlr reg ff04::1 ff04::2 ff02::1 2453*cfb92d14SAndroid Build Coastguard Workerstatus 2, 1 failed 2454*cfb92d14SAndroid Build Coastguard Workerff02:0:0:0:0:0:0:1 2455*cfb92d14SAndroid Build Coastguard WorkerDone 2456*cfb92d14SAndroid Build Coastguard Worker> mlr reg ff04::1 ff04::2 1000 2457*cfb92d14SAndroid Build Coastguard Workerstatus 0, 0 failed 2458*cfb92d14SAndroid Build Coastguard WorkerDone 2459*cfb92d14SAndroid Build Coastguard Worker> mlr reg ff04::1 ff04::2 0 2460*cfb92d14SAndroid Build Coastguard Workerstatus 0, 0 failed 2461*cfb92d14SAndroid Build Coastguard WorkerDone 2462*cfb92d14SAndroid Build Coastguard Worker``` 2463*cfb92d14SAndroid Build Coastguard Worker 2464*cfb92d14SAndroid Build Coastguard Worker### mode 2465*cfb92d14SAndroid Build Coastguard Worker 2466*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Device Mode value. 2467*cfb92d14SAndroid Build Coastguard Worker 2468*cfb92d14SAndroid Build Coastguard Worker- -: no flags set (rx-off-when-idle, minimal Thread device, stable network data) 2469*cfb92d14SAndroid Build Coastguard Worker- r: rx-on-when-idle 2470*cfb92d14SAndroid Build Coastguard Worker- d: Full Thread Device 2471*cfb92d14SAndroid Build Coastguard Worker- n: Full Network Data 2472*cfb92d14SAndroid Build Coastguard Worker 2473*cfb92d14SAndroid Build Coastguard Worker```bash 2474*cfb92d14SAndroid Build Coastguard Worker> mode 2475*cfb92d14SAndroid Build Coastguard Workerrdn 2476*cfb92d14SAndroid Build Coastguard WorkerDone 2477*cfb92d14SAndroid Build Coastguard Worker``` 2478*cfb92d14SAndroid Build Coastguard Worker 2479*cfb92d14SAndroid Build Coastguard Worker### mode [rdn] 2480*cfb92d14SAndroid Build Coastguard Worker 2481*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Device Mode value. 2482*cfb92d14SAndroid Build Coastguard Worker 2483*cfb92d14SAndroid Build Coastguard Worker- -: no flags set (rx-off-when-idle, minimal Thread device, stable network data) 2484*cfb92d14SAndroid Build Coastguard Worker- r: rx-on-when-idle 2485*cfb92d14SAndroid Build Coastguard Worker- d: Full Thread Device 2486*cfb92d14SAndroid Build Coastguard Worker- n: Full Network Data 2487*cfb92d14SAndroid Build Coastguard Worker 2488*cfb92d14SAndroid Build Coastguard Worker```bash 2489*cfb92d14SAndroid Build Coastguard Worker> mode rdn 2490*cfb92d14SAndroid Build Coastguard WorkerDone 2491*cfb92d14SAndroid Build Coastguard Worker``` 2492*cfb92d14SAndroid Build Coastguard Worker 2493*cfb92d14SAndroid Build Coastguard Worker```bash 2494*cfb92d14SAndroid Build Coastguard Worker> mode - 2495*cfb92d14SAndroid Build Coastguard WorkerDone 2496*cfb92d14SAndroid Build Coastguard Worker``` 2497*cfb92d14SAndroid Build Coastguard Worker 2498*cfb92d14SAndroid Build Coastguard Worker### multiradio 2499*cfb92d14SAndroid Build Coastguard Worker 2500*cfb92d14SAndroid Build Coastguard WorkerGet the list of supported radio links by the device. 2501*cfb92d14SAndroid Build Coastguard Worker 2502*cfb92d14SAndroid Build Coastguard WorkerThis command is always available, even when only a single radio is supported by the device. 2503*cfb92d14SAndroid Build Coastguard Worker 2504*cfb92d14SAndroid Build Coastguard Worker```bash 2505*cfb92d14SAndroid Build Coastguard Worker> multiradio 2506*cfb92d14SAndroid Build Coastguard Worker[15.4, TREL] 2507*cfb92d14SAndroid Build Coastguard WorkerDone 2508*cfb92d14SAndroid Build Coastguard Worker``` 2509*cfb92d14SAndroid Build Coastguard Worker 2510*cfb92d14SAndroid Build Coastguard Worker### multiradio neighbor list 2511*cfb92d14SAndroid Build Coastguard Worker 2512*cfb92d14SAndroid Build Coastguard WorkerGet the list of neighbors and their supported radios and their preference. 2513*cfb92d14SAndroid Build Coastguard Worker 2514*cfb92d14SAndroid Build Coastguard WorkerThis command is only available when device supports more than one radio link. 2515*cfb92d14SAndroid Build Coastguard Worker 2516*cfb92d14SAndroid Build Coastguard Worker```bash 2517*cfb92d14SAndroid Build Coastguard Worker> multiradio neighbor list 2518*cfb92d14SAndroid Build Coastguard WorkerExtAddr:3a65bc38dbe4a5be, RLOC16:0xcc00, Radios:[15.4(255), TREL(255)] 2519*cfb92d14SAndroid Build Coastguard WorkerExtAddr:17df23452ee4a4be, RLOC16:0x1300, Radios:[15.4(255)] 2520*cfb92d14SAndroid Build Coastguard WorkerDone 2521*cfb92d14SAndroid Build Coastguard Worker``` 2522*cfb92d14SAndroid Build Coastguard Worker 2523*cfb92d14SAndroid Build Coastguard Worker### multiradio neighbor \<ext address\> 2524*cfb92d14SAndroid Build Coastguard Worker 2525*cfb92d14SAndroid Build Coastguard WorkerGet the radio info for specific neighbor with a given extended address. 2526*cfb92d14SAndroid Build Coastguard Worker 2527*cfb92d14SAndroid Build Coastguard WorkerThis command is only available when device supports more than one radio link. 2528*cfb92d14SAndroid Build Coastguard Worker 2529*cfb92d14SAndroid Build Coastguard Worker```bash 2530*cfb92d14SAndroid Build Coastguard Worker> multiradio neighbor 3a65bc38dbe4a5be 2531*cfb92d14SAndroid Build Coastguard Worker[15.4(255), TREL(255)] 2532*cfb92d14SAndroid Build Coastguard WorkerDone 2533*cfb92d14SAndroid Build Coastguard Worker``` 2534*cfb92d14SAndroid Build Coastguard Worker 2535*cfb92d14SAndroid Build Coastguard Worker### nat64 cidr 2536*cfb92d14SAndroid Build Coastguard Worker 2537*cfb92d14SAndroid Build Coastguard WorkerGets the IPv4 configured CIDR in the NAT64 translator. 2538*cfb92d14SAndroid Build Coastguard Worker 2539*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` is required. 2540*cfb92d14SAndroid Build Coastguard Worker 2541*cfb92d14SAndroid Build Coastguard Worker```bash 2542*cfb92d14SAndroid Build Coastguard Worker> nat64 cidr 2543*cfb92d14SAndroid Build Coastguard Worker192.168.255.0/24 2544*cfb92d14SAndroid Build Coastguard WorkerDone 2545*cfb92d14SAndroid Build Coastguard Worker``` 2546*cfb92d14SAndroid Build Coastguard Worker 2547*cfb92d14SAndroid Build Coastguard Worker### nat64 cidr \<IPv4 address\> 2548*cfb92d14SAndroid Build Coastguard Worker 2549*cfb92d14SAndroid Build Coastguard WorkerSets the IPv4 CIDR in the NAT64 translator. 2550*cfb92d14SAndroid Build Coastguard Worker 2551*cfb92d14SAndroid Build Coastguard WorkerNote: 2552*cfb92d14SAndroid Build Coastguard Worker 2553*cfb92d14SAndroid Build Coastguard Worker- `OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` is required. 2554*cfb92d14SAndroid Build Coastguard Worker- A valid CIDR must have a non-zero prefix length. 2555*cfb92d14SAndroid Build Coastguard Worker- When updating the CIDR, NAT64 translator will be reset and all existing sessions will be expired. 2556*cfb92d14SAndroid Build Coastguard Worker 2557*cfb92d14SAndroid Build Coastguard Worker```bash 2558*cfb92d14SAndroid Build Coastguard Worker> nat64 cidr 192.168.100.0/24 2559*cfb92d14SAndroid Build Coastguard WorkerDone 2560*cfb92d14SAndroid Build Coastguard Worker``` 2561*cfb92d14SAndroid Build Coastguard Worker 2562*cfb92d14SAndroid Build Coastguard Worker### nat64 disable 2563*cfb92d14SAndroid Build Coastguard Worker 2564*cfb92d14SAndroid Build Coastguard WorkerDisable NAT64 functions, including the translator and the prefix publishing. 2565*cfb92d14SAndroid Build Coastguard Worker 2566*cfb92d14SAndroid Build Coastguard WorkerThis command will reset the mapping table in the translator (if NAT64 translator is enabled in the build). 2567*cfb92d14SAndroid Build Coastguard Worker 2568*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` or `OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE` are required. 2569*cfb92d14SAndroid Build Coastguard Worker 2570*cfb92d14SAndroid Build Coastguard Worker```bash 2571*cfb92d14SAndroid Build Coastguard Worker> nat64 disable 2572*cfb92d14SAndroid Build Coastguard WorkerDone 2573*cfb92d14SAndroid Build Coastguard Worker``` 2574*cfb92d14SAndroid Build Coastguard Worker 2575*cfb92d14SAndroid Build Coastguard Worker### nat64 enable 2576*cfb92d14SAndroid Build Coastguard Worker 2577*cfb92d14SAndroid Build Coastguard WorkerEnable NAT64 functions, including the translator and the prefix publishing. 2578*cfb92d14SAndroid Build Coastguard Worker 2579*cfb92d14SAndroid Build Coastguard WorkerThis command can be called anytime. 2580*cfb92d14SAndroid Build Coastguard Worker 2581*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` or `OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE` are required. 2582*cfb92d14SAndroid Build Coastguard Worker 2583*cfb92d14SAndroid Build Coastguard Worker```bash 2584*cfb92d14SAndroid Build Coastguard Worker> nat64 enable 2585*cfb92d14SAndroid Build Coastguard WorkerDone 2586*cfb92d14SAndroid Build Coastguard Worker``` 2587*cfb92d14SAndroid Build Coastguard Worker 2588*cfb92d14SAndroid Build Coastguard Worker### nat64 state 2589*cfb92d14SAndroid Build Coastguard Worker 2590*cfb92d14SAndroid Build Coastguard WorkerGets the state of NAT64 functions. 2591*cfb92d14SAndroid Build Coastguard Worker 2592*cfb92d14SAndroid Build Coastguard WorkerPossible results for prefix manager are (`OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE` is required): 2593*cfb92d14SAndroid Build Coastguard Worker 2594*cfb92d14SAndroid Build Coastguard Worker- `Disabled`: NAT64 prefix manager is disabled. 2595*cfb92d14SAndroid Build Coastguard Worker- `NotRunning`: NAT64 prefix manager is enabled, but is not running, probably because the routing manager is disabled. 2596*cfb92d14SAndroid Build Coastguard Worker- `Idle`: NAT64 prefix manager is enabled and is running, but is not publishing a NAT64 prefix. Usually when there is another border router publishing a NAT64 prefix with higher priority. 2597*cfb92d14SAndroid Build Coastguard Worker- `Active`: NAT64 prefix manager is enabled, running and publishing a NAT64 prefix. 2598*cfb92d14SAndroid Build Coastguard Worker 2599*cfb92d14SAndroid Build Coastguard WorkerPossible results for NAT64 translator are (`OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` is required): 2600*cfb92d14SAndroid Build Coastguard Worker 2601*cfb92d14SAndroid Build Coastguard Worker- `Disabled`: NAT64 translator is disabled. 2602*cfb92d14SAndroid Build Coastguard Worker- `NotRunning`: NAT64 translator is enabled, but is not translating packets, probably because it is not configured with a NAT64 prefix or a CIDR for NAT64. 2603*cfb92d14SAndroid Build Coastguard Worker- `Active`: NAT64 translator is enabled and is translating packets. 2604*cfb92d14SAndroid Build Coastguard Worker 2605*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` or `OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE` are required. 2606*cfb92d14SAndroid Build Coastguard Worker 2607*cfb92d14SAndroid Build Coastguard Worker```bash 2608*cfb92d14SAndroid Build Coastguard Worker> nat64 state 2609*cfb92d14SAndroid Build Coastguard WorkerPrefixManager: NotRunning 2610*cfb92d14SAndroid Build Coastguard WorkerTranslator: NotRunning 2611*cfb92d14SAndroid Build Coastguard WorkerDone 2612*cfb92d14SAndroid Build Coastguard Worker 2613*cfb92d14SAndroid Build Coastguard Worker> nat64 state 2614*cfb92d14SAndroid Build Coastguard WorkerPrefixManager: Idle 2615*cfb92d14SAndroid Build Coastguard WorkerTranslator: NotRunning 2616*cfb92d14SAndroid Build Coastguard WorkerDone 2617*cfb92d14SAndroid Build Coastguard Worker 2618*cfb92d14SAndroid Build Coastguard Worker> nat64 state 2619*cfb92d14SAndroid Build Coastguard WorkerPrefixManager: Active 2620*cfb92d14SAndroid Build Coastguard WorkerTranslator: Active 2621*cfb92d14SAndroid Build Coastguard WorkerDone 2622*cfb92d14SAndroid Build Coastguard Worker``` 2623*cfb92d14SAndroid Build Coastguard Worker 2624*cfb92d14SAndroid Build Coastguard Worker### nat64 mappings 2625*cfb92d14SAndroid Build Coastguard Worker 2626*cfb92d14SAndroid Build Coastguard WorkerGet the NAT64 translator mappings. 2627*cfb92d14SAndroid Build Coastguard Worker 2628*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` is required. 2629*cfb92d14SAndroid Build Coastguard Worker 2630*cfb92d14SAndroid Build Coastguard Worker```bash 2631*cfb92d14SAndroid Build Coastguard Worker> nat64 mappings 2632*cfb92d14SAndroid Build Coastguard Worker| | Address | | 4 to 6 | 6 to 4 | 2633*cfb92d14SAndroid Build Coastguard Worker+----------+---------------------------+--------+--------------+--------------+ 2634*cfb92d14SAndroid Build Coastguard Worker| ID | IPv6 | IPv4 | Expiry | Pkts | Bytes | Pkts | Bytes | 2635*cfb92d14SAndroid Build Coastguard Worker+----------+------------+--------------+--------+------+-------+------+-------+ 2636*cfb92d14SAndroid Build Coastguard Worker| 00021cb9 | fdc7::df79 | 192.168.64.2 | 7196s | 6 | 456 | 11 | 1928 | 2637*cfb92d14SAndroid Build Coastguard Worker| | TCP | 0 | 0 | 0 | 0 | 2638*cfb92d14SAndroid Build Coastguard Worker| | UDP | 1 | 136 | 16 | 1608 | 2639*cfb92d14SAndroid Build Coastguard Worker| | ICMP | 5 | 320 | 5 | 320 | 2640*cfb92d14SAndroid Build Coastguard Worker``` 2641*cfb92d14SAndroid Build Coastguard Worker 2642*cfb92d14SAndroid Build Coastguard Worker### nat64 counters 2643*cfb92d14SAndroid Build Coastguard Worker 2644*cfb92d14SAndroid Build Coastguard WorkerGet the NAT64 translator packet and error counters. 2645*cfb92d14SAndroid Build Coastguard Worker 2646*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` is required. 2647*cfb92d14SAndroid Build Coastguard Worker 2648*cfb92d14SAndroid Build Coastguard Worker```bash 2649*cfb92d14SAndroid Build Coastguard Worker> nat64 counters 2650*cfb92d14SAndroid Build Coastguard Worker| | 4 to 6 | 6 to 4 | 2651*cfb92d14SAndroid Build Coastguard Worker+---------------+-------------------------+-------------------------+ 2652*cfb92d14SAndroid Build Coastguard Worker| Protocol | Pkts | Bytes | Pkts | Bytes | 2653*cfb92d14SAndroid Build Coastguard Worker+---------------+----------+--------------+----------+--------------+ 2654*cfb92d14SAndroid Build Coastguard Worker| Total | 11 | 704 | 11 | 704 | 2655*cfb92d14SAndroid Build Coastguard Worker| TCP | 0 | 0 | 0 | 0 | 2656*cfb92d14SAndroid Build Coastguard Worker| UDP | 0 | 0 | 0 | 0 | 2657*cfb92d14SAndroid Build Coastguard Worker| ICMP | 11 | 704 | 11 | 704 | 2658*cfb92d14SAndroid Build Coastguard Worker| Errors | Pkts | Pkts | 2659*cfb92d14SAndroid Build Coastguard Worker+---------------+-------------------------+-------------------------+ 2660*cfb92d14SAndroid Build Coastguard Worker| Total | 8 | 4 | 2661*cfb92d14SAndroid Build Coastguard Worker| Illegal Pkt | 0 | 0 | 2662*cfb92d14SAndroid Build Coastguard Worker| Unsup Proto | 0 | 0 | 2663*cfb92d14SAndroid Build Coastguard Worker| No Mapping | 2 | 0 | 2664*cfb92d14SAndroid Build Coastguard WorkerDone 2665*cfb92d14SAndroid Build Coastguard Worker``` 2666*cfb92d14SAndroid Build Coastguard Worker 2667*cfb92d14SAndroid Build Coastguard Worker### neighbor linkquality 2668*cfb92d14SAndroid Build Coastguard Worker 2669*cfb92d14SAndroid Build Coastguard WorkerPrint link quality info for all neighbors. 2670*cfb92d14SAndroid Build Coastguard Worker 2671*cfb92d14SAndroid Build Coastguard Worker```bash 2672*cfb92d14SAndroid Build Coastguard Worker> neighbor linkquality 2673*cfb92d14SAndroid Build Coastguard Worker| RLOC16 | Extended MAC | Frame Error | Msg Error | Avg RSS | Last RSS | Age | 2674*cfb92d14SAndroid Build Coastguard Worker+--------+------------------+-------------+-----------+---------+----------+-------+ 2675*cfb92d14SAndroid Build Coastguard Worker| 0xe800 | 9e2fa4e1b84f92db | 0.00 % | 0.00 % | -46 | -48 | 1 | 2676*cfb92d14SAndroid Build Coastguard Worker| 0xc001 | 0ad7ed6beaa6016d | 4.67 % | 0.08 % | -68 | -72 | 10 | 2677*cfb92d14SAndroid Build Coastguard WorkerDone 2678*cfb92d14SAndroid Build Coastguard Worker``` 2679*cfb92d14SAndroid Build Coastguard Worker 2680*cfb92d14SAndroid Build Coastguard Worker### neighbor list 2681*cfb92d14SAndroid Build Coastguard Worker 2682*cfb92d14SAndroid Build Coastguard WorkerList RLOC16 of neighbors. 2683*cfb92d14SAndroid Build Coastguard Worker 2684*cfb92d14SAndroid Build Coastguard Worker```bash 2685*cfb92d14SAndroid Build Coastguard Worker> neighbor list 2686*cfb92d14SAndroid Build Coastguard Worker0xcc01 0xc800 0xf000 2687*cfb92d14SAndroid Build Coastguard WorkerDone 2688*cfb92d14SAndroid Build Coastguard Worker``` 2689*cfb92d14SAndroid Build Coastguard Worker 2690*cfb92d14SAndroid Build Coastguard Worker### neighbor table 2691*cfb92d14SAndroid Build Coastguard Worker 2692*cfb92d14SAndroid Build Coastguard WorkerPrint table of neighbors. 2693*cfb92d14SAndroid Build Coastguard Worker 2694*cfb92d14SAndroid Build Coastguard Worker```bash 2695*cfb92d14SAndroid Build Coastguard Worker> neighbor table 2696*cfb92d14SAndroid Build Coastguard Worker| Role | RLOC16 | Age | Avg RSSI | Last RSSI |R|D|N| Extended MAC | 2697*cfb92d14SAndroid Build Coastguard Worker+------+--------+-----+----------+-----------+-+-+-+------------------+ 2698*cfb92d14SAndroid Build Coastguard Worker| C | 0xcc01 | 96 | -46 | -46 |1|1|1| 1eb9ba8a6522636b | 2699*cfb92d14SAndroid Build Coastguard Worker| R | 0xc800 | 2 | -29 | -29 |1|1|1| 9a91556102c39ddb | 2700*cfb92d14SAndroid Build Coastguard Worker| R | 0xf000 | 3 | -28 | -28 |1|1|1| 0ad7ed6beaa6016d | 2701*cfb92d14SAndroid Build Coastguard WorkerDone 2702*cfb92d14SAndroid Build Coastguard Worker``` 2703*cfb92d14SAndroid Build Coastguard Worker 2704*cfb92d14SAndroid Build Coastguard Worker### neighbor conntime 2705*cfb92d14SAndroid Build Coastguard Worker 2706*cfb92d14SAndroid Build Coastguard WorkerPrint connection time and age of neighbors. 2707*cfb92d14SAndroid Build Coastguard Worker 2708*cfb92d14SAndroid Build Coastguard WorkerThe table provides the following info per neighbor: 2709*cfb92d14SAndroid Build Coastguard Worker 2710*cfb92d14SAndroid Build Coastguard Worker- RLOC16 2711*cfb92d14SAndroid Build Coastguard Worker- Extended MAC address 2712*cfb92d14SAndroid Build Coastguard Worker- Age (seconds since last heard from neighbor) 2713*cfb92d14SAndroid Build Coastguard Worker- Connection time (seconds since link establishment with neighbor) 2714*cfb92d14SAndroid Build Coastguard Worker 2715*cfb92d14SAndroid Build Coastguard WorkerDuration intervals are formatted as `<hh>:<mm>:<ss>` for hours, minutes, and seconds if the duration is less than one day. If the duration is longer than one day, the format is `<dd>d.<hh>:<mm>:<ss>`. 2716*cfb92d14SAndroid Build Coastguard Worker 2717*cfb92d14SAndroid Build Coastguard Worker```bash 2718*cfb92d14SAndroid Build Coastguard Worker> neighbor conntime 2719*cfb92d14SAndroid Build Coastguard Worker| RLOC16 | Extended MAC | Last Heard (Age) | Connection Time | 2720*cfb92d14SAndroid Build Coastguard Worker+--------+------------------+------------------+------------------+ 2721*cfb92d14SAndroid Build Coastguard Worker| 0x8401 | 1a28be396a14a318 | 00:00:13 | 00:07:59 | 2722*cfb92d14SAndroid Build Coastguard Worker| 0x5c00 | 723ebf0d9eba3264 | 00:00:03 | 00:11:27 | 2723*cfb92d14SAndroid Build Coastguard Worker| 0xe800 | ce53628a1e3f5b3c | 00:00:02 | 00:00:15 | 2724*cfb92d14SAndroid Build Coastguard WorkerDone 2725*cfb92d14SAndroid Build Coastguard Worker``` 2726*cfb92d14SAndroid Build Coastguard Worker 2727*cfb92d14SAndroid Build Coastguard Worker### neighbor conntime list 2728*cfb92d14SAndroid Build Coastguard Worker 2729*cfb92d14SAndroid Build Coastguard WorkerPrint connection time and age of neighbors. 2730*cfb92d14SAndroid Build Coastguard Worker 2731*cfb92d14SAndroid Build Coastguard WorkerThis command is similar to `neighbor conntime`, but it displays the information in a list format. The age and connection time are both displayed in seconds. 2732*cfb92d14SAndroid Build Coastguard Worker 2733*cfb92d14SAndroid Build Coastguard Worker```bash 2734*cfb92d14SAndroid Build Coastguard Worker> neighbor conntime list 2735*cfb92d14SAndroid Build Coastguard Worker0x8401 1a28be396a14a318 age:63 conn-time:644 2736*cfb92d14SAndroid Build Coastguard Worker0x5c00 723ebf0d9eba3264 age:23 conn-time:852 2737*cfb92d14SAndroid Build Coastguard Worker0xe800 ce53628a1e3f5b3c age:23 conn-time:180 2738*cfb92d14SAndroid Build Coastguard WorkerDone 2739*cfb92d14SAndroid Build Coastguard Worker``` 2740*cfb92d14SAndroid Build Coastguard Worker 2741*cfb92d14SAndroid Build Coastguard Worker### netstat 2742*cfb92d14SAndroid Build Coastguard Worker 2743*cfb92d14SAndroid Build Coastguard WorkerList all UDP sockets. 2744*cfb92d14SAndroid Build Coastguard Worker 2745*cfb92d14SAndroid Build Coastguard Worker```bash 2746*cfb92d14SAndroid Build Coastguard Worker> netstat 2747*cfb92d14SAndroid Build Coastguard Worker| Local Address | Peer Address | 2748*cfb92d14SAndroid Build Coastguard Worker+-------------------------------------------------+-------------------------------------------------+ 2749*cfb92d14SAndroid Build Coastguard Worker| [0:0:0:0:0:0:0:0]:49153 | [0:0:0:0:0:0:0:0]:0 | 2750*cfb92d14SAndroid Build Coastguard Worker| [0:0:0:0:0:0:0:0]:49152 | [0:0:0:0:0:0:0:0]:0 | 2751*cfb92d14SAndroid Build Coastguard Worker| [0:0:0:0:0:0:0:0]:61631 | [0:0:0:0:0:0:0:0]:0 | 2752*cfb92d14SAndroid Build Coastguard Worker| [0:0:0:0:0:0:0:0]:19788 | [0:0:0:0:0:0:0:0]:0 | 2753*cfb92d14SAndroid Build Coastguard WorkerDone 2754*cfb92d14SAndroid Build Coastguard Worker``` 2755*cfb92d14SAndroid Build Coastguard Worker 2756*cfb92d14SAndroid Build Coastguard Worker### networkdiagnostic get \<addr\> \<type\> .. 2757*cfb92d14SAndroid Build Coastguard Worker 2758*cfb92d14SAndroid Build Coastguard WorkerSend network diagnostic request to retrieve tlv of \<type\>s. 2759*cfb92d14SAndroid Build Coastguard Worker 2760*cfb92d14SAndroid Build Coastguard WorkerIf \<addr\> is unicast address, `Diagnostic Get` will be sent. if \<addr\> is multicast address, `Diagnostic Query` will be sent. 2761*cfb92d14SAndroid Build Coastguard Worker 2762*cfb92d14SAndroid Build Coastguard Worker```bash 2763*cfb92d14SAndroid Build Coastguard Worker> networkdiagnostic get fdde:ad00:beef:0:0:ff:fe00:fc00 0 1 6 2764*cfb92d14SAndroid Build Coastguard Worker> DIAG_GET.rsp/ans: 00080e336e1c41494e1c01020c000608640b0f674074c503 2765*cfb92d14SAndroid Build Coastguard WorkerExt Address: '0e336e1c41494e1c' 2766*cfb92d14SAndroid Build Coastguard WorkerRloc16: 0x0c00 2767*cfb92d14SAndroid Build Coastguard WorkerLeader Data: 2768*cfb92d14SAndroid Build Coastguard Worker PartitionId: 0x640b0f67 2769*cfb92d14SAndroid Build Coastguard Worker Weighting: 64 2770*cfb92d14SAndroid Build Coastguard Worker DataVersion: 116 2771*cfb92d14SAndroid Build Coastguard Worker StableDataVersion: 197 2772*cfb92d14SAndroid Build Coastguard Worker LeaderRouterId: 0x03 2773*cfb92d14SAndroid Build Coastguard WorkerDone 2774*cfb92d14SAndroid Build Coastguard Worker 2775*cfb92d14SAndroid Build Coastguard Worker> networkdiagnostic get ff02::1 0 1 2776*cfb92d14SAndroid Build Coastguard Worker> DIAG_GET.rsp/ans: 00080e336e1c41494e1c01020c00 2777*cfb92d14SAndroid Build Coastguard WorkerExt Address: '0e336e1c41494e1c' 2778*cfb92d14SAndroid Build Coastguard WorkerRloc16: 0x0c00 2779*cfb92d14SAndroid Build Coastguard WorkerDone 2780*cfb92d14SAndroid Build Coastguard WorkerDIAG_GET.rsp/ans: 00083efcdb7e3f9eb0f201021800 2781*cfb92d14SAndroid Build Coastguard WorkerExt Address: '3efcdb7e3f9eb0f2' 2782*cfb92d14SAndroid Build Coastguard WorkerRloc16: 0x1800 2783*cfb92d14SAndroid Build Coastguard WorkerDone 2784*cfb92d14SAndroid Build Coastguard Worker``` 2785*cfb92d14SAndroid Build Coastguard Worker 2786*cfb92d14SAndroid Build Coastguard Worker### networkdiagnostic reset \<addr\> \<type\> .. 2787*cfb92d14SAndroid Build Coastguard Worker 2788*cfb92d14SAndroid Build Coastguard WorkerSend network diagnostic request to reset \<addr\>'s tlv of \<type\>s. Currently only `MAC Counters`(9) is supported. 2789*cfb92d14SAndroid Build Coastguard Worker 2790*cfb92d14SAndroid Build Coastguard Worker```bash 2791*cfb92d14SAndroid Build Coastguard Worker> diagnostic reset fd00:db8::ff:fe00:0 9 2792*cfb92d14SAndroid Build Coastguard WorkerDone 2793*cfb92d14SAndroid Build Coastguard Worker``` 2794*cfb92d14SAndroid Build Coastguard Worker 2795*cfb92d14SAndroid Build Coastguard Worker### networkidtimeout 2796*cfb92d14SAndroid Build Coastguard Worker 2797*cfb92d14SAndroid Build Coastguard WorkerGet the NETWORK_ID_TIMEOUT parameter used in the Router role. 2798*cfb92d14SAndroid Build Coastguard Worker 2799*cfb92d14SAndroid Build Coastguard Worker```bash 2800*cfb92d14SAndroid Build Coastguard Worker> networkidtimeout 2801*cfb92d14SAndroid Build Coastguard Worker120 2802*cfb92d14SAndroid Build Coastguard WorkerDone 2803*cfb92d14SAndroid Build Coastguard Worker``` 2804*cfb92d14SAndroid Build Coastguard Worker 2805*cfb92d14SAndroid Build Coastguard Worker### networkidtimeout \<timeout\> 2806*cfb92d14SAndroid Build Coastguard Worker 2807*cfb92d14SAndroid Build Coastguard WorkerSet the NETWORK_ID_TIMEOUT parameter used in the Router role. 2808*cfb92d14SAndroid Build Coastguard Worker 2809*cfb92d14SAndroid Build Coastguard Worker```bash 2810*cfb92d14SAndroid Build Coastguard Worker> networkidtimeout 120 2811*cfb92d14SAndroid Build Coastguard WorkerDone 2812*cfb92d14SAndroid Build Coastguard Worker``` 2813*cfb92d14SAndroid Build Coastguard Worker 2814*cfb92d14SAndroid Build Coastguard Worker### networkkey 2815*cfb92d14SAndroid Build Coastguard Worker 2816*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Network Key value. 2817*cfb92d14SAndroid Build Coastguard Worker 2818*cfb92d14SAndroid Build Coastguard Worker```bash 2819*cfb92d14SAndroid Build Coastguard Worker> networkkey 2820*cfb92d14SAndroid Build Coastguard Worker00112233445566778899aabbccddeeff 2821*cfb92d14SAndroid Build Coastguard WorkerDone 2822*cfb92d14SAndroid Build Coastguard Worker``` 2823*cfb92d14SAndroid Build Coastguard Worker 2824*cfb92d14SAndroid Build Coastguard Worker### networkkey \<key\> 2825*cfb92d14SAndroid Build Coastguard Worker 2826*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Network Key value. 2827*cfb92d14SAndroid Build Coastguard Worker 2828*cfb92d14SAndroid Build Coastguard Worker```bash 2829*cfb92d14SAndroid Build Coastguard Worker> networkkey 00112233445566778899aabbccddeeff 2830*cfb92d14SAndroid Build Coastguard WorkerDone 2831*cfb92d14SAndroid Build Coastguard Worker``` 2832*cfb92d14SAndroid Build Coastguard Worker 2833*cfb92d14SAndroid Build Coastguard Worker### networkname 2834*cfb92d14SAndroid Build Coastguard Worker 2835*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Network Name. 2836*cfb92d14SAndroid Build Coastguard Worker 2837*cfb92d14SAndroid Build Coastguard Worker```bash 2838*cfb92d14SAndroid Build Coastguard Worker> networkname 2839*cfb92d14SAndroid Build Coastguard WorkerOpenThread 2840*cfb92d14SAndroid Build Coastguard WorkerDone 2841*cfb92d14SAndroid Build Coastguard Worker``` 2842*cfb92d14SAndroid Build Coastguard Worker 2843*cfb92d14SAndroid Build Coastguard Worker### networkname \<name\> 2844*cfb92d14SAndroid Build Coastguard Worker 2845*cfb92d14SAndroid Build Coastguard WorkerSet the Thread Network Name. 2846*cfb92d14SAndroid Build Coastguard Worker 2847*cfb92d14SAndroid Build Coastguard Worker**NOTE** The current commissioning credential becomes stale after changing this value. Use [pskc](#pskc--p-keypassphrase) to reset. 2848*cfb92d14SAndroid Build Coastguard Worker 2849*cfb92d14SAndroid Build Coastguard Worker```bash 2850*cfb92d14SAndroid Build Coastguard Worker> networkname OpenThread 2851*cfb92d14SAndroid Build Coastguard WorkerDone 2852*cfb92d14SAndroid Build Coastguard Worker``` 2853*cfb92d14SAndroid Build Coastguard Worker 2854*cfb92d14SAndroid Build Coastguard Worker### networktime 2855*cfb92d14SAndroid Build Coastguard Worker 2856*cfb92d14SAndroid Build Coastguard WorkerGet the Thread network time and the time sync parameters. 2857*cfb92d14SAndroid Build Coastguard Worker 2858*cfb92d14SAndroid Build Coastguard Worker```bash 2859*cfb92d14SAndroid Build Coastguard Worker> networktime 2860*cfb92d14SAndroid Build Coastguard WorkerNetwork Time: 21084154us (synchronized) 2861*cfb92d14SAndroid Build Coastguard WorkerTime Sync Period: 100s 2862*cfb92d14SAndroid Build Coastguard WorkerXTAL Threshold: 300ppm 2863*cfb92d14SAndroid Build Coastguard WorkerDone 2864*cfb92d14SAndroid Build Coastguard Worker``` 2865*cfb92d14SAndroid Build Coastguard Worker 2866*cfb92d14SAndroid Build Coastguard Worker### networktime \<timesyncperiod\> \<xtalthreshold\> 2867*cfb92d14SAndroid Build Coastguard Worker 2868*cfb92d14SAndroid Build Coastguard WorkerSet time sync parameters 2869*cfb92d14SAndroid Build Coastguard Worker 2870*cfb92d14SAndroid Build Coastguard Worker- timesyncperiod: The time synchronization period, in seconds. 2871*cfb92d14SAndroid Build Coastguard Worker- xtalthreshold: The XTAL accuracy threshold for a device to become Router-Capable device, in PPM. 2872*cfb92d14SAndroid Build Coastguard Worker 2873*cfb92d14SAndroid Build Coastguard Worker```bash 2874*cfb92d14SAndroid Build Coastguard Worker> networktime 100 300 2875*cfb92d14SAndroid Build Coastguard WorkerDone 2876*cfb92d14SAndroid Build Coastguard Worker``` 2877*cfb92d14SAndroid Build Coastguard Worker 2878*cfb92d14SAndroid Build Coastguard Worker### nexthop 2879*cfb92d14SAndroid Build Coastguard Worker 2880*cfb92d14SAndroid Build Coastguard WorkerOutput the table of allocated Router IDs and the current next hop (as Router ID) and path cost for each ID. 2881*cfb92d14SAndroid Build Coastguard Worker 2882*cfb92d14SAndroid Build Coastguard Worker```bash 2883*cfb92d14SAndroid Build Coastguard Worker> nexthop 2884*cfb92d14SAndroid Build Coastguard Worker| ID |NxtHop| Cost | 2885*cfb92d14SAndroid Build Coastguard Worker+------+------+------+ 2886*cfb92d14SAndroid Build Coastguard Worker| 9 | 9 | 1 | 2887*cfb92d14SAndroid Build Coastguard Worker| 25 | 25 | 0 | 2888*cfb92d14SAndroid Build Coastguard Worker| 30 | 30 | 1 | 2889*cfb92d14SAndroid Build Coastguard Worker| 46 | - | - | 2890*cfb92d14SAndroid Build Coastguard Worker| 50 | 30 | 3 | 2891*cfb92d14SAndroid Build Coastguard Worker| 60 | 30 | 2 | 2892*cfb92d14SAndroid Build Coastguard WorkerDone 2893*cfb92d14SAndroid Build Coastguard Worker``` 2894*cfb92d14SAndroid Build Coastguard Worker 2895*cfb92d14SAndroid Build Coastguard Worker### nexthop \<rloc16\> 2896*cfb92d14SAndroid Build Coastguard Worker 2897*cfb92d14SAndroid Build Coastguard WorkerGet the next hop (as RLOC16) and path cost towards a given RLOC16 destination. 2898*cfb92d14SAndroid Build Coastguard Worker 2899*cfb92d14SAndroid Build Coastguard Worker```bash 2900*cfb92d14SAndroid Build Coastguard Worker> nexthop 0xc000 2901*cfb92d14SAndroid Build Coastguard Worker0xc000 cost:0 2902*cfb92d14SAndroid Build Coastguard WorkerDone 2903*cfb92d14SAndroid Build Coastguard Worker 2904*cfb92d14SAndroid Build Coastguard Workernexthop 0x8001 2905*cfb92d14SAndroid Build Coastguard Worker0x2000 cost:3 2906*cfb92d14SAndroid Build Coastguard WorkerDone 2907*cfb92d14SAndroid Build Coastguard Worker``` 2908*cfb92d14SAndroid Build Coastguard Worker 2909*cfb92d14SAndroid Build Coastguard Worker### panid 2910*cfb92d14SAndroid Build Coastguard Worker 2911*cfb92d14SAndroid Build Coastguard WorkerGet the IEEE 802.15.4 PAN ID value. 2912*cfb92d14SAndroid Build Coastguard Worker 2913*cfb92d14SAndroid Build Coastguard Worker```bash 2914*cfb92d14SAndroid Build Coastguard Worker> panid 2915*cfb92d14SAndroid Build Coastguard Worker0xdead 2916*cfb92d14SAndroid Build Coastguard WorkerDone 2917*cfb92d14SAndroid Build Coastguard Worker``` 2918*cfb92d14SAndroid Build Coastguard Worker 2919*cfb92d14SAndroid Build Coastguard Worker### panid \<panid\> 2920*cfb92d14SAndroid Build Coastguard Worker 2921*cfb92d14SAndroid Build Coastguard WorkerSet the IEEE 802.15.4 PAN ID value. 2922*cfb92d14SAndroid Build Coastguard Worker 2923*cfb92d14SAndroid Build Coastguard Worker```bash 2924*cfb92d14SAndroid Build Coastguard Worker> panid 0xdead 2925*cfb92d14SAndroid Build Coastguard WorkerDone 2926*cfb92d14SAndroid Build Coastguard Worker``` 2927*cfb92d14SAndroid Build Coastguard Worker 2928*cfb92d14SAndroid Build Coastguard Worker### parent 2929*cfb92d14SAndroid Build Coastguard Worker 2930*cfb92d14SAndroid Build Coastguard WorkerGet the diagnostic information for a Thread Router as parent. 2931*cfb92d14SAndroid Build Coastguard Worker 2932*cfb92d14SAndroid Build Coastguard WorkerNote: When operating as a Thread Router when `OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is enabled, this command will return the cached information from when the device was previously attached as a Thread Child. Returning cached information is necessary to support the Thread Test Harness - Test Scenario 8.2.x requests the former parent (i.e. Joiner Router's) MAC address even if the device has already promoted to a router. 2933*cfb92d14SAndroid Build Coastguard Worker 2934*cfb92d14SAndroid Build Coastguard Worker```bash 2935*cfb92d14SAndroid Build Coastguard Worker> parent 2936*cfb92d14SAndroid Build Coastguard WorkerExt Addr: be1857c6c21dce55 2937*cfb92d14SAndroid Build Coastguard WorkerRloc: 5c00 2938*cfb92d14SAndroid Build Coastguard WorkerLink Quality In: 3 2939*cfb92d14SAndroid Build Coastguard WorkerLink Quality Out: 3 2940*cfb92d14SAndroid Build Coastguard WorkerAge: 20 2941*cfb92d14SAndroid Build Coastguard WorkerVersion: 4 2942*cfb92d14SAndroid Build Coastguard WorkerDone 2943*cfb92d14SAndroid Build Coastguard Worker``` 2944*cfb92d14SAndroid Build Coastguard Worker 2945*cfb92d14SAndroid Build Coastguard WorkerNote: When `OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE` is enabled, this command will return two extra lines with information relevant for CSL Receiver operation. 2946*cfb92d14SAndroid Build Coastguard Worker 2947*cfb92d14SAndroid Build Coastguard Worker```bash 2948*cfb92d14SAndroid Build Coastguard WorkerCSL clock accuracy: 20 2949*cfb92d14SAndroid Build Coastguard WorkerCSL uncertainty: 5 2950*cfb92d14SAndroid Build Coastguard Worker``` 2951*cfb92d14SAndroid Build Coastguard Worker 2952*cfb92d14SAndroid Build Coastguard Worker### parentpriority 2953*cfb92d14SAndroid Build Coastguard Worker 2954*cfb92d14SAndroid Build Coastguard WorkerGet the assigned parent priority value, -2 means not assigned. 2955*cfb92d14SAndroid Build Coastguard Worker 2956*cfb92d14SAndroid Build Coastguard Worker```bash 2957*cfb92d14SAndroid Build Coastguard Worker> parentpriority 2958*cfb92d14SAndroid Build Coastguard Worker1 2959*cfb92d14SAndroid Build Coastguard WorkerDone 2960*cfb92d14SAndroid Build Coastguard Worker``` 2961*cfb92d14SAndroid Build Coastguard Worker 2962*cfb92d14SAndroid Build Coastguard Worker### parentpriority \<parentpriority\> 2963*cfb92d14SAndroid Build Coastguard Worker 2964*cfb92d14SAndroid Build Coastguard WorkerSet the assigned parent priority value: 1, 0, -1 or -2. 2965*cfb92d14SAndroid Build Coastguard Worker 2966*cfb92d14SAndroid Build Coastguard Worker```bash 2967*cfb92d14SAndroid Build Coastguard Worker> parentpriority 1 2968*cfb92d14SAndroid Build Coastguard WorkerDone 2969*cfb92d14SAndroid Build Coastguard Worker``` 2970*cfb92d14SAndroid Build Coastguard Worker 2971*cfb92d14SAndroid Build Coastguard Worker### partitionid 2972*cfb92d14SAndroid Build Coastguard Worker 2973*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Network Partition ID. 2974*cfb92d14SAndroid Build Coastguard Worker 2975*cfb92d14SAndroid Build Coastguard Worker```bash 2976*cfb92d14SAndroid Build Coastguard Worker> partitionid 2977*cfb92d14SAndroid Build Coastguard Worker4294967295 2978*cfb92d14SAndroid Build Coastguard WorkerDone 2979*cfb92d14SAndroid Build Coastguard Worker``` 2980*cfb92d14SAndroid Build Coastguard Worker 2981*cfb92d14SAndroid Build Coastguard Worker### partitionid preferred 2982*cfb92d14SAndroid Build Coastguard Worker 2983*cfb92d14SAndroid Build Coastguard WorkerGet the preferred Thread Leader Partition ID. 2984*cfb92d14SAndroid Build Coastguard Worker 2985*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is required. 2986*cfb92d14SAndroid Build Coastguard Worker 2987*cfb92d14SAndroid Build Coastguard Worker```bash 2988*cfb92d14SAndroid Build Coastguard Worker> partitionid preferred 2989*cfb92d14SAndroid Build Coastguard Worker4294967295 2990*cfb92d14SAndroid Build Coastguard WorkerDone 2991*cfb92d14SAndroid Build Coastguard Worker``` 2992*cfb92d14SAndroid Build Coastguard Worker 2993*cfb92d14SAndroid Build Coastguard Worker### partitionid preferred \<partitionid\> 2994*cfb92d14SAndroid Build Coastguard Worker 2995*cfb92d14SAndroid Build Coastguard WorkerSet the preferred Thread Leader Partition ID. 2996*cfb92d14SAndroid Build Coastguard Worker 2997*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is required. 2998*cfb92d14SAndroid Build Coastguard Worker 2999*cfb92d14SAndroid Build Coastguard Worker```bash 3000*cfb92d14SAndroid Build Coastguard Worker> partitionid preferred 0xffffffff 3001*cfb92d14SAndroid Build Coastguard WorkerDone 3002*cfb92d14SAndroid Build Coastguard Worker``` 3003*cfb92d14SAndroid Build Coastguard Worker 3004*cfb92d14SAndroid Build Coastguard Worker### ping \[async\] \[-I source\] \[-m] \<ipaddr\> \[size\] \[count\] \[interval\] \[hoplimit\] \[timeout\] 3005*cfb92d14SAndroid Build Coastguard Worker 3006*cfb92d14SAndroid Build Coastguard WorkerSend an ICMPv6 Echo Request. 3007*cfb92d14SAndroid Build Coastguard Worker 3008*cfb92d14SAndroid Build Coastguard Worker- async: Use the non-blocking mode. New commands are allowed before the ping process terminates. 3009*cfb92d14SAndroid Build Coastguard Worker- source: The source IPv6 address of the echo request. 3010*cfb92d14SAndroid Build Coastguard Worker- -m: multicast loop, which allows looping back pings to multicast addresses that the device itself is subscribed to. 3011*cfb92d14SAndroid Build Coastguard Worker- size: The number of data bytes to be sent. 3012*cfb92d14SAndroid Build Coastguard Worker- count: The number of ICMPv6 Echo Requests to be sent. 3013*cfb92d14SAndroid Build Coastguard Worker- interval: The interval between two consecutive ICMPv6 Echo Requests in seconds. The value may have fractional form, for example `0.5`. 3014*cfb92d14SAndroid Build Coastguard Worker- hoplimit: The hoplimit of ICMPv6 Echo Request to be sent. 3015*cfb92d14SAndroid Build Coastguard Worker- timeout: Time in seconds to wait for the final ICMPv6 Echo Reply after sending out the request. The value may have fractional form, for example `3.5`. 3016*cfb92d14SAndroid Build Coastguard Worker 3017*cfb92d14SAndroid Build Coastguard Worker```bash 3018*cfb92d14SAndroid Build Coastguard Worker> ping fd00:db8:0:0:76b:6a05:3ae9:a61a 3019*cfb92d14SAndroid Build Coastguard Worker> 16 bytes from fd00:db8:0:0:76b:6a05:3ae9:a61a: icmp_seq=5 hlim=64 time=0ms 3020*cfb92d14SAndroid Build Coastguard Worker1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 0/0.0/0 ms. 3021*cfb92d14SAndroid Build Coastguard WorkerDone 3022*cfb92d14SAndroid Build Coastguard Worker 3023*cfb92d14SAndroid Build Coastguard Worker> ping -I fd00:db8:0:0:76b:6a05:3ae9:a61a ff02::1 100 1 1 1 3024*cfb92d14SAndroid Build Coastguard Worker> 108 bytes from fd00:db8:0:0:f605:fb4b:d429:d59a: icmp_seq=4 hlim=64 time=7ms 3025*cfb92d14SAndroid Build Coastguard Worker1 packets transmitted, 1 packets received. Round-trip min/avg/max = 7/7.0/7 ms. 3026*cfb92d14SAndroid Build Coastguard WorkerDone 3027*cfb92d14SAndroid Build Coastguard Worker``` 3028*cfb92d14SAndroid Build Coastguard Worker 3029*cfb92d14SAndroid Build Coastguard WorkerThe address can be an IPv4 address, which will be synthesized to an IPv6 address using the preferred NAT64 prefix from the network data. 3030*cfb92d14SAndroid Build Coastguard Worker 3031*cfb92d14SAndroid Build Coastguard Worker> Note: The command will return `InvalidState` when the preferred NAT64 prefix is unavailable. 3032*cfb92d14SAndroid Build Coastguard Worker 3033*cfb92d14SAndroid Build Coastguard Worker```bash 3034*cfb92d14SAndroid Build Coastguard Worker> ping 172.17.0.1 3035*cfb92d14SAndroid Build Coastguard WorkerPinging synthesized IPv6 address: fdde:ad00:beef:2:0:0:ac11:1 3036*cfb92d14SAndroid Build Coastguard Worker> 16 bytes from fdde:ad00:beef:2:0:0:ac11:1: icmp_seq=5 hlim=64 time=0ms 3037*cfb92d14SAndroid Build Coastguard Worker1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 0/0.0/0 ms. 3038*cfb92d14SAndroid Build Coastguard WorkerDone 3039*cfb92d14SAndroid Build Coastguard Worker``` 3040*cfb92d14SAndroid Build Coastguard Worker 3041*cfb92d14SAndroid Build Coastguard Worker### ping stop 3042*cfb92d14SAndroid Build Coastguard Worker 3043*cfb92d14SAndroid Build Coastguard WorkerStop sending ICMPv6 Echo Requests. 3044*cfb92d14SAndroid Build Coastguard Worker 3045*cfb92d14SAndroid Build Coastguard Worker```bash 3046*cfb92d14SAndroid Build Coastguard Worker> ping stop 3047*cfb92d14SAndroid Build Coastguard WorkerDone 3048*cfb92d14SAndroid Build Coastguard Worker``` 3049*cfb92d14SAndroid Build Coastguard Worker 3050*cfb92d14SAndroid Build Coastguard Worker### platform 3051*cfb92d14SAndroid Build Coastguard Worker 3052*cfb92d14SAndroid Build Coastguard WorkerPrint the current platform 3053*cfb92d14SAndroid Build Coastguard Worker 3054*cfb92d14SAndroid Build Coastguard Worker```bash 3055*cfb92d14SAndroid Build Coastguard Worker> platform 3056*cfb92d14SAndroid Build Coastguard WorkerNRF52840 3057*cfb92d14SAndroid Build Coastguard WorkerDone 3058*cfb92d14SAndroid Build Coastguard Worker``` 3059*cfb92d14SAndroid Build Coastguard Worker 3060*cfb92d14SAndroid Build Coastguard Worker### pollperiod 3061*cfb92d14SAndroid Build Coastguard Worker 3062*cfb92d14SAndroid Build Coastguard WorkerGet the customized data poll period of sleepy end device (milliseconds). Only for certification test. 3063*cfb92d14SAndroid Build Coastguard Worker 3064*cfb92d14SAndroid Build Coastguard Worker```bash 3065*cfb92d14SAndroid Build Coastguard Worker> pollperiod 3066*cfb92d14SAndroid Build Coastguard Worker0 3067*cfb92d14SAndroid Build Coastguard WorkerDone 3068*cfb92d14SAndroid Build Coastguard Worker``` 3069*cfb92d14SAndroid Build Coastguard Worker 3070*cfb92d14SAndroid Build Coastguard Worker### pollperiod \<pollperiod\> 3071*cfb92d14SAndroid Build Coastguard Worker 3072*cfb92d14SAndroid Build Coastguard WorkerSet the customized data poll period for sleepy end device (milliseconds >= 10ms). Only for certification test. 3073*cfb92d14SAndroid Build Coastguard Worker 3074*cfb92d14SAndroid Build Coastguard Worker```bash 3075*cfb92d14SAndroid Build Coastguard Worker> pollperiod 10 3076*cfb92d14SAndroid Build Coastguard WorkerDone 3077*cfb92d14SAndroid Build Coastguard Worker``` 3078*cfb92d14SAndroid Build Coastguard Worker 3079*cfb92d14SAndroid Build Coastguard Worker### pskc 3080*cfb92d14SAndroid Build Coastguard Worker 3081*cfb92d14SAndroid Build Coastguard WorkerGet pskc in hex format. 3082*cfb92d14SAndroid Build Coastguard Worker 3083*cfb92d14SAndroid Build Coastguard Worker```bash 3084*cfb92d14SAndroid Build Coastguard Worker> pskc 3085*cfb92d14SAndroid Build Coastguard Worker00000000000000000000000000000000 3086*cfb92d14SAndroid Build Coastguard WorkerDone 3087*cfb92d14SAndroid Build Coastguard Worker``` 3088*cfb92d14SAndroid Build Coastguard Worker 3089*cfb92d14SAndroid Build Coastguard Worker### pskc [-p] \<key\>|\<passphrase\> 3090*cfb92d14SAndroid Build Coastguard Worker 3091*cfb92d14SAndroid Build Coastguard WorkerWith `-p` generate pskc from \<passphrase\> (UTF-8 encoded) together with **current** network name and extended PAN ID, otherwise set pskc as \<key\> (hex format). 3092*cfb92d14SAndroid Build Coastguard Worker 3093*cfb92d14SAndroid Build Coastguard Worker```bash 3094*cfb92d14SAndroid Build Coastguard Worker> pskc 67c0c203aa0b042bfb5381c47aef4d9e 3095*cfb92d14SAndroid Build Coastguard WorkerDone 3096*cfb92d14SAndroid Build Coastguard Worker> pskc -p 123456 3097*cfb92d14SAndroid Build Coastguard WorkerDone 3098*cfb92d14SAndroid Build Coastguard Worker``` 3099*cfb92d14SAndroid Build Coastguard Worker 3100*cfb92d14SAndroid Build Coastguard Worker### pskcref 3101*cfb92d14SAndroid Build Coastguard Worker 3102*cfb92d14SAndroid Build Coastguard WorkerGet pskc key reference. 3103*cfb92d14SAndroid Build Coastguard Worker 3104*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE` is required. 3105*cfb92d14SAndroid Build Coastguard Worker 3106*cfb92d14SAndroid Build Coastguard Worker```bash 3107*cfb92d14SAndroid Build Coastguard Worker> pskcref 3108*cfb92d14SAndroid Build Coastguard Worker0x80000000 3109*cfb92d14SAndroid Build Coastguard WorkerDone 3110*cfb92d14SAndroid Build Coastguard Worker``` 3111*cfb92d14SAndroid Build Coastguard Worker 3112*cfb92d14SAndroid Build Coastguard Worker### pskcref \<keyref\> 3113*cfb92d14SAndroid Build Coastguard Worker 3114*cfb92d14SAndroid Build Coastguard WorkerSet pskc key reference as \<keyref\>. 3115*cfb92d14SAndroid Build Coastguard Worker 3116*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE` is required. 3117*cfb92d14SAndroid Build Coastguard Worker 3118*cfb92d14SAndroid Build Coastguard Worker```bash 3119*cfb92d14SAndroid Build Coastguard Worker> pskcref 0x20017 3120*cfb92d14SAndroid Build Coastguard WorkerDone 3121*cfb92d14SAndroid Build Coastguard Worker``` 3122*cfb92d14SAndroid Build Coastguard Worker 3123*cfb92d14SAndroid Build Coastguard Worker### preferrouterid \<routerid\> 3124*cfb92d14SAndroid Build Coastguard Worker 3125*cfb92d14SAndroid Build Coastguard WorkerPrefer a Router ID when solicit router id from Leader. 3126*cfb92d14SAndroid Build Coastguard Worker 3127*cfb92d14SAndroid Build Coastguard Worker```bash 3128*cfb92d14SAndroid Build Coastguard Worker> preferrouterid 16 3129*cfb92d14SAndroid Build Coastguard WorkerDone 3130*cfb92d14SAndroid Build Coastguard Worker``` 3131*cfb92d14SAndroid Build Coastguard Worker 3132*cfb92d14SAndroid Build Coastguard Worker### prefix 3133*cfb92d14SAndroid Build Coastguard Worker 3134*cfb92d14SAndroid Build Coastguard WorkerGet the prefix list in the local Network Data. Note: For the Thread 1.2 border router with backbone capability, the local Domain Prefix would be listed as well (with flag `D`), with preceding `-` if backbone functionality is disabled. 3135*cfb92d14SAndroid Build Coastguard Worker 3136*cfb92d14SAndroid Build Coastguard Worker```bash 3137*cfb92d14SAndroid Build Coastguard Worker> prefix 3138*cfb92d14SAndroid Build Coastguard Worker2001:dead:beef:cafe::/64 paros med 3139*cfb92d14SAndroid Build Coastguard Worker- fd00:7d03:7d03:7d03::/64 prosD med 3140*cfb92d14SAndroid Build Coastguard WorkerDone 3141*cfb92d14SAndroid Build Coastguard Worker``` 3142*cfb92d14SAndroid Build Coastguard Worker 3143*cfb92d14SAndroid Build Coastguard Worker### prefix add \<prefix\> [padcrosnD][prf] 3144*cfb92d14SAndroid Build Coastguard Worker 3145*cfb92d14SAndroid Build Coastguard WorkerAdd a valid prefix to the Network Data. 3146*cfb92d14SAndroid Build Coastguard Worker 3147*cfb92d14SAndroid Build Coastguard WorkerNote: The Domain Prefix flag (`D`) is only available for Thread 1.2. 3148*cfb92d14SAndroid Build Coastguard Worker 3149*cfb92d14SAndroid Build Coastguard Worker- p: Preferred flag 3150*cfb92d14SAndroid Build Coastguard Worker- a: Stateless IPv6 Address Autoconfiguration flag 3151*cfb92d14SAndroid Build Coastguard Worker- d: DHCPv6 IPv6 Address Configuration flag 3152*cfb92d14SAndroid Build Coastguard Worker- c: DHCPv6 Other Configuration flag 3153*cfb92d14SAndroid Build Coastguard Worker- r: Default Route flag 3154*cfb92d14SAndroid Build Coastguard Worker- o: On Mesh flag 3155*cfb92d14SAndroid Build Coastguard Worker- s: Stable flag 3156*cfb92d14SAndroid Build Coastguard Worker- n: Nd Dns flag 3157*cfb92d14SAndroid Build Coastguard Worker- D: Domain Prefix flag 3158*cfb92d14SAndroid Build Coastguard Worker- prf: Default router preference, which may be 'high', 'med', or 'low'. 3159*cfb92d14SAndroid Build Coastguard Worker 3160*cfb92d14SAndroid Build Coastguard Worker```bash 3161*cfb92d14SAndroid Build Coastguard Worker> prefix add 2001:dead:beef:cafe::/64 paros med 3162*cfb92d14SAndroid Build Coastguard WorkerDone 3163*cfb92d14SAndroid Build Coastguard Worker 3164*cfb92d14SAndroid Build Coastguard Worker> prefix add fd00:7d03:7d03:7d03::/64 prosD med 3165*cfb92d14SAndroid Build Coastguard WorkerDone 3166*cfb92d14SAndroid Build Coastguard Worker``` 3167*cfb92d14SAndroid Build Coastguard Worker 3168*cfb92d14SAndroid Build Coastguard Worker### prefix meshlocal 3169*cfb92d14SAndroid Build Coastguard Worker 3170*cfb92d14SAndroid Build Coastguard WorkerGet the mesh local prefix. 3171*cfb92d14SAndroid Build Coastguard Worker 3172*cfb92d14SAndroid Build Coastguard Worker```bash 3173*cfb92d14SAndroid Build Coastguard Worker> prefix meshlocal 3174*cfb92d14SAndroid Build Coastguard Workerfdde:ad00:beef:0::/64 3175*cfb92d14SAndroid Build Coastguard WorkerDone 3176*cfb92d14SAndroid Build Coastguard Worker``` 3177*cfb92d14SAndroid Build Coastguard Worker 3178*cfb92d14SAndroid Build Coastguard Worker### prefix meshlocal <prefix> 3179*cfb92d14SAndroid Build Coastguard Worker 3180*cfb92d14SAndroid Build Coastguard WorkerSet the mesh local prefix. 3181*cfb92d14SAndroid Build Coastguard Worker 3182*cfb92d14SAndroid Build Coastguard Worker```bash 3183*cfb92d14SAndroid Build Coastguard Worker> prefix meshlocal fdde:ad00:beef:0::/64 3184*cfb92d14SAndroid Build Coastguard WorkerDone 3185*cfb92d14SAndroid Build Coastguard Worker``` 3186*cfb92d14SAndroid Build Coastguard Worker 3187*cfb92d14SAndroid Build Coastguard Worker### prefix remove \<prefix\> 3188*cfb92d14SAndroid Build Coastguard Worker 3189*cfb92d14SAndroid Build Coastguard WorkerInvalidate a prefix in the Network Data. 3190*cfb92d14SAndroid Build Coastguard Worker 3191*cfb92d14SAndroid Build Coastguard Worker```bash 3192*cfb92d14SAndroid Build Coastguard Worker> prefix remove 2001:dead:beef:cafe::/64 3193*cfb92d14SAndroid Build Coastguard WorkerDone 3194*cfb92d14SAndroid Build Coastguard Worker``` 3195*cfb92d14SAndroid Build Coastguard Worker 3196*cfb92d14SAndroid Build Coastguard Worker### promiscuous 3197*cfb92d14SAndroid Build Coastguard Worker 3198*cfb92d14SAndroid Build Coastguard WorkerGet radio promiscuous property. 3199*cfb92d14SAndroid Build Coastguard Worker 3200*cfb92d14SAndroid Build Coastguard Worker```bash 3201*cfb92d14SAndroid Build Coastguard Worker> promiscuous 3202*cfb92d14SAndroid Build Coastguard WorkerDisabled 3203*cfb92d14SAndroid Build Coastguard WorkerDone 3204*cfb92d14SAndroid Build Coastguard Worker``` 3205*cfb92d14SAndroid Build Coastguard Worker 3206*cfb92d14SAndroid Build Coastguard Worker### promiscuous enable 3207*cfb92d14SAndroid Build Coastguard Worker 3208*cfb92d14SAndroid Build Coastguard WorkerEnable radio promiscuous operation and print raw packet content. 3209*cfb92d14SAndroid Build Coastguard Worker 3210*cfb92d14SAndroid Build Coastguard Worker```bash 3211*cfb92d14SAndroid Build Coastguard Worker> promiscuous enable 3212*cfb92d14SAndroid Build Coastguard WorkerDone 3213*cfb92d14SAndroid Build Coastguard Worker``` 3214*cfb92d14SAndroid Build Coastguard Worker 3215*cfb92d14SAndroid Build Coastguard Worker### promiscuous disable 3216*cfb92d14SAndroid Build Coastguard Worker 3217*cfb92d14SAndroid Build Coastguard WorkerDisable radio promiscuous operation. 3218*cfb92d14SAndroid Build Coastguard Worker 3219*cfb92d14SAndroid Build Coastguard Worker```bash 3220*cfb92d14SAndroid Build Coastguard Worker> promiscuous disable 3221*cfb92d14SAndroid Build Coastguard WorkerDone 3222*cfb92d14SAndroid Build Coastguard Worker``` 3223*cfb92d14SAndroid Build Coastguard Worker 3224*cfb92d14SAndroid Build Coastguard Worker### radio enable 3225*cfb92d14SAndroid Build Coastguard Worker 3226*cfb92d14SAndroid Build Coastguard WorkerEnable radio. 3227*cfb92d14SAndroid Build Coastguard Worker 3228*cfb92d14SAndroid Build Coastguard Worker```bash 3229*cfb92d14SAndroid Build Coastguard Worker> radio enable 3230*cfb92d14SAndroid Build Coastguard WorkerDone 3231*cfb92d14SAndroid Build Coastguard Worker``` 3232*cfb92d14SAndroid Build Coastguard Worker 3233*cfb92d14SAndroid Build Coastguard Worker### radio disable 3234*cfb92d14SAndroid Build Coastguard Worker 3235*cfb92d14SAndroid Build Coastguard WorkerDisable radio. 3236*cfb92d14SAndroid Build Coastguard Worker 3237*cfb92d14SAndroid Build Coastguard Worker```bash 3238*cfb92d14SAndroid Build Coastguard Worker> radio disable 3239*cfb92d14SAndroid Build Coastguard WorkerDone 3240*cfb92d14SAndroid Build Coastguard Worker``` 3241*cfb92d14SAndroid Build Coastguard Worker 3242*cfb92d14SAndroid Build Coastguard Worker### radio stats 3243*cfb92d14SAndroid Build Coastguard Worker 3244*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_RADIO_STATS_ENABLE` is required. This feature is only available on FTD and MTD. 3245*cfb92d14SAndroid Build Coastguard Worker 3246*cfb92d14SAndroid Build Coastguard WorkerThe radio statistics shows the time when the radio is in sleep/tx/rx state. The command will show the time of these states since last reset in unit of microseconds. It will also show the percentage of the time. 3247*cfb92d14SAndroid Build Coastguard Worker 3248*cfb92d14SAndroid Build Coastguard Worker```bash 3249*cfb92d14SAndroid Build Coastguard Worker> radio stats 3250*cfb92d14SAndroid Build Coastguard WorkerRadio Statistics: 3251*cfb92d14SAndroid Build Coastguard WorkerTotal Time: 67.756s 3252*cfb92d14SAndroid Build Coastguard WorkerTx Time: 0.022944s (0.03%) 3253*cfb92d14SAndroid Build Coastguard WorkerRx Time: 1.482353s (2.18%) 3254*cfb92d14SAndroid Build Coastguard WorkerSleep Time: 66.251128s (97.77%) 3255*cfb92d14SAndroid Build Coastguard WorkerDisabled Time: 0.000080s (0.00%) 3256*cfb92d14SAndroid Build Coastguard WorkerDone 3257*cfb92d14SAndroid Build Coastguard Worker``` 3258*cfb92d14SAndroid Build Coastguard Worker 3259*cfb92d14SAndroid Build Coastguard Worker### radio stats clear 3260*cfb92d14SAndroid Build Coastguard Worker 3261*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_RADIO_STATS_ENABLE` is required. This feature is only available on FTD and MTD. 3262*cfb92d14SAndroid Build Coastguard Worker 3263*cfb92d14SAndroid Build Coastguard WorkerThis command resets the radio statistics. It sets all the time to 0. 3264*cfb92d14SAndroid Build Coastguard Worker 3265*cfb92d14SAndroid Build Coastguard Worker```bash 3266*cfb92d14SAndroid Build Coastguard Worker> radio stats clear 3267*cfb92d14SAndroid Build Coastguard WorkerDone 3268*cfb92d14SAndroid Build Coastguard Worker``` 3269*cfb92d14SAndroid Build Coastguard Worker 3270*cfb92d14SAndroid Build Coastguard Worker### radiofilter 3271*cfb92d14SAndroid Build Coastguard Worker 3272*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_MAC_FILTER_ENABLE` is required. 3273*cfb92d14SAndroid Build Coastguard Worker 3274*cfb92d14SAndroid Build Coastguard WorkerThe radio filter is mainly intended for testing. It can be used to temporarily block all tx/rx on the IEEE 802.15.4 radio. 3275*cfb92d14SAndroid Build Coastguard Worker 3276*cfb92d14SAndroid Build Coastguard WorkerWhen radio filter is enabled, radio is put to sleep instead of receive (to ensure device does not receive any frame and/or potentially send ack). Also the frame transmission requests return immediately without sending the frame over the air (return "no ack" error if ack is requested, otherwise return success). 3277*cfb92d14SAndroid Build Coastguard Worker 3278*cfb92d14SAndroid Build Coastguard WorkerGet radio filter status (enabled or disabled). 3279*cfb92d14SAndroid Build Coastguard Worker 3280*cfb92d14SAndroid Build Coastguard Worker```bash 3281*cfb92d14SAndroid Build Coastguard Worker> radiofilter 3282*cfb92d14SAndroid Build Coastguard WorkerDisabled 3283*cfb92d14SAndroid Build Coastguard WorkerDone 3284*cfb92d14SAndroid Build Coastguard Worker``` 3285*cfb92d14SAndroid Build Coastguard Worker 3286*cfb92d14SAndroid Build Coastguard Worker### radiofilter enable 3287*cfb92d14SAndroid Build Coastguard Worker 3288*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_MAC_FILTER_ENABLE` is required. 3289*cfb92d14SAndroid Build Coastguard Worker 3290*cfb92d14SAndroid Build Coastguard WorkerEnable radio radio filter. 3291*cfb92d14SAndroid Build Coastguard Worker 3292*cfb92d14SAndroid Build Coastguard Worker```bash 3293*cfb92d14SAndroid Build Coastguard Worker> radiofilter enable 3294*cfb92d14SAndroid Build Coastguard WorkerDone 3295*cfb92d14SAndroid Build Coastguard Worker``` 3296*cfb92d14SAndroid Build Coastguard Worker 3297*cfb92d14SAndroid Build Coastguard Worker### radiofilter disable 3298*cfb92d14SAndroid Build Coastguard Worker 3299*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_MAC_FILTER_ENABLE` is required. 3300*cfb92d14SAndroid Build Coastguard Worker 3301*cfb92d14SAndroid Build Coastguard WorkerDisable radio radio filter. 3302*cfb92d14SAndroid Build Coastguard Worker 3303*cfb92d14SAndroid Build Coastguard Worker```bash 3304*cfb92d14SAndroid Build Coastguard Worker> radiofilter disable 3305*cfb92d14SAndroid Build Coastguard WorkerDone 3306*cfb92d14SAndroid Build Coastguard Worker``` 3307*cfb92d14SAndroid Build Coastguard Worker 3308*cfb92d14SAndroid Build Coastguard Worker### rcp 3309*cfb92d14SAndroid Build Coastguard Worker 3310*cfb92d14SAndroid Build Coastguard WorkerRCP-related commands. 3311*cfb92d14SAndroid Build Coastguard Worker 3312*cfb92d14SAndroid Build Coastguard Worker### region 3313*cfb92d14SAndroid Build Coastguard Worker 3314*cfb92d14SAndroid Build Coastguard WorkerSet the radio region, this can affect the transmit power limit. 3315*cfb92d14SAndroid Build Coastguard Worker 3316*cfb92d14SAndroid Build Coastguard Worker```bash 3317*cfb92d14SAndroid Build Coastguard Worker> region US 3318*cfb92d14SAndroid Build Coastguard WorkerDone 3319*cfb92d14SAndroid Build Coastguard Worker> region 3320*cfb92d14SAndroid Build Coastguard WorkerUS 3321*cfb92d14SAndroid Build Coastguard WorkerDone 3322*cfb92d14SAndroid Build Coastguard Worker``` 3323*cfb92d14SAndroid Build Coastguard Worker 3324*cfb92d14SAndroid Build Coastguard Worker### rcp version 3325*cfb92d14SAndroid Build Coastguard Worker 3326*cfb92d14SAndroid Build Coastguard WorkerPrint RCP version string. 3327*cfb92d14SAndroid Build Coastguard Worker 3328*cfb92d14SAndroid Build Coastguard Worker```bash 3329*cfb92d14SAndroid Build Coastguard Worker> rcp version 3330*cfb92d14SAndroid Build Coastguard WorkerOPENTHREAD/20191113-00825-g82053cc9d-dirty; SIMULATION; Jun 4 2020 17:53:16 3331*cfb92d14SAndroid Build Coastguard WorkerDone 3332*cfb92d14SAndroid Build Coastguard Worker``` 3333*cfb92d14SAndroid Build Coastguard Worker 3334*cfb92d14SAndroid Build Coastguard Worker### releaserouterid \<routerid\> 3335*cfb92d14SAndroid Build Coastguard Worker 3336*cfb92d14SAndroid Build Coastguard WorkerRelease a Router ID that has been allocated by the device in the Leader role. 3337*cfb92d14SAndroid Build Coastguard Worker 3338*cfb92d14SAndroid Build Coastguard Worker```bash 3339*cfb92d14SAndroid Build Coastguard Worker> releaserouterid 16 3340*cfb92d14SAndroid Build Coastguard WorkerDone 3341*cfb92d14SAndroid Build Coastguard Worker``` 3342*cfb92d14SAndroid Build Coastguard Worker 3343*cfb92d14SAndroid Build Coastguard Worker### reset 3344*cfb92d14SAndroid Build Coastguard Worker 3345*cfb92d14SAndroid Build Coastguard WorkerSignal a platform reset. 3346*cfb92d14SAndroid Build Coastguard Worker 3347*cfb92d14SAndroid Build Coastguard Worker```bash 3348*cfb92d14SAndroid Build Coastguard Worker> reset 3349*cfb92d14SAndroid Build Coastguard Worker``` 3350*cfb92d14SAndroid Build Coastguard Worker 3351*cfb92d14SAndroid Build Coastguard Worker### reset bootloader 3352*cfb92d14SAndroid Build Coastguard Worker 3353*cfb92d14SAndroid Build Coastguard WorkerSignal a platform reset to bootloader mode, if supported. 3354*cfb92d14SAndroid Build Coastguard Worker 3355*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_PLATFORM_BOOTLOADER_MODE_ENABLE`. 3356*cfb92d14SAndroid Build Coastguard Worker 3357*cfb92d14SAndroid Build Coastguard Worker```bash 3358*cfb92d14SAndroid Build Coastguard Worker> reset bootloader 3359*cfb92d14SAndroid Build Coastguard WorkerDone 3360*cfb92d14SAndroid Build Coastguard Worker``` 3361*cfb92d14SAndroid Build Coastguard Worker 3362*cfb92d14SAndroid Build Coastguard Worker### rloc16 3363*cfb92d14SAndroid Build Coastguard Worker 3364*cfb92d14SAndroid Build Coastguard WorkerGet the Thread RLOC16 value. 3365*cfb92d14SAndroid Build Coastguard Worker 3366*cfb92d14SAndroid Build Coastguard Worker```bash 3367*cfb92d14SAndroid Build Coastguard Worker> rloc16 3368*cfb92d14SAndroid Build Coastguard Worker0xdead 3369*cfb92d14SAndroid Build Coastguard WorkerDone 3370*cfb92d14SAndroid Build Coastguard Worker``` 3371*cfb92d14SAndroid Build Coastguard Worker 3372*cfb92d14SAndroid Build Coastguard Worker### route 3373*cfb92d14SAndroid Build Coastguard Worker 3374*cfb92d14SAndroid Build Coastguard WorkerGet the external route list in the local Network Data. 3375*cfb92d14SAndroid Build Coastguard Worker 3376*cfb92d14SAndroid Build Coastguard Worker```bash 3377*cfb92d14SAndroid Build Coastguard Worker> route 3378*cfb92d14SAndroid Build Coastguard Worker2001:dead:beef:cafe::/64 s med 3379*cfb92d14SAndroid Build Coastguard WorkerDone 3380*cfb92d14SAndroid Build Coastguard Worker``` 3381*cfb92d14SAndroid Build Coastguard Worker 3382*cfb92d14SAndroid Build Coastguard Worker### route add \<prefix\> [sna][prf] 3383*cfb92d14SAndroid Build Coastguard Worker 3384*cfb92d14SAndroid Build Coastguard WorkerAdd a valid external route to the Network Data. 3385*cfb92d14SAndroid Build Coastguard Worker 3386*cfb92d14SAndroid Build Coastguard Worker- s: Stable flag 3387*cfb92d14SAndroid Build Coastguard Worker- n: NAT64 flag 3388*cfb92d14SAndroid Build Coastguard Worker- a: Advertising PIO (AP) flag 3389*cfb92d14SAndroid Build Coastguard Worker- prf: Default Router Preference, which may be: 'high', 'med', or 'low'. 3390*cfb92d14SAndroid Build Coastguard Worker 3391*cfb92d14SAndroid Build Coastguard Worker```bash 3392*cfb92d14SAndroid Build Coastguard Worker> route add 2001:dead:beef:cafe::/64 s med 3393*cfb92d14SAndroid Build Coastguard WorkerDone 3394*cfb92d14SAndroid Build Coastguard Worker``` 3395*cfb92d14SAndroid Build Coastguard Worker 3396*cfb92d14SAndroid Build Coastguard Worker### route remove \<prefix\> 3397*cfb92d14SAndroid Build Coastguard Worker 3398*cfb92d14SAndroid Build Coastguard WorkerInvalidate a external route in the Network Data. 3399*cfb92d14SAndroid Build Coastguard Worker 3400*cfb92d14SAndroid Build Coastguard Worker```bash 3401*cfb92d14SAndroid Build Coastguard Worker> route remove 2001:dead:beef:cafe::/64 3402*cfb92d14SAndroid Build Coastguard WorkerDone 3403*cfb92d14SAndroid Build Coastguard Worker``` 3404*cfb92d14SAndroid Build Coastguard Worker 3405*cfb92d14SAndroid Build Coastguard Worker### router list 3406*cfb92d14SAndroid Build Coastguard Worker 3407*cfb92d14SAndroid Build Coastguard WorkerList allocated Router IDs. 3408*cfb92d14SAndroid Build Coastguard Worker 3409*cfb92d14SAndroid Build Coastguard Worker```bash 3410*cfb92d14SAndroid Build Coastguard Worker> router list 3411*cfb92d14SAndroid Build Coastguard Worker8 24 50 3412*cfb92d14SAndroid Build Coastguard WorkerDone 3413*cfb92d14SAndroid Build Coastguard Worker``` 3414*cfb92d14SAndroid Build Coastguard Worker 3415*cfb92d14SAndroid Build Coastguard Worker### router table 3416*cfb92d14SAndroid Build Coastguard Worker 3417*cfb92d14SAndroid Build Coastguard WorkerPrint table of routers. 3418*cfb92d14SAndroid Build Coastguard Worker 3419*cfb92d14SAndroid Build Coastguard Worker```bash 3420*cfb92d14SAndroid Build Coastguard Worker> router table 3421*cfb92d14SAndroid Build Coastguard Worker| ID | RLOC16 | Next Hop | Path Cost | LQ In | LQ Out | Age | Extended MAC | Link | 3422*cfb92d14SAndroid Build Coastguard Worker+----+--------+----------+-----------+-------+--------+-----+------------------+------+ 3423*cfb92d14SAndroid Build Coastguard Worker| 22 | 0x5800 | 63 | 0 | 0 | 0 | 0 | 0aeb8196c9f61658 | 0 | 3424*cfb92d14SAndroid Build Coastguard Worker| 49 | 0xc400 | 63 | 0 | 3 | 3 | 0 | faa1c03908e2dbf2 | 1 | 3425*cfb92d14SAndroid Build Coastguard WorkerDone 3426*cfb92d14SAndroid Build Coastguard Worker``` 3427*cfb92d14SAndroid Build Coastguard Worker 3428*cfb92d14SAndroid Build Coastguard Worker### router \<id\> 3429*cfb92d14SAndroid Build Coastguard Worker 3430*cfb92d14SAndroid Build Coastguard WorkerPrint diagnostic information for a Thread Router. The `id` may be a Router ID or an RLOC16. 3431*cfb92d14SAndroid Build Coastguard Worker 3432*cfb92d14SAndroid Build Coastguard Worker```bash 3433*cfb92d14SAndroid Build Coastguard Worker> router 50 3434*cfb92d14SAndroid Build Coastguard WorkerAlloc: 1 3435*cfb92d14SAndroid Build Coastguard WorkerRouter ID: 50 3436*cfb92d14SAndroid Build Coastguard WorkerRloc: c800 3437*cfb92d14SAndroid Build Coastguard WorkerNext Hop: c800 3438*cfb92d14SAndroid Build Coastguard WorkerLink: 1 3439*cfb92d14SAndroid Build Coastguard WorkerExt Addr: e2b3540590b0fd87 3440*cfb92d14SAndroid Build Coastguard WorkerCost: 0 3441*cfb92d14SAndroid Build Coastguard WorkerLink Quality In: 3 3442*cfb92d14SAndroid Build Coastguard WorkerLink Quality Out: 3 3443*cfb92d14SAndroid Build Coastguard WorkerAge: 3 3444*cfb92d14SAndroid Build Coastguard WorkerDone 3445*cfb92d14SAndroid Build Coastguard Worker``` 3446*cfb92d14SAndroid Build Coastguard Worker 3447*cfb92d14SAndroid Build Coastguard Worker```bash 3448*cfb92d14SAndroid Build Coastguard Worker> router 0xc800 3449*cfb92d14SAndroid Build Coastguard WorkerAlloc: 1 3450*cfb92d14SAndroid Build Coastguard WorkerRouter ID: 50 3451*cfb92d14SAndroid Build Coastguard WorkerRloc: c800 3452*cfb92d14SAndroid Build Coastguard WorkerNext Hop: c800 3453*cfb92d14SAndroid Build Coastguard WorkerLink: 1 3454*cfb92d14SAndroid Build Coastguard WorkerExt Addr: e2b3540590b0fd87 3455*cfb92d14SAndroid Build Coastguard WorkerCost: 0 3456*cfb92d14SAndroid Build Coastguard WorkerLink Quality In: 3 3457*cfb92d14SAndroid Build Coastguard WorkerLink Quality Out: 3 3458*cfb92d14SAndroid Build Coastguard WorkerAge: 7 3459*cfb92d14SAndroid Build Coastguard WorkerDone 3460*cfb92d14SAndroid Build Coastguard Worker``` 3461*cfb92d14SAndroid Build Coastguard Worker 3462*cfb92d14SAndroid Build Coastguard Worker### routerdowngradethreshold 3463*cfb92d14SAndroid Build Coastguard Worker 3464*cfb92d14SAndroid Build Coastguard WorkerGet the ROUTER_DOWNGRADE_THRESHOLD value. 3465*cfb92d14SAndroid Build Coastguard Worker 3466*cfb92d14SAndroid Build Coastguard Worker```bash 3467*cfb92d14SAndroid Build Coastguard Worker> routerdowngradethreshold 3468*cfb92d14SAndroid Build Coastguard Worker23 3469*cfb92d14SAndroid Build Coastguard WorkerDone 3470*cfb92d14SAndroid Build Coastguard Worker``` 3471*cfb92d14SAndroid Build Coastguard Worker 3472*cfb92d14SAndroid Build Coastguard Worker### routerdowngradethreshold \<threshold\> 3473*cfb92d14SAndroid Build Coastguard Worker 3474*cfb92d14SAndroid Build Coastguard WorkerSet the ROUTER_DOWNGRADE_THRESHOLD value. 3475*cfb92d14SAndroid Build Coastguard Worker 3476*cfb92d14SAndroid Build Coastguard Worker```bash 3477*cfb92d14SAndroid Build Coastguard Worker> routerdowngradethreshold 23 3478*cfb92d14SAndroid Build Coastguard WorkerDone 3479*cfb92d14SAndroid Build Coastguard Worker``` 3480*cfb92d14SAndroid Build Coastguard Worker 3481*cfb92d14SAndroid Build Coastguard Worker### routereligible 3482*cfb92d14SAndroid Build Coastguard Worker 3483*cfb92d14SAndroid Build Coastguard WorkerIndicates whether the router role is enabled or disabled. 3484*cfb92d14SAndroid Build Coastguard Worker 3485*cfb92d14SAndroid Build Coastguard Worker```bash 3486*cfb92d14SAndroid Build Coastguard Worker> routereligible 3487*cfb92d14SAndroid Build Coastguard WorkerEnabled 3488*cfb92d14SAndroid Build Coastguard WorkerDone 3489*cfb92d14SAndroid Build Coastguard Worker``` 3490*cfb92d14SAndroid Build Coastguard Worker 3491*cfb92d14SAndroid Build Coastguard Worker### routereligible enable 3492*cfb92d14SAndroid Build Coastguard Worker 3493*cfb92d14SAndroid Build Coastguard WorkerEnable the router role. 3494*cfb92d14SAndroid Build Coastguard Worker 3495*cfb92d14SAndroid Build Coastguard Worker```bash 3496*cfb92d14SAndroid Build Coastguard Worker> routereligible enable 3497*cfb92d14SAndroid Build Coastguard WorkerDone 3498*cfb92d14SAndroid Build Coastguard Worker``` 3499*cfb92d14SAndroid Build Coastguard Worker 3500*cfb92d14SAndroid Build Coastguard Worker### routereligible disable 3501*cfb92d14SAndroid Build Coastguard Worker 3502*cfb92d14SAndroid Build Coastguard WorkerDisable the router role. 3503*cfb92d14SAndroid Build Coastguard Worker 3504*cfb92d14SAndroid Build Coastguard Worker```bash 3505*cfb92d14SAndroid Build Coastguard Worker> routereligible disable 3506*cfb92d14SAndroid Build Coastguard WorkerDone 3507*cfb92d14SAndroid Build Coastguard Worker``` 3508*cfb92d14SAndroid Build Coastguard Worker 3509*cfb92d14SAndroid Build Coastguard Worker### routerselectionjitter 3510*cfb92d14SAndroid Build Coastguard Worker 3511*cfb92d14SAndroid Build Coastguard WorkerGet the ROUTER_SELECTION_JITTER value. 3512*cfb92d14SAndroid Build Coastguard Worker 3513*cfb92d14SAndroid Build Coastguard Worker```bash 3514*cfb92d14SAndroid Build Coastguard Worker> routerselectionjitter 3515*cfb92d14SAndroid Build Coastguard Worker120 3516*cfb92d14SAndroid Build Coastguard WorkerDone 3517*cfb92d14SAndroid Build Coastguard Worker``` 3518*cfb92d14SAndroid Build Coastguard Worker 3519*cfb92d14SAndroid Build Coastguard Worker### routerselectionjitter \<jitter\> 3520*cfb92d14SAndroid Build Coastguard Worker 3521*cfb92d14SAndroid Build Coastguard WorkerSet the ROUTER_SELECTION_JITTER value. 3522*cfb92d14SAndroid Build Coastguard Worker 3523*cfb92d14SAndroid Build Coastguard Worker```bash 3524*cfb92d14SAndroid Build Coastguard Worker> routerselectionjitter 120 3525*cfb92d14SAndroid Build Coastguard WorkerDone 3526*cfb92d14SAndroid Build Coastguard Worker``` 3527*cfb92d14SAndroid Build Coastguard Worker 3528*cfb92d14SAndroid Build Coastguard Worker### routerupgradethreshold 3529*cfb92d14SAndroid Build Coastguard Worker 3530*cfb92d14SAndroid Build Coastguard WorkerGet the ROUTER_UPGRADE_THRESHOLD value. 3531*cfb92d14SAndroid Build Coastguard Worker 3532*cfb92d14SAndroid Build Coastguard Worker```bash 3533*cfb92d14SAndroid Build Coastguard Worker> routerupgradethreshold 3534*cfb92d14SAndroid Build Coastguard Worker16 3535*cfb92d14SAndroid Build Coastguard WorkerDone 3536*cfb92d14SAndroid Build Coastguard Worker``` 3537*cfb92d14SAndroid Build Coastguard Worker 3538*cfb92d14SAndroid Build Coastguard Worker### routerupgradethreshold \<threshold\> 3539*cfb92d14SAndroid Build Coastguard Worker 3540*cfb92d14SAndroid Build Coastguard WorkerSet the ROUTER_UPGRADE_THRESHOLD value. 3541*cfb92d14SAndroid Build Coastguard Worker 3542*cfb92d14SAndroid Build Coastguard Worker```bash 3543*cfb92d14SAndroid Build Coastguard Worker> routerupgradethreshold 16 3544*cfb92d14SAndroid Build Coastguard WorkerDone 3545*cfb92d14SAndroid Build Coastguard Worker``` 3546*cfb92d14SAndroid Build Coastguard Worker 3547*cfb92d14SAndroid Build Coastguard Worker### childrouterlinks 3548*cfb92d14SAndroid Build Coastguard Worker 3549*cfb92d14SAndroid Build Coastguard WorkerGet the MLE_CHILD_ROUTER_LINKS value. 3550*cfb92d14SAndroid Build Coastguard Worker 3551*cfb92d14SAndroid Build Coastguard Worker```bash 3552*cfb92d14SAndroid Build Coastguard Worker> childrouterlinks 3553*cfb92d14SAndroid Build Coastguard Worker16 3554*cfb92d14SAndroid Build Coastguard WorkerDone 3555*cfb92d14SAndroid Build Coastguard Worker``` 3556*cfb92d14SAndroid Build Coastguard Worker 3557*cfb92d14SAndroid Build Coastguard Worker### childrouterlinks \<number_of_links\> 3558*cfb92d14SAndroid Build Coastguard Worker 3559*cfb92d14SAndroid Build Coastguard WorkerSet the MLE_CHILD_ROUTER_LINKS value. 3560*cfb92d14SAndroid Build Coastguard Worker 3561*cfb92d14SAndroid Build Coastguard Worker```bash 3562*cfb92d14SAndroid Build Coastguard Worker> childrouterlinks 16 3563*cfb92d14SAndroid Build Coastguard WorkerDone 3564*cfb92d14SAndroid Build Coastguard Worker``` 3565*cfb92d14SAndroid Build Coastguard Worker 3566*cfb92d14SAndroid Build Coastguard Worker### scan \[channel\] 3567*cfb92d14SAndroid Build Coastguard Worker 3568*cfb92d14SAndroid Build Coastguard WorkerPerform an IEEE 802.15.4 Active Scan. 3569*cfb92d14SAndroid Build Coastguard Worker 3570*cfb92d14SAndroid Build Coastguard Worker- channel: The channel to scan on. If no channel is provided, the active scan will cover all valid channels. 3571*cfb92d14SAndroid Build Coastguard Worker 3572*cfb92d14SAndroid Build Coastguard Worker```bash 3573*cfb92d14SAndroid Build Coastguard Worker> scan 3574*cfb92d14SAndroid Build Coastguard Worker| PAN | MAC Address | Ch | dBm | LQI | 3575*cfb92d14SAndroid Build Coastguard Worker+------+------------------+----+-----+-----+ 3576*cfb92d14SAndroid Build Coastguard Worker| ffff | f1d92a82c8d8fe43 | 11 | -20 | 0 | 3577*cfb92d14SAndroid Build Coastguard WorkerDone 3578*cfb92d14SAndroid Build Coastguard Worker``` 3579*cfb92d14SAndroid Build Coastguard Worker 3580*cfb92d14SAndroid Build Coastguard Worker### scan energy \[duration\] \[channel\] 3581*cfb92d14SAndroid Build Coastguard Worker 3582*cfb92d14SAndroid Build Coastguard WorkerPerform an IEEE 802.15.4 Energy Scan. 3583*cfb92d14SAndroid Build Coastguard Worker 3584*cfb92d14SAndroid Build Coastguard Worker- duration: The time in milliseconds to spend scanning each channel. 3585*cfb92d14SAndroid Build Coastguard Worker 3586*cfb92d14SAndroid Build Coastguard Worker```bash 3587*cfb92d14SAndroid Build Coastguard Worker> scan energy 10 3588*cfb92d14SAndroid Build Coastguard Worker| Ch | RSSI | 3589*cfb92d14SAndroid Build Coastguard Worker+----+------+ 3590*cfb92d14SAndroid Build Coastguard Worker| 11 | -59 | 3591*cfb92d14SAndroid Build Coastguard Worker| 12 | -62 | 3592*cfb92d14SAndroid Build Coastguard Worker| 13 | -67 | 3593*cfb92d14SAndroid Build Coastguard Worker| 14 | -61 | 3594*cfb92d14SAndroid Build Coastguard Worker| 15 | -87 | 3595*cfb92d14SAndroid Build Coastguard Worker| 16 | -86 | 3596*cfb92d14SAndroid Build Coastguard Worker| 17 | -86 | 3597*cfb92d14SAndroid Build Coastguard Worker| 18 | -52 | 3598*cfb92d14SAndroid Build Coastguard Worker| 19 | -58 | 3599*cfb92d14SAndroid Build Coastguard Worker| 20 | -82 | 3600*cfb92d14SAndroid Build Coastguard Worker| 21 | -76 | 3601*cfb92d14SAndroid Build Coastguard Worker| 22 | -82 | 3602*cfb92d14SAndroid Build Coastguard Worker| 23 | -74 | 3603*cfb92d14SAndroid Build Coastguard Worker| 24 | -81 | 3604*cfb92d14SAndroid Build Coastguard Worker| 25 | -88 | 3605*cfb92d14SAndroid Build Coastguard Worker| 26 | -71 | 3606*cfb92d14SAndroid Build Coastguard WorkerDone 3607*cfb92d14SAndroid Build Coastguard Worker``` 3608*cfb92d14SAndroid Build Coastguard Worker 3609*cfb92d14SAndroid Build Coastguard Worker```bash 3610*cfb92d14SAndroid Build Coastguard Worker> scan energy 10 20 3611*cfb92d14SAndroid Build Coastguard Worker| Ch | RSSI | 3612*cfb92d14SAndroid Build Coastguard Worker+----+------+ 3613*cfb92d14SAndroid Build Coastguard Worker| 20 | -82 | 3614*cfb92d14SAndroid Build Coastguard WorkerDone 3615*cfb92d14SAndroid Build Coastguard Worker``` 3616*cfb92d14SAndroid Build Coastguard Worker 3617*cfb92d14SAndroid Build Coastguard Worker### service 3618*cfb92d14SAndroid Build Coastguard Worker 3619*cfb92d14SAndroid Build Coastguard WorkerModule for controlling service registration in Network Data. Each change in service registration must be sent to leader by `netdata register` command before taking effect. 3620*cfb92d14SAndroid Build Coastguard Worker 3621*cfb92d14SAndroid Build Coastguard Worker### service add \<enterpriseNumber\> \<serviceData\> [\<serverData\>] 3622*cfb92d14SAndroid Build Coastguard Worker 3623*cfb92d14SAndroid Build Coastguard WorkerAdd service to the Network Data. 3624*cfb92d14SAndroid Build Coastguard Worker 3625*cfb92d14SAndroid Build Coastguard Worker- enterpriseNumber: IANA enterprise number 3626*cfb92d14SAndroid Build Coastguard Worker- serviceData: hex-encoded binary service data 3627*cfb92d14SAndroid Build Coastguard Worker- serverData: hex-encoded binary server data (empty if not provided) 3628*cfb92d14SAndroid Build Coastguard Worker 3629*cfb92d14SAndroid Build Coastguard Worker```bash 3630*cfb92d14SAndroid Build Coastguard Worker> service add 44970 112233 aabbcc 3631*cfb92d14SAndroid Build Coastguard WorkerDone 3632*cfb92d14SAndroid Build Coastguard Worker> netdata register 3633*cfb92d14SAndroid Build Coastguard WorkerDone 3634*cfb92d14SAndroid Build Coastguard Worker``` 3635*cfb92d14SAndroid Build Coastguard Worker 3636*cfb92d14SAndroid Build Coastguard Worker### service remove \<enterpriseNumber\> \<serviceData\> 3637*cfb92d14SAndroid Build Coastguard Worker 3638*cfb92d14SAndroid Build Coastguard WorkerRemove service from Network Data. 3639*cfb92d14SAndroid Build Coastguard Worker 3640*cfb92d14SAndroid Build Coastguard Worker- enterpriseNumber: IANA enterprise number 3641*cfb92d14SAndroid Build Coastguard Worker- serviceData: hext-encoded binary service data 3642*cfb92d14SAndroid Build Coastguard Worker 3643*cfb92d14SAndroid Build Coastguard Worker```bash 3644*cfb92d14SAndroid Build Coastguard Worker> service remove 44970 112233 3645*cfb92d14SAndroid Build Coastguard WorkerDone 3646*cfb92d14SAndroid Build Coastguard Worker> netdata register 3647*cfb92d14SAndroid Build Coastguard WorkerDone 3648*cfb92d14SAndroid Build Coastguard Worker``` 3649*cfb92d14SAndroid Build Coastguard Worker 3650*cfb92d14SAndroid Build Coastguard Worker### singleton 3651*cfb92d14SAndroid Build Coastguard Worker 3652*cfb92d14SAndroid Build Coastguard WorkerReturn true when there are no other nodes in the network, otherwise return false. 3653*cfb92d14SAndroid Build Coastguard Worker 3654*cfb92d14SAndroid Build Coastguard Worker```bash 3655*cfb92d14SAndroid Build Coastguard Worker> singleton 3656*cfb92d14SAndroid Build Coastguard Workertrue or false 3657*cfb92d14SAndroid Build Coastguard WorkerDone 3658*cfb92d14SAndroid Build Coastguard Worker``` 3659*cfb92d14SAndroid Build Coastguard Worker 3660*cfb92d14SAndroid Build Coastguard Worker### sntp query \[SNTP server IP\] \[SNTP server port\] 3661*cfb92d14SAndroid Build Coastguard Worker 3662*cfb92d14SAndroid Build Coastguard WorkerSend SNTP Query to obtain current unix epoch time (from 1st January 1970). The latter two parameters have following default values: 3663*cfb92d14SAndroid Build Coastguard Worker 3664*cfb92d14SAndroid Build Coastguard Worker- NTP server IP: 2001:4860:4806:8:: (Google IPv6 NTP Server) 3665*cfb92d14SAndroid Build Coastguard Worker- NTP server port: 123 3666*cfb92d14SAndroid Build Coastguard Worker 3667*cfb92d14SAndroid Build Coastguard Worker```bash 3668*cfb92d14SAndroid Build Coastguard Worker> sntp query 3669*cfb92d14SAndroid Build Coastguard Worker> SNTP response - Unix time: 1540894725 (era: 0) 3670*cfb92d14SAndroid Build Coastguard Worker``` 3671*cfb92d14SAndroid Build Coastguard Worker 3672*cfb92d14SAndroid Build Coastguard WorkerYou can use NAT64 of OpenThread Border Router to reach e.g. Google IPv4 NTP Server: 3673*cfb92d14SAndroid Build Coastguard Worker 3674*cfb92d14SAndroid Build Coastguard Worker```bash 3675*cfb92d14SAndroid Build Coastguard Worker> sntp query 64:ff9b::d8ef:2308 3676*cfb92d14SAndroid Build Coastguard Worker> SNTP response - Unix time: 1540898611 (era: 0) 3677*cfb92d14SAndroid Build Coastguard Worker``` 3678*cfb92d14SAndroid Build Coastguard Worker 3679*cfb92d14SAndroid Build Coastguard Worker### state 3680*cfb92d14SAndroid Build Coastguard Worker 3681*cfb92d14SAndroid Build Coastguard WorkerReturn state of current state. 3682*cfb92d14SAndroid Build Coastguard Worker 3683*cfb92d14SAndroid Build Coastguard Worker```bash 3684*cfb92d14SAndroid Build Coastguard Worker> state 3685*cfb92d14SAndroid Build Coastguard Workeroffline, disabled, detached, child, router or leader 3686*cfb92d14SAndroid Build Coastguard WorkerDone 3687*cfb92d14SAndroid Build Coastguard Worker``` 3688*cfb92d14SAndroid Build Coastguard Worker 3689*cfb92d14SAndroid Build Coastguard Worker### state leader 3690*cfb92d14SAndroid Build Coastguard Worker 3691*cfb92d14SAndroid Build Coastguard WorkerBecome a leader and start a new partition 3692*cfb92d14SAndroid Build Coastguard Worker 3693*cfb92d14SAndroid Build Coastguard WorkerIf the device is not attached, this command will force the device to start as the leader of the network. This use case is only intended for testing and demo purposes, and using the API while the device is detached can make a production application non-compliant with the Thread Specification. 3694*cfb92d14SAndroid Build Coastguard Worker 3695*cfb92d14SAndroid Build Coastguard WorkerIf the device is already attached, this API can be used to try to take over as the leader, creating a new partition. For this to work, the local leader weight (`leaderweight`) must be larger than the weight of the current leader (from `leaderdata`). If it is not, error `NotCapable` is outputted to indicate to the caller that they need to adjust the weight. 3696*cfb92d14SAndroid Build Coastguard Worker 3697*cfb92d14SAndroid Build Coastguard WorkerTaking over the leader role in this way is only allowed when triggered by an explicit user action. Using this API without such user action can make a production application non-compliant with the Thread Specification. 3698*cfb92d14SAndroid Build Coastguard Worker 3699*cfb92d14SAndroid Build Coastguard Worker```bash 3700*cfb92d14SAndroid Build Coastguard Worker> leaderdata 3701*cfb92d14SAndroid Build Coastguard WorkerPartition ID: 1886755069 3702*cfb92d14SAndroid Build Coastguard WorkerWeighting: 65 3703*cfb92d14SAndroid Build Coastguard WorkerData Version: 178 3704*cfb92d14SAndroid Build Coastguard WorkerStable Data Version: 48 3705*cfb92d14SAndroid Build Coastguard WorkerLeader Router ID: 59 3706*cfb92d14SAndroid Build Coastguard WorkerDone 3707*cfb92d14SAndroid Build Coastguard Worker 3708*cfb92d14SAndroid Build Coastguard Worker> leaderweight 3709*cfb92d14SAndroid Build Coastguard Worker64 3710*cfb92d14SAndroid Build Coastguard WorkerDone 3711*cfb92d14SAndroid Build Coastguard Worker 3712*cfb92d14SAndroid Build Coastguard Worker> state leader 3713*cfb92d14SAndroid Build Coastguard WorkerError 27: NotCapable 3714*cfb92d14SAndroid Build Coastguard Worker 3715*cfb92d14SAndroid Build Coastguard Worker> leaderweight 66 3716*cfb92d14SAndroid Build Coastguard WorkerDone 3717*cfb92d14SAndroid Build Coastguard Worker 3718*cfb92d14SAndroid Build Coastguard Worker> state leader 3719*cfb92d14SAndroid Build Coastguard WorkerDone 3720*cfb92d14SAndroid Build Coastguard Worker``` 3721*cfb92d14SAndroid Build Coastguard Worker 3722*cfb92d14SAndroid Build Coastguard Worker### state <state> 3723*cfb92d14SAndroid Build Coastguard Worker 3724*cfb92d14SAndroid Build Coastguard WorkerTry to switch to state `detached`, `child`, `router`. 3725*cfb92d14SAndroid Build Coastguard Worker 3726*cfb92d14SAndroid Build Coastguard Worker```bash 3727*cfb92d14SAndroid Build Coastguard Worker> state detached 3728*cfb92d14SAndroid Build Coastguard WorkerDone 3729*cfb92d14SAndroid Build Coastguard Worker``` 3730*cfb92d14SAndroid Build Coastguard Worker 3731*cfb92d14SAndroid Build Coastguard Worker### test tmforiginfilter \[enable|disable\] 3732*cfb92d14SAndroid Build Coastguard Worker 3733*cfb92d14SAndroid Build Coastguard WorkerEnable/disable filter that drops UDP messages sent to the TMF port from untrusted origin. Also get the current state of the filter if no argument is specified. 3734*cfb92d14SAndroid Build Coastguard Worker 3735*cfb92d14SAndroid Build Coastguard WorkerNote: This filter is enabled by default. 3736*cfb92d14SAndroid Build Coastguard Worker 3737*cfb92d14SAndroid Build Coastguard WorkerThis command is intended for testing only. `OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is required for all `test` sub-commands. 3738*cfb92d14SAndroid Build Coastguard Worker 3739*cfb92d14SAndroid Build Coastguard WorkerGet the current state of the filter. 3740*cfb92d14SAndroid Build Coastguard Worker 3741*cfb92d14SAndroid Build Coastguard Worker``` 3742*cfb92d14SAndroid Build Coastguard Worker> test tmforiginfilter 3743*cfb92d14SAndroid Build Coastguard WorkerEnabled 3744*cfb92d14SAndroid Build Coastguard Worker``` 3745*cfb92d14SAndroid Build Coastguard Worker 3746*cfb92d14SAndroid Build Coastguard WorkerEnable or disable the filter. 3747*cfb92d14SAndroid Build Coastguard Worker 3748*cfb92d14SAndroid Build Coastguard Worker``` 3749*cfb92d14SAndroid Build Coastguard Worker> test tmforiginfilter enable 3750*cfb92d14SAndroid Build Coastguard WorkerDone 3751*cfb92d14SAndroid Build Coastguard Worker> 3752*cfb92d14SAndroid Build Coastguard Worker> test tmforiginfilter 3753*cfb92d14SAndroid Build Coastguard WorkerEnabled 3754*cfb92d14SAndroid Build Coastguard Worker> 3755*cfb92d14SAndroid Build Coastguard Worker> test tmforiginfilter disable 3756*cfb92d14SAndroid Build Coastguard WorkerDone 3757*cfb92d14SAndroid Build Coastguard Worker> 3758*cfb92d14SAndroid Build Coastguard Worker> test tmforiginfilter 3759*cfb92d14SAndroid Build Coastguard WorkerDisabled 3760*cfb92d14SAndroid Build Coastguard Worker> 3761*cfb92d14SAndroid Build Coastguard Worker``` 3762*cfb92d14SAndroid Build Coastguard Worker 3763*cfb92d14SAndroid Build Coastguard Worker### thread start 3764*cfb92d14SAndroid Build Coastguard Worker 3765*cfb92d14SAndroid Build Coastguard WorkerEnable Thread protocol operation and attach to a Thread network. 3766*cfb92d14SAndroid Build Coastguard Worker 3767*cfb92d14SAndroid Build Coastguard Worker```bash 3768*cfb92d14SAndroid Build Coastguard Worker> thread start 3769*cfb92d14SAndroid Build Coastguard WorkerDone 3770*cfb92d14SAndroid Build Coastguard Worker``` 3771*cfb92d14SAndroid Build Coastguard Worker 3772*cfb92d14SAndroid Build Coastguard Worker### thread stop 3773*cfb92d14SAndroid Build Coastguard Worker 3774*cfb92d14SAndroid Build Coastguard WorkerDisable Thread protocol operation and detach from a Thread network. 3775*cfb92d14SAndroid Build Coastguard Worker 3776*cfb92d14SAndroid Build Coastguard Worker```bash 3777*cfb92d14SAndroid Build Coastguard Worker> thread stop 3778*cfb92d14SAndroid Build Coastguard WorkerDone 3779*cfb92d14SAndroid Build Coastguard Worker``` 3780*cfb92d14SAndroid Build Coastguard Worker 3781*cfb92d14SAndroid Build Coastguard Worker### thread version 3782*cfb92d14SAndroid Build Coastguard Worker 3783*cfb92d14SAndroid Build Coastguard WorkerGet the Thread Version number. 3784*cfb92d14SAndroid Build Coastguard Worker 3785*cfb92d14SAndroid Build Coastguard Worker```bash 3786*cfb92d14SAndroid Build Coastguard Worker> thread version 3787*cfb92d14SAndroid Build Coastguard Worker2 3788*cfb92d14SAndroid Build Coastguard WorkerDone 3789*cfb92d14SAndroid Build Coastguard Worker``` 3790*cfb92d14SAndroid Build Coastguard Worker 3791*cfb92d14SAndroid Build Coastguard Worker### timeinqueue 3792*cfb92d14SAndroid Build Coastguard Worker 3793*cfb92d14SAndroid Build Coastguard WorkerPrint the tx queue time-in-queue histogram. 3794*cfb92d14SAndroid Build Coastguard Worker 3795*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_TX_QUEUE_STATISTICS_ENABLE`. 3796*cfb92d14SAndroid Build Coastguard Worker 3797*cfb92d14SAndroid Build Coastguard WorkerThe time-in-queue is tracked for direct transmissions only and is measured as the duration from when a message is added to the transmit queue until it is passed to the MAC layer for transmission or dropped. 3798*cfb92d14SAndroid Build Coastguard Worker 3799*cfb92d14SAndroid Build Coastguard WorkerEach table row shows min and max time-in-queue (in milliseconds) followed by number of messages with time-in-queue within the specified min-max range. The histogram information is collected since the OpenThread instance was initialized or since the last time statistics collection was reset by the `timeinqueue reset` command. 3800*cfb92d14SAndroid Build Coastguard Worker 3801*cfb92d14SAndroid Build Coastguard WorkerThe collected statistics can be reset by `timeinqueue reset`. 3802*cfb92d14SAndroid Build Coastguard Worker 3803*cfb92d14SAndroid Build Coastguard Worker```bash 3804*cfb92d14SAndroid Build Coastguard Worker> timeinqueue 3805*cfb92d14SAndroid Build Coastguard Worker| Min | Max |Msg Count| 3806*cfb92d14SAndroid Build Coastguard Worker+------+------+---------+ 3807*cfb92d14SAndroid Build Coastguard Worker| 0 | 9 | 1537 | 3808*cfb92d14SAndroid Build Coastguard Worker| 10 | 19 | 156 | 3809*cfb92d14SAndroid Build Coastguard Worker| 20 | 29 | 57 | 3810*cfb92d14SAndroid Build Coastguard Worker| 30 | 39 | 108 | 3811*cfb92d14SAndroid Build Coastguard Worker| 40 | 49 | 60 | 3812*cfb92d14SAndroid Build Coastguard Worker| 50 | 59 | 76 | 3813*cfb92d14SAndroid Build Coastguard Worker| 60 | 69 | 88 | 3814*cfb92d14SAndroid Build Coastguard Worker| 70 | 79 | 51 | 3815*cfb92d14SAndroid Build Coastguard Worker| 80 | 89 | 86 | 3816*cfb92d14SAndroid Build Coastguard Worker| 90 | 99 | 45 | 3817*cfb92d14SAndroid Build Coastguard Worker| 100 | 109 | 43 | 3818*cfb92d14SAndroid Build Coastguard Worker| 110 | 119 | 44 | 3819*cfb92d14SAndroid Build Coastguard Worker| 120 | 129 | 38 | 3820*cfb92d14SAndroid Build Coastguard Worker| 130 | 139 | 44 | 3821*cfb92d14SAndroid Build Coastguard Worker| 140 | 149 | 35 | 3822*cfb92d14SAndroid Build Coastguard Worker| 150 | 159 | 41 | 3823*cfb92d14SAndroid Build Coastguard Worker| 160 | 169 | 34 | 3824*cfb92d14SAndroid Build Coastguard Worker| 170 | 179 | 13 | 3825*cfb92d14SAndroid Build Coastguard Worker| 180 | 189 | 24 | 3826*cfb92d14SAndroid Build Coastguard Worker| 190 | 199 | 3 | 3827*cfb92d14SAndroid Build Coastguard Worker| 200 | 209 | 0 | 3828*cfb92d14SAndroid Build Coastguard Worker| 210 | 219 | 0 | 3829*cfb92d14SAndroid Build Coastguard Worker| 220 | 229 | 2 | 3830*cfb92d14SAndroid Build Coastguard Worker| 230 | 239 | 0 | 3831*cfb92d14SAndroid Build Coastguard Worker| 240 | 249 | 0 | 3832*cfb92d14SAndroid Build Coastguard Worker| 250 | 259 | 0 | 3833*cfb92d14SAndroid Build Coastguard Worker| 260 | 269 | 0 | 3834*cfb92d14SAndroid Build Coastguard Worker| 270 | 279 | 0 | 3835*cfb92d14SAndroid Build Coastguard Worker| 280 | 289 | 0 | 3836*cfb92d14SAndroid Build Coastguard Worker| 290 | 299 | 1 | 3837*cfb92d14SAndroid Build Coastguard Worker| 300 | 309 | 0 | 3838*cfb92d14SAndroid Build Coastguard Worker| 310 | 319 | 0 | 3839*cfb92d14SAndroid Build Coastguard Worker| 320 | 329 | 0 | 3840*cfb92d14SAndroid Build Coastguard Worker| 330 | 339 | 0 | 3841*cfb92d14SAndroid Build Coastguard Worker| 340 | 349 | 0 | 3842*cfb92d14SAndroid Build Coastguard Worker| 350 | 359 | 0 | 3843*cfb92d14SAndroid Build Coastguard Worker| 360 | 369 | 0 | 3844*cfb92d14SAndroid Build Coastguard Worker| 370 | 379 | 0 | 3845*cfb92d14SAndroid Build Coastguard Worker| 380 | 389 | 0 | 3846*cfb92d14SAndroid Build Coastguard Worker| 390 | 399 | 0 | 3847*cfb92d14SAndroid Build Coastguard Worker| 400 | 409 | 0 | 3848*cfb92d14SAndroid Build Coastguard Worker| 410 | 419 | 0 | 3849*cfb92d14SAndroid Build Coastguard Worker| 420 | 429 | 0 | 3850*cfb92d14SAndroid Build Coastguard Worker| 430 | 439 | 0 | 3851*cfb92d14SAndroid Build Coastguard Worker| 440 | 449 | 0 | 3852*cfb92d14SAndroid Build Coastguard Worker| 450 | 459 | 0 | 3853*cfb92d14SAndroid Build Coastguard Worker| 460 | 469 | 0 | 3854*cfb92d14SAndroid Build Coastguard Worker| 470 | 479 | 0 | 3855*cfb92d14SAndroid Build Coastguard Worker| 480 | 489 | 0 | 3856*cfb92d14SAndroid Build Coastguard Worker| 490 | inf | 0 | 3857*cfb92d14SAndroid Build Coastguard WorkerDone 3858*cfb92d14SAndroid Build Coastguard Worker``` 3859*cfb92d14SAndroid Build Coastguard Worker 3860*cfb92d14SAndroid Build Coastguard Worker### timeinqueue max 3861*cfb92d14SAndroid Build Coastguard Worker 3862*cfb92d14SAndroid Build Coastguard WorkerPrint the maximum observed time-in-queue in milliseconds. 3863*cfb92d14SAndroid Build Coastguard Worker 3864*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_TX_QUEUE_STATISTICS_ENABLE`. 3865*cfb92d14SAndroid Build Coastguard Worker 3866*cfb92d14SAndroid Build Coastguard WorkerThe time-in-queue is tracked for direct transmissions only and is measured as the duration from when a message is added to the transmit queue until it is passed to the MAC layer for transmission or dropped. 3867*cfb92d14SAndroid Build Coastguard Worker 3868*cfb92d14SAndroid Build Coastguard Worker```bash 3869*cfb92d14SAndroid Build Coastguard Worker> timeinqueue max 3870*cfb92d14SAndroid Build Coastguard Worker291 3871*cfb92d14SAndroid Build Coastguard Worker``` 3872*cfb92d14SAndroid Build Coastguard Worker 3873*cfb92d14SAndroid Build Coastguard Worker### timeinqueue reset 3874*cfb92d14SAndroid Build Coastguard Worker 3875*cfb92d14SAndroid Build Coastguard WorkerReset the TX queue time-in-queue statistics. 3876*cfb92d14SAndroid Build Coastguard Worker 3877*cfb92d14SAndroid Build Coastguard Worker```bash 3878*cfb92d14SAndroid Build Coastguard Worker> timeinqueue reset 3879*cfb92d14SAndroid Build Coastguard WorkerDone 3880*cfb92d14SAndroid Build Coastguard Worker``` 3881*cfb92d14SAndroid Build Coastguard Worker 3882*cfb92d14SAndroid Build Coastguard Worker### trel 3883*cfb92d14SAndroid Build Coastguard Worker 3884*cfb92d14SAndroid Build Coastguard WorkerIndicate whether TREL radio operation is enabled or not. 3885*cfb92d14SAndroid Build Coastguard Worker 3886*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE` is required for all `trel` sub-commands. 3887*cfb92d14SAndroid Build Coastguard Worker 3888*cfb92d14SAndroid Build Coastguard Worker```bash 3889*cfb92d14SAndroid Build Coastguard Worker> trel 3890*cfb92d14SAndroid Build Coastguard WorkerEnabled 3891*cfb92d14SAndroid Build Coastguard WorkerDone 3892*cfb92d14SAndroid Build Coastguard Worker``` 3893*cfb92d14SAndroid Build Coastguard Worker 3894*cfb92d14SAndroid Build Coastguard Worker### trel enable 3895*cfb92d14SAndroid Build Coastguard Worker 3896*cfb92d14SAndroid Build Coastguard WorkerEnable TREL operation. 3897*cfb92d14SAndroid Build Coastguard Worker 3898*cfb92d14SAndroid Build Coastguard Worker```bash 3899*cfb92d14SAndroid Build Coastguard Worker> trel enable 3900*cfb92d14SAndroid Build Coastguard WorkerDone 3901*cfb92d14SAndroid Build Coastguard Worker``` 3902*cfb92d14SAndroid Build Coastguard Worker 3903*cfb92d14SAndroid Build Coastguard Worker### trel disable 3904*cfb92d14SAndroid Build Coastguard Worker 3905*cfb92d14SAndroid Build Coastguard WorkerDisable TREL operation. 3906*cfb92d14SAndroid Build Coastguard Worker 3907*cfb92d14SAndroid Build Coastguard Worker```bash 3908*cfb92d14SAndroid Build Coastguard Worker> trel disable 3909*cfb92d14SAndroid Build Coastguard WorkerDone 3910*cfb92d14SAndroid Build Coastguard Worker``` 3911*cfb92d14SAndroid Build Coastguard Worker 3912*cfb92d14SAndroid Build Coastguard Worker### trel filter 3913*cfb92d14SAndroid Build Coastguard Worker 3914*cfb92d14SAndroid Build Coastguard WorkerIndicate whether TREL filter mode is enabled or not 3915*cfb92d14SAndroid Build Coastguard Worker 3916*cfb92d14SAndroid Build Coastguard WorkerWhen filter mode is enabled, any rx and tx traffic through TREL interface is silently dropped. This is mainly intended for use during testing. 3917*cfb92d14SAndroid Build Coastguard Worker 3918*cfb92d14SAndroid Build Coastguard Worker```bash 3919*cfb92d14SAndroid Build Coastguard Worker> trel filter 3920*cfb92d14SAndroid Build Coastguard WorkerDisabled 3921*cfb92d14SAndroid Build Coastguard WorkerDone 3922*cfb92d14SAndroid Build Coastguard Worker``` 3923*cfb92d14SAndroid Build Coastguard Worker 3924*cfb92d14SAndroid Build Coastguard Worker### trel filter enable 3925*cfb92d14SAndroid Build Coastguard Worker 3926*cfb92d14SAndroid Build Coastguard WorkerEnable TREL filter mode. 3927*cfb92d14SAndroid Build Coastguard Worker 3928*cfb92d14SAndroid Build Coastguard Worker```bash 3929*cfb92d14SAndroid Build Coastguard Worker> trel filter enable 3930*cfb92d14SAndroid Build Coastguard WorkerDone 3931*cfb92d14SAndroid Build Coastguard Worker``` 3932*cfb92d14SAndroid Build Coastguard Worker 3933*cfb92d14SAndroid Build Coastguard Worker### trel filter disable 3934*cfb92d14SAndroid Build Coastguard Worker 3935*cfb92d14SAndroid Build Coastguard WorkerDisable TREL filter mode. 3936*cfb92d14SAndroid Build Coastguard Worker 3937*cfb92d14SAndroid Build Coastguard Worker```bash 3938*cfb92d14SAndroid Build Coastguard Worker> trel filter disable 3939*cfb92d14SAndroid Build Coastguard WorkerDone 3940*cfb92d14SAndroid Build Coastguard Worker``` 3941*cfb92d14SAndroid Build Coastguard Worker 3942*cfb92d14SAndroid Build Coastguard Worker### trel peers [list] 3943*cfb92d14SAndroid Build Coastguard Worker 3944*cfb92d14SAndroid Build Coastguard WorkerGet the TREL peer table in table format or as a list. 3945*cfb92d14SAndroid Build Coastguard Worker 3946*cfb92d14SAndroid Build Coastguard Worker```bash 3947*cfb92d14SAndroid Build Coastguard Worker> trel peers 3948*cfb92d14SAndroid Build Coastguard Worker| No | Ext MAC Address | Ext PAN Id | IPv6 Socket Address | 3949*cfb92d14SAndroid Build Coastguard Worker+-----+------------------+------------------+--------------------------------------------------+ 3950*cfb92d14SAndroid Build Coastguard Worker| 1 | 5e5785ba3a63adb9 | f0d9c001f00d2e43 | [fe80:0:0:0:cc79:2a29:d311:1aea]:9202 | 3951*cfb92d14SAndroid Build Coastguard Worker| 2 | ce792a29d3111aea | dead00beef00cafe | [fe80:0:0:0:5c57:85ba:3a63:adb9]:9203 | 3952*cfb92d14SAndroid Build Coastguard WorkerDone 3953*cfb92d14SAndroid Build Coastguard Worker 3954*cfb92d14SAndroid Build Coastguard Worker> trel peers list 3955*cfb92d14SAndroid Build Coastguard Worker001 ExtAddr:5e5785ba3a63adb9 ExtPanId:f0d9c001f00d2e43 SockAddr:[fe80:0:0:0:cc79:2a29:d311:1aea]:9202 3956*cfb92d14SAndroid Build Coastguard Worker002 ExtAddr:ce792a29d3111aea ExtPanId:dead00beef00cafe SockAddr:[fe80:0:0:0:5c57:85ba:3a63:adb9]:9203 3957*cfb92d14SAndroid Build Coastguard WorkerDone 3958*cfb92d14SAndroid Build Coastguard Worker``` 3959*cfb92d14SAndroid Build Coastguard Worker 3960*cfb92d14SAndroid Build Coastguard Worker### trel port 3961*cfb92d14SAndroid Build Coastguard Worker 3962*cfb92d14SAndroid Build Coastguard WorkerGet the TREL UDP port number. 3963*cfb92d14SAndroid Build Coastguard Worker 3964*cfb92d14SAndroid Build Coastguard Worker```bash 3965*cfb92d14SAndroid Build Coastguard Worker> trel port 3966*cfb92d14SAndroid Build Coastguard Worker49154 3967*cfb92d14SAndroid Build Coastguard WorkerDone 3968*cfb92d14SAndroid Build Coastguard Worker``` 3969*cfb92d14SAndroid Build Coastguard Worker 3970*cfb92d14SAndroid Build Coastguard Worker### tvcheck enable 3971*cfb92d14SAndroid Build Coastguard Worker 3972*cfb92d14SAndroid Build Coastguard WorkerEnable thread version check when upgrading to router or leader. 3973*cfb92d14SAndroid Build Coastguard Worker 3974*cfb92d14SAndroid Build Coastguard WorkerNote: Thread version check is enabled by default. 3975*cfb92d14SAndroid Build Coastguard Worker 3976*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is required. 3977*cfb92d14SAndroid Build Coastguard Worker 3978*cfb92d14SAndroid Build Coastguard Worker```bash 3979*cfb92d14SAndroid Build Coastguard Worker> tvcheck enable 3980*cfb92d14SAndroid Build Coastguard WorkerDone 3981*cfb92d14SAndroid Build Coastguard Worker``` 3982*cfb92d14SAndroid Build Coastguard Worker 3983*cfb92d14SAndroid Build Coastguard Worker### tvcheck disable 3984*cfb92d14SAndroid Build Coastguard Worker 3985*cfb92d14SAndroid Build Coastguard WorkerDisable thread version check when upgrading to router or leader. 3986*cfb92d14SAndroid Build Coastguard Worker 3987*cfb92d14SAndroid Build Coastguard WorkerNote: Thread version check is enabled by default. 3988*cfb92d14SAndroid Build Coastguard Worker 3989*cfb92d14SAndroid Build Coastguard Worker`OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is required. 3990*cfb92d14SAndroid Build Coastguard Worker 3991*cfb92d14SAndroid Build Coastguard Worker```bash 3992*cfb92d14SAndroid Build Coastguard Worker> tvcheck disable 3993*cfb92d14SAndroid Build Coastguard WorkerDone 3994*cfb92d14SAndroid Build Coastguard Worker``` 3995*cfb92d14SAndroid Build Coastguard Worker 3996*cfb92d14SAndroid Build Coastguard Worker### txpower 3997*cfb92d14SAndroid Build Coastguard Worker 3998*cfb92d14SAndroid Build Coastguard WorkerGet the transmit power in dBm. 3999*cfb92d14SAndroid Build Coastguard Worker 4000*cfb92d14SAndroid Build Coastguard Worker```bash 4001*cfb92d14SAndroid Build Coastguard Worker> txpower 4002*cfb92d14SAndroid Build Coastguard Worker-10 dBm 4003*cfb92d14SAndroid Build Coastguard WorkerDone 4004*cfb92d14SAndroid Build Coastguard Worker``` 4005*cfb92d14SAndroid Build Coastguard Worker 4006*cfb92d14SAndroid Build Coastguard Worker### txpower \<txpower\> 4007*cfb92d14SAndroid Build Coastguard Worker 4008*cfb92d14SAndroid Build Coastguard WorkerSet the transmit power in dBm. 4009*cfb92d14SAndroid Build Coastguard Worker 4010*cfb92d14SAndroid Build Coastguard Worker```bash 4011*cfb92d14SAndroid Build Coastguard Worker> txpower -10 4012*cfb92d14SAndroid Build Coastguard WorkerDone 4013*cfb92d14SAndroid Build Coastguard Worker``` 4014*cfb92d14SAndroid Build Coastguard Worker 4015*cfb92d14SAndroid Build Coastguard Worker### unsecureport add \<port\> 4016*cfb92d14SAndroid Build Coastguard Worker 4017*cfb92d14SAndroid Build Coastguard WorkerAdd a port to the allowed unsecured port list. 4018*cfb92d14SAndroid Build Coastguard Worker 4019*cfb92d14SAndroid Build Coastguard Worker```bash 4020*cfb92d14SAndroid Build Coastguard Worker> unsecureport add 1234 4021*cfb92d14SAndroid Build Coastguard WorkerDone 4022*cfb92d14SAndroid Build Coastguard Worker``` 4023*cfb92d14SAndroid Build Coastguard Worker 4024*cfb92d14SAndroid Build Coastguard Worker### unsecureport remove \<port\> 4025*cfb92d14SAndroid Build Coastguard Worker 4026*cfb92d14SAndroid Build Coastguard WorkerRemove a port from the allowed unsecured port list. 4027*cfb92d14SAndroid Build Coastguard Worker 4028*cfb92d14SAndroid Build Coastguard Worker```bash 4029*cfb92d14SAndroid Build Coastguard Worker> unsecureport remove 1234 4030*cfb92d14SAndroid Build Coastguard WorkerDone 4031*cfb92d14SAndroid Build Coastguard Worker``` 4032*cfb92d14SAndroid Build Coastguard Worker 4033*cfb92d14SAndroid Build Coastguard Worker### unsecureport remove all 4034*cfb92d14SAndroid Build Coastguard Worker 4035*cfb92d14SAndroid Build Coastguard WorkerRemove all ports from the allowed unsecured port list. 4036*cfb92d14SAndroid Build Coastguard Worker 4037*cfb92d14SAndroid Build Coastguard Worker```bash 4038*cfb92d14SAndroid Build Coastguard Worker> unsecureport remove all 4039*cfb92d14SAndroid Build Coastguard WorkerDone 4040*cfb92d14SAndroid Build Coastguard Worker``` 4041*cfb92d14SAndroid Build Coastguard Worker 4042*cfb92d14SAndroid Build Coastguard Worker### unsecureport get 4043*cfb92d14SAndroid Build Coastguard Worker 4044*cfb92d14SAndroid Build Coastguard WorkerPrint all ports from the allowed unsecured port list. 4045*cfb92d14SAndroid Build Coastguard Worker 4046*cfb92d14SAndroid Build Coastguard Worker```bash 4047*cfb92d14SAndroid Build Coastguard Worker> unsecureport get 4048*cfb92d14SAndroid Build Coastguard Worker1234 4049*cfb92d14SAndroid Build Coastguard WorkerDone 4050*cfb92d14SAndroid Build Coastguard Worker``` 4051*cfb92d14SAndroid Build Coastguard Worker 4052*cfb92d14SAndroid Build Coastguard Worker### uptime 4053*cfb92d14SAndroid Build Coastguard Worker 4054*cfb92d14SAndroid Build Coastguard WorkerThis command requires `OPENTHREAD_CONFIG_UPTIME_ENABLE` to be enabled. 4055*cfb92d14SAndroid Build Coastguard Worker 4056*cfb92d14SAndroid Build Coastguard WorkerPrint the OpenThread stack uptime (duration since OpenThread stack initialization). 4057*cfb92d14SAndroid Build Coastguard Worker 4058*cfb92d14SAndroid Build Coastguard Worker```bash 4059*cfb92d14SAndroid Build Coastguard Worker> uptime 4060*cfb92d14SAndroid Build Coastguard Worker12:46:35.469 4061*cfb92d14SAndroid Build Coastguard WorkerDone 4062*cfb92d14SAndroid Build Coastguard Worker> 4063*cfb92d14SAndroid Build Coastguard Worker``` 4064*cfb92d14SAndroid Build Coastguard Worker 4065*cfb92d14SAndroid Build Coastguard Worker### uptime ms 4066*cfb92d14SAndroid Build Coastguard Worker 4067*cfb92d14SAndroid Build Coastguard WorkerThis command requires `OPENTHREAD_CONFIG_UPTIME_ENABLE` to be enabled. 4068*cfb92d14SAndroid Build Coastguard Worker 4069*cfb92d14SAndroid Build Coastguard WorkerPrint the OpenThread stack uptime in msec. 4070*cfb92d14SAndroid Build Coastguard Worker 4071*cfb92d14SAndroid Build Coastguard Worker```bash 4072*cfb92d14SAndroid Build Coastguard Worker> uptime ms 4073*cfb92d14SAndroid Build Coastguard Worker426238 4074*cfb92d14SAndroid Build Coastguard WorkerDone 4075*cfb92d14SAndroid Build Coastguard Worker> 4076*cfb92d14SAndroid Build Coastguard Worker``` 4077*cfb92d14SAndroid Build Coastguard Worker 4078*cfb92d14SAndroid Build Coastguard Worker### vendor name 4079*cfb92d14SAndroid Build Coastguard Worker 4080*cfb92d14SAndroid Build Coastguard WorkerGet the vendor name. 4081*cfb92d14SAndroid Build Coastguard Worker 4082*cfb92d14SAndroid Build Coastguard Worker```bash 4083*cfb92d14SAndroid Build Coastguard Worker> vendor name 4084*cfb92d14SAndroid Build Coastguard Workernest 4085*cfb92d14SAndroid Build Coastguard WorkerDone 4086*cfb92d14SAndroid Build Coastguard Worker``` 4087*cfb92d14SAndroid Build Coastguard Worker 4088*cfb92d14SAndroid Build Coastguard WorkerSet the vendor name (requires `OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE`). 4089*cfb92d14SAndroid Build Coastguard Worker 4090*cfb92d14SAndroid Build Coastguard Worker```bash 4091*cfb92d14SAndroid Build Coastguard Worker> vendor name nest 4092*cfb92d14SAndroid Build Coastguard WorkerDone 4093*cfb92d14SAndroid Build Coastguard Worker``` 4094*cfb92d14SAndroid Build Coastguard Worker 4095*cfb92d14SAndroid Build Coastguard Worker### vendor model 4096*cfb92d14SAndroid Build Coastguard Worker 4097*cfb92d14SAndroid Build Coastguard WorkerGet the vendor model. 4098*cfb92d14SAndroid Build Coastguard Worker 4099*cfb92d14SAndroid Build Coastguard Worker```bash 4100*cfb92d14SAndroid Build Coastguard Worker> vendor model 4101*cfb92d14SAndroid Build Coastguard WorkerHub Max 4102*cfb92d14SAndroid Build Coastguard WorkerDone 4103*cfb92d14SAndroid Build Coastguard Worker``` 4104*cfb92d14SAndroid Build Coastguard Worker 4105*cfb92d14SAndroid Build Coastguard WorkerSet the vendor model (requires `OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE`). 4106*cfb92d14SAndroid Build Coastguard Worker 4107*cfb92d14SAndroid Build Coastguard Worker```bash 4108*cfb92d14SAndroid Build Coastguard Worker> vendor model Hub\ Max 4109*cfb92d14SAndroid Build Coastguard WorkerDone 4110*cfb92d14SAndroid Build Coastguard Worker``` 4111*cfb92d14SAndroid Build Coastguard Worker 4112*cfb92d14SAndroid Build Coastguard Worker### vendor swversion 4113*cfb92d14SAndroid Build Coastguard Worker 4114*cfb92d14SAndroid Build Coastguard WorkerGet the vendor SW version. 4115*cfb92d14SAndroid Build Coastguard Worker 4116*cfb92d14SAndroid Build Coastguard Worker```bash 4117*cfb92d14SAndroid Build Coastguard Worker> vendor swversion 4118*cfb92d14SAndroid Build Coastguard WorkerMarble3.5.1 4119*cfb92d14SAndroid Build Coastguard WorkerDone 4120*cfb92d14SAndroid Build Coastguard Worker``` 4121*cfb92d14SAndroid Build Coastguard Worker 4122*cfb92d14SAndroid Build Coastguard WorkerSet the vendor SW version (requires `OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE`). 4123*cfb92d14SAndroid Build Coastguard Worker 4124*cfb92d14SAndroid Build Coastguard Worker```bash 4125*cfb92d14SAndroid Build Coastguard Worker> vendor swversion Marble3.5.1 4126*cfb92d14SAndroid Build Coastguard WorkerDone 4127*cfb92d14SAndroid Build Coastguard Worker``` 4128*cfb92d14SAndroid Build Coastguard Worker 4129*cfb92d14SAndroid Build Coastguard Worker### verhoeff calculate 4130*cfb92d14SAndroid Build Coastguard Worker 4131*cfb92d14SAndroid Build Coastguard WorkerCalculates the Verhoeff checksum for a given decimal string. 4132*cfb92d14SAndroid Build Coastguard Worker 4133*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE`. 4134*cfb92d14SAndroid Build Coastguard Worker 4135*cfb92d14SAndroid Build Coastguard WorkerThe input string MUST consist of characters in `['0'-'9']`. 4136*cfb92d14SAndroid Build Coastguard Worker 4137*cfb92d14SAndroid Build Coastguard Worker```bash 4138*cfb92d14SAndroid Build Coastguard Worker> verhoeff calculate 30731842 4139*cfb92d14SAndroid Build Coastguard Worker1 4140*cfb92d14SAndroid Build Coastguard WorkerDone 4141*cfb92d14SAndroid Build Coastguard Worker``` 4142*cfb92d14SAndroid Build Coastguard Worker 4143*cfb92d14SAndroid Build Coastguard Worker### verhoeff validate 4144*cfb92d14SAndroid Build Coastguard Worker 4145*cfb92d14SAndroid Build Coastguard WorkerValidates the Verhoeff checksum for a given decimal string. 4146*cfb92d14SAndroid Build Coastguard Worker 4147*cfb92d14SAndroid Build Coastguard WorkerRequires `OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE`. 4148*cfb92d14SAndroid Build Coastguard Worker 4149*cfb92d14SAndroid Build Coastguard WorkerThe input string MUST consist of characters in `['0'-'9']`. The last digit is treated as checksum. 4150*cfb92d14SAndroid Build Coastguard Worker 4151*cfb92d14SAndroid Build Coastguard Worker```bash 4152*cfb92d14SAndroid Build Coastguard Worker> verhoeff validate 307318421 4153*cfb92d14SAndroid Build Coastguard WorkerDone 4154*cfb92d14SAndroid Build Coastguard Worker> verhoeff validate 307318425 4155*cfb92d14SAndroid Build Coastguard WorkerError 1: Failed 4156*cfb92d14SAndroid Build Coastguard Worker``` 4157*cfb92d14SAndroid Build Coastguard Worker 4158*cfb92d14SAndroid Build Coastguard Worker### version 4159*cfb92d14SAndroid Build Coastguard Worker 4160*cfb92d14SAndroid Build Coastguard WorkerPrint the build version information. 4161*cfb92d14SAndroid Build Coastguard Worker 4162*cfb92d14SAndroid Build Coastguard Worker```bash 4163*cfb92d14SAndroid Build Coastguard Worker> version 4164*cfb92d14SAndroid Build Coastguard WorkerOPENTHREAD/gf4f2f04; Jul 1 2016 17:00:09 4165*cfb92d14SAndroid Build Coastguard WorkerDone 4166*cfb92d14SAndroid Build Coastguard Worker``` 4167*cfb92d14SAndroid Build Coastguard Worker 4168*cfb92d14SAndroid Build Coastguard Worker### version api 4169*cfb92d14SAndroid Build Coastguard Worker 4170*cfb92d14SAndroid Build Coastguard WorkerPrint API version number. 4171*cfb92d14SAndroid Build Coastguard Worker 4172*cfb92d14SAndroid Build Coastguard Worker```bash 4173*cfb92d14SAndroid Build Coastguard Worker> version api 4174*cfb92d14SAndroid Build Coastguard Worker28 4175*cfb92d14SAndroid Build Coastguard WorkerDone 4176*cfb92d14SAndroid Build Coastguard Worker``` 4177*cfb92d14SAndroid Build Coastguard Worker 4178*cfb92d14SAndroid Build Coastguard Worker### mac retries direct 4179*cfb92d14SAndroid Build Coastguard Worker 4180*cfb92d14SAndroid Build Coastguard WorkerGet the number of direct TX retries on the MAC layer. 4181*cfb92d14SAndroid Build Coastguard Worker 4182*cfb92d14SAndroid Build Coastguard Worker```bash 4183*cfb92d14SAndroid Build Coastguard Worker> mac retries direct 4184*cfb92d14SAndroid Build Coastguard Worker3 4185*cfb92d14SAndroid Build Coastguard WorkerDone 4186*cfb92d14SAndroid Build Coastguard Worker``` 4187*cfb92d14SAndroid Build Coastguard Worker 4188*cfb92d14SAndroid Build Coastguard Worker### mac retries direct \<number\> 4189*cfb92d14SAndroid Build Coastguard Worker 4190*cfb92d14SAndroid Build Coastguard WorkerSet the number of direct TX retries on the MAC layer. 4191*cfb92d14SAndroid Build Coastguard Worker 4192*cfb92d14SAndroid Build Coastguard Worker```bash 4193*cfb92d14SAndroid Build Coastguard Worker> mac retries direct 5 4194*cfb92d14SAndroid Build Coastguard WorkerDone 4195*cfb92d14SAndroid Build Coastguard Worker``` 4196*cfb92d14SAndroid Build Coastguard Worker 4197*cfb92d14SAndroid Build Coastguard Worker### mac retries indirect 4198*cfb92d14SAndroid Build Coastguard Worker 4199*cfb92d14SAndroid Build Coastguard WorkerGet the number of indirect TX retries on the MAC layer. 4200*cfb92d14SAndroid Build Coastguard Worker 4201*cfb92d14SAndroid Build Coastguard Worker```bash 4202*cfb92d14SAndroid Build Coastguard Worker> mac retries indirect 4203*cfb92d14SAndroid Build Coastguard Worker3 4204*cfb92d14SAndroid Build Coastguard WorkerDone 4205*cfb92d14SAndroid Build Coastguard Worker``` 4206*cfb92d14SAndroid Build Coastguard Worker 4207*cfb92d14SAndroid Build Coastguard Worker### mac retries indirect \<number\> 4208*cfb92d14SAndroid Build Coastguard Worker 4209*cfb92d14SAndroid Build Coastguard WorkerSet the number of indirect TX retries on the MAC layer. 4210*cfb92d14SAndroid Build Coastguard Worker 4211*cfb92d14SAndroid Build Coastguard Worker```bash 4212*cfb92d14SAndroid Build Coastguard Worker> mac retries indirect 5 4213*cfb92d14SAndroid Build Coastguard WorkerDone 4214*cfb92d14SAndroid Build Coastguard Worker``` 4215*cfb92d14SAndroid Build Coastguard Worker 4216*cfb92d14SAndroid Build Coastguard Worker### mac send \<op\> 4217*cfb92d14SAndroid Build Coastguard Worker 4218*cfb92d14SAndroid Build Coastguard WorkerInstruct an Rx-Off-When-Idle device to send a mac frame to its parent. The mac frame could be either a mac data request or an empty mac data frame. Use `datarequest` to send a mac data request and `data` to send an empty mac data. This feature is for certification, it can only be used when `OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE` is enabled. 4219*cfb92d14SAndroid Build Coastguard Worker 4220*cfb92d14SAndroid Build Coastguard Worker```bash 4221*cfb92d14SAndroid Build Coastguard Worker> mac send datarequest 4222*cfb92d14SAndroid Build Coastguard WorkerDone 4223*cfb92d14SAndroid Build Coastguard Worker``` 4224*cfb92d14SAndroid Build Coastguard Worker 4225*cfb92d14SAndroid Build Coastguard Worker```bash 4226*cfb92d14SAndroid Build Coastguard Worker> mac send emptydata 4227*cfb92d14SAndroid Build Coastguard WorkerDone 4228*cfb92d14SAndroid Build Coastguard Worker``` 4229*cfb92d14SAndroid Build Coastguard Worker 4230*cfb92d14SAndroid Build Coastguard Worker### macfilter 4231*cfb92d14SAndroid Build Coastguard Worker 4232*cfb92d14SAndroid Build Coastguard WorkerList the macfilter status, including address and received signal strength filter settings. 4233*cfb92d14SAndroid Build Coastguard Worker 4234*cfb92d14SAndroid Build Coastguard Worker```bash 4235*cfb92d14SAndroid Build Coastguard Worker> macfilter 4236*cfb92d14SAndroid Build Coastguard WorkerAddress Mode: Allowlist 4237*cfb92d14SAndroid Build Coastguard Worker0f6127e33af6b403 : rss -95 (lqi 1) 4238*cfb92d14SAndroid Build Coastguard Worker0f6127e33af6b402 4239*cfb92d14SAndroid Build Coastguard WorkerRssIn List: 4240*cfb92d14SAndroid Build Coastguard Worker0f6127e33af6b403 : rss -95 (lqi 1) 4241*cfb92d14SAndroid Build Coastguard WorkerDefault rss: -50 (lqi 3) 4242*cfb92d14SAndroid Build Coastguard WorkerDone 4243*cfb92d14SAndroid Build Coastguard Worker``` 4244*cfb92d14SAndroid Build Coastguard Worker 4245*cfb92d14SAndroid Build Coastguard Worker### macfilter addr 4246*cfb92d14SAndroid Build Coastguard Worker 4247*cfb92d14SAndroid Build Coastguard WorkerList the address filter status. 4248*cfb92d14SAndroid Build Coastguard Worker 4249*cfb92d14SAndroid Build Coastguard Worker```bash 4250*cfb92d14SAndroid Build Coastguard Worker> macfilter addr 4251*cfb92d14SAndroid Build Coastguard WorkerAllowlist 4252*cfb92d14SAndroid Build Coastguard Worker0f6127e33af6b403 : rss -95 (lqi 1) 4253*cfb92d14SAndroid Build Coastguard Worker0f6127e33af6b402 4254*cfb92d14SAndroid Build Coastguard WorkerDone 4255*cfb92d14SAndroid Build Coastguard Worker``` 4256*cfb92d14SAndroid Build Coastguard Worker 4257*cfb92d14SAndroid Build Coastguard Worker### macfilter addr disable 4258*cfb92d14SAndroid Build Coastguard Worker 4259*cfb92d14SAndroid Build Coastguard WorkerDisable address filter mode. 4260*cfb92d14SAndroid Build Coastguard Worker 4261*cfb92d14SAndroid Build Coastguard Worker```bash 4262*cfb92d14SAndroid Build Coastguard Worker> macfilter addr disable 4263*cfb92d14SAndroid Build Coastguard WorkerDone 4264*cfb92d14SAndroid Build Coastguard Worker``` 4265*cfb92d14SAndroid Build Coastguard Worker 4266*cfb92d14SAndroid Build Coastguard Worker### macfilter addr allowlist 4267*cfb92d14SAndroid Build Coastguard Worker 4268*cfb92d14SAndroid Build Coastguard WorkerEnable allowlist address filter mode. 4269*cfb92d14SAndroid Build Coastguard Worker 4270*cfb92d14SAndroid Build Coastguard Worker```bash 4271*cfb92d14SAndroid Build Coastguard Worker> macfilter addr allowlist 4272*cfb92d14SAndroid Build Coastguard WorkerDone 4273*cfb92d14SAndroid Build Coastguard Worker``` 4274*cfb92d14SAndroid Build Coastguard Worker 4275*cfb92d14SAndroid Build Coastguard Worker### macfilter addr denylist 4276*cfb92d14SAndroid Build Coastguard Worker 4277*cfb92d14SAndroid Build Coastguard WorkerEnable denylist address filter mode. 4278*cfb92d14SAndroid Build Coastguard Worker 4279*cfb92d14SAndroid Build Coastguard Worker```bash 4280*cfb92d14SAndroid Build Coastguard Worker> macfilter addr denylist 4281*cfb92d14SAndroid Build Coastguard WorkerDone 4282*cfb92d14SAndroid Build Coastguard Worker``` 4283*cfb92d14SAndroid Build Coastguard Worker 4284*cfb92d14SAndroid Build Coastguard Worker### macfilter addr add \<extaddr\> \[rss\] 4285*cfb92d14SAndroid Build Coastguard Worker 4286*cfb92d14SAndroid Build Coastguard WorkerAdd an IEEE 802.15.4 Extended Address to the address filter, and fixed the received signal strength for the messages from the address if rss is specified. 4287*cfb92d14SAndroid Build Coastguard Worker 4288*cfb92d14SAndroid Build Coastguard Worker```bash 4289*cfb92d14SAndroid Build Coastguard Worker> macfilter addr add 0f6127e33af6b403 -95 4290*cfb92d14SAndroid Build Coastguard WorkerDone 4291*cfb92d14SAndroid Build Coastguard Worker``` 4292*cfb92d14SAndroid Build Coastguard Worker 4293*cfb92d14SAndroid Build Coastguard Worker```bash 4294*cfb92d14SAndroid Build Coastguard Worker> macfilter addr add 0f6127e33af6b402 4295*cfb92d14SAndroid Build Coastguard WorkerDone 4296*cfb92d14SAndroid Build Coastguard Worker``` 4297*cfb92d14SAndroid Build Coastguard Worker 4298*cfb92d14SAndroid Build Coastguard Worker### macfilter addr remove \<extaddr\> 4299*cfb92d14SAndroid Build Coastguard Worker 4300*cfb92d14SAndroid Build Coastguard WorkerRemove the IEEE802.15.4 Extended Address from the address filter. 4301*cfb92d14SAndroid Build Coastguard Worker 4302*cfb92d14SAndroid Build Coastguard Worker```bash 4303*cfb92d14SAndroid Build Coastguard Worker> macfilter addr remove 0f6127e33af6b402 4304*cfb92d14SAndroid Build Coastguard WorkerDone 4305*cfb92d14SAndroid Build Coastguard Worker``` 4306*cfb92d14SAndroid Build Coastguard Worker 4307*cfb92d14SAndroid Build Coastguard Worker### macfilter addr clear 4308*cfb92d14SAndroid Build Coastguard Worker 4309*cfb92d14SAndroid Build Coastguard WorkerClear all the IEEE802.15.4 Extended Addresses from the address filter. 4310*cfb92d14SAndroid Build Coastguard Worker 4311*cfb92d14SAndroid Build Coastguard Worker```bash 4312*cfb92d14SAndroid Build Coastguard Worker> macfilter addr clear 4313*cfb92d14SAndroid Build Coastguard WorkerDone 4314*cfb92d14SAndroid Build Coastguard Worker``` 4315*cfb92d14SAndroid Build Coastguard Worker 4316*cfb92d14SAndroid Build Coastguard Worker### macfilter rss 4317*cfb92d14SAndroid Build Coastguard Worker 4318*cfb92d14SAndroid Build Coastguard WorkerList the rss filter status 4319*cfb92d14SAndroid Build Coastguard Worker 4320*cfb92d14SAndroid Build Coastguard Worker```bash 4321*cfb92d14SAndroid Build Coastguard Worker> macfilter rss 4322*cfb92d14SAndroid Build Coastguard Worker0f6127e33af6b403 : rss -95 (lqi 1) 4323*cfb92d14SAndroid Build Coastguard WorkerDefault rss: -50 (lqi 3) 4324*cfb92d14SAndroid Build Coastguard WorkerDone 4325*cfb92d14SAndroid Build Coastguard Worker``` 4326*cfb92d14SAndroid Build Coastguard Worker 4327*cfb92d14SAndroid Build Coastguard Worker### macfilter rss add \<extaddr\> \<rss\> 4328*cfb92d14SAndroid Build Coastguard Worker 4329*cfb92d14SAndroid Build Coastguard WorkerSet the received signal strength for the messages from the IEEE802.15.4 Extended Address. If extaddr is \*, default received signal strength for all received messages would be set. 4330*cfb92d14SAndroid Build Coastguard Worker 4331*cfb92d14SAndroid Build Coastguard Worker```bash 4332*cfb92d14SAndroid Build Coastguard Worker> macfilter rss add * -50 4333*cfb92d14SAndroid Build Coastguard WorkerDone 4334*cfb92d14SAndroid Build Coastguard Worker``` 4335*cfb92d14SAndroid Build Coastguard Worker 4336*cfb92d14SAndroid Build Coastguard Worker```bash 4337*cfb92d14SAndroid Build Coastguard Worker> macfilter rss add 0f6127e33af6b404 -85 4338*cfb92d14SAndroid Build Coastguard WorkerDone 4339*cfb92d14SAndroid Build Coastguard Worker``` 4340*cfb92d14SAndroid Build Coastguard Worker 4341*cfb92d14SAndroid Build Coastguard Worker### macfilter rss add-lqi \<extaddr\> \<lqi\> 4342*cfb92d14SAndroid Build Coastguard Worker 4343*cfb92d14SAndroid Build Coastguard WorkerSet the received link quality for the messages from the IEEE802.15.4 Extended Address. Valid lqi range [0,3] If extaddr is \*, default received link quality for all received messages would be set. Equivalent with 'filter rss add' with similar usage 4344*cfb92d14SAndroid Build Coastguard Worker 4345*cfb92d14SAndroid Build Coastguard Worker```bash 4346*cfb92d14SAndroid Build Coastguard Worker> macfilter rss add-lqi * 3 4347*cfb92d14SAndroid Build Coastguard WorkerDone 4348*cfb92d14SAndroid Build Coastguard Worker``` 4349*cfb92d14SAndroid Build Coastguard Worker 4350*cfb92d14SAndroid Build Coastguard Worker```bash 4351*cfb92d14SAndroid Build Coastguard Worker> macfilter rss add-lqi 0f6127e33af6b404 2 4352*cfb92d14SAndroid Build Coastguard WorkerDone 4353*cfb92d14SAndroid Build Coastguard Worker``` 4354*cfb92d14SAndroid Build Coastguard Worker 4355*cfb92d14SAndroid Build Coastguard Worker### macfilter rss remove \<extaddr\> 4356*cfb92d14SAndroid Build Coastguard Worker 4357*cfb92d14SAndroid Build Coastguard WorkerRemoves the received signal strength or received link quality setting on the Extended Address. If extaddr is \*, default received signal strength or link quality for all received messages would be unset. 4358*cfb92d14SAndroid Build Coastguard Worker 4359*cfb92d14SAndroid Build Coastguard Worker```bash 4360*cfb92d14SAndroid Build Coastguard Worker> macfilter rss remove * 4361*cfb92d14SAndroid Build Coastguard WorkerDone 4362*cfb92d14SAndroid Build Coastguard Worker``` 4363*cfb92d14SAndroid Build Coastguard Worker 4364*cfb92d14SAndroid Build Coastguard Worker```bash 4365*cfb92d14SAndroid Build Coastguard Worker> macfilter rss remove 0f6127e33af6b404 4366*cfb92d14SAndroid Build Coastguard WorkerDone 4367*cfb92d14SAndroid Build Coastguard Worker``` 4368*cfb92d14SAndroid Build Coastguard Worker 4369*cfb92d14SAndroid Build Coastguard Worker### macfilter rss clear 4370*cfb92d14SAndroid Build Coastguard Worker 4371*cfb92d14SAndroid Build Coastguard WorkerClear all the received signal strength or received link quality settings. 4372*cfb92d14SAndroid Build Coastguard Worker 4373*cfb92d14SAndroid Build Coastguard Worker```bash 4374*cfb92d14SAndroid Build Coastguard Worker> macfilter rss clear 4375*cfb92d14SAndroid Build Coastguard WorkerDone 4376*cfb92d14SAndroid Build Coastguard Worker``` 4377*cfb92d14SAndroid Build Coastguard Worker 4378*cfb92d14SAndroid Build Coastguard Worker### diag 4379*cfb92d14SAndroid Build Coastguard Worker 4380*cfb92d14SAndroid Build Coastguard WorkerFactory Diagnostics module is enabled only when building OpenThread with `OPENTHREAD_CONFIG_DIAG_ENABLE=1` option. Go [diagnostics module][diag] for more information. 4381*cfb92d14SAndroid Build Coastguard Worker 4382*cfb92d14SAndroid Build Coastguard Worker[diag]: ../../src/core/diags/README.md 4383