<?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>Beacon Scan response request and packet timing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29719/beacon-scan-response-request-and-packet-timing</link><description>I&amp;#39;m reading about beacon scan response requests and scan response packets, where a client (like a phone) can request the beacon respond back with local name and other info. I have a few questions regarding this: 
 
 
 After a Beacon sends its advertisement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Jan 2018 16:04:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29719/beacon-scan-response-request-and-packet-timing" /><item><title>RE: Beacon Scan response request and packet timing</title><link>https://devzone.nordicsemi.com/thread/117907?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 16:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7692c796-c701-4f55-b14f-236bb218e0fa</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The beacon starts listening for scan request almost immediately after it has transmitted its advertising packet. Please refer to the BLE Specification Version 5.0 | Vol 6, Part B, CH 4.4.2.5.1 &amp;quot;Scannable Undirected Event Type using ADV_SCAN_IND&amp;quot;. There you will find the following figure:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/tifs.PNG" alt="tifs" /&gt;&lt;/p&gt;
&lt;p&gt;The adv packet, scan request, and scan response is separated by a time length called T_IFS. The T_IFS (Time Inter Frame Space) is defined in the spec to 150us (see spec Vol 6, Part B, Ch 4.1.1 &amp;quot;Inter Frame Space&amp;quot;).&lt;/p&gt;
&lt;p&gt;Here is a plot of the nRF52&amp;#39;s current consumption when it is advertising and receiving scan requests:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/scanrsp.png" alt="image" /&gt;&lt;/p&gt;
&lt;p&gt;You can clearly see the current visualizes how the radio sends packets on all three advertising channels, listens for scan and connect requests, and sends scan responses. You can also see the inter frame space. The Softdevice handles all this for your, but does not have the time to put the CPU to sleep between each radio operation (as indicated by the 4mA current draw between the radio frames).&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Please refer to Spec Version 5.0 | Vol 6, Part B, Ch 4.4.2.6 &amp;quot;Non-Connectable and Non-Scannable Undirected Event Type&amp;quot;:&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;The non-connectable and non-scannable
undirected event type allows a scanner
to receive information from the
advertiser. This information is
contained either in the
ADV_NONCONN_IND PDU or in an
AUX_ADV_IND PDU pointed to by the
AuxPtr field of the ADV_EXT_IND PDU.&lt;/p&gt;
&lt;p&gt;The advertiser shall either move to
the next used primary advertising
channel index or close the advertising
event after each ADV_NONCONN_IND or
ADV_EXT_IND PDU that is sent. &lt;strong&gt;The Link
Layer does not listen, and therefore
cannot receive any requests from
scanners or initiators&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In other words, a non-connectable or non-scannable device will not receive scan requests and/or transmit scan responses.&lt;/p&gt;
&lt;ol start="3"&gt;
&lt;li&gt;All this is handled by the stack according to the BLE spec.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>