Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

help to beginner

Rank

Total Posts: 11

Joined 2013-10-08

PM

Hallo,friends!
I try to open channel,but not successfully
I have "master" ant connected to mcu and "slave" in PC with AntWare2.
Mcu sent commands:
(assign_chanel ) A4 03 42 00 30 00 D5 ANT answer A4 03 40 00 42 15 B0

Set_Channel_ID A4 04 51 00 01 01 01 F0 ANT answer A4 03 40 00 51 00 B6

Open Channel A4 01 4B 00 EE ANT answer A4 03 40 00 4B 15 B9

SendBroadcastData A4 09 4E 00 00 00 00 00 00 00 00 00 E3 ANT No answer

what am I doing wrong?      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

You can find more details on decoding the responses from ANT in the ANT Message Protocol and Usage document, in Section 9.5.6.1. Specifically, the response you are getting for the messages you are sending
- Assign Channel : CHANNEL_IN_WRONG_STATE
- Set Channel ID: RESPONSE_NO_ERROR
- Open Channel: CHANNEL_IN_WRONG_STATE

CHANNEL_IN_WRONG_STATE means that the channel is not in the correct state to perform the requested action, i.e, the channel is probably already open.
Are you performing this sequence right after a reset?

Also, note there is no response for the broadcast data message, however, you would see an EVENT_TX every channel period. You can find more details on this on Section 9.5.51.      
Rank

Total Posts: 11

Joined 2013-10-08

PM

Hallo!
I have established ant connection!
my questions-
1. I sent the data once, but AntWare2 receives data constantly ( please see attached pictures) why?
Red channel on scope is ant answer
2. Ant sent constantly A4 03 40 00 01 03 E5 I cant finde what is "01" command?
03 is EVENT_TX OK
Thank You      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

That is normal. You can find more details on the operation of ANT channels, as well as the format of the messages exchanged with ANT, in the "ANT Message Protocol and Usage Document". Section 5 describes ANT Channels, and it would also be useful to have a look at sections 9,5,6.1 and 9.5.51
http://www.thisisant.com/developer/resources/downloads/#documents_tab      
Rank

Total Posts: 11

Joined 2013-10-08

PM

Hallo!
Again ant no answer for broadcast data tx
Please see attached picture
THX      

File Attachments

Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

As mentioned before, there is no response for the broadcast data message, however, you would see an EVENT_TX every channel period, which you are seeing. Please do take the time to review the documentation you have been directed to. Section 9.5.5.1 includes a very comprehensive diagram explaining how broadcast messages work.      
Rank

Total Posts: 11

Joined 2013-10-08

PM

Hallo!
I send Broadcast data and
I do not see EVENT_TX.
I attached uart signals
Here is picture link , please download it
http://files.inbox.lv/ticket/749544b36a2c3c11ae0ff81a3f77e324a6c53b44/tx+ant+no.JPG
successful command 42, 51,4B.,
4E, no EVENT_TX answer , no wireless connection
Thank You
     
Rank

Total Posts: 11

Joined 2013-10-08

PM

HI!
Can somebody comment my attached sequence ?
everything is done according to the description
What's wrong?

THX
Dim      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Do you not see an EVENT_TX later on? As stated before, the EVENT_TX is NOT a response to the broadcast message, it is something you should see every channel period. Depending on your channel period configuration, it would seem that the time scale shown in your diagram may be too short to show the first transmission.

Are you still able to receive the messages with ANTware? If so, that indicates that the channel did open correctly.      
Rank

Total Posts: 11

Joined 2013-10-08

PM

Hallo!
First time system works ( I see Event_Tx and recived data by AntWare2)
Picture attached
http://files.inbox.lv/ticket/05303312beff817749c7c633adb965b0f2913a89/tx+ant.JPG
http://files.inbox.lv/ticket/cb4560b7cf51a9071a702a8287e5d5acb8aa5541/tx+ant2.JPG

After reset no Event Tx ( I waiting long time by scope ), no Ant ware connection

I do not undrstood, what happens?

Thank You for support
Dim      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

From your description it seems that it used to work, then you reset the system, and it no longer works, is that correct? Could you provide more detail in anything else that changed in between the "good" and "non working" states?

Was it a hardware reset, or did you reset using a reset message? How are you powering your device?
Do you get any other messages from ANT after opening the channel - e.g., do you see any reset messages later on?      
Rank

Total Posts: 11

Joined 2013-10-08

PM

After successful connection ,I power off my system. and after on no works
I have stm32 board connected to ANT module.
http://www.ebay.com/itm/USB-PC-8-Channel-nRF24AP2-nRF24AP2-8CH-ANT-protocol-Wireless-Network-2-4G-Module-/271149127669?pt=LH_DefaultDomain_0&hash=item3f21bf57f5
By scope signal ANT open chanel and no messages from after it.
Now I add hardware pin reset to ant board, trying set channel time etc.. no helps

If ant master does not see the receiver I'll be getting TX_EVENT ?

My work stop on this place, I do non understood.

Thank You!      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

If the channel is successfully open and serial communication is functional, you should be seeing EVENT_TX on the transmitter, and receiving messages on ANTware. It may be possible that you may have some hardware issues, so I would suggest checking your connections and checking that you are providing enough power to the board. You can also try monitoring the RTS line to see if you are experiencing any resets.      
Rank

Total Posts: 11

Joined 2013-10-08

PM

It works again!
I added program command RESET in init block with recommended delay 500mS.
Ant Ware 2 recived data.
I intrested - why my Garmin bike computer does not react for transmitter signal ?
Thank You
     
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

Most probably, because your transmitter does not conform to the proper device profile (e.g. heart rate, bike speed/cadence, ...).
Download the device profile from http://www.thisisant.com/developer/resources/downloads/#documents_tab and make sure that you've implemented it correctly.

Cheers,
OMB      
Rank

Total Posts: 11

Joined 2013-10-08

PM

I reading "ANT+ device profile"
Where I can get network key?

"If you have received this document you have agreed to the terms and conditions of the Adopter’s Agreement and have downloaded the ANT+ Managed network key. By accepting the Adopter’s Agreement and receiving the ANT+ device profiles you agree to:"

This keys free?
THX

.... I found it