<?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>Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71519/pairing-without-entering-the-pin</link><description>H, I have a problem, that I can connect to my BT device without entering the PIN upon first paring. The device is based on nRF52832 and I followed peripheral_sc_only sample, which I found sets the correct security level for required pairing. I am using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jan 2022 23:31:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71519/pairing-without-entering-the-pin" /><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/347475?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 23:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b2c7f5b-643e-4af2-baaa-120399cd45ea</guid><dc:creator>greeneyehawk</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m having a similar problem using an nRF52840-DK (with Zephyr).&amp;nbsp; I&amp;#39;d like to operate the board as a peripheral which requires a passkey for pairing.&amp;nbsp; Using two different scanner apps on Android, I&amp;#39;m able to see all the characteristics in the services offered before entering the pin.&amp;nbsp; I&amp;#39;ve tried following the modifications in this thread, but I still can&amp;#39;t get hidden characteristics.&amp;nbsp; &amp;nbsp; Would you be able to help me?&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;PJ&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/306213?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 06:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d94983-4108-4daf-ab93-c6986718312b</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;br /&gt;&lt;br /&gt;thank you for this.&lt;br /&gt;I tried what you suggested (modified the code for NUS in&amp;nbsp;ncs/nrf/subsys/bluetooth/services/nus.c) and added disconnect call if failing fails.&lt;br /&gt;&lt;br /&gt;Now, even if I manage to click on NUS service in the APP, I cannot send any data to it.&lt;br /&gt;&lt;br /&gt;It is working as expected now.&lt;br /&gt;&lt;br /&gt;Thanks again and BR,&lt;br /&gt;Matej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/305810?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 11:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9b2e334-103d-41d1-8dd3-ff76d54b0a18</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Matej,&lt;/p&gt;
&lt;p&gt;I have missed to see this basic point about service declaration&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;A service declaration is an Attribute with the Attribute Type set to the UUID for
&amp;#171;Primary Service&amp;#187; or &amp;#171;Secondary Service&amp;#187;. The Attribute Value shall be the
16-bit Bluetooth UUID or 128-bit UUID for the service, known as the service
UUID. A client shall support the use of both 16-bit and 128-bit UUIDs. A client
may ignore any service definition with an unknown service UUID. An unknown
service UUID is a UUID for an unsupported service. The Attribute Permissions
shall be read-only and shall not require authentication or authorization.
&lt;/pre&gt;The service will always have read permission only and the IOS can discover them even before encryption. It is the central/phone that initiates the service discovery and your product being a slave cannot control this. It need to respond to the service discovery by showing the services but not the contents of it.&lt;/p&gt;
&lt;p&gt;I have changed the declaration of the attributes so that the values can be read only after encryption.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* UART Service Declaration */
BT_GATT_SERVICE_DEFINE(nus_svc,
BT_GATT_PRIMARY_SERVICE(BT_UUID_NUS_SERVICE),
	BT_GATT_CHARACTERISTIC(BT_UUID_NUS_TX,
			       BT_GATT_CHRC_NOTIFY,
			       BT_GATT_PERM_READ_ENCRYPT,
			       NULL, NULL, NULL),
	BT_GATT_CCC(NULL, BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_READ_AUTHEN | BT_GATT_PERM_WRITE_AUTHEN),
	BT_GATT_CHARACTERISTIC(BT_UUID_NUS_RX,
			       BT_GATT_CHRC_WRITE |
			       BT_GATT_CHRC_WRITE_WITHOUT_RESP,
			       BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_WRITE_ENCRYPT,
			       NULL, on_receive, NULL),
);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also if the connection fails, disconnect as below in ae_bt_conn.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void pairing_failed(struct bt_conn *conn, enum bt_security_err reason)
{
  char addr[BT_ADDR_LE_STR_LEN];

  bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr));

  LOG_INF(&amp;quot;Pairing failed and hence disconnecting conn: %s, reason %d&amp;quot;, log_strdup(addr),
      reason);
  
  bt_conn_disconnect(conn, BT_HCI_ERR_AUTH_FAIL);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/305411?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 06:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec0b9453-a990-4a99-83b2-7549d4e5b626</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for attaching that. I will try to modify the project so that the pairing happens before discovery.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="left:-42px;top:-20.0028px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/304890?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 15:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91aa112e-dc5a-4f7e-97de-b940725e7659</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;I have removed all not necessary stuff from the project and just left two source files in it.&lt;br /&gt;I have uploaded it&amp;nbsp;&lt;a href="https://easyupload.io/hiei53"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you can have a look and tell us what we need to change so one cannot discover (or send anything) to device if paring is not completed successfully we&amp;#39;d appreciate it.&lt;br /&gt;&lt;br /&gt;Thnaks,&lt;br /&gt;Matej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/304556?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 13:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:742fa50a-2805-42ee-ade2-49ce677ac197</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Matej Kupljen"]Probably we need to advertise only dive name in the beginning and only after the paring is done, we should advertise all the services?[/quote]
&lt;p&gt;&amp;nbsp;Yes, This is normally the case when you do not want anyone to view or discover your services on an unencrypted link. The change for this is trivial, that you just need to move the pairing initiate process just after the connection is established.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/304524?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 12:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2de9a334-3e03-4384-930b-488472cc8b83</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;thank you, glad that you were able to reproduce this.&lt;br /&gt;&lt;br /&gt;So for you suggestions mentioned above:&lt;br /&gt;1) If you find a configuration option, that would be great&lt;br /&gt;2) If there is an example how to achieve this already in some sample code, than I can check this and fix it. Otherwise, I&amp;#39;ll try to make a simple project as possible that will expose this behavior (need to remove some custom files) and will send it to you. But, if there is already available example, I&amp;#39;d prefer that.&lt;br /&gt;Probably we need to advertise only dive name in the beginning and only after the paring is done, we should advertise all the services?&lt;br /&gt;&lt;br /&gt;Thanks and BR,&lt;br /&gt;Matej&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/303990?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 11:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a16ec78-6e5f-458c-8a0b-e9837ad5bdeb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am able to reproduce this. I think the issue here are two things&lt;/p&gt;
&lt;p&gt;1) The connection is not disconnected even after pairing failure. Must a simple configurable thing, i should look what configuration needs to be changed here.&lt;/p&gt;
&lt;p&gt;2) Pairing is started after discovery is initiated, so even when pairing is failed, the phone has the connection ongoing and you can see the discovered services (which happened on unencrypted link)&lt;/p&gt;
&lt;p&gt;You can change the code a bit to start pairing before discovery procedure is started, so that discovery will only be done on the encrypted link and also to disconnect if pairing failed.&lt;/p&gt;
&lt;p&gt;If you can attach your project you ported for nRF52833 (the project you used to make those elf and hex file)&amp;nbsp;I can try to make the changes for you and upload here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/303642?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 07:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a99a287-6962-4d5c-9150-959237d01e73</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;&lt;span&gt;sorry about the late reply, we were very thinly staffed here during Easter and now recovering from it. I will test you elf and hex today&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/302691?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 10:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ba4fb33-6038-4fc7-b738-f071e55c94ba</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;I have build our application for&amp;nbsp;nrf52833dk (using Segger Embedded Studio and selected nrf52833dk_nrf528333 under board name) and I uploaded the elf and hex file&amp;nbsp;&lt;a href="https://easyupload.io/uvix2f"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please let us know if this is O.K. with you and you can reproduce the test.&lt;/p&gt;
&lt;p&gt;Thanks;&lt;br /&gt;Matej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/302122?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 11:59:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f2de953-b8c5-4e44-912e-44e508c9b4cc</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Matej Kupljen"]I saw that it actually detected two devices with the same MAC and different name:[/quote][quote user="Matej Kupljen"]Could this be a problem?[/quote]
&lt;p&gt;Yes, this seems to be the issue, that the wireshark is somehow locking to the other device with the same MAC address-&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Matej Kupljen"]What we can also do is that I build the application for your board, please tell me which one, and I can send you the HEX file and you can try it out yourself. What do you think about this idea?[/quote]
&lt;p&gt;&amp;nbsp;That would be great, If you an build it for PCA10056 or PCA10040 and give me the HEX and ELF files so that i can debug, it would be easier for me to test&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/301821?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 08:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb69df54-a2c8-469d-a1e1-d80d68aea77d</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;I checked both pcap files I uploaded and you are right, I do not see any other packets then ADV_IND, SCAN_REQ, SCAN_RESP and 1 (one!) CONNECT_REQ. No data packets.&lt;/p&gt;
&lt;p&gt;If I set up everything like described in the nRFSniffer document on Linux, using it from wireshark doesn&amp;#39;t capture ANY packet, nothing. Only from command line.&lt;/p&gt;
&lt;p&gt;I installed everything (Wireshark, Python, nRFSniffer, ...) on my Windows 10 machine and tried to do a capture there. Now it works O.K. from wireshark, however, I only see those packets mentioned above. Not sure why I don&amp;#39;t get any other packets.&lt;br /&gt;&lt;br /&gt;One thing I noticed is while&amp;nbsp;testing BT on Linux and did a BT LE scan. I saw that it actually detected two devices with the same MAC and different name:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;E3:41:0F:BF:6C:61 Pair Test
E3:41:0F:BF:6C:61 (unknown)
E3:41:0F:BF:6C:61 Pair Test
E3:41:0F:BF:6C:61 (unknown)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could this be a problem?&lt;br /&gt;&lt;br /&gt;I did a screen record of the problem I am trying to explain and I uploaded it&amp;nbsp;&lt;a href="https://easyupload.io/f0nij2"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;What we can also do is that I build the application for your board, please tell me which one, and I can send you the HEX file and you can try it out yourself. What do you think about this idea?&lt;br /&gt;&lt;br /&gt;Thanks and BR,&lt;br /&gt;Matej&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/301113?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 07:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0927591-76bb-4512-8d29-913e24f0584b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not so familiar with the command line capture way for the wireshark. Have you tried to open the attachment you did here to see if you can see any transactions that you are referring to? I can only see broadcast capture from couple of devices and no connect or pairing transactions at all. Can you use the wireshark directly to filter the traffic just to your device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/300377?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c9dff6-f782-41ec-a71a-5e53ddf1c5f1</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;br /&gt;&lt;br /&gt;I did a capture again, with the following command:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;./nrf_sniffer_ble.sh --capture --fifo capture/ble_cap_2.pcap --extcap-interface /dev/ttyACM1 --baudrate 460800&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;so no filter was included, If you want me to use different command, please let me know.&lt;br /&gt;I just managed to reproduce this again, so:&lt;br /&gt;1. Clean the entire FLASH&lt;br /&gt;2. Program the device&lt;br /&gt;3. Turn it on&lt;br /&gt;4. Use the phone to connect to it&lt;br /&gt;5. When the paring dialog appears, click cancel and quickly click in NUS TX Chractericistic (UUID 0x2902)&lt;br /&gt;6. Now I can NUS RX Characteristic to send the data to my device&lt;br /&gt;&lt;br /&gt;I my application I use NUS and BT update options.&lt;br /&gt;&lt;br /&gt;The file is uploaded&amp;nbsp;&lt;a href="https://easyupload.io/asjmu6"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you need me to do anything else, or to change the capture option, please let me know.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Matej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/300285?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 07:24:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0ad32c4-cbad-4888-a9da-2e37fd52e401</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Matej,&lt;/p&gt;
&lt;p&gt;I changed the file you attached ble_cap_2 -&amp;gt; ble_cap_2.pcap and i do not see any other activity in the sniffer trace other than just broadcast. This does not look like the activity you mentioned regarding pairing is not captured by this sniffer trace. You need to add filter so that the wireshark only captures the devide you are following.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/300283?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 07:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d27dfe3-7dc5-4ea9-965d-d79dbe643872</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;sorry for the late reply. I was away few days and have downloaded the files just now. I will take a look at them today and will comeback to you with my observations. Thanks a lot for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/297457?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 11:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c4d26c-4ea2-44f4-b840-72f6e6de69e8</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;sorry for this late reply, but we needed to order nRF52840 dongles and we needed to wait for them to come to the office.&lt;br /&gt;Today I have connected everything, erased the whole Flash in my device and programmed the test application.&lt;br /&gt;Connected the sniffer and captured the traffic. File can be downloaded from&amp;nbsp;&lt;a href="https://easyupload.io/665bh5"&gt;here&lt;/a&gt;&amp;nbsp;(please note, it will expire in 15 days! Could not find an option to attach the file to this post.)&lt;br /&gt;&lt;br /&gt;I tested the application again and I was able to connect to the device without paring.&lt;br /&gt;Like I said, when the pairing dialog appears (the services are already listed in the application) and if I quickly click cancel and send some that over UART service, I can stay connected without the pairng.&lt;br /&gt;&lt;br /&gt;If you need anything else, please let us know.&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Matej&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/294524?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 07:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04d0f8db-0671-48bc-846b-d37cea7ac5d1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Susheel is currently out of office, so I have been assigned this case&amp;nbsp;until he&amp;#39;s back. What he requests in his first reply is a Sniffer trace, either using an Sniffer tool like the &lt;a href="https://www.ellisys.com/products/bex400/"&gt;Ellisys sniffer &lt;/a&gt;or &lt;a href="https://www.novelbits.io/bluetooth-low-energy-sniffer-tutorial/"&gt;similar&lt;/a&gt;, or our &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRFSniffer &lt;/a&gt;which lets you use an nRF52 DK or Dongle to see what exactly is going on over the air. This way we should be able to see what exactly happens when you&amp;#39;re able to &amp;quot;bypass&amp;quot; the pairing and discover services without doing this process.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/294041?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 16:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a4558a2-ed66-4777-8b21-77ddbfd95aa6</guid><dc:creator>Matej Kupljen</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;br /&gt;&lt;br /&gt;thanks for replying.&lt;br /&gt;One thing that I remembered now is that I use fixed pass key. I just change the configuration that it doesn&amp;#39;t use this and the result is the same.&lt;br /&gt;&lt;br /&gt;This is the Log I get trough Segger RTT on the BT module:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:01.838,012] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: 6 Sectors of 4096 bytes&#x1B;[0m
[00:00:01.838,012] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, ff0&#x1B;[0m
[00:00:01.838,012] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 0&#x1B;[0m
[00:00:01.838,165] &#x1B;[0m&amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: 
cf 5c 0f 11 88 9c d7 02  15 27 c7 c3 ca 60 19 85 |.\...... .&amp;#39;...`..
b7 c4 50 e3                                      |..P.             &#x1B;[0m
[00:00:01.840,911] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&#x1B;[0m
[00:00:01.840,911] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF52x (0x0002)&#x1B;[0m
[00:00:01.840,911] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 207.3932 Build 3617359889&#x1B;[0m
[00:00:01.841,247] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&#x1B;[0m
[00:00:01.841,735] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: Identity: e3:41:0f:bf:6c:61 (random)&#x1B;[0m
[00:00:01.841,766] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.2 (0x0b) revision 0x1123, manufacturer 0x0059&#x1B;[0m
[00:00:01.841,766] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.2 (0x0b) subver 0x1123&#x1B;[0m
[00:00:17.054,870] &#x1B;[0m&amp;lt;inf&amp;gt; app: Connected 4f:5d:b5:e3:b0:5c (random)&#x1B;[0m
[00:00:20.888,214] &#x1B;[1;31m&amp;lt;err&amp;gt; bt_smp: reason 0x9&#x1B;[0m
[00:00:20.888,458] &#x1B;[1;33m&amp;lt;wrn&amp;gt; app: Security failed: 4f:5d:b5:e3:b0:5c (random) level 1 err 6&#x1B;[0m
[00:00:20.888,519] &#x1B;[0m&amp;lt;inf&amp;gt; app: Pairing failed conn: 4f:5d:b5:e3:b0:5c (random), reason 6&#x1B;[0m
[00:00:23.948,974] &#x1B;[0m&amp;lt;inf&amp;gt; app: Disconnected: 4f:5d:b5:e3:b0:5c (random) (reason 19)&#x1B;[0m
[00:00:47.425,659] &#x1B;[0m&amp;lt;inf&amp;gt; app: Connected 47:5e:85:20:f9:9f (random)&#x1B;[0m
[00:01:20.470,092] &#x1B;[0m&amp;lt;inf&amp;gt; app: Disconnected: 47:5e:85:20:f9:9f (random) (reason 19)&#x1B;[0m
[00:01:25.293,395] &#x1B;[0m&amp;lt;inf&amp;gt; app: Connected 47:5e:85:20:f9:9f (random)&#x1B;[0m
[00:01:30.504,821] &#x1B;[1;31m&amp;lt;err&amp;gt; bt_smp: reason 0x9&#x1B;[0m
[00:01:30.505,065] &#x1B;[1;33m&amp;lt;wrn&amp;gt; app: Security failed: 47:5e:85:20:f9:9f (random) level 1 err 6&#x1B;[0m
[00:01:30.505,126] &#x1B;[0m&amp;lt;inf&amp;gt; app: Pairing failed conn: 47:5e:85:20:f9:9f (random), reason 6&#x1B;[0m
[00:01:33.430,267] &#x1B;[0m&amp;lt;inf&amp;gt; app: Disconnected: 47:5e:85:20:f9:9f (random) (reason 19)&#x1B;[0m
[00:01:39.410,064] &#x1B;[0m&amp;lt;inf&amp;gt; app: Connected 47:5e:85:20:f9:9f (random)&#x1B;[0m
[00:01:42.430,114] &#x1B;[1;31m&amp;lt;err&amp;gt; bt_smp: reason 0x9&#x1B;[0m
[00:01:42.430,358] &#x1B;[1;33m&amp;lt;wrn&amp;gt; app: Security failed: 47:5e:85:20:f9:9f (random) level 1 err 6&#x1B;[0m
[00:01:42.430,419] &#x1B;[0m&amp;lt;inf&amp;gt; app: Pairing failed conn: 47:5e:85:20:f9:9f (random), reason 6&#x1B;[0m
[00:01:45.400,543] &#x1B;[0m&amp;lt;inf&amp;gt; app: Disconnected: 47:5e:85:20:f9:9f (random) (reason 19)&#x1B;[0m
[00:01:54.693,176] &#x1B;[0m&amp;lt;inf&amp;gt; app: Connected 47:5e:85:20:f9:9f (random)&#x1B;[0m
[00:01:57.415,527] &#x1B;[1;31m&amp;lt;err&amp;gt; bt_smp: reason 0x9&#x1B;[0m
[00:01:57.415,771] &#x1B;[1;33m&amp;lt;wrn&amp;gt; app: Security failed: 47:5e:85:20:f9:9f (random) level 1 err 6&#x1B;[0m
[00:01:57.415,863] &#x1B;[0m&amp;lt;inf&amp;gt; app: Pairing failed conn: 47:5e:85:20:f9:9f (random), reason 6&#x1B;[0m
[00:03:41.548,126] &#x1B;[0m&amp;lt;inf&amp;gt; app: Received data from: 47:5e:85:20:f9:9f (random)&#x1B;[0m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And this it the log from nRF Connect on the phone:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nRF Connect, 2021-02-11
Inosmart Door Lock (E3:41:0F:BF:6C:61)
I	16:51:46.493	[Server] Server started
V	16:51:46.502	Heart Rate (0x180D)
- Heart Rate Measurement [N] (0x2A37)
&amp;#160;&amp;#160;&amp;#160;Client Characteristic Configuration (0x2902)
- Body Sensor Location [R] (0x2A38)
- Heart Rate Control Point [W] (0x2A39)
Unknown Service (0000aaa0-0000-1000-8000-aabbccddeeff)
- Unknown Characteristic [N R] (0000aaa1-0000-1000-8000-aabbccddeeff)
&amp;#160;&amp;#160;&amp;#160;Client Characteristic Configuration (0x2902)
&amp;#160;&amp;#160;&amp;#160;Unknown Descriptor (0000aab0-0000-1000-8000-aabbccddeeff)
&amp;#160;&amp;#160;&amp;#160;Characteristic User Description (0x2901)
&amp;#160;&amp;#160;&amp;#160;Characteristic Presentation Format (0x2904)
- Unknown Characteristic [I W WNR] (0000aaa2-0000-1000-8000-aabbccddeeff)
&amp;#160;&amp;#160;&amp;#160;Client Characteristic Configuration (0x2902)
User Data (0x181C)
- First Name [R W] (0x2A8A)
- Last Name [R W] (0x2A90)
- Gender [R W] (0x2A8C)
V	16:51:46.741	Connecting to E3:41:0F:BF:6C:61...
D	16:51:46.741	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	16:51:46.787	[Server callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	16:51:46.787	[Server] Device with address E3:41:0F:BF:6C:61 connected
D	16:51:46.796	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	16:51:46.796	Connected to E3:41:0F:BF:6C:61
D	16:51:46.834	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	16:51:46.875	[Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_BONDING (11)
D	16:51:46.878	[Broadcast] Action received: android.bluetooth.device.action.PAIRING_REQUEST, pairing variant: PAIRING_VARIANT_CONSENT (3)
I	16:51:47.460	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
I	16:51:47.776	Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
D	16:51:49.404	[Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_NONE (10)
I	16:51:49.404	Bonding failed
V	16:51:49.439	Discovering services...
D	16:51:49.439	gatt.discoverServices()
D	16:51:49.452	[Callback] Services discovered with status: 0
I	16:51:49.452	Services discovered
V	16:51:49.458	Generic Attribute (0x1801)
- Service Changed [I] (0x2A05)
&amp;#160;&amp;#160;&amp;#160;Client Characteristic Configuration (0x2902)
- Client Supported Features [R W] (0x2B29)
- Database Hash [R] (0x2B2A)
Generic Access (0x1800)
- Device Name [R] (0x2A00)
- Appearance [R] (0x2A01)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
Nordic UART Service (6e400001-b5a3-f393-e0a9-e50e24dcca9e)
- TX Characteristic [N] (6e400003-b5a3-f393-e0a9-e50e24dcca9e)
&amp;#160;&amp;#160;&amp;#160;Client Characteristic Configuration (0x2902)
- RX Characteristic [W WNR] (6e400002-b5a3-f393-e0a9-e50e24dcca9e)
D	16:51:49.458	gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
D	16:51:49.459	gatt.setCharacteristicNotification(6e400003-b5a3-f393-e0a9-e50e24dcca9e, true)
V	16:51:52.053	Reading characteristic 00002a01-0000-1000-8000-00805f9b34fb
D	16:51:52.053	gatt.readCharacteristic(00002a01-0000-1000-8000-00805f9b34fb)
I	16:51:52.188	Read Response received from 00002a01-0000-1000-8000-00805f9b34fb, value: (0x) 41-03
A	16:51:52.188	&amp;quot;[833] Heart Rate Sensor: Heart Rate Belt (Heart Rate Sensor subtype)&amp;quot; received
I	16:51:52.999	Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 420ms)
V	16:51:53.118	Reading characteristic 00002a01-0000-1000-8000-00805f9b34fb
D	16:51:53.118	gatt.readCharacteristic(00002a01-0000-1000-8000-00805f9b34fb)
I	16:51:53.176	Read Response received from 00002a01-0000-1000-8000-00805f9b34fb, value: (0x) 41-03
A	16:51:53.176	&amp;quot;[833] Heart Rate Sensor: Heart Rate Belt (Heart Rate Sensor subtype)&amp;quot; received
V	16:51:53.867	Reading characteristic 00002a01-0000-1000-8000-00805f9b34fb
D	16:51:53.867	gatt.readCharacteristic(00002a01-0000-1000-8000-00805f9b34fb)
I	16:51:53.942	Read Response received from 00002a01-0000-1000-8000-00805f9b34fb, value: (0x) 41-03
A	16:51:53.942	&amp;quot;[833] Heart Rate Sensor: Heart Rate Belt (Heart Rate Sensor subtype)&amp;quot; received
V	16:51:54.552	Reading characteristic 00002a01-0000-1000-8000-00805f9b34fb
D	16:51:54.552	gatt.readCharacteristic(00002a01-0000-1000-8000-00805f9b34fb)
I	16:51:54.616	Read Response received from 00002a01-0000-1000-8000-00805f9b34fb, value: (0x) 41-03
A	16:51:54.616	&amp;quot;[833] Heart Rate Sensor: Heart Rate Belt (Heart Rate Sensor subtype)&amp;quot; received
V	16:51:55.199	Reading characteristic 00002a01-0000-1000-8000-00805f9b34fb
D	16:51:55.199	gatt.readCharacteristic(00002a01-0000-1000-8000-00805f9b34fb)
I	16:51:55.292	Read Response received from 00002a01-0000-1000-8000-00805f9b34fb, value: (0x) 41-03
A	16:51:55.292	&amp;quot;[833] Heart Rate Sensor: Heart Rate Belt (Heart Rate Sensor subtype)&amp;quot; received
V	16:51:57.031	Reading characteristic 00002a04-0000-1000-8000-00805f9b34fb
D	16:51:57.031	gatt.readCharacteristic(00002a04-0000-1000-8000-00805f9b34fb)
I	16:51:57.091	Read Response received from 00002a04-0000-1000-8000-00805f9b34fb, value: (0x) 18-00-28-00-00-00-2A-00
A	16:51:57.091	&amp;quot;Connection Interval: 30.00ms - 50.00ms,
Slave Latency: 0,
Supervision Timeout Multiplier: 42&amp;quot; received
V	16:53:33.563	Writing request to characteristic 6e400002-b5a3-f393-e0a9-e50e24dcca9e
D	16:53:33.563	gatt.writeCharacteristic(6e400002-b5a3-f393-e0a9-e50e24dcca9e, value=0x74657374)
I	16:53:33.660	Data written to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, value: (0x) 74-65-73-74, &amp;quot;test&amp;quot;
A	16:53:33.660	&amp;quot;test&amp;quot; sent&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can see in the log that the bonding failed, but I was still able to send that to UART service.&lt;br /&gt;&lt;br /&gt;Did you mean any other logs?&lt;br /&gt;If yes, which one and please explain if I need anything else to turn on.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Matej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing without entering the PIN</title><link>https://devzone.nordicsemi.com/thread/293985?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 13:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6fe38d7-81bd-4d10-be3f-f50d04f694ab</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That does not sound secure and does not seem that the pairing has gone through either.&lt;/p&gt;
&lt;p&gt;Can you please attach the sniffer trace of the sequence you mentioned in the description? Just want to see how the services are still being accessed without pairing being successful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>