<?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>Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93198/bluetooth-mesh-response-times</link><description>Hello all, 
 I&amp;#39;m currently evaluating Bluetooth Mesh as potentiell solution for a remote control system with the option to extend the range via range extenders. 
 To get an understanding of the timing conditions I created a test setup based on the chat</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Nov 2022 09:52:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93198/bluetooth-mesh-response-times" /><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/397099?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 09:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:856997d5-fe98-4de4-8a4d-48bf946c02b3</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;I actually talked to&amp;nbsp;R&amp;amp;D about&amp;nbsp;the spec yesterday and the 20-50 and 20-500ms delay was optional and not implemented. There is just a flat 20ms delay. So that still doesn&amp;#39;t explain the huge delay you have.&lt;/p&gt;
[quote user="Oliver Weitzel"]I was concerned that my implementation might be unfortunate, because&amp;nbsp;of&amp;nbsp;the enabled provisioner on the central unit. Therefore, I repeated some measurements with a slightly modified chat sample (I just added LED on/off in the corresponding callbacks to indicate transmission activities). But the measured times (message -&amp;gt; reply) are equivalent to the measurements I did with my test setup.&amp;nbsp;[/quote]
&lt;p&gt;Thank you for writing about your result. That is strange indeed. I will have to get to that one day.&lt;/p&gt;
[quote user="Oliver Weitzel"]In my test setup that basically worked fine, but I&amp;#39;m wondering whether it is possible to stop the provisioner activities (searching for unprovisioned beacons) during runtime&amp;nbsp;to save µC resources?[/quote]
&lt;p&gt;I currently don&amp;#39;t know and thus cannot answer you quickly. Since that is also a different topic from the one in this thread, do you mind creating a new one? Unless you are thinking it is the provisioner that is causing your timing to be off?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/397067?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 08:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eeaa637-a21a-4c46-8853-d28d1091d332</guid><dc:creator>Oliver Weitzel</dc:creator><description>&lt;p&gt;Hi Hieu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for the information regarding the specified times. You are right, the timings are confusing. I was concerned that my implementation might be unfortunate, because&amp;nbsp;of&amp;nbsp;the enabled provisioner on the central unit. Therefore, I repeated some measurements with a slightly modified chat sample (I just added LED on/off in the corresponding callbacks to indicate transmission activities). But the measured times (message -&amp;gt; reply) are equivalent to the measurements I did with my test setup.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know whether the shell requires too many resources and leads to time delays, but I checked already the influence of the printk function on the timing without any negative effects. I assume that counts for the shell as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I still have a question regarding the provisioner. As already written before we want to establish a network without a smart device, hence we need a provisioner device for doing this. In my test setup that basically worked fine, but I&amp;#39;m wondering whether it is possible to stop the provisioner activities (searching for unprovisioned beacons) during runtime&amp;nbsp;to save &amp;micro;C resources? I didn&amp;#39;t find a function to do this.&amp;nbsp;The goal is to allow adding units only within a defined time frame.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Oliver&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/396703?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 14:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee889bf9-29f7-44a6-b89f-9cf152691e7b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;I found this part of section 3.7.4.1 the Mesh Profile Specification that explains why a&amp;nbsp;round trip (Reply/Update cases) is way longer than two times a one-way trip (Publish, Send).&lt;/p&gt;
&lt;p&gt;Just to share with you. The&amp;nbsp;other differences&amp;nbsp;still seem strange, however. And the numbers aren&amp;#39;t adding up yet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote]If the message is sent in response to a received message that was sent to a unicast address, the node should transmit the response message with a random delay between 20 and 50 milliseconds. If the message is sent in response to a received message that was sent to a group address or a virtual address, the node should transmit the response message with a random delay between 20 and 500 milliseconds. This reduces the probability of multiple nodes responding to this message at exactly the same time, and therefore increases the probability of message delivery rather than message collisions.&lt;br /&gt;&lt;br /&gt;A node can also be configured to publish a message due to a local state change or to indicate the progress of a transition to a new state or when the transition to the new state has been completed (see Section 3.7.6.1). If the transition to a new state is caused by the user action, the device should send the status message as soon as possible. When the publication of a message is caused by a power up, the transition to a new state progress update, or to indicate the completion of the transition to a new state multiple nodes may be reporting the state change at the same time. To reduce the probability of the collision, these messages should be sent with a random delay between 20 and 500 milliseconds.[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/395003?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 20:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78e3b806-bec4-4437-8a74-d5695f50c4b5</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;To be honest, I cannot comment if there is room for improvement, since the numbers still don&amp;#39;t make sense to me...&lt;/p&gt;
&lt;p&gt;My expectation would be that message of any kind in any direction should take the same time; and the round trip should take just twice the one-way trip with some minor processing delay.&lt;/p&gt;
&lt;p&gt;However, I am new to considering the BT Mesh message timing, so I might be missing something here.&lt;/p&gt;
&lt;p&gt;For optional next steps, I recommend you to:&lt;br /&gt;- Review your experiment setup, see if your sampling points are taking in any additional processing time in between.&lt;br /&gt;- Setup some really simple firmware and&amp;nbsp;run the experiments again. Some lightly modified &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/light/README.html"&gt;Mesh Light&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/light_switch/README.html"&gt;Mesh Light Switch&lt;/a&gt;, perhaps?&lt;/p&gt;
&lt;p&gt;Of course, they are optional, since the judge, who is you, has&amp;nbsp;considered the current state acceptable.&lt;/p&gt;
&lt;p&gt;For me, I am interested in this but&amp;nbsp;can&amp;#39;t afford the effort right now, so I have put doing the same steps above into my optional-todo list&amp;nbsp;&lt;span style="font-size:75%;"&gt;(which unfortunately has not shortened for many weeks now)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Finally, I suggested&amp;nbsp;the relevant comments as the answer. If you can verify them, that would be great.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394917?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 13:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63d077c-75d9-44bb-975c-20e1adb53af4</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;Further improvements should not be expected at this point. There might be some ideas that gets implemented as part of the improvement work, but for now the results are considered good enough and returns on further work is drastically decreasing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394887?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 11:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec24e5f6-6a89-43ea-8aaf-ede2644fab2e</guid><dc:creator>Oliver Weitzel</dc:creator><description>&lt;p&gt;Hi Eirik,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I already replied to Hieu but this reply unfortunately was invalid, because I failed to configure the extended advertising mode correctly (there where some dependencies I didn&amp;#39;t resolve correctly and I had my fight with the KConfig until captured this). However, refined my test procedure and repeated the test series with the updated SDK and the correct configuration. Additionally I changed the position of my probes. One information I missed: My message payload length is constant and 4 bytes only.&lt;/p&gt;
&lt;p&gt;Here my results of the test run&amp;nbsp;&lt;/p&gt;
&lt;table dir="ltr" border="1" cellpadding="0" cellspacing="0"&gt;&lt;colgroup&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;/colgroup&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Publish&lt;/td&gt;
&lt;td&gt;Send&lt;/td&gt;
&lt;td&gt;Reply&lt;/td&gt;
&lt;td&gt;Update&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MIN&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;92&lt;/td&gt;
&lt;td&gt;178&lt;/td&gt;
&lt;td&gt;261&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MAX&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;266&lt;/td&gt;
&lt;td&gt;361&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MED&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;102&lt;/td&gt;
&lt;td&gt;198&lt;/td&gt;
&lt;td&gt;294&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AV&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;102&lt;/td&gt;
&lt;td&gt;204&lt;/td&gt;
&lt;td&gt;298&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;There is definitively an improvement. I will continue my evaluation, but this topic is for me solved for now, except you see here still room for improvement?&lt;/p&gt;
&lt;p&gt;Thanks for you support,&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Oliver&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394769?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 15:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08ae7f95-c07b-4e07-90e2-aa98edeb4163</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;How about the data length in each case? Are they all the same?&lt;br /&gt;If the data is long enough that it&amp;nbsp;has to be broken down into different packets,&amp;nbsp;then the numbers would make more sense.&lt;/p&gt;
&lt;p&gt;It is most likely not the problem here, but please also avoid having the probe wires close to the antenna. In the picture, the ground wire is very close to the tip of the antenna, which could affect the signal quite a lot.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394680?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 12:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8cb4ad9-dcc5-4953-990d-e64ce27117de</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;nRF Connect SDK v2.1.2 which was recently released should address the reported issue. We will be thankful if you could upgrade to this version and verify.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Updated by Hieu:&amp;nbsp;Please also enable&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_MESH_ADV_EXT"&gt;CONFIG_BT_MESH_ADV_EXT&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394676?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 12:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86af59f7-d99e-475d-924f-f5796d8d28f6</guid><dc:creator>Oliver Weitzel</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I updated the nRF Connect and repeated the tests with the&amp;nbsp;CONFIG_BT_MESH_ADV_EXT enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The TX output power is on both units set to 0dBm.&lt;/p&gt;
&lt;p&gt;I use a nRF52840-Preview-DK as a central and a nRF52-DK as a node (see image).&lt;/p&gt;
&lt;p&gt;&lt;img style="height:auto;max-width:480px;" alt="Test Setup" src="https://devzone.nordicsemi.com/resized-image/__size/960x0/__key/communityserver-discussions-components-files/4/PXL_5F00_20221108_5F00_115918574.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Just to define the tests clearer. The times are measured from corresponding function call to corresponding event callback, sure that includes some processing times, but the system is not really loaded, except of a couple of printk calls, and the LED and button handling. &lt;br /&gt;The button handling could create a jitter up to +10ms (due to the polling rate) at test cases 1 and 2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1: Publish (Central publishes a broadcast message to a group address)&amp;nbsp;&lt;br /&gt;2: Send (Node sends a message to the central)&amp;nbsp;&lt;br /&gt;3: Reply (Node sends a message to the central and waits for the reply as realized in the chat sample)&amp;nbsp;&lt;br /&gt;4: Update (Node sends a message to the central and waits for the broadcast message after the reply)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The times (ms) I measured after the update don&amp;#39;t seem to be as different as before.&amp;nbsp;&lt;/p&gt;
&lt;table dir="ltr" border="1" cellpadding="0" cellspacing="0"&gt;&lt;colgroup&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;/colgroup&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Publish&lt;/td&gt;
&lt;td&gt;Send&lt;/td&gt;
&lt;td&gt;Reply&lt;/td&gt;
&lt;td&gt;Update&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MIN&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;140&lt;/td&gt;
&lt;td&gt;245&lt;/td&gt;
&lt;td&gt;356&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MAX&lt;/td&gt;
&lt;td&gt;46&lt;/td&gt;
&lt;td&gt;154&lt;/td&gt;
&lt;td&gt;272&lt;/td&gt;
&lt;td&gt;371&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MED&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;146&lt;/td&gt;
&lt;td&gt;252&lt;/td&gt;
&lt;td&gt;365&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AV&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;146&lt;/td&gt;
&lt;td&gt;255&lt;/td&gt;
&lt;td&gt;364&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I see the option to speed up the update time by preventing a reply transmission after a received message, but actually I would like to have this acknowledge handling in.&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Oliver&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394506?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 15:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:182ae780-5229-42ae-8a66-4b0ca50a1b4f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;Could you please help with a few more questions?&lt;/p&gt;
&lt;p&gt;- In your cases, are all messages the same length? If they are different, what are the lengths of each message in each case?&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;Is case 4 a central&amp;gt;unit&amp;gt;central case?&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;Is it possible that some processing time is captured in your measurement? For example,&amp;nbsp;are there any processing before the central replies to a participant? The fact&amp;nbsp;case 1 and case 2 don&amp;#39;t&amp;nbsp;measure the same also doesn&amp;#39;t make sense.&lt;/p&gt;
&lt;p&gt;- Are your devices&amp;nbsp;using the same TX Power configuration?&lt;/p&gt;
&lt;p&gt;- What hardware are you making the tests on?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By the way, as of Friday last week, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/releases/release-notes-2.1.2.html#bluetooth-mesh"&gt;NCS 2.1.2 was released with some bugfix for Mesh on extended advertising&lt;/a&gt;. Could you please try again with NCS 2.1.2, while enabling &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_MESH_ADV_EXT"&gt;CONFIG_BT_MESH_ADV_EXT&lt;/a&gt;, and let me know the result?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394146?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 12:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68f2d517-276b-4f7b-9d26-0d467c94d933</guid><dc:creator>Oliver Weitzel</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;these configurations I found in the KConfig:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MESH_NETWORK_TRANSMIT_COUNT=2&lt;br /&gt;CONFIG_BT_MESH_NETWORK_TRANSMIT_INTERVAL=20&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t change these parameters during runtime (the central unit acts as provisioner, because the network should be established without a smart device).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding you comment: It is clear that the response times will become longer if the number of nodes increase. But usually we don&amp;#39;t have a lot of nodes and hops and just few node will act as repeaters. Also the number of transferred bytes is little, except of an initial synchronization.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think a response time of &amp;lt;200ms would be acceptable, but for a final decision we have to check this with a real system.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Oliver&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394136?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 12:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e43eab18-a94b-4097-badb-e39982112ac5</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Thank you, Oliver,&lt;/p&gt;
&lt;p&gt;I will consult further with some Mesh-experienced colleagues and get back to you.&lt;/p&gt;
&lt;p&gt;Meanwhile, the Retransmit configurations you got are for the&amp;nbsp;Relay feature. Can you also get these please?&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MESH_NETWORK_TRANSMIT_COUNT&lt;br /&gt;CONFIG_BT_MESH_NETWORK_TRANSMIT_INTERVAL&lt;/p&gt;
&lt;p&gt;A thing to note is that such configuration can also be changed by a node.&amp;nbsp;I can&amp;#39;t remember if it has to be a provisioner or any node can do it. If you view the Configuration Server using the nRF Mesh app for instance, you will know for sure the nodes&amp;#39; current config.&lt;/p&gt;
&lt;p&gt;By the way, I hope that you understand when deploy in field, with more 2.1GHz noises and more hops, the delay will be quite higher?&lt;br /&gt;Just want to be sure since a &amp;quot;remote control system&amp;quot; usually requires responsiveness.&amp;nbsp;Your UX people probably already have some requirements regarding maximum response time.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/394124?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 11:29:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:624dbb8c-b8f0-481d-8132-69c2ce28b740</guid><dc:creator>Oliver Weitzel</dc:creator><description>&lt;p&gt;Hi Hieu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regarding your questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I didn&amp;#39;t setup a test sequence to get statistics. I just checked single transmissions. However I repeated my measurements with some more cycles and captured the min/max delay times. I was surprised regarding the big ranges:
&lt;ul&gt;
&lt;li&gt;Case (1): From 14ms up to 86ms (measured with the scope)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Case (2): From 138ms up to 148ms&amp;nbsp;&lt;span&gt;(measured with the scope)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Case (3):&amp;nbsp;&lt;span&gt;From 350ms up to 450ms&amp;nbsp;(measured with system time)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Case (4 - reply response): From 240 up to 360&amp;nbsp;(measured with&amp;nbsp;system time)&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The send function was called only once (triggered by a button press)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;On the mesh layer I defined no retransmission for the publish message (assuming this is handled properly at the network layer). Periodic publishing has been disabled.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;I&amp;#39;m working with the latest nRF Connect SDK revision 2.1.1&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The configuration is (hopefully these are the correct cofig parameters):&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;CONFIG_BT_MESH_TX_SEG_RETRANS_COUNT=2&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;CONFIG_BT_MESH_TX_SEG_RETRANS_TIMEOUT_GROUP=20&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;CONFIG_BT_MESH_TX_SEG_RETRANS_TIMEOUT_UNICAST=200&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Currently I&amp;#39;m just working with two nodes, coming from the future application requirements these are also configured as relays&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Oliver&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/393895?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 13:25:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ecbe744-ba7a-4071-af4a-08dbf8591c29</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;Once again, I am very sorry for the long wait.&lt;br /&gt;It turns out that my approach to this case was not good, and I was going in the wrong direction.&lt;/p&gt;
&lt;p&gt;To answer your newest question:&lt;/p&gt;
[quote user="Oliver Weitzel"]A question I actually still have: Is there a definition of a typical response time I can expect (assuming we have good environment conditions, no hops and no segmented messages)?&amp;nbsp;[/quote]
&lt;p&gt;It is very complicated. What I can say is the best-case scenario&amp;nbsp;should be way lower than 250/360ms.&lt;/p&gt;
&lt;p&gt;When a node sends a message, the message is resent a number of times in the BLE Controller layer,&amp;nbsp;multiplies by a number of times in the Mesh Stack layer. Worse cases happen when your &amp;quot;Central&amp;#39;s&amp;quot; response came at an unfortunate moment where your &amp;quot;Group Unit&amp;quot; is busy repeating itself and cannot listen.&amp;nbsp;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;To better understand&amp;nbsp;whether that happened or not, could you please help with some questions?&lt;/p&gt;
&lt;p&gt;- Is the measurement the average/median of some repetitions of the experiment?&lt;/p&gt;
&lt;p&gt;- If it is done over several repetitions,&amp;nbsp;what are the typical, best-case, and worst-case of the&amp;nbsp;intervals we are talking about?&lt;/p&gt;
&lt;p&gt;- In each attempt, is the property-change message sent only once &lt;em&gt;by the application&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;- What nRF Connect SDK version are you using?&lt;/p&gt;
&lt;p&gt;- What is the Network Transmit configuration of the nodes involved? (Transmit Count and Transmit Interval)&lt;/p&gt;
&lt;p&gt;- Are there only two nodes in your experiment, or are there more relay nodes nearby?&lt;/p&gt;
&lt;p&gt;Edit*: undeleted draft points, already addressed above:&amp;nbsp;&lt;span style="text-decoration:line-through;"&gt;There are message &amp;quot;repeat&amp;quot; mechanisms in the&amp;nbsp;stack. And while a node is transmitting its message or relaying another&amp;#39;s it cannot listen.&amp;nbsp;An unfortunate combination of these&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/393724?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 15:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:104a465e-dde7-4acd-a34e-c6f686db0aa1</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;Sorry for the long time without follow-up. I just want to let you know that I have been looking into the details of the known issue Eirik talked about, and the technical reasons of that limitation.&lt;/p&gt;
&lt;p&gt;I hope to return with more details by end of tomorrow.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/392836?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 12:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c356cc5f-450e-42d6-a90f-3f0dc226d32f</guid><dc:creator>Oliver Weitzel</dc:creator><description>&lt;p&gt;Hi Hieu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;an additional information I can add is the response time of the reply. Here I measured ~250ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A question I actually still have: Is there a definition of a typical response time I can expect (assuming we have good environment conditions, no hops and no segmented messages)?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Oliver&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/392547?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 09:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33bc365d-9e10-49ec-86fd-cbfa2c34ccc0</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;Hi Oliver,&lt;/p&gt;
&lt;p&gt;Thanks for reporting the finding and providing the details. The description corresponds well with an issue that is already reported and which we are working on internally. A fix for the issue will be available in the next nRF Connect SDK. We don&amp;#39;t provide dates publicly, but you should be notified when it is available.&lt;/p&gt;
&lt;p&gt;I suggest you continue to inform Hieu about the issue so we can be sure we are in fact adressing the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/392529?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 08:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e54458f4-7e79-4b73-bc00-652091cad7ce</guid><dc:creator>Oliver Weitzel</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;first I have to correct a statement: The send time (case 2) wasn&amp;#39;t 20ms. Here actually I measured various times between ~120ms and ~150ms.&lt;/p&gt;
&lt;p&gt;The times I determined with an oscilloscope. I captured a button press on the sender side which starts a transmission and on the receiver side I captured a LED signal change that indicates the reception.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The complete system update time (case 3) I measured on the system with the system cycle time by calculating the difference of a start and stop time get with&amp;nbsp;&lt;span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;k_cycle_get_32()&lt;/span&gt;. This correlates with measurement I did with the scope as in the other cases.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Oliver&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Response Times</title><link>https://devzone.nordicsemi.com/thread/392318?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 08:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d19b732f-d2e3-4236-97cc-560568411d34</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Oliver Weitzel,&lt;/p&gt;
&lt;p&gt;It is a very interesting question you&amp;nbsp;got today. Before we begin, could you please let me know what&amp;nbsp;your method of measuring these time intervals is?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>