<?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 data sent</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19532/dtm-data-sent</link><description>Hi, 
 I&amp;#39;m using pca10040 and prebuild hex with s132 from sdk 12. Now I&amp;#39;m wondering how can I get number of sent data? If I set it as transmitter - send via uart 0x8094 i get response 0x0000 and when i stop test with 0xc000 i get success status 0x8000</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Mar 2017 08:54:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19532/dtm-data-sent" /><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75917?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 08:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c9d0db6-d834-4043-8127-674e737a82fd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The frequency of operation is set by the tester, and sent to the DUT (via f.ex. UART) when starting the test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75916?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 16:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2545f6-23a9-48cf-8cb0-6d2e9b27c960</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;dtm command is 16 bits long... combined from cmd (bit 15 and 14; reset, receiver, transmitter and test end), frequency (bits 13:8 channels from 0 to 39), length (bits 7:2 from 0 to 37) and payload (bit 1 and 0 - prbs9, 0x0f and 0x55)...&lt;/p&gt;
&lt;p&gt;So while testing I noticed that not matter what length or payload I choose on receiver side, because it&amp;#39;s parsed from received data (which was set on transmitter side)... now I&amp;#39;m wondering, if it is important to set frequency/channel on reciever side or its listening on all chanells from 0 to 39?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75915?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 14:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d98601-23fd-46db-87b4-6a92cd4d6976</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What do you mean by frequency?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75921?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 09:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4773b20-1478-4c78-84dc-35f09860df47</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;I run debuger and actually check function check_pdu... and m_pdu.content contains the which pattern was received and it&amp;#39;s length... so when i run receiver manually via dtm cmds, it does not make sense about setting the pattern and length because its read out from received packet... what about a frequency?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75922?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 08:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:058810a6-9fc6-4622-9ffb-09f9fdec5a48</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, I see. If you run the receiver chip in debug mode, does it increase the number of received packets even if the bit pattern is wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75923?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 08:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22326608-95a6-4c4c-9ab1-763110c4967b</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;No, we are not using py scripts, because guys in production performs a lot of other tests and whole test app is written in .net... and it&amp;#39;s easier for them to integrate dtm test to existing app and sending dtm cmds via serial port... but it seems that there is some strange behaviour...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75920?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6430d69-99d5-40c2-b064-efa1433c295f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The DTM example checks that bit pattern is correct, using &lt;code&gt;check_pdu()&lt;/code&gt;: in dtm_wait() (ble_dtm.c), the number of packets successfully received is only increased if the CRC is okay and check_pdu() is true.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; if ((NRF_RADIO-&amp;gt;CRCSTATUS == 1) &amp;amp;&amp;amp; check_pdu())
            {
                // Count the number of successfully received packets
                m_rx_pkt_count++;
            }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From what I understand, you are not testing using the python script that comes with nAN-34? If using that script, the chosen bit pattern will be transmitted to both the upper tester and the DUT.&lt;/p&gt;
&lt;p&gt;To check why it doesn&amp;#39;t give the correct result on your side, I would recommend you to run the receiver in debug mode. It will corrupt the results if hitting a break point, but it can help understanding why the PER is 0 %.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75919?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 10:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef710a9e-00c1-45f3-942e-1c82a4743b5e</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;I&amp;#39;m using PCA10040 with direct_test_mode_pca10040_s132.hex and usb dongle with direct_test_mode_pca10028_s130.hex prebuild hex files from nRF5_SDK_12.0.0_12f24da...&lt;/p&gt;
&lt;p&gt;Then i run receiver as 0x4095 and i get rsp 0x0000; after that i run transmitter 0x8094 and i get rsp 0x0000. After that i stopped transmitter at first with 0xc000 and i get rsp 0x8000; at the end i stopped receiver with 0xc000 and i get rsp 0x9d2c - what means reporting event 0x8000 and 0x1d2c received packets...&lt;/p&gt;
&lt;p&gt;In that case pattern are different and I assume that number of received packets should be 0... Please correct me if I&amp;#39;m wrong.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75918?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 09:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2580f46-77cd-40c7-8bde-e8c134e4cd42</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;How do you do that test?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75914?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 07:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72d65dba-2c31-4a75-98c1-2cf8fcabe1ed</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;One more questions about dtm payload... On the receiver side I choose 0x0f payload, but on transmitter side I choose payload PRBS9 ... but the number of sent/received packets are still matching... so the content of message is not checked? Thank you for info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75911?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 14:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d40c003-f191-4ce3-b4ec-835bbe54d38a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The interval between each packet depends on the packet length, see BT Core Specification v. 4.2, vol 6, part F, section 4.1.6. Therefore self._calculateTimeForPackage() will always return the same value.&lt;/p&gt;
&lt;p&gt;If there is one transmitter and multiple receivers, all receivers should theoretically receive the same number of packets. In reality, it may however vary slightly due to packet loss.&lt;/p&gt;
&lt;p&gt;If the receiver works fine, I would think that the transmitter works fine as well. To test if the receiver and transmitter works, you can test a BLE application. In a BLE applictaion, the radio will use both RX and TX mode.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how it will work to use do multiple DTM test at the same time in the same environment. I would think there could be some potential interference problems..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75910?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e76aa5-1d0f-4acc-8427-5770a7318be0</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;I have one more question - about testing multiple boards - at the same time... If golden sample is transmiter, then all testers are receivers - then in theory all of testers should have the same number of received packets right? But if receiver works fine - we can not conclude that also transmiting works fine... What do you advise to test multiple boards at the same time? if it&amp;#39;s even possible&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75913?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a19c8c19-9362-46ed-8f0b-522677e75a8d</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;Kristin, thank you for rsp... but this self._calculateTimeForPackage function in py always returns 0.625 so I&amp;#39;m on the same if I count number of calls for dtm_wait() - which returns each 0.625 ms... Now I&amp;#39;m wondering if it is possible that for some reason transmitter could not send out a packet? Then maxpackages would be a higher, then a number of packets that were sent out... In that case we can&amp;#39;t detect if problem is in transmiter of receiver - but we should trust the golden sample and thats it... Now I get it ;) Thank you once again Kristin!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75912?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 12:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54457742-1334-4216-aef7-fb99791ace16</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;For the transmitter test, the packet error rate is calculated in the upper + lower tester only, based on the duration of the test time and the number of packets received. In the python script, the packet error rate is calculated the following way:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;def _calculatePER(self, receivedPackages):
	&amp;quot;&amp;quot;&amp;quot;Calculates the PER&amp;quot;&amp;quot;&amp;quot;
	maxpackages = int (round(self.runtimeinms / self._calculateTimeForPackage ()))
	lostpackages = maxpackages - receivedPackages
	lostpackages = max(0, lostpackages)
	self._debug(&amp;quot;Received: %s Max: %s Lost: %s&amp;quot; % (receivedPackages, maxpackages, lostpackages))
	per = int (round((float(lostpackages) / float(maxpackages)) * 100))
	return per
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75909?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 08:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7693a0e-b493-4d14-bce0-78dbd416cdc6</guid><dc:creator>Matej</dc:creator><description>&lt;p&gt;Thank you for reply Kristin! What about an idea to add counter to dtm_wait function in ble_dtm.c file? (Incrementing it before for loop - in case that m_state is equal to STATE_TRANSMITTER_TEST)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dtm data sent</title><link>https://devzone.nordicsemi.com/thread/75908?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 11:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2de5cc9-2994-4832-b259-c511c5c67f47</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;For the transmitter test, there is no report of the number of transmitted packets. The number of transmitted packets is calculated based on the time the test is running and the interval between the packets. That method will result in a small error, but if the test is running for some time, that error can be discarded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>