Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Hello everyone....interfacing gsm module with matlab

Status
Not open for further replies.

artelepatil

Newbie level 1
Newbie level 1
Joined
May 10, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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....:|
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top