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

Increasing 30 s timeout ?

Dear Members,

How can I increase ANT+ BSC time out ?

I read  from nRF5_SDK_17.0.2_offline_doc/nrf5/ant_examples_bicycle_spd_cad.html

User interface

If a time-out occurs during search (30 seconds by default), the ANT channel is closed and the device is put into sleep mode. To wake it up, press Button 4. You can also put the device in sleep mode by pressing Button 4 while it is searching (see BSP ANT Button Module).....

How can I increase search timeout ?

Thanks

  • Hi,

    On search timeout or channel closed you will receive an EVENT_RX_SEARCH_TIMEOUT or EVENT_CHANNEL_CLOSED event in ant_evt_handler() in main.c. When you receive this event you can for instance open channel again to continue the search or go to sleep. By default the example is setup to go to sleep mode, see ant_evt_handler() in ant_state_indicator.c that nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF); is called on EVENT_CHANNEL_CLOSED. You should comment out this to avoid that it enters sleep mode.

    Kenneth
     

Related