Raspberry Pi Serial TroubleShooting

From Protoneer - Wiki
Jump to: navigation, search

Pin 8 is TX Pin 10 is RX

Raspberry-Pi-GPIO-Layout-Model-B-Plus-rotated.png

  • Checking that hardware serial pins are working and mapped to the correct device name.
    • Setup
      • Connect a jumper between Pin 8 and 10 creating a loopback.(Basically we are connecting the serial output pin to the serial input pin)
      • Open a terminal Program like Minicom connecting to the serial port.
      • Test it by typing. All input should be echoed(returned) back if it is working correctly.
    • Things to consider
      • Raspberry Pi B+ Version 1/2's default serial port is /dev/ttyAMA0
      • Raspberry Pi 3's is a bit harder to check as /dev/ttyAMA0 is now connected to the Bluetooth device and the serial port is setup for /dev/ttyS0. They have also introduced new alias /dev/serial0 to simplify future changes. There are also ways to make the RPi 3 act like the other Pi's making it harder to determine serial configurations.


Raspberry Pi Serial Loopback