ADBを使ったログイン

Android Debug Bridge (ADB) is a command-line tool that enables a variety of functions, such as tracking system logs, uploading files, and downloading files.

This document describes how to log in to Mixtile Edge 2 using ADB. 

準備

  • A Mixtile Edge 2 board
  • A computer that runs Windows, macOS, or Linux
  • USB-Cケーブル

ステップ

ステップ1.ハードウェアの接続

Connect one end of the USB-C cable to Mixtile Edge 2’s USB port and the other end to your computer.

ステップ2.ADBをインストールする

On Linux

sudo apt update
sudo apt install android-tools-adb

macOSの場合

  1. (Optional) Install Homebrew if it is not installed yet:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. Install ADB:

brew install android-platform-tools

ウィンドウズ

  1. ダウンロード ADB tool and unzip it to a directory, such as C:♪adb♪platform-tools.
  2. プレス Windows + R, enter sysdm.cpl, and press 入る.
  3. クリック Advanced > Environment Variables > System Variables > Path.
  4. Create a new C:♪adb♪platform-tools アンダー パス.

ステップ 3.ADB接続ステータスを確認する

Run either of the following ADB commands to verify whether the ADB connection is successful:

adb devices
List of devices attached
IOO2TDRJNA      device
adb shell
mixtile_edge2:/ $
mixtile_edge2:/ $
mixtile_edge2:/ $

一般的なADBコマンド

Besides adb devices そして adb shell, you can interact with Mixtile Edge 2 through ADB by running other ADB commands, such as adb pushadb pullそして adb reboot.

adb push

You can copy files from a local computer to Mixtile Edge 2 by running this command. The format is as follows:

adb push <local> <remote>

例えば、こうだ:

adb push /Users/mia/Documents/test_1.txt /home/mixtile

This copies the test_1.txt file from a local computer to the mixtile folder of Mixtile Edge 2.

adb pull

You can copy files from Mixtile Edge 2 to a local computer by running this command. The format is as follows:

adb pull <remote> <local> 

例えば、こうだ:

adb pull /home/mixtile/test_2.txt  /Users/mia/Downloads

This copies the test_2.txt file from Mixtile Edge 2 to the Downloads folder of a local computer.

adb reboot

You can remotely reboot Mixtile Edge 2 by running this command.

adb reboot

When upgrading the firmware of Mixtile Edge 2, you can enable it to enter Loader mode by adding the loader parameter:

adb reboot loader

For details, see Mixtile Edge 2キットへのオペレーティングシステムのインストール.

この記事は役に立ちましたか?

関連記事