<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Radio test example through USB UART CLI?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50547/radio-test-example-through-usb-uart-cli</link><description>Dear all, 
 For EMI/EMC Test, we need the USB UART CLI functionality for example &amp;quot;Radio Test&amp;quot;, 
 could you tell us how to implement it or any example can do that? 
 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Aug 2019 08:59:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50547/radio-test-example-through-usb-uart-cli" /><item><title>RE: Radio test example through USB UART CLI?</title><link>https://devzone.nordicsemi.com/thread/202350?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 08:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff269106-b04b-4f62-a88a-49f6fe8b7208</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Conan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;do you mean that you are using a USB-TTL cable to connect the nRF52840 to the computer or do you have a USB-serial post chip on the Device under test (DUT)?&lt;/p&gt;
&lt;p&gt;If its the former, then you will have to modify the RX and TX pin numbers in cli_init() to the pins that are available on the DUT.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void cli_init(void)
{
    ret_code_t ret;


    nrf_drv_uart_config_t uart_config = NRF_DRV_UART_DEFAULT_CONFIG;

    uart_config.pseltxd = TX_PIN_NUMBER;
    uart_config.pselrxd = RX_PIN_NUMBER;
    uart_config.hwfc    = NRF_UART_HWFC_DISABLED;
    ret                 = nrf_cli_init(&amp;amp;m_cli_uart, &amp;amp;uart_config, true, true, NRF_LOG_SEVERITY_INFO);
    APP_ERROR_CHECK(ret);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After modifying the pin numbers you should be able to use Putty with the settings described under&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_cli.html#lib_cli_terminal_settings_uart"&gt;UART and USB settings&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test example through USB UART CLI?</title><link>https://devzone.nordicsemi.com/thread/202286?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 02:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c01fa67-27a5-4b37-8669-974f68e71c94</guid><dc:creator>Conan</dc:creator><description>&lt;p&gt;Could you tell us how to make the CLI functionality of&amp;nbsp; &lt;a title="Radio Test Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf_radio_test_example.html?cp=5_1_4_6_29"&gt;Radio Test Example&lt;/a&gt; through an USB to serial port (Not GPIO serial port)?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio test example through USB UART CLI?</title><link>https://devzone.nordicsemi.com/thread/202125?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 11:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeaee350-5b39-49bb-ad8e-49a961bb9c7a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Conan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the&amp;nbsp;&lt;a title="Radio Test Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf_radio_test_example.html?cp=5_1_4_6_29"&gt;Radio Test Example&lt;/a&gt;&amp;nbsp;in SDK v15.3.0 uses the CLI to control the tests.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The Radio Test Example demonstrates how to configure the radio as the constant RX or TX carrier, the modulated TX carrier, or the RX or TX sweep.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The tests are controlled with Command Line Interface (CLI) by the serial port. At any time during the tests, you can set the radio parameters output power, bit rate, and channel. You can also set the time on each channel in the sweep mode, in steps of 1 millisecond to 99 milliseconds, every 1 millisecond. The application also allows you to send a data pattern to another board.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>