<?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>Direct Advertisement, how to setup central?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14451/direct-advertisement-how-to-setup-central</link><description>Hello, 
 I have a peripheral based on the nrf52 that connects to my Android phone already in direct advertisement mode. 
 I am trying to get a NRF52 central working with this direct advertisement. Normal advertisement modes works. 
 What is the key</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jun 2016 22:01:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14451/direct-advertisement-how-to-setup-central" /><item><title>RE: Direct Advertisement, how to setup central?</title><link>https://devzone.nordicsemi.com/thread/55205?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 22:01:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:191bcb06-179c-48da-bd1d-95f2eaf75168</guid><dc:creator>FI</dc:creator><description>&lt;p&gt;My bad.  The sniffer is revealing.  The &amp;quot;payload&amp;quot; for direct advertisement is initiator address instead of the device name my code was expecting!  The code currently checks for proper device name, therefore no connections since no name matches.&lt;/p&gt;
&lt;p&gt;It is working now.  Thanks!&lt;/p&gt;
&lt;p&gt;FI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement, how to setup central?</title><link>https://devzone.nordicsemi.com/thread/55204?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 20:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5e31a86-4136-4c07-9b57-57fc52ef2dcd</guid><dc:creator>FI</dc:creator><description>&lt;p&gt;Here is what was checked:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Central device address and its type via UART at central at first connection is&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;type: 1&lt;/li&gt;
&lt;li&gt;address: 56 67 B3 36 5B D7&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start="2"&gt;
&lt;li&gt;
&lt;p&gt;Using a sniffer, indirect advertisement Initiator Address is the same
56 67 B3 36 5B D7&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Address type is checked on the peripheral side via UART as type 1.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here is the packet data from TI sniffer&lt;/p&gt;
&lt;p&gt;+----------------------------------------------------+----------------- - - -
|     Packet sniffer frame header                    |
+----+-------------+-------------------------+-------+
|info| Packet nbr. | Time stamp              | Length|  Packet data
+----+-------------+-------------------------+-------+----------------- - - -
| 01 | 60 02 00 00 | 51 05 A8 33 02 00 00 00 | 18 00 | 17 D6 BE 89 8E C1 0C 2C 69 2E 02 3C DF 56 67 B3 36 5B D7 E7 D1 1F 40 A5
+----+-------------+-------------------------+-------+----------------- - - -&lt;/p&gt;
&lt;p&gt;The central sees the Direct Advertisement from this particular peripheral, and a trap catches the peer advertisement in the BLE_GAP_EVT_ADV_REPORT handler:&lt;/p&gt;
&lt;p&gt;peer type: 1&lt;br /&gt;
2C 69 2E 2 3C DF&lt;/p&gt;
&lt;p&gt;Still the central is not connecting when the peripheral goes into Direct ADV.  What are the necessary steps for nrf52 central to connect to this guy? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement, how to setup central?</title><link>https://devzone.nordicsemi.com/thread/55203?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 13:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c21068-08d0-48b0-be66-c636c730f82e</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, I see. I was thinking high duty cycle directed advertising. Anyway.&lt;/p&gt;
&lt;p&gt;Do you have an extra nRF51-DK or a nRF51-Dongle? If so, could you use &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/26386/14/65517724"&gt;the sniffer&lt;/a&gt; to check if there is any interaction between the central and the peripheral device?  And upload the sniffer trace here?&lt;/p&gt;
&lt;p&gt;The sniffer should be used with Wireshark, and it works best with version 1.10, not one of the newer versions. Wireshark can be downloaded here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.wireshark.org/download/win32/all-versions/"&gt;www.wireshark.org/.../&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.wireshark.org/download/win64/"&gt;www.wireshark.org/.../&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For directed advertising, the advertising packets will contain an address, the only address that is allowed to send a connect request. Does the address in the advertising packet is the same as the address of your central device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement, how to setup central?</title><link>https://devzone.nordicsemi.com/thread/55202?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 13:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe75476a-6988-485c-b44c-566a7c9cdcd5</guid><dc:creator>FI</dc:creator><description>&lt;p&gt;Kristin,  Thanks for your input.&lt;/p&gt;
&lt;p&gt;I should clarify better, the implementation:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Only DIRECT ADVERTISEMENT SLOW is enabled on peripheral, low duty cycle, but the timeout is very very long.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scan window and interval changed to your 30ms/60ms on central per your advise.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scan params setup: no scan request, no whitelist&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No device manager implemented in the Central.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For normal advertisement the central connects to peripheral fine. Only when the peripheral switch to DIRECT ADV SLOW after an intended link dropout, the central fails to establish the connection.&lt;/p&gt;
&lt;p&gt;When using an Android phone as a central using the Nordic master control panel, the above proposed use scenario works fine.&lt;/p&gt;
&lt;p&gt;What else I should look into? I have read about the ADDR type being Public or Random, but was not able to find where to specify that either in the Central app nor the Peripheral.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;FI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement, how to setup central?</title><link>https://devzone.nordicsemi.com/thread/55201?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 07:01:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40301d01-f428-472e-838a-e4276801d571</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When using direct advertising, there is no specific setup for the central, except that you have to make sure that the central is scanning with appropriate scan interval/scan window.&lt;/p&gt;
&lt;p&gt;In order to achieve a fast connection establishment a possible, the central should have close to continuous scanning and have a fairly short scan interval. Bluetooth core specification v.4.2, vol. 3, part C, appendix A recommends the following parameters for a fast connection initiation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Scan interval: 30 ms to 60 ms&lt;/li&gt;
&lt;li&gt;Scan window: 30 ms&lt;/li&gt;
&lt;li&gt;Minimum time for doing the scanning (scan period): 30.72 s.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>