<?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>Bluetooth connection basic connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89733/bluetooth-connection-basic-connection</link><description>Basic Bluetooth connection question 
 How do advertisements usually work? So I have earbuds and a phone. When I pull the earbuds out of the case they auto connect to a bonded phone. When i push the button, they enter pairing mode and now a phone can see</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jul 2022 20:26:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89733/bluetooth-connection-basic-connection" /><item><title>RE: Bluetooth connection basic connection</title><link>https://devzone.nordicsemi.com/thread/376278?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 20:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cea46110-9463-4d34-a2de-4e7460608e3b</guid><dc:creator>dmleone</dc:creator><description>&lt;p&gt;very helpful. Is there some built in functions that can either return true if and advertisement is showing itself to be a bonded device or is there some function&amp;nbsp;I can call after&amp;nbsp;I initially connect that can determine if the unit I am connected to has been previously bonded? I am not finding anything like an isBonded(struct bt_conn *conn) or isBonded(bt_addr_le_t addr) function of sorts. Something i could just test before i go attempt to change security levels&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection basic connection</title><link>https://devzone.nordicsemi.com/thread/376201?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 12:09:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:302bcad6-5974-42da-bd0c-57b4166df6ae</guid><dc:creator>Kenneth</dc:creator><description>[quote user="dmleone"]But if I simply advertise, the central does not automatically connect. I have to initiate the conneciton manually some way. Is there a type or some way of&amp;nbsp;calling a bond check for auto connect when seeing an advertisement?[/quote]
&lt;p&gt;I know that is the case for many OS, because the OS will autoconnect some peripheral devices that support specific features the OS use (e.g. HID devices), also I believe some heart rate sensors also will auto connect, but other non-standardized profiles may not auto connect unless the user actively do so.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection basic connection</title><link>https://devzone.nordicsemi.com/thread/376191?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 11:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84a4e51a-5cbf-44a5-bfd7-4b154b666469</guid><dc:creator>dmleone</dc:creator><description>&lt;p&gt;This is how i assume it functions. I believe there are 128bytes of data actually transmitted on a BLE packet and we can manipulate 31 of those bytes. Inside the non-manipulatable portion, contains a MAC address. And it is in this non-manipulated data where bonding and re-connection code can be automated. Is this correct?&lt;br /&gt;&lt;br /&gt;I have set up code and am able to establish a pair bond pair. I am sure I am bonded and paired as I will get a pairing_complete + security_changed callback the first pairing request and after that first initial pair and bond, subsequent connection result in only a security_changed callback feature.&lt;br /&gt;&lt;br /&gt;But if I simply advertise, the central does not automatically connect. I have to initiate the conneciton manually some way. Is there a type or some way of&amp;nbsp;calling a bond check for auto connect when seeing an advertisement?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection basic connection</title><link>https://devzone.nordicsemi.com/thread/375985?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 11:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a2faede-eacd-4210-9154-12f0ccb641f7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;A&amp;nbsp;peripheral device that is advertising may or may not have bonded previsouly with the phone. Each advertisment packet contain some type of address, and the phone can based on the address know if it has been previously bonded or not, if previously bonded the phone&amp;nbsp;typically will connect. It&amp;#39;s also worth mentioning that a peripheral device that is advertising will typically have a list of previously bonded devices internally (e.g. whitelist), and typically the peripheral only allow phones that are in the list allow to connect, it&amp;#39;s only if the user do an active choice that&amp;nbsp;the peripheral allow other phones to connect and bond.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>