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?
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?