<?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: KW40Z runtime change Bluetooth MAC address gBDAddress_c</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598579#M1598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change it if you remove the const type qualifier, but the BD address is used when scanning/advertising, initiating connections, &lt;SPAN class=""&gt;when performing the BLE pairing using SMP, the BDADDR is used internally to confirm identity, etc. So it must not be changed in runtime this BD_ADDRS. Normally in a use case, in your application you set the BD_ADDRS, and you keep that address for the all the BLE application. Note: if you reset the device and this address is random generated, it remain the same logic, you only set it once and it doesn't change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Mar 2017 00:58:51 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2017-03-11T00:58:51Z</dc:date>
    <item>
      <title>KW40Z runtime change Bluetooth MAC address gBDAddress_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598577#M1596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IAR 7.50;&amp;nbsp; KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the Bluetooth stack comes pre-compiled a variable interface is &lt;STRONG&gt;gBDAddress_c&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;How to change at runtime this address ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KW40Z_Connectivity_Software_1.0.1\ConnSw\examples\bluetooth\common\&lt;STRONG&gt;ble_controller_task.c&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* Public Device Address */&lt;BR /&gt;&lt;STRONG&gt;const&lt;/STRONG&gt; uint8_t gBDAddress_c[6] = {BD_ADDR};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;app_preinclude.h&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#define BD_ADDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x13,0x00,0x00,0x9F,0x04,0x00&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I find it easy to change the definition by removing the &lt;STRONG&gt;const&lt;/STRONG&gt; part, is it ok ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other ways that I can think of is some &lt;STRONG&gt;volatile&lt;/STRONG&gt; keyword added ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the solution as this definition may have an external counterpart linked in host stack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 11:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598577#M1596</guid>
      <dc:creator>lucianfiran</dc:creator>
      <dc:date>2017-02-24T11:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: KW40Z runtime change Bluetooth MAC address gBDAddress_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598578#M1597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This variable is most likely exported in the host stack &lt;STRONG&gt;ble_controller_lib.a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13987i455C06CE9136EDD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Changing is type can lead to unwanted unpredictable behaviour ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 12:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598578#M1597</guid>
      <dc:creator>lucianfiran</dc:creator>
      <dc:date>2017-02-27T12:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: KW40Z runtime change Bluetooth MAC address gBDAddress_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598579#M1598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change it if you remove the const type qualifier, but the BD address is used when scanning/advertising, initiating connections, &lt;SPAN class=""&gt;when performing the BLE pairing using SMP, the BDADDR is used internally to confirm identity, etc. So it must not be changed in runtime this BD_ADDRS. Normally in a use case, in your application you set the BD_ADDRS, and you keep that address for the all the BLE application. Note: if you reset the device and this address is random generated, it remain the same logic, you only set it once and it doesn't change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 00:58:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598579#M1598</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-03-11T00:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: KW40Z runtime change Bluetooth MAC address gBDAddress_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598580#M1599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I can change the BLE MAC address inside hardware_init ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplMain.c&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;....&lt;BR /&gt;void main_task(uint32_t param)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;hardware_init();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize peripheral drivers specific to the application */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BleApp_Init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* BLE Radio Init */&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XcvrInit(BLE);&amp;nbsp; &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 07:35:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598580#M1599</guid>
      <dc:creator>lucianfiran</dc:creator>
      <dc:date>2017-03-11T07:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: KW40Z runtime change Bluetooth MAC address gBDAddress_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598581#M1600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, before any connection and it shouldn't change. Or you could change it in the macro define #define BD_ADDR&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 21:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW40Z-runtime-change-Bluetooth-MAC-address-gBDAddress-c/m-p/598581#M1600</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-03-13T21:41:42Z</dc:date>
    </item>
  </channel>
</rss>

