<?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>Questions about Connection Event Length and Notification on Peripheral Devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74650/questions-about-connection-event-length-and-notification-on-peripheral-devices</link><description>According to this post it seems clear that a peripheral device cannot set the connection event length in a given connection (and only has mild influence on the connection interval through the connection parameter update procedure request ). However, according</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 May 2021 16:56:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74650/questions-about-connection-event-length-and-notification-on-peripheral-devices" /><item><title>RE: Questions about Connection Event Length and Notification on Peripheral Devices</title><link>https://devzone.nordicsemi.com/thread/307999?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 16:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:655db078-6230-4409-a8c0-8092a03bc948</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Am I correct that there is no way to influence the connection event length from a peripheral device?[/quote]
&lt;p&gt;You cannot configure the &amp;quot;connect event length&amp;quot; the central uses from a peripheral device. But you can request a different connection interval, and that might have some indirect effects on the&amp;nbsp;&amp;quot;connect event length&amp;quot; the central&amp;nbsp;uses.&lt;/p&gt;
[quote user=""]Are there more settings and should I be setting both of these even on a peripheral device[/quote]
&lt;p&gt;If you only have a 1-to-1 connection, i.e., your peripheral is a peripheral-only, and only connected to 1 central, then yes, set these configs in order to&amp;nbsp;maximum the&amp;nbsp;throughput&amp;nbsp;potential.&lt;/p&gt;
[quote user=""]If the central device only has a single connection to my peripheral, can I reasonably expect that the central will use 100% of the connection interval (assuming my peripheral has data to send)? [/quote]
&lt;p&gt;&amp;nbsp;If the central is not doing scanning at the same time, then yes, I would expect that it would allocate most of the time between connection intervals to send/receive data to/from your peripheral. But there is a lot of variation between centrals, e.g. some phones might limit the amount of packets sent each connection event.&lt;/p&gt;
[quote user=""]If my peripheral is currently engaged in a connection event (let&amp;#39;s say that there are several packets queued&amp;nbsp;to send to the master for this event) and I queue a notification using sd_ble_gatts_hvx() during the ongoing connection event but well before the connection event is over, will this newly queued notification be sent in the currently&amp;nbsp;ongoing connection event (assuming there is still time available in the connection event length)?[/quote]
&lt;p&gt;&amp;nbsp;You should be able to send these packets in the currently ongoing connection event.&lt;/p&gt;
&lt;p&gt;If you want to do some testing here, I recommend using the nRF Sniffer to see what happens on-air:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>