<?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>send data from client to specific server via unicast address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40666/send-data-from-client-to-specific-server-via-unicast-address</link><description>Hi Guys, 
 We are currently working on a mesh sensor network. I have already developed a vendor sensor model (client and server). The client will also work as a gateway and will run on a nRF52840 DK. The Provisioner is on a separate DK just like in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Sep 2021 10:17:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40666/send-data-from-client-to-specific-server-via-unicast-address" /><item><title>RE: send data from client to specific server via unicast address</title><link>https://devzone.nordicsemi.com/thread/331667?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 10:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14ca9974-a577-4cd8-b52d-47dd87016913</guid><dc:creator>urvilsuthar</dc:creator><description>&lt;p&gt;Hi Karinca,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Using&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nRF5_SDK_17.0.2_d674dde&amp;nbsp; &amp;nbsp; +&amp;nbsp; &amp;nbsp; &amp;nbsp;nrf5_SDK_for_Mesh_v5.0.0_src&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tried the above function code to change the publish address but getting Mesh Assert &amp;quot;&amp;nbsp;Mesh assert at 0x000316E0 (:0)&amp;quot;.&lt;/p&gt;
&lt;p&gt;I am trying to send data to server side from client node using UART communication. UART data gives the server node publish address and data(1 byte) to be sent.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Tried to debug the cause of assertion and found function &amp;quot;dirty_entries_process&amp;quot; is causing this assertion.&lt;/p&gt;
&lt;p&gt;After success in single byte, going for Insta-Burst implementation.&lt;/p&gt;
&lt;p&gt;Need support in this.. Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One more Input to this, After Resetting client device only once&amp;nbsp;&lt;/span&gt;&lt;span&gt;dirty_entries_process works perfect. later when the unicast address changed his error comes again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data from client to specific server via unicast address</title><link>https://devzone.nordicsemi.com/thread/163061?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 11:03:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c9d42d-9221-4e82-b615-732aa3ac9f22</guid><dc:creator>Hit</dc:creator><description>&lt;p&gt;Hi Michel&lt;/p&gt;
[quote userid="74354" url="~/f/nordic-q-a/40666/send-data-from-client-to-specific-server-via-unicast-address"]The sensor send data on regular bases to the client via the mesh and the client then send it via UART to a computer[/quote]
&lt;p&gt;Can you share the data how you made this network. Basically I&amp;#39;m trying to build the sensor network using Bluetooth Mesh to transfer data to end node to computer.&lt;/p&gt;
&lt;p&gt;Can you help me with your data to build the network.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data from client to specific server via unicast address</title><link>https://devzone.nordicsemi.com/thread/159829?ContentTypeID=1</link><pubDate>Sun, 02 Dec 2018 10:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb2ff82b-6241-4e03-9957-874f8045422f</guid><dc:creator>michel_93</dc:creator><description>&lt;p&gt;Thank you very much the solution works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data from client to specific server via unicast address</title><link>https://devzone.nordicsemi.com/thread/158569?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 09:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1629bbbc-6c21-4c2e-bc4a-cc3a6a9e2db2</guid><dc:creator>michel_93</dc:creator><description>&lt;p&gt;Thanks for you answer. I will check it out this week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data from client to specific server via unicast address</title><link>https://devzone.nordicsemi.com/thread/158510?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 21:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b32c6faa-bbb8-46d8-896e-afa85a091909</guid><dc:creator>karinca</dc:creator><description>&lt;p&gt;Another method would be blinking led in provision completed callback on server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: send data from client to specific server via unicast address</title><link>https://devzone.nordicsemi.com/thread/158509?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 21:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096e1e70-f4b1-4290-bdc7-f4dc74e43210</guid><dc:creator>karinca</dc:creator><description>&lt;p&gt;You change the publication address like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t status = NRF_SUCCESS;

  dsm_handle_t publish_address_handle = DSM_HANDLE_INVALID;
  nrf_mesh_address_t publish_address_stored;

  if (access_model_publish_address_get(m_clients[0].model_handle, &amp;amp;publish_address_handle) != NRF_SUCCESS) {

    status = dsm_address_publish_add(destination_address, &amp;amp;publish_address_handle);

  } else {

    if (dsm_address_get(publish_address_handle, &amp;amp;publish_address_stored) == NRF_SUCCESS) {

      if ((publish_address_stored.type == NRF_MESH_ADDRESS_TYPE_VIRTUAL) ||
          (publish_address_stored.type != NRF_MESH_ADDRESS_TYPE_VIRTUAL &amp;amp;&amp;amp;
              publish_address_stored.value != destination_address)) {
        /* This should never assert */
        NRF_MESH_ASSERT(dsm_address_publish_remove(publish_address_handle) == NRF_SUCCESS);
        status = dsm_address_publish_add(destination_address, &amp;amp;publish_address_handle);
      } else {
        /* Use the retrieved publish_address_handle */
      }
    } else {

      status = dsm_address_publish_add(destination_address, &amp;amp;publish_address_handle);
    }
  }

  switch (status) {
  case NRF_ERROR_NO_MEM:
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;NRF_ERROR_NO_MEM\n&amp;quot;);
    //            status_error_pub_send(handle, p_message, sig_model, ACCESS_STATUS_INSUFFICIENT_RESOURCES);
    return;

  case NRF_SUCCESS:
    break;

  default:
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;ACCESS_STATUS_UNSPECIFIED_ERROR\n&amp;quot;);
    //            status_error_pub_send(handle, p_message, sig_model, ACCESS_STATUS_UNSPECIFIED_ERROR);
    return;
  }

  NRF_MESH_ASSERT(access_model_publish_address_set(m_clients[0].model_handle, publish_address_handle) == NRF_SUCCESS);&lt;/pre&gt;&lt;/p&gt;
&lt;pre&gt;destination_address is unicast address you want to send on/off command. You can figure out which header file you must include by searching the function on all solution. &lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>