请问该如何才能建立起来两个MODEM之间的连接呢?
用串口类SerialPort做,
我的拨号端简单实现是:
SerialPort1.PortName = "COM1 "
SerialPort1.Parity = Parity.None
SerialPort1.ReadTimeout = 1000
SerialPort1.BaudRate = 19200
SerialPort1.DataBits = 8
SerialPort1.StopBits = StopBits.One
SerialPort1.Open()
Sleep(500)
SerialPort1.Write( "ATZ; " & vbCrLf)
'sp.Write( "AT&F; " & vbCrLf)
'sp.Write( "ATE0; " & vbCrLf)
'sp.Write( "ATM1; " & vbCrLf)
'sp.Write( "ATQ0; " & vbCrLf)
'sp.Write( "ATV0; " & vbCrLf)
'SerialPort1.Write( "AT&L1; " & vbCrLf)
Sleep(500)
SerialPort1.Write( "ATDT " & "电话号码 " & "; " & vbCrLf)
被拨号端:
SerialPort1.PortName = strPortName
SerialPort1.Parity = Parity.None
SerialPort1.ReadTimeout = 1000
SerialPort1.BaudRate = 19200 &nbs