• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

include/openthread/04-Jan-2025-517106

CMakeLists.txtD04-Jan-20256.9 KiB222196

FindExampleVendorDeps.cmakeD04-Jan-20254.5 KiB126101

README_RCP_CAPS_DIAG.mdD04-Jan-20255 KiB138109

alarm.cppD04-Jan-20258.2 KiB290205

backtrace.cppD04-Jan-20255.5 KiB181118

ble.cppD04-Jan-20253.7 KiB11067

config_file.cppD04-Jan-20256.4 KiB229156

config_file.hppD04-Jan-20255 KiB13028

configuration.cppD04-Jan-202510.1 KiB294212

configuration.hppD04-Jan-20255.6 KiB15866

daemon.cppD04-Jan-202511.1 KiB426304

daemon.hppD04-Jan-20252.5 KiB6829

entropy.cppD04-Jan-20253.9 KiB13964

firewall.cppD04-Jan-20255.3 KiB13577

firewall.hppD04-Jan-20252 KiB4812

hdlc_interface.cppD04-Jan-202519 KiB773610

hdlc_interface.hppD04-Jan-20259.7 KiB28066

infra_if.cppD04-Jan-202526.1 KiB859646

infra_if.hppD04-Jan-20258.7 KiB26873

ip6_utils.hppD04-Jan-20254.4 KiB14040

logger.hppD04-Jan-20254.6 KiB14248

logging.cppD04-Jan-20252.7 KiB7641

mainloop.cppD04-Jan-20252.6 KiB8746

mainloop.hppD04-Jan-20253.6 KiB13331

mdns_socket.cppD04-Jan-202519.5 KiB711536

mdns_socket.hppD04-Jan-20255.6 KiB18279

memory.cppD04-Jan-20251.9 KiB4310

misc.cppD04-Jan-20254 KiB12473

multicast_routing.cppD04-Jan-202521.4 KiB618457

multicast_routing.hppD04-Jan-20256.1 KiB14999

netif.cppD04-Jan-202575.6 KiB2,4081,875

openthread-core-posix-config.hD04-Jan-20255.3 KiB16796

openthread-posix-config.hD04-Jan-202514 KiB443129

openthread-posix-daemon-config.hD04-Jan-20252.6 KiB7316

openthread.conf.exampleD04-Jan-20251.1 KiB3529

platform-posix.hD04-Jan-202512.4 KiB49098

power.cppD04-Jan-20254.2 KiB12873

power.hppD04-Jan-20258.6 KiB29075

radio.cppD04-Jan-202531.2 KiB1,066825

radio.hppD04-Jan-20255 KiB14064

radio_url.cppD04-Jan-20259.4 KiB152109

radio_url.hppD04-Jan-20252.6 KiB8227

rcp_caps_diag.cppD04-Jan-202535.7 KiB880676

rcp_caps_diag.hppD04-Jan-20255.8 KiB15780

resolver.cppD04-Jan-20259.9 KiB347254

resolver.hppD04-Jan-20255 KiB14550

settings.cppD04-Jan-202520.6 KiB688495

settings.hppD04-Jan-20254.8 KiB10412

spi_interface.cppD04-Jan-202527.5 KiB830588

spi_interface.hppD04-Jan-20258.9 KiB265104

spinel_driver_getter.hppD04-Jan-20252.1 KiB549

spinel_manager.cppD04-Jan-20257.3 KiB227153

spinel_manager.hppD04-Jan-20254.6 KiB13452

system.cppD04-Jan-202513.5 KiB503367

system.hppD04-Jan-20251.8 KiB421

trel.cppD04-Jan-202518.7 KiB654403

udp.cppD04-Jan-202519.5 KiB654483

udp.hppD04-Jan-20252.2 KiB5822

utils.cppD04-Jan-20252.9 KiB9047

utils.hppD04-Jan-20252.1 KiB539

vendor.cmakeD04-Jan-20252.7 KiB6253

vendor_extension_example.cmakeD04-Jan-20252.6 KiB5850

vendor_interface.hppD04-Jan-20255.9 KiB17531

vendor_interface_example.cppD04-Jan-20254.2 KiB14666

virtual_time.cppD04-Jan-20255.8 KiB191117

README_RCP_CAPS_DIAG.md

1# OpenThread Diagnostics - RCP Capability Diagnostics Example
2
3This module provides diag commands for checking RCP capabilities.
4
5`OPENTHREAD_CONFIG_DIAG_ENABLE` and `OPENTHREAD_POSIX_CONFIG_RCP_CAPS_DIAG_ENABLE` are required.
6
7## Command List
8
9- [capflags](#capflags)
10- [spinel](#spinel)
11- [spinelspeed](#spinelspeed)
12- [srcmatchtable](#srcmatchtable)
13
14## Command Details
15
16### capflags
17
18Check RCP's radio and spinel capbility flags.
19
20```bash
21> diag rcpcaps capflags
22
23Radio Capbility Flags :
24
25Thread Version >= 1.1 :
26RADIO_CAPS_ACK_TIMEOUT ------------------------------------ OK
27RADIO_CAPS_TRANSMIT_RETRIES ------------------------------- OK
28RADIO_CAPS_CSMA_BACKOFF ----------------------------------- OK
29
30Thread Version >= 1.2 :
31RADIO_CAPS_TRANSMIT_SEC ----------------------------------- OK
32RADIO_CAPS_TRANSMIT_TIMING -------------------------------- OK
33
34Utils :
35RADIO_CAPS_ENERGY_SCAN ------------------------------------ OK
36RADIO_CAPS_SLEEP_TO_TX ------------------------------------ NotSupported
37RADIO_CAPS_RECEIVE_TIMING --------------------------------- NotSupported
38RADIO_CAPS_RX_ON_WHEN_IDLE -------------------------------- NotSupported
39
40Spinel Capbility Flags :
41
42Basic :
43SPINEL_CAPS_CONFIG_RADIO ---------------------------------- OK
44SPINEL_CAPS_MAC_RAW --------------------------------------- OK
45SPINEL_CAPS_RCP_API_VERSION ------------------------------- OK
46
47Utils :
48SPINEL_CAPS_OPENTHREAD_LOG_METADATA ----------------------- NotSupported
49SPINEL_CAPS_RCP_MIN_HOST_API_VERSION ---------------------- OK
50SPINEL_CAPS_RCP_RESET_TO_BOOTLOADER ----------------------- NotSupported
51Done
52```
53
54### spinel
55
56Check which Spinel commands RCP supports.
57
58```bash
59> diag rcpcaps spinel
60
61Basic :
62PROP_VALUE_GET CAPS --------------------------------------- OK
63PROP_VALUE_GET PROTOCOL_VERSION --------------------------- OK
64PROP_VALUE_GET RADIO_CAPS --------------------------------- OK
65PROP_VALUE_GET RCP_API_VERSION ---------------------------- OK
66PROP_VALUE_GET NCP_VERSION -------------------------------- OK
67
68Thread Version >= 1.1 :
69PROP_VALUE_SET PHY_CHAN ----------------------------------- OK
70PROP_VALUE_SET PHY_ENABLED -------------------------------- OK
71PROP_VALUE_SET MAC_15_4_PANID ----------------------------- OK
72PROP_VALUE_SET MAC_15_4_LADDR ----------------------------- OK
73PROP_VALUE_SET MAC_15_4_SADDR ----------------------------- OK
74PROP_VALUE_SET MAC_RAW_STREAM_ENABLED --------------------- OK
75PROP_VALUE_SET MAC_SCAN_MASK ------------------------------ OK
76PROP_VALUE_SET MAC_SCAN_PERIOD ---------------------------- OK
77PROP_VALUE_SET MAC_SCAN_STATE ----------------------------- OK
78PROP_VALUE_SET MAC_SRC_MATCH_ENABLED ---------------------- OK
79PROP_VALUE_SET MAC_SRC_MATCH_SHORT_ADDRESSES -------------- OK
80PROP_VALUE_SET MAC_SRC_MATCH_EXTENDED_ADDRESSES ----------- OK
81PROP_VALUE_GET HWADDR ------------------------------------- OK
82PROP_VALUE_GET PHY_CHAN_PREFERRED ------------------------- OK
83PROP_VALUE_GET PHY_CHAN_SUPPORTED ------------------------- OK
84PROP_VALUE_GET PHY_RSSI ----------------------------------- OK
85PROP_VALUE_GET PHY_RX_SENSITIVITY ------------------------- OK
86PROP_VALUE_INSERT MAC_SRC_MATCH_SHORT_ADDRESSES ----------- OK
87PROP_VALUE_INSERT MAC_SRC_MATCH_EXTENDED_ADDRESSES -------- OK
88PROP_VALUE_REMOVE MAC_SRC_MATCH_SHORT_ADDRESSES ----------- OK
89PROP_VALUE_REMOVE MAC_SRC_MATCH_EXTENDED_ADDRESSES -------- OK
90
91Thread Version >= 1.2 :
92PROP_VALUE_SET ENH_ACK_PROBING ---------------------------- NotImplemented
93PROP_VALUE_SET RCP_MAC_FRAME_COUNTER ---------------------- OK
94PROP_VALUE_SET RCP_MAC_KEY -------------------------------- OK
95PROP_VALUE_GET CSL_ACCURACY ------------------------------- OK
96PROP_VALUE_GET CSL_UNCERTAINTY ---------------------------- OK
97PROP_VALUE_GET TIMESTAMP ---------------------------------- OK
98
99Utils :
100PROP_VALUE_SET MAC_PROMISCUOUS_MODE ----------------------- OK
101PROP_VALUE_GET PHY_CCA_THRESHOLD -------------------------- OK
102PROP_VALUE_GET PHY_FEM_LNA_GAIN --------------------------- OK
103PROP_VALUE_GET PHY_REGION_CODE ---------------------------- OK
104PROP_VALUE_GET PHY_TX_POWER ------------------------------- OK
105PROP_VALUE_GET RADIO_COEX_ENABLE -------------------------- OK
106PROP_VALUE_GET RADIO_COEX_METRICS ------------------------- OK
107PROP_VALUE_GET RCP_MIN_HOST_API_VERSION ------------------- OK
108PROP_VALUE_SET PHY_CCA_THRESHOLD -------------------------- OK
109PROP_VALUE_SET PHY_CHAN_MAX_POWER ------------------------- OK
110PROP_VALUE_SET PHY_CHAN_TARGET_POWER ---------------------- OK
111PROP_VALUE_SET PHY_FEM_LNA_GAIN --------------------------- OK
112PROP_VALUE_SET PHY_REGION_CODE ---------------------------- OK
113PROP_VALUE_SET PHY_TX_POWER ------------------------------- OK
114PROP_VALUE_SET RADIO_COEX_ENABLE -------------------------- OK
115Done
116```
117
118### spinelspeed
119
120Check the speed of Spinel interface.
121
122```bash
123> diag rcpcaps spinelspeed
124SpinelSpeed ----------------------------------------------- 34414843 bps
125Done
126```
127
128### srcmatchtable
129
130Check the source match table size supported by the RCP.
131
132```bash
133> diag rcpcaps srcmatchtable
134ShortSrcMatchTableSize ------------------------------------ 128
135ExtendedSrcMatchTableSize --------------------------------- 128
136Done
137```
138