Install and run the sink-sensor application
UM1454
24/28
Doc ID 022085 Rev 2
Figure 19.
Sensor: join and data messages
Commands can be sent through the HyperTerminal to both the STEVAL-sink and the
STEVAL-sensor. For example, in
the result of the command “i=print node
info” sent to STEVAL-sink can be seen.
Figure 20.
Sink: “i” command output
Note:
The application uses a constant called MISS_PACKET_TOLERANCE as a threshold for
fault tolerance. On the sensor, this threshold controls how many message timeouts can be
permitted between the sensor and sink before the sensor decides to attach itself to a
different sink.
For a sink, this controls how many data reports can be missed from a sensor before the sink
“forgets” about the sensor (stops maintaining a record of its attachment). Although bindings
are kept on the sink node to track the attached sensors, these could easily be made
temporary (used only for the SINK_READY message) to allow the sink application to
support more nodes without enlarging the binding table, assuming that the sink application
does not care which sensors and how many sensors are attached to it.
www.BDTIC.com/ST