In OpenWSN, there are 5 types of cell as shown in the table below briefly. In this page, we detail the usage of 5 different types of cell.
Table of Contents |
---|
Cell Type Introducation
CellType | Description |
---|---|
CELLTYPE_OFF | slot that doesn't do anything |
CELLTYPE_TX | slot for sending packet |
CELLTYPE_RX | slot for receiving packet |
CELLTYPE_TXRX | slot for sending/receiving |
CELLTYPE_SERIALRX | slot for listening data from serial port |
Type Off
The cell with type off basically is only for sending status data. Besides that, Off type cell also used for sending the packet to DAGroot if necessary. Because of this feature, there must be always at least one Off type cell in the schedule.
Info | ||
---|---|---|
| ||
In OpenWSN, the DAGroot is separated into two parts: the MAC layer TSCH implementation on the mote hardware and the upper layer which interacts with internet (which is called OpenVisualizer). |
Type Tx/Rx
The cell with type Tx/Rx is used for sending dedicated packet to one of its neighbor. The cell with this type associated with a 64-bit address of its neighbor and only allows the packet with the address as receiver address for transmission.
Type TxRx
The cell with type TxRx is used for CSMA communication. The cell with this type associated with any-cast type address and allows any type packet transmission through this type cell.
Type SerialRx
...
The cell with type SerialRx is used for receiving the data/command coming from the DAGroot. For example, the DAGroot, (openvisualizer part) send DAGroot toggle command to change the status of DAGroot of mote; forwarding the packet from the internet to the mote in the network.
...
In OpenWSN, there are several definition about the number of different type of cells. For better utilizing those parameters, we will describe them here.
Parameter | description | |
---|---|---|
SCHEDULE_MINIMAL_6TISCH_ACTIVE_CELLS | The number of active cells defined by 6tisch minimal draft. This is the initial number active slot for the network. | |
NUMSERIALRX | The number of cells for receiving serial data from openvisualizer. By default it's set to 3. | |
NUMSLOTSOFF | The number of available slot entries. Those slots can be used as any other type of cells. At initial of the network, those slots are off type. | |
SLOTFRAME_LENGTH | The length of slotframe. |
At the initial of openwsn network, the schedule looks like the table below:
...