solarpowerlog trunk
/home/tobi/workspace/solarpowerlog/src/Connections/CSharedConnection.h File Reference

Go to the source code of this file.


Detailed Description

Sharing a connection between 2 or more inverters.

This class "manages" the communication between two or more inverters, talking to the same communication object.

Every inverter sharing a connection uses a object of this class for its communication.

Exactly one of the objects is in the master role, owning the "real" communication object ("master object") and the others are delegating the communication to this master.

The master schedules the sending and receiving of the telegrams, and notifies the inverters about reception or errors....

The receiving inverter has to take care about filtering out answers, as there are inverters which do not employ a question-answer scheme, but just answering.

So, all inverters with pending receive commands will be informed.

The slave object will only delegate the communication to the master and then waits for the completion.

Created on: Sep 12, 2010 Author: coldtobi

Definition in file CSharedConnection.h.