根据时间间隔发送AT指令 [英] Sending AT Command based on Time Interval

查看:98
本文介绍了根据时间间隔发送AT指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我真的要对codeproject表示感谢,因为它确实帮助了我很多时间.
------这是我的问题-------
我被分配了一项任务,以设计一个Web应用程序,该应用程序将向GSM/GPS调制解调器发送一个AT命令,以请求其位置".根据用户规范(例如,每30分钟或1小时或每天一次的请求调制解调器位置)来处理请求
所以这就是我的库存,我该如何实施.这是界面外观的图像. (对不起,我无法粘贴图像)
---两个单选按钮----
---两个日历控件,其格式属性设置为TIME ---
---一个文本框,它将基于calander控件的值来计算间隔---
---一个基于文本框控件的时间间隔请求调制解调器位置的按钮控件----

请问我该怎么做.(问题是如何始终在每个选定的时间间隔内执行AT命令)(一位朋友建议我应该创建一个.dll文件来实现AT命令,并在按钮控制时调用它点击)

欢迎大家的任何帮助.

Hello Everyone, I really want to say a big thanks to codeproject because it has really help me big time.
------ HERE IS MY QUESTION -------
I was assign the task to design a web application that will send an AT command to a GSM/GPS modem requesting for it Location. The request is processed based on users specification like (Request Modem Location Every 30 Minutes or 1 Hour or Once a day)
So this is where i''m stock, How can i implement it. Here is an image of what the interface will look like. (Sorry i am unable to paste the image)
---Two radio button ----
--- Two Calender Control with it''s Format Properties set to TIME---
--- A Text Box that will calculate the interval based on the value of the calander control ---
--- A Button Control to Request For the Modem Location based on the interval the Text Box control----

Please how can i do it.(The Problem is how to always execute an AT Command in every time interval selected)(A Friend gave an advice that i should create a .dll file for implementing the AT Command the Call it when the Button Control is click)

Any Help from you guys is welcome

推荐答案

,您必须编写一个窗口服务,该服务将检查日期时间和时间间隔,并按AT指令进入GSM/GPS模型.
you have to write a window service which will check the datetime and interval and hit the AT Command to your GSM/GPS Model.


您无法从Web应用程序执行计划任务.相反,您需要编写一个桌面应用程序并使用Windows Scheduler以所需的间隔运行它,或者您必须编写一个Windows服务,该服务仅位于内存中并自行执行其预定的处理.我会选择Windows服务,因为即使没有用户登录,它也可以运行.
You can''t perform a scheduled task from a web application. Instead, you need to write a desktop app and use the Windows Scheduler to run it at the desired intervak, or you have to write a Windows service that will simply sit in memory and perform its scheduled processing on its own. I would go with the Windows service because it can run even without a user logged on.


这篇关于根据时间间隔发送AT指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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