Definition Type: Element
Name: serial_com
Containing Schema: BFML-CL.xsd
MinOccurs 0
MaxOccurs 1
Abstract
Documentation:
Can be used to send serial commands to the camera when board is initialized with this mode.
Collapse XSD Schema Diagram:
Drilldown into command Drilldown into baud Drilldown into protocolXSD Diagram of serial_com
Collapse XSD Schema Code:
<xs:element name="serial_com" minOccurs="0" maxOccurs="1">
    <xs:annotation>
        <xs:documentation>Can be used to send serial commands to the camera when board is initialized with this mode.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:sequence>
            <xs:element name="command" minOccurs="1" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="send" type="xs:string" minOccurs="1">
                            <xs:annotation>
                                <xs:documentation>Message to send to camera. Format dependes on protocol setting.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="receive" type="xs:string" minOccurs="0">
                            <xs:annotation>
                                <xs:documentation>Acknowledgment expected back from camera, protocol should be same as used for send message. Next message is not sent until acknowledgement is received back from camera. Timeout is fixed at 100 msec.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                    <xs:attribute name="comment" type="xs:string" use="optional" />
                </xs:complexType>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="protocol">
            <xs:annotation>
                <xs:documentation>Communications mode:
ascii - characters in the send/received node are interpreted as ASCII. The 8-bit value of the ASCII character is send to the camera. Example: "CL_MODE 15"
ascii+cr  - characters in the send/received node are interpreted as ASCII. A Carriage Return is automatically send after the message. Example: "CL_MODE 15"
hex - characters are interpreted as hex values (00 to FF), they should be separated by commas, do not add "0x". Example: "A0, F2, 42, 33, FF, 1A"
dec - characters are interpreted as decimal (0 to 255). Example: "23, 23, 127, 0, 0"
delay - </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="ascii" />
                    <xs:enumeration value="ascii+cr" />
                    <xs:enumeration value="hex" />
                    <xs:enumeration value="dec" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="baud">
            <xs:annotation>
                <xs:documentation>Baud rate use for commnications. "8-N-1" is assumed.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="9600" />
                    <xs:enumeration value="19200" />
                    <xs:enumeration value="38400" />
                    <xs:enumeration value="57600" />
                    <xs:enumeration value="115200" />
                    <xs:enumeration value="230400" />
                    <xs:enumeration value="460800" />
                    <xs:enumeration value="921600" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
</xs:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
command command 1 unbounded
Collapse Child Attributes:
Name Type Default Value Use
protocol protocol (Optional)
baud baud (Optional)