Serial console

Here, we introduce how to use UART board to connect Pi’s Serial console in your PC. We suppose Raspberry Pi is running Raspbian. The raspberry Pi by default uses serial port as a console port. If you disabled it before, you need enable it again.

Enable serial shell console

Login the pi, and run:

$ sudo raspi-config

Select Advance Options, and enable serial for shell and kernel

For Windows users

If you use a windows PC to connect your Pi console, you need first find out the serial port number that the UART board are using.

Find uart port number

Right click My Computer –> Device manager –> Ports

_images/DeviceManager.png

Putty is a popular free software for SSH and Telent, which also supports serial port.

Select

_images/putty_main.png
_images/putty_serial.png

For Linux users

Here we assume your PC is Debian. Steps for other Linux systems would be very similar.

First, let us add serial port access to your normal user and thus we do not need ‘root’ right to access it.

let us find out the group of /dev/ttyUSB0

$ ls -l /dev/ttyUSB0

In debian, it usually is dialout

Type id to check if your user name belong to dialout group,

$ id

If not, add dialout to your user name,

$ sudo usermod -a -G dialout Your_USER_Name

We recommend minicom or screen to connect to UART board.

Use Minicom

$ minicom -b 115200 -D /dev/ttyUSB0

Use screen

$ screen /dev/ttyUSB0 115200

Table Of Contents

Previous topic

Introduction

Next topic

Use UART for your own communication