Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

unassign channel

RankRank

Total Posts: 42

Joined 2020-01-26

PM

Hi,

in order to close a channel the correct procedure would be:
- unassign channel
- close channel (including the wait for EVENT_CHANNEL_CLOSED)

I run in problems when I want to close a channel I used for background search. During the step of unassigning I get the message that the channel is in a wrong state. Here is my log:
DEBUG:ant.base.ant:Write data: [a4 01 41 00 e4] # Message ID 41
DEBUG:ant.base.ant:Read data: [a4 03 40 00 41 15 b3] (now have [a4 03 40 00 41 15 b3] in buffer)

INT 15 = HEX 21 (Exception: Responded with error 21:CHANNEL_IN_WRONG_STATE)

In the document Protocol and Usage it is written on page 116 : "Returned on attempt to perform an action on a channel that is not valid for the channel’s state ".
Does anyone what this means and what I need to do?      
RankRank

Total Posts: 42

Joined 2020-01-26

PM

I already found the corresponding post
https://www.thisisant.com/forum/viewthread/3913/

correct procedure is
- close channel (including the wait for EVENT_CHANNEL_CLOSED)
- unassign channel