Multiple SoftwareSerial Arduino UNO

Hi,

I'm currently writing a piece of code that uses the Adafruit GPS Breakout and a SeeedStudio GPRS shield to send data over the internet. Both shields uses SoftwareSerial to communicate with the board and I read that only one SoftwareSerial connection can be used at a time. Is there a way to "pause" the GPS when using GPRS ?

Thanks,
Cheers!

If using multiple software serial ports, only one can receive data at a time, but the listen() method lets you switch between instances of SoftwareSerial. See http://arduino.cc/en/Reference/SoftwareSerialListen

The listen() method will not stop data being received on other instances being discarded, but it may help ensure that you know what you are listening to. If the devices sending the data have any form of flow control then it would be possible to stop one sending whilst you listened to another.

Thanks for your answer. I tried to work with the listen() method but it doesn't work because the GPS device hasn't a flow control system provided in its library, I tried to implement one but it's to harsh.

I finally resolved my problem talking with one device with SoftwareSerial and the other one with Serial... it's not neat but it works...