<?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>iMAC connects automatically after disconnecting a BLE device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58405/imac-connects-automatically-after-disconnecting-a-ble-device</link><description>A bit more detailed: A bug has been detected on the device under development. It is connected with the fact that if you try to disconnect a connected device on an iMAC Catalina , then it automatically reconnects. On Android, this works well. To exclude</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Mar 2020 04:59:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58405/imac-connects-automatically-after-disconnecting-a-ble-device" /><item><title>RE: iMAC connects automatically after disconnecting a BLE device</title><link>https://devzone.nordicsemi.com/thread/237308?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 04:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92f70c3a-c1b4-4c82-8882-01ec8ac5a1dd</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;This problem also manifests itself on nrf51422 chips. With test firmware SDK 12.3.&lt;br /&gt;Can someone reproduce this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iMAC connects automatically after disconnecting a BLE device</title><link>https://devzone.nordicsemi.com/thread/237011?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 02:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138e97b0-7800-47cb-9e38-8b33ce9f27a9</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;What if the problem is in the connection settings?&lt;/p&gt;
&lt;p&gt;Maybe the device is too tempting to connect?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define FIRST_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(5000)  
#define NEXT_CONN_PARAMS_UPDATE_DELAY    APP_TIMER_TICKS(30000) 
#define MAX_CONN_PARAMS_UPDATE_COUNT     3                     

static void conn_params_error_handler(uint32_t nrf_error)
{
    APP_ERROR_HANDLER(nrf_error);
}

static void conn_params_init(void)
{
    ret_code_t             err_code;
    ble_conn_params_init_t cp_init;

    memset(&amp;amp;cp_init, 0, sizeof(cp_init));

    cp_init.p_conn_params                  = NULL;
    cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;
    cp_init.next_conn_params_update_delay  = NEXT_CONN_PARAMS_UPDATE_DELAY;
    cp_init.max_conn_params_update_count   = MAX_CONN_PARAMS_UPDATE_COUNT;
    cp_init.start_on_notify_cccd_handle    = BLE_GATT_HANDLE_INVALID;
    cp_init.disconnect_on_fail             = false;
    cp_init.evt_handler                    = NULL;
    cp_init.error_handler                  = conn_params_error_handler;
    
    err_code = ble_conn_params_init(&amp;amp;cp_init);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iMAC connects automatically after disconnecting a BLE device</title><link>https://devzone.nordicsemi.com/thread/237010?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 02:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0ae9f96-7483-457e-9dbc-0a5b364839d5</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;&lt;span&gt;I wrote packets through nrf sniffer in wireshark.:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0027.reconnect-problem.pcapng"&gt;devzone.nordicsemi.com/.../0027.reconnect-problem.pcapng&lt;/a&gt;&lt;br /&gt;Performed the following actions:&lt;br /&gt;Connected to the device via iMAC.&lt;br /&gt;Clicked disconnect - the device was disconnected then connected.&lt;br /&gt;Clicked disconnect again - same thing&lt;/p&gt;
&lt;p&gt;To exclude no understanding attached photo buttons&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7215.20200228_5F00_093029_5F00_2.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;In this case, the purchased ble keyboard turns off normally&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iMAC connects automatically after disconnecting a BLE device</title><link>https://devzone.nordicsemi.com/thread/236856?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 13:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086cb06c-921f-48dd-a7ba-284e3292cdaf</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It is the peer device, that decides to connect/or not to connect to the advertisement from an already bonded device. I do not think the library from our SDK initiates the connection. Can you sniff the air packets to see who initiates the connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iMAC connects automatically after disconnecting a BLE device</title><link>https://devzone.nordicsemi.com/thread/236848?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 12:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c642224-78a2-4a4e-b215-1d16b928897f</guid><dc:creator>Yury Morgunov</dc:creator><description>&lt;p&gt;I do not need to remove the connection between devices.&lt;br /&gt;I need that after clicking disconnect it does not connect automatically until I click connect.&lt;br /&gt;Communication between devices should remain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iMAC connects automatically after disconnecting a BLE device</title><link>https://devzone.nordicsemi.com/thread/236843?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 12:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e1e863-e6f4-43c7-9499-c873834f5f4d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;setting the advertising directed state to disable will not delete the bond information for the system.&lt;/p&gt;
&lt;p&gt;If you do not want the device to be reconnected, then either delete the bond data or change the device address so that the peer sees your device as a different one than the one bonded&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>