Hi
I'm encountering a problem than the ANT device cannot be scanned. you can use project "ble_ant_app_hrm_v324"(ncs 324), and modify "

Hi
I'm encountering a problem than the ANT device cannot be scanned. you can use project "ble_ant_app_hrm_v324"(ncs 324), and modify "

Hello,
If I remember correctly ant_channel_open() return 0x4015 means channel is in wrong state.
Are you sure the channel is in closed state? E.g. wait for EVENT_CHANNEL_CLOSED before you open it again. When the issue occurs, what does sd_ant_channel_status_get() return?
Kenneth
Hi,
This issue occur then I do ant_channel_close and can't get EVENT_CHANNEL_CLOSED response. And ant_channel_status_get() always is 2.
Hello, we're looking into your issue now. I was able to reproduce it with your sample.
What was the reasoning behind introducing prints into the event handler? Have you seen this issue without the prints/sleep in place? I was not able to see it in that case, the scan loop runs to completion. It also seems that the issue doesn't occur using CONFIG_LOG_MODE_DEFERRED=y instead of CONFIG_LOG_MODE_IMMEDIATE. Since the ANT work queue that handles events is cooperative, blocking in the handler starves event dispatch and is discouraged by Zephyr's work queue constraints.
I hope one of those options can unblock your development while we look for a root cause.
Hi,
I have moved my bussiness code in "antplus_evt_handler" to another thread, including the printfs, and the issue not happen for now. But we still hope to know the root cause, and fix it.
Thank you.
Hi,
About this issue, have any update? I have no printfs in "antplus_evt_handler", but I get some feedback that still report 0x4015.
Hi,
This issue is affecting our project schedule. Please assist in resolving it and provide the expected repair time. Thank you.
Thanks for checking in, we're working to reproduce this issue now. Is the ANT traffic still the same as the sample project? How frequent are the 0x4015 errors? If you have a log with the latest code we can take a look.
Thanks for checking in, we're working to reproduce this issue now. Is the ANT traffic still the same as the sample project? How frequent are the 0x4015 errors? If you have a log with the latest code we can take a look.