Preferences Schema
COMPORT Element
See Also  Send comments on this topic.
Preferences Schema : COMPORT Element

Glossary Item Box

Description

Used to define serial port settings for the AUX or GPS port in ArcPadPrefs.apx.

Diagram

COMPORT Element

Overview

COMPORT
Used to define serial port settings for the AUX or GPS port in ArcPadPrefs.apx.
baud optional Restriction of xs:int
Baud rate for communication.
cthandshake optional Restriction of xs:string
Flag to determine if the CTS (clear-to-send) signal is monitored for output flow control.
databits optional Restriction of xs:int
Number of data bits used to represent characters.
dsrhandshake optional Restriction of xs:string
Flag to determine if the DSR (data-set-ready) signal is monitored for output flow control.
dtrcontrol optional Restriction of xs:string
DTR (data-terminal-ready) flow control.
infrared optional Restriction of xs:string
Flag to determine if the serial port is an infrared port.
parity optional Restriction of xs:string
Parity (error-checking).
port optional Restriction of xs:int
COM port to use.
rtscontrol optional Restriction of xs:string
RTS (ready-to-send) flow control.
stopbits optional Restriction of xs:int
Number of stop bits used to mark the end of a unit of transmission.

Attributes

NameTypeUseDefaultFixedDescription
baudRestriction of xs:intoptional4800 Baud rate for communication.
cthandshakeRestriction of xs:stringoptionalfalse Flag to determine if the CTS (clear-to-send) signal is monitored for output flow control.
databitsRestriction of xs:intoptional8 Number of data bits used to represent characters.
dsrhandshakeRestriction of xs:stringoptionalfalse Flag to determine if the DSR (data-set-ready) signal is monitored for output flow control.
dtrcontrolRestriction of xs:stringoptionalenable DTR (data-terminal-ready) flow control.
infraredRestriction of xs:stringoptionalfalse Flag to determine if the serial port is an infrared port.
parityRestriction of xs:stringoptionalN Parity (error-checking).
portRestriction of xs:intoptional1 COM port to use.
rtscontrolRestriction of xs:stringoptionalenable RTS (ready-to-send) flow control.
stopbitsRestriction of xs:intoptional1 Number of stop bits used to mark the end of a unit of transmission.

Examples

ArcPadPrefs.apx

Source

<xs:element name="COMPORT" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to define serial port settings for the AUX or GPS port in ArcPadPrefs.apx.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute default="4800" name="baud">
      <xs:annotation>
        <xs:documentation>Baud rate for communication.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:enumeration value="1200" />
          <xs:enumeration value="2400" />
          <xs:enumeration value="4800" />
          <xs:enumeration value="9600" />
          <xs:enumeration value="14400" />
          <xs:enumeration value="19200" />
          <xs:enumeration value="38400" />
          <xs:enumeration value="56000" />
          <xs:enumeration value="57600" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="false" name="cthandshake">
      <xs:annotation>
        <xs:documentation>Flag to determine if the CTS (clear-to-send) signal is monitored for output flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="8" name="databits">
      <xs:annotation>
        <xs:documentation>Number of data bits used to represent characters.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:enumeration value="7" />
          <xs:enumeration value="8" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="false" name="dsrhandshake">
      <xs:annotation>
        <xs:documentation>Flag to determine if the DSR (data-set-ready) signal is monitored for output flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="enable" name="dtrcontrol">
      <xs:annotation>
        <xs:documentation>DTR (data-terminal-ready) flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="enable" />
          <xs:enumeration value="disable" />
          <xs:enumeration value="handshake" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="false" name="infrared">
      <xs:annotation>
        <xs:documentation>Flag to determine if the serial port is an infrared port.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="N" name="parity">
      <xs:annotation>
        <xs:documentation>Parity (error-checking).</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="N" />
          <xs:enumeration value="O" />
          <xs:enumeration value="E" />
          <xs:enumeration value="M" />
          <xs:enumeration value="S" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="1" name="port">
      <xs:annotation>
        <xs:documentation>COM port to use.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:minInclusive value="1" />
          <xs:maxInclusive value="32" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="enable" name="rtscontrol">
      <xs:annotation>
        <xs:documentation>RTS (ready-to-send) flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="enable" />
          <xs:enumeration value="disable" />
          <xs:enumeration value="handshake" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="1" name="stopbits">
      <xs:annotation>
        <xs:documentation>Number of stop bits used to mark the end of a unit of transmission.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:enumeration value="1" />
          <xs:enumeration value="2" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

See Also

© 2013 All Rights Reserved.