USB serial connection to Raspian with systemd

Jump to: navigation, search
Revision as of 28 November 2017 at 23:31.
This is the thread's initial revision.

The page was a little vague on how to do this with my version of Raspian. My uname -a:

Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

My system uses systemd. This is what ended up working for me:

  1. I plugged a USB to female crossover serial cable into the Raspberry Pi
  2. With my Arch Linux PC, I plugged in a USB to male serial straight-through and plugged that into the female of the Pi's crossover
  3. Verify the /dev/ttyUSB* port (it was /dev/ttyUSB0 for me) on the RPi. Then enable a serial getty in Raspian: systemctl start serial-getty@ttyUSB0.service (if you want it to start at boot, do systemctl enable serial-getty@ttyUSB0.service)
  4. From my Arch Linux PC I was able to connect with minicom -D /dev/ttyUSB1

Just wanted to share in case this is helpful to someone else. I plan to use the built in serial port to control another device, but even if you don't this is a handy out of band connection to a RPi and/or lets you interact with your RPi's TTY console without a monitor and keyboard.

    16:31, 28 November 2017