<?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>&amp;quot;Just works&amp;quot; Level 2 security</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104561/just-works-level-2-security</link><description>Hi, I am not even sure its the correct place to ask this questions, but ill try. First of all, I don&amp;#39;t have a lot of knowledge about firmware. We lost our firmware developer before he was done implementing security for our BLE devices. Everything is working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Oct 2023 13:17:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104561/just-works-level-2-security" /><item><title>RE: "Just works" Level 2 security</title><link>https://devzone.nordicsemi.com/thread/450078?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 13:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9301d11c-920c-4842-908d-d8ed9adb8c30</guid><dc:creator>Pmr</dc:creator><description>&lt;p&gt;Problem solved, i forgot&amp;nbsp;&lt;span&gt;BT_GATT_CCC(ccc_cfg_changed, BT_GATT_PERM_READ_ENCRYPT | BT_GATT_PERM_WRITE_ENCRYPT&amp;nbsp;), ); I only had the&amp;nbsp;READ part, so when i reconnected, it apparently&amp;nbsp;disconnected me..&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Just works" Level 2 security</title><link>https://devzone.nordicsemi.com/thread/450008?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 10:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:044833c3-b4d1-4b15-9d25-6b675c613099</guid><dc:creator>Pmr</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a dev kit I can use for sniffing.&lt;/p&gt;
&lt;p&gt;If i remove all the&amp;nbsp;&lt;span&gt;BT_GATT_PERM_WRITE/READ_ENCRYPT in my GATT services, and change them to just READ/WRITE, then it reconnects without any issues everytime.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Just works" Level 2 security</title><link>https://devzone.nordicsemi.com/thread/450007?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 10:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28158f6c-ea52-42ce-af79-8a16c75cc610</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try to avoid bonding with Android.&amp;nbsp;&lt;br /&gt;Additionally, you could try to use&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;nRF sniffer&lt;/a&gt;&amp;nbsp;to identify what might be wrong.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Just works" Level 2 security</title><link>https://devzone.nordicsemi.com/thread/449993?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 09:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be35059c-754b-42df-9116-f15d694eb634</guid><dc:creator>Pmr</dc:creator><description>&lt;p&gt;I tried to remove the bt_conn_set_security() and decorate my gatt services like this:&lt;/p&gt;
&lt;p&gt;BT_GATT_SERVICE_DEFINE(ble_data_service,&lt;br /&gt; BT_GATT_PRIMARY_SERVICE(&amp;amp;ble_data_service_uuid),&lt;br /&gt; BT_GATT_CHARACTERISTIC(&amp;amp;ble_data_char_uuid.uuid, BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY, BT_GATT_PERM_READ_ENCRYPT, ble_data_char_read, NULL, &amp;amp;ads1298_adv_data),&lt;br /&gt; BT_GATT_CCC(ccc_cfg_changed, BT_GATT_PERM_WRITE_ENCRYPT), );&lt;/p&gt;
&lt;p&gt;This also prompts the user for a pairing the first time and successfully start reading data, but after a reconnect it keeps getting disconnected, and after a lot of tries it succeeds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Just works" Level 2 security</title><link>https://devzone.nordicsemi.com/thread/449895?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 15:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7870773c-7e52-47b7-b723-df8c0e9a36d2</guid><dc:creator>Pmr</dc:creator><description>&lt;p&gt;I have tried with a Huawei p30 pro android 10 and a Xiaomi android 11. If I disable all the security, then there is no issue.&lt;/p&gt;
&lt;p&gt;I tested with an iphone 10. With no issues.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a custom device we use to gather emg data.&lt;/p&gt;
&lt;p&gt;The example in my video was just to show the issue, the same happens when we pair through our Xamarin app. Or use the nrf connect application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Just works" Level 2 security</title><link>https://devzone.nordicsemi.com/thread/449890?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 15:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc737e43-1acf-474b-9cc5-2bbf1d0478c2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which mobile phone (type and Android version) do you use? Which device do you use on the other side?&lt;br /&gt;&lt;br /&gt;Have you tried using nRF Connect for Mobile application instead of Device Manager?&lt;br /&gt;&lt;br /&gt;Which other devices have you tried apart from mentioned Android device?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Just works" Level 2 security</title><link>https://devzone.nordicsemi.com/thread/449807?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 12:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7f19be-1555-4de7-853f-51ae7d304e4d</guid><dc:creator>Pmr</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/SVID_5F00_20231011_5F00_140206_5F00_1.mp4"&gt;devzone.nordicsemi.com/.../SVID_5F00_20231011_5F00_140206_5F00_1.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is a video showing the issue (again this seems to only be on android phones)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>