ANT Component Used: AT3 Modules
Category: ANT Hardware/embedded firmware
Issue Details:
Designing a simple system consisting of a scanning Node (fixed location) and roaming nodes called Master Nodes that roam in and out of the area of Scanning Node. Scanning Node to keep track of the master Nodes (recording the serial number/channel ID of the Master Ant Nodes) visiting the area of influence of
the Scanning Node.
I am using ANT AT3 modules for the Scanning Node and Master Nodes and adding an additional processor to communicate with these nodes over the serial channel.
My questions are as follows:
Master Node:
1. I want to use serial number as the device number in the Master NODE for channel ID and have scanning Node to use this ID to send messages back to the corresponding Master node. If I use the message 0x65 to set serial number as channel ID, do I have to add device number based on the serial number explicitly or ANT system will add the serial number as part of the message sent to scanning Node. In other words, if this command is used, then the ANT will always send the channel ID based on the serial number to the scanning Node ?
2. For every message that is sent by the Master Node, I want to send back a message from the scanning Node to the master mode.
3. What is the ID of the message that should be used to send messages from Master Node to scanning Node. Node? (0x4E, 0x5D..??)
Also, what is the format of the message that will be received by Master Node
from the Scanning Node in response to the message sent by Master Node?
Scanning Node:
1. Scanning Node is programmed with device Type and transmission type as 0 -
enabling it to receive messages from all nodes.
2. Based on ANT note AN14, the scanning Node needs to be configured for
extended messages as the ANT will not send the ID to the host, if it is not
set for extended message?
I am not clear on the format/type of Data messages (0x4E, 0x5D etc..) being exchanged between the two nodes.
I am attaching parts of the relevant code that is used to program the nodes.
Please let me know if this correct?
Attachment: antScanNode.c, antMasterNode.c