Go Down

Topic: A6 gprs/gsm (Read 38318 times) previous topic - next topic

john1944

Problems getting the A6 to work. I'm using Elecrow shield on a Uno. 

Before destroying something are the following points correct:

1. With the Uno,  SoftwareSerial is required at 11500 baud.

2. power_key must be connected to +5V for a couple of seconds.  The Elecrow board as a push button to do this.  It is also tied to D7 which does nothing.  Am I correct that the full 5V are needed so an Arduino output is not adequate.  Is it also OK to permanently hardwire this connection so there is no need to press a button?

3. The Uno has an insufficient power supply for the A6.  A separate 2A source is needed.

Thanks


dannable

Take a look at the page in my signature. Whilst it's not A6 specific it does answer a lot of your questions.
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Lou

Hello,

I had a bad experience with au Uno+A6 modem in its board version (not new A6 Arduino Shield as you own), regarding SoftwareSerial issues (impossible to get any reply back from AT commands sent...):
did you meet these problems (or any other) with your Uno+A6 shield ?

Please let us know :)

Have a good day.

Lou.
Lou

lavos3rd

Here's a website where someone managed to work the A6+Uno Combo.

JAG Electronics

davidgamonpadilla

Why can not I connect to the A6 module through the serial port pin 0 and 1?

unnikartha

I am trying to use A6 module to post data to IBM watson IoT. Which is the best place to get an example?

Reska

#21
Apr 25, 2018, 05:54 pm Last Edit: Apr 26, 2018, 09:22 am by Reska
Hello everyone,

I have problem with my GSM A6 Module, the program runs well but when I unplug and plug the power supply of the module and arduino board, it does not work again ! until I upload a sketch which use serial monitor to communicate with the module by AT command, and then I upload again my program to work again ! it is problem of synchronization between arduino and the module at the beginning when powered up ? what would make the module works olnly one tme until it is powered off ? please can you help me guys !
thankx !

this is the program based on a youtube channel :

 
#include <SoftwareSerial.h>
 SoftwareSerial mySerial(10, 11);  // RX-Pin10, TX-Pin11
 unsigned char Buff[250];
 unsigned char BuffIndex;
 boolean Act = false;
 
 void setup()
 {
   //Serial.begin(4800);
mySerial.begin(9600);  
pinMode(9, OUTPUT);
digitalWrite(9,HIGH);    
   //Serial.println("GSM Tutorial, Valetron Systems @www.raviyp.com ");
   delay(3000);
   mySerial.println("AT+CMGF=1");
   delay(3000);
   mySerial.println("AT+CNMI=2,2,0,0,0");
   memset(Buff, '\0', 250);    // Initialize the string
   BuffIndex=5;
 }
 
void SMS_Marche() {

 mySerial.println("AT+CMGF=1");
 //mySerial.write(0x0D);  // hex equivalent of Carraige return    
 //mySerial.write(0x0A);  // hex equivalent of newline  
 delay(1000);
 mySerial.print("AT+CMGS=\"mynumber");
 mySerial.print(char(34));  // "
 mySerial.print(char(13));  // CR
 mySerial.print('\r');  // hex equivalent of newline
 delay(1000);
 mySerial.println("Moteur en marche");
 //mySerial.write(0x0D);  // hex equivalent of Carraige return    
 //mySerial.write(0x0A);  // hex equivalent of newline  
 delay(500);
 mySerial.println(char(26));  //ctrl_z
 //mySerial.write(0x0D);  // hex equivalent of Carraige return    
 //mySerial.write(0x0A);  // hex equivalent of newline  
}


 void SMS_Arret() {

 mySerial.println("AT+CMGF=1");
 //mySerial.write(0x0D);  // hex equivalent of Carraige return    
 //mySerial.write(0x0A);  // hex equivalent of newline
 delay(1000);
 mySerial.print("AT+CMGS=\"mynumber");
 mySerial.print(char(34));  // "
 mySerial.print(char(13));  // CR
 mySerial.print('\r');  // hex equivalent of newline
 delay(1000);
 mySerial.println("Moteur en Arret");
 //mySerial.write(0x0D);  // hex equivalent of Carraige return    
 //mySerial.write(0x0A);  // hex equivalent of newline  
 delay(500);
 mySerial.println(char(26));  //ctrl_z
 //mySerial.write(0x0D);  // hex equivalent of Carraige return    
 //mySerial.write(0x0A);  // hex equivalent of newline  
}  

 void loop()
 {

     while(1)
     {
         if(mySerial.available()>0)
         {
             Buff[BuffIndex] = mySerial.read();    
         
             if((Buff[BuffIndex-1] == 'O') && (Buff[BuffIndex] == 'n'))
             {
                 //Serial.print('\n');
                 //Serial.write(Buff[BuffIndex-1]);
                 //Serial.write(Buff[BuffIndex]);
                 Act=true;
                 if(Act==true)
                 {
                 SMS_Marche();
                 digitalWrite(9,LOW);
                 Act=false;  
                 }                    
             }
             
             if( (Buff[BuffIndex-2] == 'O') && (Buff[BuffIndex-1] == 'f') && (Buff[BuffIndex] == 'f'))
             {
                 //Serial.print('\n');
                 //Serial.write(Buff[BuffIndex-2]);
                 //Serial.write(Buff[BuffIndex-1]);
                 //Serial.write(Buff[BuffIndex]);
                 Act=false;
                 if(Act==false)
                 {
                 SMS_Arret();
                 digitalWrite(9,HIGH);
                 Act=true;  
                 }        
             }
 
             BuffIndex++;
             if(BuffIndex>250)
             {
                 BuffIndex=5;
             }
         }
     }
 
  delay(10);
 }

Balwinder23

Sir i have A6 GSM module and Arduino , please send me code for auto answeing a any call

Go Up