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 commentaires

nitish shukla
nitish shukla le 19 Fév 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
Achal Singhal le 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.

Connectez-vous pour commenter.

 Réponse acceptée

Walter Roberson
Walter Roberson le 16 Juin 2012

0 votes

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.

1 commentaire

Waseem Abbas
Waseem Abbas le 17 Juin 2012
actually the ata command is giving me non response, how can I look for the +CRING string which is there when a call is made
lemme explain the scenario
I have two cell phones, one transmitter, the other receiver
MATLAB initiates a call on the transmitter side and then waits for response, if call is accepted, it sends some data to sound card, which is then transmitted by the tx cell phone.
on the receiver side, I want the program to look for incoming call continuously once I execute it, when there is a call, accept it and initiate data acquisition sequence from sound card
I have stuck on Rx side. I don't know how to make program listen for incoming call continuously, and then answer the call when there is one
I will appreciate if u can help
regards

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by