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
  • Ok, right now I do it right after opening the channel and it does it correctly (weird that for sd_ant_broadcast_message_tx it can be done before opening)

    Now, I am not getting EVENT_TRANSFER_TX_COMPLETED or EVENT_TRANSFER_TX_FAILED right after, is this expected behaviour just because the one that initiates the communication is the master?

    So, the solution was, I had to send the first message (sd_ant_acknowledge_message_tx) after opening the channel, and not before, as it can be done in the case of a master node.

Reply
  • Ok, right now I do it right after opening the channel and it does it correctly (weird that for sd_ant_broadcast_message_tx it can be done before opening)

    Now, I am not getting EVENT_TRANSFER_TX_COMPLETED or EVENT_TRANSFER_TX_FAILED right after, is this expected behaviour just because the one that initiates the communication is the master?

    So, the solution was, I had to send the first message (sd_ant_acknowledge_message_tx) after opening the channel, and not before, as it can be done in the case of a master node.

Children
No Data
Related