Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Message Code 15 ?

Avatar
Rank

Total Posts: 1

Joined 2009-07-07

PM

Hello, I'm configuring nRF over SPI
After sending ANT_OpenChannel() 0x(A5,01,4B,00,EF), nRF response back with 0x(A4,03,40,00,4B,15,B9). The channel is opened & everything looks OK.

Do I always get response to control message?
Why is MSG Code15 generated?
The Document D00000652 Rev 3.1 doesn't give any explanation (there is no Code15)?
I assume that everything works fine? Am I right?

Thank you for your assistance.      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

The first thing I should point out is that the message codes are actually listed in decimal - so when you are receiving 0x15, you are getting message 21 - CHANNEL_IN_WRONG_STATE.

Sorry for the confusion - we will add a note to our documentation explicitly stating that these values are in decimal.

You will get a response from every command that is listed as having a reply in the ANT Message Summary, section 9.3 in the ANT Message Protocol and Usage document. For commands that have a reply, you should wait until you get the response before sending a further command. This ensures each configuration command has been correctly performed and helps prevent ANT from getting into an incorrect state.      
Rank

Total Posts: 1

Joined 2011-05-05

PM

HI! dear all
my is a question.
when config.messages
use check responsedunc(msg.ID 0x40)
get CHANNEL_IN_WRONG_STATE (0x15)
so must be
RESPONSE_NO_ERROR(0x00)
follow step ?[video type=google][/video]
thanks! [file name=message_code-7444e32c44d71959b7d81a3a05975078.txt size=1439]http://www.thisisant.com/images/fbfiles/files/message_code-7444e32c44d71959b7d81a3a05975078.txt[/file] [img size=783]http://www.thisisant.com/images/fbfiles/images/message_code.JPG[/img]      
Avatar
RankRankRankRank

Total Posts: 213

Joined 2011-05-02

PM

when you receive the CHANNEL_IN_WRONG_STATE response, it is necessary to check the state that your channel is in. It is possible that the channel is already assigned. You should check the state that your channel is in by requesting the channel status (message ID 0x52). It is possible that your reset function is not working as expected.