-
-
Notifications
You must be signed in to change notification settings - Fork 510
[PXCT-1538] Move ADB instructions > new tutorial on UNO Q hw page #2703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3660b92
init move adb section
karlsoderby 0673eef
first draft
karlsoderby 8b208af
update cli tutorial
karlsoderby 7f99101
Update apps-lab-cli.md
karlsoderby edf4580
Update adb.md
karlsoderby dc9b1f4
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt 4e12622
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt bd8d702
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt a0153b7
Update content/hardware/02.uno/boards/uno-q/tutorials/06.adb/adb.md
91volt fa152ee
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt d5faacf
Update content/hardware/02.uno/boards/uno-q/tutorials/06.adb/adb.md
91volt ffd73ef
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt 9901614
Update content/hardware/02.uno/boards/uno-q/tutorials/06.adb/adb.md
91volt 1562cc8
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt 272ad3f
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt 9da997d
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt bbf9bb8
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt 26f9c70
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt f58a1ee
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt ebe8220
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt 00ed026
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt 3866791
Update content/software/app-lab/tutorials/03.cli/apps-lab-cli.md
91volt fbeafaa
update from sh to bash code snippets
91volt 5f230b5
add link to first setup
91volt bf106bb
move set board name content within System config and updates section
91volt ae56e2b
fixed first setup link in app-lab-cli tutorial
91volt 71e86d9
getting start link fix v2
91volt 9b757f8
Fix getting starter app-lab link - def
91volt da8b018
add anchor to first setup link
91volt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
content/hardware/02.uno/boards/uno-q/tutorials/06.adb/adb.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,80 @@ | ||||||
| --- | ||||||
| title: Connect to UNO Q via ADB | ||||||
| description: Learn how to connect to the UNO Q's shell via ADB. | ||||||
| author: Karl Söderby | ||||||
| tags: [UNO Q, ADB, Linux] | ||||||
| --- | ||||||
|
|
||||||
| 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). | ||||||
|
|
||||||
| ADB is a tool that you install on your computer, where you can access the board's shell and run operations on the system. | ||||||
|
|
||||||
| ## Requirements | ||||||
|
|
||||||
| The following hardware is required: | ||||||
| - [Arduino UNO Q](https://store.arduino.cc/products/uno-q) | ||||||
| - [USB-C® type cable](https://store.arduino.cc/products/usb-cable2in1-type-c) | ||||||
|
|
||||||
| You will also need to have the following software installed on your OS: | ||||||
| - [Android Debug Bridge](https://developer.android.com/tools/releases/platform-tools) | ||||||
|
|
||||||
| ## Installing ADB (Host Computer) | ||||||
|
|
||||||
| The ADB command line tool is supported on MacOS, Windows & Linux. For more specific instructions for your OS, see the sections below. | ||||||
|
|
||||||
| ***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.*** | ||||||
|
|
||||||
| ### MacOS | ||||||
|
|
||||||
| To install the ADB tools on **MacOS**, we can use `homebrew`. Open the terminal and run the following command: | ||||||
|
|
||||||
| ``` | ||||||
| brew install android-platform-tools | ||||||
| ``` | ||||||
|
|
||||||
| To verify the tool is installed, run `adb version`. | ||||||
|
|
||||||
| ### Windows | ||||||
|
|
||||||
| To install the ADB tools on **Windows**, we can use `winget`, supported on Windows 11 and on some earlier Windows 10 versions. | ||||||
|
|
||||||
| Open a terminal and run the following: | ||||||
|
|
||||||
| ``` | ||||||
91volt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| winget install Google.PlatformTools | ||||||
| ``` | ||||||
|
|
||||||
| To verify the tool is installed, run `adb version`. | ||||||
|
|
||||||
| ### Linux | ||||||
|
|
||||||
| To install ADB tools on a **Debian/Ubuntu Linux distribution**, open a terminal and run the following command: | ||||||
|
|
||||||
| ``` | ||||||
91volt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| sudo apt-get install android-sdk-platform-tools | ||||||
| ``` | ||||||
|
|
||||||
| To verify the tool is installed, run `adb version`. | ||||||
|
|
||||||
| ## Connect via ADB | ||||||
|
|
||||||
| 1. Connect the UNO Q board to your computer via USB-C®. | ||||||
| 2. Run `adb devices` in the terminal. This should list the connected devices. | ||||||
|
|
||||||
|  | ||||||
|
|
||||||
| >Note that it may take up to a minute for the device to appear after connecting it. | ||||||
| 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`. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the board doesn't have a default password. The first time you try to do sudo or some other command that require the user password, you will be prompted to add a new one.
Suggested change
|
||||||
| 4. You should now be inside your board's terminal. | ||||||
|
|
||||||
|  | ||||||
|
|
||||||
| 5. You are now able to run commands via the terminal on your board! To exit from the terminal, simply type `exit`. | ||||||
|
|
||||||
| ## Summary | ||||||
|
|
||||||
| 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. | ||||||
|
|
||||||
| 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: | ||||||
| - [Arduino App CLI: Manage Apps from the Command Line](/software/app-lab/tutorials/cli/) | ||||||
Binary file added
BIN
+87.4 KB
content/hardware/02.uno/boards/uno-q/tutorials/06.adb/assets/board-terminal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+84.2 KB
content/hardware/02.uno/boards/uno-q/tutorials/06.adb/assets/connected-devices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.