Click here to Skip to main content
15,886,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
ahmedfaruk88 8-Jul-11 12:24pm    
How can i create a windows service within my Web Application. Do i have to include in an ASP_NET Folder and host (Because the Apllication is to be hosted on a web server)

you have to write a window service which will check the datetime and interval and hit the AT Command to your GSM/GPS Model.
 
Share this answer
 
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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900