Acumen SDR2-USB manual Handshaking, Voltage levels

Page 36

Serial Port Basics

SDR2-USB Configuration Guide rev 1.0

modem cable because it can connect two terminals (DTE’s) without the use of modems (DCE’s). Note that GND pins are always connected.

Most devices have female connectors (DB9 or DB25) if they are configured for DCE operation and male connectors if they are configured for DTE operation, but this is not always the case.

There is a simple trick for determining whether a device is DTE or DCE. Connect a voltmeter’s ground line to the connector’s GND pin. Then, probe the voltage on the TD and RD pins. If the TD pin voltage is small (- 3V<Vin<+3V), the device is configured to receive data on the TD pin, and thus is a DCE device. Likewise, if the RD pin voltage is small, the device is receiving data on the RD pin, and thus is DTE.

A.3.3 Handshaking

Handshaking signals by the receiving device to tell the transmitter “I am ready for data” or “I am not ready for data.” These signals are optional: the receiver may always be ready for data or may choose to simply discard data it couldn’t process.

A DTE device asserts the “request to send” (RTS) signal when it is ready to receive data and deasserts it when it cannot accept data. Likewise, a DCE device asserts “clear to send” (CTS) when it is ready to receive data. The RTS and CTS signals form a handshaking pair, and their use constitutes RTS/CTS handshaking.

The “data terminal ready” (DTR) signal, asserted by the DTE, and the “data set ready” (DSR) signal, asserted by the DCE serve similar functions and constitute DTR/DSR handshaking. A DTE or DCE devices may employ either or both forms of handshaking. Often, deasserting RTS or CTS signals “micro” events, such as a buffer that is full but will be empty soon, while deasserting DTR or DSR may signal “major” events such as that power has not been applied.

RTS/CTS handshaking and DTR/DSR handshaking are both referred to as hardware handshaking. Another form of handshaking, XON/XOFF or software handshaking, requires that the receiver send a character (Control-S, ASCII 19) to halt data transfer and another character (Control-Q, ASCII

17)to resume transfer. Although this method eliminates the need for the RTS, CTS, DTR, or DSR signals, it suffers from slow response time by the receiver and renders 2 characters of the 256-character ASCII set unusable.

A.3.4 Voltage levels

For noise immunity and long cable lengths, RS-232 devices convert TTL/CMOS-level signals (0V=logic zero, +5V or +3.3V=logic one) to higher voltage bipolar signals. For the TD and RD signal lines, RS-232 devices use a voltage between –3V and –25V to transmit a one and a voltage between +3V and +25V to transmit a zero. For the other signal lines (RTS,

34

Image 36
Contents Acumen Instruments Corporation Page Copyright Page Table of Contents Service and Support Getting Started OverviewBefore you start Quick guide to the DataBridge SDR2-USBConnecting power to your SDR2-USB Configuring your SDR2-USB via the setup fileDeploying the DataBridge SDR2-USB Creating setup.txt CongratulationsConfiguring DataBridge SDR2-USBSetting date and time CommentsConfiguring the data port Setting date and timeSpecifying a filename and folder Configuring file creation behavior Adding time stamps to recorded filesTesting your configuration Setup file reading Record mode operationOperations Receiving dataPower failure and improper shutdowns Stopping recordingDevice removal while recording Filename generationFormatting the storage media PartitionsLithium battery maintenance Resetting to factory defaultsSetup File Reference Initial Setup CommandsData Port Setup Commands Recording Behavior CommandsScheduled File Closing Commands Time Stamping CommandsOther Commands J4 Remote Control Port LocationFunctions Pinout and Mating CableForce-Record Shunt Installation Page Service Support Exception CodesService and Support SDR2-USB Configuration Guide rev Contacting Acumen Instruments Corporation Returning EquipmentWarranty One year warrantyExclusions LimitationsSerial specifications Serial Port BasicsData rates More asynchronous serial parameters Data rates and the UartDTE and DCE Handshaking Voltage levelsSDR2-USB Configuration Guide rev Page Specifications Electrical specifications5 J7 rear power receptacle pin configuration Mechanical Specifications 6 J1 power receptacle pin configurationSerial communications USB socketSpecifications SDR2-USB Configuration Guide rev