A simple wireless protocol to let my examples communicate each other. ssWi stands for Shared Slotted Wireless protocol

Dependents:   rover_car rover_pc supervisor watering_unit ... more

You are viewing an older revision! See the latest version

Homepage

This library aims at implementing a simple communication protocol among nodes, abstracting from the hardware.

The communication channel is represented by ssWiChannel. An abstract class which models the transceiver. The implementation must implement the functions: init, read and write. The protocol automatially sends and receives data through the selected channel. Addresses are not required as the communication lays on broadcast transmissions.

The protocol provides the ssWiPort abstraction which is like memory areas shared among all the connected nodes. Reading from one port lets the node retrive the last written value from the other nodes. Writing on one port means sending such value to other nodes.

Objects instanciated from ssWiSocket are the interface for allowing nodes to access the protocol ports.

/media/uploads/mariob/scheme.png

TODO:

  • communication tests with many nodes (so far, only 2 nodes have been tested)
  • exploit Timer rather than Thread for the protocol internals

All wikipages