<?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>nRF52840 relay LPN data over Friend node</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58626/nrf52840-relay-lpn-data-over-friend-node</link><description>Hi, 
 I am using the nrf5 SDK for Mesh v4.0, 
 Windows 10, 
 4 DevKits PCA10056. 
 
 I have 2 DevKits as LPN (from the experimental_lpn example) and 2 DevKits as FNs (friend nodes) (from light_switch/server example). They all communicate in the same network</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Mar 2020 10:38:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58626/nrf52840-relay-lpn-data-over-friend-node" /><item><title>RE: nRF52840 relay LPN data over Friend node</title><link>https://devzone.nordicsemi.com/thread/237994?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 10:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c07b9389-84a5-43a4-af61-9d5c2f8a88f3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Brocc,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1. Each LPN has to establish a friendship with a friend node. If the LPNs have friendship with FN[2] it doesn&amp;#39;t matter where FN[1] is if it&amp;#39;s still in the network range, it&amp;#39;s can receive the data from LPNs. However, if the LPNs have the friendship with FN[1] and FN[1] move out of range of the LPNs. Then the LPNs will be disconnected from the network. Until it establish a new friendship with FN[2] (the friendship with FN[1] will timed out after a while)&lt;/p&gt;
&lt;p&gt;In our stack this re-initialize friendship is not done automatically you need to do it in the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q2. You can check the function&amp;nbsp;generic_onoff_state_set_cb(). It&amp;#39;s the function that call&amp;nbsp;onoff_state_value_update() to print the log. Inside&amp;nbsp;&lt;span&gt;generic_onoff_state_set_cb() you can find&amp;nbsp;p_meta that contain the&amp;nbsp;src - source address of the packet. It will show which LPN sends the data.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Q3. You can configure the LPN to send the data to a group address which your gateway subscribe to. It doesn&amp;#39;t matter which FN it connect to, as long as it has established a friendship with a FN in range, it can send data to the whole network.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>