Documentation

Serial Port

Use the Raspberry Pi™’s serial port

Functions

raspi Create connection to Raspberry Pi hardware
serialdev Create connection to serial device
read Read data from serial device
write Write data to serial device

Examples and How To

Use the Raspberry Pi Serial Port to Connect to a Device

This example shows how to create a connection to a serial device, write data to the device, and read data from the device.

Controlling a 4-Digit 7-Segment Display Using Serial Port

This example shows you how to use the serial UART on Raspberry Pi hardware to control a 4-digit 7-segment display.

Concepts

The Raspberry Pi Serial Port

Serial Port on Raspberry Pi Hardware

Troubleshooting

Troubleshoot the Raspberry Pi Serial Port

Troubleshoot Serial Port on Raspberry Pi Hardware

Featured Examples