<?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 Long Range and encryption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67371/bluetooth-long-range-and-encryption</link><description>I am using NRF Connect SDK on NRF52840 Dongle and I have written two programs. First acts as bluetooth peripherial device, second acts as bluetooth centeral devices. I have implemented my own service and characteristics. For that characteristics I set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Nov 2020 13:29:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67371/bluetooth-long-range-and-encryption" /><item><title>RE: Bluetooth Long Range and encryption</title><link>https://devzone.nordicsemi.com/thread/278085?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 13:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b3b8f4c-dc7c-4813-aca4-769892e0f080</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No problem, thanks for the update!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Long Range and encryption</title><link>https://devzone.nordicsemi.com/thread/278083?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 13:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89d549ac-393d-4904-8be4-564173114425</guid><dc:creator>Grzegorz Blach</dc:creator><description>&lt;p&gt;It works! Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Long Range and encryption</title><link>https://devzone.nordicsemi.com/thread/277602?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 13:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639b5402-88dc-4f95-9dd8-ecf2bde738ac</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I forgot that the LBS sample was configured to support passkey pairing/bonding by default. The &lt;em&gt;&lt;/em&gt;&lt;code&gt;BT_SECURITY_ERR_AUTH_FAIL&lt;/code&gt;&amp;nbsp; error is probably a result of the central not inserting the passkey displayed by the peripheral. Unless you have you implemented support for passkey entry? Anyway, it&amp;#39;s easier implement support for &amp;quot;just works&amp;quot; which does not require any user input.&lt;/p&gt;
&lt;p&gt;I tested &amp;quot;just works&amp;quot; bonding now by modifiying the hr_coded samples available in NCS SDK (tested with v1.4.0-rc2), and it worked.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;hr coded central+peripheral with bonding&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0245.coded_5F00_phy_5F00_and_5F00_bonding.zip"&gt;devzone.nordicsemi.com/.../0245.coded_5F00_phy_5F00_and_5F00_bonding.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Long Range and encryption</title><link>https://devzone.nordicsemi.com/thread/277475?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 18:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a426b12-a350-445f-a78d-02e848297423</guid><dc:creator>Grzegorz Blach</dc:creator><description>&lt;p&gt;Today I spent some time and played with bt_conn_auth_cb callbacks, but with no success. &lt;span class="pl-c1"&gt;bt_conn_auth_pairing_confirm&lt;/span&gt;() in&amp;nbsp;&lt;span class="pl-en"&gt;pairing_confirm&lt;/span&gt;() return 0 (no error), but then &lt;span class="pl-en"&gt;pairing_failed&lt;/span&gt;() reports bt_security_err = 1 (&lt;em class="property"&gt;&lt;/em&gt;&lt;code class="sig-name descname"&gt;BT_SECURITY_ERR_AUTH_FAIL&lt;/code&gt;) and security_changed() reports the same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Long Range and encryption</title><link>https://devzone.nordicsemi.com/thread/276689?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 15:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21794ef0-98d8-4b49-a039-088a90033985</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for making the code available . It seems like you have forgotten to integrate pairing support in your main. I suggest you take a look at the Bluetooth LBS sample to see what callbacks are added when the CONFIG_BT_LBS_SECURITY_ENABLED option is enabled.&lt;/p&gt;
&lt;p&gt;Ref.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/bluetooth/peripheral_lbs/src/main.c"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/samples/bluetooth/peripheral_lbs/src/main.c&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Long Range and encryption</title><link>https://devzone.nordicsemi.com/thread/276499?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 17:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ddd0425-84f4-4037-bd5f-42d7b0945af9</guid><dc:creator>Grzegorz Blach</dc:creator><description>&lt;p&gt;I&amp;#39;ve published a stripped down versions of my programs at &lt;a href="https://github.com/gblach/bluetooth_demos"&gt;https://github.com/gblach/bluetooth_demos&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In both programs I&amp;#39;ve enabled logging via USB serial. Demo_central program reports err == 5 (BT_ATT_ERR_AUTHENTICATION) in demo_central/src/main.c:33&lt;/p&gt;
&lt;p&gt;This programs works correctly in two situations:&lt;/p&gt;
&lt;p&gt;1) When I change BT_GATT_PERM_READ_ENCRYPT to BT_GATT_PERM_READ in demo_peripherial/src/main.c:41&lt;/p&gt;
&lt;p&gt;2) When I keep encryption enabled, but disable long range mode and extended advertising by commenting out two lines: demo_peripherial/src/main.c:10 and demo_peripherial/prj.conf:9&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Long Range and encryption</title><link>https://devzone.nordicsemi.com/thread/276164?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 11:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f14145a-da42-4f2a-b634-b52319a171cd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Encryption should be supported. Do you have any logging enabled to see if it reports any errors? Also, how is it not working, is it that it can&amp;#39;t establish a connection?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>