Android Things:连接到串行调试控制台 [英] Android Things: Connect to Serial Debug Console
问题描述
我一直在尝试连接到 ,并且没有机会键入任何字符。因此,我既看不到任何内核消息,也看不到设备外壳。 我缺少什么? 内容是什么? 在终端中运行 请参见下文( 步骤2 )找出 在终端中运行 请参见下文(第2步)以找出 安装 其中 运行 您应该看到
Linux ( Ubuntu )
GNU屏幕
sudo屏幕port_name 115200
port_name
,例如 / dev / ttyUSB0
。按 Ctrl-A ,然后按 K ,然后按 Y 退出屏幕
。如果未安装,请执行 sudo apt-get install屏幕
。
Minicom
sudo minicom -b 115200 -o -D port_name
port_name
,例如 / dev / ttyUSB0
。按 Ctrl-A ,然后按 X 退出 minicom
。
minicom
应该正确配置才能打开连接。常规步骤如下:
minicom
with
sudo apt-get install minicom
ttyUSB0
是委员会。
minicom
并选择串行端口设置,并带有
sudo minicom -s
/ dev / ttyX
与您的连接相对应,该连接是您在步骤2中获得的,而不是 X
,和 Bps / Par / Bits
按照
- 现在点击退出并且,如果一切都已正确设置,则连接应该正在运行。如果键入
ls
命令,您应该会看到 Android Thing 的根目录
- 对于退出
minicom
,按 Ctrl-A ,然后按 Q ,然后是:
I've been trying to connect to the serial console of a Raspberry Pi 3 with Android Things using USB to TTL cable from my Linux (Ubuntu) machine. Despite I connected the cable as per the documentation, all I get when executing the minicom
command is the following
with no chance to type in any character. So I neither can see any kernel messages nor shell into the device.
What am I missing?
Linux (Ubuntu)
What's in?
- GNU Screen
- Minicom
- minicom one-line-command (short answer)
- minicom UI (long answer, detailed)
GNU Screen
Run in terminal
sudo screen port_name 115200
See below (step 2) to find out port_name
, e.g /dev/ttyUSB0
. Hit Ctrl-A, then K, then Y to exit screen
. Execute sudo apt-get install screen
if not installed.
Minicom
- Short answer
Run in terminal
sudo minicom -b 115200 -o -D port_name
See below (step 2) to find out port_name
, e.g /dev/ttyUSB0
. Hit Ctrl-A, then X to exit minicom
.
- Long answer (UI)
minicom
should be properly configured in order to open the connection. The general steps are as follows:
Install
minicom
withsudo apt-get install minicom
Connect Rpi3 with your host machine using USB-to-TTL cable and open the terminal. Find the tty connections with
dmesg | grep -e tty
In my case I get
where ttyUSB0
is the board.
Run
minicom
and select the serial port setup withsudo minicom -s
You should see
- Check (or set) the settings for the tty connection. Make sure that
/dev/ttyX
corresponds to your connection, the one you get in the step 2 instead ofX
, andBps/Par/Bits
set as per the documentation.
Similar to
- Now hit Exit and, if everything had been properly set up, the connection should be running. If you type the
ls
command you should see Android Thing's root directory
- For exiting
minicom
hit Ctrl-A, then hit Q, then Yes:
这篇关于Android Things:连接到串行调试控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!