<?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>antfs.c sample code bug during interrupted download</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65215/antfs-c-sample-code-bug-during-interrupted-download</link><description>I am getting unexpected behavior when using the latest version of the antfs.c sample code. I think this is a separate issue from what I reported here 
 When the ANT-FS download is interrupted momentarily during a download, I expect it to recover from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Oct 2020 07:36:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65215/antfs-c-sample-code-bug-during-interrupted-download" /><item><title>RE: antfs.c sample code bug during interrupted download</title><link>https://devzone.nordicsemi.com/thread/272432?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 07:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e562bc-4d76-4d77-9b23-ff7591a6e335</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The team&amp;nbsp;have found out why ANT FS Client failed to resume the file downloading process after temporary interruption.&lt;/p&gt;
&lt;p&gt;It turns out that the CRC save point is updated systematically with every data packet that is sent from the Client to the Host during the file transfer. ANT protocol cannot detect disconnect straight away, so it keeps on sending data packets and updating CRC save points. Later on,&amp;nbsp;if the ANT PC tool recognizes interrupted transmission, it tries resuming the downloading process by setting a dedicated bit in the download command. It also indicates the file offset from which the file transfer should continue. However, the offset of the CRC save point, which was calculated by the ANT FS Client, is greater than the file offset requested by the Host. The Client rejects the whole downloading operation because it cannot verify the CRC of data packets that were received on the Host end. One of the possible solutions to this issue is to store multiple CRC save points during the downloading process and roll back to the closest one when the file transfer is interrupted. Currently, there is only one CRC save point, and that&amp;#39;s why&amp;nbsp;this becomes a problem.&lt;/p&gt;
&lt;p&gt;The team have included a modified version of antfs.c which handles the temporary transfer interrupts. However, this version skips the CRC verification step after the transmission is interrupted. As a test, they tried downloading the same file two times: once without any transfer interruptions and the second with at least one such interrupt. It turned out that both versions of the file were binary equal. This experiment demonstrates that the file transfer with resuming functionality is feasible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We hope that the modifications is a good starting point to improve ANT FS implementation further. Unfortunately the team don&amp;#39;t have time to see this further as of now.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&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/7587.antfs.c"&gt;devzone.nordicsemi.com/.../7587.antfs.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: antfs.c sample code bug during interrupted download</title><link>https://devzone.nordicsemi.com/thread/272188?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 07:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b42a538-6b4e-494b-83a6-5fa6525617c7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Looks like the person looking into the case is out of office&amp;nbsp;this week. So likely no update until then, sorry for the delay.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: antfs.c sample code bug during interrupted download</title><link>https://devzone.nordicsemi.com/thread/270558?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 11:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1add4313-c044-4b14-92e9-7c93862c11d4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for time this is taking, they are looking into it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: antfs.c sample code bug during interrupted download</title><link>https://devzone.nordicsemi.com/thread/270386?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 16:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c67f77-0923-4f5e-8cd1-a51e17759d7f</guid><dc:creator>rschmitz</dc:creator><description>&lt;p&gt;Hello Kenneth,&amp;nbsp; Is there any update on this bug?&amp;nbsp; It is holding up our software release now.&amp;nbsp; Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: antfs.c sample code bug during interrupted download</title><link>https://devzone.nordicsemi.com/thread/266460?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 11:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a5e5d07-900c-41ab-a14a-fc6f55f728d0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I have forwarded your case to the software developers. We&amp;nbsp;will try to provide an update soon.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>