<?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>Query regarding Central and peripheral || Advertisement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61218/query-regarding-central-and-peripheral-advertisement</link><description>Hi All, 
 I am new to BLE technology and I am working on nRF52840 and I have below queries. 
 1) I need to operate my device to scan and advertise both at the same time when it is already connected to the phone. 
 Is it possible? 
 2) While scanning how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 10 May 2020 15:38:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61218/query-regarding-central-and-peripheral-advertisement" /><item><title>RE: Query regarding Central and peripheral || Advertisement</title><link>https://devzone.nordicsemi.com/thread/249069?ContentTypeID=1</link><pubDate>Sun, 10 May 2020 15:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aac32d1-db24-4ff8-aedf-2d4603402abd</guid><dc:creator>Rakesh R</dc:creator><description>&lt;p&gt;Okay got it, thanks for the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding Central and peripheral || Advertisement</title><link>https://devzone.nordicsemi.com/thread/249068?ContentTypeID=1</link><pubDate>Sun, 10 May 2020 15:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03691f05-dd13-47e4-abcb-a53dd7289ca1</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;You cannot have two sets of advertisements with different parameters working in parallel. The only way is to switch between &amp;quot;low power&amp;quot; and &amp;quot;high power&amp;quot; packets dynamically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding Central and peripheral || Advertisement</title><link>https://devzone.nordicsemi.com/thread/249065?ContentTypeID=1</link><pubDate>Sun, 10 May 2020 15:24:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea126dea-31b1-42a1-88be-93dd5d227b01</guid><dc:creator>Rakesh R</dc:creator><description>&lt;p&gt;Hi Dmitry,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;for the prompt response.&lt;/p&gt;
&lt;p&gt;I got your point here for transmission power of advertising packet, but it still seems some confusion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;let me ask it again.&lt;/p&gt;
&lt;p&gt;i need to find the device in particular range, there is two categories of range let&amp;#39;s say one is up to 8 feet and other is 8-20 feet,.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so now i will have device which will advertise two advertisement packets, one with low power and one with high power.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so power will be fixed initially, no need to change power dynamically.&lt;/p&gt;
&lt;p&gt;so both advertisement packets will have there own configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding Central and peripheral || Advertisement</title><link>https://devzone.nordicsemi.com/thread/249063?ContentTypeID=1</link><pubDate>Sun, 10 May 2020 15:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2525a6b0-9cc3-44b0-a2d5-84e24b10e1f9</guid><dc:creator>Dmitry</dc:creator><description>[quote userid="90186" url="~/f/nordic-q-a/61218/query-regarding-central-and-peripheral-advertisement/249054"]Can I have two different advertisement packets with two different power??? Power will be fixed for each advertisement packet.[/quote]
&lt;p&gt;You can dynamically change the content of advertising packet, switching between them, see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32824/dynamically-updating-advertising-data-in-sdk-15"&gt;here&lt;/a&gt;. Concerning different power - as I answered above, there is an API to change advertising power, though I didn&amp;#39;t try to change&amp;nbsp;it on the fly, maybe you will have a luck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding Central and peripheral || Advertisement</title><link>https://devzone.nordicsemi.com/thread/249054?ContentTypeID=1</link><pubDate>Sun, 10 May 2020 08:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26803536-d6c5-40a4-9fec-06be637b4042</guid><dc:creator>Rakesh R</dc:creator><description>&lt;p&gt;Hi Dmitry,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1) Can I have two different advertisement packets with two different power??? Power will be fixed for each advertisement packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding Central and peripheral || Advertisement</title><link>https://devzone.nordicsemi.com/thread/249048?ContentTypeID=1</link><pubDate>Sat, 09 May 2020 21:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a487c59f-31bc-4dd6-9ef3-8f4c11c3187e</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) yes, you can configure a broadcaster and an observer along with a connection.&lt;/p&gt;
&lt;p&gt;2) there is always a chance of packet loss, even when scanning a single device, there are too many devices at 2.4Ghz band causing interference. Also, more devices are on air, more chances for collisions. In your case, assuming 100 devices are advertising with 2-second interval and payload is 31 bytes (whole packet takes about 400us on-air time), one can expect about 2% chance of collision, that is quite good.&lt;/p&gt;
&lt;p&gt;3) you can change TX power with&amp;nbsp;&lt;span&gt;sd_ble_gap_tx_power_set() API call (I can&amp;#39;t say for sure whether you can change TX power on the fly, maybe you will need to restart advertising to change power).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4) is &lt;a href="https://www.nordicsemi.com/Products/Low-power-short-range-wireless/Direction-finding"&gt;AoA/AoD&lt;/a&gt; positioning&amp;nbsp;an option for you?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>