ilikecats567 / gsm-shield-arduino

Automatically exported from code.google.com/p/gsm-shield-arduino
0 stars 0 forks source link

How to handle multiple SoftwareSerial? #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a question here about multiple SoftwareSerial.
Based on the SoftwareSerial library, Using Multiple Instances section, 
http://arduiniana.org/libraries/newsoftserial/
If I am using the Sim900 GSM shield and also a serial thermometer, it seems to 
use .listen() to active GSM or thermometer.
But how can I do this since the SoftSerial port define is already in the 
GSM.cpp?
Have you guys tried to use the GSM library and another SoftwareSerial device at 
the same time?

Original issue reported on code.google.com by luruoz...@gmail.com on 4 Apr 2012 at 4:26

GoogleCodeExporter commented 9 years ago
Are you using an Arduino Mega to do this? Because the Arduino Uno supports only 
2 pin for interrupts and each SoftSerial uses 2 interrupts pin.

Original comment by martines...@gmail.com on 5 Apr 2012 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by martines...@gmail.com on 23 Apr 2012 at 6:04

GoogleCodeExporter commented 9 years ago
Sorry for replying this late. I am using Arduino Uno.
The problem is I cannot use the gsm library if I have another device also use 
soft serial. 

Original comment by luruoz...@gmail.com on 23 Apr 2012 at 7:06

GoogleCodeExporter commented 9 years ago
No prob ;) However it's normal, you cannot use more then one SoftwareSerial on 
Uno. Because SoftwareSerial uses pins (two, RX and TX) that support change 
interrupt. Unfortunately Arduino Uno has only two pins that support change 
interrupt.

Original comment by martines...@gmail.com on 23 Apr 2012 at 7:29

GoogleCodeExporter commented 9 years ago
Are you sure? While I believe I can use more than one SoftwareSerial on Uno. 
For example, I use Digital Pin 7 and 8 with SIM900 and Pin 5 and 6 with Xbee, 
and I use .listen() to active SIM900 or Xbee. It is just I cannot use your 
library, I just use AT Command. 
You can see the description of SoftwareSerial here 
http://arduiniana.org/libraries/newsoftserial/ 

Original comment by luruoz...@gmail.com on 23 Apr 2012 at 7:45

GoogleCodeExporter commented 9 years ago
luruoz did you get any success. I am having the exact same problem. I have 
Arduino uno r3 along with GPRS shield. But I couldn't find any solution yet. 
Martiens can you offer some other way to overcome this problem? Guys let us 
know...

Original comment by mail4ha...@gmail.com on 1 Nov 2012 at 9:44

GoogleCodeExporter commented 9 years ago
I did not make it work. I have to use the AT Command. I would like to use the 
gsm library, it is simple and nice, but it did not let me to use multiple 
SoftwareSerial. I have not played with the library since Apr, I don't know if 
they update or not.

Original comment by luruoz...@gmail.com on 1 Nov 2012 at 10:03

GoogleCodeExporter commented 9 years ago
Hi guys, I've the same problem.. i want communicate with a GPS module and GSM 
shield , i can obtain the sentences from the GPS module and send and receive 
SMS properly, but i can't make it work together!.. Any news on this issue?

Original comment by frithmat...@gmail.com on 31 Dec 2012 at 9:38

GoogleCodeExporter commented 9 years ago
This issue section is not longer supported.
Please check the support page www.gsmlib.org 

Original comment by martines...@gmail.com on 6 Jul 2013 at 11:27