<?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>Listening to the broadcaster nrf52dk nrf sdk connect 2.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102758/listening-to-the-broadcaster-nrf52dk-nrf-sdk-connect-2-2-0</link><description>Hi, I ran basic broadcaster sample from zephyr, and also I ran the observer sample which observed surrounded devices. I flashed broadcaster sample to one nrf52dk and an observer sample to another nrf52dk, I want observer to listen the broadcaster&amp;#39;s advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Aug 2023 12:59:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102758/listening-to-the-broadcaster-nrf52dk-nrf-sdk-connect-2-2-0" /><item><title>RE: Listening to the broadcaster nrf52dk nrf sdk connect 2.2.0</title><link>https://devzone.nordicsemi.com/thread/440969?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 12:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a3e61a-17e1-4890-a71c-1c789922203b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I suggest you check out the sample found in ncs\zephyr\samples\bluetooth\central. It is a very simple sample that will start scanning, and whenever it picks up an advertisement packet, it will trigger the device_found() callback in main.c. The advertisement packet in raw format is found in the &amp;quot;struct net_buf_sample *ad&amp;quot; parameter. If you are interested in how to parse these kind of raw packets, I suggest you take a look at our &lt;a href="https://academy.nordicsemi.com/topic/advertisement-packet/"&gt;Bluetooth Low Energy course on DevAcademy&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To find the values for the different &amp;quot;Advertisement Data Structures&amp;quot;, you can look them up in gap.h, located in ncs\zephyr\include\zephyr\bluetooth\gap.h&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that this sample application will connect to all devices that has an RSSI &amp;gt; -70 dBm. You probably want to comment out this if you just want to monitor advertisement packets.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>