Using AT Command Tester with Arduino boards

AT Commands tester can be used with Arduino GPRS or 3G shields. The arduino board with the GPRS shield is connected to the computer through a USB cable.

Arduino Uno

Generally the processor on the arduino board will connect to the GPRS modem. In order to use the AT Command Tester, the computer should connect to the GPRS modem through the arduino’s USB interface. The following sketch will set that up on the Arduino Uno boards.Download the sketch through the Arduino IDE. Please verify the baud rate setting in the sketch.

—————————————————————————————————————————
//Serial Relay – Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART

#include

SoftwareSerial mySerial(2,3);

void setup()
{
Serial.begin(19200);
//Serial.println(“Begin”);
mySerial.begin(19200);

}

void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());

}

Arduino Leonardo, Arduino Mega 2560, Auduino Mega ADK

Use the following sketch for other Arduino  boards. Please check the baud rate of the modem shield.

—————————————————————————————————————————
//Serial Relay – Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART

#include

SoftwareSerial mySerial(10,11);

void setup()
{
Serial.begin(19200);

while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
//Serial.println(“Begin”);
mySerial.begin(19200);

}

void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());

}

————————————————————————————————————————

However depending on the GPRS shield design for Arduino, vendors may also provide specific sketch to connect the computer directly to the GPRS sheild. Please use the vendor’s GPRS shield documentation or email for support.