Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

how to close a channel properly?

Rank

Total Posts: 1

Joined 0

PM

Hi everyone,

I try to close channel with MSP430(Host) in Async mode.
when I send "MSGID_CLOSE_CHANNEL", I only get "RESPONSE_NO_ERROR" from CC257X.
How can I get "EVENT_CHANNEL_CLOSED" to ensure the channel is closed?
should i do anything else ?      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

That should be enough to close the channel. After requesting to close the channel, you will receive a response RESPONSE_NO_ERROR, ANT will proceed to close the channel, and then you will get the EVENT_CHANNEL_CLOSED.

Do you see any other messages from ANT after that?      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

I use "MSGID_CHANNEL_RESPONSE_EVENT" as ANT_RX function.
But I can only get "RESPONSE_NO_ERROR".
after that, I can not get any message from ANT.      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Since you are not getting any EVENT_TX messages, it would seem that the channel was closed. Are you able to confirm with a logic analyzer whether the EVENT_CHANNEL_CLOSED message is being sent by ANT after closing the channel? This would let you know if there are any issues on the serial drivers that would cause your MCU to miss messages from ANT.