SoftControl

Protocols & device control

Serial Port Flow Control: Diagnose RTS, CTS and XON/XOFF

Find why a serial port opens but sends no useful command by checking handshake requirements, adapter wiring and binary-data handling.

SoftControl Editorial TeamPublished Updated

Serial flow control must match both the device configuration and the cable. A port can open successfully while transmission waits indefinitely for a handshake signal that is not connected. Verify whether the equipment expects no flow control, hardware handshaking or software handshaking before changing command content.

Flow control is separate from baud rate, parity and framing. Two tools can use the same visible serial settings and still behave differently because their handshake defaults differ.

Read the handshake requirements explicitly

Microsoft's DCB documentation exposes separate controls for CTS and DSR output flow, RTS and DTR behavior, and software XON/XOFF handling. Those distinct settings explain why a single dropdown labelled Hardware can hide important differences between serial utilities.

Observed symptomFlow-control questionSafe diagnostic next step
Port opens, no bytes leaveIs output waiting for CTS or DSR?Compare configured mode with pin wiring
Short replies work, longer ones failCan the receiver pause the sender?Inspect documented buffering and handshake
Binary payload changes behaviorAre control bytes interpreted as XON/XOFF?Check software-flow setting
Adapter reconnect changes resultsDid defaults change?Read back effective settings

Use the equipment manual to select the intended mode. Do not short handshake pins as a routine workaround without understanding the interface requirements.

Match the cable to the configured mode

A three-wire connection may carry transmit, receive and signal reference, but it does not carry every possible hardware handshake signal. If a sender waits for a line that is absent, correct command text cannot solve the problem.

Check direction from each device's point of view. Connector gender and a cable labelled serial do not establish the signal assignment. Record the adapter model, pin mapping and whether the equipment expects modem-style control lines.

An RS-485 adapter adds a different issue: transmit-direction control. Analog Devices' RS-485 discussion describes driver and receiver enabling in that physical interface. Do not confuse automatic direction control on a half-duplex bus with RTS/CTS flow control to an RS-232 peripheral.

Compare a working tool with the production application

Capture every effective parameter from the working setup, including flow control and DTR/RTS state. Close the working terminal before opening the production application, since the same port may not be shareable.

Start with a short read-only transaction. If it works, test the longest expected response and a realistic series of commands within the vendor's pacing requirements. A configuration that only passes a one-line test may still overrun a small device buffer.

For software flow control, confirm that the protocol permits it. Binary payloads can contain byte values that have special meaning to the serial driver. An application should not silently transform or consume those bytes when the device expects transparent binary transport.

Validate recovery as well as normal sending

Unplug and reconnect the adapter in a controlled test. Verify that the final application restores its intended settings and finds the correct device rather than relying on a transient COM number. Also restart the attached equipment and check whether it needs a documented startup interval or control-line transition.

A passing record includes effective port settings, wiring, read-only response and repeated-operation results. It should identify which defaults were deliberately changed so the next technician can reproduce the setup.

Retain an adapter-specific setup note rather than only a baud-rate screenshot. Include driver version, effective handshake settings and a labelled cable diagram. If a spare adapter comes from another manufacturer, repeat handshake and reconnect tests before approval. Matching the COM number and baud rate alone does not recreate the original electrical behavior. Keep the tested spare with its own identification so staff can distinguish a validated replacement from an untested visually similar device.

For cable and serial fundamentals, use the serial communication guide. Confirm product-specific access to handshake settings with SoftControl partners before promising a particular adapter and device combination.

Source documents

Use the source applicable to your model, firmware and operating-system edition. Read our editorial method.

Continue with a related guide