Tutorial.TwoPortReceive History

Show minor edits - Show changes to markup

September 03, 2015, at 10:47 AM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Changed lines 52-54 from:
  • MultiSerialMega: use two of the serial ports available on the Arduino Mega.
  • Serial Call Response: send multiple vairables using a call-and-response (handshaking) method.
  • Serial Call Response ASCII: send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
to:
  • SoftwareSerialExample - Two serial ports that route data between them mirroring TX and RX.
  • MultiSerialMega - Use two of the serial ports available on the Arduino and Genuino Mega.
  • Serial Call Response - Send multiple vairables using a call-and-response (handshaking) method.
  • Serial Call Response ASCII - Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
Changed lines 57-58 from:
 Last revision 2015/08/19 by SM 
to:

Last revision 2015/08/19 by SM

August 19, 2015, at 12:11 PM by Simone Maiocchi -
Changed lines 49-50 from:
to:


Last revision 2015/08/19 by SM

August 19, 2015, at 12:10 PM by Simone Maiocchi -
Changed lines 9-13 from:

Arduinos have built in support for serial communication on pins 0 and 1, but what if you need more serial ports? The SoftwareSerial Library has been developed to allow serial communication to take place on the other digital pins of your Arduino, using software to replicate the functionality of the hardwired RX and TX lines. This can be extremely helpful when the need arises to communicate with two serial enabled devices, or to talk with just one device while leaving the main serial port open for debugging purpose.

In the example below, digital pins 2 and 4 on your Arduino are used as virtual RX serial lines. Pins 3 and 5 are virtual TX lines. The Arduino listens on one virtual port (portOne) until it receives a "?" character. After that, it listens on the second virtual port (portTwo).

to:

Arduino and Genuino boards have built in support for serial communication on pins 0 and 1, but what if you need more serial ports? The SoftwareSerial Library has been developed to allow serial communication to take place on the other digital pins of your boards, using software to replicate the functionality of the hardwired RX and TX lines. This can be extremely helpful when the need arises to communicate with two serial enabled devices, or to talk with just one device while leaving the main serial port open for debugging purpose.

In the example below, digital pins 2 and 4 on your Arduino or Genuino board are used as virtual RX serial lines. Pins 3 and 5 are virtual TX lines. The board listens on one virtual port (portOne) until it receives a "?" character. After that, it listens on the second virtual port (portTwo).

Changed line 16 from:
  • Arduino Board
to:
  • Arduino or Genuino Board
Changed lines 21-23 from:

There is no circuit for this example. Make sure that your Arduino is attached to your computer via USB to enable serial communication.

to:

There is no circuit for this example. Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).

Added lines 26-31:

Schematics

image developed using Fritzing. For more circuit examples, see the Fritzing project page

Added line 34:
Changed line 38 from:
to:
August 19, 2015, at 11:00 AM by Simone Maiocchi -
Changed lines 1-4 from:

Examples > Software Serial Library

Two Port Receive

to:
December 01, 2011, at 02:50 PM by Scott Fitzgerald -
Changed line 19 from:
to:
November 16, 2011, at 04:40 AM by Scott Fitzgerald -
Changed line 27 from:
to:
September 14, 2011, at 09:03 PM by Scott Fitzgerald -
Changed lines 7-9 from:

In the example below, digital pins 2 and 4 on your Arduino are used as virtual RX serial lines. Pins 3 and 5 are virtual TX lines. The Arduino listens on one virtual port (ss) until it receives a "?" character. After that, it listens on the second virtual port (ss2).

to:

In the example below, digital pins 2 and 4 on your Arduino are used as virtual RX serial lines. Pins 3 and 5 are virtual TX lines. The Arduino listens on one virtual port (portOne) until it receives a "?" character. After that, it listens on the second virtual port (portTwo).

September 14, 2011, at 09:01 PM by Scott Fitzgerald -
Added lines 1-38:

Share