artelepatil
Newbie level 1
- Joined
- May 10, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,289
I am trying to interface GSM module with MAtlab....
Code is as mentioned below.....
clc;
clear all;
close all;
s=serial('COM3','Baudrate',9600);
fopen(s);
s.Terminator='CR';
tx='AT';
tx1=char(13);
tx2='AT+CMGF=1'
tx3='AT+CMGS="=+917620079805"'
tx4='TEST';
tx5=char(26);
fprintf(s,'%s',tx);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx2);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx3);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx4);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx5);
pause(6);
fclose(s);
delete(s);
but not able to receive the msg on specified no.....
can any one help me to solve this problem....:|
Code is as mentioned below.....
clc;
clear all;
close all;
s=serial('COM3','Baudrate',9600);
fopen(s);
s.Terminator='CR';
tx='AT';
tx1=char(13);
tx2='AT+CMGF=1'
tx3='AT+CMGS="=+917620079805"'
tx4='TEST';
tx5=char(26);
fprintf(s,'%s',tx);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx2);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx3);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx4);
fprintf(s,'%s',tx1);
pause(6);
fprintf(s,'%s',tx5);
pause(6);
fclose(s);
delete(s);
but not able to receive the msg on specified no.....
can any one help me to solve this problem....:|