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

How do I wake up ANT after search timeout.

Hello, I'm having a problem with the search timing out, channel closing and not being able to reopen the channel after the sd_app_evt_wait command. How do I wake it up without using button input? (Wake it up when it gets a signal)

I can leave it in search mode, but then the power consumption is too high.

Thanks, Emily

Parents
  • If the slave cannot establish a channel you will get the event EVENT_RX_SEARCH_TIMEOUT. This can be used to trigger some action.

    I'm not sure if I understand exacly how you want to restart the receive channel search, but I made an example using a timer.

    Anyways, I have attached an example which implements a 50% duty cycle of the receive channel search. It searches for 30 seconds, then it is idle for 30 seconds, then it is searching for 30 seconds, and so on.

    It starts a 30 second timer when EVENT_RX_SEARCH_TIMEOUT event is received, and after 30 seconds the channel is opened again with sd_ant_channel_open(CHANNEL_0);

    This is not an official example, and is given as is. Unzip it into S210 folder in the SDK.

    Device: nRF51422 Evalutaion Kit(PCA10003)

    SDK 5.2.0

    SoftDevice S210 3.0.0

    Download

  • Thanks Petter, Actually, I'm trying to wake it up when it receives a transmission message from another unit. Do you know the best way to do this? I'm trying to consume minimum power, so I want it to search timeout for the minimum time, go to sleep, then wake up when it is called by a transmission.

    Thanks,

Reply Children
No Data
Related