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

Events triggered in slave while not paired

Hi Nordic, I come from this question: devzone.nordicsemi.com/.../

So, my doubt is: what events are triggered in a slave channel while it is not communicating to a master?

I am having problems triggering EVENT_CHANNEL_CLOSED (the function sd_ant_channel_closed returns 0x00000, SUCESS, but the EVENT_CHANNEL_CLOSED never triggers) when an ANT channel is configured as slave and it is not communicating with any master (it didn't find any). I have also tried to get EVENT_RX_SEARCH_TIMEOUT and EVENT_RX_FAIL_GO_TO_SEARCH but they dont trigger either.

EDIT: I also realised that events related to sd_flash_write and sd_flash_erase (NRF_EVT_FLASH_OPERATION_SUCCESS or NRF_EVT_FLASH_OPERATION_ERROR, from sys evt dispatch function) don't trigger either when the slave has not found a master. Is this behaviour normal?

Parents
  • Hi Petter! Thanks a lot for your answer! During the weekend I did some hard debugging and I found out that the problem totally goes away if instead of using the data type ACKOWLEDGE, I use BROADCAST(and change EVENT_TX_COMPLETED and FAILED for EVENT_TX and RX). I am totally considering the possibility of using BROADCAST data type and do the ACK via software, which is not that hard.

    I will take a look to your solution and tell you if it works or not. Thanks again for the trouble! :)

Reply
  • Hi Petter! Thanks a lot for your answer! During the weekend I did some hard debugging and I found out that the problem totally goes away if instead of using the data type ACKOWLEDGE, I use BROADCAST(and change EVENT_TX_COMPLETED and FAILED for EVENT_TX and RX). I am totally considering the possibility of using BROADCAST data type and do the ACK via software, which is not that hard.

    I will take a look to your solution and tell you if it works or not. Thanks again for the trouble! :)

Children
No Data
Related