<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Wireless MCUのトピックBLE Mesh demo in Connectivity software package not working.</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Mesh-demo-in-Connectivity-software-package-not-working/m-p/696090#M3433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I follow the instructions in BLE Mesh User guide, however I cannot get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to send command ''light on" and "light on 1" with commissioner, ( verified on sniffer that it is indeed send out )&lt;/P&gt;&lt;P&gt;However, the receiving side (&lt;EM&gt;BD_ADDR_ID&lt;/EM&gt; = 1) didn't receive it. ( Set a break point at&amp;nbsp;&lt;EM&gt;MeshLightServerCallback&lt;/EM&gt;, and never triggered.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One weird thing is that&amp;nbsp;in function&amp;nbsp;&lt;EM&gt;MeshGenericCallback,&amp;nbsp;pEvent-&amp;gt;eventData.initComplete.deviceIsCommissioned &lt;/EM&gt;is TRUE even for the very first time, so&amp;nbsp;&lt;EM&gt;MeshNode_Commission(&amp;amp;gRawCommData);&lt;/EM&gt;&amp;nbsp;is never executed. &amp;nbsp;So I force the function to execute&amp;nbsp;&lt;EM&gt;MeshNode_Commission&lt;/EM&gt; at&amp;nbsp;first entrance, but nothing happens, mesh device still cannot receive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;static meshResult_t MeshGenericCallback&lt;BR /&gt;(&lt;BR /&gt; meshGenericEvent_t* pEvent&lt;BR /&gt;)&lt;BR /&gt;{&lt;BR /&gt; switch (pEvent-&amp;gt;eventType)&lt;BR /&gt; {&lt;BR /&gt; case gMeshInitComplete_c:&lt;BR /&gt; {&lt;BR /&gt; if (!pEvent-&amp;gt;eventData.initComplete.deviceIsCommissioned)&lt;BR /&gt; { &lt;BR /&gt; /* This will trigger this callback again, but "deviceIsCommissioned" will be TRUE. */&lt;BR /&gt; MeshNode_Commission(&amp;amp;gRawCommData); &lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; LED_StopFlashingAllLeds();&lt;BR /&gt; Led1On();&lt;BR /&gt;#if gAppLightBulb_d&lt;BR /&gt; Mesh_SetRelayState(TRUE);&lt;BR /&gt;#else&lt;BR /&gt; Mesh_SetRelayState(FALSE);&lt;BR /&gt;#endif&lt;BR /&gt; }&lt;BR /&gt; } &lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;default:&lt;BR /&gt; {&lt;BR /&gt; /* Ignore */&lt;BR /&gt; }&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; return gMeshSuccess_c;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2017 09:42:50 GMT</pubDate>
    <dc:creator>yuandao</dc:creator>
    <dc:date>2017-08-10T09:42:50Z</dc:date>
    <item>
      <title>BLE Mesh demo in Connectivity software package not working.</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Mesh-demo-in-Connectivity-software-package-not-working/m-p/696090#M3433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I follow the instructions in BLE Mesh User guide, however I cannot get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to send command ''light on" and "light on 1" with commissioner, ( verified on sniffer that it is indeed send out )&lt;/P&gt;&lt;P&gt;However, the receiving side (&lt;EM&gt;BD_ADDR_ID&lt;/EM&gt; = 1) didn't receive it. ( Set a break point at&amp;nbsp;&lt;EM&gt;MeshLightServerCallback&lt;/EM&gt;, and never triggered.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One weird thing is that&amp;nbsp;in function&amp;nbsp;&lt;EM&gt;MeshGenericCallback,&amp;nbsp;pEvent-&amp;gt;eventData.initComplete.deviceIsCommissioned &lt;/EM&gt;is TRUE even for the very first time, so&amp;nbsp;&lt;EM&gt;MeshNode_Commission(&amp;amp;gRawCommData);&lt;/EM&gt;&amp;nbsp;is never executed. &amp;nbsp;So I force the function to execute&amp;nbsp;&lt;EM&gt;MeshNode_Commission&lt;/EM&gt; at&amp;nbsp;first entrance, but nothing happens, mesh device still cannot receive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;static meshResult_t MeshGenericCallback&lt;BR /&gt;(&lt;BR /&gt; meshGenericEvent_t* pEvent&lt;BR /&gt;)&lt;BR /&gt;{&lt;BR /&gt; switch (pEvent-&amp;gt;eventType)&lt;BR /&gt; {&lt;BR /&gt; case gMeshInitComplete_c:&lt;BR /&gt; {&lt;BR /&gt; if (!pEvent-&amp;gt;eventData.initComplete.deviceIsCommissioned)&lt;BR /&gt; { &lt;BR /&gt; /* This will trigger this callback again, but "deviceIsCommissioned" will be TRUE. */&lt;BR /&gt; MeshNode_Commission(&amp;amp;gRawCommData); &lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; LED_StopFlashingAllLeds();&lt;BR /&gt; Led1On();&lt;BR /&gt;#if gAppLightBulb_d&lt;BR /&gt; Mesh_SetRelayState(TRUE);&lt;BR /&gt;#else&lt;BR /&gt; Mesh_SetRelayState(FALSE);&lt;BR /&gt;#endif&lt;BR /&gt; }&lt;BR /&gt; } &lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;default:&lt;BR /&gt; {&lt;BR /&gt; /* Ignore */&lt;BR /&gt; }&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; return gMeshSuccess_c;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 09:42:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-Mesh-demo-in-Connectivity-software-package-not-working/m-p/696090#M3433</guid>
      <dc:creator>yuandao</dc:creator>
      <dc:date>2017-08-10T09:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: BLE Mesh demo in Connectivity software package not working.</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Mesh-demo-in-Connectivity-software-package-not-working/m-p/696091#M3434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inspired by&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="272641" data-username="im_nishith" href="https://community.nxp.com/people/im_nishith" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Nishith Goswami&lt;/A&gt;'s&amp;nbsp;&lt;A href="https://community.nxp.com/thread/451826"&gt;BLE Mesh Demo Application Setup&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I turned off NVM (Non-Volatile Memory, aka Flash) and solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NVM macro&amp;nbsp;is defined in ApplMain.h :&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#ifndef gAppUseNvm_d&lt;BR /&gt;#define gAppUseNvm_d (FALSE) // Originally (TRUE)&lt;BR /&gt;#endif&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If NVM is necessary, an alternative is to&amp;nbsp;put&amp;nbsp;App_NvmErase() right after&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;NV_Init();&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#if gAppUseNvm_d &lt;BR /&gt; /* Initialize NV module */&lt;BR /&gt; NV_Init();&lt;BR /&gt; App_NvmErase();&lt;BR /&gt;#endif&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 02:22:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-Mesh-demo-in-Connectivity-software-package-not-working/m-p/696091#M3434</guid>
      <dc:creator>yuandao</dc:creator>
      <dc:date>2017-08-14T02:22:18Z</dc:date>
    </item>
  </channel>
</rss>

