<?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 pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99103/pairing-pop-up-appears-twice-on-android-using-the-hrs-example</link><description>Dear, I am testing the ble peripheral example ble_app_hrs with from SDK 17.1.0 on a PCA10040 board with SD s132. When connecting with nRF Connect on Android, the bonding pop-up appears twice. Connecting a Android phone to the PCA10040 from the normal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jun 2023 13:53:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99103/pairing-pop-up-appears-twice-on-android-using-the-hrs-example" /><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/431046?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 13:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31fd5fb2-4dd7-45c4-995a-b3dd35860e8a</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Have you found the popping up message twice issue after implementing this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/430474?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 12:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58aa7855-791c-4f25-aec7-bcb0934b1a3e</guid><dc:creator>Marten</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for looking into this issue. Glad you can reproduce the issue.&lt;/p&gt;
&lt;p&gt;To be clear, the issue is that there are 2 pop-up messages (when bonding for the first time).&lt;/p&gt;
&lt;p&gt;This is an issue, there should only be 1 pop-up message, not twice the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/430468?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 12:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f40d22f-e2b4-49b3-934b-fe4cc238e561</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can not see anything different what I said before. When trying to pair the central and peripheral first time, the pairing message pops up twice. Later, while doing the same process from the beginning, there is no message popped up. It gets bonded connection.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/426519?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 11:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:634e108c-88f1-483a-b3c0-c8815601acc9</guid><dc:creator>Marten</dc:creator><description>&lt;p&gt;Here the content of nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hrs.&lt;/p&gt;
&lt;p&gt;As said, I did not change the code, the hex file from the example in the sdk also has the issue(ble_app_hrs_pca10040_s132.hex). &lt;br /&gt;You can download it from &lt;a href="https://www.nordicsemi.com/Products/Development-software/nRF5-SDK/Download#infotabs,"&gt;https://www.nordicsemi.com/Products/Development-software/nRF5-SDK/Download#infotabs&lt;/a&gt; and select sdk 17.1.0.&lt;br /&gt; &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4721.ble_5F00_app_5F00_hrs.zip"&gt;devzone.nordicsemi.com/.../4721.ble_5F00_app_5F00_hrs.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/425979?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 18:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bfe6142-9530-4eb8-9e6e-249735705c59</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Can you please send us the example folder so I can try to look at thoroughly and reproduce the issue?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/425855?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 12:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:022ef384-186e-4b2d-a094-a71f24222363</guid><dc:creator>Marten</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for looking into this issue. However I was unable to fix the issue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Small note, the code above does not compile, the pm_handler_secure_on_connection() has to be added in ble_evt_handler(), it needs a ble_evt_t* type, so not in&amp;nbsp; pm_evt_handler().&lt;br /&gt;So I added pm_handler_secure_on_connection in ble_evt_handler() and removed pm_conn_secure, as it was already done in other examples (ble_app_bms) and set the delay to 200ms, but no change.&lt;br /&gt;&lt;br /&gt;I also changed all the characteristics securities to SEC_JUST_WORKS, again no change.&lt;br /&gt;As test I increased the delay to 10000ms, again 2 pop-ups, only it takes 10s to get the first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/425668?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 14:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e490327-3266-42ec-a786-a375768a7793</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We have few suggestion.&lt;/p&gt;
&lt;p&gt;In pm_evt_handler(), you need to add pm_handler_secure_on_connection(p_evt)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void pm_evt_handler(pm_evt_t const * p_evt)
{
    pm_handler_on_pm_evt(p_evt);
    pm_handler_disconnect_on_sec_failure(p_evt);
    pm_handler_flash_clean(p_evt);
    pm_handler_secure_on_connection(p_evt);

    switch (p_evt-&amp;gt;evt_id)
    {
        case PM_EVT_PEERS_DELETE_SUCCEEDED:
            advertising_start(false);
            break;

        default:
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and set PM_HANDLER_SEC_DELAY_MS in sdk_config.h for example 200.&lt;/p&gt;
&lt;p&gt;and remove call to pm_conn_secure() in ble_evt_handler()&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
    ret_code_t err_code;

    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
        case BLE_GAP_EVT_CONNECTED:
            NRF_LOG_INFO(&amp;quot;Connected.&amp;quot;);
            err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
            APP_ERROR_CHECK(err_code);
            m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;
            err_code = nrf_ble_qwr_conn_handle_assign(&amp;amp;m_qwr, m_conn_handle);
            APP_ERROR_CHECK(err_code);
            
            if (err_code != NRF_ERROR_BUSY)
            {
                APP_ERROR_CHECK(err_code);
            }
            break;
            ...
    }
    
    ...
    
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This will add a delay before starting security.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If this does not work, you can try workaround here in this case&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81227/android-pairing-pop-up-appears-twice/344424"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/81227/android-pairing-pop-up-appears-twice/344424&lt;/a&gt;, setting characteristics read and write access to &amp;#39;&amp;#39;SEC_JUST_WORKS&amp;#39;&amp;#39;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another report here that the delay does not work, &lt;a title="https://devzone.nordicsemi.com/f/nordic-q-a/77116/double-pairing-request-with-android" href="https://devzone.nordicsemi.com/f/nordic-q-a/77116/double-pairing-request-with-android" rel="noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/77116/double-pairing-request-with-android&lt;/a&gt;&amp;nbsp;you can look at.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/423371?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 16:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8931be7-9672-4a05-b351-324b3c8c6223</guid><dc:creator>Marten</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;No, as said,&amp;nbsp; the issue can be reproduced with ble_app_hrs, there just works is being used.&lt;/p&gt;
&lt;p&gt;Also io capabilities is set to BLE_GAP_IO_CAPS_NONE.&lt;/p&gt;
&lt;p&gt;So the 2 pop-ups are the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/423369?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 15:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:575b8a55-5fbc-40b9-9f46-b7b6c97cd077</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Marten,&lt;/p&gt;
&lt;p&gt;In principle, it is possible to pair/bond several times if there is a need to increase the security level.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you need to enter a pass key or do numeric comparison or similar on the second attempt? or could it be like first pairing and then bonding?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/422823?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 15:38:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c44d4da-237c-4762-8a34-ffdb1ff67895</guid><dc:creator>Marten</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;br /&gt;&lt;br /&gt;Could you reproduce the issue of the 2 pop-ups while bonding with a phone ?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Marten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/422540?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 13:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbe36c32-ed3d-4914-abf0-f1107e28cd67</guid><dc:creator>Marten</dc:creator><description>&lt;p&gt;Indeed the Bluetooth Low Energy app in nRF Connect for desktop I used too for testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing pop-up appears twice on Android using the HRS example</title><link>https://devzone.nordicsemi.com/thread/422539?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 13:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa418b7e-2cd2-4d58-98fc-fb30cf72a5c0</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Marten,&lt;/p&gt;
&lt;p&gt;I have run the example and I had bonded connection here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;&lt;span&gt;There is no issue when using nRF Connect for Desktop, so enabling Le Secure connection and bonding.&amp;#39;&amp;#39;.&amp;nbsp;&amp;nbsp;do you mean that you use BLE app on nRF Connect for Destop?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>