RTU#
- class wattson.hosts.rtu.rtu.RTU(iec_server_class: Type[IECServerInterface], server_datapoints: list, **kwargs)#
Bases:
objectModel of an RTU. The naming of the data points was adopted from the cps-ids package. The “server_datapoints” are those which are used for the “up-stream” communication, hence the communication to the central SCADA entity on the WAN. Implemented features of the entire RTU: - set/set values of datapoints - send periodic updates - receive ASDUs and log them - respond to general interrogation
Methods
get_104_socketget_data_point_infoget_valueset_valuestartstart_socketsstopstop_socketswaitAttributes
self.statistics_config = kwargs.get("statistics", {})
- __init__(iec_server_class: Type[IECServerInterface], server_datapoints: list, **kwargs)#
- working_directory#
self.statistics_config = kwargs.get(“statistics”, {})
- self.statistics = StatisticClient(
ip=self.statistics_config.get(“server”), host=self.hostname, logger=self.logger,
) self.statistics.start() self.statistics.log(“start”)