<?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>topic Re: QN9080 - How to set Bluetooth Device Name in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873374#M6170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, in the post I mentioned there is this API&amp;nbsp; &amp;nbsp;called, GattDb_WriteAttribute, by any chance, he you tried using it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2019 22:41:11 GMT</pubDate>
    <dc:creator>stephanie_m</dc:creator>
    <dc:date>2019-01-18T22:41:11Z</dc:date>
    <item>
      <title>QN9080 - How to set Bluetooth Device Name</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873369#M6165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to change the Bluetooth device name at run time? I have a fixed string string defined in gatt_db.h with the&amp;nbsp;gBleSig_GapDeviceName_d characteristic, but I would like to use a portion of the Bluetooth address in the device name. The address changes for each device, so a fixed string won't work for my application.&lt;/P&gt;&lt;P&gt;I tried writing the&amp;nbsp;NVDS_TAG_DEVICE_NAME to NVDS, but the nvds_put function is returning a&amp;nbsp;NVDS_NO_BACKUP_SPACE_AVAILABLE result. The device&amp;nbsp;name has to be written in flash somewhere, but I am not sure where so I can't modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My device name characteristic is marked as writable so I have also tried writing the device name using LightBlue Explorer. The written device name is persistent between connections, but not between power cycles.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide some guidance on how to customize the Bluetooth device name for each device?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 14:41:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873369#M6165</guid>
      <dc:creator>rickdickerson</dc:creator>
      <dc:date>2019-01-14T14:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080 - How to set Bluetooth Device Name</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873370#M6166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By any chance, have you tried using&amp;nbsp;ControllerSetBD_ADDR() ?&amp;nbsp;If you haven't could you please try it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 21:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873370#M6166</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-01-14T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080 - How to set Bluetooth Device Name</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873371#M6167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Estephania,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ControllerSetBD_ADDR() function sets the Bluetooth &lt;EM&gt;address&lt;/EM&gt;. I am trying to set the Bluetooth &lt;EM&gt;device name&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Rick&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 21:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873371#M6167</guid>
      <dc:creator>rickdickerson</dc:creator>
      <dc:date>2019-01-14T21:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080 - How to set Bluetooth Device Name</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873372#M6168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply and the confusion .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332703"&gt;https://community.nxp.com/docs/DOC-332703&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there you will find how to change teh characteristic and the service name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 23:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873372#M6168</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-01-17T23:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080 - How to set Bluetooth Device Name</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873373#M6169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Estephania,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, that does link does not answer my question. I probably should have been more explicit in my original post, so I will elaborate now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The glucose monitor example has this in gatt_db.h:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PRIMARY_SERVICE(service_gap, gBleSig_GenericAccessProfile_d)
 CHARACTERISTIC(char_device_name, gBleSig_GapDeviceName_d, (gGattCharPropRead_c | gGattCharPropWrite_c) )
 VALUE(value_device_name, gBleSig_GapDeviceName_d, (gPermissionFlagReadable_c | gPermissionFlagWritable_c), 11, "FSL_BLE_GLS")
 CHARACTERISTIC(char_appearance, gBleSig_GapAppearance_d, (gGattCharPropRead_c) )
 VALUE(value_appearance, gBleSig_GapAppearance_d, (gPermissionFlagReadable_c), 2, UuidArray(gGenericGlucoseMeter_c))
 CHARACTERISTIC(char_ppcp, gBleSig_GapPpcp_d, (gGattCharPropRead_c) )
 VALUE(value_ppcp, gBleSig_GapPpcp_d, (gPermissionFlagReadable_c), 8, 0x0A, 0x00, 0x10, 0x00, 0x64, 0x00, 0xE2, 0x04)

I would like to change the value of the char_device_name dynamically at runtime. It is currently "FSL_BLE_GLS". 

I tried using a variable as the last argument in the VALUE macro, but that gives me an error that says "initializer element is not computable at load time".

Is there any way to change that characteristic value at run time?

Thanks,&lt;/PRE&gt;&lt;PRE&gt;Rick&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 14:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873373#M6169</guid>
      <dc:creator>rickdickerson</dc:creator>
      <dc:date>2019-01-18T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080 - How to set Bluetooth Device Name</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873374#M6170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, in the post I mentioned there is this API&amp;nbsp; &amp;nbsp;called, GattDb_WriteAttribute, by any chance, he you tried using it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 22:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873374#M6170</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-01-18T22:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080 - How to set Bluetooth Device Name</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873375#M6171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Estephania,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try the GattDb_WriteAttribute function but it wasn't working. After I your latest post I looked at it again and found that I was writing a different length than what was initialized in gatt_db.h. It started working when I started using the same length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 20:46:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-How-to-set-Bluetooth-Device-Name/m-p/873375#M6171</guid>
      <dc:creator>rickdickerson</dc:creator>
      <dc:date>2019-01-22T20:46:37Z</dc:date>
    </item>
  </channel>
</rss>

