<?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>Reliable messages with long timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58199/reliable-messages-with-long-timeout</link><description>Hello, 
 Mesh SDK 4.0.0, PCA10040 x2 
 I want to develop next models: 
 
 Scan server: Waiting GET message with arguments, scan BLE beacons and reply STATUS message with results backward; 
 Scan client: Send GET message (with scan filter arguments) and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Feb 2020 10:49:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58199/reliable-messages-with-long-timeout" /><item><title>RE: Reliable messages with long timeout</title><link>https://devzone.nordicsemi.com/thread/236217?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 10:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4965310-af3f-4164-8f06-32737e2e35ce</guid><dc:creator>Batov</dc:creator><description>&lt;p&gt;I am using &lt;em&gt;nrf_ble_scan_start &lt;/em&gt;for scan BLE beacons around server side device. It takes more time than expected for STATUS message with ack.&lt;/p&gt;
&lt;p&gt;I am &lt;em&gt;using access_reliable_t.timeout field too (at&amp;nbsp;&lt;span&gt;light switch client example&lt;/span&gt; you copy &lt;span&gt;MODEL_ACKNOWLEDGED_TRANSACTION_TIMEOUT there&lt;/span&gt;). Look at my first code sample at 17 line. But &lt;span&gt;calculate_interval()&lt;/span&gt; ignores it because calculated interval (based on &lt;span&gt;ACCESS_RELIABLE_INTERVAL_DEFAULT and the TTL&lt;/span&gt;) less than timeout.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Change &lt;span&gt;ACCESS_RELIABLE_INTERVAL_DEFAULT will help me, but I want to avoid modiging network stack.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;Skipping access_reliable is suitable case for me. &lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;Then again, I can add duplicate messages barrier on server model side.&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;Thanks a lot for you answer. It&amp;#39;s very useful for me. You prove my points!&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reliable messages with long timeout</title><link>https://devzone.nordicsemi.com/thread/236019?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 14:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa68f01-0e52-4dc8-8004-d2f742e6540c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Batov,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you explain a little bit more on &amp;quot;&lt;span&gt;scanning at server is not so fast operation.&amp;quot;&amp;nbsp; ? Are you limiting the scanning window&amp;nbsp; ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can configure the reliable message timeout&amp;nbsp;by defining MODEL_ACKNOWLEDGED_TRANSACTION_TIMEOUT (usually inside nrf_mesh_config_app.h) . This is the valued used when calling&amp;nbsp;access_model_reliable_publish() in our light switch client example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The access_reliable library automatically schedule a retransmission for reliable message with the interval calculated in&amp;nbsp;calculate_interval(). It&amp;#39;s based on&amp;nbsp;ACCESS_RELIABLE_INTERVAL_DEFAULT and the TTL value.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can adjust the timeout and the interval to fit better with your network configuration.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another option is to use the access layer directly and skip the access_reliable.c library. This way you can choose what you want to do with the reliable message.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>