<?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>Unreliable Central Connection on BLE Relay</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41324/unreliable-central-connection-on-ble-relay</link><description>I am working on a project where an nRF52 is a multi-role BLE device. It is an advertising Peripheral, to which smartphones can connect, and a Central which scans for and connects to up to 3 accessories. Let&amp;#39;s call the multi-role device the Hub, and its</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Dec 2018 11:09:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41324/unreliable-central-connection-on-ble-relay" /><item><title>RE: Unreliable Central Connection on BLE Relay</title><link>https://devzone.nordicsemi.com/thread/161169?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 11:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0039a05-dbca-41cf-9552-7c357abd91da</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="another_noob"]I read endnode&amp;#39;s comment in one question, I can&amp;#39;t find it right now, but I think she said to lower both the scan interval and scan window in order to make scheduling easier[/quote]
&lt;p&gt;I am not so sure if reducing both scan interval and scan window will help. The trick is to keep the scan window as minimal as possible (at the same time not too low that it missed the adv packets all the time). It is your architect who needs to balance these values correctly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="another_noob"] would like to detect most advertising packets, as one of the Accessories only advertises every 5 seconds to save power. [/quote]
&lt;p&gt;I think in that case the trick here is to keep the scan interval and scan window NOT a perfect divisor of 5 seconds, to avoid the risk of scan window missing the advertising interval always at the same time keep the scan window large enough to capture the adv packet.&lt;/p&gt;
[quote user="another_noob"]Can you suggest parameters that might make sense, ie should I stick with 50% duty cycle, but a smaller time window and interval, or change the scanner duty cycle? [/quote]
&lt;p&gt;&amp;nbsp;I would suggest you to attach the problem by freeing up space.&lt;/p&gt;
&lt;p&gt;On your peripheral role , try to keep maximum possible intervals. So your peripheral having adv interval of 200ms and a connection interval close to 80-170ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;for the scanner,&amp;nbsp;maybe you can keep 190 ms scan interval and 95 ms of scan window (since advertisers normally has 0-10ms random adv delay) we can make sure that the scan window have higher probability on overlapping with adv packets.&lt;/p&gt;
&lt;p&gt;Also keep the connection interval for the connections with the accessories as large as possible if the data throughput is not the highest priority. I cannot suggest any numbers here as I do not know what your system is trying to do. Your system architect will be able to answer this for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unreliable Central Connection on BLE Relay</title><link>https://devzone.nordicsemi.com/thread/160814?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 22:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5892be80-3bbf-4ccc-94d0-1accc194cf9d</guid><dc:creator>Collin</dc:creator><description>&lt;p&gt;Ok, thanks for the guidance. I have tested with the app, Hub, and 2/3 peripherals, and there is a noticeable performance improvement.&lt;/p&gt;
&lt;p&gt;Now I am wondering, what is the relation between MTU, event length, and packet size? I imagine that if I have Event Length small, it will have to fragment larger packets, but am not sure.&lt;/p&gt;
&lt;p&gt;We are looking for low power, low data rate, but low latency commands between Hub and Accessories. Accessories are battery powered but Hub is not, so Hub to phone link doesn&amp;#39;t need to be low power.&lt;/p&gt;
&lt;p&gt;I read endnode&amp;#39;s comment in one question, I can&amp;#39;t find it right now, but I think she said to lower both the scan interval and scan window in order to make scheduling easier. After reading the SD specification on Scheduling, I see how this could happen, because the long scanning windows will take lots of time. I would like to detect most advertising packets, as one of the Accessories only advertises every 5 seconds to save power. Can you suggest parameters that might make sense, ie should I stick with 50% duty cycle, but a smaller time window and interval, or change the scanner duty cycle? I understand that the scan window duty cycle can only get so high before it and the connections run out of time to be scheduled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unreliable Central Connection on BLE Relay</title><link>https://devzone.nordicsemi.com/thread/160811?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 21:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90e338ea-1a1f-4435-a02c-f91396288d1b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Collin,&lt;/p&gt;
&lt;p&gt;Please choose the event length wisely based on the size of the maximum packet size you send and how many packets per connection interval you want to have.&lt;/p&gt;
&lt;p&gt;If throughput is not the most important thing for you, then like you said, you can have the event_length configured to be small.&lt;/p&gt;
&lt;p&gt;Also note that the scanner part of the Hub is using the radio 50% of the time. That is only the rest 50% of the time is left for connections and the peripheral role on the hub. I do not think that you are missing anything related to prioritizing as this is taken care by the softdevice itself on which event to prioritize and the applications have no control on that. I think you need to draw a time chart and layout your events in it to see if three peripheral roles + scanner role with those connection perameters are having too many conflicts in terms of the timeline competing for the radio..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>