<?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>Interaction between LPN and Friend in a Mesh.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73682/interaction-between-lpn-and-friend-in-a-mesh</link><description>I am new to BLE and I have some question regarding Mesh and LPN which we cannot get a consistent result : 
 
 Assuming in a Mesh set up there are 2 Relay units (simply refer to as Friend#1 and Friend#2 here) spread out over, say, a home, and 2 Devices</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Apr 2021 13:44:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73682/interaction-between-lpn-and-friend-in-a-mesh" /><item><title>RE: Interaction between LPN and Friend in a Mesh.</title><link>https://devzone.nordicsemi.com/thread/303805?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 13:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d86c94bc-d62f-4c8a-bbc7-3b01397c5609</guid><dc:creator>Art Wong</dc:creator><description>&lt;p&gt;Thanks a lot.&amp;nbsp; Will study carefully.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By the way, I believe &amp;quot;&lt;span&gt;If the device fails to get any response from the Friend node, the Bluetooth mesh stack will terminate the friendship.&amp;quot; you mean the &amp;quot;LPN&amp;#39;s&amp;nbsp;Bluetooth mesh stack&amp;quot; (i.e. the LPN will initiate the termination).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction between LPN and Friend in a Mesh.</title><link>https://devzone.nordicsemi.com/thread/303774?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 12:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ad05a6-b1c6-491d-a289-cf9b1560123a</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;I think most of your questions can be answered by looking into this article about LPN and friendship: &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_lpn_concept.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_lpn_concept.html&lt;/a&gt; &lt;br /&gt;And reading about LPN in the Bluetooth Mesh specification.&lt;/p&gt;
[quote user=""]If LNP totally out of Friend#1 range, will the LPN “automatically” make Friend with Friend #2 ?&amp;nbsp; If “yes”, what would happened to the “friendship” between the LPN and Friend#1 (terminated by Friend#2 automatically and immediately, or, Friend#1 terminate friendship with LNP after time out ?).[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;The LPN will search for a new friend. If the device fails to get any response from the Friend node, the Bluetooth mesh stack will terminate the friendship.&lt;/div&gt;
&lt;p&gt;&lt;span dir="ltr"&gt;&amp;quot;PollTimeout &lt;/span&gt;&lt;span dir="ltr"&gt;timer &lt;/span&gt;&lt;span dir="ltr"&gt;is used to measure time between &lt;/span&gt;&lt;span dir="ltr"&gt;two consecutive &lt;/span&gt;&lt;span dir="ltr"&gt;requests&lt;/span&gt;&lt;span dir="ltr"&gt; sent by the Low Power &lt;/span&gt;&lt;span dir="ltr"&gt;node. &lt;/span&gt;&lt;span dir="ltr"&gt;If no &lt;/span&gt;&lt;span dir="ltr"&gt;requests are received by the Friend node &lt;/span&gt;&lt;span dir="ltr"&gt;before the &lt;/span&gt;&lt;span dir="ltr"&gt;PollTimeout&lt;/span&gt;&lt;span dir="ltr"&gt; timer expires&lt;/span&gt;&lt;span dir="ltr"&gt;, then the &lt;/span&gt;&lt;span dir="ltr"&gt;friendship is considered &lt;/span&gt;&lt;span dir="ltr"&gt;terminated.&amp;quot; it&amp;#39;s explain in the Bluetooth Mesh model specification you can download from the Bluetooth website:&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/specs/?status=active&amp;amp;keyword=mesh&amp;amp;filter="&gt;https://www.bluetooth.com/specifications/specs/?status=active&amp;amp;keyword=mesh&amp;amp;filter=&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]If LNP “not” totally out of Friend#1 range but very close to Friend#2 (thus the signal from Friend#2 is much stronger), will the LPN automatically make Friend with Friend #2 or stay with Friend#1 ?[/quote]
&lt;p&gt;&amp;nbsp;The LNP will stay with the last node it made a friendship with, signal strenght doesn&amp;#39;t play a role here.&amp;nbsp; &lt;/p&gt;
[quote user=""]If there are messages cache in Friend#1 not yet Poll by LPN, what will happen to those messages ? (considering the above 2 cases)[/quote]
&lt;p&gt;&amp;nbsp;Messages in cache in friend # 1 and are not yet delivered will be lost, including messages that are SAR acknowledged. &lt;/p&gt;
[quote user=""]If LPN send a message that requires “acknowledgement”. What is the best way to do it ?&amp;nbsp; Go to sleep and let the Friend cache the acknowledgement message and then poll it later (assuming not an urgent matter that requires immediate response or re-transmission) ? &amp;nbsp;Keep the LPN’s radio on to receive message (will the acknowledge message be addressed to LPN directly thus allowing LPN to receive when radio stays on) ? &amp;nbsp;We probably have been doing some setting incorrectly and we are not getting any acknowledgement either way.&amp;nbsp; Is it better to use the App layer to create our own acknowledgment instead of using the built in acknowledgement capability ?[/quote]
&lt;p&gt;&amp;nbsp;Yes, it&amp;#39;s better to use the app layer if it&amp;#39;s important to get a correct acking. You can use a &amp;quot;model&amp;quot; to send a &amp;quot;set&amp;quot; or &amp;quot;get-&amp;quot; message and get answer with some &amp;quot;status&amp;quot;-message.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>