<?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>nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54323/nrf52840-slow-rx-characteristic-time</link><description>The nRF52840 has a longer rx characteristic reception time than the nRF51822. 
 
 --&amp;gt; android terminal log 
 
 first and second line nRF52840 , It takes almost 1.2 seconds to get the rx characteristic. 
 below nRF51822, It takes almost 0.4 seconds. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Nov 2019 14:04:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54323/nrf52840-slow-rx-characteristic-time" /><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/220875?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 14:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:609d802e-a9a0-4b44-877b-128183bfff53</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You should measure from the first Empty PDU in the sniffer trace until the packet you want to compare in order to get the most reliable timing.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/220746?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 09:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5db23d4e-24f2-4c1c-a0e7-c820654dcf18</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;What is the connection confirm response message for connect request?&lt;/p&gt;
&lt;p&gt;As you say, I compare different packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/220504?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 09:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e033186-c75c-4b7d-aa18-fa8839b9b0a5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You&amp;#39;ve used two completely different &amp;quot;connected packets&amp;quot; when measuring the time here.&lt;/p&gt;
&lt;p&gt;If you use the same packet, say the CONNECT_REQ packet in both instances, the times will be:&lt;/p&gt;
&lt;p&gt;nRF51822_Galaxy_Note_4: 2.227 - 0.8359 = 1.39s&lt;/p&gt;
&lt;p&gt;nRF52840_Galaxy_Note_4: 2.392 - 0.8065 = 1.58s&lt;/p&gt;
&lt;p&gt;This is a very short time, and can not be counted as a delay. Furthermore, the time we see on the left side of the sniffer log is the time it takes for the computer to see the logs, so to be even more accurate, we should calculate the delta time (µs start to start) for each event to get the exact timing.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/220449?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 01:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bee1d12-fbb6-4bea-98f1-34a2834abcd6</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;I tried to&amp;nbsp;&lt;span&gt;setting NRF_LOG_DEFERRED to 0 in the nRF52840 application. but, the result is same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There are differences in nrf51822-galaxy-note4 and nrf52840-galaxy-note4.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;the connected packet&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;nrf51822-galaxy-note4 - number: 66 time: 1.365&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;nrf52840-galaxy-note4 - number: 51 time: 0.807&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;the first packet in application&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf51822-galaxy-note4 - number: 138 time: 2.227&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf52840-galaxy-note4 - number: 156 time: 2.392&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m not sure of the connected packet.&amp;nbsp;Assuming it&amp;#39;s right,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;from&amp;nbsp;the connected packet to the first packet in application&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf51822-galaxy-note4 - number: 138-66=72 time: 2.227-1.365=0.862&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf52840-galaxy-note4 - number: 156-51=105 time: 2.392-0.807=1.565&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s similar to android log time.&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: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/220334?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 14:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d6257bc-7947-496e-99c5-0f6f191eecde</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve looked at your sniffer traces, and according to the data that goes over the air, the time from connection to service discovered is just about the same in both instances. a few µs faster on the nRF52840 in the note10 log. And a few µs faster on the nRF51822 in the note4 log. But the difference is negligible, so this seems to be your logs taking longer to print on one side. Did you try setting NRF_LOG_DEFERRED to 0 in the nRF52840 application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/220215?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 06:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcb2b22a-512f-4810-b022-4b7f3271d286</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;thanks to reply!&lt;/p&gt;
&lt;p&gt;here are the logs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf51822_2D00_galaxy_2D00_note10.pcapng"&gt;devzone.nordicsemi.com/.../nrf51822_2D00_galaxy_2D00_note10.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840_2D00_galaxy_2D00_note4.pcapng"&gt;devzone.nordicsemi.com/.../nrf52840_2D00_galaxy_2D00_note4.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840_2D00_galaxy_2D00_note10.pcapng"&gt;devzone.nordicsemi.com/.../nrf52840_2D00_galaxy_2D00_note10.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf51822_2D00_galaxy_2D00_note4.pcapng"&gt;devzone.nordicsemi.com/.../nrf51822_2D00_galaxy_2D00_note4.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/220038?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 10:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70a6a5fc-9666-4688-96f6-d998083b98f0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, it seems I misunderstood the initial question. Sorry about that. This delay happens after the devices have connected, right? Can you provide a sniffer log so we can take a look at what happens? You can do this either by using an Ellisys sniffer (if you have one available) or by using an extra nRF52 DK and the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer&lt;/a&gt; to sniff the connection.&lt;/p&gt;
&lt;p&gt;You can also try setting NRF_LOG_DEFERRED to 0 in order to minimize the delay from an event until it is printed, as the terminal log might not be the most reliable way to measure the time it takes to get a service.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/219957?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 01:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca5e09a-af10-41bb-b599-42ae81f67b92</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;galaxy note 4&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1573695168906v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It takes almost 1.1 sec.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1573695212137v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It takes almost 0.3 sec.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;*different phone, More recent model. galaxy&amp;nbsp;note 10&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1573695246416v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It takes almost 0.5 sec.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1573695282095v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It takes almost 0.8 sec.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;note10 is faster&amp;nbsp;than&amp;nbsp;note4 in average time, but the pair of galaxy note 4 &amp;amp; nrf51 is fastest speed to discover&amp;nbsp;service.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and nrf52 is slow for all. Is it normal?&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: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/219913?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 14:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ca59355-2d8f-454e-a879-a8307111cdc3</guid><dc:creator>_maibi</dc:creator><description>&lt;p&gt;... I did double check. connection parameter is same.... and I tested ble app uart example in sdk. It also takes 1 sec. I think that there are big different nrf51 and nrf52. for now I dont have idea. parameter... or etc...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 slow rx characteristic time</title><link>https://devzone.nordicsemi.com/thread/219906?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 13:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:460d0901-a9e1-426c-a3cd-956016a03eb2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I believe this might be due to different connection parameters (intervals, etc.) in the two SDKs. I think this was done to minimize the current consumption, which causes events to be a bit longer. You can try setting the same connection parameters for both devices and compare, to see if this is correct.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>