<?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>Problem with direct advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17149/problem-with-direct-advertising</link><description>Hi. I need to use direct advertising option in my application to minimize the time needed to establish the connection.
Firstly, I set up the connection during &amp;quot;normal&amp;quot; fast connectable indirect advertising, where central and peripheral devices are being</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2016 13:24:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17149/problem-with-direct-advertising" /><item><title>RE: Problem with direct advertising</title><link>https://devzone.nordicsemi.com/thread/65891?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 13:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50156833-0d07-4487-9ab6-36a226e357a2</guid><dc:creator>AndrzejB</dc:creator><description>&lt;p&gt;I completely forgot there is no other info in Advertising Packet in direct mode. Now it&amp;#39;s working in the way I want, Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with direct advertising</title><link>https://devzone.nordicsemi.com/thread/65890?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 10:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eff2354-0d18-4193-8da1-4e705019210c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you getting BLE_GAP_EVT_ADV_REPORT events when you do directed advertising? If you are, have you made changes to the criterias for which device you want to connect to? The directed advertising packets only include the peripherals address and the centrals address, please see Bluetooth Core Specification 4.2, Volume 6, Part B, Section 2.3.1.2. So if you look for a UUID or something like that the central will not connect. If you get a BLE_GAP_EVT_ADV_REPORT event you should check if the type is BLE_GAP_ADV_TYPE_ADV_DIRECT_IND, and then you should check if the peripherals address matches with peer_addr and call sd_ble_gap_connect().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with direct advertising</title><link>https://devzone.nordicsemi.com/thread/65888?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 08:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3600140-be60-4cfc-8da1-d4d3f24fd722</guid><dc:creator>AndrzejB</dc:creator><description>&lt;p&gt;My central is based on ble_app_hrs_c example, where I removed both of services and inserted my own service (based on ble_lbs_c).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with direct advertising</title><link>https://devzone.nordicsemi.com/thread/65889?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 07:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd26fb3-ec13-4f73-a5c4-6372767cc35f</guid><dc:creator>AndrzejB</dc:creator><description>&lt;p&gt;I start direct advertising like in sequence chart available in Infocenter for &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Flib_ble_advertising.html"&gt;Advertising Module&lt;/a&gt;
and I get the BLE_ADV_EVT_DIRECTED event. After timeout I start direct advertising in low duty cycle and I get BLE_ADV_EVT_DIRECTED_SLOW event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>