I want to send out SMS messaging using AT command in a C program. The program is tested working on SIMCOM module, but it failed to send out SMS from WaveCOM Q24 automotive module.
I tried to similate the problem using Hyperterminal or minicom. The Wavecom Q24 module always return “Error” reply when I input the AT+CMGS command in one complete line. Can anyone help me on this problem?
The C program:
sprintf(buffer,“AT+CMGS=”%s"\rabc%c", phone_number, 26);
write(fd, buffer, strlen(buffer));
Does anybody solve this problem before?