AT commands in GSM
1 view (last 30 days)
Show older comments
Waseem Abbas
on 16 Jun 2012
Commented: Achal Singhal
on 16 Mar 2018
I am using AT commands in MATLAB to control dialling or call answering from MATLAB, for dialling it works perfect, but I cant receive a call by atd command moreover, when we receive a call, are there any indicators or flags which we can use to trigger some other functions when a call is received? best regards
2 Comments
nitish shukla
on 19 Feb 2015
Sir, I Want to call on my phone through MATLAB through GSM modem. Please help I am using the code
%if true
ss=serial('COM1','BaudRate',9600);
fopen(ss);
tx='AT';
tx1='ATD9413094625;'
fprintf(ss,'%s',tx);
fprintf(ss,'%s',tx1);
fclose(s);
Achal Singhal
on 16 Mar 2018
Hi. I'm working on a project. Could you please send me the complete code for Dialing a number from GSM using MATLAB. And if this is the complete code for dialling, do you have the code for sending SMS? Thanks in advance.
Accepted Answer
Walter Roberson
on 16 Jun 2012
ATD is for dialing. You need ATA for "manual" answer (that is, does not answer until the command is sent for it to answer, as opposed to the GSM device answering automatically.) See http://www.winsystems.com/reprints/GSM%20AT%20Commands%20Rev.C.pdf
Historically, the method of getting notification that a call had come in, was to set the modem up not to exert DTR until it had carrier, and then to open the serial port in its regular mode, as the regular mode did not return from the open call until DTR was available. Then the fact that the open call had returned was the "indicator or flag" that a call had been received.
A lot of work was put into intelligent modem control in the Unix days. I recommend that you look at the design of the Unix uugetty utility to see the kinds of concerns that come up.
More Answers (0)
See Also
Categories
Find more on Communications Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!