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.
Create a new Context (initialises the libusb, returns a context)
Search your device, for example via Vendor- and Product-ID
(optionally) get information out of the USB Descriptors
Open your device
Claim the desired interface
write some data with a bulk transfer to your device
Release interface
Close the device