ant scan can't found any device

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 "

light_rx_open_head" to connect to your ant device, you will see the error "0x4015", and ant device cannot be scanned anymore. And, I use that project "ble_ant_app_hrm_v292" run with ncs 292(test code is same with "ble_ant_app_hrm_v324"), it does't report error.
Plase help me solve this issue. Thanks.


 ble_ant_app_hrm_v324.zipble_ant_app_hrm_v292.zip

Parents Reply
  • Hi Kenneth

    Briefly, the main test in this project is to repeatedly ANT scan open and close

    I have reworked this project to make it more rigorous. To ensure that each close operation is successful, after executing ant_channel_close(ANT_BS_CHANNEL_NUMBER); I use a semaphore and continuously monitor for the callback below. The semaphore is released only after receiving the signal that the channel has been closed.

    From the test results, everything runs normally at the beginning, but after about 2-3 minutes, the following exception occurs.

    It can be seen that the ANT channel can no longer be closed normally, and this log continues indefinitely. It looks like the ANT thread can no longer recover and is permanently stuck in the logic that reports the channel close failure.

    This example can be easily reproduced by using the following standard ANT device for testing. The test device is shown below:

    Also, this issue seems to occur only on SDK-ANT 2.1.0; older versions do not have this issue.

    Below it is reproduce project:

    Test_ant_issue.7z

    BR

Children
Related