]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - doc/txt/tep123.txt
raz/mike pointed out that getetx returns etx*10 not etx*100
[tinyos-2.x.git] / doc / txt / tep123.txt
index 687e7ab68afc4346bd91ce8f43aa271055e021f9..477d87dc30f3645e81918cea8f646445705e6db2 100644 (file)
@@ -72,8 +72,8 @@ ETX of its link to its parent. This additive measure assumes that
 nodes use link-level retransmissions.  Given a choice of valid routes,
 CTP SHOULD choose the one with the lowest ETX value. CTP represents
 ETX values as 16-bit fixed-point real numbers with a precision of
-hundredths. An ETX value of 451, for example, represents an ETX of
-4.51, while an ETX value of 109 represents an ETX of 1.09.
+hundredths. An ETX value of 45, for example, represents an ETX of 4.5,
+while an ETX value of 10 represents an ETX of 1.
 
 Routing loops are a problem that can emerge in a CTP network. Routing
 loops generally occur when a node choose a new route that has a
@@ -116,18 +116,18 @@ to do so.
 The CTP data frame format is as follows::
 
                            1            
-       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-      |P|C| reserved  |      THL        |
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-      |              ETX                |
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-      |             origin              |                 
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-      |     seqno     |   collect_id    |    
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+      |P|C| reserved  |      THL      |
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+      |              ETX              |
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+      |             origin            |                 
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+      |     seqno     |   collect_id  |    
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |    data ... 
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
 Field definitions are as follows:
 
@@ -159,12 +159,12 @@ acknowledgments enabled.
 The CTP routing frame format is as follows::
 
                            1            
-       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-      |P|C| reserved  |      parent     |
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-      |     parent    |       ETX       |    
-      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+      |P|C| reserved  |     parent    |
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+      |     parent    |      ETX      |    
+      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |      ETX      |          
       +-+-+-+-+-+-+-+-+