<?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>advertisers names</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49275/advertisers-names</link><description>i am using/ ble_app_multilink/ example present in central folder..i am beginner to this ,,so i have few doubts in it 
 1)so where actually advertisers(which are advertising) names stored in the / ble_app_multilink/ code ...... 
 2)And i want to find out</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jul 2019 10:43:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49275/advertisers-names" /><item><title>RE: advertisers names</title><link>https://devzone.nordicsemi.com/thread/196490?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 10:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83d77466-f318-4d39-a957-71667e677283</guid><dc:creator>Edvin</dc:creator><description>[quote user="Umesh"]Is there any possibilty to find out advertiser name[/quote]
&lt;p&gt;&amp;nbsp;Did you read my previous reply regarding advertising names?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;RSSI is a signed int. Did you try: NRF_LOG_INFO(&amp;quot;%d&amp;quot;, p_ble_evt-&amp;gt; ... .rssi);?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: advertisers names</title><link>https://devzone.nordicsemi.com/thread/196445?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 09:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b67bf8c-040f-4abc-b3ba-54498309945e</guid><dc:creator>Umesh</dc:creator><description>&lt;p&gt;yaa i am able to find ,,,,thank you for that ....in below pic ,i am able to find rssi value by that structure ....Is there any possibilty to find out advertiser name&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and can i know what is the datatype of data in below structure liike for rssi its %d and for data?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-_2800_18_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: advertisers names</title><link>https://devzone.nordicsemi.com/thread/196401?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 07:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71945866-c12a-418c-9d08-0f640fffe58e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-670fcdc4cca441138a8f087f09f7f679/pastedimage1562224541673v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;the functions that you said are not available&amp;quot;?&lt;/p&gt;
&lt;p&gt;They are used in the ble_app_multilink_central example. Are you able to compile this example?&lt;/p&gt;
&lt;p&gt;Maybe what confuses you is that .c files aren&amp;#39;t included by text, like the .h files are. They are included in the project file, and visible in the project explorer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Umesh"]@least please help me to find to print advertsing names with rssi values...i am able to print rssi values but not with their names ..,so how&amp;nbsp; to print advertiser names ?[/quote]
&lt;p&gt;&amp;nbsp;Not all devices advertise with their names. But you can look at the ble_advdata_name_find function in ble_advdata.c, which is called from&amp;nbsp;adv_name_compare() in nrf_ble_scan.c. Setting a breakpoint on where the ble_advdata_name_find returns true, you can see how it finds the name:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-670fcdc4cca441138a8f087f09f7f679/pastedimage1562226089466v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Advertising packets consists of several elements. Each element starts with one byte telling you the length of the rest of the element. The next byte is the element type. In this case, the advertising packet is:&lt;/p&gt;
&lt;p&gt;0x031900000201060e094e6f726469635f426c696e6b79711fd03e78f4837325&lt;/p&gt;
&lt;p&gt;So 03 is the length of the first element: 0x03190000. 0x19 is the type of this element, and 0x0000 is the payload.&lt;/p&gt;
&lt;p&gt;Second&amp;nbsp;element: 020106. Length 02, type 01, payload 06&lt;/p&gt;
&lt;p&gt;third element: 0x&lt;span&gt;0e094e6f726469635f426c696e6b79:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So the third element has length = 0x0e=14, element type=0x09 = advertising name, payload= 0x&lt;span&gt;4e6f726469635f426c696e6b79 = &amp;quot;Nordic_Blinky&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So you can parse these packets yourself, or you can use this function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also worth mentioning that element type 0x08 is a shortened advertising name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you find the nrf_ble_scan.c?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: advertisers names</title><link>https://devzone.nordicsemi.com/thread/196387?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 06:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145eaea7-4eaf-451f-8fdf-7c259c0ab037</guid><dc:creator>Umesh</dc:creator><description>&lt;p&gt;sir i am able to find #include&amp;nbsp;&lt;span&gt;nrf_ble_scan.h but not&amp;nbsp;nrf_ble_scan.c and the functions what you said are not available ...,i m using same 15.3.0 sdk ,sir @least please help me to find to print advertsing names with rssi values...i am able to print rssi values but not with their names ..,so how&amp;nbsp; to print advertiser names ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: advertisers names</title><link>https://devzone.nordicsemi.com/thread/196287?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 13:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97a392c2-5345-4940-b3ff-b6ec6cc2bb2b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What SDK version are you using? The reason I ask is that the advertising report events are moved from main.c to it&amp;#39;s own file, so to ease the communication, it is easier if we look at the same SDK version.&lt;/p&gt;
&lt;p&gt;For now, I will refer to SDK15.3.0.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]1)so where actually advertisers(which are advertising) names stored in the /&lt;span&gt;&amp;nbsp;ble_app_multilink/&amp;nbsp;code ......&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;In the ble_app_multilink_central example, the&amp;nbsp;&lt;span&gt;m_target_periph_name is passed on in the initialization of the scanning, through&amp;nbsp;nrf_ble_scan_filter_set().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Whenever you receive an advertisement, the event&amp;nbsp;BLE_GAP_EVT_ADV_REPORT() occurs in nrf_ble_scan.c, which calls&amp;nbsp;nrf_ble_scan_on_adv_report().&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This function,&amp;nbsp;nrf_ble_scan_on_adv_report() will check what filters that are enabled, and check for a name match in&amp;nbsp;adv_name_compare() (also in nrf_ble_scan.c).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]2)And i want to find out the rssi value of particular device like mobile ,so i know there is target name in code called&amp;nbsp;m_target_periph_name[]=&amp;quot;mobile name&amp;quot;,(i am providing 4 length word)but i am not able to connect to that mobile[/quote]
&lt;p&gt;&amp;nbsp;Do you mean that you are trying to connect to your mobile phone?&lt;/p&gt;
&lt;p&gt;Are you sure that it is advertising? And what do you mean by 4 length word? Remember that an advertisement packet is only 31 bytes long (in total), so the advertisement name is probably not that long. Did you mean QWORD (16 bytes)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can see the RSSI value of advertisement packets using the int8_t p_adv_report-&amp;gt;rssi inside the advertising report event.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]3)so i need the exact location where actually comparison is going on,so that i can understand and do changes...[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]i need @least explaination of 1 quesition i asked to solve my problem[/quote]
&lt;p&gt;&amp;nbsp;2/3 is not bad. But I hope that I covered covered question 3 in 1 and 2.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know if anything was unclear, or if you can&amp;#39;t find the locations in your SDK version.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>