FreeBSD handbook中文版 15 串口通讯(11) stty -f /dev/cuai01 crtscts 15.4.5 Modem 设置 如果你有一个modem,它的参数能被存储在非易失性的RAM 中,你将必须使用一个终端 程序来设置参数。使用同样的通讯速率来连接modem 作为初始速度getty 将使用和配置 modem 的非易失性RAM 来匹配这些要求: . CD asserted when connected . DTR asserted for operation; dropping DTR hangs up line and resets modem . CTS transmitted data flow control . Disable XON/XOFF flow control . RTS received data flow control . Quiet mode (no result codes) . No command echo 请读读你的modem 的文档找到你需要用什么命令和DIP 接口设置。例如,要在一个 USRobotics Sportster 14,400 的外置modem 上设置上面的参数,你可以用下面这些命令: ATZ AT&C1&D2&H1&I0&R2&W 你也可能想要在modem 上寻找机会调节这个设置,例如它是否使用V.42bis 和MNP5 压 缩。USR Sportster 14,400 外置modem 也有一些用来设置的DIP 开关,也许你可以使用这 些设置作为一个例子: . Switch 1: UP -- DTR Normal . Switch 2: Do not care (Verbal Result Codes/Numeric Result Codes) . Switch 3: UP -- Suppress Result Codes 第17 页FreeBSD 使用手册 . Switch 4: DOWN -- No echo, offline commands . Switch 5: UP -- Auto Answer . Switch 6: UP -- Carrier Detect Normal . Switch 7: UP -- Load NVRAM Defaults . Switch 8: Do not care (Smart Mode/Dumb Mode) 15.4.5.1 锁定速率的配置 对于一个锁定速率的配置,你需要配置modem 来获得一个不依赖于通讯率的稳定的 modem-to-computer 的数据率。在一个USR Sportster 14,400 外置modem 上,这些命令将