工程师 - RS232 interface and pinout

RS232 Pinout and Communication Interface

以下是典型的标准 9 针公 RS232 连接器的引脚分布,这种连接器也称为 DB9 连接器。 公头和母头对接。RS232 cable一般是一边母头接电脑,一边公头接外设。

Below is the pinout of a typical standard male 9-pin RS232 connector, this connector type is also referred to as a DB9 connector.

如下图所示,计算机的串行 COM 端口(DTE)通常是一个公口,而连接到该端口的任何外围设备通常都是一个母口(DCE)。

A computer's serial COM port (DTE, Data Terminal Equipment) is usually a male port as shown below, and any peripheral devices you connect to this port usually has a female connector (DCE, Data Communication Equipment).

RS232 串行通信端口 DB9 连接器(有时称为 DE9 连接器或 D-sub 连接器)的引脚分配参考图。RS232 是一种串行数据通信信号协议。

Reference pinout diagrams for DB9 connector (sometimes known as DE9 connector or D-sub connector) for RS232 serial communication ports.

Pin

Signal

Signal Name

DTE Signal direction

1

DCD

Data Carrier Detect

In

2

RXD

Receive Data

In

3

TXD

Transmit Data

Out

4

DTR

Data Terminal Ready

Out

5

GND

Ground

-

6

DSR

Data Set Ready

In

7

RTS

Request to Send

Out

8

CTS

Clear to Send

In

9

RI

Ring Indicator

In

母头端信号是不一样的,RX/TX,RTS/CTS命名会反过来,因为是从另一端设备的角度来看。

RS232 使用 DB9 和 DB25 连接器确定 DTE 和 DCE 之间的通信。D-sub 连接器(DB9、DB25)配有公头和母头电缆。DB9 连接器有 9 个引脚,DB25 连接器有 25 个引脚,每个引脚都有自己的功能。

RS232 determines the communication between the DTE and DCE using DB9 and DB25 connectors. The D-sub connectors (DB9, DB25) comes with male and female cable. DB9 connector has 9 pins and DB25 connector has 25 pins with each pin having its own function.

DB9 Male and Female Pinouts / DB9 公头引脚和母头引脚

RS232 通常使用 D-sub 9 针或 25 针连接器。如今,RJ45(或 8P8C)模块连接器也常用于 RS232。RS232 标准也曾使用 D-Sub 20 针连接器。现在很少使用这么大的连接器了。

RS232 is a serial data communication signaling protocol. D-sub 9 pins or 25 pins connector is commonly used for RS232. These days RJ45 (or 8P8C) modular connector is also commonly used for RS232 purposes.

RS232 standard was also implemented using a D-Sub 20 pins connector. Nowadays is quite rare to use such a big connector.

DB25 Pinout

通常情况下,RS232 D-sub 连接器的 TX 引脚表示数据从连接器流出,流入与其配对的连接器的 RX 引脚。这是两个设备之间的通信通道。

注意

对于三线 RS232 串行通信(非硬件握手或异步数据通信)布线,只需要 2、3(RX、TX)和 5(Gnd)针脚。

这意味着串行数据是根据预先设置的定时时钟发送的。

Typically the TX pin of an RS232 D-sub connector represents data flowing out of the connector, flowing into the RX pin of its mating connector. This is a communication channel between two devices.

Note:

For 3 wires RS232 serial communication (non-hardware-handshaking or asynchronous data communication) wiring, you only need pin 2, 3 (RX, TX), and pin 5 (Gnd)

Meaning that the serial data is sent out based on a pre-set timing clock.

RJ45 RS232 Console Cable Pin Out

现代计算机系统使用 RJ45 模块插头进行 RS232 数据通信。常见的 IT 终端控制台电缆称为 “RS232 DB9 至 RJ45”。它通常用于访问 IT 设备的终端控制台。

The modern computer system uses RJ45 modular plug for its RS232 data communication. A common IT terminal console cable is known as “RS232 DB9 to RJ45”. This is typically for accessing the terminal console of IT equipment.

RJ45 转 RS232 控制台电缆用于将计算机连接到路由器、交换机或防火墙等网络设备上的串行控制台端口。一端通过 RJ45 连接器(8P8C,8 引脚)连接服务器,另一端通过 D-Sub 连接器(母头 9 引脚,通常称为 d-sub09 连接器)连接计算机。

An RJ45 to RS232 console cable is used to connect a computer to a serial console port on a network device, such as a router, switch, or firewall. One end is connected to the server with RJ45 connector (8P8C, 8 pins), and the other end is to a computer with a D-Sub connector (female 9 pins, often known as d-sub09 connector)

串行控制台电缆通常用于向服务器或设备(通常是思科设备,通常称为思科控制台电缆)发送串行配置命令。

A serial console cable is usually used for conveniently sending serial configuration commands to a server or equipment (usually Cisco equipment, often known as the Cisco Console Cable).

串行控制台电缆引脚分布图(RJ45 转 RS232 母口线)

Serial Console Cable Pin Out Diagram (RJ45 to RS232 female cable)

RS232 to USB

另一种常见的 RS232 电缆是 “USB 至 RS232 转换器电缆”。现代计算机硬件更多使用 USB 连接,因为它体积小,具有即插即用的特点。它常用于现代计算机与仍在使用 RS232 通信方式的工业设备之间。

Another common type of cable where RS232 is found is the “USB to RS232 converter cable“. Modern computing hardware uses USB connection more, due to its size and plug-and-play feature. It is commonly used between modern computer and industrial devices that still uses the RS232 communication method.

如下图所示,MOXA的USB to serial converter,UPort 1100 Series。RS232串口的USB转换器。

https://www.moxa.com/en/products/industrial-edge-connectivity/usb-to-serial-converters-usb-hubs/usb-to-serial-converters/uport-1100-series

  • 6
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夜流冰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值