<?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>how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27343/how-to-set-mesh-model-publish-address-to-a-client-model-which-is-on-other-mesh-node</link><description>I have three mesh nodes in a mesh network, a provisioner, a vendor server model, and a vendor client model. 
 I know that a provisioner can set client model publish address to a server model address via access_model_publish_address_set(...) if the client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Feb 2018 11:19:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27343/how-to-set-mesh-model-publish-address-to-a-client-model-which-is-on-other-mesh-node" /><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/119716?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 11:19:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96ce51dd-b194-4c36-9f53-55dd802ab42c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, if you are planning to change the publication address of a server remotely, you should call&amp;nbsp;config_client_server_set() for each node. This basically change the publication address of the config client.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If you want to change the publication address of a model on a node locally, you can call&amp;nbsp;access_model_publish_address_set()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/119696?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 09:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af1b15e9-13b7-4640-8ec9-10bf5d2eab71</guid><dc:creator>ajay</dc:creator><description>&lt;p&gt;Should i call ERROR_CHECK(config_client_server_set(m_devkey_handles[client_idx],m_server_handles[client_idx]));&lt;/p&gt;
&lt;p&gt;for each client, before i call config_client_model_subscription_overwrite??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/119678?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 08:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ece47a2-e7a9-44b3-8594-adfebed7df36</guid><dc:creator>ajay</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;In my project, i will have more than on Group of device.&lt;/p&gt;
&lt;p&gt;Say i have Group 0xCAFE, 0xCAFF, 0xCB00&lt;/p&gt;
&lt;p&gt;So, it is understand that if i put a server into a specific group, i can use &lt;span&gt;config_client_model_subscription_add()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But, if i later, i would like to reassign the device to the other Group, say Gp 0xCb00 - &amp;gt; 0xCafe, i will use the function config_client_model_subscription_overwrite&lt;/p&gt;
&lt;p&gt;so, config_client_model_subscription_overwrite-&amp;gt;subscription_add_del_owr_send-&amp;gt;send_reliable&lt;/p&gt;
&lt;p&gt;while the send_reliable handle is m_client.model_handle;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And this m_client.model_handle, will always pointed to the last provision device in the stack. Does it make sense to you, or i have overlook anything?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/119544?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 13:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b99c5ff9-d365-4ee4-b7ac-aa920c28b0c8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t get it Ajay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;config_client_model_subscription_add() is called for all server and all of them subscribe to&amp;nbsp;GROUP_ADDRESS. I don&amp;#39;t see any problem with&amp;nbsp;config_client_model_subscription_add() function. The&amp;nbsp;m_target_address is the address of the server and the address is the group address. Are you sure you looking at the correct function ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/119457?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 02:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd2458fb-f594-41f7-a20a-eee325cab95a</guid><dc:creator>ajay</dc:creator><description>&lt;p&gt;I post here as seems it is my follow-up question about the issue, if you find it is more proper to issue another ticket, please advice.&lt;/p&gt;
&lt;p&gt;So, I understand we need to use the config_client_model_subscription_add at the client, such that, it can assign the specific server can listen to those message to the address that assigned.&lt;/p&gt;
&lt;p&gt;However, when digging deeper, it found that the config_client always send the message to m_client.model_handle in send_reliable functions, while the m_client.model_handle seems always assigned to the server that last touched.&lt;/p&gt;
&lt;p&gt;So, how should I modify the address that the server that already configured, and some other device is provisioned afterwards thru the config_client model?.&lt;/p&gt;
&lt;p&gt;I cant find a proper helper function of the config_client to handle the m_client.model_handle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/107988?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 13:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb71a777-ec1b-46c9-8c2b-5b6418363101</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I understand you. As I mentioned, the configuration server will need to receive the command from the configuration client to set the publication address. In our example, we set that inside do_config_step() in provisioner.c at PROV_STATE_CONFIG_PUBLICATION_ONOFF state. You can find that each of the light switch server was set to the address: PROVISIONER_ADDRESS + m_target_address - UNPROV_START_ADDRESS;
The m_target_address is increased after each light switch server.
You can do the same to your client node.&lt;/p&gt;
&lt;p&gt;On the server side, the command will be handled in handle_config_model_publication_set() in config_server.c. You can find inside this function, the address is set locally and access_model_publish_address_set() will be called as you saw on the provisioner code.&lt;/p&gt;
&lt;p&gt;So, basically, you need to follow what our provisioner does to set the public address of the server to do the same to your client node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/107987?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 19:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c98dbea-9b95-460f-a155-5ecdcc58df7c</guid><dc:creator>Joshua Lin</dc:creator><description>&lt;p&gt;Sorry, I didn&amp;#39;t describe my question clearly.
I need to set publish address on a node which is not a provisioner, just a node with a vendor client model.
There is another node with a vendor server model, and I have already implemented a configuration server on both client and server model node.
I know how to set publish address on a provisioner node, but I don&amp;#39;t know how to get the server model address on a non-provisioner node for access_model_publish_address_set(…).
Or publish address assignment has only to be done once, all client model will be assigned the same publish address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set mesh model publish address to a client model which is on other mesh node</title><link>https://devzone.nordicsemi.com/thread/107986?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 16:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f11877f-59eb-4647-9499-f9a82ad5b84f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please be aware that client and server is not a role or type of a node. They are types of model. A node can have several models and can be client and server.&lt;/p&gt;
&lt;p&gt;Assigning publish address is the configuration client job. You would need to implement a configuration server on the node you want to set publish address (your &amp;quot;client node&amp;quot;)&lt;/p&gt;
&lt;p&gt;Please follow the implementation of config server we have in the light switch server example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>