How do I use UART serial port on the Pi-2 bus?
#2
(12-08-2016, 09:19 PM)SvdSinner Wrote: How do I reference the UART pins on the PI 2 header (pins 8 and 10) to start a serial session from the command line?  I'd like to use GNU Screen, if possible.  I'm guessing something like :
>$ screen /dev/ttySomethingOrAnother 115200

I'm a newb to the P64, and this is my first time trying to communicate with a peripheral.

Do I need to configure the pins to use their UART function?  If so, how?  

(If there are better Rx/Tx pins to connect to my device, I'm open to that.  I just picked those pins from an example on connecting UART to the RPi)

Feel free to point me to any docs on the subject.  (I'm still learning where to search for Pine64 info.)

You're on the right track. You also need to connect Ground - you can use pin 4 for that. That makes it easy to remember pins 4, 6 and 8 are UART2, so the command would be:

>$ screen /dev/ttyS2 115200

If you're using a USB UART adapter make sure it's set up to run on 3.3 volts.
  Reply


Messages In This Thread
RE: How do I use UART serial port on the Pi-2 bus? - by psychedup - 12-08-2016, 10:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine64 / V 13x Serial Port wrong permissions /ttyUSB0 maxtox 1 3,330 10-14-2016, 11:33 PM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 3 Guest(s)