RS232---DTE和DCE区别

What is the difference between an RS232 DTE and DCE port?
How can I tell what kind of port my serial device has?
What are examples of equipment that has a DTE port?
What are examples of equipment that has a DCE port?
The RS232 spec references two kinds of device, DTE (Data Terminal Equipment) and DCE (Data Computing Equipment).  Click here for detailed information on the differences between these two kinds of connectors.


Here are some helpful guidelines to tell them apart:


1) On DB serial connectors check if pin 2 is an input or an output.  There are different rules for DB25s and DB9s.


DB25:


If pin 2 is labeled TX and is an OUTPUT the connector is DTE


If pin 2 is labeled TX and is an INPUT the connector is DCE




DB9*:


If pin 2 is labeled RX and is an INPUT the connector is a DTE


If pin 2 is labeled RX and is an OUTPUT the connector is a DCE


This is helpful in most cases, but it is a de-facto standard and may not always apply. 


2) A rule of thumb for DB9 and DB25 connectors is: If it's male it is likely to be a DTE, if it's female it's likely to be a DCE.


This is a good place to start if you have no documentation on the serial device.  There are many cases where this does not apply, for instance most serial printers have a female DB25 connector, but they are DTEs. 


The only way to find out for sure what kind of connector a particular serial device has is to check it's documentation or contact it's manufacturer and ask. 


In the worst case you may need to put a breakout box between the Lantronix product and the serial device and manually swap connections between pins until you find a connection that works.  See the FAQs at the links below for information on common cable configurations.


Examples of products that usually have DTE ports are terminals, printers and the COM ports on a PC.


An example of a product that usually has a DCE port is a modem. 


For more detailed information on RS232 serial wiring please click here.


For cabling information for most Lantronix products with RJ45 serial ports click here.


*Note: For decades a 9 pin D-subminiature connector has been referred to as a DB9. Recently there has been a movement to use the more accurate DE9 designation. For consistency in our documentation, and to avoid confusion, Lantronix will continue to use the term DB9 to describe a 9-pin D-subminiature serial port for the forseeable future.


For more infomation on why DE9 is considered to be more accurate see:
http://en.wikipedia.org/wiki/D-subminiature
//
也就是说,DTE和DCE的接口是一样的,The Lable is Same,不同的是身份的不同。
DTE:常见的为PC、打印机等终端设备。接口上的TX--真的是发送的意思。
DCE:常见的为Modem,TX--其实是指外部的发送而自己的接收.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值