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.
You can try some delay between these commands, because execution of previous command can be ongoing when following command is started. That can cause problem.
1. No need to set every time SCA: Comm.Output = "AT+CSCA=""+60162999902"",145" & Chr(13)
2. Before sending Comm.Output = "It Works!!" & Chr(26) you must wait for vbCrLf & ">" & vbCrLf from modem. This means that modem is ready to receive message chars.