Dies ist eine alte Version des Dokuments!


First Steps with LibusbJava

The following short example will show you how to use LibusbJava in your Java-Project. The following code describes the required steps to do a bulk transfer to your device.

  1. Create a new Context (initialises the libusb, returns a context)
  2. Search your device, for example via Vendor- and Product-ID
  3. (optionally) get information out of the USB Descriptors
  4. Open your device
  5. Claim the desired interface
  6. write some data with a bulk transfer to your device
  7. Release interface
  8. Close the device