<?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>Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37441/mesh-for-more-than-one-models</link><description>Hi, 
 
 I am using nRF52832 to design a mesh system, starting with light. 
 Everything is fine, and development is reaching the end. 
 Before today, I use only one model, modified on Simple_On_Off, with multi states to control light from cellphone , everything</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Aug 2018 06:14:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37441/mesh-for-more-than-one-models" /><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/145806?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 06:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad2b6b9-9d5c-4316-b80b-956b598eb737</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I will take a look at your new case then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/145720?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 17:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e159c46-3954-4eab-a581-18d4ce4c2ae2</guid><dc:creator>brent_dong</dc:creator><description>&lt;p&gt;Hi&lt;span&gt;, Bj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Case ID&amp;nbsp;&lt;span&gt;212793&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Brent&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/145687?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 13:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3e28d17-a7a9-455b-8917-c0976f57089c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Brent,&lt;/p&gt;
&lt;p&gt;Have you already created a new case? If so, what is the case ID of the new case?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/145635?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 09:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b474694-f880-4599-85d7-06f900f5302b</guid><dc:creator>brent_dong</dc:creator><description>&lt;p&gt;Hi, Bj&amp;oslash;rn&lt;/p&gt;
&lt;p&gt;I closed this case by mistake, not sure whether you can still see it , have to raise the mentioned problem as another case.&lt;/p&gt;
&lt;p&gt;Brent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/145557?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 16:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40a7b6bb-badc-4168-a560-6c3479c21a33</guid><dc:creator>brent_dong</dc:creator><description>&lt;p&gt;Hi, Bj&amp;oslash;rn&lt;/p&gt;
&lt;p&gt;Thanks for your help, finally I find the reason.&lt;/p&gt;
&lt;p&gt;There is &amp;nbsp;ACCESS_MODEL_COUNT in &amp;quot;nrf_mesh_config_app&amp;quot; . It is actually controlls the memory use on model add.&lt;/p&gt;
&lt;p&gt;After Adjust the model qty, &amp;nbsp;there is no problem anymore.&lt;/p&gt;
&lt;p&gt;---------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Here I met another problem, please help.&lt;/p&gt;
&lt;p&gt;I am using proxy.c to establish an data link with smartphone via mesh_GATT.&lt;/p&gt;
&lt;p&gt;What I am doing is like this:&lt;/p&gt;
&lt;p&gt;For TX ,&lt;/p&gt;
&lt;p&gt;it is actually a service notification&lt;/p&gt;
&lt;p&gt;1. I created a function to use proxy_connection, &amp;nbsp;I understand, only one connection permited.&lt;/p&gt;
&lt;p&gt;static void send_data_to_smartphone(proxy_connection_t * p_connection)&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt; __LOG(LOG_SRC_BEARER, LOG_LEVEL_INFO, &amp;quot;START TX\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;proxy_enable();&lt;br /&gt; if (packet_alloc(p_connection, MESH_GATT_PDU_TYPE_NETWORK_PDU, SEAT_BELT_PACKET_SIZE, NRF_MESH_SERVICE_BORDER_TOKEN) ==&lt;br /&gt; NRF_SUCCESS)&lt;/p&gt;
&lt;p&gt;{ &lt;br /&gt; memcpy(p_connection-&amp;gt;p_alloc_packet, seat_belt_data.tx_data, sizeof(seat_belt_data.tx_data));&lt;br /&gt; // memset(seat_belt_data.tx_data,0xFF,SEAT_BELT_PACKET_SIZE);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; packet_send(p_connection);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;2. I &amp;nbsp;called this function &amp;nbsp;in&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;nbsp;static void gatt_evt_handler(const mesh_gatt_evt_t * p_evt, void * p_context)&amp;quot;&lt;/p&gt;
&lt;p&gt;at &amp;nbsp;position:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;case MESH_GATT_EVT_TYPE_TX_READY:&lt;br /&gt; __LOG(LOG_SRC_BEARER, LOG_LEVEL_INFO, &amp;quot;TX ready\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;send_data_to_smartphone(p_connection);&lt;br /&gt; beacon_cycle_send(p_connection);&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;3. Smartphone side: start nRF Connect&lt;/p&gt;
&lt;p&gt;Result: &amp;nbsp; 1) &amp;nbsp;from smartphone I can see data keep coming ,but it is not my data;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2) &amp;nbsp;in debug process,&amp;nbsp;&lt;br /&gt;&lt;span&gt;__LOG(LOG_SRC_BEARER, LOG_LEVEL_INFO, &amp;quot;START TX\n&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;do not show up?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for RX&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I follow &amp;nbsp;rx_handle function ,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; case MESH_GATT_EVT_TYPE_RX:&lt;br /&gt; __LOG(LOG_SRC_BEARER, LOG_LEVEL_INFO, &amp;quot;RX\n&amp;quot;);&lt;br /&gt; rx_handle(p_connection,&lt;br /&gt; p_evt-&amp;gt;params.rx.pdu_type,&lt;br /&gt; p_evt-&amp;gt;params.rx.p_data,&lt;br /&gt; p_evt-&amp;gt;params.rx.length);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;to file &amp;quot;network .c&amp;quot;, inside&lt;/p&gt;
&lt;p&gt;uint32_t network_packet_in(const uint8_t * p_packet, uint32_t net_packet_len, const nrf_mesh_rx_metadata_t * p_rx_metadata)&lt;/p&gt;
&lt;p&gt;I put :&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#if GATT_PROXY&lt;br /&gt; if(p_rx_metadata-&amp;gt;source==NRF_MESH_RX_SOURCE_GATT)&lt;br /&gt; {&lt;br /&gt; __LOG(LOG_SRC_BEARER, LOG_LEVEL_INFO, &amp;quot;RX2_Start\n&amp;quot;);&lt;br /&gt; memcpy(seat_belt_data.rx_data,&amp;amp;net_decrypted_packet,sizeof(net_decrypted_packet));&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;try to memcopy the pocket arrive from &amp;nbsp;mesh GATT.&lt;/p&gt;
&lt;p&gt;Result.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. smartphone side: &amp;nbsp;when I try to write data, the connection terminated immediately,.&lt;/p&gt;
&lt;p&gt;2. in debug process, &amp;nbsp;I can not see any reaction , even log info.&lt;/p&gt;
&lt;p&gt;Please help how to move at this point.&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Brent&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/144488?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 10:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c390139-2ffd-4233-9d62-0fa215876198</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Brent,&lt;/p&gt;
&lt;p&gt;Error 4 refers to NRF_ERROR_NO_MEM (see nrf_error.h). You should also take a look at line 333 in main.c to see by which function the error is called.&lt;/p&gt;
&lt;p&gt;You can also look where&amp;nbsp;0x000267B9 in the map file which can be located in the build folder here:&amp;nbsp;nrf5_SDK_for_Mesh_v2.1.1_src\examples\light_switch\proxy_client\build\light_switch_proxy_client_nrf52832_xxAA_s132_6.0.0_Debug\. Open up the .map file extension &amp;amp; look for where the&amp;nbsp;0x000267B9 is located.&lt;/p&gt;
&lt;p&gt;Did you remember to initialize the model to allocate, initialize &amp;amp; bind the model to the element &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.1.1/md_doc_getting_started_how_to_models.html?cp=4_1_0_3_5"&gt;like described in the documentation&lt;/a&gt;. I can see that you call the&amp;nbsp;light_lightness_client_init() function. Would you mind uploading the&amp;nbsp;light_lightness_client_init() function code? Did you call access_model_add() like in the config_server_init() function in config_server.c of the light switch proxy client example?&lt;/p&gt;
&lt;p&gt;Also, did you define the opcode handlers like described in the documentation? If I were you, I would take a look at how the configuration server, health server or simple on off server is initialized &amp;amp; do something similar for the other two models you want to add.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/144230?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 17:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb3e108-ac89-45e2-a098-02af8eba3765</guid><dc:creator>brent_dong</dc:creator><description>&lt;p&gt;Hi, Bj&amp;oslash;rn&lt;/p&gt;
&lt;p&gt;I upgraded mesh sdk to 2.1.1, and &amp;nbsp;followed to documentation for add new models, &amp;nbsp;you can see the steps in message.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh  for more than one models</title><link>https://devzone.nordicsemi.com/thread/144195?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 13:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ab9815e-b663-4dad-bedc-4f5b7917d9ce</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Brent,&lt;/p&gt;
&lt;p&gt;Which mesh sdk version are you currently using? Have you already taken look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.1.1/md_doc_getting_started_how_to_models.html?cp=4_1_0_3_5"&gt;documentation provided here&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>