Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT-FS → Thread

   

transferring large files with ANTFS PC Host

Rank

Total Posts: 6

Joined 2011-03-08

PM

Hi,

I am having problems when I transfer large files(68KB+) between our device and your ANT-FS PC Host. I am able to transfer smaller files(38KB) successfully all the time, but once I increase the size, I would always randomly receive a "Error:Download Failed" message in the ANT-FS PC Host program.

When the error occurs, I would receive a disconnect command when the progress reaches about 80% or so. When I look back at the log files, the burst appears to be transmitting properly before receiving a disconnect command from the PC Host. Please see the snippet of my log file that shows the error.

Do you know what type of problems would cause the PC Host to issue a disconnect command?

Thanks,
Harvey [file name=Debug0.txt size=7370]http://www.thisisant.com/images/fbfiles/files/Debug0.txt[/file]      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

It looks like the response from the client is failing - it just sends the first burst packet, then fails.
could you post the ao_debug_ANTFS... log file as well? that may give us an indication on whether a timeout was exceeded.      
Rank

Total Posts: 6

Joined 2011-03-08

PM

Hi Alejandra,

I ran the system again and created the two log files. Please see the new attachments in the following posts.

Thank You,
Harvey      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Posting logs... [file name=fslogs.zip size=125472]http://www.thisisant.com/images/fbfiles/files/fslogs.zip[/file]      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

From the logs, it looks like the client is sending the file in blocks of 256 bytes. It seems that in between download blocks, after receiving a download request and before sending a download response, there is a delay in the response, up to a few seconds. In this case, the client should update its beacon state to "Busy", instead of "Transport", to let the host know that it is processing the request. Otherwise, the host will continue to increase a "timeout", that after enough blocks, makes your download fail. Furthermore, this causes more issues when the host retries the request when the client is about to respond. One example of this is at time 123.672 on the Device0.txt log.

In short, if you are unable to respond to a download request right away (e.g. because you need to fetch data from the file system), set the beacon state to busy, so the host knows that the client did receive the request and is working on it.      
Rank

Total Posts: 6

Joined 2011-03-08

PM

That was the problem. Thanks for the extensive help Alejandra!

Harvey