<?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>What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45001/what-could-make-the-softdevice-reset-without-being-asked-to</link><description>We have a nRF based device being connected from a nRF51 dongle (PCA10031). We use pc-ble-driver 2.2.1. 
 
 We enable notifications and then we let the device running for a long time. At some point, we stop receiving any notifications, buy checking the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Apr 2019 07:09:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45001/what-could-make-the-softdevice-reset-without-being-asked-to" /><item><title>RE: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/180415?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 07:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a8fde2-3d7d-44e4-a5b8-41108b8215ef</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you reach a conclusion?&lt;/p&gt;
&lt;p&gt;There are some potential issues when the mass storage device on the programmer mcu is enabled, which it is by default. This may be either the operating system trying to defragment the device, or antivirus software trying to quarantine it. (I am not sure if we have experienced the latter on the nRF51 dongle, but I think we have seen it on the nRF91 DK.) Use J-Link Commander and run the command MSDDISABLE to configure the dongle not to appear as a USB device. (If you need to enable it again at a later point then you can do so with the command MSDENABLE.)&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: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/179253?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 13:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aedb8346-3712-4856-8d29-6deef91bea1a</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;I have to check. This is most likely the root cause of the issue, Windows turning OFF the USB. But the computer is configured not to go to stand by. So we need to figure out what&amp;#39;s going on. When I&amp;#39;m 100% sure this is a Windows/standby issue and not a dongle/SD problem, I&amp;#39;ll update the ticket.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/179252?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 13:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a1e68fe-00d0-4693-aacb-20a97d203871</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The LINK_CONTROL_PACKET messages are used for setting up the UART communication between the connectivity device and the pc, so it means the connection has been lost.&lt;/p&gt;
&lt;p&gt;The direction of the particular message (&amp;quot;&amp;lt;-&amp;quot;) is from the pc to the connectivity device. This is consistent with the connectivity device having lost power so that the connection is lost and the pc tries to reestablish the connection.&lt;/p&gt;
&lt;p&gt;It is not unusual that USB ports are powered off when entering a sleep state.&lt;/p&gt;
&lt;p&gt;Are you still seeing issues that are not related to putting your pc to standby?&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: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/178861?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 09:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964ebfb9-e5ad-4a29-83e5-4347f457db09</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;I tried to put my computer in standby while a device was connected. This reports exactly the same message &amp;quot;State change: STATE_ACTIVE -&amp;gt; STATE_RESET&amp;quot; when the computer wakes up.&lt;/p&gt;
&lt;p&gt;Surprisingly, in the log I sent, this message is reported less than 1sec after a notification, so this is likely not due to the computer going to standby (else, the message would appear when the computer wakes up, long after the last notification). But the log looks similar, as if Windows for an aunnown reson unpowered the dongle for some time, and this made it reset.&lt;/p&gt;
&lt;p&gt;Also, I notice that before the state is changed to&amp;nbsp;&lt;span&gt;STATE_RESET, we receive:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[12:03:23.766] NRF Log:94915/ 0 &amp;lt;- [01 7e ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:2 data_integrity:0 err_code:0x0 [SYNC]&lt;/p&gt;
&lt;p&gt;There is no such event before. Any clue what could make this&amp;nbsp;&lt;span&gt;LINK_CONTROL_PACKET be received?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jean&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/178560?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 07:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15de6323-e7b3-4545-80c9-56079066cbea</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;no, I could not reproduce the issue when I was using the sniffer. I&amp;#39;ll try to test with &amp;quot;nRF Connect&amp;quot; and or Android app, see if it&amp;nbsp;the same problem occurs (then it will prove the problem is not related to pc-ble-driver). I&amp;#39;ll also try with the sniffer again.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/178490?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 17:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d118faa-c66c-4ad0-b106-6f0e850530fe</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you have any luck with the sniffer?&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: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/177686?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 19:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dd9209f-2f3b-4a1f-b5d7-3b03e10ad065</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So I did more testing:&lt;/p&gt;
&lt;p&gt;- Driver&amp;nbsp;&lt;span&gt;2.2.1 with nRF51 dongle programmes with API v2&lt;br /&gt;-&amp;nbsp;Driver&amp;nbsp;4.0.0&amp;nbsp;with nRF51 dongle programmes with API v2&lt;br /&gt;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;Driver&amp;nbsp;4.0.0&amp;nbsp;with nRF52 dongle programmes with API v3&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All config ended up with a silent disconnection after some time (between 20mn and 40mn).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ll try to use the sniffer and send some logs soon. Hopefully this may help you identify what&amp;#39;s going on?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jean Porcherot&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/177333?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 12:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ef1a4d3-3f07-4c3c-ae2c-b5831dc47b3c</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Ok, we will try and let you know. Problem is that 4.0.0 is much more stable for high rate devices (see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44922/s140-pc-ble-driver-4-0-0-freezes-when-receiving-too-many-data"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44922/s140-pc-ble-driver-4-0-0-freezes-when-receiving-too-many-data&lt;/a&gt;) and that&amp;#39;s why we did not migrate to 4.0.0 yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/177317?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 12:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:725b1cc8-d618-42c4-b30c-6012ace2c11a</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ah, sorry, I see now that the patch was actually present for 2.2.1. Looks like this is a separate issue then.&lt;/p&gt;
&lt;p&gt;Hopefully the issue is no longer present in v4.0.0. I know that the team worked on making the serialization more robust for that release.&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: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/177172?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 19:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233d45b5-53c6-4c24-95df-a9000fd6ec80</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hello tesc,&lt;/p&gt;
&lt;p&gt;I know: I&amp;#39;m the one who reported the issue leading to this patch ;-). See private ticket &lt;a href="https://devzone.nordicsemi.com/support/31970"&gt;https://devzone.nordicsemi.com/support/31970&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But this patch is present in 2.2.1.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m already using 1M. I&amp;#39;ll give it a try with 4.0.0 and let you know if it is fixed.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean Porcherot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could make the SoftDevice reset without being asked to?</title><link>https://devzone.nordicsemi.com/thread/177145?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 16:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2a12d6-3ddc-4888-bb0e-716c9d7278bc</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This looks like a known issue with earlier versions of pc-ble-driver, which has later been fixed.&lt;/p&gt;
&lt;p&gt;There are a few possible workarounds:&lt;/p&gt;
&lt;p&gt;A) Use 1M baud rate instead of 115k2, if you can, or&lt;br /&gt;B) Use a newer version of pc-ble-driver. Current latest release is v4.0.0, or&lt;br /&gt;C) You could try with &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/commit/956820862466f408a3e79f02a832dffcedcdc7cd"&gt;this patch&lt;/a&gt; for pc-ble-driver. It is known to work for pc-ble-driver v1, and from what I can tell the affected portion of code is still the same in v2.1.1, but note that we have not tested it for 2.1.1. Line numbers may differ between that patch and your version of pc-ble-driver.&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></channel></rss>