<?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>dtm parameters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14614/dtm-parameters</link><description>In SDK 11 description od DTM &amp;quot;vendor specific&amp;quot; settings, there is a lot of inconsistency in parameters names/numbers - could anyone help me understand this part? 
 As for now I assume:
Parameter 1: CMD
Parameter 2: Freq
Parameter 3: Length
Parameter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jun 2016 06:54:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14614/dtm-parameters" /><item><title>RE: dtm parameters</title><link>https://devzone.nordicsemi.com/thread/55769?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 06:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca6b5d0e-4dba-4b4d-b6e4-47fc24086ed6</guid><dc:creator>OskarM</dc:creator><description>&lt;p&gt;Thanks. One more thing - the description of txpower is also not fully clear with respect to accepted values; I suppose it could be more efficient to put a &amp;quot;txpower vs paramater value&amp;quot; table in the description to avoid digging through the library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm parameters</title><link>https://devzone.nordicsemi.com/thread/55768?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 06:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c8e1d78-667e-448a-bd6d-7b18f6d7e74a</guid><dc:creator>Jui-Chou (Rick) Chung</dc:creator><description>&lt;p&gt;Yes, the dtm_cmd() function has four input parameters:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Command_code:
It’s control the DTM states like reset device, start receive test, start transmission test or end test.&lt;/li&gt;
&lt;li&gt;Frequency:
The physical channel which will be used in rx/tx testing, which range is from 0 to 39. And the actual frequency is (2400 + frequency parameter) MHz.&lt;/li&gt;
&lt;li&gt;Length:
For ordinary usage, it will be the payload length, which can be 0 to 37. But for vendor specific payload (describe later), it can be another control parameter like tx power or the timer selection.&lt;/li&gt;
&lt;li&gt;Payload:
Here are four types for DTM packet for transmission test. The DTM_PKT_PRBS9 is a pseudo-random bit sequence in repeating 9-bit sequence, which used for power transmission testing. The DTM_PKT_0x55 is consisted with “10101010” repeated, which used for frequency deviation testing. The DTM_PKT_0x0F is consisted with “11110000” repeated, and it is used for carrier and initial frequency testing.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In additional, there’s another type for vendor specific command. If the payload is DTM_PKT_VENDORSPECIFIC, the DTM will call dtm_vendor_specific_pkt() to do the special operation, and the inputs are one command and one parameter.&lt;/p&gt;
&lt;p&gt;The command will come from the field &amp;quot;length&amp;quot; in dtm_cmd(), the  parameter will come from  the field &amp;quot;frequency&amp;quot; in dtm_cmd(). According to the nRF5x SDK dtm module, it’s has 4 types of commands.&lt;/p&gt;
&lt;p&gt;For CARRIER_TEST and CARRIER_TEST_STUDIO, it emits the unmodulated carrier at the channel frequency you set in dtm_cmd().&lt;/p&gt;
&lt;p&gt;For SET_TX_POWER, you can change the tx power by using the field “frequency” in dtm_cmd().&lt;/p&gt;
&lt;p&gt;For SELECT_TIMER, you can select the timer which used by DTM module during the test, by pass the timer number (0~2) into the field “frequencey” in dtm_cmd(). If your test application using timer0 for other feature, you may need to select another timer through SELECT_TIMER for DTM module.&lt;/p&gt;
&lt;p&gt;If you reference the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fble_sdk_app_dtm_serial.html&amp;amp;cp=5_0_0_4_4"&gt;DTM&lt;/a&gt; page from infocenter, seems there&amp;#39;s some mistake when explain the SELECT_TIMER, and should be updated as follow:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If parameter 3 (&lt;strong&gt;length&lt;/strong&gt;) is set to 2 (symbol SET_TX_POWER), parameter 2 (&lt;strong&gt;freq&lt;/strong&gt;) sets the tx power in dBm, ranging from -40 to +4 in steps of 4, 0 dBm being the reset value. The tx power can only be modified while no Transmitter Test or Receiver Test is running.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;If parameter 3 (&lt;strong&gt;length&lt;/strong&gt;) is set to 3 (symbol SELECT_TIMER), parameter 2 (&lt;strong&gt;freq&lt;/strong&gt;) selects the timer to be used by dtmlib for Transmitter Test timing. Valid timer identifiers are 0, 1 and 2. Configuring the timer to be used allows dtmlib to be integrated in a larger test environment where other modules may be occupying the default timer (timer 0).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hope it&amp;#39;s more clear :p&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>