<?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>Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76178/disconnected-0-blehci-remote_user_terminated_connection-using-pc_ble_driver_py</link><description>Hello, 
 I am using the nordic nRF52840-DK and trying to connect to a nRF52840-Dongle and sending/receiving data to custom services and characteristics using pc_ble_driver_py . I modified the heart rate collector. 
 But the problem is that when I am connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Oct 2021 07:30:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76178/disconnected-0-blehci-remote_user_terminated_connection-using-pc_ble_driver_py" /><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/336106?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 07:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b566f1aa-c39e-4900-bb26-c4104c4a5712</guid><dc:creator>Blastka</dc:creator><description>&lt;p&gt;I have the same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/318452?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 12:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:826f0fe9-fd1f-422e-8f68-d75933dee115</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I am not able to look into the details here, but I do believe that the answer I linked here show the steps you need to perform:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73685/modify-pc-ble-driver-example-for-nordic-uart-service/303474#303474"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/73685/modify-pc-ble-driver-example-for-nordic-uart-service/303474#303474&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/318234?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 12:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a948423-f1f3-4b28-beff-39fffa06ec56</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;yes indeed, I saw this too. Therefore, could you please tell us wich function schould we use according to the python script in the attachments so I could handle the request.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/318190?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 12:05:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd1a1ad-675a-4238-a829-a82352d4a46b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can see the nrf connect app reply with an connection parameter update response:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1625141118188v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So is is the handling of the request that is missing here.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/317614?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 07:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b871442-80a7-458f-a08c-c279821bbe14</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;
&lt;div class="copy-paste-block"&gt;We are going to investigate in that again, but you think they might be some unhandled connection parameter update requests in your example code (from SDK ble_blinky_app )?&lt;/div&gt;
&lt;div class="copy-paste-block"&gt;And since it is working correctly with your nRF connect application, is there a specific reason we missed that makes you not suspect the python librairy pc-ble-driver-py?&lt;/div&gt;
&lt;div class="copy-paste-block"&gt;I will share a pcapng file using nrfconnect and I have the same info: &amp;quot;Connection Parameter Update Request&amp;quot; at line 8482.&lt;/div&gt;
&lt;div class="copy-paste-block"&gt;&lt;/div&gt;
&lt;div class="copy-paste-block"&gt;Thanks&lt;/div&gt;
&lt;div class="copy-paste-block"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_with_5F00_nrfconnect.pcapng"&gt;devzone.nordicsemi.com/.../blinky_5F00_with_5F00_nrfconnect.pcapng&lt;/a&gt;&lt;/div&gt;
&lt;div class="copy-paste-block"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/317500?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 13:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda1cdef-7011-4d45-85fe-3d921a5e5200</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I really suspect the real problem here are the unhandled connection parameter update requests:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1624886648323v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you look into this reply:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73685/modify-pc-ble-driver-example-for-nordic-uart-service/303474#303474"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/73685/modify-pc-ble-driver-example-for-nordic-uart-service/303474#303474&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/317417?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 09:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7520230e-ba99-4012-8e6b-3774aaefc030</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Hello Kenneth,&lt;/p&gt;
&lt;p&gt;I finally succeeded to get a pcapng file. In the line number 2838, you will find that I am able to connect to the blinky dongle. after that I am able to send ON/OFF and receive the state of the led every 3 secondes. and after like 200 secondes, the blinky dongle will disconnect and the python script will show me &amp;quot;Disconnected: 0 BLEHci.conn_interval_unacceptable&amp;quot; and at the line number 17172 in pcapng file you will see &amp;quot;control opcode: LL_TERMINATE_IND&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_sniff.pcapng"&gt;devzone.nordicsemi.com/.../blinky_5F00_sniff.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315943?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 15:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270a2736-03bc-458a-98df-f43fd8a97f6b</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Hello Kenneth,&lt;/p&gt;
&lt;p&gt;I tried to solve the crash problem by installing wireshark on different PCs and I followed step by step as it mentionned in this link &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF_Sniffer_BLE_UG_v3.2.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF_Sniffer_BLE_UG_v3.2.pdfhttps://infocenter.nordicsemi.com/pdf/nRF_Sniffer_BLE_UG_v3.2.pdf&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;But everytime I want to save log,&amp;nbsp; wireshark crash, I&amp;nbsp; have seen that this is a &lt;a href="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=14631"&gt;bug 14631 with Qt &lt;/a&gt;and there is no update since 4 years to this: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15429/nrf-sniffer-crash-can-be-fixed"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/15429/nrf-sniffer-crash-can-be-fixedhttps://devzone.nordicsemi.com/f/nordic-q-a/15429/nrf-sniffer-crash-can-be-fixed&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;when I try to click on file save, the buttons are not enabled and when I click on the red stop icon wireshark crash and exit the app.&lt;/p&gt;
&lt;p&gt;Could you perhaps try to use my python code and sniff if your sniffer works well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315782?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 08:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35a255e0-cf49-443f-bc65-d63c192f3e72</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Please try to make the pcapng file work. Maybe check that you stop sniffing before saving, try a restart of PC and wireshark etc.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315775?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 08:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eed827b-a9cc-493c-8b7c-56a9a56ac104</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Wireshark crash everytime I want to save the log. However, I found a way to get the log in a text file and if you prefer I could save them in a CSV file. In the text file which I shared, you find the &amp;quot;&amp;nbsp;&lt;strong&gt;Control Opcode: LL_TERMINATE_IND&lt;/strong&gt;&amp;quot; at the line number &lt;strong&gt;140758.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315769?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 07:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0754d923-afe1-49e9-898f-567a1676358e</guid><dc:creator>voldemort</dc:creator><description>&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;I have issues exporting data with wire shark, I have found a way to get them on a txt file. you will find it in the attachments.&lt;/div&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/div&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;Thanks&lt;/div&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_sniffer.txt"&gt;devzone.nordicsemi.com/.../blinky_5F00_sniffer.txt&lt;/a&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315760?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 07:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d94cd81e-5172-4624-844d-5a7b7a8ac601</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Great, can you share the sniffer file (.pcapng) here?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315672?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 14:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b3782b1-a3d3-4065-8327-23cc2943e36b</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I &lt;span&gt;captured &lt;em&gt;packets&lt;/em&gt;&lt;/span&gt; by sniffing blinky example on the dongle using wireshark.&lt;strong&gt; I send ON from master --&amp;gt; slave&lt;/strong&gt; and then receiving the led state from &lt;strong&gt;slave --&amp;gt; master &lt;/strong&gt;and when i receive &lt;strong&gt;Disconnected: 0 BLEHci.conn_interval_unacceptable &lt;/strong&gt;using python, I receive in wireshark &lt;strong&gt;Control Opcode: LL_TERMINATE_IND (0x02) &lt;/strong&gt;from slave --&amp;gt; master. I will put some screen captures in the first one you can see that it is normal I can send and receive and in the second one you will see that after some times I will receive the &lt;strong&gt;Control Opcode: LL_TERMINATE_IND.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;this is the first one&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img alt="first one" src="https://devzone.nordicsemi.com/resized-image/__size/320x149/__key/communityserver-discussions-components-files/4/pastedimage1623853756555v1.png" /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;this is the second one&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;img alt="second one" src="https://devzone.nordicsemi.com/resized-image/__size/320x150/__key/communityserver-discussions-components-files/4/pastedimage1623853861057v2.png" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;And the third one is when I double click on the error sniff.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623853996778v3.png" alt=" " /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315589?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 12:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88974f3-d6b5-4c11-a789-ca2af7b47e5a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I need the sniffer log to help you further.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315571?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 10:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07276680-369a-44db-8623-ef2439565168</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;we tried to add in the connect() function --&amp;gt; &lt;strong&gt;self.adapter.connect(peer_addr, conn_params=conn_params, tag=1)&lt;/strong&gt; with &lt;strong&gt;conn_params = BLEGapConnParams(min_conn_interval_ms=125, max_conn_interval_ms=250, conn_sup_timeout_ms=4000, slave_latency=0)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;as it was in the dongle. But we still have the same error.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315563?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 10:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dce5b262-b315-4162-83d0-b92fd1796ae3</guid><dc:creator>voldemort</dc:creator><description>&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/div&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;
&lt;div&gt;
&lt;div style="font-size:14px;"&gt;We check with the enginneer who developped the firmware in debug mode, it appears the dongle get a BLE_GAP_EVT_DISCONNECTED when I get the error&lt;/div&gt;
&lt;div style="font-size:14px;"&gt;Disconnected: 0 BLEHci.conn_interval_unacceptable from python.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Then we added a break point in this function&lt;/div&gt;
&lt;div&gt;static void on_conn_params_evt(ble_conn_params_evt_t * p_evt)&lt;br /&gt; {&lt;br /&gt; uint32_t err_code;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;if (p_evt-&amp;gt;evt_type == BLE_CONN_PARAMS_EVT_FAILED)&lt;br /&gt; {&lt;br /&gt; err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; }&lt;br /&gt; }&lt;/div&gt;
&lt;div&gt;and as you previously mentionned&lt;/div&gt;
&lt;div&gt;sd_ble_gap_disconnect(conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE); is called.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;We check cp_init.disconnect_on_fail, it is already set &amp;quot;false&amp;quot;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;
&lt;div&gt;in fact we have this setting for cp_init:&lt;/div&gt;
&lt;div&gt;cp_init.p_conn_params = NULL;&lt;br /&gt; cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;&lt;br /&gt; cp_init.next_conn_params_update_delay = NEXT_CONN_PARAMS_UPDATE_DELAY;&lt;br /&gt; cp_init.max_conn_params_update_count = MAX_CONN_PARAMS_UPDATE_COUNT;&lt;br /&gt; cp_init.start_on_notify_cccd_handle = BLE_GATT_HANDLE_INVALID;&lt;br /&gt; cp_init.disconnect_on_fail = false;&lt;br /&gt; cp_init.evt_handler = on_conn_params_evt;&lt;br /&gt; cp_init.error_handler = conn_params_error_handler;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;
&lt;div&gt;with&lt;/div&gt;
&lt;div&gt;#define FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000) &lt;br /&gt; #define NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000) &lt;br /&gt; #define MAX_CONN_PARAMS_UPDATE_COUNT 3&lt;/div&gt;
&lt;div&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;#define BLE_GATT_HANDLE_INVALID 0x0000&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315558?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 09:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7356e9d-8b4a-42f8-9cfa-7b2529d98062</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tested the blinky example in the SDK on the dongle :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_blinky\hex\pca10059\hex\ble_app_blinky_pca10059_s140.hex&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I can send data to the dongle from nrfconnect PC app, and it still connected to it as long as you don&amp;rsquo;t disconnect it. However, when using the python library, I will receive the same error and the connection will lost.&lt;/p&gt;
&lt;p&gt;Could you please try to run the last python script modifying the adress mac corresponding to the dongle with the blinky firmware and the serial communication port corresponding to the nrf52840-DK board.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315233?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 18:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2920e83-bc33-4967-92d9-ea1a97f4d649</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can only assume that the dongle (operating in the central role) will be receiving an BLE_GAP_EVT_CONN_PARAM_UPDATE request from the peer device (operating in peripheral device). See here for an example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_p_u___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_p_u___m_s_c.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If this event is unhandled or not accepted, it is likely that the peer device may disconnect based on the&amp;nbsp;configuration set during ble_conn_params_init().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315182?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 14:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2fe1d6f-6df4-43f8-a85e-99c30332aaa4</guid><dc:creator>voldemort</dc:creator><description>&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;div style="font-size:14px;"&gt;
&lt;div&gt;I misunderstood previous messages, I guess when you told me to check the sd_ble_gap_disconnect you meant on the C embedded code of the nRF device. I will double check that with the engineer who developped the embedded code.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;We also tried MIN_CONNECTION_INTERVAL and MAX_CONNECTION_INTERVAL timing modification (400ms and 650ms) as mentioned in &lt;a title="https://devzone.nordicsemi.com/f/nordic-q-a/51542/pca10059-pca10056-pc-ble-driver-py-hrcollector-example" href="https://devzone.nordicsemi.com/f/nordic-q-a/51542/pca10059-pca10056-pc-ble-driver-py-hrcollector-example" rel="noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51542/pca10059-pca10056-pc-ble-driver-py-hrcollector-example&lt;/a&gt; , but we still have the disconnection issue after about 250s.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;br /&gt; However, the nRF firmware works well with our smartphone application and also with nRF connect on Android, iOS and windows.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;I also tried Bleak library with python that uses the PC bluetooth LE &amp;lt;Microsoft Bluetooth LE Enumerator&amp;gt; from intel(R) wireless Bluetooth(R), and it worked well.&lt;/div&gt;
&lt;div&gt;However using the &lt;u&gt;&lt;span&gt;nRF52840-DK&lt;/span&gt;&lt;/u&gt; with &lt;u&gt;&lt;span&gt;pc-ble-driver-py&lt;/span&gt;&lt;/u&gt; or &lt;u&gt;&lt;span&gt;blatann&lt;/span&gt;&lt;/u&gt; which is based on &lt;strong&gt;pc-ble-driver-py&lt;/strong&gt;, I still face the disconnecting problem.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;br /&gt; So it seems more probable that the issue come from the BLE connection function in the python code and not from the nRF firmware itself.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;PS&lt;/strong&gt;---&amp;gt; I will leave a code in attachements.&lt;/div&gt;
&lt;div&gt;To run the code you have to modify:&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;the mac adress at the line 26 respecting the sp&amp;eacute;cific format as showed in the comment. To get the mac adress you can use the nrf connect BLE application.&lt;/li&gt;
&lt;li&gt;the serial communication port at the line 110&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div style="text-align:justify;"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7080.nRF_5F00_BLE.py"&gt;devzone.nordicsemi.com/.../7080.nRF_5F00_BLE.py&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/315040?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 07:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c006587a-f50b-4306-9dce-c48c89b8fa4d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Again, it should be possible to find where you are calling&amp;nbsp;sd_ble_gap_disconnect() in your project, you can search for it in your project. I would assume it called in ble_conn_params.c, where you can find&amp;nbsp;sd_ble_gap_disconnect(conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);.&lt;/p&gt;
&lt;p&gt;Typically setting&amp;nbsp;cp_init.disconnect_on_fail&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= false; when calling&amp;nbsp;ble_conn_params_init() in main.c can remedy this.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/314923?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 13:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2500bd2c-b150-469e-9db8-a781bfaf340d</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I edited the function connect() and I added a tag = 1 = CFG_TAG (the macro in the line number 33), I don&amp;#39;t have anymore the problem BLEHci.remote_user_terminated_connection neither the errors.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;However&lt;/strong&gt;, after like 250~253 secondes the connection will stop and I receive the message below :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;---&amp;gt; Disconnected: 0 BLEHci.conn_interval_unacceptable&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Does anyone have any solution?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/314510?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 13:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3c92bf0-ad76-4be7-ad4f-b5d5efebe2eb</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;I will try to find a sniffer and comment the function&lt;span&gt; on_connected_evt() &lt;/span&gt;. But could you please try to lunch my code in the attachements to see what will happens.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/314504?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 13:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d39942e7-8b4e-42ac-825c-1baa0ae573de</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It should be possible to search through your project for&amp;nbsp;&lt;span&gt;sd_ble_gap_disconnect(), I don&amp;#39;t expect it is used many places.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Looking at your pc ble driver log it may seem realted to MTU settings, you can for test simply comment out&amp;nbsp;on_connected_evt() that is called in&amp;nbsp;nrf_ble_gatt_on_ble_evt() from nrf_ble_gatt.c. This is far fetched, but could be worth a try.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you by any chance have an on-air sniffer log (e.g. nrf sniffer)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/314485?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 13:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f95b753-3cb4-4ab4-98c0-207e685a8e70</guid><dc:creator>voldemort</dc:creator><description>&lt;p&gt;I searched in debugging mode but I didn&amp;#39;t found that the function was called. However, on the peer I receive the messages below :&lt;/p&gt;
&lt;p&gt;ERROR:pc_ble_driver_py.ble_driver:Exception: MTU exchange reply failed. Common causes are: missing att_mtu setting in ble_cfg_set, different config tags used in ble_cfg_set and adv_start.&lt;br /&gt;ERROR:pc_ble_driver_py.ble_driver:&amp;lt;FrameSummary file C:xxxx\lib\site-packages\pc_ble_driver_py\ble_driver.py, line 2701 in ble_event_handler_sync&amp;gt;&lt;br /&gt;ERROR:pc_ble_driver_py.ble_driver:&amp;lt;FrameSummary file C:xxxx\lib\site-packages\pc_ble_driver_py\ble_adapter.py, line 772 in on_gatts_evt_exchange_mtu_request&amp;gt;&lt;br /&gt;ERROR:pc_ble_driver_py.ble_driver:&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnected: 0 BLEHci.remote_user_terminated_connection [using pc_ble_driver_py]</title><link>https://devzone.nordicsemi.com/thread/314439?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 11:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75060e00-b4c7-46c6-8a66-bb3179bc53a8</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]Disconnected: 0 BLEHci.remote_user_terminated_connectio[/quote]
&lt;p&gt;This means that&amp;nbsp;&amp;nbsp;sd_ble_gap_disconnect() was called on the peer, with the reason&amp;nbsp;BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION. If you can debug your peer you should be able to find where this is called.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>