<?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>How to pair two bluetooth devices??</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70823/how-to-pair-two-bluetooth-devices</link><description>Hii guys , 
 
 I am trying to pair two nrf52 bluetooth devices. How can we pair two stand alone nrf52 devices to send and receive data? Is there any example code to show such demonstration?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jan 2021 07:48:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70823/how-to-pair-two-bluetooth-devices" /><item><title>RE: How to pair two bluetooth devices??</title><link>https://devzone.nordicsemi.com/thread/290929?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 07:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463b12de-c69a-4596-a3c1-19d7667dd21d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello NJ_B,&lt;br /&gt;&lt;br /&gt;If you are interested in seeing an example of basic pairing and information sending / receiving, I would recommend that you take a look at &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_blinky.html"&gt;the BLE Blinky example from the nRF5 SDK&lt;/a&gt;.&lt;br /&gt;The example might seem convoluted when you first look into its source code, but just remember that most of it is standard functions for configuring and initiating the BLE communication. Other than that, the application only sends it button state to the paired device. The example comes with &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_blinky.html"&gt;one peripheral&lt;/a&gt; and one &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_blinky_c.html"&gt;central application&lt;/a&gt;&amp;nbsp;and works by having the peripheral device start advertising with its name &amp;#39;Nordic_Blinky&amp;#39;. The central then scans for advertisers with this name, and requests to connect to it if one is found.&lt;br /&gt;From there, the connection is established, and the two devices will alert each other if their button state should change. For this, they use&amp;nbsp;&lt;em&gt;notification&lt;/em&gt;&lt;em&gt;s&lt;/em&gt;, to send the newest button state.&lt;br /&gt;&lt;br /&gt;Contrary to IOT_Man&amp;#39;s suggestion &lt;em&gt;I would not recommend&lt;/em&gt; that you try to use Mesh for this if you are only interested in sending and receiving information between two devices. Mesh is better suited for larger networks which spans a range larger than the range of BLE communication - creating the need for relaying messages. This is where Mesh shines, not on 1 to 1 communication.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to ask if anything should be unclear, or if you encounter any other issues or questions!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pair two bluetooth devices??</title><link>https://devzone.nordicsemi.com/thread/290853?ContentTypeID=1</link><pubDate>Sat, 23 Jan 2021 12:16:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f808406-d75b-43cd-82ae-1a117d7a4616</guid><dc:creator>IOT Man</dc:creator><description>&lt;p&gt;Try using Mesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pair two bluetooth devices??</title><link>https://devzone.nordicsemi.com/thread/290852?ContentTypeID=1</link><pubDate>Sat, 23 Jan 2021 12:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:944e38d9-2a20-4787-a0bd-3c9a34ff92cb</guid><dc:creator>NJ_B</dc:creator><description>&lt;p&gt;Hii I am using nrf52 sdk and one standalone nrf52832 bluetooth mudule.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pair two bluetooth devices??</title><link>https://devzone.nordicsemi.com/thread/290851?ContentTypeID=1</link><pubDate>Sat, 23 Jan 2021 12:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6496fc6-ad22-41fd-8607-7509bbed75a1</guid><dc:creator>IOT Man</dc:creator><description>&lt;p&gt;Which devices are you using?&lt;/p&gt;
&lt;p&gt;You can try using the Mesh SDK if you are using Development kit and Dongle&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK-for-Mesh"&gt;https://www.nordicsemi.com/Software-and-tools/Software/nRF5-SDK-for-Mesh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Like configure one device as client and one as server&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>