IECClientInterface#

class wattson.iec104.interface.client.IECClientInterface(**kwargs)#

Bases: ABC

Methods

__init__

TODO

add_server

TODO

get_datapoint

get_server_IP

get_server_port

get_servers

get_wattson_connection_state

has_datapoint

has_server

init_callbacks

TODO:

send

send_C_CI

send_C_CS

param coa:

either RTU-coa for single C_CS or GLOBAL-COA to send to all RTUs with GLOBAL-COA

send_C_IC

send_C_RP

send_P_AC

For QPA values see 7.2.6.25 in 60870-5-101;

send_P_ME

Always send with cot == ACT

send_sys_info_non_read

start

stop

update_datapoint

wait_for_connection

__init__(**kwargs)#

TODO

Parameters:

**kwargs

abstract add_server(ip: str, coa: int, **kwargs)#

TODO

Parameters:
  • ip (str) –

  • coa (int) –

  • **kwargs

final static init_callbacks(client, **kwargs)#

TODO:

Parameters:
  • client

  • **kwargs

abstract send_C_CS(coa: int) bool#
Parameters:

coa (int) – either RTU-coa for single C_CS or GLOBAL-COA to send to all RTUs with GLOBAL-COA

abstract send_P_AC(coa: int, ioa: int, cot: int, qpa: int = 3) Dict[str, str]#

For QPA values see 7.2.6.25 in 60870-5-101;

Parameters:
  • coa (int) –

  • ioa (int) – 0 to activate loaded params, != 0 to load+activate/ change cyclic tranmissions

  • cot (int) – ACT/DEACT

  • qpa (int, optional) – 3 is used to activate/ deactivate cyclic transmission params (Default value = 3)

send_P_ME(type_id: int, coa: int, ioa: int, val)#

Always send with cot == ACT

Parameters:
  • type_id (int) – 110 - 112

  • coa (int) –

  • ioa (int) –

  • val