|
楼主 |
发表于 2004-6-1 16:36:51
|
显示全部楼层
太感谢谢了
看到了一个很有用的测试COM口的例子
To configure the serial port, use the setserial command with the information that you recorded above. Using the example values above, you would type the following into the terminal window:
setserial /dev/ttyS1 uart 16550A port 0xdc00 irq 11
You can verify that the modem is working by sending it the command to dial. For example type the following into the terminal window:
echo "atdt5555555" > /dev/ttyS1
If you hear the modem dial, close the connection by typing:
echo "atz" > /dev/ttyS1
If you didn't hear the modem dial, make sure you have the modem speaker turned on by typing:
echo "atv" > /dev/ttyS1
Then try dialing again.
To have Linux automatically configure your modem at boot time, add the setserial line that you used above to the file /etc/rc.d/rc.local |
|