Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

send a specific number of data

Rank

Total Posts: 7

Joined 0

PM

Hello,

Is someone know how to send only one data ? Because when i send common page, i receive two of them instead of one.
I didn't forget to put a 0x00 message between my two datas.
For example, when i send in a common loop : p80 (x1) and then p7 (x64)
I received : p80 p80 p7 p7 p7 => p80 x2 ??
=> p7 about x120 ??


Thanks for your help      
Avatar
RankRankRankRank

Total Posts: 213

Joined 2011-05-02

PM

Hello,

Could you please clarify exactly what the problem is? Is it that you can't get your application to send only one page 80 at a time?

I'm not quire sure what you mean by 'I didn't forget to put a 0x00 message between my two datas'.

Cheers,

Kassandra      
Rank

Total Posts: 7

Joined 0

PM

Hello,

Here is my problem : I'd send two datas (for example p80 and p7)
In a loop I'd like to send in first p80 one time and then p7 64 times
and then p80 one time and then p7 64 times ...

But i received with antwareII : p80 two times instead of one time and p7 about 120 times instead of 64 times
In spite of the fact that I sent zero pad byte (0x00) between my differents datas to be sure ANT hahave enough time to process my previous data.

Thanks for your help.      
Avatar
RankRankRankRank

Total Posts: 213

Joined 2011-05-02

PM

It seems as though you are updating the transmission buffer too slow.

What do you mean by sending a 0 pad byte between your data? Try not sending a 0 pad byte, and see if that changes anything.

Cheers,

Kassandra      
Rank

Total Posts: 7

Joined 0

PM

I've already try to don't send the 0 pad byte but the problem is still present...

How could I improve my setting to update my transmission buffer to be faster?
Here is my code :

while(1)
{
send(p80)
send(p7)
send(p7)
send(p7)
send(p7)
send(p7)
send(p7)
send(p7)
}

send( var)
{
wait RTS ready
for( i = 0 to 12)
{
send byte[ i ]
}
}

Thanks for your support.      
Avatar
RankRankRankRank

Total Posts: 213

Joined 2011-05-02

PM

You should be timing your transmissions off of the EVENT_TX, not just randomly looping them.

Try updating the transmission buffer after every EVENT_TX, and see what that does for you.