Can't read sms using Thinker A7 communicate with Arduino


hi guy

i'm trying communicate ai thinker a7 module. on arduino uno r3 im using pin 7,pin 8 connect utxd & uaxd. when send sms phone module thinker 7, use arduino read sms.
my code bellow

code: [select]

#include <softwareserial.h>
#include <string.h>
char incoming_char = 0;
softwareserial cell(7, 8); //my shield uses these pins software serial.

void setup()
{
 serial.begin(115200);
 cell.begin(115200);
 delay(2000);
 serial.print("starting modem communication...");
 delay(12000);
 serial.print("ok\nintroduce @ commands:\n");
}

void loop()

{
 if(cell.available() > 0)
 {
   incoming_char=cell.read();
   
   if(incoming_char=="a"){
     serial.println("content of sms a"); //if sms contains "#" arduino looks commands follow.
     serial.println(incoming_char);

   }
   else
   {
      serial.println("difference a");
      serial.println(incoming_char);

   }
 }
}



but can't read sms when phone send sms. check on serial monitor. result same picture attached bellow


please me fix it. lot



Arduino Forum > Products > Arduino GSM Shield (Moderator: fabioc84) > Can't read sms using Thinker A7 communicate with Arduino


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts