From 564d667790692a4de0d6b17974bc55819658770b Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Sat, 19 Nov 2022 04:58:30 +0800 Subject: [PATCH] [doc] add doc for coex command (#8415) --- src/cli/README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/src/cli/README.md b/src/cli/README.md index ed8d64527..a6e9d7fce 100644 --- a/src/cli/README.md +++ b/src/cli/README.md @@ -34,6 +34,7 @@ Done - [childtimeout](#childtimeout) - [coap](README_COAP.md) - [coaps](README_COAPS.md) +- [coex](#coex) - [commissioner](README_COMMISSIONER.md) - [contextreusedelay](#contextreusedelay) - [counters](#counters) @@ -809,6 +810,72 @@ Set the Thread Child Timeout value. Done ``` +### coex + +Get the coex status. + +`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. + +```bash +> coex +Enabled +Done +``` + +### coex disable + +Disable coex. + +`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. + +```bash +> coex disable +Done +``` + +### coex enable + +Enable coex. + +`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. + +```bash +> coex enable +Done +``` + +### coex metrics + +Show coex metrics. + +`OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE` is required. + +```bash +> coex metrics +Stopped: false +Grant Glitch: 0 +Transmit metrics + Request: 0 + Grant Immediate: 0 + Grant Wait: 0 + Grant Wait Activated: 0 + Grant Wait Timeout: 0 + Grant Deactivated During Request: 0 + Delayed Grant: 0 + Average Request To Grant Time: 0 +Receive metrics + Request: 0 + Grant Immediate: 0 + Grant Wait: 0 + Grant Wait Activated: 0 + Grant Wait Timeout: 0 + Grant Deactivated During Request: 0 + Delayed Grant: 0 + Average Request To Grant Time: 0 + Grant None: 0 +Done +``` + ### contextreusedelay Get the CONTEXT_ID_REUSE_DELAY value.