<?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>How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23563/how-to-advertising-and-scan-at-the-same-time</link><description>I am now using 52832 to do a project, need to send a BLE broadcast package first, and then start scan, what examples can I refer to? 
 Attachment is my TX/RX process，and I need to implement the device B</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 23 Jul 2017 10:23:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23563/how-to-advertising-and-scan-at-the-same-time" /><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92558?ContentTypeID=1</link><pubDate>Sun, 23 Jul 2017 10:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11da33cd-5304-4a13-9c8e-a8e1fb0d657a</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;What&amp;#39;s a &amp;quot;locator&amp;quot; ?  Do you mean a &amp;quot;beacon&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92560?ContentTypeID=1</link><pubDate>Sun, 23 Jul 2017 07:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffccf348-32bc-4080-a37e-1c86dae927c8</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Still what is the meaning of these arbitrary delays? There is nothing like this defined in BT SIG Core spec so why you need them? And if Device B simply follows the spec and logical implementation of BLE functions why just don&amp;#39;t use it (meaning it will &amp;quot;listen&amp;quot; sooner then that 1ms after Tx window - whatever that Tx window is - and it might be listening longer)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92559?ContentTypeID=1</link><pubDate>Sun, 23 Jul 2017 06:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01514805-4969-41ed-b1f9-331e3772c807</guid><dc:creator>xu</dc:creator><description>&lt;p&gt;No，only device B is a nRF52832 device. device A is a locator that is designed by other Company.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92557?ContentTypeID=1</link><pubDate>Sat, 22 Jul 2017 22:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d032e46a-b235-401b-b580-e0571097f716</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Are both the Device A and Device B nRF52832 devices ?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think Android or iOS gives you access to the low level of the BLE hardware which would allow you to do this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92555?ContentTypeID=1</link><pubDate>Sat, 22 Jul 2017 09:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:612d5be4-b4c1-4511-97e1-37bade11c0f8</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;...(2/2)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you set 100% scanning duty cycle for Observer or if you synchronize Adv. interval with Scnanning interval then you should see Soft Device to do Peripheral task (that&amp;#39;s short Tx + if your advertisement is scannable then also short Rx, however gap between them is 150us as defined in BT SIG Core spec) and right after it (much faster then 1ms)observer&amp;#39;s Rx window starts (which is no way how to really &amp;quot;see&amp;quot; it so you can only imagine it happens;) - length depends on duty cycle you set.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I don&amp;#39;t see any problem in implementing this (however I still don&amp;#39;t understand where these arbitrary 1ms/2ms gaps are coming from and why;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92554?ContentTypeID=1</link><pubDate>Sat, 22 Jul 2017 09:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09391bb0-27e2-4517-b4c2-1d12220224ae</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Nice. So you are defining your own radio timing so you are not really interested about BLE. This almost looks like you want to write your won radio protocol. If you want to stay with BLE and you want to use Nordic stack (Soft Device) - which will save you like 6-12 months of life - then you need to accept natural timings in there. These mean that you can run dual roles and switches between Tx/Rx will be little more complex but in general much much much faster then 1ms. To be specific for Device B:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use any BLE multirole example for inspiration, but in fact you will run one GAP Peripheral/Broadcaster and one GAP Central/Observer role.
(1/x)...&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92561?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 10:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9b9353e-28da-48d4-a56c-74f563e02360</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I do understand it but why exactly 2ms? All BT stacks I&amp;#39;ve seen can multiplex Tx/Rx much faster so letting it on them and just run both roles in parallel should do the job.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92562?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 10:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492d28e9-287f-4854-ae26-9261c1736106</guid><dc:creator>xu</dc:creator><description>&lt;p&gt;Thank you, my project is a similar beacon application, the difference is that after the device sends a beacon, it needs to receive a reply (to execute some commands).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Advertising and Scan at the same time</title><link>https://devzone.nordicsemi.com/thread/92556?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 08:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f7101da-f8a3-43a8-8024-8e8d16e70d34</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;The exact timing doesn&amp;#39;t make much sense and you might get some troubles catching exactly 2ms delay but it should be possible after some fight with the code and testing. When it comes to dual roles you just need to implement both GAP Peripheral and Observer/Central. There are &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/examples_ble_cen_per.html?cp=4_0_0_4_2_1"&gt;dual BLE role examples in the SDK&lt;/a&gt;, you might like BLE relay but in the end you will probably arrive to your own FW code just slightly inspired by these...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>