You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the implementation of the sample
to the subsystems and modules available in sdk-nrf-bm:
- use shell_print instead of printk everywhere
- use sample-specific clock_init() function
- cleaned-up prj.conf, disabled SD explicitly
- updated readme
Also, updated copyright year
Signed-off-by: Ivan Iushkov <ivan.iushkov@nordicsemi.no>
The sample also requires one of the following testing devices:
138
42
139
43
* Another development kit with the same sample.
140
-
See :ref:`radio_test_testing_board`.
141
44
* Another development kit connected to a PC with the `RSSI Viewer app`_ (available in the `nRF Connect for Desktop`_).
142
-
See :ref:`radio_test_testing_rssi`.
143
45
144
46
.. note::
145
47
You can perform the radio test also using a spectrum analyzer.
@@ -149,7 +51,7 @@ Overview
149
51
********
150
52
151
53
To run the tests, connect to the development kit through the serial port and send shell commands.
152
-
Zephyr's :ref:`zephyr:shell_api` module is used to handle the commands.
54
+
Shell subsystem is used to handle the commands.
153
55
At any time during the tests, you can dynamically set the radio parameters, such as output power, bit rate, and channel.
154
56
In sweep mode, you can set the time for which the radio scans each channel from one millisecond to 99 milliseconds, in steps of one millisecond.
155
57
The sample also allows you to send a data pattern to another development kit.
@@ -233,71 +135,39 @@ For details on how to create, configure, and program a sample, see :ref:`getting
233
135
Testing
234
136
=======
235
137
236
-
After programming the sample to your development kit, complete the following steps to test it in one of the following two ways:
237
-
238
-
.. _radio_test_testing_board:
239
-
240
-
Testing with another development kit
241
-
------------------------------------
242
-
243
-
Complete the following steps:
244
-
245
-
1. Connect both development kits to the computer using a USB cable.
246
-
The kits are assigned serial ports.
247
-
|serial_port_number_list|
248
-
#. |connect_terminal_both_ANSI|
249
-
#. Run the following commands on one of the kits:
250
-
251
-
a. Set the data rate with the ``data_rate`` command to ``ble_2Mbit``.
252
-
#. Set the transmission pattern with the ``transmit_pattern`` command to ``pattern_11110000``.
253
-
#. Set the radio channel with the ``start_channel`` command to 40.
254
-
255
-
#. Repeat all steps for the second kit.
256
-
#. On both kits, run the ``parameters_print`` command to confirm that the radio configuration is the same on both kits.
257
-
#. Set one kit in the Modulated TX Carrier mode using the ``start_tx_modulated_carrier`` command.
258
-
#. Set the other kit in the RX Carrier mode using the ``start_rx`` command.
259
-
#. Print the received data with the ``print_rx`` command and confirm that they match the transmission pattern (0xF0).
260
-
261
-
.. _radio_test_testing_rssi:
138
+
After programming the sample to your development kit, complete the following steps to test it:
262
139
263
-
Testing with the RSSI Viewer app
264
-
--------------------------------
265
-
266
-
Complete the following steps:
267
-
268
-
1. Connect the kit to the computer using a USB cable.
269
-
The kit is assigned a COM port (Windows) or ttyACM device (Linux), which is visible in the Device Manager.
270
-
#. |connect_terminal_ANSI|
271
-
#. Set the start channel with the ``start_channel`` command to 20.
272
-
#. Set the end channel with the ``end_channel`` command to 60.
273
-
#. Set the time on channel with the ``time_on_channel`` command to 50 ms.
274
-
#. Set the kit in the TX sweep mode using the ``start_tx_sweep`` command.
275
-
#. Start the `RSSI Viewer app`_ and select the kit to communicate with.
276
-
#. On the application chart, observe the TX sweep in the form of a wave that starts at 2420 MHz frequency and ends with 2480 MHz.
277
-
278
-
Dependencies
279
-
************
280
-
281
-
This sample uses the following |NCS| libraries:
282
-
283
-
* :ref:`shell_ipc_readme`
284
-
285
-
This sample has the following nrfx dependencies:
140
+
.. tabs::
286
141
287
-
* :file:`nrfx/drivers/include/nrfx_timer.h`
288
-
* :file:`nrfx/hal/nrf_power.h`
289
-
* :file:`nrfx/hal/nrf_radio.h`
142
+
.. group-tab:: Testing with another development kit
290
143
291
-
In addition, it uses the following Zephyr libraries:
144
+
Complete the following steps:
292
145
293
-
* :ref:`zephyr:device_model_api`:
146
+
1. Connect both development kits to the computer using a USB cable.
147
+
The kits are assigned COM ports (Windows) or ttyACM devices (Linux), which are visible in the Device Manager.
148
+
#. Connect to both kits with a terminal emulator that supports VT100/ANSI escape characters (for example, the `Serial Terminal app`_).
149
+
#. Run the following commands on one of the kits:
294
150
295
-
* :file:`drivers/clock_control.h`
151
+
a. Set the data rate with the ``data_rate`` command to ``ble_2Mbit``.
152
+
#. Set the transmission pattern with the ``transmit_pattern`` command to ``pattern_11110000``.
153
+
#. Set the radio channel with the ``start_channel`` command to 40.
296
154
297
-
* :ref:`zephyr:kernel_api`:
155
+
#. Repeat all steps for the second kit.
156
+
#. On both kits, run the ``parameters_print`` command to confirm that the radio configuration is the same on both kits.
157
+
#. Set one kit in the Modulated TX Carrier mode using the ``start_tx_modulated_carrier`` command.
158
+
#. Set the other kit in the RX Carrier mode using the ``start_rx`` command.
159
+
#. Print the received data with the ``print_rx`` command and confirm that they match the transmission pattern (0xF0).
298
160
299
-
* :file:`include/init.h`
161
+
.. group-tab:: Testing with the RSSI Viewer app
300
162
301
-
* :ref:`zephyr:shell_api`:
163
+
Complete the following steps:
302
164
303
-
* :file:`include/shell/shell.h`
165
+
1. Connect the kit to the computer using a USB cable.
166
+
The kit is assigned a COM port (Windows) or ttyACM device (Linux), which is visible in the Device Manager.
167
+
#. Open a serial port connection to the kit using a terminal emulator that supports VT100/ANSI escape characters (for example, the `Serial Terminal app`_).
168
+
#. Set the start channel with the ``start_channel`` command to 20.
169
+
#. Set the end channel with the ``end_channel`` command to 60.
170
+
#. Set the time on channel with the ``time_on_channel`` command to 50 ms.
171
+
#. Set the kit in the TX sweep mode using the ``start_tx_sweep`` command.
172
+
#. Start the `RSSI Viewer app`_ and select the kit to communicate with.
173
+
#. On the application chart, observe the TX sweep in the form of a wave that starts at 2420 MHz frequency and ends with 2480 MHz.
0 commit comments