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
  • Acknowledged data messages can be sent from a slave to a master. In this case the message is sent immediately after a message is received from the master. If the acknowledged data message is sent successfully, this will be indicated by the channel event TRANSFER_TX_COMPLETED. If no acknowledgement is received from the master, this will be indicated by TX_TRANSFER_FAILED, which either means that the message failed to reach the master, or that the response from the master failed to reach the slave. In this case the slave’s application layer may retry the message. A third possible scenario is that the channel is dropped and the slave begins to search; in this case the event GO_TO_SEARCH will be received, instead of either of the other two commands. If GO_TO_SEARCH is received then the acknowledged message will not be sent, and the channel should be unassigned

Reply
  • Acknowledged data messages can be sent from a slave to a master. In this case the message is sent immediately after a message is received from the master. If the acknowledged data message is sent successfully, this will be indicated by the channel event TRANSFER_TX_COMPLETED. If no acknowledgement is received from the master, this will be indicated by TX_TRANSFER_FAILED, which either means that the message failed to reach the master, or that the response from the master failed to reach the slave. In this case the slave’s application layer may retry the message. A third possible scenario is that the channel is dropped and the slave begins to search; in this case the event GO_TO_SEARCH will be received, instead of either of the other two commands. If GO_TO_SEARCH is received then the acknowledged message will not be sent, and the channel should be unassigned

Children
No Data
Related