Android Things:连接到串行调试控制台 [英] Android Things: Connect to Serial Debug Console

查看:98
本文介绍了Android Things:连接到串行调试控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试连接到

,并且没有机会键入任何字符。因此,我既看不到任何内核消息,也看不到设备外壳。



我缺少什么?

解决方案

Linux Ubuntu






内容是什么?




  • GNU屏幕

  • Minicom


    • minicom一线命令(简短答案)

    • minicom用户界面(详细的详细答案)







GNU屏幕



在终端中运行

  sudo屏幕port_name 115200 

请参见下文( 步骤2 )找出 port_name ,例如 / dev / ttyUSB0 。按 Ctrl-A ,然后按 K ,然后按 Y 退出屏幕。如果未安装,请执行 sudo apt-get install屏幕






Minicom




  • 简短回答



在终端中运行

  sudo minicom -b 115200 -o -D port_name 

请参见下文(第2步)以找出 port_name ,例如 / dev / ttyUSB0 。按 Ctrl-A ,然后按 X 退出 minicom




  • 长答案(UI)



minicom 应该正确配置才能打开连接。常规步骤如下:


  1. 安装 minicom with

      sudo apt-get install minicom 




  2. 其中 ttyUSB0 是委员会。


    1. 运行 minicom 并选择串行端口设置,并带有

        sudo minicom -s 


    您应该看到




    1. 检查(或设置) tty 连接的设置。确保 / dev / ttyX 与您的连接相对应,该连接是您在步骤2中获得的,而不是 X ,和 Bps / Par / Bits 按照


      1. 现在点击退出并且,如果一切都已正确设置,则连接应该正在运行。如果键入 ls 命令,您应该会看到 Android Thing 的根目录


      1. 对于退出 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:

      1. Install minicom with

        sudo apt-get install minicom
        

      2. 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.

      1. Run minicom and select the serial port setup with

        sudo minicom -s
        

      You should see

      1. 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 of X, and Bps/Par/Bits set as per the documentation.

      Similar to

      1. 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

      1. For exiting minicom hit Ctrl-A, then hit Q, then Yes:

      这篇关于Android Things:连接到串行调试控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆