连接并断开调制解调器 [英] connect and disconnet modem

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

问题描述

我编写了一个程序来使用GSM调制解调器读取和发送SMS.我使用一个线程使用AT命令从GSM MODEM收集未读的SMS,该命令每10秒运行一次.另一方面,我正在使用GSM COMM DLL通过关闭AT连接发送SMS并通过GSMCOMM DLL连接调制解调器.
问题:
1.随着越来越多的调制解调器的连接和断开,是否有可能损坏调制解调器?
2.这里是否有可能损坏调制解调器,使调制解调器每10秒收集一次未读的SMS.

I have written a program to read and send SMS using GSM modem. I have used a thread to collect unread SMS from GSM MODEM using AT command, which run in every 10 second. On the other side, I am using GSM COMM DLL to send the SMS by close the AT connection and connect the modem through GSMCOMM DLL.
Questions:
1. Is there any possibility to damage modem for more and more connecting and disconnecting the modem?
2. Is here any possibility to damage modem for collecting unread SMS in every 10 second.

推荐答案

我不这么认为.
唯一受影响的是性能.

好吧,如果您如此担心,为什么不使用AT + CNMI命令而不是每隔几秒钟轮询一次调制解调器.您说您正在使用GSM通讯库.必须有某种方法来启用邮件自动接收警报.看看吧.

希望对您有所帮助.:thumbsup:
I don''t think so.
The only thing that gets affected is the performance.

Well, if you are so worried, why don''t you use AT+CNMI command instead of polling the modem every few seconds. You said you are using GSM Comm Library. There must be some method to enable message auto receive alert. Check it out.

Hope this helps.:thumbsup:


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

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