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

Reverse direction: send message from slave

Hello Nordic,

I have a question: how do I send a message from a slave to a master? I want to do the same as sd_ant_acknowledge_message_tx, starting the communication from the slave. Right now I am trying with that same function but I get an error (0x4015).

Thanks for the help!

Parents
  • Hi Petter!

    Is there a way of getting an event sooner than EVENT_RX_SEARCH_TIMEOUT? Not even EVENT_CHANNEL_CLOSED? Maybe the one called GO_TO_SEARCH? My main problem is that even if I sucessfully send sd_ant_channel_close() (the error code is 0x0000), I don't get the event to trigger, and my whole program is waiting for this to happen...

    The reason why I would close the channel before the message is ACK'd is because it is a user input from the button. The user presses a button to: close the channel, wildcard the channel ID and start to search for a new master. As I do these things one after the other, respecting each interrupt happening, if one of those interrupts doesn't trigger (now, EVENT_CHANNEL_CLOSED is not triggering), the program gets stuck.

    Thanks!

Reply
  • Hi Petter!

    Is there a way of getting an event sooner than EVENT_RX_SEARCH_TIMEOUT? Not even EVENT_CHANNEL_CLOSED? Maybe the one called GO_TO_SEARCH? My main problem is that even if I sucessfully send sd_ant_channel_close() (the error code is 0x0000), I don't get the event to trigger, and my whole program is waiting for this to happen...

    The reason why I would close the channel before the message is ACK'd is because it is a user input from the button. The user presses a button to: close the channel, wildcard the channel ID and start to search for a new master. As I do these things one after the other, respecting each interrupt happening, if one of those interrupts doesn't trigger (now, EVENT_CHANNEL_CLOSED is not triggering), the program gets stuck.

    Thanks!

Children
No Data
Related