<?xml version="1.0" encoding="UTF-8"?>
  <Schema name="FDTHART_ExtendedCommunicationSchema"
   xmlns="urn:schemas-microsoft-com:xml-data" xmlns:fdt="x-schema:FDTDataTypesSchema.xml"
   xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <!--Definition of Attributes-->
    <AttributeType name="schemaVersion" dt:type="number" default="1.22"/>
    <AttributeType name="preambleCount" dt:type="ui1"/>
    <AttributeType name="primaryMaster" dt:type="boolean"/>
    <AttributeType name="shortAddress" dt:type="ui1"/>
    <AttributeType name="shortTag" dt:type="string"/>
    <AttributeType name="longTag" dt:type="string"/>
    <AttributeType name="ipAddress" dt:type="string"/>
    <AttributeType name="port" dt:type="ui4"/>
    <AttributeType name="addressingMode"
     dt:type="enumeration"
     dt:values="shortAddress shortTag longTag"/>
    <!--Definition of Elements-->
    <ElementType name="ConnectRequest" content="empty" model="closed">
      <attribute type="fdt:nodeId" required="no"/>
      <attribute type="preambleCount" required="no"/> <!-- Provides a hint for the communication component about the number of preambles, required by the device type. -->
      <attribute type="primaryMaster" required="no"/> <!-- Provides a hint for a communication component that a DTM requires communication as primary or secondary master. -->
      <attribute type="fdt:systemTag" required="no"/> <!-- Unique identification of DTM within the Frame Application. -->
      <!-- Address information -->
      <attribute type="shortAddress" required="yes"/> <!-- This attribute is intended to store the short address (see CMD#0) information. -->
      <attribute type="longTag" required="yes"/> <!-- This attribute is intended to store the LongTag (see CMD#20) information. -->
      <attribute type="shortTag" required="yes"/> <!-- This attribute has store the Tag (see CMD#13). -->
      <attribute type="ipAddress" required="no"/> <!-- This attribute stores a host name or an IP address of a HART TCP or UDP device, conformant to IPv4 or IPv6 standard. -->
      <attribute type="port" required="no"/> <!-- This attribute stores the port number of a HART TCP or UDP device -->
      <attribute type="addressingMode" required="yes"/> <!-- With this attribute the parent DTM defines which address property shall be used for the connection -->
    </ElementType>
    
    <ElementType name="FDT" content="eltOnly" model="closed">
		<attribute type="schemaVersion" required="no"/>                     
		<attribute type="fdt:nodeId" required="no"/>
		<group order="one" minOccurs="1" maxOccurs="1">
			<element type="ConnectRequest"/>
		</group>
    </ElementType>
  </Schema>

