<?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>Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113706/connection-parameter-optimize-nrf52840-central-multilink-with-8x52832-peripherals</link><description>Hi all, 
 I&amp;#39;m developing a multilink system with 52840 dongle as central and 8 52832 devices as peripherals, which is similar to previous project in thread part I &amp;amp; Part II . 
 8 peripherals are exactly the same and generates 172Bytes/each device every</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2024 08:18:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113706/connection-parameter-optimize-nrf52840-central-multilink-with-8x52832-peripherals" /><item><title>RE: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/505667?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 08:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95694cec-a6e0-434c-9802-1385d18c6a01</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;With&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH=3 (in 1.25ms units), you have 8*3,75 = 30ms, then you have the scanner on top of that.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;NRF_BLE_SCAN_SCAN_WINDOW = 16 (in 0.625 ms units) -&amp;gt; 10ms , with&amp;nbsp;tScanReserved ~1ms, you should have a connection interval of at least 41ms when you have 8 connections running + the scanner running.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/497270?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 06:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be08e2ed-959f-42f7-b70b-4414f54936aa</guid><dc:creator>Avadacadabara</dc:creator><description>&lt;p&gt;Plus following snippet is current scan parameters on my Central, is there any conflicts between connection event and scanning event?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2063.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/497269?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 06:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a87b1c-7de3-4107-a101-4e2d7caac624</guid><dc:creator>Avadacadabara</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried to set Central GAP_EVENT_LENGTH to 3 but seems like the disconnection is getting worse. Then I set both Central and Peripheral&amp;nbsp;&lt;span&gt;GAP_EVENT_LENGTH&amp;nbsp;to 24 and it could hold connection quite a long time in range of 2 meters. But when I try to move further (3m), they could still hold for several minutes. Then first come the throughput unstablization, followed with massive disconnection and reconnection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve already turn on DLE for all Central and peripherals.&lt;/span&gt;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/113706/connection-parameter-optimize-nrf52840-central-multilink-with-8x52832-peripherals/497149"]PS: Connection Event Length Extension could also be helpful for the&amp;nbsp;&lt;span&gt;throughput:&lt;/span&gt;[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/497149?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 12:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74f96a6d-9efb-47e1-b63a-4d2cf7ea209e</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Avadacadabara"]Then should I remain Peripherals to 6 or change them to 24(which equals to 30ms)?[/quote]
&lt;p&gt;If the &lt;span&gt;peripherals only connect to 1 central, then y&lt;/span&gt;ou could increase it to 24.&lt;/p&gt;
&lt;p&gt;PS: Connection Event Length Extension could also be helpful for the&amp;nbsp;&lt;span&gt;throughput:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/extend_connection_event.html"&gt;https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/extend_connection_event.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    ble_opt_t  opt;

    memset(&amp;amp;opt, 0x00, sizeof(opt));
    opt.common_opt.conn_evt_ext.enable = 1;

    err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_EVT_EXT, &amp;amp;opt);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/497139?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 11:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860b147e-3c41-433c-bda8-dc76345d92e0</guid><dc:creator>Avadacadabara</dc:creator><description>&lt;p&gt;Peripherals are set to 6(7.5ms) and Central is set to 80.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/113706/connection-parameter-optimize-nrf52840-central-multilink-with-8x52832-peripherals/497137"]Do you have&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&amp;nbsp;set to 80 on the central as well ?&lt;/span&gt;[/quote]
&lt;p&gt;So you were saying I should set &lt;strong&gt;Central&amp;nbsp;&lt;/strong&gt;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH to 3. Then should I remain Peripherals to 6 or change them to 24(which equals to 30ms)?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/497137?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 11:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c2aac40-2f71-49ce-be8f-468d5c72830e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Do you have&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&amp;nbsp;set to 80 on the central as well ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you have a connection interval of 30ms, and 8 links, try setting it to 30/8= 3.75 ms. It&amp;#39;s in&amp;nbsp;1.25 ms units, so 3,75/1,25=3&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;so try to set&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH&amp;nbsp; to 3 on the central&amp;#39;s sdk_config.h, and see if the&amp;nbsp;behavior&amp;nbsp;changes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See this link for more info:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/suggested_intervals_windows_s132.html"&gt;https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/suggested_intervals_windows_s132.html&lt;/a&gt;&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: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/497131?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 10:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5712b774-c098-444a-85e2-aca74d6c2272</guid><dc:creator>Avadacadabara</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;Yes I tried the same setting on 52840 DK, 52840 dongle and custome board.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/113706/connection-parameter-optimize-nrf52840-central-multilink-with-8x52832-peripherals/497128"]1) Are you testing this with custom board or DK ? If you are using custom board, do you see the same behavior with nRF52840-DK?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Current GAP_EVENT_LENGTH is 80(this is for 80ms connection interval condition I previous set, and remain untouched when change to 30ms interval).&amp;nbsp;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/113706/connection-parameter-optimize-nrf52840-central-multilink-with-8x52832-peripherals/497128"]2) What is your&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH value in sdk_config.h?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If TOTAL_LINK_CNT is set to 1 then it won&amp;#39;t happen. This only happens in multilink applications.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/113706/connection-parameter-optimize-nrf52840-central-multilink-with-8x52832-peripherals/497128"]Does this happen when there are only 1 device connected? or do you need to connect all&amp;nbsp;&lt;span&gt;8 peripherals&amp;nbsp;for this to happen?&lt;/span&gt;[/quote]
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameter optimize: nRF52840(central) multilink with 8x52832 peripherals</title><link>https://devzone.nordicsemi.com/thread/497128?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 10:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54317bf2-f374-4d01-a2b3-57408c6f2f83</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;1) Are you testing this with custom board or DK ? If you are using custom board, do you see the same behavior with nRF52840-DK?&lt;/p&gt;
&lt;p&gt;2) What is your&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH value in sdk_config.h?&lt;/p&gt;
&lt;p&gt;3)&amp;nbsp;&lt;/p&gt;
[quote user=""]stability seems very sensitive to distance. [/quote]
&lt;p&gt;Does this happen when there are only 1 device connected? or do you need to connect all&amp;nbsp;&lt;span&gt;8 peripherals&amp;nbsp;for this to happen?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>