embedded-trainings-2020/embedded-workshop-book/src/listing-usb-devices.md

30 lines
1 KiB
Markdown
Raw Normal View History

2020-07-13 11:48:24 +00:00
# Listing USB Devices
2020-07-15 10:27:02 +00:00
✅ To list all USB devices, run `usb-list`.
2020-07-13 11:48:24 +00:00
❗️ If you haven't yet installed `usb-list`; [installation instructions can be found in a previous section][install].
[install]: ./tooling-check.md#more-tools
2020-07-13 11:48:24 +00:00
``` console
2020-07-15 10:27:02 +00:00
$ usb-list
2020-07-13 11:48:24 +00:00
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 002: ID 0cf3:e300
Bus 001 Device 003: ID 0c45:6713
Bus 001 Device 001: ID 1d6b:0002
2020-07-15 10:27:02 +00:00
Bus 001 Device 010: ID 1366:1015 <- J-Link on the nRF52840 Development Kit
2020-07-13 11:48:24 +00:00
```
2020-07-15 10:27:02 +00:00
The goal of this workshop is to get the nRF52840 SoC to show in this list. The embedded application will use the vendor ID (VID) and product ID (PID) defined in `advanced/common/consts`; the `usb-list` tool will highlight the USB device that matches that VID PID pair.
2020-07-13 11:48:24 +00:00
``` console
$ # expected output
2020-07-15 10:27:02 +00:00
$ usb-list
2020-07-13 11:48:24 +00:00
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 002: ID 0cf3:e300
Bus 001 Device 003: ID 0c45:6713
Bus 001 Device 001: ID 1d6b:0002
2020-07-15 10:27:02 +00:00
Bus 001 Device 010: ID 1366:1015 <- J-Link on the nRF52840 Development Kit
2020-07-13 11:48:24 +00:00
Bus 001 Device 059: ID 2020:0717 <- nRF52840 on the nRF52840 Development Kit
2020-07-15 10:27:02 +00:00
```