Posted on 2005-04-28
Medium Priority
Last Modified: 2008-02-01
Hello. i have a problem. I m student of IT in denmark. I have developed surveillance application using IP kamera. Application saves an image when movement is detected and overwrite it when next movement is detected.
I have a wavecom modem type M1203A and I have succeded to send sms to my mobile via windows terminal using at commands. What i want is to be able to send a SMS to mobile when my image from kamera is overwrited with new. It means that I want to notify moile telefone user with one sms (using any programming language) when one image is updated. Can anyone help me do this.
Question by:mirzaabdic
  • 2
LVL 13

Expert Comment

ID: 13892189
Here is a simple VB code that will send SMS..... This is a quick dirty solution (Though it always works)..... For a professional solution you will need to use MSComm1_OnComm event......

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub Command1_Click()
MSComm1.Output = "AT+CMGF=1" & vbCrLf
Sleep 500
MSComm1.Output = "AT+CMGS=+2000908080" & vbCrLf       'Replace this with your mobile Phone's No.
Sleep 500
MSComm1.Output = "Hello This is my test message"
Sleep 2000
If InStr(MSComm1.Input, "OK") Then
    MsgBox "Message Send"
    MsgBox "Message Not Send"
End If

End Sub

LVL 13

Accepted Solution

imarshad earned 2000 total points
ID: 13892222
To run this code you will need to add a MSComm control and a command button on the form..... Also you will need to set the correct baud rate and settings etc. of the MSComm control . Now pressing the button will send the SMS message to the phone no. you supply in the AT+CMGS=+xxxxxxxxxxxxxx command.....

Here are some typical settings....

Private Sub Form_Load()

MSComm1.Settings="9600,n,8,1"        'Change this with the Baud rate of your modem (The one you use with Hyper Terminal)
MSComm1.CommPort=1                     ' Change this with the port your Modem is attached

End Sub


Author Comment

ID: 13958898
i need code which observes a overwritting of a image file...ir means when image file is overwritted it should trigger send SMS and send alarm sms to mobiledevice via. wavecom Modem.

Regards Mirza

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I feel like more and more people want to know how to programmatically convert addresses into geospatial locations. So in this article, I will show you how you can do it with Bing Maps. I'm going to use PowerShell, which is a nice scripting language,…
Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question