<?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>Scan and Advertise</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64050/scan-and-advertise</link><description>Hi, 
 I modified the ble_app_att_mtu_throughput example to scan and advertise simultaneously. I want to have two nRF52’s that can read each other’s advertisements and pull out the rssi information to detect proximity to one another. 
 The problem is,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 02 Aug 2020 16:51:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64050/scan-and-advertise" /><item><title>RE: Scan and Advertise</title><link>https://devzone.nordicsemi.com/thread/262677?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2020 16:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a3ff26-e9b6-4e8f-b311-c48287a95195</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Sure! So I built it on top of the ble_att_mtu_throughput example which is built to scan and advertise (has scan_start and advertise_start functions). Basically you can set the advertising/scanning intervals (time between advertisements and scans) and scan window (how long out of the interval you&amp;rsquo;re scanning). There&amp;rsquo;s backend nordic code that schedules each event for you based on the info you set in sdk_config.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan and Advertise</title><link>https://devzone.nordicsemi.com/thread/262676?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2020 16:04:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52539fcf-8806-4a93-bcb0-d70bad456128</guid><dc:creator>scic0</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/kmassa5"&gt;kmassa5&lt;/a&gt;, I am working on similar project where I need to detect the proximity between two nRF52 modules by both of them. I wanted to ask how did you enable simultaneous scanning and advertising?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you just call `nrf_ble_scan_start()` and `ble_advertising_start()` back to back and then the SoftDevice handled the rest?.&lt;/p&gt;
&lt;p&gt;Also, can you explain briefly (or point me to some resource) as how does simultaneous scanning and advertising work physically, I mean how are both of them time-slotted?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan and Advertise</title><link>https://devzone.nordicsemi.com/thread/261835?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 15:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b82a2a3-34a5-4d32-ba0d-66a79e59eb2c</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Update: To anyone looking at this for help, I fixed the problem by handling the analysis of advertising reports not in ble_evt_handler but in scan_evt_handler. Scan events contain advertising reports too! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan and Advertise</title><link>https://devzone.nordicsemi.com/thread/261650?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 16:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e38f995-e44f-422a-91c9-e03a4eee9517</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Thanks Simon, I&amp;#39;ll take a look!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT: Something I recently discovered is that the two boards do seem to pick up each other&amp;#39;s advertisements in their scan event handlers, and are able to connect to one another. However, neither is picking up advertising reports from the other. Do you think this could have something to do with their scan responses?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan and Advertise</title><link>https://devzone.nordicsemi.com/thread/261456?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 18:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae7b5d9-5472-4618-be27-1601efdde4df</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try the suggestions given by Kenneth in this ticket:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33826/how-to-improve-the-success-rate-of-scanning-ibeacon-stations"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/33826/how-to-improve-the-success-rate-of-scanning-ibeacon-stations&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>