COMCONTROL
Controls the serial port hardware control lines
Platform: |
OEM719, OEM729, OEM7500, OEM7600, OEM7700, OEM7720 |
This command is typically used to control the hardware RTS control line of the serial communication (COM) ports; or, for SPAN applications, to output a 1PPS timing signal on a COM TX port. The TOGGLEPPS mode of this command is typically used to supply a timing signal to a host PC computer by using the RTS line. The PULSEPPSHIGH mode of this command is typically used to supply the timing pulse for SPAN applications by using the TX line. The accuracy of controlling the COM control signals is better than 900 µs. The other modes are typically used to control custom peripheral devices.
|
|
Message ID: 431
Abbreviated ASCII Syntax:
COMCONTROL [port] [signal] [control]
Factory Default:
COMCONTROL COM1 TX DEFAULT
COMCONTROL COM2 TX DEFAULT
COMCONTROL COM3 TX DEFAULT
COMCONTROL COM4 TX DEFAULT
COMCONTROL COM5 TX DEFAULT
ASCII Example 1:
INTERFACEMODE COM5 NONE NONE OFF (OEM7600, OEM7700 and OEM7720 only)
SERIALCONFIG COM2 9600 N 8 1 CTS (to enable handshaking)
COMCONTROL COM2 RTS FORCELOW
ASCII Example 2:
To set a break condition on COM1:
COMCONTROL COM1 TX FORCEHIGH
A break condition remains in effect until it is cleared. To clear a break condition on COM1:
COMCONTROL COM1 TX DEFAULT
or
COMCONTROL COM1 TX FORCELOW
Field |
Field Type |
ASCII Value |
Binary Value |
Description |
Format |
Binary Bytes |
Binary Offset |
1 |
Command header |
- |
- |
COMCONTROL header This field contains the command name for abbreviated ASCII or the message header for ASCII (see page 1) or Binary (see page 1). |
- |
H |
0 |
2 |
port |
COM1 |
1 |
Serial port to control. |
Enum |
4 |
H |
COM2 |
2 |
||||||
COM3 |
3 |
||||||
COM4 |
19 |
||||||
COM5 |
31 |
||||||
3 |
signal |
RTS |
0 |
COM signal to control. The controllable COM signals are RTS and TX. |
Enum |
4 |
H+4 |
TX |
2 |
||||||
4 |
control |
Control applied to the signal |
Enum |
4 |
H+8 |
Binary |
ASCII |
Description |
---|---|---|
0 |
DEFAULT |
Disables this command and returns the COM signal to its default state |
1 |
FORCEHIGH |
Immediately forces the signal high1 |
2 |
FORCELOW |
Immediately forces the signal low2 |
3 |
TOGGLE |
Immediately toggles the current state of the signal |
4 |
TOGGLEPPS |
Toggles the state of the selected signal within 900 μs after each 1PPS event. The state change of the signal lags the 1PPS by an average value of 450 μs. The delay of each pulse varies by a uniformly random amount less than 900 μs |
5 |
PULSEPPSLOW |
Pulses the line low at a 1PPS event and to high 1 ms after it. |
6 |
PULSEPPSHIGH |
Pulses the line high for 1 ms at the time of a 1PPS event |
|
OEM719 |
OEM729 |
OEM7600 |
OEM7700 |
OEM7720 |
---|---|---|---|---|---|
COM1 TX |
DEFAULT |
DEFAULT |
DEFAULT |
DEFAULT |
DEFAULT |
COM2 TX |
N/A |
DEFAULT |
DEFAULT |
DEFAULT |
DEFAULT |
COM2 RTS |
N/A |
DEFAULT |
DEFAULT |
DEFAULT |
DEFAULT |
COM3 TX |
N/A |
DEFAULT |
DEFAULT |
DEFAULT |
DEFAULT |
COM4 TX |
N/A |
N/A |
DEFAULT |
DEFAULT |
DEFAULT |
COM5 TX |
N/A |
N/A |
DEFAULT |
DEFAULT |
DEFAULT |