<?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>Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25331/unable-to-print-ble-devices-complete-local-name</link><description>Hi,
I am trying to print ble device names around my board by scanning and i am able to print some devices and i am unable to print other device names even though they are advertising but by printing through device address i am able to print all the devices</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Sep 2017 10:30:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25331/unable-to-print-ble-devices-complete-local-name" /><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99825?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 10:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae6ec65a-8e46-42d1-b65a-dc7521e8009f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You can check the &lt;code&gt;scan_rsp&lt;/code&gt; field in the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/structble__gap__evt__adv__report__t.html?cp=2_3_0_1_0_2_1_4_40"&gt;ble_gap_evt_adv_report_t&lt;/a&gt; to see if the packet is a normal advertising packet or a scan response packet. If 1, the report corresponds to a scan response packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99826?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 07:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b69b00c4-7c52-4022-9644-7b17f30233b0</guid><dc:creator>sankeerthan</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;When i enabled m_scan_param.active   = 1 i was getting data(i.e device name and address )2 times.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;info&amp;gt; app: Starting scan.
&amp;lt;info&amp;gt; app: ADDRESS=D0:5F:B8:22:6:14
&amp;lt;info&amp;gt; app: DEVICE NAME:Pronto
&amp;lt;info&amp;gt; app: ADDRESS=D0:5F:B8:22:6:14
&amp;lt;info&amp;gt; app: DEVICE NAME:Pronto
&amp;lt;info&amp;gt; app: ADDRESS=D0:5F:B8:21:FA:C4
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; app: ADDRESS=63:F8:3C:FE:CA:B9
 app: DEVICE NAME:Sankeerthan
 app: ADDRESS=48:3:D:C8:A7:EE
 app: DEVICE NAME:Sankeerthan
 app: ADDRESS=48:3:D:C8:A7:EE&lt;/p&gt;
&lt;p&gt;And when i disabled m_scan_param.active   = 0 i was getting data only once i.e advertising packet but some devices are not advertising their name through advertising packet.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;info&amp;gt; app: Starting scan.
&amp;lt;info&amp;gt; app: ADDRESS=D0:5F:B8:21:FA:C4
&amp;lt;info&amp;gt; app: ADDRESS=D0:5F:B8:22:6:14
&amp;lt;info&amp;gt; app: DEVICE NAME:Sankeerthan
&amp;lt;info&amp;gt; app: ADDRESS=6D:63:15:58:38:5A
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can see above only address are being printed but not names but in 1st picture names are also being printed but 2 times.&lt;/p&gt;
&lt;p&gt;I think i should disable  advertising packet data and active scan response packet either one should be active.&lt;/p&gt;
&lt;p&gt;Please suggest me how can i correct it??&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99824?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 14:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8e0fd2b-e851-4def-a3ac-e9468a216255</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The device name can be located in either the regular advertising packet, or the scan response packet. If it’s located in the scan response packet, you must turn on active scanning in order to find the name.&lt;/p&gt;
&lt;p&gt;In the function &lt;code&gt;scan_start()&lt;/code&gt; in main.c, change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_scan_param.active   = 0;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_scan_param.active   = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99823?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 14:20:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d897ef67-863f-4f5c-ae73-ecb0654489b3</guid><dc:creator>sankeerthan</dc:creator><description>&lt;p&gt;yes i entered &lt;code&gt;m_target_periph_name&lt;/code&gt; if not how can i enter into &lt;code&gt;find_adv_name&lt;/code&gt; function and able to print other device names.i am able to print  device names of some devices and not other devices like prontos and remotes even though it advertises it&amp;#39;s complete local name these devices i am able to see their device names in nRF-Connect but not through board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99822?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 14:09:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61d473f6-f58a-4aba-a8f0-77d2cde37a2f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you enter a &lt;code&gt;m_target_periph_name&lt;/code&gt; (line 143 in main.c)? If not, the example will by default not look for the name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99819?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 13:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2cf2c56-5882-4675-893f-337661bbd854</guid><dc:creator>sankeerthan</dc:creator><description>&lt;p&gt;yes i am able to find device addresses but not device names.In nRF-Connect i can see device name also of those devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99818?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 13:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:047a10b8-75d6-4010-a781-25a477d05cf9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;But you are able to find the device addresses of these devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99821?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 13:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9523ecc-4332-42c5-8003-b38fe20e11b8</guid><dc:creator>sankeerthan</dc:creator><description>&lt;p&gt;i am using ble_app_hrs_c_pca10056_s140(nRF52840) and SDK is 14.0.0,and i am uable to fine devices like prontos,Remotes(which are ble devices).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99820?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 13:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aabd8bb-c89b-449b-9c40-d485599bfde6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What SDK version is this ? Are you basing your code on the ble_app_hrs_c  example?
What kind of devices are you not able to find?&lt;/p&gt;
&lt;p&gt;Try to do something like this:&lt;/p&gt;
&lt;p&gt;Code snippet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//search for advertising names
err_code = adv_report_parse(BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME, &amp;amp;adv_data, &amp;amp;dev_name);
if (err_code == NRF_SUCCESS)
{
           
    NRF_LOG_RAW_HEXDUMP_INFO(dev_name.p_data,dev_name.data_len);
.
.   
.
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99817?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 12:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e239f92-c1eb-45ab-bced-41e12ca60fe2</guid><dc:creator>sankeerthan</dc:creator><description>&lt;p&gt;Hi,
ya some devices with N/A they are not advertising through name that is fine but for some devices i am able to see device name in nRF-Connect but not through my board(nRF52840) while scanning.&lt;/p&gt;
&lt;p&gt;why??&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to print BLE devices Complete local Name?</title><link>https://devzone.nordicsemi.com/thread/99816?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 12:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6d4cbec-2471-4623-9016-9c4f738ea325</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not all devices have a device name. A device name is not mandatory. In nRF-Connect devices without a name are shown as N/A. I suggest using the &lt;code&gt;adv_report_parse()&lt;/code&gt; function from the ble_app_hrs_c example in the SDK to check if the device have a valid device name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>