Atmel AVR2070 ユーザーズマニュアル

ページ / 93
 
28 
AVR2070 
8240B-AVR-06/09 
When setting an IP address, the full IP address must be specified with all zeros 
present. If the address is short any bytes, the node will respond “length error”.  
The 'server address' is the IP address which the node automatically sends readings 
to. The 'button press address' is the IP address which the node sends a certain 
message to only when the button is pressed.  
The 'G' command returns a timestamp in front of the last received message. This 
timestamp is in milliseconds, and is a 16-bit value. Hence there will be a range of 0 – 
65536, after which point the timestamp will overflow back to zero. 
As a simple first example, a wireless node will be setup to ping the connected 
computer. This assumes the computer's IPv6 address is 
2001:db8:1e1::459d:ff:fe29:bcf5. 
 
C:\> nc6 -u 2001:db8:1e1:1:baad:ff:fe00:1 61618 <enter> 
D2001:0db8:01e1:0000:459d:00ff:fe29:bcf5 <enter> 
OK 
BP <Enter> 
OK 
H <enter> 
OK 
G <enter> 
[10293] Ping took 13 mS 
 
Note that when the 'H' command is issued, this is no different from just hitting the 
button on the node. 
Next let's assume there was another node on the network, and the first node wanted 
to query the temperature on the second node. The following commands would cause 
the first node to send the 'T' command to the second node whenever the button is 
pressed. The 'G' command is then used to receive the data the second node sent the 
first.  
C:\> nc6 -u 2001:db8:1e1:1:baad:ff:fe00:1 61618 <enter> 
D2001:0db8:01e1:0001:baad:00ff:fe00:0002 <enter> 
OK 
BST <Enter> 
OK 
H <enter> 
OK 
G <enter> 
[12313] T22.3 
6.5 Sensor App Example 
The RUM example described in section 5 uses the RUM networking layer to pass 
messages around. This allows end nodes to communicate with the coordinator to 
exchange sensor readings, calibration data, etc. With IPv6 support enabled however, 
these messages can then be passed along an IPv6 link instead.