<?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>device name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77541/device-name</link><description>hi 
 I use nrf52 sdk17. i want to change device name . 
 1. if device name is less 19, more 18 ,it is ok. for example 
 #define DEVICE_NAME &amp;quot;123456789123456789&amp;quot; . it is OK 
 2 if device name is 19 or more , it is fail 
 &amp;quot;12345678912345678912&amp;quot; . it is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jul 2021 07:16:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77541/device-name" /><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/321038?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 07:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4d48391-e3ea-435f-baf6-dec307e3f284</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;OK。 Thanks。&lt;/p&gt;
&lt;p&gt;I know。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/320852?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 08:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f44b53b-8f7e-461d-b9e3-6c527eb435a4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="bear_xiong"]&lt;p&gt;if&amp;nbsp; include&amp;nbsp; &amp;nbsp;init.advdata.flags&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= adv_flags;&lt;/p&gt;
&lt;p&gt;other contents of advertising packet， include is ok， or do not inlude is ok too？&lt;/p&gt;[/quote]
&lt;p&gt;The flags field is required if you are advertising as connectable. If you are advertising as non-connectable you can choose to leave out the flags field, since the flags field is only used to see how you can connect to the device.&lt;br /&gt;Are you advertising as connectable? If so, you will need to have the flags field in the advertisement.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/320794?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 05:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76e7effe-8700-4f82-b1e7-6a6cd7bf453c</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;thank， I know。&lt;/p&gt;
&lt;p&gt;second，your mean is&lt;/p&gt;
&lt;p&gt;if&amp;nbsp; include&amp;nbsp; &amp;nbsp;init.advdata.flags&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= adv_flags;&lt;/p&gt;
&lt;p&gt;other contents of advertising packet， include is ok， or do not inlude is ok too？&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/320611?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 07:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c806a717-5412-4b98-b433-4f764bde4629</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="bear_xiong"]if&amp;nbsp; advdata reduce, device name more 18 is ok. but i am not sure if reduce advdata , adv is ok?[/quote]
&lt;p&gt;Sorry, I am still having trouble understanding exactly what you are asking me here.&lt;br /&gt;Are you telling me that if you reduce your advdata, you are able to have a device name longer than 18 bytes? If so, I concur that this would be the case, since you then have more space left in your advertising packet to use for the device name.&lt;br /&gt;I do not understand the last part, but as long as you include the flags field (if you are advertising as connectable) then the rest of the contents of your advertising packet is up to you, to see if you are ok with it.&lt;/p&gt;
[quote user="bear_xiong"]if use extended advertising ,have some example ,please ?[/quote]
&lt;p&gt;Unfortunately, we do not have any examples using extended advertising available right now.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/320531?ContentTypeID=1</link><pubDate>Sat, 17 Jul 2021 08:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cf56f8e-4232-4a85-a28c-4eb92359cf0d</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;I mean&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if&amp;nbsp; advdata reduce, device name more 18 is ok. but i am not sure if reduce advdata , adv is ok?&lt;/p&gt;
&lt;p&gt;if use extended advertising ,have some example ,please ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/320389?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 09:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5971f77f-50a5-4081-8c95-bca603322624</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="bear_xiong"]&lt;p&gt;Thanks， I try mark some advdata，it is ok。&lt;/p&gt;
&lt;p&gt;i am not sure&amp;nbsp; ： which data can be mark， does not effect host link&lt;/p&gt;[/quote]
&lt;p&gt;I am sorry, but I do not understand what you mean by this. Could you clarify?&lt;/p&gt;
[quote user="bear_xiong"]now advdata data include：[/quote]
&lt;p&gt;This will certainly exceed the 31 byte limit of a legacy advertising packet.&lt;br /&gt;Are you dividing this into a scan response packet as well? If so, which of these fields is placed in the scan response, and which of them is in the advertising packet?&lt;br /&gt;How many bytes is the entire data payload you plan to advertise?&lt;br /&gt;Have you looked into the possibility to use &lt;a href="https://blog.nordicsemi.com/getconnected/bluetooth-5-advertising-extensions"&gt;the Extended Advertising feature of BLE 5.0&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/320382?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 09:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc198e1b-3014-4f32-926e-065ad546472c</guid><dc:creator>bear_xiong</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;Thanks， I try mark some advdata，it is ok。&lt;/p&gt;
&lt;p&gt;i am not sure&amp;nbsp; ： which data can be mark， does not effect host link&lt;/p&gt;
&lt;p&gt;now advdata data include：&lt;/p&gt;
&lt;p&gt;Encode LE Bluetooth Device Address，Encode appearance.，Encode Flags，Encode TX power level.Encode &amp;#39;more available&amp;#39; uuid list.，Encode &amp;#39;complete&amp;#39; uuid list.Encode &amp;#39;solicited service&amp;#39; uuid list.，Encode Slave Connection Interval Range.Encode Manufacturer Specific Data.Encode Service Data.Encode name&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device name</title><link>https://devzone.nordicsemi.com/thread/320373?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 08:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24716bc4-4bdd-40fb-ac77-8e63266bc4a4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;p&gt;2 if device name is 19 or more , it is fail&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;quot;12345678912345678912&amp;quot; .&amp;nbsp; it is only 18.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I want device name is more 18 . how to do, please!&lt;/p&gt;[/quote]
&lt;p&gt;What else does your advertising data packet contain? Please keep the 31 advertising data byte limit in mind when building the advertising packet. Please also keep in mind that every advertising data field will require 2 bytes of overhead, so if you have a 18 byte name, it will take up 20 bytes out of the 31 available advertising data bytes.&lt;br /&gt;&lt;br /&gt;If you exceed the 31 byte limit, &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__ble__sdk__lib__advdata.html&amp;amp;anchor=ga8534b0db1e46d3cdd4db0dc593071b74"&gt;the SoftDevice will truncate the device name field&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>