Arduino Leonardo:
uses software serial so you have to include SoftwareSerial.h
Rx Pin= Digital Pin 7
Tx Pin= Digital Pin 8
GSM/GPRS Shield:
uses hadware serial
Rx Pin= D0
Tx Pin= D1
more informations at:
http://www.seeedstudio.com/wiki/GPRS_Shield_V1.0I have tried switching the cables and moving the jumper but nothing seems to work. Looking at your settings, I am a litte curious to how you communicate between the Leonardo and the GPRS if the Leonardo is connected to the SWserial pins but the GPRS is set in HWserial mode?
Some updates on the issue:
I have switched to an Arduino UNO, but the problem persists.
I have tested the SWserial ports on the GPRS shield with an external rs232->ftdi breakout board and they seem to work fine, both Rx and Tx. But still no luck with SWserial between the shield and the arduino.. As I wrote earlier the setup() function breaks and the arduino reboots, over and over again. I am using the following SoftwareSerial test code, which results in the GPRS shield receiving "Hello, world?" and the cumputer "Goodnight moon!" continously:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(7, 8); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(19200);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(19200);
mySerial.println("Hello, world?");
}
void loop() // run over and over
{
delay(1000);
/*
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
*/
}
Any ideas?