This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

no EVENT_RX_SEARCH_TIMEOUT event

Hello, I have a master configured as "Bidirectional Master Channel" and a slave configured as "Bidirectional Slave Channel". Both talk to each other. When I start just the slave, I expect to receive the EVENT_RX_SEARCH_TIMEOUT after 10 seconds. But I do not receive this event. I've set the channel id to the paired master (device# 42, device type 1, transmit type 1). I don't get the event. I want to use this event to go back and set the device ID to some wildcards.

I've expicitly set the events I want to receive (sd_ant_event_filtering_set( FILTER_EVENT_RX_SEARCH_TIMEOUT | FILTER_EVENT_TX );) but this doesn't change anything. Any thoughts on what I might have missed here?

TIA Torsten

Parents
  • Use following example to get slave's timeout after 10s:

    err_code = sd_ant_channel_rx_search_timeout_set(CHANNEL_0, 2);	// 2 x 2,5 = 5s High prio search
    APP_ERROR_CHECK(err_code);
    
    err_code = sd_ant_channel_low_priority_rx_search_timeout_set(CHANNEL_0, 2); // 2 x 2,5 = 5s Low prio search
    APP_ERROR_CHECK(err_code);
    

    See ANT Message Protocol and Usage for defaults (Channel Search Timeout (0x44), Channel Low Priority Search Timeout (0x63)).


    If you DISABLE EVENT_RX_SEARCH_TIMEOUT through sd_ant_event_filtering_set, you'll never catch it.

Reply
  • Use following example to get slave's timeout after 10s:

    err_code = sd_ant_channel_rx_search_timeout_set(CHANNEL_0, 2);	// 2 x 2,5 = 5s High prio search
    APP_ERROR_CHECK(err_code);
    
    err_code = sd_ant_channel_low_priority_rx_search_timeout_set(CHANNEL_0, 2); // 2 x 2,5 = 5s Low prio search
    APP_ERROR_CHECK(err_code);
    

    See ANT Message Protocol and Usage for defaults (Channel Search Timeout (0x44), Channel Low Priority Search Timeout (0x63)).


    If you DISABLE EVENT_RX_SEARCH_TIMEOUT through sd_ant_event_filtering_set, you'll never catch it.

Children
No Data
Related