Skip to content

Latest commit

 

History

History

README.md

USB Device Enumeration (Kotlin)

This sample enumerates the connected USB devices and provides information about the interfaces and endpoints.

Prerequisites

  • Java 25
  • Gradle
  • 64-bit operating system (Windows, macOS, Linux)

How to run

Install Java 25 or higher

Check that Java 25 or higher is installed:

$ java -version

If not, download and install it, e.g. from Azul.

Install Maven

Check that Maven is installed:

$ gradle -version

If it is not present, install it, typically using package manager like Homebrew on macOS, Chocolately on Windows and apt on Linux.

Build and run the program

$ cd JavaDoesUSB/examples/enumerate_kotlin
$ gradle run
Device:
  VID: 0xcafe
  PID: 0xceaf
  Manufacturer:  JavaDoesUSB
  Product name:  Loopback
...