Difference between revisions of "Raspberry Pi Serial TroubleShooting"

From Protoneer - Wiki
Jump to: navigation, search
Line 5: Line 5:
  
 
*Checking that hardware serial pins are working on a Raspberry Pi.
 
*Checking that hardware serial pins are working on a Raspberry Pi.
** Connect a jumper between Pin 8 and 10 creating a loop-back.(Basically we are connecting the serial output pin to the serial input pin)
+
** Setup
** Open a terminal Program like Minicom connecting to serila port /dev/ttyAMA0
+
*** Connect a jumper between Pin 8 and 10 creating a loop-back.(Basically we are connecting the serial output pin to the serial input pin)
** Test it by typing. All input should be echoed back if it is working correctly.
+
*** Open a terminal Program like Minicom connecting to serila port /dev/ttyAMA0
 +
*** Test it by typing. All input should be echoed back if it is working correctly.
 +
** Things to consider
 +
*** Raspberry Pi B+ Version 1 or 2 is default setup to use /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.

Revision as of 14:18, 22 November 2016

Pin 8 is TX Pin 10 is RX

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

  • Checking that hardware serial pins are working on a Raspberry Pi.
    • Setup
      • Connect a jumper between Pin 8 and 10 creating a loop-back.(Basically we are connecting the serial output pin to the serial input pin)
      • Open a terminal Program like Minicom connecting to serila port /dev/ttyAMA0
      • Test it by typing. All input should be echoed back if it is working correctly.
    • Things to consider
      • Raspberry Pi B+ Version 1 or 2 is default setup to use /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.