<?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のトピックRe: advertisement configuration at runtime using FRDMKW36</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367884#M12361</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I followed your procedure it is working better than previous code but when I try to change device name it is updating ok for 4 times when&amp;nbsp; I update 5th time it is not updating or even when I reset the mcu it is updating 2 times again showing previous updated value and I am not understanding why there is inconsistent in updating the value or problem with proper reading or writing to ghardware structure.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 12:24:37 GMT</pubDate>
    <dc:creator>thailivenkatesh</dc:creator>
    <dc:date>2021-11-08T12:24:37Z</dc:date>
    <item>
      <title>advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367088#M12346</link>
      <description>&lt;P&gt;&amp;nbsp;trying to update the advertisement scanning at runtime it is working fine but when i try to update multiple time it is updating only few times not consistently updated . Can anyone please help me to solve this issue. Below is the code return in serial manager.c file. sending command as #ccdas_123 from iot tool box. This value i am storing in hardware parameters&amp;nbsp; and when i reset updated value is stores in advertisement structure.&amp;nbsp; &amp;nbsp;But hardware structure is not updating sometimes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;serial_t *pSer = &amp;amp;mSerials[0];&lt;BR /&gt;uint16_t idx;&lt;BR /&gt;idx = pSer-&amp;gt;txCurrent;&lt;BR /&gt;(void)NV_ReadHWParameters(&amp;amp;gHardwareParameters);//venk&lt;/P&gt;&lt;P&gt;//initially default value loaded if eeprom write new updated else condition&lt;BR /&gt;if (!gHardwareParameters.devidset)//default nonzero&lt;BR /&gt;advScanStruct[2].aData = (uint8_t*) "cdas-123";//default&lt;/P&gt;&lt;P&gt;else{&lt;BR /&gt;advScanStruct[2].aData=gHardwareParameters.device_id;}&lt;BR /&gt;//idx points to current txQueue buffer&lt;BR /&gt;if(idx==0)&lt;BR /&gt;idx=5;&lt;/P&gt;&lt;P&gt;else&lt;BR /&gt;idx = pSer-&amp;gt;txCurrent;&lt;/P&gt;&lt;P&gt;//current buffer loaded to temp value&lt;BR /&gt;temp_id=pSer-&amp;gt;txQueue[idx-1].pData;//venk&lt;BR /&gt;temp_id2=temp_id+9;&lt;BR /&gt;temp_id3=temp_id+9;&lt;/P&gt;&lt;P&gt;if(((*temp_id2==' ')&amp;amp;&amp;amp;(*++temp_id2=='#'))||((*temp_id3=='#')&amp;amp;&amp;amp;(*++temp_id3=='c')))&lt;BR /&gt;{&lt;BR /&gt;gHardwareParameters.temp_id1=temp_id2;&lt;BR /&gt;if(*gHardwareParameters.temp_id1=='c')&lt;BR /&gt;{&lt;BR /&gt;gHardwareParameters.temp_id1=gHardwareParameters.temp_id1+1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;else&lt;BR /&gt;{&lt;BR /&gt;gHardwareParameters.temp_id1=gHardwareParameters.temp_id1+2;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;gHardwareParameters.device_id=(uint8_t*) (gHardwareParameters.temp_id1);//venk&lt;BR /&gt;advScanStruct[2].aData=gHardwareParameters.device_id;&lt;BR /&gt;gHardwareParameters.devidset =1;&lt;BR /&gt;(void)NV_WriteHWParameters(&amp;amp;gHardwareParameters);//venk&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 12:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367088#M12346</guid>
      <dc:creator>thailivenkatesh</dc:creator>
      <dc:date>2021-11-05T12:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367597#M12354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When you try to update the scanning data, please firstly stop the scanning. After the data is written, start scanning. Don't modify the scanning data when your mcu is scanning.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 02:33:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367597#M12354</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-11-08T02:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367656#M12355</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for your support and I followed your solution but still facing same problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 05:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367656#M12355</guid>
      <dc:creator>thailivenkatesh</dc:creator>
      <dc:date>2021-11-08T05:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367669#M12356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You want to use iot toolbox to send the new device name for mcu to scan? Am I correct? Where do you put the stop scanning function?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 05:52:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367669#M12356</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-11-08T05:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367733#M12358</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Yes I am sending device name from IOT tool box to update the advertisement structure and did not use any stop scanning functions. but i searched for&amp;nbsp;Gap_StopAdvertising()&amp;nbsp; &amp;nbsp;only declaration&amp;nbsp; is available in gap_interface.h file but no definition for it .Please suggest me any solution for it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 07:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367733#M12358</guid>
      <dc:creator>thailivenkatesh</dc:creator>
      <dc:date>2021-11-08T07:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367742#M12359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When you send the new device name to mcu, you firstly write it into memory. And then make mcu disconnect from the phone using 'Gap_Disconnect'. Read the adv structure from the memory. Use 'Gap_SetAdvertisingData' to set the adv data. Use 'App_StartAdvertising' to start the adv again.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 07:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367742#M12359</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-11-08T07:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367884#M12361</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I followed your procedure it is working better than previous code but when I try to change device name it is updating ok for 4 times when&amp;nbsp; I update 5th time it is not updating or even when I reset the mcu it is updating 2 times again showing previous updated value and I am not understanding why there is inconsistent in updating the value or problem with proper reading or writing to ghardware structure.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1367884#M12361</guid>
      <dc:creator>thailivenkatesh</dc:creator>
      <dc:date>2021-11-08T12:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1368168#M12368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There are too many points you need to notice. So I wrote this program. Input '#' and after this char, it is your device name. For example, '#asdf', the adv name will become 'asdf'. Pay attention that the device name should smaller than 6 byte. This is due the limit of adv packet length.&lt;/P&gt;
&lt;P&gt;I do not write adv name into memory. You can add it by yourself. The code is added at 'BleApp_ReceivedUartStream'.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf56274_1-1636428058441.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161591iB8E31B3AFA783731/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf56274_1-1636428058441.png" alt="nxf56274_1-1636428058441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf56274_0-1636428053842.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161590i20A89854912654B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf56274_0-1636428053842.png" alt="nxf56274_0-1636428053842.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf56274_2-1636428066842.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161592iED3C85435618281A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf56274_2-1636428066842.png" alt="nxf56274_2-1636428066842.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 03:22:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1368168#M12368</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-11-09T03:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: advertisement configuration at runtime using FRDMKW36</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1368276#M12371</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you very much for your support&amp;nbsp; now it is working fine and it is updating multiple times consistently.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 07:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/advertisement-configuration-at-runtime-using-FRDMKW36/m-p/1368276#M12371</guid>
      <dc:creator>thailivenkatesh</dc:creator>
      <dc:date>2021-11-09T07:05:55Z</dc:date>
    </item>
  </channel>
</rss>

