Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT Developer’s Forums → ANTWareII → Thread

   

Set Broadcast message with ANTwareII

Rank

Total Posts: 25

Joined 2010-01-29

PM

Hi,

I'm trying to send broadcast message between 2 ANT modules pluged on USB interface boards with ANTwareII v2.1.0.
It works fine, except when I change the 2 first bytes of the broadcast message with the bottom right Messaging box.
ANT Master still send the new message but ANT slave doesn't receive it. [file name=Transaction.txt size=48258]http://www.thisisant.com/images/fbfiles/files/Transaction.txt[/file]

I've add to this message a file (Transaction.txt) which contains Device0.txt (Master transmission) and Device1.txt (Slave reception) at the end.

Regards,
Lionel.      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

It appears the slave was timeout.

I do not see the broadcost message have been changed from the master log file. To confirm the change, the button of" Set Broadcost" has to be clicked once.      
Rank

Total Posts: 25

Joined 2010-01-29

PM

From my Log file:

Sent messages by the master:
1- 76.471 { 24834672} Tx - [A4][09][4E][00][00][00][00][00][00][00][00][00][E3][00][00]
2- 86.502 { 24844703} Tx - [A4][09][4E][00][00][01][00][00][00][00][00][00][E2][00][00]
3- 96.954 { 24855155} Tx - [A4][09][4E][00][00][00][F0][00][00][00][00][00][13][00][00]
4- 105.924 { 24864125} Tx - [A4][09][4E][00][01][00][F0][00][00][00][00][00][12][00][00]
5- 118.888 { 24877089} Tx - [A4][09][4E][00][00][00][00][00][00][00][00][00][E3][00][00]


Only 1st, 3rd and 5th message are received by the slave:
94.521 { 24838666} Rx - [A4][09][4E][00][00][00][00][00][00][00][00][0F][EC]
111.026 { 24855171} Rx - [A4][09][4E][00][00][00][F0][00][00][00][00][00][13]
133.022 { 24877167} Rx - [A4][09][4E][00][00][00][00][00][00][00][00][00][E3]      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

The log file has some time gap, it is hard to find the match sequence.
please re-generate the log file with obvious change:
1. change message payload: such as 11-11-11-11-00-00-00-00
2. uncheck "Increment last byte every message" in the General
menu bar.      
Rank

Total Posts: 25

Joined 2010-01-29

PM

Ok,

I've made a simpler example.

I send:
1- 59.265 { 18571763} Tx - [A4][09][4E][00][00][00][00][00][00][00][00][00][E3][00][00]
2- 68.874 { 18581372} Tx - [A4][09][4E][00][FF][FF][FF][FF][FF][FF][FF][FF][E3][00][00]
3- 77.704 { 18590202} Tx - [A4][09][4E][00][00][00][AA][AA][AA][AA][AA][AA][E3][00][00]
4- 91.557 { 18604055} Tx - [A4][09][4E][00][01][01][01][01][01][01][01][01][E3][00][00]
5- 99.872 { 18612370} Tx - [A4][09][4E][00][00][00][00][00][00][00][00][00][E3][00][00]

I receive:
1- 55.084 { 18574259} Rx - [A4][09][4E][00][00][00][00][00][00][00][00][00][E3]
2- 71.089 { 18590264} Rx - [A4][09][4E][00][00][00][AA][AA][AA][AA][AA][AA][E3]
3- 93.335 { 18612510} Rx - [A4][09][4E][00][00][00][00][00][00][00][00][00][E3]

At the end I have some bad Event, because I close master channel before slave channel.

Regards,
lionel. [file name=Transaction-8f38bb34694de94e6a9f23864f641631.txt size=47221]http://www.thisisant.com/images/fbfiles/files/Transaction-8f38bb34694de94e6a9f23864f641631.txt[/file]      
RankRankRank

Total Posts: 55

Joined 2008-10-24

PM

The channel status message of "23" shows that you have assigned the channel as a shared channel slave. Status contains both the assignment status (Bits 7:4), network number (Bits 3:2), and the channel status (Bits 1:0). All of this should be in the documentation.

The Rx error looks like itâ??s just a random Rx error as you receive some more packets on shared address 00 00 before they stop receiving data when you switch to FF FF on the master. There is nothing wrong with this behavior.      
Rank

Total Posts: 25

Joined 2010-01-29

PM

Indeed there is no problem. When using shared channel, only Data4 to Data9 are used . Data1 is for Channel and Data2 and Data3 are reserved as a shared address.

Thank you for your help,
Regards,
lionel.