GSM MODEM WAVECOM AND SMS ON SESSION

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.
mirzaabdicAsked:
Who is Participating?
 
imarshadConnect With a Mentor Commented:
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
MSComm1.PortOpen=TRUE            

End Sub

Imran
0
 
imarshadCommented:
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"
Else
    MsgBox "Message Not Send"
End If

End Sub

Imran
0
 
mirzaabdicAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.