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 comentarios

nitish shukla
nitish shukla el 19 de Feb. de 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 el 16 de Mzo. de 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.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de Jun. de 2012

0 votos

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 comentario

Waseem Abbas
Waseem Abbas el 17 de Jun. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Downloads en Centro de ayuda y File Exchange.

Preguntada:

el 16 de Jun. de 2012

Comentada:

el 16 de Mzo. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by