Go Down

Topic: [SOLVED] help me juggle 2 Software Serial ports? (Read 1 time) previous topic - next topic

liuzengqiang

Jun 16, 2013, 06:39 am Last Edit: Jun 16, 2013, 06:44 am by liudr Reason: 1
I am trying to find out how to have two serial cameras hooked up to one Arduino UNO. Apparently according to this very short blurb only one Software Serial port is active at a time:

http://arduino.cc/en/Reference/SoftwareSerial

Under limitation number one.


Here is a function I'm curious about: isListening(). Is it going to help me juggling between two serial ports?

http://arduino.cc/en/Reference/SoftwareSerialIsListening

The reference is the least clear. Any help regarding juggling between two serial ports? Thanks.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

liuzengqiang

Answered my own question by googling. I bet some others will have the same question. It turns out there is a function in the library called listen(). You do port.listen() to make it the active port. I bet isListening() tells you whether this port is listening.

http://arduino.cc/en/Reference/SoftwareSerialListen

http://arduino.cc/en/Tutorial/TwoPortReceive
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

PaulS

Quote
I bet isListening() tells you whether this port is listening.

You'd win.
The art of getting good answers lies in asking good questions.

Go Up