<?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>BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94951/ble-configuration-to-accept-ble-pairing-request</link><description>I have a broadcaster and a central device. The broadcaster beacons data every 60sec and goes to sleep, a configuration I have considered for minimal power consumption. Now in addition: 
 1- I want every 24 hours the broadcaster sends request for BLE pairing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Dec 2022 15:59:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94951/ble-configuration-to-accept-ble-pairing-request" /><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401777?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 15:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:075b9ba0-7c7d-47f6-a815-eb78c067edb9</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;Thanks Hung. I ll test that. Based on what you said changing my device role from non-connectable beacon advertiser to a connectable beacon advertiser should not increase power consumption significantly.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401774?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 15:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb9e544-5af7-4ba8-a725-6be5ce4a9409</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kaveh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please don&amp;#39;t use the term &amp;quot;pairing&amp;quot; when you want to say &amp;quot;connecting&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Usually after sending the advertising packet the peripheral will switch to RX mode. This take 150us to switch to RX mode and if there is no connect request received the RX period will terminate after 60us.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401766?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 15:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7010889c-13b7-4b56-9860-a4c1329d8598</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;When the peripheral sends connectable beacon, how long&amp;nbsp;it should wait to hear back from central if there is BLE pairing to happen?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401652?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 08:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9959783d-844b-4cf4-8a3d-e53277faef5e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kaveh,&amp;nbsp;&lt;br /&gt;The reason the beacon was advertising in non-connectable is in fact to save power consumption. If a connection is not needed, you should advertise in non-connectable mode so that the advertiser doesn&amp;#39;t have to switch to RX mode to wait for connect request packet.&lt;/p&gt;
&lt;p&gt;But in your case you do need a connection so you need to do it in connectable mode. The difference is not significant though. The main consumption is when the device in sleep mode, especially when you advertise with long interval (15 seconds for example)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401586?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 16:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32a0ad81-4b89-4e23-93a8-9c7b110b8458</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;I see.&amp;nbsp;right now my end device is set as a non-connectable advertiser and just beacons data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have to change its role to a peripheral or connectable advertiser?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does it increase my&amp;nbsp;device power consumption? Can it still beacon if its role is peripheral?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401552?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 14:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa1a780-4769-4e8a-9a0c-7ff4a1cf40d7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kaveh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Yes, any example central/peripheral in the SDK would do that.&amp;nbsp;&lt;br /&gt;The only example that doesn&amp;#39;t do connection is the beacon example.&amp;nbsp;&lt;br /&gt;I would suggest to test with the \examples\ble_peripheral\ble_app_blinky as the peripheral (Broadcaster) and&amp;nbsp;\examples\ble_central\ble_app_blinky_c as the central.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or you can test with&amp;nbsp; ble_app_uart and ble_app_uart_c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401547?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 14:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96968b65-3cd6-4266-93b8-16b44c6283e6</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;Thanks Hung.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there sample codes in SDK for central device to scan for a broadcaster and connect to it? Is there sample code for broadcaster to connect to a central device upon such request?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401430?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 08:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fda0d8f-aa34-4c81-8797-a8525e028588</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kaveh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I want to clarify the difference between &amp;quot;connect&amp;quot; and &amp;quot;pair&amp;quot;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Connect: when the two device establish a direct communication , a connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Pair: when the two devices encrypt the connection. Pairing only happens after the two device establish a connection, only after they &amp;quot;connect&amp;quot;. You don&amp;#39;t have to pair all the time when you connect to a device because you can &amp;quot;bond&amp;quot;&lt;/p&gt;
&lt;p&gt;- Bond: when the two device store the encryption key, so next time when they connect they don&amp;#39;t have to do pairing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So there is no problem pair with a broadcaster after you connect to the broadcaster /advertiser.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401365?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 19:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b43af7c7-0909-484b-92fc-8db45d431071</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;Thanks Hung.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I will configure my end device as a broadcaster and the other device as central. The broadcaster can beacon every 15 sec. If there is a request from the user to send some data from central to broadcaster, the central will scan for that particular broadcaster and waits until it receives a beacon from the broadcaster. The next time the broadcaster beacons and that is received by the central, the central&amp;nbsp;should request and BLE pair with broadcaster? Is it possible to pair with a broadcaster?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Configuration to accept BLE pairing request</title><link>https://devzone.nordicsemi.com/thread/401229?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 11:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1bde503-153f-4375-a307-53f7c0860d9a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kaveh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is no way a central can wake up a broadcaster without the broadcaster pro-actively wake up and advertise periodically. There is no &amp;quot;wake up on radio&amp;quot; option with BLE as this method require high sleep current.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the way you can do this is to configure the broadcaster to sleep and wake up every say every 30 seconds to do advertising. If the central has receive a request from end user to connect to the broadcaster it can scan and connect to the broadcaster when it scan the advertising packet. The latency here will be maximum 30 seconds. You can reduce power consumption by reduce the rate of wake up rate. But that will increase the latency as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please also note that if you do bonding, both peer devices will store a LTK (Long Term Key) and they can re-encrypt the link automatically. You don&amp;#39;t need to do pairing on every connection.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>