<?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 use &amp;quot;Any Node (Destination)Address&amp;quot; to send data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69620/how-to-use-any-node-destination-address-to-send-data</link><description>Hi Nordic Team, I am currently working on how to build one mesh provisioner. Current Env: Nrf_sdk: 17.0, Mesh SDK: 5.0, Board Chip: nrf52832 My Questions is how to use any node address to send data. If one mesh node had been provisioned by Phone, and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Dec 2020 10:18:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69620/how-to-use-any-node-destination-address-to-send-data" /><item><title>RE: How to use "Any Node (Destination)Address" to send data?</title><link>https://devzone.nordicsemi.com/thread/286003?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 10:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47b4d2f6-d684-40a2-a036-be62b2f5ea39</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure which function you are calling at step 1 2 and 3.&lt;/p&gt;
&lt;p&gt;You can to store the address handle you have and reuse later. If you&amp;nbsp;don&amp;#39;t store it and want to get it back from the list, you call dsm_address_handle_get() to get the handle from the address.&amp;nbsp;&lt;br /&gt;Think of the DSM as a database of addresses that&amp;#39;s stored on the flash. All library uses the handles in DSM instead of directly use the address.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use "Any Node (Destination)Address" to send data?</title><link>https://devzone.nordicsemi.com/thread/285960?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 03:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59818e69-fc7a-4a07-b4e6-4c12be02db16</guid><dc:creator>TimCheng</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/69620/how-to-use-any-node-destination-address-to-send-data/285840#285840"]If you want to send data to one node at a time, B and then C for example. You first set the publication address to B. Send the packet. After that you set the publication address to C , then you send the new packet.&amp;nbsp;[/quote]
&lt;p&gt;Yes, it is correct image. but after test,&lt;/p&gt;
&lt;p&gt;1, set B into&amp;nbsp;publish_address_handle, (Ok, and node address is ok)&lt;/p&gt;
&lt;p&gt;2, set C into&amp;nbsp;&lt;span&gt;publish_address_handle,(Ok, and node address is ok, because B and C&amp;nbsp;are new address)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3, when trying to switch the C to B, it preforms wrong (Wrong, Still C,&amp;nbsp; because B is existed. it will not set)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, i make some changes for exchanging the node address into&amp;nbsp; publish_address_handle. and not store these&amp;nbsp;publish_address_handle for fitting my application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(After view Nordic DevZone, there are some engineers confused about this handle,it is big different from other platforms)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use "Any Node (Destination)Address" to send data?</title><link>https://devzone.nordicsemi.com/thread/285840?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 13:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe77640-0c82-4d58-a8a8-81fbd78e94fd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;I am not sure I fully understand what you plan to do.&amp;nbsp;&lt;br /&gt;To send data to multiple node with one packet, you can use a group address that those node subscribed to.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to send data to one node at a time, B and then C for example. You first set the publication address to B. Send the packet. After that you set the publication address to C , then you send the new packet.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If you use&amp;nbsp;&lt;span&gt;nrf_mesh_packet_send() you simple set the destination address there.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use "Any Node (Destination)Address" to send data?</title><link>https://devzone.nordicsemi.com/thread/285776?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 09:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4257882c-2a2b-454a-996d-4638ed0daee7</guid><dc:creator>TimCheng</dc:creator><description>&lt;p&gt;So Sad,&lt;/p&gt;
&lt;p&gt;From Mesh SDK, I learn that the client can only reflect one server.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;packet_tx---&amp;gt;&lt;/p&gt;
&lt;p&gt;dsm_address_get(m_model_pool[handle].model_info.&lt;strong&gt;publish_address_handle&lt;/strong&gt;, &amp;amp;dst_address)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;&lt;strong&gt;publish_address_handle&lt;/strong&gt;&amp;quot; is static after setting. we can not use dynamic way to transfer address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use "Any Node (Destination)Address" to send data?</title><link>https://devzone.nordicsemi.com/thread/285753?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 07:38:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:514c619e-3d72-4a11-a830-261cb9fe534b</guid><dc:creator>TimCheng</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Appreciate your helpful info.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, it will contain many clients(onoff, llc, ctl, vendor client etc) for this mesh provisioner.&lt;/p&gt;
&lt;p&gt;Just follow &amp;quot;handle_config_model_publication_set&amp;quot;, it seems ok.&amp;nbsp;We may do &amp;quot;publication set&amp;quot; operations to many server.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if we do &amp;quot;&lt;span&gt;generic_onoff_client_set()&amp;quot;, it will send data to many server(not point to point).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What i focus on how to implement it by point to point?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example, A: provisioner + onoff client. B: onoff server, node addr: 0x123,&amp;nbsp;&lt;span&gt;B: onoff server, node addr: 0x124,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We may bind &amp;quot;B+C onoff server&amp;quot; with &amp;quot;A onoff client&amp;quot;. &lt;span style="color:#ff9900;font-size:inherit;"&gt;&lt;strong&gt;but at one time,&amp;nbsp; we only want to control one of&amp;nbsp; B or C.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As i understand, it seems be fixed with the second way(&lt;span&gt;packet_tx()&lt;/span&gt;).let me study it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR.&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use "Any Node (Destination)Address" to send data?</title><link>https://devzone.nordicsemi.com/thread/285700?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 16:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf1c4d6-1381-4848-b989-8513f02517f1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tim,&amp;nbsp;&lt;br /&gt;Please study what&amp;#39;s inside&amp;nbsp;&lt;span&gt;generic_onoff_client_set().&amp;nbsp;&lt;br /&gt;m_clients[0] you provide contain the instance of the light switch client model you have on the light switch client (or the provisioner if you implemented this on a provisioner).&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On your provisioner, you need to implement a light switch client if you want to use this function. And you can change the publication address of this model to the node you want to send data to. Please refer to&amp;nbsp;handle_config_model_publication_set() function in config_server.c to see how to change that.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;However, if you plan to build a &amp;quot;central&amp;quot; device that can flexibly send data to any node, I would suggest to use the transport layer directly and skip the model and access layer. This mean you call&amp;nbsp;nrf_mesh_packet_send() directly with all customized data you need, including the destination address. Please have a look into the packet_tx() function in access.c.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use "Any Node (Destination)Address" to send data?</title><link>https://devzone.nordicsemi.com/thread/285633?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 13:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcc4b062-252e-429e-9c75-af4c9afffa2d</guid><dc:creator>TimCheng</dc:creator><description>&lt;p&gt;BTW, both of them use the same appkey and netkey!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>