102 DG14 and DG16 Board & Sensor Reference Manual
CTS: Handshaking Protocol
$PASHS,CTS,c1,s1
This command enables or disables the CTS/RTS (Clear To Send/Request To Send)
handshaking protocol on one or all of the DG16’s serial ports. The c1 parameter is
the optional port designator (A, B, or C); s1 is ON or OFF.
If a port is not designated, the command applies the change to the port from which
the command was sent. Handshaking is enabled on both ports by default.
Handshaking requires five connections for each serial port (
CTS, TXD, GND, RTS,
RXD). When handshaking is disabled, only three connections are required (TXD,
GND, RXD). See Figure 1.3 on page 10 for a diagram of the J301 pin configuration.
Example
Enter the following command to disable handshaking on port A:
$PASHS,CTS,A,OFF
$PASHQ,CTS,[c1]
This command queries the current CTS setting, where c1 is the optional port
designator for the output of the response. If a port is not specified, the receiver
sends the response to the current port.
$PASHR,CTS
The response message is output in the format:
$PASHR,CTS,c1,s1*hh
Table 6.10 outlines the parameters.
Typical CTS response:
$PASHR,CTS,A,ON*70
Table 6.10. $PASHR,CTS Format
Parameter Description Range
c1 Port identifier A, B, C
s1 Current CTS setting ON, OFF
hh Checksum 2-character hex