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.
Preparations
- A Mixtile Edge 2 board
- A computer that runs Windows, macOS, or Linux
- A USB-C cable
Steps
Step 1. Connect hardware
Connect one end of the USB-C cable to Mixtile Edge 2’s USB port and the other end to your computer.
Step 2. Install ADB
On Linux
sudo apt update
sudo apt install android-tools-adb
On 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
On Windows
- Download the ADB tool and unzip it to a directory, such as
C:\adb\platform-tools
. - Press Windows + R, enter
sysdm.cpl
, and press Enter. - Click Advanced > Environment Variables > System Variables > Path.
- Create a new
C:\adb\platform-tools
under Path.
Step 3. Verify ADB connection status
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:/ $
Common ADB commands
Besides adb devices
and adb shell
, you can interact with Mixtile Edge 2 through ADB by running other ADB commands, such as adb push
, adb pull
, and 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>
For example:
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>
For example:
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 Installing an Operating System on Mixtile Edge 2 Kit.