Serial console on Raspberry Pi

When operating the Pi headless in unknown environments often the only way to access it is to connect via ssh. But what to do if the Pi does not work in that environment better said is not accessible via ssh because it did not get an IP address for example. You don’t want to carry a HDMI-capable monitor and a USB keyboard to avoid that situation!

For my Arduino projects I have some FTDI breakout boards which have have level shifters included (you can switch between 5V and 3.3V and the Pis need 3.3V TTL).

After enabling the serial console with raspi-config and rebooting you’ll get the kernel output while booting and after that a login prompt. At the other end you can use minicom or screen to read/write serial data, I prefer screen.

IMG_20160305_142851500 IMG_20160305_142717933 IMG_20160305_142659107

The connections I made:  Pi pin 3 (GND) to FTDI GND, Pi pin 4 (TX) to FTDI RX and Pi pin 5 (RX) to FTDI TX.

 

Resources

http://eclipsesource.com/blogs/2012/10/17/serial-communication-in-java-with-raspberry-pi-and-rxtx/

https://wolfpaulus.com/journal/embedded/raspberry_serial/

Advertisements
This entry was posted in Hardware, Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s