Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

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

   

ANT-FS restart from 0% randomly

Rank

Total Posts: 1

Joined 0

PM

I am using ANT-FS embedded client code to sent files to PC ANT-FS host program. I found that the time lag for retrieving data from flash may cause the burst to fail when I transfer large file, but it is okay with small files.

Probably set the beacon state to busy while retrieving data will help?

I tried to limit the burst size to 64 bytes because I am reading 64 bytes at a time from flash.

stResponseInfo.uBlockSize.ulData 64

but this will cause the download restart automatically.

Does anyone know what cause the download restart? How to avoid it?      
Rank

Total Posts: 1

Joined 0

PM

I attach the logs file here [file name=logs.zip size=87894]http://www.thisisant.com/images/fbfiles/files/logs.zip[/file]      
Rank

Total Posts: 4

Joined 2009-11-04

PM

I think that the max available time lag is about 15ms.

Basically, you need to transfer data continuously during the burst .
If the packet data is not setup on the transmitting timing ,the transfer will be error.
But the burst has the retrying function (5 times) .
After 5 times retrying,the fail event(EVENT_TRANSFER_TX_FAILED ) will occur.( The time for 5 times retrying is about 15ms)
Therefore,the max available time lag is about 15ms.

During the burst(from top of the burst to the end of the burst), the beacon is not transmitted.
Therefore,the busy beacon is not effective.

Please refer
http://www.thisisant.com/component/option,com_fireboard/Itemid,146/func,view/id,1011/catid,25/#1011