让串口能够自发自收

很简单,把管脚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

串口示意图

Posted by 王永杰 in 技术为本
25 03月

没有评论 »

还没有评论。

发表评论

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word