发送少量消息后,GSM调制解调器已断开连接 [英] GSM Modem gets disconnected after sending few messages

查看:180
本文介绍了发送少量消息后,GSM调制解调器已断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#和GSM调制解调器制作一个短信桌面应用程序,在该应用程序中,用户在查询数据库后将自动获得其消息的答复.为此,我正在使用计时器,以便每隔一秒应用程序检查一次接收到的消息,然后在查询数据库应用程序后将所需的信息发送给用户.我在这里面临的问题是调制解调器在发送一些消息后被断开连接.我尝试了不同的超时值,但没有成功.

I am making an sms desktop application using c# and GSM Modem in which user will automatically gets the reply of his message after querying the database. for this purpose i am using timer so that at every second application checks for any received message and then after querying the database application will send the required information to the user. problem i am facing here is modem gets disconnected after sending a few messages. i tried with different values of timeout but no success. Can any one help me in this??

推荐答案

最好让事件接收器确定何时接收消息.
我想在GSM调制解调器上设置此选项,以在收到AT + CNMI(仅是Google)时显示消息.您不需要任何计时器来进行检查,如果您按照我说的去做,可以很容易地使用serialport_datareceived事件处理程序来检查GSM调制解调器指示和分析的数据,并执行所需的操作.
如果您的调制解调器已断开连接,请检查您的连接,我不认为这取决于您的软件,
祝你好运
it`s better to make an event receiver to determine when message received .
I think to set this option on GSM modem to show message when it received is AT+CNMI ( just Google it ) . you don`t need any timer for checking , if you do what i said it`s easy to use serialport_datareceived event handler to check what your GSM modem indicate and analysis the data and do what ever you want.
if your modem is disconnected check your connection i don`t think it`s depends on your software ,
goodluck


这篇关于发送少量消息后,GSM调制解调器已断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆