Getting ready

The easiest way to connect to Raspberry Pi via a serial protocol will depend on whether your computer has a built-in serial port or not. The serial connection, software, and test setup are described in the following three steps:

  1. Create an RS232 serial connection between your computer and Raspberry Pi. For this, you need one of the following setups:
    • If your computer has a built-in serial port available, you can use a Null-Modem cable with an RS232-to-USB adaptor to connect to Raspberry Pi:
RS232-to-USB adapter

A Null-Modem is a serial cable/adapter that has the TX and RX wires crossed over so that one side is connected ...

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.