Hi, I am developing a VB application to send out sms.
Currently, I've got a function that do this.
Comm.Output = "AT+CMGF=1" & Chr(13)
Comm.Output = "AT+CSCA=""+60162999902"",145" & Chr(13)
Comm.Output = "AT+CMGS=""+60164115155"",145" & Chr(13)
Comm.Output = "It Works!!" & Chr(26)
Whenever I run that function, i can see that it passes some weird character to the Terminal, and no sms will be send.
However, if I do one statement by one statement, which means, execute the above statements separately. ANd in between each statement, I wait for the Modem to return OK only then i go on to the next statememnt.
My Question is, is it necessary that I always wait like this before executing the next statement? If this is the only way, that mean ii will have to write my program to run the first statement, wait for OK then run second statement.....etc et.c... ??
Wouldn't that be very inefficient? Is there a faster and more convenient way to do this?
Anyone with such experience, Please advice. Every opinions is greatly appreciated.