This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Exit ANT+ continous scanning mode without stack reset

Hi,

I currently have a problem with the continous scanning mode. I implemented the scanning mode that my device searches for the first 4 seconds after power up then picks the Device IDs with the highest RSSI and connects to them. If I power up the device it is working fine. I reset the ANT+ stack after power up then configure my scanning mode then scan for devices and pick my best one. Afterwards I reset the stack another time and open the channels with my found data. (BLE Stack is also running during this process)

If I now tried to do this scanning process during the runtime and reset my stack again I have the problem that my channels won't get any messages. I think the stack reset is responsible for this but I can't figure out how to exit the scanning mode otherwise. If I try to unassign and close channel 0 and then reopen it I get an Channel in wrong state response.

Is there a way to exit the continous scanning mode without a stack reset?

Thanks for your input!

Related