david_1234
Posts: 328
Joined: Mon Jan 01, 2018 2:14 pm

using PI with 2 serail ports?

Mon Aug 06, 2018 2:39 pm

Hello ,
wanted to know
I want to be able to read data from 2 serail devices at the same time
does the PI have this option?
open 2 serail ports at the same time ? or does it have only 1 ?


Thanks ,

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: using PI with 2 serail ports?

Mon Aug 06, 2018 3:06 pm

On the standard Pi you can use 1 onboard UART at a time.
You *can* add USB serial devices.

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: using PI with 2 serail ports?

Mon Aug 06, 2018 3:09 pm

The SoC on the Pi has two UARTs however only 1 is available for general use.
(Insert lots of complex stuff about the other being used by the Bluetooth/Wifi that you probably don't care about)

You can however add a USB to UART converter or use a SPI/I2C UART to give you an extra port.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

PiGraham
Posts: 3929
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: using PI with 2 serail ports?

Mon Aug 06, 2018 4:26 pm

USB serial interfaces are cheap and effective to I'd go that way, but DMA controlled software serial on any gpio pin is another option.

viewtopic.php?t=35544#p446164

http://abyz.me.uk/rpi/pigpio/cif.html#gpioWaveAddSerial

Return to “Beginners”