用mscomm在编写和无线modem通讯,在发出拨号的AT命令后,提示我:NO CARRIER 也就是没有载波信号,是不是我哪里写错了,应该如何写?
procedure TForm1.FormCreate(Sender: TObject);
begin
mscomm1.commport:=1;
mscomm1.settings:='115200,n,8,1';
mscomm1.inputlen:=1;
mscomm1.inbuffercount:=0;
mscomm1.OutBufferCount:=0;
Mscomm1.RThreshold:=1;
mscomm1.portopen:=true;
mscomm1.DTREnable:=true;
mscomm1.RTSEnable:=true;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
if not MSComm1.CTSHolding then
begin
application.ProcessMessages;
end;
mscomm1.Output:='atd04516343666'+char(13);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
mscomm1.commport:=1;
mscomm1.settings:='115200,n,8,1';
mscomm1.inputlen:=1;
mscomm1.inbuffercount:=0;
mscomm1.OutBufferCount:=0;
Mscomm1.RThreshold:=1;
mscomm1.portopen:=true;
mscomm1.DTREnable:=true;
mscomm1.RTSEnable:=true;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
if not MSComm1.CTSHolding then
begin
application.ProcessMessages;
end;
mscomm1.Output:='atd04516343666'+char(13);
end;
2。串口的波特率不要设为115200,modem支持的协议中没有采用115200的。
3。你的无线modem是否设置为自动应答?
我的支持115200,
好象和自动应答没关系吧