让串口能够自发自收

很简单,把管脚2(收)和管脚3(发)短接起来就可以啦,位置见示意图。

九针串口各脚的定义如下:
1 DCD 载波检测
2 RXD 接收数据
3 TXD 发送数据
4 DTR 数据终端准备好
5 SG 信号地线
6 DSR 数据准备好
7 RTS 请求发送
8 CTS 清除发送
9 RI 振铃指示

参考链接

1. Linux 下串口编程入门
2. Serial Programming Guide for POSIX Operating Systems

串口示意图

About 王永杰

路漫漫其修远兮,吾将上下而求索
This entry was posted in 技术为本. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>