<?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>Obtaining BLE Central device name from a BLE Peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113024/obtaining-ble-central-device-name-from-a-ble-peripheral</link><description>Hi Nordic team, 
 
 I&amp;#39;m using nRF52832, S132 with nRF5_SDK_17.1.0_ddde560 SDK. My app configures as BLE Peripheral. Now I want to keep track of the device names of connected peers. From a few searches on this forum, I learned that a device can only read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2024 06:47:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113024/obtaining-ble-central-device-name-from-a-ble-peripheral" /><item><title>RE: Obtaining BLE Central device name from a BLE Peripheral</title><link>https://devzone.nordicsemi.com/thread/494479?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 06:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa0d27a4-f563-43ec-bba5-00b32ee3db57</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There will be some additional RAM usage but if you add the central role and use it only for small period of time, then the power penalty will be very small. The longer you scan, the more power consumption it uses to keep the power hungry RADIO on for the scanner. My suggestion is to add central role and use the scanning periods very short and not frequent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtaining BLE Central device name from a BLE Peripheral</title><link>https://devzone.nordicsemi.com/thread/494025?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 05:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb418313-8909-4bab-bcd2-378de13f152b</guid><dc:creator>Xander To</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The peers will be smartphones, which can serve as both BLE Central and BLE Peripheral. I wonder is there any drawback in power consumption if I add the BLE Central role to my current BLE Peripheral firmware?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Xander&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtaining BLE Central device name from a BLE Peripheral</title><link>https://devzone.nordicsemi.com/thread/494021?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 04:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0982f6f6-7e0a-4027-bee4-7485067fd5ae</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;div&gt;Unfortunately, In Bluetooth Low Energy (BLE), the central device typically does not advertise its name or other identifiers like a peripheral device does. However, it is possible to define a name or other identifier on the central side and read it on the peripheral side after establishing a connection. This would require adding support for it in your software.&lt;/div&gt;
&lt;div&gt;The Device Information Service (DIS) server can be used in the central device, but you would need to create a DIS client implementation on the peripheral side. This client would be responsible for reading the central device&amp;#39;s name or other identifiers after a connection has been established.&amp;nbsp;&lt;span&gt;While the device name is not typically part of the DIS, you could potentially add a custom characteristic to the DIS on the central device to hold the device name. The peripheral could then read this characteristic to get the central device&amp;#39;s name. Unfortunately we do not have a sample to demonstrate that.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;As mentioned, it is possible but there is no support for it and no example of that in the SDK, so you will have to add support for it yourself. To be clear, the existing DIS server can be used in the central, but you will have to make a DIS client implementation yourself that you can use on the peripheral&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtaining BLE Central device name from a BLE Peripheral</title><link>https://devzone.nordicsemi.com/thread/494016?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 03:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffb1e386-ab2a-47c2-b11e-ec55fbcc511d</guid><dc:creator>Xander To</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to get the device name after it is connected. The link you sent was for BLE Central. How can I&amp;nbsp;do peer name finding from BLE Peripheral after connection is established?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Xander&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtaining BLE Central device name from a BLE Peripheral</title><link>https://devzone.nordicsemi.com/thread/494013?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 03:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a11b831-88f9-45f2-84e6-c677eb6d7301</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""] I learned that a device can only read the connected device if it has BLE Central capability. Is this true? If yes[/quote]
&lt;p&gt;Both peers (Peipheral and Central) should be able to read each other services, but before the connection is established only the scanner (only available in device configured as central) can read the advertising packets.&lt;/p&gt;
&lt;p&gt;There is a thread with similar question &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106275/bluetooth-le-device-name-not-being-found-when-using-find-name-function?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;here&lt;/a&gt;, please check that. It looks to me that it might be useful to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>