<?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>Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106512/create-connection-is-too-slow-when-ble-mesh-enable</link><description>nrf connect SDK 2.1.0 
 We use the nrf5340, and I found that once we enable the BLE mesh function, the speed of establishing a connection becomes very slow 
 Our APP still need to uses the GATT NUS service to access data. 
 I have adjusted the parameters</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jan 2024 13:22:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106512/create-connection-is-too-slow-when-ble-mesh-enable" /><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/462504?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 13:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eefc8ea-4bbb-449c-8df2-8e8fe4a2534c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been out of office due to the Christmas Holidays so I haven&amp;#39;t seen your previous reply before now.&lt;/p&gt;
[quote user="delta lucent"]How to fine tune BEACON_THRESHOLD and time_diff?[/quote]
&lt;p&gt;This question does not make sense as the Beacon Threshold is defined from the specification and time_diff is the actual time lapsed since the message has been sent&lt;/p&gt;
[quote user="delta lucent"]If I mark that, do we have any risk&amp;nbsp;to&amp;nbsp;ble mesh network?[/quote]
&lt;p&gt;You should be careful with changing things in the stack unless you&amp;#39;re very certain that it does not void the specification, which in turn may result in firmware that is unable to be qualified as a Mesh product. You&amp;#39;ve mentioned this in your previous reply, so I&amp;#39;m just verifying your statement for you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still have it available, I would like to see the entire .pcap from my previous inquiry&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/462400?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 07:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4fc6509-a40f-4302-8121-337382455bb7</guid><dc:creator>lightspring</dc:creator><description>&lt;p&gt;Hi Ahuag&lt;/p&gt;
&lt;p&gt;If I mark that, do we have any risk&amp;nbsp;to&amp;nbsp;ble mesh network?&lt;/p&gt;
&lt;p&gt;/*if (time_diff &amp;lt; (120 * MSEC_PER_SEC) &amp;amp;&amp;amp;&lt;br /&gt; (time_diff &amp;lt; BEACON_THRESHOLD(sub) ||&lt;br /&gt; time_since_last_recv &amp;lt; (10 * MSEC_PER_SEC))) {&lt;br /&gt; return false;&lt;br /&gt; }*/&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/461886?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2023 02:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7105e118-c7ae-4558-add3-b35af7676294</guid><dc:creator>lightspring</dc:creator><description>&lt;p&gt;Hi AHuag&lt;/p&gt;
&lt;p&gt;My product don&amp;#39;t have open extend advertising, it maybe wireshark ble packet configuration issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found a part of code in&amp;nbsp;zephyr/subsys/bluetooth/mesh/beacon.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static bool secure_beacon_send(struct bt_mesh_subnet *sub, void *cb_data)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;......&lt;/p&gt;
&lt;p&gt;time_diff = now - sub-&amp;gt;beacon_sent;&lt;br /&gt; time_since_last_recv = now - sub-&amp;gt;beacon_recv;&lt;br /&gt; if (time_diff &amp;lt; (600 * MSEC_PER_SEC) &amp;amp;&amp;amp;&lt;br /&gt; (time_diff &amp;lt; BEACON_THRESHOLD(sub) ||&lt;br /&gt; time_since_last_recv &amp;lt; (10 * MSEC_PER_SEC))) {&lt;br /&gt; return false;&lt;/p&gt;
&lt;p&gt;.....&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That should be the root cause, it maybe traffic concern to skip new secure beacon send&lt;/p&gt;
&lt;p&gt;I mark this part of code, the &amp;quot;create connection&amp;quot; process speed up as my expectation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I&amp;#39;m afraid it may cause the new issues , could you have any suggestion about that?&lt;/p&gt;
&lt;p&gt;How to fine tune BEACON_THRESHOLD and time_diff?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/461614?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 15:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0e2d4a-0864-47a0-9733-93aa0388dff4</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the snippet of the trace.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Could you provide me with the entire .pcap and not just the snippet?&lt;/li&gt;
&lt;li&gt;What&amp;nbsp; you&amp;#39;ve marked in blue is not the secure beacon as far as I can see. It is just extended BLE advertising.
&lt;ol&gt;
&lt;li&gt;Do you have extended advertisement in your application, or is it your sniffer picking up something else?&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;It could be that the sniffer does not support the AD data-types that Mesh uses and that the sniffer thinks that theese messages are wrong due to that.&lt;/li&gt;
&lt;li&gt;You have some &amp;quot;Empty PDU&amp;quot; packs here indicating that you have a connection running&lt;/li&gt;
&lt;li&gt;It could be that there are conflicts with extended advertisement and Mesh i.e that the increase in connection is to be expected due to the amount of radio usage both extended BLE advertisement and Mesh requires&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/461350?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 01:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c649ce-15fc-4699-aa7b-bc0539793d76</guid><dc:creator>lightspring</dc:creator><description>&lt;p&gt;Hi Ahaug&lt;/p&gt;
&lt;p&gt;I use wireshark to record the timeline , for your reference&lt;/p&gt;
&lt;p&gt;This is snapshot of provisioned secure mesh beacon (blue ground part)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703122513134v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In other way, I provide unsecure mesh beacon too&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1703122589230v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I hope we can speed up connection time of my provisioned device.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/460960?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 07:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d020acc9-71f5-4da4-a74c-8bebcb85847c</guid><dc:creator>lightspring</dc:creator><description>&lt;p&gt;OK , I will provide to you in later days&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/460609?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 15:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cd8fa74-732a-4532-b5a3-ab20ab8d9399</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="delta lucent"]Is it because the beacon appears intermittently?[/quote]
&lt;p&gt;That may be the cause, but I will have to double check somethings&lt;/p&gt;
&lt;p&gt;Could you provide a sniffer trace where you track the communication and activity for BLE connection?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/459857?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 08:25:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e228a9c-a003-45f9-95fb-164858655a5f</guid><dc:creator>lightspring</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/902afe5d_2D00_0ab6_2D00_446c_2D00_a22a_2D00_6efe15dc2b3c.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I use nrf connect to scan secured beacon,&lt;/p&gt;
&lt;p&gt;I found this beacon is&amp;nbsp;&lt;span&gt;intermittent.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it because the beacon appears intermittently?&lt;br /&gt;As a result, the mobile APP cannot quickly establish a connection.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/459811?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 01:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4973ca2a-2751-4c58-909a-5383c81b32c4</guid><dc:creator>lightspring</dc:creator><description>&lt;p&gt;Hi AHaug&lt;/p&gt;
&lt;p&gt;My project use sensor model and this model has 10 elements&lt;/p&gt;
&lt;p&gt;The publishing interval of sensor server &amp;nbsp;is 10 seconds&lt;/p&gt;
&lt;p&gt;In this condition, we need to take 3+ secound to establish connection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But if I remove&amp;nbsp;mesh function from prj.conf, it always take in 1 second.&lt;/p&gt;
&lt;p&gt;It is very fast, user can&amp;#39;t feel the connection latency.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create connection is too slow when BLE mesh enable</title><link>https://devzone.nordicsemi.com/thread/459719?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 14:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:160f7bfd-e2d6-49d2-b5be-dcc14f20b75f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you state how long time it takes to establish a connection without Mesh as a reference?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Depending on how much activity there are in the Mesh network it may take longer or shorter time to establish the connection.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>