<?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>Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24185/peripheral-connection-event-gives-unusual-measurement-peaks</link><description>Hi all! 
 I&amp;#39;m doing some tests on throughput and power consumption on the nRF51822, using SoftDevice 130. I use an application that sends 20 bytes notifications from slave to master on a connection interval of 7.5 ms. I already measured the throughput</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Aug 2017 18:07:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24185/peripheral-connection-event-gives-unusual-measurement-peaks" /><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95244?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 18:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69feb22b-7b0d-4c57-9986-182c65ee2685</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;Okay I think I&amp;#39;m starting to get it. Thanks for helping me again Sigurd :) Slowly but steadily moving my way through the world of BLE and the Nordic way of doing it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95247?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 11:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:398c8f29-e7bd-4b71-bb26-34564033548e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you are in fact sending 8 packets per interval, then I guess this is because the increased connection interval (from 7.5 ms to 30 ms) makes it possible to fit the extra packet in the event for the S130. Notice this sentence in the BLE data throughput chapter in the spec:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The SoftDevice may transfer more
packets than reserved by the bandwidth
configuration when data transfer is
simplex (read or write only), because
extra time is available in the event
to transfer data.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95254?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 17:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae9da89-b96a-40c4-a7dc-78add6c52f47</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;Okay I think that the IPhone 7 doesn&amp;#39;t exacly give a higher throughput because I get 8 packets per interval but it seems that the minimum connection interval that the IPhone 7 supports is around 30 ms so the throughput then seems to be ((1/ 30 ms) * 1000) * 8 packets * 20 bytes * 8 = 42.67 kbps, which is much less then the maximum throughput (149.2 kbps). So I&amp;#39;m a bit more at ease now I think. Still don&amp;#39;t understand why S130 allows 8 packets per interval though...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95243?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 16:39:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9eb3f22-a4bc-4f5c-877d-0bad5cfb536a</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;After looking into the specs of the SoftDevice 130 I saw that 7 packets per interval could also be possible (giving a max of 149.2 kbps) when communication is just only the peripheral sending notifications to the central and nothing more (simplex communication). But so I don&amp;#39;t understand how the DK with s130 allows the 8 packets per interval that the IPhone 7 supports...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95245?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 15:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78f1de6e-8c71-4433-8307-acd8993450f9</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;I honestly don&amp;#39;t know what could have messed it up.. I&amp;#39;m using firmware that nRFConnect for Desktop automatically wants to install when I try to connect to the COM port that the Dongle is using. I&amp;#39;m using SDK 11 on my DK.&lt;/p&gt;
&lt;p&gt;What I also tried today is connecting an IPhone 7 as a central with the DK and with that I seem to get 8 packets per interval, which could be possible because the IPhone 7 uses a fairly new BLE chip but the DK uses SoftDevice 130 which supports max. 6 packets per interval so I don&amp;#39;t know 8 packets per interval could be possible in this connection...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95246?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 15:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc4d77bb-a462-4100-8d82-2ca7c78e5e9d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Why do you think you messed up the firmware on the dongle ? What code are you running on the dongle? Also, what SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95253?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 12:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34454311-2553-4bbd-bcff-b0ad4a147f3a</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;The data I&amp;#39;m sending needs 6 packets per interval if it is possible, I made sure of that, because I was/am testing maximum throughput with different connection intervals and compare the power consumption then as well :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95252?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 11:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d263383b-c91b-4d08-9dc3-e49bbe1fd75a</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;No no I use a nRF51822 DK as peripheral and with the same code I have done measurements with 6 packets per interval using the nRF51 Dongle as central. But since I configured the power kit (and I think the dongle did a bit weird back then so I think I messed up the firmware or ...) I seem to not get 6 packets per interval anymore. With the Dongle as central I now always get 3 per interval and with the phone as central I get 4. I&amp;#39;ll see if I can find a modern iOS device here to see if I can get 6 packets per interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95251?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 11:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd1aea3a-9a56-4dd8-aae5-c790efda796d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If the phone only supports 4 packets per interval, you won&amp;#39;t get 6 packets per interval on the link between the dongle and the phone. from this &lt;a href="https://devzone.nordicsemi.com/question/3440/how-do-i-calculate-throughput-for-a-ble-link/"&gt;post here&lt;/a&gt;, it stated that  it seems that most Android devices supports ~4 packets per interval, while most iOS devices supports up to 6 packets. But this also varies from model to model, newer android phones also support 6 packets per interval.&lt;/p&gt;
&lt;p&gt;Also make sure that you set the bandwidth configuration to high in order to ensure that the nRF51 can support 6 packets per interval. See &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v2.0.1%2Fstructble__common__opt__conn__bw__t.html"&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also note that the link will only use 6 packets per interval if it&amp;#39;s needed. I.e. if the data you are sending fits into 3-4 packets each interval, then there is no need to use 6 packets, even if it&amp;#39;s supported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95250?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 11:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a7ae26-dd5f-4085-a600-0db7bfaa1d55</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;Okay superb! Now only to solve my 6 packets per interval problem.. :( I think I found the issue, it&amp;#39;s not within my code but I think it&amp;#39;s the firmware for the dongle I use. I think I&amp;#39;m suddenly using older firmware or something because when I measure with a phone as central (that supports up to 4 packets per interval) I get 4 packets per interval. Have you heard of this issue with the nRF51 dongle before?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95249?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 11:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaaa24be-c069-4fdb-98b1-56e3156bf433</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, that will add additional current consumption!&lt;/p&gt;
&lt;p&gt;The internal pull-up and pull-down resistors on the nRF5x have a typical value of 13kohm. In order to detect button press, the buttons will be configured with internal pull-up, and when they are pressed, they will be connected to ground. If you then have supply power of 3.0 volts then the current consumption is 3/13k=230uA when the button is pressed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95248?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 11:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77bba57c-42a5-4434-8056-2d31b51c65d8</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;I think the unusual power consumption between intervals could be because I need to press and hold the button to make my application change the value of my custom characteristic. I&amp;#39;ll try to change it to press and release to start changing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95242?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 12:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a317fbaa-04e2-42a5-83ff-f4f4928865b2</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;Okay, I used to get 6 packets but now I did another throughput measure and I see I&amp;#39;m only getting 3 now per interval. Maybe I messed something up with my code or with the firmware of the dongle, I&amp;#39;ll see.&lt;/p&gt;
&lt;p&gt;Not that I&amp;#39;m really aware of. I only use a timer to make the led blink during  advertising but that&amp;#39;s normally part of the template already I think. UART I don&amp;#39;t use (didn&amp;#39;t write anything for it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95241?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 12:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:328f2764-6db3-49d5-9f4f-281fb9fca8da</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Q: But how is it that the RX and TX events each take 3 pulses instead of 1.&lt;/p&gt;
&lt;p&gt;A: You typically get 1 of these pulse for each packet sent during the event. With 3 pulses you are sending 3 packets.&lt;/p&gt;
&lt;p&gt;Q:And is it normal to have 100 - 120 µA current during the time between two intervals?&lt;/p&gt;
&lt;p&gt;A: 100 µA could be a little high, but that depends on what other peripherals that are active. Are you using the UART or TIMER ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95240?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 12:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:474bba9c-4f5e-46c6-af68-ca1807785f17</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;Hi Sigurd!&lt;/p&gt;
&lt;p&gt;Thanks for the clarification! :) We are testing some different connection intervals actually.
But how is it that the RX and TX events each take 3 pulses instead of 1? And is it normal to have 100 - 120 µA current during the time between two intervals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral connection event gives unusual measurement peaks?</title><link>https://devzone.nordicsemi.com/thread/95239?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 11:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d8a012-32a0-46b6-a989-ed9bb71890f9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The behavior looks normal to me. The radio on the nRF51 will consume ~10.5mA when in TX mode with 0dB transmit power, and with DC/DC disabled. See the table 36 in Chapter 8.5.2 page 50 in the &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.3.pdf"&gt;PS&lt;/a&gt;. Then you have the CPU consuming ~ 4.4 mA when it’s not in sleep mode. In total this will give you a peak current around 15 mA. Note that if you enable DC/DC mode, the peak current should drop with ~2.5 mA. (radio will consume 8 mA instead of 10.5 mA). Note that with such a short connection interval as 7.5 ms, the radio will be on more often and the average current consumption will naturally increase.&lt;/p&gt;
&lt;p&gt;If you are interested in current consumption on the nRF51, I recommend taking a look at &lt;a href="https://devzone.nordicsemi.com/question/5186/how-to-minimize-current-consumption-for-ble-application-on-nrf51822/"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>