<?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>direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5994/direct-test-mode-tx-power-commands</link><description>Dear community, 
 I&amp;#39;d like to report a problem on the Direct Test Mode software provided in nrf51 SDK v6.1.0. 
 In this mode, 2-bytes commands are transmitted over the serial port, and interpreted by the DTM software, as follows :
[code: 2bit] [frequency</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Mar 2016 23:57:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5994/direct-test-mode-tx-power-commands" /><item><title>RE: direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/thread/20917?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 23:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b5a633a-1837-422d-897c-5d33cb5ae533</guid><dc:creator>norbt</dc:creator><description>&lt;p&gt;@Jean-Louis Bonnaffé
What would be the sequence to send the Power command?
Before the 2-Byte Frequency-Payload lenght-payload type command, or after?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/thread/20916?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c31b283-9f60-4d57-8432-3db3d8205bbe</guid><dc:creator>Jean-Louis Bonnaff&amp;#233;</dc:creator><description>&lt;p&gt;@norbt correct&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/thread/20920?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 01:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab69471-6ea0-4198-87e9-e6af083bc20f</guid><dc:creator>norbt</dc:creator><description>&lt;p&gt;There is probably a typographic error in the reference manual,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;0xD8 --&amp;gt; -40 dBm&lt;/li&gt;
&lt;li&gt;0xE2 --&amp;gt; -30 dBm&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/thread/20915?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 01:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54722285-eb8d-4f5a-b59f-a715cb3edcad</guid><dc:creator>norbt</dc:creator><description>&lt;p&gt;So in this case, [bit 07-00] remain constant with value 0x0B, with only change in TXPOWER/dBm. Correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/thread/20919?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 09:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8e6e28-2108-4f58-8ee3-2b83dbf669f2</guid><dc:creator>Jean-Louis Bonnaff&amp;#233;</dc:creator><description>&lt;p&gt;yes. check the nRF51 reference manual, page 93. The value -30dBm maps to 0xD8.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/thread/20918?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 08:41:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a482b36-d96f-4bcb-a04d-caf1d28e22df</guid><dc:creator>hans stauber</dc:creator><description>&lt;p&gt;Can you explain how a value of -30dBm results in a value of 0xD8.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direct test mode : TX power commands</title><link>https://devzone.nordicsemi.com/thread/20914?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2015 17:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19676a28-e47f-44b5-be63-33034a076404</guid><dc:creator>Jean-Louis Bonnaff&amp;#233;</dc:creator><description>&lt;p&gt;OK, so if anyone is interested one day, &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main.c.patch"&gt;this patch&lt;/a&gt; will add support for vendor-specific commands that need 8-bit wide &amp;#39;frequency&amp;#39; field.&lt;/p&gt;
&lt;p&gt;One practical example: I want to set NRF51822 radio power value to -30dBm. The TXPOWER register&amp;#39;s value is a negative 8-bit value, so DTM won&amp;#39;t handle it (it will read the 6 LSB, then cast them as uint32_t).&lt;/p&gt;
&lt;p&gt;After applying the patch to
${SDK_PATH}/nrf51422/Board/nrf6310/direct_test_mode/main.c, you can send the following 2-byte command :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;[bit 15-08] TXPOWER : 0xD8 (-30dBm)&lt;/li&gt;
&lt;li&gt;[bit 07-02] LENGTH :   0b000010 (2 bytes)&lt;/li&gt;
&lt;li&gt;[bit 01-00] PAYLOAD : 0b11 (vendor-specific)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In bash for example:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$ echo -ne &amp;#39;\xD8\x0B&amp;#39; &amp;gt; /dev/ttyUSB0&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>