Serial port 串口速度

Serial port 串口速度,serial-port,ppp,Serial Port,Ppp,我尝试通过使用ppp的串行端口将一个设备连接到我的windows CE设备,我发现另一个设备(arm linux)不断改变其端口速度 它应该是38400波特,但不是常数 速度应该是恒定的吗 我要做的就是检查它 stty -F /dev/ttyS3 以及输出 speed 9600 baud; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start

我尝试通过使用ppp的串行端口将一个设备连接到我的windows CE设备,我发现另一个设备(arm linux)不断改变其端口速度

它应该是38400波特,但不是常数

速度应该是恒定的吗

我要做的就是检查它

stty -F /dev/ttyS3
以及输出

speed 9600 baud;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-brkint -imaxbel
-echo
[一段时间后]

speed 38400 baud;
speed 0 baud;
在windows CE设备中,我得到:

Error: 679 (Incorrect connection profile)

关键是在我的linux设备中速度应该是恒定的?或者我应该检查其他选项。

将38400添加到stty命令行。串行端口的Rx和Tx波特率在本地设置。远程端无法重新配置本地设置。如果Rx波特率与远端使用的速率不匹配,则接收的数据为垃圾数据和/或Rx状态应指示帧和/或奇偶校验错误。