Good day,
My name is Michael, I am asking you for help with an integration of a "GMS / GPRS / GPS Shield (B) module purchased by the company" WAVESHARE ". I use ARDUINO UNO as hardware.
To initialize the module, I have to press the "PWRKEY" button for 1s and after the "NET" LED flashes I must then press the "RESET" button. Only after this procedure can I start to control the GSM module with AT commands.
I wanted to understand if it was possible to initialize the GMS / GPRS / GPS Shield (B) module via the ARDUINO software.
I am attaching some pictures.
I thank you in advance.
Michael
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
String comdata = "";
void Call_Phone(void);
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// set the data rate for the SoftwareSerial port
mySerial.begin(4800);
delay(200);
}
void loop() // run over and over
{
/*delay(2000);
mySerial.listen();
while(1)
{
while(mySerial.available()>0)
{
Serial.write(mySerial.read());
}
while(Serial.available())
{
mySerial.write(Serial.read()); //Arduino send the sim808 feedback to computer
}*/
int inByte = Serial.read();
switch (inByte) {
case 'a':
Serial.println("CALL");
Call_Phone();
break;
}
}
void Call_Phone(void)//sned message
{
mySerial.println("AT");//Send AT command
delay(500);
//Make a phone call
mySerial.println("ATD+39333333333;");//Change the receiver phone number
delay(200);
}