<?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>Check valid source in client status callback for server status message</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36543/check-valid-source-in-client-status-callback-for-server-status-message</link><description>In the On Off Client Model in the nRF5 SDK for Mesh 15.0.0 (nRF5-SDK-for-Mesh/models/simple_on_off/src/simple_on_off_client.c) there is a check in the client callback handler handle_status_cb () for a valid source address. 
 According to the comment of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Mar 2019 11:56:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36543/check-valid-source-in-client-status-callback-for-server-status-message" /><item><title>RE: Check valid source in client status callback for server status message</title><link>https://devzone.nordicsemi.com/thread/179210?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 11:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcd3b646-67ff-44ac-8aec-db93a7d36d61</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes it&amp;#39;s a unacknowledge message. But we are checking if the unacknowledge message was from the server&amp;nbsp;that we expected to receive that status or not.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check valid source in client status callback for server status message</title><link>https://devzone.nordicsemi.com/thread/178199?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 20:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c9315f0-720f-41c1-b4a6-75036ebc7845</guid><dc:creator>qmorrison</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m a little confused here... From the Bluetooth Model Spec:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1553545169178v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;According to the spec, a Status message is an unacknowledged message, aka NOT a reliable message...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check valid source in client status callback for server status message</title><link>https://devzone.nordicsemi.com/thread/140652?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 11:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fd63c8c-0d15-4284-968c-2955b722e422</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Armin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are right. We will ignore the message if it&amp;#39;s not from the publication address of the client. It&amp;#39;s only because in our design we&amp;nbsp;don&amp;#39;t plan to process status from a group address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess&amp;nbsp;it wouldn&amp;#39;t harm to process all packets sent to the subscribed group addresses or the unicast address of the client.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically the&amp;nbsp;is_valid_source() can be removed. We will check with the Mesh team to see if it&amp;#39;s really needed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check valid source in client status callback for server status message</title><link>https://devzone.nordicsemi.com/thread/140554?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 15:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ade74b9-9c28-4adc-88a4-22dee1c9679d</guid><dc:creator>Armin</dc:creator><description>&lt;p&gt;That&amp;#39;s exactly what I do: my client waits for a status broadcast from a server. Both client subscription and server publication are configured to the same group address. Server sends the status using the function generic_on_off_server_status_publish() from the Generic On Off Server Model. This leads to a call of the mentioned function handle_status_cb() in the Generic On Off Client Model.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check valid source in client status callback for server status message</title><link>https://devzone.nordicsemi.com/thread/140531?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 13:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92ea2b14-60d6-4205-a391-5193cb8f43d6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Armin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sending reliable message to a group address is not recommended by spec.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;If an element transmits a message to more than one element, for example it has set the destination address to a group address, the element may not know how many elements may respond to the message. It is not recommended to send an acknowledged message to the all-nodes address. To increase the probability of successful delivery of messages, the sending element should determine how many message retransmissions are required before it considers that all the nodes that should have received the message have actually received it.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Instead the client&amp;nbsp;can wait for a status broadcast from&amp;nbsp; servers. The server can be configured to send automatically after receiving a non-reliable message from the client.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>