用modem拨号(100分)

  • 主题发起人 goodflying
  • 开始时间
G

goodflying

Unregistered / Unconfirmed
GUEST, unregistred user!
1 是通过串口使用at命令拨号吗。(modem的串口为com3)
2 用spcomm如何实现,如拨123。(请详细说明)
3 拨通后通过串口通信如何实现。
 
通过串口和modem通讯原理相对比较简单。但你要对at命令相当的熟悉。而且。modem最好
选用贺氏兼容的modem(现在的modem基本上都是)。
首先 打开串口。 然后向串口发送at命令:
用spcommm的话就是:
spcomm1.CommName:='com3';
spcomm1.StartComm;
spcomm1.writecommdata('at 1',4)//at 命令不是很熟悉。//第一条at命令
spcomm1.writecommdata('at 2',4)//at 命令不是很熟悉。//第二条at命令 等等。
 
用modem拨通后是否com3一直被占用。
 
at Command is:
for example, you want to dial 010-12345678
send command: atdt01012345678,Modem will dial this number.
Of course the COM3 is engaged when you dial a number, except that
your modem use another port but com3.
 
关注中。。。
 
顶部