-
Notifications
You must be signed in to change notification settings - Fork 7
ISerAerial Protocol Decoder Encoder
The protocol decoder/encoder implements the iSerAerial protocol used by the iSense sensor nodes from coalesenses. The protocol is used on the serial interface between a PC and a sensor node. Any iSerAerial packet sent to the sensor node will be transmitted via the node's radio interface. Any packet received by the node via the radio interface is sent via the serial interface to the PC.
However, this requires the corresponding functionality to be present on the iSense node. Be sure to enable iSerAerial functionality in the iSense firmware. The actual packet format on the serial interface uses the standard iSense framing (DLESTXETX framing and iSense packets). Basically, iSerAerial packets are framed by the DLESTXETX framing and the contained payload is an iSense packet where the first byte is the packet's type while the remaining bytes are considered as the packet's payload.
To transmit a packet via iSerAerial, send an instance of ISerAerialOutgoingPacket downstream. After a packet has been transmitted, the node sends a confirm packet which is send upstream as an instance of ISerAerialConfirmPacket. You are allowed to send the next ISerAerialOutgoingPacket only after the confirm has been received or a timeout has expired (you have to implement this timeout mechanism and choose a reasonable timeout).
Packets received from a node are sent upstream as instances of ISerAerialIncomingPacket