Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Packet Construction

Rank

Total Posts: 1

Joined 0

PM

Hi,

I'm new in ANT + developments and i've a issue.

I'm using a usart of pic18f4680 to communicate with ant module in a async way.

I've read the documents that are advised but i still have a question.

I just want to send data to the module connected to pic and see it in antware II.

My question is related with the packet construction and with lsb detail.

For Example, to Assign Channel command should I send:

[A4] [03] [42] [00] [10] [00] [CheckSum]

or
[4A] [30] [24] [00] [01] [00] [CheckSum]

or
change the bits of the byte : A4 -> 10100100 to 25->00100101 and do it for alll bytes.

Thank in advance      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi,

In this case your "Assign Channel" command should look like:
[A4][03][42][00][10][00][F5]

The bit order and USART details should follow relatively standard parameters:
8 Bits per Transfer
1 Stop Bit
Least Significant Bit Sent First

So your A4 should be (as sent in order from first to last) -> 00100101. This should be the same for all bytes.

Cheers