Handshaking

Sets and returns the hardware handshaking protocol.

Syntax

object.Handshaking [ = value ]

The parts of the Handshaking property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
value An integer expression specifying the handshaking protocol, as described in Settings.

Settings

The settings for value are described in the following table.

Value Description
0 (Default) No handshaking.
1 XON/XOFF handshaking.
2 RTS/CTS (Request To Send/Clear To Send) handshaking.
3 Both Request To Send and XON/XOFF handshaking.

Remarks

Handshaking refers to the internal communications protocol by which data is transferred from the hardware port to the receive buffer. When a character of data arrives at the serial port, the communications device has to move it into the receive buffer so that your program can read it. If there is no receive buffer and your program is expected to read every character directly from the hardware, you will probably lose data because the characters can arrive very quickly.

A handshaking protocol insures data is not lost due to a buffer overrun, where data arrives at the port too quickly for the communications device to move the data into the receive buffer.

Data Type

Integer