Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending SMS using MSComm32.ocx

Status
Not open for further replies.

yaabo

Programmer
Apr 21, 2006
1
GA
Hello all,
I want to send SMS over serial port to a GSM modem.I use the MSComm32.ocx ole control with AT Commands.
To send an sms I write
ole_1.object.Output = "at+cmgs=" +"phonenumber"+char(13)
then after the modem has replied i send
ole_1.object.output = "some message"+char(26)
Here comes the trouble:
i get the following reply from the modem
at+cmgs:<message sent> OK. According to the modem documentation that's the right response when sending is successful. BUT THE MESSAGE IS NEVER SENT.
Similar code works nice with Visual Basic.
Does anyone have ideas for me?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top