I'm using the Quectel M10 GPRS shield on Uno. I want to send AT commands from my PC. Below example shows how to use the SoftwareSerial library to create a serial link between computer and the GPRS modem.
//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.h>
SoftwareSerial mySerial(2,3);
void setup()
{
mySerial.begin(19200); // the GPRS baud rate
Serial.begin(19200); // the GPRS baud rate
}
void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
When I try above, I dont see anything back from the GPRS shield.
If I change this,
SoftwareSerial mySerial(2,3);
I could see that AT command is sent, but i'm not getting any response. I've just started using Arduino. Any help is appreciated.