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

This library aims at implementing a simple communication protocol among nodes, abstracting from the hardware. The name ssWi stands for Shared Slotted Wireless. Wireless is part of the name, even though the library abstracts from the hardware, as the first version was entirely focused on the XBee modules and then the name has not been changed.

The communication channel is represented by ssWiChannel, an abstract class which models the channel that the transceivers access to. The concrete classes must implement the functions: init, read and write. The protocol automatically sends and receives data through the selected channel, exploiting the operting system timers. Addresses are not considered 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 retrieve the last written value from the other nodes. Writing on one port means sending such value to other nodes.

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

/media/uploads/mariob/scheme.png

TODO:

  • improve the parsing of the received messages
  • communication tests with many nodes (so far, only 2 nodes have been tested)

History

added comments default tip

2020-04-21, by mariob [Tue, 21 Apr 2020 08:23:47 +0000] rev 25

added comments


few more comments

2020-04-20, by mariob [Mon, 20 Apr 2020 20:27:01 +0000] rev 24

few more comments


fix

2020-04-19, by mariob [Sun, 19 Apr 2020 17:59:59 +0000] rev 23

fix


fix

2020-04-19, by mariob [Sun, 19 Apr 2020 17:26:13 +0000] rev 22

fix


remove led

2020-04-19, by mariob [Sun, 19 Apr 2020 15:04:48 +0000] rev 21

remove led


few fixes, moving to new os

2020-04-17, by mariob [Fri, 17 Apr 2020 15:19:40 +0000] rev 20

few fixes, moving to new os


code cleanup

2017-01-22, by mariob [Sun, 22 Jan 2017 23:25:16 +0000] rev 19

code cleanup


fix: buffer management

2017-01-19, by mariob [Thu, 19 Jan 2017 23:29:34 +0000] rev 18

fix: buffer management


bug fix: RtosTimer is executed with a low priority - coded moved into a RealTime task

2017-01-18, by mariob [Wed, 18 Jan 2017 21:01:25 +0000] rev 17

bug fix: RtosTimer is executed with a low priority - coded moved into a RealTime task


MB

2013-03-07, by mariob [Thu, 07 Mar 2013 15:44:05 +0000] rev 16

MB