• Home
  • Raw
  • Download

Lines Matching +full:cli +full:- +full:time +full:- +full:sync

31  *   This file implements the CLI interpreter.
34 #include "cli.hpp"
70 namespace Cli { namespace
202 static_cast<Interpreter *>(aContext)->HandleDiagOutput(aFormat, aArguments); in HandleDiagOutput()
223 * @cli version in Process()
238 * @cli version api in Process()
270 * @cli reset bootloader in Process()
305 if (StringLength(aLine, kMaxLineLength) <= kMaxLineLength - 1) in ProcessLine()
314 // CLI commands. During this, `mCommandIsPending` is `true` in ProcessLine()
382 … error = entry.mCommands[i].mCommand(entry.mContext, Arg::GetArgsLength(aArgs) - 1, args + 1); in ProcessUserCommands()
415 * @cli attachtime
422 …* Prints the current attach time (duration since device was last attached). Requires `OPENTHREAD_C…
451 * @cli ba port in Process()
465 * @cli ba state in Process()
479 * @cli ba sessions in Process()
490 … * * Session lifetime in milliseconds (calculated from the time the session was first established). in Process()
511 * @cli ba id (get,set) in Process()
521 * @cparam ba id [@ca{border-agent-id}] in Process()
522 * Use the optional `border-agent-id` argument to set the Border Agent ID. in Process()
553 * @cli ba ephemeralkey in Process()
569 * @cli ba ephemeralkey (enable, disable) in Process()
587 * @cli ba ephemeralkey start <keystring> [timeout-in-msec] [port] in Process()
592 * @cparam ba ephemeralkey start @ca{keystring} [@ca{timeout-in-msec}] [@ca{port}] in Process()
616 * @cli ba ephemeralkey stop in Process()
629 * @cli ba ephemeralkey port in Process()
643 * @cli ba ephemeralkey callback (enable, disable) in Process()
651 * BorderAgentEphemeralKey callback - state:Started in Process()
652 * BorderAgentEphemeralKey callback - state:Connected in Process()
678 * @cli ba counters in Process()
754 reinterpret_cast<Interpreter *>(aContext)->HandleBorderAgentEphemeralKeyStateChange(); in HandleBorderAgentEphemeralKeyStateChange()
761 …OutputLine("BorderAgentEphemeralKey callback - state:%s", otBorderAgentEphemeralKeyStateToString(s… in HandleBorderAgentEphemeralKeyStateChange()
782 * @cli nat64 (enable,disable) in Process()
799 * @cli nat64 state in Process()
814 * - `Disabled`: NAT64 prefix manager is disabled. in Process()
815 …* - `NotRunning`: NAT64 prefix manager is enabled, but is not running. This could mean that the ro… in Process()
817 …* - `Idle`: NAT64 prefix manager is enabled and is running, but is not publishing a NAT64 prefix. … in Process()
819 * - `Active`: NAT64 prefix manager is enabled, running, and publishing a NAT64 prefix. in Process()
822 * - `Disabled`: NAT64 translator is disabled. in Process()
823 …* - `NotRunning`: NAT64 translator is enabled, but is not translating packets. This could mean tha… in Process()
825 * - `Active`: NAT64 translator is enabled and is translating packets. in Process()
851 * @cli nat64 cidr in Process()
869 * @cli nat64 cidr <cidr> in Process()
884 * @cli nat64 mappings in Process()
888 …* +----------+---------------------------+-----------------------+--------+--------------+--------… in Process()
890 …* +----------+------------+--------------+-----------------------+--------+------+-------+------+-… in Process()
959 * @cli nat64 counters in Process()
963 * +---------------+-------------------------+-------------------------+ in Process()
965 * +---------------+----------+--------------+----------+--------------+ in Process()
971 * +---------------+-------------------------+-------------------------+ in Process()
1075 * @cli domainname
1087 * @cli domainname (set) in Process()
1106 * @cli dua iid in Process()
1123 OutputBytesLine(iid->mFields.m8); in Process()
1127 * @cli dua iid (set,clear) in Process()
1167 * @cli bufferinfo
1172 * max-used: 5
1187 * * `max-used` displays max number of used buffers at the same time since OT stack
1190 * Next, the CLI displays info about different queues used by the OpenThread stack,
1226 OutputLine("max-used: %u", bufferInfo.mMaxUsedBuffers); in Process()
1235 * @cli bufferinfo reset in Process()
1256 * @cli ccathreshold (get,set)
1259 * -75 dBm
1263 * ccathreshold -62
1266 * @cparam ccathreshold [@ca{CCA-threshold-dBm}]
1267 * Use the optional `CCA-threshold-dBm` argument to set the CCA threshold.
1270 * IEEE 802.15.4 - 2015 section 10.1.4.
1305 * @cli test tmforiginfilter in Process()
1324 * from untrusted origin (such as host, CLI or an external IPv6 node) will be in Process()
1337 * @cli tvcheck (enable,disable)
1359 * @cli channel (get,set)
1369 * @cparam channel [@ca{channel-num}]
1370 * Use `channel-num` to set the channel.
1379 * @cli channel supported in Process()
1393 * @cli channel preferred in Process()
1408 * @cli channel monitor in Process()
1413 * threshold: -75 in Process()
1476 * @cli channel monitor start in Process()
1484 * OT CLI sends a boolean value of `true` to #otChannelMonitorSetEnabled. in Process()
1493 * @cli channel monitor stop in Process()
1501 * OT CLI sends a boolean value of `false` to #otChannelMonitorSetEnabled. in Process()
1520 * @cli channel manager in Process()
1527 * supported: { 11-26} in Process()
1528 * favored: { 11-26} in Process()
1569 * @cli channel manager change in Process()
1575 * @cparam channel manager change @ca{channel-num} in Process()
1587 * @cli channel manager select in Process()
1593 * @cparam channel manager select @ca{skip-quality-check} in Process()
1594 * Use a `1` or `0` for the boolean `skip-quality-check`. in Process()
1611 * @cli channel manager auto in Process()
1636 * @cli channel manager autocsl in Process()
1660 * @cli channel manager delay in Process()
1666 * @cparam channel manager delay @ca{delay-seconds} in Process()
1678 * @cli channel manager interval in Process()
1684 * @cparam channel manager interval @ca{interval-seconds} in Process()
1697 * @cli channel manager supported in Process()
1716 * @cli channel manager favored in Process()
1735 * @cli channel manager threshold in Process()
1741 * @cparam channel manager threshold @ca{threshold-percent} in Process()
1742 * Use a hex value for `threshold-percent`. `0` maps to 0% and `0xffff` maps to 100%. in Process()
1786 * @cli child table in Process()
1790 …* +-----+--------+------------+------------+-------+------+-+-+-+---+---+-------+-----------------… in Process()
1843 * @cli child list in Process()
1867 * @cli child (id) in Process()
1879 * RSSI: -20 in Process()
1882 * @cparam child @ca{child-id} in Process()
1911 * @cli childip in Process()
1948 * @cli childip max in Process()
1963 * @cli childip max (set) in Process()
1984 * @cli childmax
1996 * @cli childmax (set) in Process()
2014 * @cli childsupervision checktimeout in Process()
2025 /** @cli childsupervision checktimeout (set) in Process()
2030 * @cparam childsupervision checktimeout @ca{timeout-seconds} in Process()
2037 * @cli childsupervision interval in Process()
2049 * @cli childsupervision interval (set) in Process()
2054 * @cparam childsupervision interval @ca{interval-seconds} in Process()
2077 /** @cli childtimeout
2088 /** @cli childtimeout (set) in Process()
2093 * @cparam childtimeout @ca{timeout-seconds} in Process()
2132 {&otRadioCoexMetrics::mAvgTxRequestToGrantTime, "Average Request To Grant Time"}, in Process()
2143 {&otRadioCoexMetrics::mAvgRxRequestToGrantTime, "Average Request To Grant Time"}, in Process()
2179 * @cli contextreusedelay (get,set)
2225 … Uint64ToString((brCounters->*counter.mPacketsAndBytes).mPackets, uint64StringBuffer)); in OutputBorderRouterCounters()
2226 …OutputLine(" Bytes %s", Uint64ToString((brCounters->*counter.mPacketsAndBytes).mBytes, uint64Strin… in OutputBorderRouterCounters()
2229 OutputLine("RA Rx: %lu", ToUlong(brCounters->mRaRx)); in OutputBorderRouterCounters()
2230 OutputLine("RA TxSuccess: %lu", ToUlong(brCounters->mRaTxSuccess)); in OutputBorderRouterCounters()
2231 OutputLine("RA TxFailed: %lu", ToUlong(brCounters->mRaTxFailure)); in OutputBorderRouterCounters()
2232 OutputLine("RS Rx: %lu", ToUlong(brCounters->mRsRx)); in OutputBorderRouterCounters()
2233 OutputLine("RS TxSuccess: %lu", ToUlong(brCounters->mRsTxSuccess)); in OutputBorderRouterCounters()
2234 OutputLine("RS TxFailed: %lu", ToUlong(brCounters->mRsTxFailure)); in OutputBorderRouterCounters()
2243 * @cli counters in Process()
2265 * @cli counters br in Process()
2290 * @cli counters br reset in Process()
2309 * @cli counters (mac) in Process()
2399 OutputLine("TxTotal: %lu", ToUlong(macCounters->mTxTotal)); in Process()
2403 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
2406 OutputLine("RxTotal: %lu", ToUlong(macCounters->mRxTotal)); in Process()
2410 … OutputLine(kIndentSize, "%s: %lu", counter.mName, ToUlong(macCounters->*counter.mValuePtr)); in Process()
2414 * @cli counters mac reset in Process()
2433 * @cli counters (mle) in Process()
2479 OutputLine("%s: %u", counter.mName, mleCounters->*counter.mValuePtr); in Process()
2497 OutputFormat("Time %s Milli: ", counter.mName); in Process()
2498 OutputUint64Line(mleCounters->*counter.mValuePtr); in Process()
2501 OutputFormat("Time Tracked Milli: "); in Process()
2502 OutputUint64Line(mleCounters->mTrackedTime); in Process()
2507 * @cli counters mle reset in Process()
2526 * @cli counters ip in Process()
2560 OutputLine("%s: %lu", counter.mName, ToUlong(ipCounters->*counter.mValuePtr)); in Process()
2564 * @cli counters ip reset in Process()
2596 * @cli csl in Process()
2618 * @cli csl channel in Process()
2632 * @cli csl period in Process()
2646 * @cli csl timeout in Process()
2674 * @cli delaytimermin in Process()
2689 * @cli delaytimermin (set) in Process()
2716 * @cli detach
2732 * @cli detach async in Process()
2759 static_cast<Interpreter *>(aContext)->HandleDetachGracefullyResult(); in HandleDetachGracefullyResult()
2769 * @cli discover
2773 * +---+------------------+------------------+------+------------------+----+-----+-----+
2774 * | 0 | OpenThread | dead00beef00cafe | ffff | f1d92a82c8d8fe43 | 11 | -20 | 0 |
2791 * @cli discover reqcallback (enable,disable) in Process()
2897 * @cli eidcache
2905 * Returns the EID-to-RLOC cache entries.
2929 * @cli eui64
2959 * @cli extaddr in Process()
2973 * @cli extaddr (set) in Process()
3000 * @cli log level in Process()
3022 * @cli log level (set) in Process()
3041 * @cli log filename in Process()
3072 * @cli extpanid in Process()
3083 OutputBytesLine(otThreadGetExtendedPanId(GetInstancePtr())->m8); in Process()
3086 * @cli extpanid (set) in Process()
3111 * @cli factoryreset
3133 * @cli fake (a,an) in Process()
3138 * @cparam fake /a/an @ca{dst-ipaddr} @ca{target} @ca{meshLocalIid} in Process()
3180 * @cli fem in Process()
3198 * @cli fem lnagain (get) in Process()
3217 * @cli fem lnagain (set) in Process()
3247 * @cli ifconfig in Process()
3273 * @cli ifconfig (up,down) in Process()
3308 * @cli instanceid in Process()
3331 if (aArgs[0] == "-v") in Process()
3338 * @cli ipaddr in Process()
3347 * ipaddr -v in Process()
3354 * @cparam ipaddr [@ca{-v}] in Process()
3355 * Use `-v` to get more verbose information about the address: in Process()
3356 … * - `origin`: can be `thread`, `slaac`, `dhcp6`, `manual` and indicates the origin of the address in Process()
3357 * - `plen`: prefix length in Process()
3358 * - `preferred`: preferred flag (boolean) in Process()
3359 * - `valid`: valid flag (boolean) in Process()
3367 for (const otNetifAddress *addr = unicastAddrs; addr; addr = addr->mNext) in Process()
3369 OutputIp6Address(addr->mAddress); in Process()
3373 …tputFormat(" origin:%s plen:%u preferred:%u valid:%u", AddressOriginToString(addr->mAddressOrigin), in Process()
3374 addr->mPrefixLength, addr->mPreferred, addr->mValid); in Process()
3381 * @cli ipaddr add in Process()
3403 * @cli ipaddr del in Process()
3420 * @cli ipaddr linklocal in Process()
3434 * @cli ipaddr rloc in Process()
3448 * @cli ipaddr mleid in Process()
3475 * @cli ipmaddr in Process()
3489 addr = addr->mNext) in Process()
3491 OutputIp6AddressLine(addr->mAddress); in Process()
3495 * @cli ipmaddr add in Process()
3512 SuccessOrExit(error = aArgs->ParseAsIp6Address(address)); in Process()
3516 while (!(++aArgs)->IsEmpty()); in Process()
3522 * @cli ipmaddr del in Process()
3539 * @cli ipmaddr llatn in Process()
3553 * @cli ipmaddr rlatn in Process()
3580 * @cli keysequence counter in Process()
3592 * @cli keysequence counter (set) in Process()
3604 * @cli keysequence guardtime in Process()
3616 * @cli keysequence guardtime (set) in Process()
3621 * @cparam keysequence guardtime @ca{guardtime-hours} in Process()
3633 * @cli leaderdata
3672 * @cli partitionid in Process()
3689 * @cli partitionid preferred (get,set) in Process()
3715 * @cli leaderweight
3727 * @cli leaderweight (set) in Process()
3745 "external-stable", // (2) OT_POWER_SUPPLY_EXTERNAL_STABLE in Process()
3746 "external-unstable", // (3) OT_POWER_SUPPLY_EXTERNAL_UNSTABLE in Process()
3757 * @cli deviceprops in Process()
3774 OutputLine("PowerSupply : %s", Stringify(props->mPowerSupply, kPowerSupplyStrings)); in Process()
3775 OutputLine("IsBorderRouter : %s", props->mIsBorderRouter ? "yes" : "no"); in Process()
3776 OutputLine("SupportsCcm : %s", props->mSupportsCcm ? "yes" : "no"); in Process()
3777 OutputLine("IsUnstable : %s", props->mIsUnstable ? "yes" : "no"); in Process()
3778 OutputLine("WeightAdjustment : %d", props->mLeaderWeightAdjustment); in Process()
3781 * @cli deviceprops (set) in Process()
3783 * deviceprops battery 0 0 0 -5 in Process()
3792 * WeightAdjustment : -5 in Process()
3796 * `powerSupply`: should be 'battery', 'external', 'external-stable', 'external-unstable'. in Process()
3852 * @cli linkmetricsmgr (enable,disable) in Process()
3869 * @cli linkmetricsmgr show in Process()
3872 * ExtAddr:827aa7f7f63e1234, LinkMargin:80, Rssi:-20 in Process()
3917 * @cli locate in Process()
3944 * @cli locate (set) in Process()
3977 static_cast<Interpreter *>(aContext)->HandleLocateResult(aError, aMeshLocalAddress, aRloc16); in HandleLocateResult()
4007 * @cli pskc in Process()
4023 * @cli pskc (set) in Process()
4038 * @cli pskc -p in Process()
4040 * pskc -p 123456 in Process()
4043 * @cparam pskc -p @ca{passphrase} in Process()
4045 …* Generates the pskc from the passphrase (UTF-8 encoded), together with the current network name a… in Process()
4048 else if (aArgs[0] == "-p") in Process()
4073 * @cli pskcref in Process()
4091 * @cli pskcref (set) in Process()
4120 * @cli mleadvimax
4137 * @cli mliid
4167 * @cli mlr reg
4210 while (aArgs->ParseAsIp6Address(addresses[numAddresses]) == OT_ERROR_NONE) in Process()
4221 if (aArgs->ParseAsUint32(timeout) == OT_ERROR_NONE) in Process()
4227 VerifyOrExit(aArgs->IsEmpty() && (numAddresses > 0), error = OT_ERROR_INVALID_ARGS); in Process()
4246 …static_cast<Interpreter *>(aContext)->HandleMlrRegResult(aError, aMlrStatus, aFailedAddresses, aFa… in HandleMlrRegResult()
4285 * @cli mode (get,set) in Process()
4291 * mode - in Process()
4297 * - `-`: no flags set (rx-off-when-idle, minimal Thread device, stable network data) in Process()
4298 * - `r`: rx-on-when-idle in Process()
4299 * - `d`: Full Thread Device in Process()
4300 * - `n`: Full Network Data in Process()
4302 if (aArgs[0] != "-") in Process()
4333 * @cli multiradio
4372 * @cli multiradio neighbor list in Process()
4404 * @cli multiradio neighbor in Process()
4412 * @cparam multiradio neighbor @ca{ext-address} in Process()
4481 * @cli neighbor table in Process()
4485 * +------+--------+-----+----------+-----------+-+-+-+------------------+ in Process()
4486 * | C | 0xcc01 | 96 | -46 | -46 |1|1|1| 1eb9ba8a6522636b | in Process()
4487 * | R | 0xc800 | 2 | -29 | -29 |1|1|1| 9a91556102c39ddb | in Process()
4488 * | R | 0xf000 | 3 | -28 | -28 |1|1|1| 0ad7ed6beaa6016d | in Process()
4498 * - `R`: RX on when idle in Process()
4499 * - `D`: Full Thread device in Process()
4500 * - `N`: Full network data in Process()
4518 * @cli neighbor list in Process()
4536 * @cli neighbor linkquality in Process()
4540 * +--------+------------------+-------------+-----------+---------+----------+-------+ in Process()
4541 * | 0xe800 | 9e2fa4e1b84f92db | 0.00 % | 0.00 % | -46 | -48 | 1 | in Process()
4542 * | 0xc001 | 0ad7ed6beaa6016d | 4.67 % | 0.08 % | -68 | -72 | 10 | in Process()
4575 * @cli neighbor conntime in Process()
4578 * | RLOC16 | Extended MAC | Last Heard (Age) | Connection Time | in Process()
4579 * +--------+------------------+------------------+------------------+ in Process()
4586 * Prints the connection time and age of neighbors. Information per neighbor: in Process()
4587 * - RLOC16 in Process()
4588 * - Extended MAC in Process()
4589 * - Last Heard (Age): Number of seconds since last heard from neighbor. in Process()
4590 * - Connection Time: Number of seconds since link establishment with neighbor. in Process()
4598 * @cli neighbor conntime list in Process()
4601 * 0x8401 1a28be396a14a318 age:63 conn-time:644 in Process()
4602 * 0x5c00 723ebf0d9eba3264 age:23 conn-time:852 in Process()
4603 * 0xe800 ce53628a1e3f5b3c age:23 conn-time:180 in Process()
4607 * Prints the connection time and age of neighbors. in Process()
4609 * and connection time are both displayed in seconds. in Process()
4622 "Connection Time", in Process()
4648 …OutputLine(" age:%lu conn-time:%lu", ToUlong(neighborInfo.mAge), ToUlong(neighborInfo.mConnectionT… in Process()
4663 * @cli netstat
4667 …* +-------------------------------------------------+---------------------------------------------…
4688 …otUdpSocket *socket = otUdpGetSockets(GetInstancePtr()); socket != nullptr; socket = socket->mNext) in Process()
4690 otIp6SockAddrToString(&socket->mSockName, string, sizeof(string)); in Process()
4691 OutputFormat("| %-47s ", string); in Process()
4692 otIp6SockAddrToString(&socket->mPeerName, string, sizeof(string)); in Process()
4693 OutputLine("| %-47s |", string); in Process()
4729 * @cli service add in Process()
4742 * - enterpriseNumber: IANA enterprise number in Process()
4743 * - serviceData: Hex-encoded binary service data in Process()
4744 * - serverData: Hex-encoded binary server data (empty if not provided) in Process()
4770 * @cli service remove in Process()
4783 * - enterpriseNumber: IANA enterprise number in Process()
4784 * - serviceData: Hex-encoded binary service data in Process()
4807 * @cli networkidtimeout (get,set)
4823 * non-compliant with the Thread Specification.
4838 * @cli networkkey in Process()
4855 * @cli networkkey (key) in Process()
4899 * @cli networkname
4911 * @cli networkname (name) in Process()
4931 * @cli networktime in Process()
4934 * Network Time: 21084154us (synchronized) in Process()
4935 * Time Sync Period: 100s in Process()
4940 * Gets the Thread network time and the time sync parameters. in Process()
4947 uint64_t time; in Process() local
4950 networkTimeStatus = otNetworkTimeGet(GetInstancePtr(), &time); in Process()
4952 OutputFormat("Network Time: "); in Process()
4953 OutputUint64(time); in Process()
4974 OutputLine("Time Sync Period: %us", otNetworkTimeGetSyncPeriod(GetInstancePtr())); in Process()
4978 * @cli networktime (set) in Process()
4985 * Sets the time sync parameters. in Process()
4986 * * `timesyncperiod`: The time synchronization period, in seconds. in Process()
4987 …* * `xtalthreshold`: The XTAL accuracy threshold for a device to become Router-Capable device, i… in Process()
5019 * @cli nexthop in Process()
5023 * +------+------+------+ in Process()
5027 * | 46 | - | - | in Process()
5074 OutputLine("%4s | %4s |", "-", "-"); in Process()
5079 * @cli nexthop (get) in Process()
5117 * @cli panid in Process()
5131 * @cli panid (panid) in Process()
5152 * @cli parent in Process()
5169 …* cached information is necessary to support the Thread Test Harness - Test Scenario 8.2.x request… in Process()
5193 * @cli parent search in Process()
5216 * @cli parentpriority (get,set)
5228 * Gets or sets the assigned parent priority value: 1, 0, -1 or -2. -2 means not assigned.
5265 * @cli ping
5268 * 16 bytes from fd00:db8:0:0:76b:6a05:3ae9:a61a: icmp_seq=5 hlim=64 time=0ms
5269 …* 1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 0/0.0/0 …
5273 * ping -I fd00:db8:0:0:76b:6a05:3ae9:a61a ff02::1 100 1 1 1
5274 * 108 bytes from fd00:db8:0:0:f605:fb4b:d429:d59a: icmp_seq=4 hlim=64 time=7ms
5275 * 1 packets transmitted, 1 packets received. Round-trip min/avg/max = 7/7.0/7 ms.
5281 * 16 bytes from fdde:ad00:beef:2:0:0:ac11:1: icmp_seq=5 hlim=64 time=0ms
5282 …* 1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 0/0.0/0 …
5285 * @cparam ping [@ca{async}] [@ca{-I source}] [@ca{-m}] @ca{ipaddrc} [@ca{size}] [@ca{count}] <!--
5286 * --> [@ca{interval}] [@ca{hoplimit}] [@ca{timeout}]
5293 …* The optional `-m` flag sets the multicast loop flag, which allows looping back pings to multicas…
5303 * @cli platform
5320 * @cli pollperiod (get,set)
5345 * @cli promiscuous in Process()
5367 * @cli promiscuous (enable,disable) in Process()
5399 static_cast<Interpreter *>(aContext)->HandleLinkPcapReceive(aFrame, aIsTx); in HandleLinkPcapReceive()
5406 info.mDataBytes = aFrame->mPsdu; in HandleLinkPcapReceive()
5407 info.mDataLength = aFrame->mLength; in HandleLinkPcapReceive()
5425 * @cli prefix in Process()
5429 * - fd00:7d03:7d03:7d03::/64 prosD med in Process()
5436 * `-` is printed before the local Domain Prefix. in Process()
5455 OutputFormat("- "); in Process()
5461 * @cli prefix add in Process()
5471 …* OT CLI uses mapped arguments to configure #otBorderRouterConfig values. @moreinfo{the @overview}. in Process()
5484 * @cli prefix remove in Process()
5500 * @cli prefix meshlocal in Process()
5536 * @cli preferrouterid
5569 OutputLine("%s Time: %lu.%06lus (%lu.%02lu%%)", aTimeName, UsToSInt(aTimeUs), UsToSDec(aTimeUs), in OutputRadioStatsTime()
5579 * @cli radio (enable,disable) in Process()
5598 * @cli radio stats in Process()
5602 * Total Time: 67.756s in Process()
5603 * Tx Time: 0.022944s (0.03%) in Process()
5604 * Rx Time: 1.482353s (2.18%) in Process()
5605 * Sleep Time: 66.251128s (97.77%) in Process()
5606 * Disabled Time: 0.000080s (0.00%) in Process()
5622 … radioStats->mSleepTime + radioStats->mTxTime + radioStats->mRxTime + radioStats->mDisabledTime; in Process()
5625 OutputLine("Total Time is 0!"); in Process()
5630 … OutputLine("Total Time: %lu.%03lus", ToUlong(static_cast<uint32_t>(totalTimeUs / 1000000)), in Process()
5632 OutputRadioStatsTime("Tx", radioStats->mTxTime, totalTimeUs); in Process()
5633 OutputRadioStatsTime("Rx", radioStats->mRxTime, totalTimeUs); in Process()
5634 OutputRadioStatsTime("Sleep", radioStats->mSleepTime, totalTimeUs); in Process()
5635 OutputRadioStatsTime("Disabled", radioStats->mDisabledTime, totalTimeUs); in Process()
5639 * @cli radio stats clear in Process()
5668 * @cli rcp version in Process()
5671 * OPENTHREAD/20191113-00825-g82053cc9d-dirty; SIMULATION; Jun 4 2020 17:53:16 in Process()
5691 * @cli region
5711 * @cli region (set) in Process()
5737 * @cli releaserouterid (routerid)
5753 * @cli rloc16
5777 * @cli route in Process()
5798 * @cli route add in Process()
5822 * @cli route remove in Process()
5856 * @cli router table in Process()
5860 * +----+--------+----------+-----------+-------+--------+-----+------------------+------+ in Process()
5871 * @cli router list in Process()
5930 * @cli router (id) in Process()
5993 * @cli routerdowngradethreshold (get,set)
6013 * @cli routereligible
6026 * @cli routereligible (enable,disable) in Process()
6044 * @cli routerselectionjitter
6065 * @cli routerupgradethreshold (get,set)
6086 * @cli childrouterlinks (get,set)
6120 if (!aArgs->IsEmpty()) in Process()
6122 SuccessOrExit(error = aArgs->ParseAsUint16(scanDuration)); in Process()
6127 if (!aArgs->IsEmpty()) in Process()
6131 SuccessOrExit(error = aArgs->ParseAsUint8(channel)); in Process()
6137 * @cli scan energy in Process()
6141 * +----+------+ in Process()
6142 * | 11 | -59 | in Process()
6143 * | 12 | -62 | in Process()
6144 * | 13 | -67 | in Process()
6145 * | 14 | -61 | in Process()
6146 * | 15 | -87 | in Process()
6147 * | 16 | -86 | in Process()
6148 * | 17 | -86 | in Process()
6149 * | 18 | -52 | in Process()
6150 * | 19 | -58 | in Process()
6151 * | 20 | -82 | in Process()
6152 * | 21 | -76 | in Process()
6153 * | 22 | -82 | in Process()
6154 * | 23 | -74 | in Process()
6155 * | 24 | -81 | in Process()
6156 * | 25 | -88 | in Process()
6157 * | 26 | -71 | in Process()
6163 * +----+------+ in Process()
6164 * | 20 | -82 | in Process()
6169 * Performs an IEEE 802.15.4 energy scan, and displays the time in milliseconds in Process()
6184 * @cli scan in Process()
6188 * +------+------------------+----+-----+-----+ in Process()
6189 * | ffff | f1d92a82c8d8fe43 | 11 | -20 | 0 | in Process()
6217 static_cast<Interpreter *>(aContext)->HandleActiveScanResult(aResult); in HandleActiveScanResult()
6228 if (aResult->mDiscover) in HandleActiveScanResult()
6230 OutputFormat("| %-16s ", aResult->mNetworkName.m8); in HandleActiveScanResult()
6233 OutputBytes(aResult->mExtendedPanId.m8); in HandleActiveScanResult()
6237 OutputFormat("| %04x | ", aResult->mPanId); in HandleActiveScanResult()
6238 OutputExtAddress(aResult->mExtAddress); in HandleActiveScanResult()
6239 OutputFormat(" | %2u ", aResult->mChannel); in HandleActiveScanResult()
6240 OutputFormat("| %3d ", aResult->mRssi); in HandleActiveScanResult()
6241 OutputLine("| %3u |", aResult->mLqi); in HandleActiveScanResult()
6249 static_cast<Interpreter *>(aContext)->HandleEnergyScanResult(aResult); in HandleEnergyScanResult()
6260 OutputLine("| %2u | %4d |", aResult->mChannel, aResult->mMaxRssi); in HandleEnergyScanResult()
6267 * @cli singleton
6296 * @cli sntp query in Process()
6299 * SNTP response - Unix time: 1540894725 (era: 0) in Process()
6304 * SNTP response - Unix time: 1540898611 (era: 0) in Process()
6309 * Sends an SNTP query to obtain the current unix epoch time (from January 1, 1970). in Process()
6310 * - SNTP server default IP address: `2001:4860:4806:8::` (Google IPv6 NTP Server) in Process()
6311 * - SNTP server default port: `123` in Process()
6354 static_cast<Interpreter *>(aContext)->HandleSntpResponse(aTime, aResult); in HandleSntpResponse()
6361 // Some Embedded C libraries do not support printing of 64-bit unsigned integers. in HandleSntpResponse()
6362 // To simplify, unix epoch time and era number are printed separately. in HandleSntpResponse()
6363 … OutputLine("SNTP response - Unix time: %lu (era: %lu)", ToUlong(static_cast<uint32_t>(aTime)), in HandleSntpResponse()
6368 OutputLine("SNTP error - %s", otThreadErrorToString(aResult)); in HandleSntpResponse()
6418 * @cli state in Process()
6432 * - `child`: The device is currently operating as a Thread child. in Process()
6433 * - `router`: The device is currently operating as a Thread router. in Process()
6434 * - `leader`: The device is currently operating as a Thread leader. in Process()
6435 * - `detached`: The device is not currently participating in a Thread network/partition. in Process()
6436 * - `disabled`: The Thread stack is currently disabled. in Process()
6481 * @cli thread start in Process()
6496 * @cli thread stop in Process()
6509 * @cli thread version in Process()
6535 * @cli timeinqueue in Process()
6539 * +------+------+---------+ in Process()
6613 if (index < numBins - 1) in Process()
6615 OutputFormat("%4lu", ToUlong((index + 1) * binInterval - 1)); in Process()
6626 * @cli timeinqueue max in Process()
6641 * @cli timeinqueue reset in Process()
6665 * @cli txpower (get,set)
6667 * txpower -10
6672 * -10 dBm
6702 * @cli targetpower (set)
6731 * @cli debug
6733 …* Executes a series of CLI commands to gather information about the device and thread network. Thi…
6735 …* The output will display each executed CLI command preceded by `$`, followed by the corresponding…
6738 * - Version
6739 * - Current state
6740 * - RLOC16, extended MAC address
6741 * - Unicast and multicast IPv6 address list
6742 * - Channel
6743 * - PAN ID and extended PAN ID
6744 * - Network Data
6745 * - Partition ID
6746 * - Leader Data
6749 * - Child and neighbor table
6750 * - Router table and next hop info
6751 * - Address cache table
6752 * - Registered MTD child IPv6 address
6753 * - Device properties
6756 * - SRP client state
6757 * - SRP client services and host info
6760 * - SRP server state and address mode
6761 * - SRP server registered hosts and services
6764 * - TREL status and peer table
6767 * - BR state
6768 * - BR prefixes (OMR, on-link, NAT64)
6769 * - Discovered prefix table
6786 "netdata show -x", in Process()
6840 strncpy(commandString, debugCommand, sizeof(commandString) - 1); in Process()
6841 commandString[sizeof(commandString) - 1] = '\0'; in Process()
6867 * @cli unsecureport add in Process()
6881 * @cli unsecureport remove in Process()
6908 * @cli unsecure get in Process()
6949 * @cli uptime in Process()
6967 * @cli uptime ms in Process()
6999 * @cli joinerport
7011 * @cli joinerport (set) in Process()
7016 * @cparam joinerport @ca{udp-port} in Process()
7033 * @cli mac altshortaddr in Process()
7049 * @cli mac retries direct (get,set) in Process()
7072 * @cli mac retries indirect (get,set) in Process()
7100 * @cli mac send in Process()
7111 * - `datarequest`: Enqueues an IEEE 802.15.4 Data Request message for transmission. in Process()
7112 * - `emptydata`: Instructs the device to send an empty IEEE 802.15.4 data frame. in Process()
7114 * Instructs an `Rx-Off-When-Idle` device to send a MAC frame to its parent. in Process()
7149 * @cli trel
7157 * @note `OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE` is required for all `trel` sub-commands.
7165 * @cli trel (enable,disable) in Process()
7183 * @cli trel filter in Process()
7198 * @cli trel filter (enable,disable) in Process()
7216 * @cli trel peers in Process()
7220 … * +-----+------------------+------------------+--------------------------------------------------+ in Process()
7269 OutputExtAddress(peer->mExtAddress); in Process()
7271 OutputBytes(peer->mExtPanId.m8); in Process()
7273 OutputSockAddrLine(peer->mSockAddr); in Process()
7280 OutputExtAddress(peer->mExtAddress); in Process()
7282 OutputBytes(peer->mExtPanId.m8); in Process()
7283 otIp6SockAddrToString(&peer->mSockAddr, string, sizeof(string)); in Process()
7284 OutputLine(" | %-48s |", string); in Process()
7289 * @cli trel counters in Process()
7306 * @cli trel counters reset in Process()
7324 * @cli trel port in Process()
7365 * @cli vendor name in Process()
7382 * @cli vendor name (set) in Process()
7395 * @cli vendor model in Process()
7412 * @cli vendor model (set) in Process()
7425 * @cli vendor swversion in Process()
7442 * @cli vendor swversion (set) in Process()
7455 * @cli vendor appurl in Process()
7472 * @cli vendor appurl (set) in Process()
7501 for (Arg *arg = &aArgs[2]; !arg->IsEmpty(); arg++) in Process()
7504 SuccessOrExit(error = arg->ParseAsUint8(tlvTypes[count++])); in Process()
7508 * @cli networkdiagnostic get in Process()
7538 * - `0`: MAC Extended Address TLV in Process()
7539 * - `1`: Address16 TLV in Process()
7540 * - `2`: Mode TLV in Process()
7541 * - `3`: Timeout TLV (the maximum polling time period for SEDs) in Process()
7542 * - `4`: Connectivity TLV in Process()
7543 * - `5`: Route64 TLV in Process()
7544 * - `6`: Leader Data TLV in Process()
7545 * - `7`: Network Data TLV in Process()
7546 * - `8`: IPv6 Address List TLV in Process()
7547 * - `9`: MAC Counters TLV in Process()
7548 * - `14`: Battery Level TLV in Process()
7549 * - `15`: Supply Voltage TLV in Process()
7550 * - `16`: Child Table TLV in Process()
7551 * - `17`: Channel Pages TLV in Process()
7552 * - `19`: Max Child Timeout TLV in Process()
7553 * - `23`: EUI64 TLV in Process()
7554 * - `24`: Version TLV (version number for the protocols and features) in Process()
7555 * - `25`: Vendor Name TLV in Process()
7556 * - `26`: Vendor Model TLV in Process()
7557 * - `27`: Vendor SW Version TLV in Process()
7558 …* - `28`: Thread Stack Version TLV (version identifier as UTF-8 string for Thread stack codebase/c… in Process()
7559 * - `29`: Child TLV in Process()
7560 * - `34`: MLE Counters TLV in Process()
7561 * - `35`: Vendor App URL TLV in Process()
7576 * @cli networkdiagnostic reset in Process()
7607 static_cast<Interpreter *>(aContext)->HandleDiagnosticGetResponse( in HandleDiagnosticGetResponse()
7625 OutputIp6Address(aMessageInfo->mPeerAddr); in HandleDiagnosticGetResponse()
7628 length = otMessageGetLength(aMessage) - otMessageGetOffset(aMessage); in HandleDiagnosticGetResponse()
7637 length -= bytesToPrint; in HandleDiagnosticGetResponse()
7682 OutputFormat(kIndentSize, "- "); in HandleDiagnosticGetResponse()
7704 OutputFormat(kIndentSize, "- "); in HandleDiagnosticGetResponse()
7771 OutputFormat(aIndentSize, "- "); in OutputRoute()
7881 static_cast<Interpreter *>(aContext)->HandleDiscoveryRequest(*aInfo); in HandleDiscoveryRequest()
7908 * @cli verhoeff calculate in Process()
7927 * @cli verhoeff validate in Process()
7958 * @cli wakeup channel (get,set) in Process()
7969 * Use `channel` to set the wake-up channel. in Process()
7971 * Gets or sets the wake-up channel value. in Process()
7981 * @cli wakeup parameters (get,set) in Process()
7994 * Gets or sets the wake-up listen interval and wake-up listen duration values. in Process()
8017 * @cli wakeup listen (enable,disable) in Process()
8034 * Gets or sets current wake-up listening link state. in Process()
8045 * @cli wakeup wake in Process()
8050 * @cparam wakeup wake @ca{extaddr} @ca{wakeup-interval} @ca{wakeup-duration} in Process()
8052 …* Wakes a Wake-up End Device identified by its MAC extended address, using the provided wake-up in… in Process()
8053 * units of microseconds), and wake-up duration (in the units of milliseconds). in Process()
8083 static_cast<Interpreter *>(aContext)->HandleWakeupResult(aError); in HandleWakeupResult()
8116 … static_cast<Interpreter *>(static_cast<TimerMilliContext &>(aTimer).GetContext())->HandleTimer(); in HandleTimer()
8418 error = (this->*command->mHandler)(aArgs + 1); in ProcessCommand()
8478 // CLI output is being used for logging, so we set the flag in otCliPlatLogv()
8489 } // namespace Cli