Arduino UNO + GPS/GPRS/GSM Module V3.0 -> switch between GPS/GSM

Hi,
i'm a new arduino user trying to do something like:
- Use the GPS mode to get the current location (coordinates) and compare it with a known one (static, defined in the code), if it's there (or relatively near), the module should switch to GSM mode and send a SMS saying that it arrived at the expected position.
Where I'm at:
- I can successfully use the code "How to Send a message" in GSM Mode via Arduino board (it can send the given message and it is delivered);
- I can successfully use the code "How to drive the GPS Mode via Arduino board" (it shows me the current coordinates like it should).
(both available at http://www.dfrobot.com/wiki/index.php/G ... U:TEL0051))
Problem:
- Can't combine the codes mentioned above. I've tried but apparently i fail to switch between the GPS and GSM mode like i need too, the START green led should be lit between the switch? It goes off when i disable the GPS and enable the GSM...
Any help will be appreciated,
Thanks in advance!
Thanks!!

Try this code, might give you some ideas:
https://github.com/DFRobot/GPS-GPRS-GSM ... RS_GPS.ino
Cheers!

But you could try a SoftwareSerial port first.
To bend the RX/TX pins and make sure they are disconnecting to the RX0/TX0 when you plug the shield on the board. With a jumper wire to connect them to the SoftwareSerial port.
It will just like a Leonardo.

Again thanks for the tip


As you has seen the the code "How to drive the GPS Mode via Arduino board"
You must will notice the last sample code: GPS Sample Code
There are two parts in the sample code: one is the library, one is the code.
It will make module work at two modes.
You could try it first.
