I am trying to set up a project where I communicate a GPS module with a GSM module to send the data over the internet.
When trying each one separately, it works great. I am using the GPS module on ports (RX=10,TX=11,baud=9600) and the SIM900 (GSM) module on ports (RX=12,TX=13,baud=19200) from a Arduino Mega 2560.
However, if I put both together with the same configuration, it stops working.
The last test I did was to get the code where GPS module is working, and only adds SIM900.begin(19200) to it, and then it stopped with a error point problem in wiring.
That's strange, because this unique line breaks all the set up out.
You have free hardware serials, just don't use SoftwareSerial.
+1
Use Serial to the PC (pins 0 and 1). You're probably doing this already.
Use Serial1 to the GPS (pins 18 and 19).
Use Serial2 to the GSM (pins 20 and 21).
Serial3 is also available on pins 22 and 23.
Be sure to call Serial1.begin(...) or Serial2.begin(...) for the the ports you use.
Does anyone has any clue about what is going on?
If we saw your code, we could tell you. Be sure to use [code] tags around your code [/code].
You should also take a look at NeoGPS. It is smaller and faster than other libraries, and the examples are structured correctly so that you can add your modifications easily. The Troubleshooting section can help you understand the timing issues.