<?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>Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17933/non-connectable-scanning-example</link><description>Dear Nordic Team, 
 Thanks for supporting. 
 My application is central act as a non connectable scanner and display the advertising packet through UART without fail. Please suggest any example code. 
 I want to display advertiser Mac ID and RSSI value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Apr 2018 11:16:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17933/non-connectable-scanning-example" /><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/128952?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 11:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086529d5-0308-4be6-a38d-60a879a0fd32</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Any of the ble_central examples should work as a starting point. They all do scanning, and have NRF_LOG module for sending data on UART/RTT. If you want to use the UART library, I would recommend starting with the ble_app_uart_c example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/128925?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 09:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c01f3243-9698-4d66-a4de-c40bfb83cf26</guid><dc:creator>WilliamJangren</dc:creator><description>&lt;p&gt;I think i want to do something like this. i want to collect advertise data from a specific ble switch(PTM215B) then store it in a variable. Is the uart example the simplest way to start? i would really need som help to start.&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/69146?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 13:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86286625-e226-477c-bd8e-5d1cc0e340e5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I don&amp;#39;t think there is anything wrong with your code. When scanning, you are not guaranteed to detect every advertising packet. If the advertisement window of the peripheral falls outside of the scan window, but within the scanning interval of the central, the scanner might not receive the advertising packet. Also, notice that the central can only scan a single advertising channel each scan window. Please have a look at &lt;a href="https://devzone.nordicsemi.com/blogs/782/bluetooth-smart-and-the-nordics-softdevices-part-1/"&gt;this blog post&lt;/a&gt; about how BLE works. You might also have a look at &lt;a href="https://devzone.nordicsemi.com/question/38250/ble-advertisement-rate-actual-rate-do-not-match/"&gt;this post&lt;/a&gt; about additional delay added to the advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/69145?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 11:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1efc66a7-3335-44f6-b0da-723165b4bfd3</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;In my sample packet also show the every 1 sec capturing advertising data. But got delay every 4 to 6 seconds. Delay aslo 4 to 6 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/69144?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 10:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01779941-cf7d-4f52-9abb-5684ba902ed4</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Yes, i am checked with sniffer it was capturing every second. I am not doing any modification in UART Service Client example code. My SDK is 11.0. Also i am not modify the scan interval setting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/69143?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 10:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46888f85-ca52-4f7c-b92f-a091b8e098e1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you sure your peripheral is correctly advertising every second? What are your scan interval settings? I cannot see anything in your code generating a delay. Are you running any other code that might block the radio or UART?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/69141?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 07:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26c7fafa-412b-44a1-94bb-82c03e093a3a</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;peripheral has send Advertising packet every seconds. In Nordic UART Service Client side missing some packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/69142?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 04:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:febc7798-ac30-404b-ba83-7699dc5eb235</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;DearJørgen,&lt;/p&gt;
&lt;p&gt;Thanks for reply.
Already  am using Nordic UART Service Client example. Here I am facing delay problem. Please Check my code and sample data packet
My code : &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8831.Code.txt"&gt;Code.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sample Packets :&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Packets.docx"&gt;Packets.docx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Non Connectable Scanning Example</title><link>https://devzone.nordicsemi.com/thread/69140?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 14:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9709ae-d61f-4b80-abf2-fab7c1d76e9e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When your device is operating in central mode, you are never connectable. The central is the one initiating a connection to a peripheral. I guess what you want to implement is an &lt;em&gt;observer&lt;/em&gt; device.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any observer-only examples in our SDK, but any of the central examples should easily be adoptable to this purpose by removing the code related to connections. I would recommend that you start with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_nus_c.html?cp=4_0_0_4_2_0_3"&gt;Nordic UART Service Client&lt;/a&gt; example, as you want to transmitt data from the advertisement packages over UART.&lt;/p&gt;
&lt;p&gt;Inside the &lt;code&gt;on_ble_evt()&lt;/code&gt; function you should change the &lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt; case to transmitt the data you require over UART using &lt;code&gt;printf()&lt;/code&gt; function. The peer address is already shown in the example. RSSI can be fetched from the advertisement package in the same way: &lt;code&gt;p_adv_report-&amp;gt;rssi&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;You need to remove the call to &lt;code&gt;sd_ble_gap_connect()&lt;/code&gt;, to avoid connections to devices advertising the Nordic UART service (NUS). You can also remove the other cases within the &lt;code&gt;on_ble_evt()&lt;/code&gt; function, as these are related to connections.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>