Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a "little" problem with a couple of devices on a Arduino Pro Mini.

I use these devices (Sim800L GSM and Adafruit GPS shields) throught 2 SoftwareSerial objects; individually they works fine, but together there are a lot of problems to get messages.

I tried to put the ports in listen() individually, but without great results; from Arduino documentation I understood that there is just one serial buffer shared among SoftwareSerial objects; so, when GPS starts to push its messages, GSM data are continuously overwritten.

I did a lot of tries, but I'm new in Arduino world; I did not obtained any results.

Any ideas? Anyone already saw this problem?

Thanks in advance

share|improve this question
    
From the SoftwareSerial webpage: If using multiple software serial ports, only one can receive data at a time.. So.. You can't listen from both serials. Use a hardware serial and a software serial, or better two hardware serials, Or take the source code of the software serial, understand how it works, rewrite it to handle two rx and, possibly, share it when it works – frarugi87 Mar 3 at 10:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.