<?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>sending message from client to specific server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51926/sending-message-from-client-to-specific-server</link><description>Hi All, 
 
 I am using the light switch example and have modified it a bit to send packets of data. I am able to send data from the client to group address, by setting the publication address of the client to 0xCAFE (using the nrf mesh app)and the message</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jun 2020 10:47:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51926/sending-message-from-client-to-specific-server" /><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/255483?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 10:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5a6586-abf0-48ad-b6d9-0536344c20fe</guid><dc:creator>Soter Giga </dc:creator><description>&lt;p&gt;ok thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/255481?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 10:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bcfddb-8791-4a1d-8e0c-355c8a020f04</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry. SDK\examples\light_switch\client and SDK\examples\ligth_switch\server.&lt;/p&gt;
&lt;p&gt;Light switch client will send messages to the server.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this really related to this ticket? Test out the example, and create a new ticket if you don&amp;#39;t have the same question. This thread is 9 months old. You can start the new ticket by including information on what SDK version you are using, what chip you are using and what problems you are experiencing.&lt;/p&gt;
&lt;p&gt;The description for the light switch example is found here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_examples_light_switch_README.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_examples_light_switch_README.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/255472?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 10:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98773735-6c1f-4e72-b64b-980881cc310a</guid><dc:creator>Soter Giga </dc:creator><description>&lt;p&gt;Hi i dont have any example called light bulb! Can you please tell me how you did it? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/255471?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 10:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60f48981-5791-4e44-bb13-239655e4579e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Check the light switch and light bulb examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/255463?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 10:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fa0b9bd-eda9-4dc3-b74f-97750a49babd</guid><dc:creator>Soter Giga </dc:creator><description>&lt;p&gt;Hi, can you please explain to me how you did yo send packets of data from client to server?&lt;/p&gt;
&lt;p&gt;I would like to do the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/210300?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 08:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95ef76fc-3388-45dd-8109-661f116b1c52</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can I see some screenshots from your phone when you provision your devices? Are you sure the server has a unicast address of 0x0002?&lt;/p&gt;
&lt;p&gt;Again, I know that you don&amp;#39;t run it on DKs, but you have obviously ported this project to support your HW. Can you try to run the light switch server and client on your HW? Please?&lt;/p&gt;
&lt;p&gt;The challenge here is that I don&amp;#39;t know whether the issue is related to your provisioning or your project. If we use a project that we know is working, then we can rule out the provisioning. But maybe you can send some screenshots from your provisioning?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/210018?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 08:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88b5ba06-b81c-44e0-a3e3-63fed84e02e2</guid><dc:creator>nish</dc:creator><description>&lt;p&gt;Client Unicast address = 0x0001&lt;br /&gt;Server unicast address = 0x0002&lt;br /&gt;broadcast address = 0xcafe&lt;/p&gt;
&lt;p&gt;Client to servers setups:&lt;br /&gt;server subscribes to address = 0xcafe&lt;br /&gt;client publication address = 0xcafe&lt;br /&gt;in this setup the server receives messages&lt;/p&gt;
&lt;p&gt;&lt;span&gt;server subscribes to address = 0xcafe&lt;/span&gt;&lt;br /&gt;&lt;span&gt;client publication address = 0x0002 (unicast address of server)&lt;br /&gt;&lt;/span&gt;in this setup, the server does not receive any message.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I apologies, I do not have dev boards, therefor I cannot test the light switch example that uses the Generic on off model.&lt;br /&gt;&lt;br /&gt;I have implemented the simple_on_off model.&lt;br /&gt;I am expecting the server to pick it up, because I know it picks up when&amp;nbsp; the client publication address is the same as the broadcast address the server subscribes too.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also if i send message from server to client with the following setup, it works:&lt;/p&gt;
&lt;p&gt;server publication address = 0x0001&lt;/p&gt;
&lt;p&gt;Client does not subscribe to any address, but it receives because the server is publishing to the unicast address of the&amp;nbsp; client.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The code snippet above is unmodified from the simple_on_off model provided, and that is the function I am using to send data (regardless of whether it is sent to a unicast or broadcast address).&amp;nbsp; I dont believe I have modified anything in the SDK.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/210005?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 07:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0afba8c-cc73-47c5-85a4-1a49b70c2b17</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What address are you trying to send to when you send directly to a server, then, and why do you expect it to pick it up? Is it another address which it has subscribed to, or is it the unicast address of that node?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Again, if you have changed something in the model I want to ask you to try the unmodified on_off model from the example. It is basically impossible for me to say what&amp;#39;s wrong if you may have changed anything in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/209874?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 14:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e03b50b1-c924-4883-bcb4-d0d5430eda46</guid><dc:creator>nish</dc:creator><description>&lt;p&gt;Hi Edvin, I apologies, I am using the simple on off model&amp;nbsp; and not the generic on off model . &lt;br /&gt;I have modified the simple on off to my needs as i do not have a demo dev board that is typically used with examples. . I do not have the dev boards , I have my own custom board with only UART lines connected to the host MCU.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Client --&amp;gt; server I am able to send a message to all servers using a broadcast address 0xcafe,&amp;nbsp;&lt;br /&gt;Server --&amp;gt; client, i am able to use the client address to send a message directly to either one of two clients, and I am able to send a message to 2 clients using the broadcast address 0xcafe&lt;br /&gt;&lt;br /&gt;The only thing i cant do is send a message directly from client to specific server.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am using the folowing function to send from client to server:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;uint32_t nsMeshModel_clientSendPacket_unreliable(nsMeshClient * p_client, const uint8_t *buff, uint16_t bufflen, uint8_t repeats)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{&lt;/em&gt;&lt;br /&gt;&lt;em&gt; simple_on_off_msg_set_unreliable_t set_unreliable;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; set_unreliable.tid = m_tid++;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; memcpy(set_unreliable.data, buff, bufflen);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;access_message_tx_t message;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; message.opcode.opcode = NS_MESH_MODEL_OPCODE_SERVER_RECIEVE_DATA_UNRELIABLE;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; message.opcode.company_id = SIMPLE_ON_OFF_COMPANY_ID;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; message.p_buffer = (const uint8_t*) &amp;amp;set_unreliable;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; message.length = sizeof(set_unreliable);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; message.force_segmented = false;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; message.transmic_size = NRF_MESH_TRANSMIC_SIZE_DEFAULT;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;uint32_t status = NRF_SUCCESS;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; for (uint8_t i = 0; i &amp;lt; repeats; ++i)&lt;/em&gt;&lt;br /&gt;&lt;em&gt; {&lt;/em&gt;&lt;br /&gt;&lt;em&gt; message.access_token = nrf_mesh_unique_token_get();&lt;/em&gt;&lt;br /&gt;&lt;em&gt; status = access_model_publish(p_client-&amp;gt;model_handle, &amp;amp;message);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; if (status != NRF_SUCCESS)&lt;/em&gt;&lt;br /&gt;&lt;em&gt; {&lt;/em&gt;&lt;br /&gt;&lt;em&gt; break;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; }&lt;/em&gt;&lt;br /&gt;&lt;em&gt; }&lt;/em&gt;&lt;br /&gt;&lt;em&gt; return status;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Im not sure why the server is able to receive messages only when the client publication address is set&amp;nbsp;to 0xcafe and teh server subscribes to teh address 0xcafe.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am using the nRFmesh app to configure the publication/subscription setup&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/209081?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 07:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5f628b0-320c-4039-a90a-15b694dad983</guid><dc:creator>Edvin</dc:creator><description>[quote user="Edvin Holmseth"]Does it work if you use the unmodified light_switch examples (server + client)? I tested it here, and it seems to work, so I just want to check if the issue is related to the publication/subscription setup or the model setup.[/quote]
&lt;p&gt;&amp;nbsp;It should work, but it would be nice to know whether the problem is related to your implementation or the way that you set up the configuration. This is why I would like you to test on the&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;unmodified&lt;/strong&gt; light switch example. You can just unzip an unmodified version of the SDK for mesh to test this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/209059?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2019 06:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fdf2b51-5f30-4fc2-a1c9-d22da9d23bd2</guid><dc:creator>nish</dc:creator><description>&lt;p&gt;I have tried something very similar to this.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Using my modified version. I provision the client using nRFMesh, I then provision the server.&amp;nbsp;&lt;br /&gt;Using nRFMesh, I set app keys on both client and server, and I set the publication address on the client to 0x0002. I try to send a message accross, it is not recieved.&lt;/p&gt;
&lt;p&gt;I then set the publication address on the client to 0xCAFE, and set teh subscription address on the server to 0xCAFE the server is then able to recieve messages from the client.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/208972?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 13:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f259368e-50c3-4669-bd55-2fe146383f81</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;How do you provision your devices? Try to use the nRF Mesh app for mobile, and set the clien&amp;#39;t publish adress equal to the address of the nRF5x Mesh Light (in the screenshots below, that would be 0001, but it may vary depending on what order you provision the devices).&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9864185270234054a22ac1b1270e94b8/overview.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9864185270234054a22ac1b1270e94b8/client_5F00_configuration.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So, try to flash both devices with their respective examples. Then provision both. Enter the &amp;quot;nRF5x Mesh Light&amp;quot;, and set the subscription address to a group address, e.g. C001. Then go to the &amp;quot;nRF5x Mesh Switch&amp;quot;, and set the first generic OnOff Client to publish to this address, C001. Check that this works first. You should be able to press button 0 and 1 (1 and 2) on the DK of the Client to turn on and off the LED on the server. If that works, then try to set the second &amp;quot;Generic OnOff Client&amp;quot; to publish to &amp;quot;nRF5x Mesh Light&amp;quot;s unicast address (0001 in the screenshot). Does that work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/208926?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 12:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd9213d-0b8f-4f1f-8396-6a5f33ab4842</guid><dc:creator>nish</dc:creator><description>&lt;p&gt;Hi Edvin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes it did work on the light switch unmodified example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending message from client to specific server</title><link>https://devzone.nordicsemi.com/thread/208924?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 12:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4e1881-c01b-4f78-b862-cc87c3cfd40a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does it work if you use the unmodified light_switch examples (server + client)? I tested it here, and it seems to work, so I just want to check if the issue is related to the publication/subscription setup or the model setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>