Posted on 2005-04-28
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
    LVL 13

    Expert Comment

    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

    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

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

    Regards Mirza

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    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…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now