<?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>Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52285/thingy52-drops-connection-after-around-1-minute</link><description>Configuration: 2 x Thingy52 modules, Raspberry Pi4 (Raspbian Buster) 
 Development: Python 3 (3.7.3), Bluepy library 
 
 I am able to connect with the Thingy module and retrieve data, but after around 1 minute time period Thingy gets disconnected. 
 This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2019 11:59:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52285/thingy52-drops-connection-after-around-1-minute" /><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/219877?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 11:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae651aac-9b7c-4b5f-8265-ea03e98edfdc</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Please create a new case for your question.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/219327?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2019 15:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a128fd5b-48ab-4b61-a6e2-6084300bfc6e</guid><dc:creator>jdevoo</dc:creator><description>&lt;p&gt;I get this with gatttool as well after 902 records... I use the raw motion handle to test&lt;/p&gt;
&lt;p&gt;gatttool -b FD:19:AF:BA:73:C0 -t random --char-write-req --handle 0x40 --value 0100 --listen &amp;gt; out&lt;/p&gt;
&lt;p&gt;I repeated and obtain the same record count; connect to USB or not, resting or moving, and values of 0100, 0200 and 0300 (just in case)&lt;/p&gt;
&lt;p&gt;Firmware version 2.1.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/211036?ContentTypeID=1</link><pubDate>Sat, 21 Sep 2019 08:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1dfaa1b-9093-4cc9-919c-6cbdfacf0855</guid><dc:creator>BJay</dc:creator><description>&lt;p&gt;Hello I have been finally able to fix the issue. It is a kernel side restriction regarding Connection Interval for BLE Connection:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;echo  6 &amp;gt; /sys/kernel/debug/bluetooth/hci0/conn_min_interval
echo 20 &amp;gt; /sys/kernel/debug/bluetooth/hci0/conn_max_interval&lt;/pre&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&lt;strong&gt;Reference:&lt;br /&gt;&lt;a href="https://unix.stackexchange.com/questions/288978/how-to-configure-a-connection-interval-in-a-ble-connection/458056"&gt;https://unix.stackexchange.com/questions/288978/how-to-configure-a-connection-interval-in-a-ble-connection/458056&lt;/a&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/IanHarvey/bluepy/issues/117"&gt;https://github.com/IanHarvey/bluepy/issues/117&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note: &lt;/strong&gt;As per the references, the OS might reset the values to default on reboot. So you to include it in script.&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210812?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 04:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b5dfe8e-2e90-4587-a132-9565c0ecc5bc</guid><dc:creator>BJay</dc:creator><description>&lt;p&gt;Not sure if directly related, I was looking through Wireshark log and I found that there are requests made which get rejected:&lt;/p&gt;
&lt;p&gt;Command: Connection Parameter Update Response [Rejected]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found a similar thread with same issues and he also lost connection around same 95sec mark:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/16783/connection-parameter-update-request"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/16783/connection-parameter-update-request&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;See the attached log and screenshot: [&lt;strong&gt;PS: &lt;/strong&gt;Two thingy were connected and hence double response]&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bt_5F00_thingy_5F00_log.pcapng"&gt;devzone.nordicsemi.com/.../bt_5F00_thingy_5F00_log.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/explorer_5F00_Fr6Qo65BcQ.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210693?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 11:52:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f84f2ce-2515-4fae-941c-e0eae0aa67bf</guid><dc:creator>BJay</dc:creator><description>&lt;p&gt;Here are two captures from wireshark:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wireshark_5F00_bt.pcapng"&gt;devzone.nordicsemi.com/.../wireshark_5F00_bt.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wireshark_5F00_bt2.pcapng"&gt;devzone.nordicsemi.com/.../wireshark_5F00_bt2.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210650?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 09:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a127d125-ca5c-4120-b693-db0385ede25f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the wireshark scan, can you share the pcapng file as well?&lt;/p&gt;
&lt;p&gt;Regarding the nRF Sniffer, you do need an nRF Dongle or DK for that one.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210579?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 04:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9624cb63-67e7-4f7b-9e04-a35afe5c7419</guid><dc:creator>BJay</dc:creator><description>&lt;p&gt;Do I need additional dedicated hardware for Sniffer Tool?&lt;/p&gt;
&lt;p&gt;I was able to log a HCI-dump from RPi, though it does not log anything specific on failure.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit: &lt;/strong&gt;I was able to use Wireshark to sniff the connection on Rpi&amp;nbsp; and read the packets.&lt;/p&gt;
&lt;p&gt;Check the images:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/wireshark_5F00_log.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/wireshark_5F00_stats.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hcitrace_5F00_pi.txt"&gt;devzone.nordicsemi.com/.../hcitrace_5F00_pi.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210473?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 14:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b3d7966-327c-4f11-a278-cb4aeb4bd3ca</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Can you get a disconnection reason?&lt;/p&gt;
&lt;p&gt;eg, did the Thingy request to disconnect? Did it just time out? Was there a protocol error?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt;&amp;#39;s suggestion of a sniffer trace would help.&lt;/p&gt;
&lt;p&gt;Does the RPi provide any diagnostic logs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210469?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 14:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96f9f4e1-8a5f-43db-942e-8ace62176684</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you measured the time accurately (e.g. with stop watch)? What is the exact timing, and is it the same every time?&lt;/p&gt;
&lt;p&gt;Can you provide a &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer log&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Previously we have seen similar issues when the application running on the nRF does not handle a request, &lt;a href="https://devzone.nordicsemi.com/support-private/support/230446"&gt;e.g. data update request in IoT examples&lt;/a&gt;. This could be something similar. A sniffer log will reveal what happens before disconnection.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210468?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 14:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2fa8296-4688-4ea4-9387-f5039598ad83</guid><dc:creator>BJay</dc:creator><description>&lt;p&gt;Here is a screenshot from the RPi after disconnection:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6646.failure.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210358?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 10:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52ffb1ee-4e9c-4669-a509-9f06d1d4074d</guid><dc:creator>BJay</dc:creator><description>&lt;p&gt;Is there a way I can disable that feature?&lt;/p&gt;
&lt;p&gt;I feel that this is some kind of acknowledgement issue between RPi and Thingy but thanks for pointer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210355?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 10:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9eecf6d-3ef9-497c-933d-89756b388f82</guid><dc:creator>awneil</dc:creator><description>[quote userid="83348" url="~/f/nordic-q-a/52285/thingy52-drops-connection-after-around-1-minute/210352"]Can you elaborate about the battery part[/quote]
&lt;p&gt;Just noting the fact that it is a battery-operated device - therefore conserving battery power is key consideration.&lt;/p&gt;
&lt;p&gt;Like it doesn&amp;#39;t continue advertising indefinitely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210352?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 10:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d1f38e-6719-4055-99d3-7842444e7d98</guid><dc:creator>BJay</dc:creator><description>&lt;p&gt;It does not seem to disconnect when connect to android App. Though battery is around 13%.&lt;/p&gt;
&lt;p&gt;Can you elaborate about the battery part:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy52 drops connection after around 1 minute</title><link>https://devzone.nordicsemi.com/thread/210341?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 10:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f90a249-ccf4-4fb0-8f48-d93841d37cfe</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Do you see the same connecting from other things - eg, mobile phone or nRF Connect Desktop?&lt;/p&gt;
&lt;p&gt;It might be deliberate - so save battery ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>