Add tone sweep with controlled duty cycle#27816
Conversation
CI InformationTo view the history of this post, click the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 8dbf0517c722655d0669d641ccd08910d981a2e8 more detailssdk-nrf:
Github labels
List of changed files detected by CI (5)Outputs:ToolchainVersion: 911f4c5c26 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
|
You can find the documentation preview for this PR here. Preview links for modified nRF Connect SDK documents: https://ncsbmdoc.z6.web.core.windows.net/ncs/PR-27816/nrf/releases_and_maturity/releases/release-notes-changelog.html |
a41e5e3 to
f9c6c57
Compare
2b57586 to
4634dc8
Compare
4634dc8 to
a027e19
Compare
4934c6c to
7e9b6dd
Compare
the current TX sweep command in the radio test uses a near 100% duty cycle. Adding a new version of the TX sweep command that allows us to set a TX time and a "wait" time to use controlled duty cycles. Signed-off-by: Thomas Johansen <thomas.johansen@nordicsemi.no>
added documentation for the new radio_test command as well as a changelog entry Signed-off-by: Thomas Johansen <thomas.johansen@nordicsemi.no>
7e9b6dd to
8dbf051
Compare
| uint8_t tx_time = atoi(argv[1]); | ||
| uint8_t sleep_time = atoi(argv[2]); | ||
|
|
||
| const uint8_t min_tx_time_us = 20; |
There was a problem hiding this comment.
Maybe you could make this variables global since we might want to use the same limits in other testing modes.
| const uint8_t min_tx_time_us = 20; | ||
| const uint8_t min_sleep_time_us = 80; | ||
|
|
||
| if (sleep_time < min_sleep_time_us) { |
There was a problem hiding this comment.
In this function you handle the tx_time first, and then sleep_time. It might be more readable if you check the tx time provided first, and then sleep time, just to follow the same pattern.

added a new shell command in radio_test as well as some simple documentation for the command