Receive SMS example

First of all, sorry for the delay answering. Long holiday in Madrid.

And yes, things are a bit different in a Mega because interrupts are not the same and communications between modem and arduino have to change.

First, go to the library file called GSM3SoftSerial.cpp and uncomment the lines:

// These can be used in Arduino Mega
#define TXPIN 11
#define RXPIN 10
#define RXINT 4

Now you have to throw a couple of wires:

  • From the shield pin called "GSM TX" to pin number 10
  • From the shield pin called "GSM RX" to pin number 11

Now you should be able to execute the AT commands and see the answers. Please tell us how it is going.

If you move to UNO remember to take out the wires and comment again the lines.