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の場合
- (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
ウィンドウズ
- ダウンロード ADB tool and unzip it to a directory, such as
C:♪adb♪platform-tools
. - プレス Windows + R, enter
sysdm.cpl
, and press 入る. - クリック Advanced > Environment Variables > System Variables > Path.
- 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 push
, adb 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キットへのオペレーティングシステムのインストール.