<?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 receiver answer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62935/direct-test-mode-receiver-answer</link><description>Hello, 
 We are using nRF52840 with SDK 15.2.0. In our software we have handled the DTM and we are able to send the commands using UART. 
 We would like to do the receiver test, using another device in transmitter mode, but we do not understand what result</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jul 2020 09:57:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62935/direct-test-mode-receiver-answer" /><item><title>RE: Direct Test Mode receiver answer</title><link>https://devzone.nordicsemi.com/thread/259137?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 09:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:217ad3ea-2681-4b4f-af8c-a84da241d169</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Håkon is on vacation, so I am taking a look at this case.&lt;/p&gt;
&lt;p&gt;Have you taken a look at:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_appnotes/struct/appnotes_nan34.html"&gt;https://infocenter.nordicsemi.com/topic/struct_appnotes/struct/appnotes_nan34.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This provide an example on how to use DTM in a production setup, including the requird DTM commands to run both TX and RX.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did make a small modification to the python scripts to show how to perform DTM testing as per Figure 2 (Page 6) of the nAN34_v1.0.pdf show. In essence the modified Python script puts the nRF52-DK (lower tester) to run the receive test only,&amp;nbsp;and analyze and report the results from a DUT in TX only. A small example is also attached how to emulate a DUT for test.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-63b3ccacb0fe49bdb5c02699fdd0c67b/dtm_5F00_tester_5F00_and_5F00_dut_5F00_single_5F00_channel.zip"&gt;devzone.nordicsemi.com/.../dtm_5F00_tester_5F00_and_5F00_dut_5F00_single_5F00_channel.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The modified example may be closer to what you want.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you are interested in knowing more of the commands and events you should check out the Bluetooth core specifications, and the &amp;quot;Direct Test Mode&amp;quot; chapter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Test Mode receiver answer</title><link>https://devzone.nordicsemi.com/thread/257772?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 10:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:488897e5-50fb-4e81-bb2d-20918a2c3b83</guid><dc:creator>Pierre cgwi22</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you found something about our problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Test Mode receiver answer</title><link>https://devzone.nordicsemi.com/thread/257066?ContentTypeID=1</link><pubDate>Fri, 26 Jun 2020 08:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc7d7864-e6b4-40d0-9895-46ccb15d38b7</guid><dc:creator>haakonsh</dc:creator><description>[quote user="haakonsh"]If dtm_event_get returned 0 then the command it retrieved was not already received. It seems like this function executed as you would expect.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;[/quote]
&lt;p&gt;This was backwards, it returns 1 if there&amp;#39;s a new DTM event. Is seems like you&amp;#39;ve got a NULL pointer which is not good.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll do some more digging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Test Mode receiver answer</title><link>https://devzone.nordicsemi.com/thread/256945?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 13:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b4a29ca-3fcc-4c33-8f20-05a7500a9f64</guid><dc:creator>Pierre cgwi22</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In fact, &lt;em&gt;dtm_event_get()&lt;/em&gt; returns 1 but the &lt;em&gt;dtm_event_t&lt;/em&gt; parameter is set to 0 and we have no other answer, nothing is happening after that.&lt;/p&gt;
&lt;p&gt;We would like to know what is the normal result of the receiver test command (show data received? error rate?).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Test Mode receiver answer</title><link>https://devzone.nordicsemi.com/thread/256916?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 12:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30d43677-4af9-4b7b-ae3c-81af158c2bdf</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;bool dtm_event_get(dtm_event_t *p_dtm_event)
{
    bool was_new = m_new_event;
    // mark the current event as retrieved
    m_new_event  = false;
    *p_dtm_event = m_event;
    // return value indicates whether this value was already retrieved.
    return was_new;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If dtm_event_get returned 0 then the command it retrieved was not already received. It seems like this function executed as you would expect.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What exactly is your issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>