问题描述
我是WIN CE的初学者,
我在以下环境中开发应用程序
获得CE 6.0版视觉基础
.net 2.0
我尝试创建一个与GSM调制解调器通信的应用程序,
SerialPort1.Open()
如果(SerialPort1 .IsOpen)然后
MsgBox(SerialPort1.PortName)
SerialPort1.WriteLine(" AT" + vbCrLf)
MsgBox(SerialPort1.ReadExisting())
SerialPort1.Close()
如果我已经添加了一个串口对象,当我尝试打开并写入一些AT命令时,该应用程序冻结,我有重启电路板
我无法从GSM调制解调器得到答复
请回复,恭谢
Hi ,
iam a beginner in WIN CE,
Iam developing Application in the following Environment
WIN CE 6.0
Visual basic
.net 2.0
Iam trying to create an Application which communicates with a GSM modem,
SerialPort1.Open()
If (SerialPort1.IsOpen) Then
MsgBox(SerialPort1.PortName)
SerialPort1.WriteLine("AT" + vbCrLf)
MsgBox(SerialPort1.ReadExisting())
SerialPort1.Close()
End if
i have added a serial port object and when i try to open and write some AT Commands
The Application freezes,I have to restart the Board
Iam not able to get the response from the GSM modem
Kindly Reply,
Thanks
这篇关于串口连接-Beginner需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!