Indigresso Wiki

Open Source Stuff for DASH7

User Tools

Site Tools


opentag:otlib:m2network

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
opentag:otlib:m2network [2012/03/11 20:33]
jpnorair
opentag:otlib:m2network [2012/03/11 20:34] (current)
jpnorair [Data Elements]
Line 7: Line 7:
 ==== Data Elements ==== ==== Data Elements ====
 Some data elements stored inside the Network Module may be useful for the user application,​ or for other Modules to inspect. ​ The way this diagram is constructed is such that the routing callback would be accessed by m2np.signal.route,​ the frame info byte by m2np.header.fr_info,​ etc. Some data elements stored inside the Network Module may be useful for the user application,​ or for other Modules to inspect. ​ The way this diagram is constructed is such that the routing callback would be accessed by m2np.signal.route,​ the frame info byte by m2np.header.fr_info,​ etc.
-  * m2np (m2np_struct:​ M2_network.h) +  ​* **m2np** (m2np_struct:​ M2_network.h) 
-    * rt (routing_tmpl:​ OTAPI_tmpl.h) +    ​* **rt** (routing_tmpl:​ OTAPI_tmpl.h) 
-      * hop_code (ot_u8) -- contains flags and number of hops (0-15) for doing multihopping +      ​* **hop_code** (ot_u8) -- contains flags and number of hops (0-15) for doing multihopping 
-      * hop_ext (ot_u8) -- contains optional extra data for special multihop methods +      ​* **hop_ext** (ot_u8) -- contains optional extra data for special multihop methods 
-      * dlog (id_tmpl: OTAPI_tmpl.h) -- ID of other device in the dialog +      ​* **dlog** (id_tmpl: OTAPI_tmpl.h) -- ID of other device in the dialog 
-        * length (ot_u8) -- length of ID (2 or 8) +        ​* **length** (ot_u8) -- length of ID (2 or 8) 
-        * value (ot_u8*) -- ID string +        ​* **value** (ot_u8*) -- ID string 
-      * orig (id_tmpl) -- ID of origin device (only used in multihop) +      ​* **orig** (id_tmpl) -- ID of origin device (only used in multihop) 
-      * dest (id_tmpl) -- ID of final destination device (only used in multihop) +      ​* **dest** (id_tmpl) -- ID of final destination device (only used in multihop) 
-    * header (header_struct:​ M2_network.h) +    ​* **header** (header_struct:​ M2_network.h) 
-      * fr_info (ot_u8) -- Frame Info byte from DASH7 DLL, used in Foreground Frames +      ​* **fr_info** (ot_u8) -- Frame Info byte from DASH7 DLL, used in Foreground Frames 
-      * addr_ctl (ot_u8) -- Address Control byte from DASH7 DLL, used in Foreground Frames +      ​* **addr_ctl** (ot_u8) -- Address Control byte from DASH7 DLL, used in Foreground Frames 
-    * signal (m2npsig_struct:​ M2_network.h) +    ​* **signal** (m2npsig_struct:​ M2_network.h) 
-      * route (ot_sig2) -- routing callback+      ​* **route** (ot_sig2) -- routing callback
  
-  * m2dp (m2dp_struct:​ M2_network.h) +  ​* **m2dp** (m2dp_struct:​ M2_network.h) 
-    * dscfg (dscfg_struct:​ M2_network.h) -- Datastream Configuration data +    ​* **dscfg** (dscfg_struct:​ M2_network.h) -- Datastream Configuration data 
-      * ctl (ot_u8) -- Control bits for datastream +      ​* **ctl** (ot_u8) -- Control bits for datastream 
-      * dmg_count (ot_u8) -- number of damaged frames in the stream +      ​* **dmg_count** (ot_u8) -- number of damaged frames in the stream 
-    * out_rec (alp_record:​ alp.h) -- Datastream record structure +    ​* **out_rec** (alp_record:​ alp.h) -- Datastream record structure 
-      * flags (ot_u8) -- NDEF record flags +      ​* **flags** (ot_u8) -- NDEF record flags 
-      * payload_length (ot_u8) -- NDEF record payload length +      ​* **payload_length** (ot_u8) -- NDEF record payload length 
-      * dir_id (ot_u8) -- datastream directive ID +      ​* **dir_id** (ot_u8) -- datastream directive ID 
-      * dir_cmd (ot_u8) -- datastream command ID +      ​* **dir_cmd** (ot_u8) -- datastream command ID 
-      * bookmark (void*) -- pointer for extensions+      ​* **bookmark** (void*) -- pointer for extensions
  
 The **m2np** data element is where most of the important network & routing frame data exists. ​ The **m2dp** data element is used only for datastreaming,​ which at this point is experimental and not officially supported. ​ The **m2np.dlog** data and **m2np.header** data are referenced commonly in the kernel and the transport layer. ​ The callbacks (currently just **m2np.signal.route**) is optionally used by the application layer. The **m2np** data element is where most of the important network & routing frame data exists. ​ The **m2dp** data element is used only for datastreaming,​ which at this point is experimental and not officially supported. ​ The **m2np.dlog** data and **m2np.header** data are referenced commonly in the kernel and the transport layer. ​ The callbacks (currently just **m2np.signal.route**) is optionally used by the application layer.
opentag/otlib/m2network.txt · Last modified: 2012/03/11 20:34 by jpnorair