forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] test whether the RCP supports the Link Metrics
This commit adds a test case to `cp-tests` to test whether the RCP supports the Link Metrics.
- Loading branch information
1 parent
d034b5c
commit 5229368
Showing
2 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ $ git clone [email protected]:openthread/ot-nrf528xx.git | |
$ cd ot-nrf528xx/ | ||
$ git submodule update --init | ||
$ ./script/bootstrap | ||
$ ./script/build nrf52840 UART_trans -DOT_DIAGNOSTIC=ON -DOT_CSL_RECEIVER=ON | ||
$ ./script/build nrf52840 UART_trans -DOT_DIAGNOSTIC=ON -DOT_CSL_RECEIVER=ON -DOT_LINK_METRICS_INITIATOR=ON -DOT_LINK_METRICS_SUBJECT=ON | ||
$ arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd ot-cli-ftd.hex | ||
$ nrfjprog -f nrf52 --chiperase --program ot-cli-ftd.hex --reset | ||
``` | ||
|
@@ -62,6 +62,7 @@ options: | |
-h, --help show this help message and exit | ||
-c, --csl test whether the RCP supports CSL transmitter | ||
-d, --diag-commands test whether the RCP supports all diag commands | ||
-l, --link-metrics test whether the RCP supports link metrics | ||
-p, --data-poll test whether the RCP supports data poll | ||
-t, --throughput test the Thread network 1-hop throughput | ||
-v, --verbose output verbose information | ||
|
@@ -146,6 +147,16 @@ Data Poll Parent ----------------------------------------- OK | |
Data Poll Child ------------------------------------------ OK | ||
``` | ||
|
||
### Test Link Metrics | ||
|
||
The parameter `-l` or `--link-metrics` starts to test whether the RCP supports link metrics. | ||
|
||
```bash | ||
$ DUT_ADB_USB=1269UCKFZTAM95OR REF_CLI_SERIAL=/dev/ttyACM0 python3 ./tools/cp-caps/rcp_caps_test.py -l | ||
Link Metrics Initiator ----------------------------------- OK | ||
Link Metrics Subject ------------------------------------- OK | ||
``` | ||
|
||
### Test Throughput | ||
|
||
The parameter `-t` or `--throughput` starts to test the Thread network 1-hop throughput of the DUT. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters