Login Using ADB

その後 setting up connections of Blade 3, you can log in to it on Windows, macOS, or Ubuntu using Android Debug Bridge (ADB), a serial communication tool, or via SSH.

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 Blade 3 using ADB. For details about login using a serial communication tool and via SSH, refer to the following documents:

準備

  • ブレード3ボード
  • A computer: Windows, macOS, or Ubuntu
  • USB-Cケーブル
  • USB PD 2.0をサポートするUSB-Cコネクタを片端に持つ電源アダプタ。

ステップ

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

USB ケーブルの一端をコーナーから離れた Blade 3 の USB ポートに接続し、もう一端をコンピュータに接続します。

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

お使いのコンピュータで動作しているオペレーティングシステムに従ってADBをインストールします。

ウィンドウズ

1. Download ADB and unzip the file to a customized installation directory, such as C:♪adb♪platform-tools.

2. Press ウィンドウズ+R オープン 走る. Then enter sysdm.cpl を押してください。 入る.

3. Choose 上級 > 環境変数 > システム変数 > パス.

4. Create a directory C:♪adb♪platform-tools アンダー パス.

macOSの場合

1. (Optional) Install Homebrew if it is not installed yet by running the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. Install ADB by running the following command:

brew install android-platform-tools

Ubuntuの場合

sudo apt update
sudo apt install android-tools-adb

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

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

adb devices
List of devices attached
I002TDRJNA    device
adb shell
root@blade3:/#

Other ADB commands

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

adb push

You can copy files from a local computer to Blade 3 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 Blade 3.

adb pull

You can copy files from Blade 3 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 Blade 3 to the Downloads folder of a local computer.

adb reboot

You can remotely reboot Blade 3 by running this command.

adb reboot

When upgrading the firmware of Blade 3, you can enable it to enter Loader mode by adding the loader parameter:

adb reboot loader

For details about upgrading the firmware of Blade 3 in Loader mode, see Upgrade firmware in Loader mode.

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

関連記事