国资委主任是什么级别| 七月八号是什么日子| 谷氨酰胺是什么| 结肠炎不能吃什么食物| 7月12日什么星座| 脸上长痣是什么原因造成的| 心衰挂什么科| 占有欲什么意思| 孤辰是什么意思| 嘴巴疱疹用什么药膏| 洗面奶是什么意思| 骨转移用什么药| 肿瘤是什么样子的| 紫外线过敏是什么症状| 或字多两撇是什么字| 不声不响是什么意思| ct腹部平扫能检查什么| 9月13日是什么日子| 三尖瓣关闭不全是什么意思| 女性检查生育挂什么科| 高筋面粉适合做什么| 耵聍栓塞是什么意思| 8月26是什么星座| 眩晕停又叫什么| 集体户口和个人户口有什么区别| 瘿病是什么病| 桂花什么颜色| 孕妇什么时候开始补钙| 隐士是什么意思| 归脾丸和健脾丸有什么区别| polo villae是什么档次| 什么食物黄体酮含量高| 夏天适合种什么菜| 肩周炎看什么科| 普洱茶有什么功效与作用| 梦见被熊追是什么意思| pv是什么材质| 拔完罐需要注意什么| 榴莲壳有什么用| 血压高吃什么水果| power是什么牌子| 温暖的近义词是什么| 跳绳有什么好处| 不耐受和过敏有什么区别| 鬼节为什么不能出去| 青是什么颜色| 医生为什么用肥皂洗手| 手足口用什么药| 无厘头是什么意思| 肾疼是因为什么| 流产用什么药最快| 9个月宝宝玩什么玩具| 是什么就是什么| 痣长在什么地方不好| 货号是什么| 下面有异味是什么原因| 三月五号是什么星座| 海椒是什么辣椒| 建执位是什么意思| 奔现是什么意思| 锅包肉是什么肉| 小沈阳名字叫什么| 五行属土缺命里缺什么| 四级军士长是什么级别| 带手串有什么讲究| 软开是什么| 飞蛾吃什么| 怀孕十天左右有什么反应| 阿玛尼算什么档次| 眼睛为什么会长麦粒肿| 黉门是什么意思| 龙眼是什么季节的水果| 什么颜色衣服显皮肤白| 吃维生素b1有什么好处和副作用| 今年是农历的什么年| 大便失禁吃什么药| o型血生的孩子是什么血型| 小满是什么季节| 属羊的守护神是什么菩萨| 什么叫特应性皮炎| 喝水都会胖是什么原因| 轻度脑萎缩是什么意思| 月经推迟半个月是什么原因| 空腹胰岛素高是什么原因| bw是什么意思| 孩子咬指甲什么原因| 肚子疼呕吐是什么原因| 手麻脚麻是什么病| qt是什么| 拿铁咖啡什么意思| 乳腺回声不均匀是什么意思| 什么病不能吃豆制品| 为什么十五的月亮十六圆| 一步两步三步四步望着天是什么歌| 文科生选什么专业| 置之不理的置是什么意思| 保税仓是什么意思| 霸天虎和威震天是什么关系| 易岗易薪是什么意思| 小孩头疼吃什么药| 纯洁是什么意思| 达摩是什么意思| 什么血型好| 两肺纹理增多是什么意思| epd是什么意思| 弥勒佛为什么是未来佛| 最里面的牙齿叫什么| 慢性非萎缩性胃炎伴糜烂是什么意思| 甲状腺做什么检查最准确| 什么样的阳光填形容词| 慢性心肌炎有什么症状| 脍炙人口什么意思| 五楼五行属什么| egc是什么意思| 外阴长什么样| 示字旁与什么有关| 疝气吃什么药效果好| 刘邦是什么星座| 33周岁属什么生肖| jz是什么意思| 好记性不如烂笔头是什么意思| 一个金字旁一个川读什么| 坐月子什么不能吃| 尿胆红素阳性什么意思| 血管瘤是什么样子的图| 两眼中间的位置叫什么| max是什么意思| 姑奶奶是什么意思| mickey是什么牌子| 陈皮起什么作用| pb是什么元素| 痛经挂什么科| 化疗为什么掉头发| 风暴是什么意思| 人为什么会打呼噜| 来月经可以吃什么水果| 57是什么意思| 手足口病疫苗什么时候打| 做肠镜检查需要提前做什么准备| 下颌关节紊乱挂什么科| 矫正牙齿挂什么科| 口腔溃疡什么原因| 头疼是什么原因| 什么声什么气| 梦见和别人结婚是什么意思| 马蹄什么季节上市| 咳嗽什么原因引起的| 疳积是什么病| 人黄是什么原因| 肤色不均匀是什么原因| 尿液粉红色是什么原因| 压疮用什么药最快能好| 财位在什么方位| 肝脏不好吃什么调理| 有恃无恐什么意思啊| 举措是什么意思| 口腔溃疡是什么原因造成的| 眼皮肿挂什么科| 颌下淋巴结肿大挂什么科| 冒犯是什么意思| 二次元谷子是什么意思| 陕西为什么叫三秦大地| 梦见自己洗澡是什么意思| april什么意思| 肝火胃火旺盛吃什么药| 吃醪糟有什么好处| 备孕要检查什么项目| 举重若轻什么意思| 人的本质属性是什么| 拉红色的屎是什么原因| 血管炎吃什么药| 子痫是什么病| 什么是理科什么是文科| 小孩抽动症是什么引起的| 婊子代表什么生肖| 投放是什么意思| 377是什么| 曹字五行属什么| 盆腔炎做什么检查| 夏天怕热冬天怕冷是什么体质| 见色起意是什么意思| 玉五行属性是什么| 上面白下面本念什么| 不等闲是什么意思| suki是什么意思| 蠼螋对人有什么危害| 胃出血大便是什么颜色| 大姨妈喝什么汤好| aids是什么病的简称| 说辞是什么意思| tga是什么意思| 产妇能吃什么水果| 为什么要小心吉普赛人| 前是什么偏旁| fe是什么元素| 殿试是什么意思| 肠阻塞有什么症状| 冰枕对人有什么危害吗| 肠炎吃什么药最好| 吃什么肉不会胖又减肥| 颜值爆表是什么意思| 尿酸高会得什么病| 端午节喝什么酒| 同型半胱氨酸偏高吃什么药| 拉肚子吃什么药最好| 利而不害为而不争是什么意思| 什么是uv| 润月是什么意思| 为什么来月经会拉肚子| 吃什么补血小板效果最好| 10月30是什么星座| 毛尖属于什么茶| 槟榔什么味道| min代表什么意思| 梦见狼狗是什么预兆| 备孕做什么检查| 交链孢霉过敏是什么| 处级是什么级别| 核子是什么| 桢字五行属什么| 气管憩室是什么意思| 节食是什么意思| 同舟共济什么意思| 考科二紧张心慌有什么方法缓解| 粉瘤是什么| 7点到9点是什么时辰| loa是什么意思| 有炎症吃什么药| 牙齿脱矿是什么意思| 三阳开泰是什么意思| 梦见女人是什么意思| 空调自动关机什么原因| 秦始皇原名叫什么名字| 谜底是什么意思| 月经周期变短是什么原因| 唯字五行属什么| 学兽医需要什么学历| 职业资格证书有什么用| 雪村和赵英俊什么关系| 爱字五行属什么| 93年的属什么| 什么食物对眼睛视力好| 七月18日是什么星座| 膜性肾病什么意思| 蛋白粉和胶原蛋白粉有什么区别| 冬瓜烧什么好吃| 被蟑螂咬了擦什么药| 无期徒刑是什么意思| 甲亢是什么原因造成的| 胃疼肚子疼是什么原因| 粒细胞是什么| 怀疑甲亢需要做什么检查| 糖化血红蛋白是什么意思| 伊玛目是什么意思| 迎春花什么时候开花| 头孢主要治什么病| o2o是什么意思| 颈动脉有斑块吃什么药| 肝风内动吃什么中成药| 范仲淹是什么朝代的| 四联用药是些什么药| 胃疼吃什么食物对胃好| 猫是什么生肖| 忘川是什么意思| 百度Jump to content

马英九属什么

From Wikipedia, the free encyclopedia
(Redirected from RS-232C)
EIA-232 Standard
Interconnection of Data Terminal Equipment with a Communications Channel
StatusActive
Year started1960 (65 years ago) (1960)
First published1 May 1960 (65 years ago) (2025-08-14)
Latest versionTIA-232-F
1 October 1997 (27 years ago) (2025-08-14)
OrganizationElectronic Industries Association
SeriesEIA Recommended Standards
Related standardsTIA/EIA-422
ITU-T/CCITT V.24
ITU-T/CCITT V.28
SuccessorTIA/EIA-422
DomainTelecommunications, Computing, Electronics
RS-232 protocol
Governing bodyElectronic Industries Association
StandardEIA-232
Protocol information
Network topologyPoint-to-point, unidirectional multidrop bus
Maximum speed20 kbit/s
Mode of operationSerial
Voltage3 to 15 Vpp (maximum voltage for each line)
Mark(1)Positive voltage
Space(0)Negative voltage
Available signalsDTR, DCD, DSR, RI, RTS, RTR, CTS, TxD, RxD, GND, PG
Connector typesDB-25 connector
A DB-25 connector as described in the RS-232 standard
百度 市卫计委要求,各级医疗机构医师在进行临床诊断时,要按照医学检验检查结果互认有关要求,避免重复检查。

In telecommunications, RS-232 or Recommended Standard 232[1] is a standard introduced in 1960[2] for serial communication transmission of data. It formally defines signals connecting between a DTE (data terminal equipment) such as a computer terminal or PC, and a DCE (data circuit-terminating equipment or data communication equipment), such as a modem. The standard defines the electrical characteristics and timing of signals, the meaning of signals, and the physical size and pinout of connectors. The current version of the standard is TIA-232-F Interface Between Data Terminal Equipment and Data Circuit-Terminating Equipment Employing Serial Binary Data Interchange, issued in 1997.

The RS-232 standard had been commonly used with serial ports and serial cables. It is still widely used in industrial communication devices.

A serial port complying with the RS-232 standard was once a standard feature of many types of computers. Personal computers used them for connections not only to modems, but also to printers, computer mice, data storage, uninterruptible power supplies, and other peripheral devices.

Compared with later interfaces such as RS-422, RS-485 and Ethernet, RS-232 has lower transmission speed, shorter maximum cable length, larger voltage swing, larger standard connectors, no multipoint capability and limited multidrop capability. In modern personal computers, USB has displaced RS-232 from most of its peripheral interface roles. Thanks to their simplicity and past ubiquity, however, RS-232 interfaces are still used—particularly in industrial CNC machines, networking equipment and scientific instruments where a short-range, point-to-point, low-speed wired data connection is fully adequate.[3]

Scope of the standard

[edit]

The Electronic Industries Association (EIA) standard RS-232-C[4] as of 1969 defines:

  • Electrical signal characteristics such as logic levels, baud rate, timing, and slew rate of signals, voltage withstand level, short-circuit behavior, and maximum load capacitance.
  • Interface mechanical characteristics, pluggable connectors and pin identification.
  • Functions of each circuit in the interface connector.
  • Standard subsets of interface circuits for selected telecom applications.

The standard does not define such elements as the character encoding (i.e. ASCII, EBCDIC, or others), the framing of characters (start or stop bits, etc.), transmission order of bits, or error detection protocols. The character format and transmission bit rate are set by the serial port hardware, typically a UART, which may also contain circuits to convert the internal logic levels to RS-232 compatible signal levels. The standard does not define bit rates for transmission, except that it says it is intended for bit rates lower than 20,000 bits per second.

History

[edit]

RS-232 was first introduced in 1960[2] by the Electronic Industries Association (EIA) as a Recommended Standard.[5][1] The original DTEs were electromechanical teletypewriters, and the original DCEs were (usually) modems. When electronic terminals (smart and dumb) began to be used, they were often designed to be interchangeable with teletypewriters, and so supported RS-232.

Revisions A through C

[edit]

Throughout the 1960s, the 232 Standard underwent a few iterations following the major innovations in computer and networking technology.

In October 1963, the EIA published its first revision, EIA RS-232-A. This revision introduced iterative improvements including different connector types and different voltage ranges.[2]

In October 1965, the EIA published EIA RS-232-B. This revision increased the capacitance specifications to allow longer cable lengths and increase signal timing. It also dropped the voltage from 25 Vpp to 15 Vpp.[2]

In August of 1969, the EIA published EIA RS-232-C: Interface Between Data Terminal Equipment and Data Communication Equipment Employing Serial Binary Data Interchange. This revision dropped the voltage down to 12 Vpp and introduced the use of Data Communication Equipment (DCE) modems with the standard.

RS-232 Modernization and Revision D

[edit]

As technology progressed, the RS-232 standard was starting to become obsolete.

In 1975, modifications to the RS-232 standard resulted in the creation of its supposed successor, the EIA RS-422 standard. However, as the RS-422 standard was being developed, the RS-232 standard was gaining popularity for use in computing, so the standard was updated to accommodate legacy systems and its continued usage.

In 1981, the EIA dropped the Recommended Standard (RS) nomenclature for all of their published standards and republished the 232 standard as EIA-232-C.

In 1986, the EIA published ANSI/EIA-232-D. The revision included major changes including incorporating the DB-25 connector as part of the standard (it was only referenced in the appendix of RS-232-C), and setting the circuit capacitance limit to 2.5 nF.

Telecommunications Industry Association and Revision E

[edit]

In 1988, the Telecommunications Industry Association (TIA) was founded, as part of a merger of several organizations under the EIA.[6]

In 1991, the TIA and the EIA, together, released ANSI/EIA/TIA-232-E-1991: Interface Between Data Terminal Equipment and Data Communications Equipment Employing Serial Binary Data Interchange, adding the smaller standard D-shell 26-pin "Alt A" connector, and made other changes to improve compatibility with ITU-T/CCITT V.24 [de] (circuit identification), ITU-T/CCITT V.28 [de] (signal voltage and timing characteristics) and ISO 2110.[7]

EIA Name Change and Revision F

[edit]

In 1997, the Electronic Industries Association reorganized under the Electronics Industries Alliance, with the Telecommunications Industry Association serving as its subsidiary. That October, the TIA published TIA ANSI/TIA/EIA-232-F: Interface between Data Terminal Equipment and Data Circuit-Terminating Equipment Employing Serial Binary Data Interchange.

In 2002, the EIA delegated the standard entirely to the TIA, and Revision F was republished under TIA ANSI/TIA-232-F (R 2002), by the TR-30 Multi-Media Access, Protocols and Interfaces committee.

Post EIA Dissolution

[edit]

Following the dissolution of the Electronic Industries Alliance, the TIA reaffirmed the standard as TIA TIA-232-F (R 2012) in 2012 with no official changes or revisions. No official changes have been made to the standard since.

Limitations of the standard

[edit]

Because RS-232 is used beyond the original purpose of interconnecting a terminal with a modem, successor standards have been developed to address the limitations. Issues with the RS-232 standard include:[8]

  • The large voltage swings and requirement for positive and negative supplies increases power consumption of the interface and complicates power supply design. The voltage swing requirement also limits the upper speed of a compatible interface.
  • Single-ended signaling referred to a common signal ground limits the noise immunity and transmission distance.
  • Multi-drop connection among more than two devices is not defined. While multi-drop "work-arounds" have been devised, they have limitations in speed and compatibility.
  • The standard does not address the possibility of connecting a DTE directly to a DTE, or a DCE to a DCE. Null modem cables can be used to achieve these connections, but these are not defined by the standard, and some such cables use different connections than others.
  • The definitions of the two ends of the link are asymmetric. This makes the assignment of the role of a newly developed device problematic; the designer must decide on either a DTE-like or DCE-like interface and which connector pin assignments to use.
  • The handshaking and control lines of the interface are intended for the setup and teardown of a dial-up communication circuit; in particular, the use of handshake lines for flow control is not reliably implemented in many devices.
  • No method is specified for sending power to a device. While a small amount of current can be extracted from the DTR and RTS lines, this is only suitable for low-power devices such as mice.

Because the standard did not foresee the requirements of devices such as computers, printers, test instruments, POS terminals, and so on, designers implementing an RS-232 compatible interface on their equipment often interpreted the standard idiosyncratically. The resulting common problems were non-standard pin assignment of circuits on connectors, and incorrect or missing control signals. The lack of adherence to the standards produced a thriving industry of breakout boxes, patch boxes, test equipment, books, and other aids for the connection of disparate equipment. A common deviation from the standard was to drive the signals at a reduced voltage. Some manufacturers therefore built transmitters that supplied +5 V and ?5 V and labeled them as "RS-232 compatible".[citation needed]

Role in modern personal computers

[edit]
PCI Express x1 card with one RS-232 port on a nine-pin connector

In the book PC 97 Hardware Design Guide,[9] Microsoft deprecated support for the RS-232 compatible serial port of the original IBM PC design. Today, RS-232 has mostly been replaced in personal computers by USB for local communications. Advantages compared to RS-232 are that USB is faster, uses lower voltages, and has connectors that are simpler to connect and use. Disadvantages of USB compared to RS-232 are that USB is far less immune to electromagnetic interference (EMI) and that maximum cable length defined by standards is much shorter (15 meters for RS-232 versus 3–5 meters for USB, depending on the USB version and use of active cables). RS-232 cable lengths of 2000 meters are possible with appropriate line drivers.[10][11]

In fields such as laboratory automation or surveying, RS-232 devices continue to be used. Some types of programmable logic controllers, variable-frequency drives, servo drives, and computerized numerical control equipment are programmable via RS-232. Computer manufacturers have responded to this demand by re-introducing the DE-9M connector on their computers or by making adapters available.

RS-232 ports are also commonly used to communicate to headless systems such as servers, where no monitor or keyboard is installed, during boot when an operating system is not yet running and therefore no network connection is possible. A computer with an RS-232 serial port can communicate with the serial port of an embedded system (such as a router) as an alternative to monitoring over Ethernet.

Personal computers (and other devices) also made use of the standard so that they could connect to existing equipment. For many years, an RS-232-compatible port was a standard feature for serial communications, such as modem connections, on many computers (with the computer acting as the DTE). It remained in widespread use into the late 1990s. In personal computer peripherals, it has largely been supplanted by other interface standards, such as USB. RS-232 is still used to connect older designs of peripherals, industrial equipment (such as PLCs), console ports, and special purpose equipment.

Physical interface

[edit]

In RS-232, user data is sent as a time-series of bits. Both synchronous and asynchronous transmissions are supported by the standard. In addition to the data circuits, the standard defines a number of control circuits used to manage the connection between the DTE and DCE. Each data or control circuit only operates in one direction, that is, signaling from a DTE to the attached DCE or the reverse. Because transmit data and receive data are separate circuits, the interface can operate in a full duplex manner, supporting concurrent data flow in both directions. The standard does not define character framing within the data stream or character encoding.

Voltage levels

[edit]
Diagrammatic oscilloscope trace of voltage levels for an ASCII "K" character (4Bh = 01001011b) with 1 start bit, 8 data bits (least significant bit first), 1 stop bit. This is typical for start-stop communications, but the standard does not dictate a character format or bit order.
RS-232 data line on the terminals of the receiver side (RxD) probed by an oscilloscope (for an ASCII "K" character (4Bh = 01001011b) with 1 start bit, 8 data bits, 1 stop bit, and no parity bits)

The RS-232 standard defines the voltage levels that correspond to logical one and logical zero levels for the data transmission and the control signal lines. Valid signals are either in the range of +3 to +15 volts or the range ?3 to ?15 volts with respect to the "Common Ground" (GND) pin; consequently, the range between ?3 and +3 volts is not a valid RS-232 level. For data transmission lines (TxD, RxD, and their secondary channel equivalents), logic one is represented as a negative voltage and the signal condition is called "mark". Logic zero is signaled with a positive voltage and the signal condition is termed "space". Control signals have the opposite polarity: the asserted or active state is positive voltage and the de-asserted or inactive state is negative voltage. Examples of control lines include request to send (RTS), clear to send (CTS), data terminal ready (DTR), and data set ready (DSR).

RS-232 logic and voltage levels
Data circuits Control circuits Voltage
0 (space) Asserted +3 to +15 V
1 (mark) Deasserted ?15 to ?3 V

The standard specifies a maximum open-circuit voltage of 25 volts: signal levels of ±5 V, ±10 V, ±12 V, and ±15 V are all commonly seen depending on the voltages available to the line driver circuit. Many RS-232 driver chips have inbuilt charge pump circuitry to produce the required voltages from a 3 or 5 volt supply. RS-232 drivers and receivers must be able to withstand indefinite short circuits to the ground or to any voltage level up to ±25 volts. The slew rate, or how fast the signal changes between levels, is also controlled.

Because the voltage levels are higher than logic levels typically used by integrated circuits, special intervening driver circuits are required to translate logic levels. These also protect the device's internal circuitry from short circuits or transients that may appear on the RS-232 interface, and provide sufficient current to comply with the slew rate requirements for data transmission.

Because both ends of the RS-232 circuit depend on the ground pin being zero volts, problems will occur when connecting machinery and computers where the voltage between the ground pin on one end, and the ground pin on the other is not zero. This may also cause a hazardous ground loop. Use of a common ground limits RS-232 to applications with relatively short cables. If the two devices are far enough apart or on separate power systems, the local ground connections at either end of the cable will have differing voltages; this difference will reduce the noise margin of the signals. Balanced, differential serial connections such as RS-422 or RS-485 can tolerate larger ground voltage differences because of the differential signaling.[12]

Unused interface signals terminated to the ground will have an undefined logic state. Where it is necessary to permanently set a control signal to a defined state, it must be connected to a voltage source that asserts the logic 1 or logic 0 levels, for example with a pull-up resistor. Some devices provide test voltages on their interface connectors for this purpose.

Connectors

[edit]

RS-232 devices may be classified as Data Terminal Equipment (DTE) or Data Circuit-terminating Equipment (DCE); this defines at each device which wires will be sending and receiving each signal. According to the standard, male connectors have DTE pin functions, and female connectors have DCE pin functions. Other devices may have any combination of connector gender and pin definitions. Many terminals were manufactured with female connectors but were sold with a cable with male connectors at each end; the terminal with its cable satisfied the recommendations in the standard.

The standard recommends the D-subminiature 25-pin connector up to revision C, and makes it mandatory as of revision D. Most devices only implement a few of the twenty signals specified in the standard, so connectors and cables with fewer pins are sufficient for most connections, more compact, and less expensive. Personal computer manufacturers replaced the DB-25M connector with the smaller DE-9M connector. This connector, with a different pinout (see Serial port pinouts), is prevalent for personal computers and associated devices.

Presence of a 25-pin D-sub connector does not necessarily indicate an RS-232-C compliant interface. For example, on the original IBM PC, a male D-sub was an RS-232-C DTE port (with a non-standard current loop interface on reserved pins), but the female D-sub connector on the same PC model was used for the parallel "Centronics" printer port. Some personal computers put non-standard voltages or signals on some pins of their serial ports.

Cables

[edit]

The standard does not define a maximum cable length, but instead defines the maximum capacitance that a compliant drive circuit must tolerate. A widely used rule of thumb indicates that cables more than 15 m (50 ft) long will have too much capacitance, unless special cables are used. By using low-capacitance cables, communication can be maintained over larger distances up to about 300 m (1,000 ft).[13] For longer distances, other signal standards, such as RS-422, are better suited for higher speeds.

Since the standard definitions are not always correctly applied, it is often necessary to consult documentation, test connections with a breakout box, or use trial and error to find a cable that works when interconnecting two devices. Connecting a fully standard-compliant DCE device and DTE device would use a cable that connects identical pin numbers in each connector (a so-called "straight cable"). "Gender changers" are available to solve gender mismatches between cables and connectors. Connecting devices with different types of connectors requires a cable that connects the corresponding pins according to the table below. Cables with 9 pins on one end and 25 on the other are common. Manufacturers of equipment with 8P8C connectors usually provide a cable with either a DB-25 or DE-9 connector (or sometimes interchangeable connectors so they can work with multiple devices). Poor-quality cables can cause false signals by crosstalk between data and control lines (such as Ring Indicator).

If a given cable will not allow a data connection, especially if a gender changer is in use, a null modem cable may be necessary. Gender changers and null modem cables are not mentioned in the standard, so there is no officially sanctioned design for them.

Data and control signals

[edit]
Male pinout of a 25-pin serial port (D-subminiature, DB-25) commonly found on 1980s computers

The following table lists commonly used RS-232 signals (called "circuits" in the specifications) and their pin assignments on the recommended DB-25 connectors[14] (see Serial port pinouts for other commonly used connectors not defined by the standard).

Circuit Direction DB-25 pin
Name Typical purpose Abbreviation DTE DCE
Data Terminal Ready DTE is ready to receive, initiate, or continue a call. DTR Out In 20
Data Carrier Detect DCE is receiving a carrier from a remote DCE. DCD In Out 8
Data Set Ready DCE is ready to receive and send data. DSR In Out 6
Ring Indicator DCE has detected an incoming ring signal on the telephone line. RI In Out 22
Request To Send DTE requests the DCE prepare to transmit data. RTS Out In 4
Ready To Receive DTE is ready to receive data from DCE. If in use, RTS is assumed to be always asserted. RTR Out In 4
Clear To Send DCE is ready to accept data from the DTE. CTS In Out 5
Transmitted Data Carries data from DTE to DCE. TxD Out In 2
Received Data Carries data from DCE to DTE. RxD In Out 3
Common Ground Zero voltage reference for all of the above. GND Common 7
Protective Ground Connected to chassis ground. PG Common 1

The signals are named from the standpoint of the DTE. The ground pin is a common return for the other connections, and establishes the "zero" voltage to which voltages on the other pins are referenced. The DB-25 connector includes a second "protective ground" on pin 1; this is connected internally to equipment frame ground, and should not be connected in the cable or connector to signal ground.

Ring Indicator

[edit]
USRobotics Courier external modem had a DB-25 connector that used the Ring Indicator signal to notify the host computer when the connected telephone line was ringing

Ring Indicator (RI) is a signal sent from the DCE to the DTE device. It indicates to the terminal device that the phone line is ringing. In many computer serial ports, a hardware interrupt is generated when the RI signal changes state. Having support for this hardware interrupt means that a program or operating system can be informed of a change in state of the RI pin, without requiring the software to constantly "poll" the state of the pin. RI does not correspond to another signal that carries similar information the opposite way.

On an external modem the status of the Ring Indicator pin is often coupled to the "AA" (auto answer) light, which flashes if the RI signal has detected a ring. The asserted RI signal follows the ringing pattern closely, which can permit software to detect distinctive ring patterns.

The Ring Indicator signal is used by some older uninterruptible power supplies (UPSs) to signal a power failure state to the computer.

Certain personal computers can be configured for wake-on-ring, allowing a computer that is suspended to answer a phone call.

RTS, CTS, and RTR

[edit]

The Request to Send (RTS) and Clear to Send (CTS) signals were originally defined for use with half-duplex (one direction at a time) modems such as the Bell 202. These modems disable their transmitters when not required and must transmit a synchronization preamble to the receiver when they are re-enabled. The DTE asserts RTS to indicate a desire to transmit to the DCE, and in response the DCE asserts CTS to grant permission, once synchronization with the DCE at the far end is achieved. Such modems are no longer in common use. There is no corresponding signal that the DTE could use to temporarily halt incoming data from the DCE. Thus RS-232's use of the RTS and CTS signals, per the older versions of the standard, is asymmetric.

This scheme is also employed in present-day RS-232 to RS-485 converters. RS-485 is a multiple-access bus on which only one device can transmit at a time, a concept that is not provided for in RS-232. The RS-232 device asserts RTS to tell the converter to take control of the RS-485 bus so that the converter, and thus the RS-232 device, can send data onto the bus.

Modern communications environments use full-duplex (both directions simultaneously) modems. In that environment, DTEs have no reason to deassert RTS. However, due to the possibility of changing line quality, delays in processing of data, etc., there is a need for symmetric, bidirectional flow control.

A symmetric alternative providing flow control in both directions was developed and marketed in the late 1980s by various equipment manufacturers. It redefined the RTS signal to mean that the DTE is ready to receive data from the DCE. This scheme was eventually codified in version RS-232-E (actually TIA-232-E by that time) by defining a new signal, "RTR (Ready to Receive)", which is CCITT V.24 circuit 133. TIA-232-E and the corresponding international standards were updated to show that circuit 133, when implemented, shares the same pin as RTS (Request to Send), and that when 133 is in use, RTS is assumed by the DCE to be asserted at all times.[15]

In this scheme, commonly called "RTS/CTS flow control" or "RTS/CTS handshaking" (though the technically correct name would be "RTR/CTS"), the DTE asserts RTS whenever it is ready to receive data from the DCE, and the DCE asserts CTS whenever it is ready to receive data from the DTE. Unlike the original use of RTS and CTS with half-duplex modems, these two signals operate independently from one another. This is an example of hardware flow control. However, "hardware flow control" in the description of the options available on an RS-232-equipped device does not always mean RTS/CTS handshaking.

Equipment using this protocol must be prepared to buffer some extra data, since the remote system may have begun transmitting just before the local system de-asserts RTR.

3-wire and 5-wire RS-232

[edit]

A minimal "3-wire" RS-232 connection consisting only of transmit data, receive data, and ground, is commonly used when the full facilities of RS-232 are not required. Even a two-wire connection (data and ground) can be used if the data flow is one way (for example, a digital postal scale that periodically sends a weight reading, or a GPS receiver that periodically sends position, if no configuration via RS-232 is necessary). When only hardware flow control is required in addition to two-way data, the RTS and CTS lines are added in a 5-wire version.

Seldom-used features

[edit]

The EIA-232 standard specifies connections for several features that are not used in most implementations. Their use requires 25-pin connectors and cables.

Signal rate selection

[edit]

The DTE or DCE can specify use of a "high" or "low" signaling rate. The rates, as well as which device will select the rate, must be configured in both the DTE and DCE. The prearranged device selects the high rate by setting the Data Signal Rate Selector (DSRS, pin 23) signal to ON. Sometimes called Data Rate Select (DRS), this signal should not be confused with the more commonly used Data Set Ready (DSR, pin 6).

Loopback testing

[edit]

Many DCE devices have a loopback capability used for testing. When enabled, signals are echoed back to the sender rather than being sent on to the receiver. If supported, the DTE can signal the local DCE (the one it is connected to) to enter loopback mode by setting Local Loop (LL, pin 18) to ON, or the remote DCE (the one the local DCE is connected to) to enter loopback mode by setting Remote Loop (RL, pin 21) to ON. The latter tests the communications link, as well as both DCEs. When the DCE is in test mode, it signals the DTE by setting Test Indicator (TI, pin 25) to ON.

A commonly used version of loopback testing does not involve any special capability of either end. A hardware loopback is simply a wire connecting complementary pins together in the same connector (see loopback).

Loopback testing is often performed with a specialized DTE called a bit error rate tester (or BERT).

Timing signals

[edit]

Some synchronous devices provide a clock signal to synchronize data transmission, especially at higher data rates. Two timing signals are provided by the DCE. Pin 15 is the transmitter clock (TCK), or send timing (ST); the DTE puts the next bit on the transmit data line (pin 2) when this clock transitions from OFF to ON (so it is stable during the ON to OFF transition when the DCE registers the bit). Pin 17 is the receiver clock (RCK), or receive timing (RT); the DTE reads the next bit from the receive data line (pin 3) when this clock transitions from ON to OFF.

Alternatively, the DTE can provide a clock signal, called transmitter timing (TT, pin 24) for transmitted data. Data is changed when the clock transitions from OFF to ON, and read during the ON to OFF transition. TT can be used to overcome the problem of propagation delay in a long cable. ST must traverse a cable of unknown length and delay, clock a bit out of the DTE after another unknown delay, and return it to the DCE over the same unknown cable delay. When sending data at high speed, the data bit may not arrive in time for the ON to OFF transition of ST.

Since the relation between the transmitted bit and TT can be fixed in the DTE design, and since both signals traverse the same cable length, using TT eliminates the issue. TT may be generated by looping ST back with an appropriate phase change to align it with the transmitted data. ST loop back to TT lets the DTE use the DCE as the frequency reference, and correct the clock to data timing.

Synchronous clocking is required for such protocols as SDLC, HDLC, and X.25.

Secondary channel

[edit]

A secondary data channel, identical in capability to the primary channel, can optionally be implemented by the DTE and DCE devices. Pin assignments are as follows:

Signal Pin
Common Ground 7 (same as primary)
Secondary Transmitted Data (STD or S.TxD) 14
Secondary Received Data (SRD or S.RxD) 16
Secondary Request To Send (SRTS or S.RTS) 19
Secondary Clear To Send (SCTS or S.CRS) 13
Secondary Carrier Detect (SDCD or S.DCD) 12
[edit]

Other serial signaling standards may not interoperate with standard-compliant RS-232 ports. For example, using the TTL levels of near +5 V and 0 V puts the mark level in the undefined area of the standard. Such levels are sometimes used with NMEA 0183-compliant GPS receivers and depth finders. A chip such as MAX232 is required to convert the voltage levels.

A 20 mA current loop uses the absence of 20 mA current for high, and the presence of current in the loop for low; this signaling method is often used for long-distance and optically isolated links. Connection of a current-loop device to a compliant RS-232 port requires a level translator. Current-loop devices can supply voltages in excess of the must-withstand voltage limits of a compliant device. The original IBM PC serial port card implemented a 20 mA current-loop interface, which was never emulated by other suppliers of plug-compatible equipment.

Other serial interfaces similar to RS-232:

  • RS-422 – a high-speed system similar to RS-232 but with differential signaling
  • RS-423 – a high-speed system similar to RS-422 but with unbalanced signaling
  • RS-449 – a functional and mechanical interface that used RS-422 and RS-423 signals; never caught on like RS-232 and was withdrawn by the EIA
  • RS-485 – a descendant of RS-422 that can be used as a bus in multidrop configurations
  • MIL-STD-188 – a system like RS-232 but with better impedance and rise time control. One very significant difference: RS-232 uses a positive voltage to indicate a 0 and a negative voltage to indicate a 1. MIL-STD-188 uses a negative voltage for 0 and a positive voltage for a 1.
  • EIA-530 – a high-speed system using RS-422 or RS-423 electrical properties in an EIA-232 pinout configuration, thus combining the best of both; supersedes RS-449
  • EIA/TIA-561 – defines RS-232 pinouts for eight-position, eight-contact (8P8C) modular connectors (which may be improperly called RJ45 connectors)
  • EIA/TIA-562 – low-voltage version of EIA/TIA-232
  • TIA-574 – standardizes the 9-pin D-subminiature connector pinout for use with EIA-232 electrical signalling, as originated on the IBM PC/AT
  • EIA/TIA-694 – similar to TIA/EIA-232-F but with support for higher data rates up to 512 kbit/s

The International Telecommunication Union publishes standard ITR-R V.24 (formerly CCITT standard V.24), "List of Definitions for Interchange Circuits between Data Terminal Equipment (DTE) and Data Circuit-Terminating Equipment (DCE)" with circuit definitions compatible to those in EIA RS 232. V.24 does not specify signal levels or timing. Electrical parameters for signals are specified in ITU-R-V.28.

Development tools

[edit]

When developing or troubleshooting systems using RS-232, close examination of hardware signals can be important to find problems. This can be done using simple devices with LEDs that indicate the logic levels of data and control signals. "Y" cables may be used to allow using another serial port to monitor all traffic on one direction. A serial line analyzer is a device similar to a logic analyzer but specialized for RS-232's voltage levels, connectors, and, where used, clock signals; it collects, stores, and displays the data and control signals, allowing developers to view them in detail. Some simply display the signals as waveforms; more elaborate versions include the ability to decode characters in ASCII or other common codes and to interpret common protocols used over RS-232 such as SDLC, HDLC, DDCMP, and X.25. Serial line analyzers are available as standalone units, as software and interface cables for general-purpose logic analyzers and oscilloscopes, and as programs that run on common personal computers and devices.

See also

[edit]

References

[edit]
  1. ^ a b Metering Glossary Archived 2025-08-14 at the Wayback Machine Landis + Gyr Tutorial (see EIA)
  2. ^ a b c d Evans, Jr., John M.; O'Neill, Joseph T.; Little, John L.; Albus, James S.; Barbera, Anthony J.; Fife, Dennis W.; Fong, Elizabeth N.; Gilsinn, David E.; Holberton, Frances E.; Lucas, Brian G.; Lyon, Gordon E.; Marron, Beatrice A. S.; Neumann, Albercht J.; Vickers, Mabel V.; Walker, Justin C. (October 1976), Standards for Computer Aided Manufacturing (Second Interim Report ed.), Office of Developmental Automation and Control Technology, Institute for Computer Sciences and Technology, National Bureau of Standards, Washington, DC, USA: Manufacturing Technology Division, Air Force Materials Laboratory, Wright-Patterson Air Force Base, Ohio 45433, NBSIR 76-1094, retrieved 2025-08-14
  3. ^ "Connecting the Beast?". This Old Mill. 2025-08-14. Retrieved 2025-08-14.
  4. ^ EIA standard RS-232-C: Interface between Data Terminal Equipment and Data Communication Equipment Employing Serial Binary Data Interchange. Washington, USA: Electronic Industries Association, Engineering Department. 1969. OCLC 38637094.
  5. ^ "RS232 Tutorial on Data Interface and cables". ARC Electronics. 2010. Retrieved 2025-08-14.
  6. ^ "TIA Facts at a Glance". About TIA. Telecommunications Industry Association. Retrieved 2025-08-14.
  7. ^ S. Mackay, E. Wright, D. Reynders, J. Park, Practical Industrial Data Networks: Design, Installation, and Troubleshooting, Newnes, 2004 ISBN 07506 5807X, pages 41-42
  8. ^ Horowitz, Paul; Hill, Winfield (1989). The Art of Electronics (2nd ed.). Cambridge, England: Cambridge University Press. pp. 723–726. ISBN 0-521-37095-7.
  9. ^ PC 97 Hardware Design Guide. Redmond, Washington, USA: Microsoft Press. 1997. ISBN 1-57231-381-1.
  10. ^ "Lengths of serial cables". www.tldp.org. Retrieved 2025-08-14.
  11. ^ Andrews, Jean (2020). CompTIA A+ Guide to IT technical support. Dark, Joy, West, Jill (Tenth ed.). Boston, MA, USA: Cengage Learning. p. 267. ISBN 978-0-357-10829-1. OCLC 1090438548.
  12. ^ Wilson, Michael R. (January 2000). "TIA/EIA-422-B Overview" (PDF). Application Note 1031. National Semiconductor. Archived from the original (PDF) on 2025-08-14. Retrieved 2025-08-14.
  13. ^ Lawrence, Tony (1992). "Serial Wiring". A. P. Lawrence. Retrieved 2025-08-14.
  14. ^ "Serial (PC 25)". Pinout Guide.
  15. ^ Leedom, Casey (2025-08-14). "Re: EIA-232 full duplex RTS/CTS flow control standard proposal". Newsgroupcomp.dcom.modems. Usenet: 49249@lll-winken.LLNL.GOV. Retrieved 2025-08-14.

Further reading

[edit]
[edit]
女生喜欢什么礼物 缺铁有什么症状 ntr是什么意思啊 邦字五行属什么 有什么功效
眼疖子用什么药 荨麻疹吃什么药管用 送什么小礼品好 头晕为什么做眼震检查 lm是什么意思
庆生是什么意思 才高八斗是什么动物 中医学是什么 嘢是什么意思 四个自信是什么
井代表什么数字 可好是什么意思 什么食物可以减肥 血竭是什么东西 头疼挂什么科室
灭吐灵又叫什么名字hcv9jop4ns4r.cn 牛肉跟什么炒好吃hcv7jop9ns9r.cn 黄体酮不足吃什么hcv8jop0ns9r.cn 肝脏彩超能检查出什么hcv9jop0ns1r.cn 申时五行属什么hcv8jop1ns0r.cn
狮子座前面是什么星座shenchushe.com 去痘印用什么药膏hcv8jop8ns5r.cn 6月3号什么星座hcv8jop9ns0r.cn 痛经喝什么可以缓解hcv8jop9ns4r.cn 什么不动baiqunet.com
收心是什么意思hcv8jop8ns2r.cn 麾下是什么意思hcv9jop0ns7r.cn 生蚝和什么不能一起吃hcv7jop7ns3r.cn 办护照需要准备什么材料hcv9jop4ns2r.cn 属马的跟什么属相最配hcv8jop4ns3r.cn
黑咖啡为什么能减肥hcv8jop4ns6r.cn 子宫肌瘤伴钙化是什么意思hcv7jop6ns3r.cn pdw偏低是什么意思hcv9jop6ns1r.cn 尿发红什么原因gysmod.com 蟾酥是什么shenchushe.com
百度