Link to home
Start Free TrialLog in
Avatar of mirzaabdic
mirzaabdic

asked on

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.
Avatar of imarshad
imarshad
Flag of Pakistan image

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
ASKER CERTIFIED SOLUTION
Avatar of imarshad
imarshad
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mirzaabdic
mirzaabdic

ASKER

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