Borrar filtros
Borrar filtros

send message using gsm

2 visualizaciones (últimos 30 días)
Mohammedashraf Shaikh
Mohammedashraf Shaikh el 13 de Mayo de 2017
Comentada: Van Basten el 23 de Jun. de 2020
ss=serial('COM7');
ss.baudrate=9600;
fopen(ss);
ss.Terminator = 'CR'
tx ='AT';
tx1=char(13);
tx2 ='AT+CMGF=1';
tx3 ='AT+CSCS="GSM"';
tx4 ='AT+CMGS="=+919844806008"';
tx5 ='water';
tx6=char(26);
fprintf(ss,'%s',tx);
fprintf(ss,'%s',tx1);
pause(1);
fprintf(ss,'%s',tx2);
fprintf(ss,'%s',tx1);
pause(1);
fprintf(ss,'%s',tx3);
fprintf(ss,'%s',tx1);
pause(1);
fprintf(ss,'%s',tx4);
fprintf(ss,'%s',tx1);
pause(1);
fprintf(ss,'%s',tx5);
pause(1);
fprintf(ss,'%s',tx6);
  1 comentario
Van Basten
Van Basten el 23 de Jun. de 2020
which gsm module are you using?
im using sim900a in algeria bought from amazon.fr but it's not responding to any AT commands. any help?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre PHY Components en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by