Skip to content

Commit 4454267

Browse files
authored
Merge pull request #2703 from arduino/karlsoderby/adb-unoq
[PXCT-1538] Move ADB instructions > new tutorial on UNO Q hw page
2 parents 96dc251 + da8b018 commit 4454267

File tree

4 files changed

+92
-50
lines changed

4 files changed

+92
-50
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
title: Connect to UNO Q via ADB
3+
description: Learn how to connect to the UNO Q's shell via ADB.
4+
author: Karl Söderby
5+
tags: [UNO Q, ADB, Linux]
6+
---
7+
8+
The Linux OS running on the [Arduino UNO Q](https://store.arduino.cc/products/uno-q) can be accessed over USB, using a tool called Android Debug Bridge (ADB).
9+
10+
ADB is a tool that you install on your computer, where you can access the board's shell and run operations on the system.
11+
12+
## Requirements
13+
14+
The following hardware is required:
15+
- [Arduino UNO Q](https://store.arduino.cc/products/uno-q)
16+
- [USB-C® type cable](https://store.arduino.cc/products/usb-cable2in1-type-c)
17+
18+
You will also need to have the following software installed on your OS:
19+
- [Android Debug Bridge](https://developer.android.com/tools/releases/platform-tools)
20+
21+
## Installing ADB (Host Computer)
22+
23+
The ADB command line tool is supported on MacOS, Windows & Linux. For more specific instructions for your OS, see the sections below.
24+
25+
***You can find more information and download the latest version for the tool for all operating systems directly from the [Android SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools#downloads) page.***
26+
27+
### MacOS
28+
29+
To install the ADB tools on **MacOS**, we can use `homebrew`. Open the terminal and run the following command:
30+
31+
```bash
32+
brew install android-platform-tools
33+
```
34+
35+
To verify the tool is installed, run `adb version`.
36+
37+
### Windows
38+
39+
To install the ADB tools on **Windows**, we can use `winget`, supported on Windows 11 and on some earlier Windows 10 versions.
40+
41+
Open a terminal and run the following:
42+
43+
```bash
44+
winget install Google.PlatformTools
45+
```
46+
47+
To verify the tool is installed, run `adb version`.
48+
49+
### Linux
50+
51+
To install ADB tools on a **Debian/Ubuntu Linux distribution**, open a terminal and run the following command:
52+
53+
```bash
54+
sudo apt-get install android-sdk-platform-tools
55+
```
56+
57+
To verify the tool is installed, run `adb version`.
58+
59+
## Connect via ADB
60+
61+
1. Connect the UNO Q board to your computer via USB-C®.
62+
2. Run `adb devices` in the terminal. This should list the connected devices.
63+
64+
![Connected devices](assets/connected-devices.png)
65+
66+
>Note that it may take up to a minute for the device to appear after connecting it.
67+
68+
3. Run `adb shell`. If you have not set up your board prior to this via the Arduino App Lab, you may be required to provide a password, which is `arduino`.
69+
4. You should now be inside your board's terminal.
70+
71+
![Terminal on the board.](assets/board-terminal.png)
72+
73+
5. You are now able to run commands via the terminal on your board! To exit from the terminal, simply type `exit`.
74+
75+
## Summary
76+
77+
Connecting via ADB is an easy way to gain access to your board's shell, allowing you to perform actions such as installing packages, editing files and running scripts.
78+
79+
The `arduino-app-cli` can also be used directly via the shell, allowing you to launch Apps directly from the command line. You can read more about that in the link below:
80+
- [Arduino App CLI: Manage Apps from the Command Line](/software/app-lab/tutorials/cli/)
87.4 KB
Loading
84.2 KB
Loading

content/software/app-lab/tutorials/03.cli/apps-lab-cli.md

Lines changed: 12 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -15,51 +15,15 @@ The following hardware is required:
1515
- [Arduino UNO Q](https://store.arduino.cc/products/uno-q)
1616
- [USB-C® type cable](https://store.arduino.cc/products/usb-cable2in1-type-c)
1717

18-
You will also need to have the following software installed:
18+
To access the board via `adb` (over USB), you will also need to have the following software installed:
1919
- [Android Debug Bridge](https://developer.android.com/tools/releases/platform-tools)
2020

21-
## Installing ADB (Host Computer)
22-
23-
***Note: if you are using the board as a Single Board Computer (SBC Mode (Preview) without a host computer), you do not need to install ADB. You can run `arduino-app-cli` directly from the terminal.***
24-
25-
The ADB command line tool is supported on MacOS, Windows & Linux. For more specific instructions for your OS, see the sections below.
26-
27-
***You can find more information and download the latest version for the tool for all operating systems directly from the [Android SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools#downloads) page.***
28-
29-
### MacOS
30-
31-
To install the ADB tools on **MacOS**, we can use `homebrew`. Open the terminal and run the following command:
32-
33-
```sh
34-
brew install android-platform-tools
35-
```
36-
37-
To verify the tool is installed, run `adb version`.
38-
39-
### Windows
40-
41-
To install the ADB tools on **Windows**, we can use `winget`, supported on Windows 11 and on some earlier Windows 10 versions.
42-
43-
Open a terminal and run the following:
44-
45-
```sh
46-
winget install Google.PlatformTools
47-
```
48-
49-
To verify the tool is installed, run `adb version`.
50-
51-
### Linux
52-
53-
To install ADB tools on a **Debian/Ubuntu Linux distribution**, open a terminal and run the following command:
54-
55-
```sh
56-
sudo apt-get install android-sdk-platform-tools
57-
```
58-
59-
To verify the tool is installed, run `adb version`.
21+
You can also access the board via SSH, which is typically installed on your system by default.
6022

6123
## Connect via ADB
6224

25+
***To learn more about setting up `adb`, check out the [Connect to UNO Q via ADB](/tutorials/uno-q/adb/) tutorial. This guide will walk you through the installation steps.***
26+
6327
1. Connect the UNO Q board to your computer via USB-C.
6428
2. Run `adb devices` in the terminal. This should list the connected devices.
6529

@@ -76,7 +40,7 @@ To verify the tool is installed, run `adb version`.
7640

7741
## Connect via SSH
7842

79-
***Note: to use SSH, the [first setup]() needs to be completed. This is done by connecting your board via USB, open the Arduino App Lab, and select the USB option. Here you will need to give your board a name, a new password as well as providing Wi-Fi® credentials. SSH will be automatically configured during this setup.***
43+
***Note: to use SSH, the [first setup](/software/app-lab/tutorials/getting-started#install--set-up-arduino-app-lab) needs to be completed. This is done by connecting your board via USB, open the Arduino App Lab, and select the USB option. Here you will need to give your board a name, a new password as well as providing Wi-Fi® credentials. SSH will be automatically configured during this setup.***
8044

8145
1. Open a terminal on your machine.
8246
2. Run `ssh arduino@<boardname>.local`
@@ -183,15 +147,6 @@ This will list all available Apps (including examples), and their status:
183147

184148
![List Apps.](assets/list-apps.png)
185149

186-
## Set Board Name
187-
188-
To set a board name using the `arduino-app-cli`, we can use the `set-name` command.
189-
190-
```sh
191-
arduino-app-cli board set-name "my-board"
192-
```
193-
194-
This will change the name of the board, which will take effect after resetting the board.
195150

196151
## System Configuration and Updates
197152

@@ -204,6 +159,13 @@ arduino-app-cli system update
204159
```
205160
This will prompt you to install any available updates.
206161

162+
To set the board name, use:
163+
164+
```sh
165+
arduino-app-cli system set-name "my-board"
166+
```
167+
This will change the name of the board, which will take effect after resetting the board.
168+
207169
To enable or disable the network mode, use:
208170

209171
```sh

0 commit comments

Comments
 (0)