<?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 truncated (well is there a way to overcome)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37482/device-name-truncated-well-is-there-a-way-to-overcome</link><description>nRF52832 / SDK V15.0.0 / nRF connect / DFU OTA Buttonless 
 
 Hello, 
 
 My device name is 21 chars but it is truncated and appears as 20 chars in nRF Connect &amp;quot;Discovery devices&amp;quot; list. 
 I know it&amp;#39;s normal:I&amp;#39;ve added the battery service along the original</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Aug 2018 15:49:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37482/device-name-truncated-well-is-there-a-way-to-overcome" /><item><title>RE: Device name truncated (well is there a way to overcome)</title><link>https://devzone.nordicsemi.com/thread/144373?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 15:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7413f2-fdd8-4c3b-b55a-1838e7d05afa</guid><dc:creator>JohnM</dc:creator><description>&lt;p&gt;ok thanks, I&amp;#39;ve deleted the UUID Batt service (whithout loosing the functionnality of course):&lt;/p&gt;
&lt;p&gt;Before:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;static ble_uuid_t m_adv_uuids[] = {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {BLE_UUID_NUS_SERVICE, BLE_UUID_TYPE_BLE},&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{BLE_UUID_BATTERY_SERVICE, BLE_UUID_TYPE_BLE}&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;};&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;static ble_uuid_t m_adv_uuids[] = {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {BLE_UUID_NUS_SERVICE, BLE_UUID_TYPE_BLE}&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;};&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And&amp;nbsp; my device is ok again.&lt;span style="color:#0000ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device name truncated (well is there a way to overcome)</title><link>https://devzone.nordicsemi.com/thread/144251?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 06:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa21cd41-e7a8-4cc8-80c2-eb46acef95d9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The device name in the advertising packet is shortened if there is no room for the full device name. A sniffer/scanner cannot display this data before it connects to the device as it has not been transmitted over air, so there is no way it can know. However, the peer can read the device name characteristic after a connection is made, which is why you see the full name after connecting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are a few things you can do to get the full device name without connecting:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use less other data in the advertisement packet (for instance you can remove the battery service UUID from the advertising packet).&lt;/li&gt;
&lt;li&gt;Use a scan response and put some of the advertising data there (either the device&amp;nbsp;name or something else)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>