I have a GSM modem, Wavecom.
When I connect to it using HyperTerminal, i can send SMS with the standard AT comands, like this:
AT+CMGS="+351nn nnnnnnn" <CR>
> text to send in the message <Control-Z>
and the SMS goes on.
Note: <CR> means ENTER
Note: <CR> is ASCII 13, and Control-Z is ASCII 26.
When I use VisualBasic, the SAME AT sequence does not work.
And I get an ERROR (twice).
The manual says to do the following:
MSComm.Output = "AT+CMGS=" & chr(34) & "+ "+351nnnnnn nnn" & chr(34) & chr(13)
MsComm.Output = "text to send in the message" & chr(26).
Note: chr(34) is the character for the commas(").
What is wrong?
Many thanks for any help.
When I connect to it using HyperTerminal, i can send SMS with the standard AT comands, like this:
AT+CMGS="+351nn nnnnnnn" <CR>
> text to send in the message <Control-Z>
and the SMS goes on.
Note: <CR> means ENTER
Note: <CR> is ASCII 13, and Control-Z is ASCII 26.
When I use VisualBasic, the SAME AT sequence does not work.
And I get an ERROR (twice).
The manual says to do the following:
MSComm.Output = "AT+CMGS=" & chr(34) & "+ "+351nnnnnn nnn" & chr(34) & chr(13)
MsComm.Output = "text to send in the message" & chr(26).
Note: chr(34) is the character for the commas(").
What is wrong?
Many thanks for any help.
Comment