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 requesting data download from the client

Rank

Total Posts: 13

Joined 0

PM

Hi

Host Platform is Android (using the Android ANT API)
Client is a BP monitor.

I have a question about requesting data download from a blood pressure monitor. The document specifies I have to send two packets to request the data by burst.

Currently I am using the ANTSendBurstTransfer API this is not working. I am wondering if I should be using the ANTSendPartialBurst API. I am not sure about the initialPacket argument to the API. Can you point me to some document or samples.

The packets I need to send to the client are.

[44][09][00][00][00][00][00][00]
[00][01][00][00][00][00][00][00]


I appreciate the help provided in the forum.

Albert      
Rank

Total Posts: 13

Joined 0

PM

Hi

I need to send a download data request to a BP Monitor from my Android Phone APP

These are the data packets that I need to send in sequence.

[44][09][00][00][00][00][00][00] - buffer1
[00][01][00][00][00][00][00][00] - buffer2

Should I user the ANTSendBurstTransfer two times or should I use the ANTSendPartialBurst API.

I am having touble understanding the initialPacket argument to the ANTSendPartialBurst.

Will This work.

ANTSendPartialBurst( chanNo, buffer1, 1, false );
ANTSendPartialBurst( chanNo, buffer2, 2, true );

Thanks for the help in advance

- albert      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

You can use ANTSendBurstTransfer to send multiple burst packets, just make sure that your TX Buffer contains the entire burst data (no sequence numbers, etc).

ANTSendBurstTransferPacket will only send one packet.

Do you have access to a USB stick? I highly recommend using the USB stick and ANTware to receive your burst, so you can make sure that you are receiving the command that you were expecting to. It is easier to start developing using the PC tools, and later test with a real sensor device, as it will be easier to debug any issues you may run into.      
Avatar
RankRank

Total Posts: 39

Joined 2011-06-29

PM

byte data[] = new byte[16];
Arrays.fill(data, (byte)0);
data[0] = 0x44;
data[1] = 0x09;
data[9] = 0x01;

if (0 == antDevice.ANTSendBurstTransfer(channel, data))
//write passed
else
//write incomplete or failed