Gw XML setup: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:


This element contains:
This element contains:
*Element: '''Channel'''
*Element: '''[[Gw_XML_setup#Element:_Channel | Channel]]'''
*Element: '''Protocol'''
*Element: '''[[Gw_XML_setup#Element:_Protocol | Protocol]]'''
*Element: '''Objects'''
*Element: '''[[Gw_XML_setup#Element:_Objects | Objects]]'''
*Element: '''Interfaces'''
*Element: '''[[Gw_XML_setup#Element:_Interfaces | Interfaces]]'''
*Attribute: '''id'''
*Attribute: '''id'''
** Used for element identification
** Used for element identification
Line 22: Line 22:
== Element: Channel ==
== Element: Channel ==
This element contains:
This element contains:
*Element: '''Port'''
*Element: '''[[Gw_XML_setup#Element:_Port | Port]]'''
*Element: '''Device'''
*Element: '''[[Gw_XML_setup#Element:_Device | Device]]'''
*Element: '''Objects'''
*Element: '''[[Gw_XML_setup#Element:_Objects | Objects]]'''
== Element: Protocol ==
== Element: Protocol ==
== Element: Port ==
== Element: Port ==

Revision as of 15:57, 16 May 2011

Element: Setup

The XML setup starts with the tag Setup. The entire setup is contained in this element.

<Setup />

This element contains:

  • Element: Device
    • At least one element of this type.
  • Attribute: device
    • If more than one Device element available. This attribute specifies the id of the Device to use as current setup.

Element: Device

This element contains setup for a specific device. This might be Gw itself or some substation device or SCADA device.

This element contains:

Element: Channel

This element contains:

Element: Protocol

Element: Port

Serial port

<Port class="SerialPortSetup">
	<BaudRate>9600</BaudRate>
	<DataBits>8</DataBits>
	<StopBits>1</StopBits>
	<Parity>none</Parity>
	<FlowControl>none</FlowControl>
</Port>

TCP/IP server

<Port class="TcpIpServerSetup">
	<PortNumber>80</PortNumber>
	<ClientIpMask>0.0.0.0</ClientIpMask>
	<Interface>eth0</Interface>
</Port>

TCP/IP client

<Port class="TcpIpClientSetup" name="16">
	<PortNumber>502</PortNumber>
	<IpAddress>10.0.0.89</IpAddress>
	<Interface>eth0</Interface>
</Port>

Virtual port

They are ports 3-5 on GW6.

<Port class="VirtualPortSetup">
	<Port class="SerialPortSetup">
	      <BaudRate>9600</BaudRate>
	      <DataBits>8</DataBits>
	      <StopBits>1</StopBits>
	      <Parity>none</Parity>
	      <FlowControl>none</FlowControl>
	</Port>
</Port>

Element: Objects

Element: Interfaces

Network setup

Has at least one Interface element.

<Interface name="eth0">
	<IpAddress>192.168.0.111</IpAddress>
	<Netmask>255.255.255.0</Netmask>
	<Gateway>192.168.0.1</Gateway>
</Interface>