<?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>How to get complete device name from another peripheral once it&amp;#39;s connected?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42217/how-to-get-complete-device-name-from-another-peripheral-once-it-s-connected</link><description>Hi, 
 I&amp;#39;m developing a central application and I would like to be able to get the full device names of the peripherals I connect to. I know how to get the device name from the advertising data, but there are sometimes when the peripherals do not advertise</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Feb 2019 19:38:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42217/how-to-get-complete-device-name-from-another-peripheral-once-it-s-connected" /><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/173320?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 19:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51bda75b-f519-4b08-8941-a8d437036c46</guid><dc:creator>Mariano</dc:creator><description>&lt;p&gt;Hi Andy, I was looking for a way to read the device name from the generic access service, as you made. Could you please upload the files of your central custom service? You could save me a lot of work!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164819?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 07:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0830cf84-ad0a-4567-810d-6b40661bfd46</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thank you for posting your solution Andy, I will report it internally.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164566?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 16:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87520071-5409-45df-b485-ec8fec0178ed</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I just found out a way to get the complete name from the peripheral :) You just have to read the device name characteristic (0x2A00) in the Generic Access Service (0x1800). Apparently, there aren&amp;#39;t any definitions for this in the ble_srv_common.h header file. I already implemented the whole thing and it works nicely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164544?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 14:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:496c7951-42e5-4d90-8abc-450e3c5e20eb</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Ok, thanks for your help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164543?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 14:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ee7f9a8-a4d8-4bdb-9cbc-5f8a7272b1b0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;It is not possible to get the device name by any other means than extracting it from the advertisement data.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;SImon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164533?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 13:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc33e08d-6903-4267-8657-6d8e4f431a59</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Ok, thanks. Just as a follow-up, is this because it isn&amp;#39;t implemented in the SDK or because it&amp;#39;s just not possible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164499?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 11:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a681f7fb-98d5-4807-97fe-47327f795ba1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again Andy,&lt;/p&gt;
&lt;p&gt;I have talked to my colleagues regarding your issue, and I am sorry to report that there is no way for the central to find the device name of a connected peripheral if it was not included in the advertisement.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164489?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 10:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:906439e5-eddf-4ce0-b48c-4b6861dbab0d</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;What log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164480?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 10:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21176343-2d2c-4451-a387-1b6745c5b371</guid><dc:creator>awneil</dc:creator><description>[quote userid="15909" url="~/f/nordic-q-a/42217/how-to-get-complete-device-name-from-another-peripheral-once-it-s-connected/164459"]I think it should be possible since my phone displays the full device name of a connected peripheral, even though the peripheral didn&amp;#39;t advertise the complete name.[/quote]
&lt;p&gt;Have you tried looking at the phone&amp;#39;s BLE snooper log to see how it does it ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164479?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 10:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0aec1bb-4ae2-48c4-8b8b-c2b6012c0e4e</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I understand that. But I am developing the central application, not the peripheral. The peripherals are from third-parties and I can&amp;#39;t modify their firmware.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why I&amp;#39;m asking how to get the&amp;nbsp;device name of &lt;strong&gt;another peripheral&lt;/strong&gt;, using &lt;strong&gt;my central device&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164477?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 09:58:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8960a861-50f9-41ed-bf65-d52cc8cfdd8c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;Sorry for the misunderstanding. The reason device names are getting cut down is likely due to data packets being too big, and therefore the device name is getting cut out. I suggest you either advertise smaller packets, or enable the data packet length extension (DLE) to provide bigger data packets per advertising event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can enable DLE by modifying&amp;nbsp;&lt;span&gt;NRF_SDH_GAP_DATA_LENGTH in sdk_config.h, or you can call the function&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__ble__gatt.html?cp=4_0_1_6_2_13_11#ga857b95d31c1b2454eb3ac70b96e096fd" rel="noopener noreferrer" target="_blank"&gt;nrf_ble_gatt_data_length_set&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164459?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 09:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:519e17a4-edb1-4063-8db1-4658cb89b5b2</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;As I said in my question, I know how to get the name from the advertising data. What I want to know is how to get the name when it is not advertised.&lt;/p&gt;
&lt;p&gt;I think it should be possible since my phone displays the full device name of a connected peripheral, even though the peripheral didn&amp;#39;t advertise the complete name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get complete device name from another peripheral once it's connected?</title><link>https://devzone.nordicsemi.com/thread/164445?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 08:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3541efe1-3622-4d32-a4a0-933cee18b41b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;I suggest you take a look at the&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/ble_sdk_app_multilink"&gt;BLE Multi-link Example&lt;/a&gt;&amp;nbsp;and the function adv_report_parse() for details on how the name can be extracted from advertising data, as advertising beacons are not required to advertise their device names.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>