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

ANT Broadcast Message through previously set up channel

Hi Nordic,

I have a star network with 3 nodes and 2 channels. I go through the whole pairing process and start sending data without problem. Now I want to, from the master, use one of these two channels to broadcast data to all nearby ANT devices, irrespective of their channel ID. I try to do this but when I try to use sd_ant_broadcast_message_tx in one of the channels, I get this error code: 401F. What does it mean? Do I have to use a new channel just to broadcast this information? It is important to say that this broadcasting will be done very very unlikely, the normal operation of the channels is to send and receive ack messages.

Thanks Nordic!

Parents
  • Ok, let me try to clarify better what I am trying to do:

    1. Set slave as wildcarded and search for master.

    2. In master, start communication with random channel ID. Store this number in master's flash.

    3. Slave searches for master, and once they communicate, slave stores its channel ID in slave's flash. Now both nodes have same channel ID in flash.

    4. What if this master now breaks and I need a different master, with a different, random channel ID? My idea was to create a special message such that, once received in the slave, it deletes the previous channel ID information in the slave's flash and sets the current channel ID to wildcard, so it can start searching for a new channel ID.

    The problem is, how do I send that message?

    Is it a bit more clear now?

    Thanks,

    Angel.

Reply
  • Ok, let me try to clarify better what I am trying to do:

    1. Set slave as wildcarded and search for master.

    2. In master, start communication with random channel ID. Store this number in master's flash.

    3. Slave searches for master, and once they communicate, slave stores its channel ID in slave's flash. Now both nodes have same channel ID in flash.

    4. What if this master now breaks and I need a different master, with a different, random channel ID? My idea was to create a special message such that, once received in the slave, it deletes the previous channel ID information in the slave's flash and sets the current channel ID to wildcard, so it can start searching for a new channel ID.

    The problem is, how do I send that message?

    Is it a bit more clear now?

    Thanks,

    Angel.

Children
No Data
Related