Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

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

   

Question about   ANTFS_HostChannel Download Method

Rank

Total Posts: 29

Joined 0

PM

Hi Forks,
I encounter a problem on download a selected file on ANTFS,
I can download the directory however, when I want to download a specific fileIndex in the directory by using the Download method from ANTFS_HostChannel with following code:
antfsHost.Download(fileIndex, 0, 0);
The download action is somehow not happen.
Any hint for me to solve this problem will be appreciate.
Thanks in advance,
Best regards,
tony
     
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Please enable debug logging, and post the generated logs. The logs will provide more information regarding why you are not seeing what you expect.      
Rank

Total Posts: 29

Joined 0

PM

Hi thanks for your reply,
In my test I used the Ant PC Tool as the client,
I try to download the file with fileIndex = 1
However, ever I got the following log and no file was downloaded.

174.019 { 112216370}: ANTFSHostChannel::Download(): Starting download...
174.019 { 112216370}: ANTFSHostChannel::Download(): Tx error sending download command.
174.019 { 112216370}: ANTFSHostChannel::Download(): Not receiving packets.
174.019 { 112216370}: ANTFSHostChannel::Download(): Tx error sending download command.
174.019 { 112216370}: ANTFSHostChannel::Download(): Not receiving packets.
174.019 { 112216370}: ANTFSHostChannel::Download(): Tx error sending download command.
174.019 { 112216370}: ANTFSHostChannel::Download(): Not receiving packets.
174.019 { 112216370}: ANTFSHostChannel::Download(): Tx error sending download command.
174.019 { 112216370}: ANTFSHostChannel::Download(): Rx error.
184.019 { 112226370}: ANTFSHostChannel::AttemptDownload(): Fail syncing with remote device.
184.019 { 112226370}: ANTFSHostChannel::ANTFSThread(): Download failed.
187.030 { 112229381}: ANTFSHostChannel::Disconnect(): Tx time      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Does the PC client contain a file at index 1? Did you request to download index 1 after downloading the directory? From what you posted,, the logs indicate that the host is unable to send the download request to the client, which typically would mean bad RF. However, since you see this error consistently at the same spot, there may be something else going on.

Can you post the log from PC Client as well (make sure to enable debugging). Also, if possible, please post the full set of logs (ao_debug... and DeviceX.txt) from both your application and the PC Client.