Problem | Possible causes |
---|---|
Nothing at all shown on terminal emulator | Connected to wrong pins on GPIO header Faulty USB-serial cable or level shifter /boot/cmdline.txt and /etc/inittab have already been edited (see below) Flow control turned on in terminal emulator Wrong baud rate in terminal emulator |
Text appears corrupted | Wrong baud rate, parity, or data settings in terminal emulator Faulty level shifter |
Can receive but not send (nothing happens when you type) | Connected to wrong pins on GPIO header Flow control turned on in terminal emulator Faulty level shifter |
Problem | Possible causes |
---|---|
Python error 'No module named serial' | python-serial package not installed |
Python error '[Errno 13] Permission denied: '/dev/ttyAMA0' | User not in group 'dialout' getty is still running (from /etc/inittab) /dev/ttyAMA0 doesn't have rw access by group 'dialout' |
A printable version of Serial Programming is available. (edit it) |
A PDF version is available. December 21st, 2005, 177 pages, 819 KB (info) |