en:bpi-r2:debug-uart
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r2:debug-uart [2017/10/15 12:55] – frank | en:bpi-r2:debug-uart [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== BananaPi R2 - Debug-UART ====== | ||
+ | |||
+ | * USB2Serial-Adapter (e.g. CP2102 or FTDI, known problems with Profilic- and ch340g-Chipsets) | ||
+ | * using Uart-Pins (not 40-pin-connector) | ||
+ | * each TX => RX (r2 tx to rx of usb2serial, tx of usb2serial to r2 rx) | ||
+ | * application for PC: | ||
+ | * Linux: minicom | ||
+ | * Windows: putty | ||
+ | * settings: 115200 8N1 FlowControl: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | micro-usb-cp2102-adapter: | ||
+ | https:// | ||
+ | |||
+ | ===== configurating Putty ===== | ||
+ | |||
+ | Windows-driver for CP2102: https:// | ||
+ | {{ : | ||
+ | |||
+ | {{: | ||
+ | |||
+ | reg-file Putty-session (com-port must be changed): {{ : | ||
+ | |||
+ | ===== configurating minicom ===== | ||
+ | |||
+ | first get name of device: | ||
+ | grep ttyUSB / | ||
+ | Oct 15 12:44:59 Frank-Laptop kernel: [ 5113.456306] usb 3-1: cp210x converter now attached to ttyUSB0 | ||
+ | |||
+ | ls -l / | ||
+ | crw-rw---- 1 root dialout 188, 0 Mai 10 15:12 / | ||
+ | #add current user to group dialout (for access to tty-device) | ||
+ | sudo adduser $USER dialout | ||
+ | # | ||
+ | #show groups of the user | ||
+ | groups | ||
+ | frank adm dialout cdrom sudo dip plugdev lpadmin sambashare | ||
+ | |||
+ | Install minicom & setup | ||
+ | sudo apt-get install minicom | ||
+ | sudo minicom -s | ||
+ | |||
+ | +-----[configuration]------+ | ||
+ | | Filenames and paths | | ||
+ | | File transfer protocols | ||
+ | | Serial port setup | <<<<<<<<<<<< | ||
+ | | Modem and dialing | ||
+ | | Screen and keyboard | ||
+ | | Save setup as dfl | | ||
+ | | Save setup as.. | | ||
+ | | Exit | | ||
+ | | Exit from Minicom | ||
+ | +--------------------------+ | ||
+ | |||
+ | +-----------------------------------------------------------------------+ | ||
+ | | A - Serial Device | ||
+ | | B - Lockfile Location | ||
+ | | C - | ||
+ | | D - Callout Program | ||
+ | | E - Bps/ | ||
+ | | F - Hardware Flow Control : No | | ||
+ | | G - Software Flow Control : No | | ||
+ | | | | ||
+ | | Change which setting? | ||
+ | +-----------------------------------------------------------------------+ | ||
+ | |||
+ | * "save as .dfl" | ||
+ | * "Exit from Minicom" | ||
+ | |||
+ | now start minicom as user (without sudo) | ||
+ | |||
+ | exit with Ctrl+a,q or Ctrl+a,x | ||