LibusbJava

libusb for Java

User Tools

Site Tools


first_steps:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
first_steps:start [2016/07/12 10:36] akalbererfirst_steps:start [2016/07/12 10:37] (current) akalberer
Line 1: Line 1:
 ====== First Steps with LibusbJava ====== ====== First Steps with LibusbJava ======
 +
 +<box 35% red right | **Important note for Windows**>
 +  * getDeviceList() of libusb and Device.search() of LibusbJava return the first device with the corresponding VID, PID. In Windows a composite device is represented by multiple devices with the same VID, PID, so you will have to search for the one you want to use (see [[http://libusb.6.n5.nabble.com/libusb-How-to-access-composite-devices-properly-on-Windows-td5714029.html#a5714031|libusb Mailing List]]).
 +</box>
 +
 The following short example will show you how to use LibusbJava in your Java-Project. 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. The following code describes the required steps to do a bulk transfer to your device.
Line 10: Line 15:
     - Release interface     - Release interface
     - Close the device     - Close the device
- 
-<box 100% red right | **Important note for Windows**> 
-  * getDeviceList() of libusb and Device.search() of LibusbJava return the first device with the corresponding VID, PID. In Windows a composite device is represented by multiple devices with the same VID, PID, so you will have to search for the one you want to use (see [[http://libusb.6.n5.nabble.com/libusb-How-to-access-composite-devices-properly-on-Windows-td5714029.html#a5714031|libusb Mailing List]]). 
-</box> 
  
 <code java>Context useCtx = null;                            <code java>Context useCtx = null;                           
first_steps/start.txt · Last modified: 2016/07/12 10:37 by akalberer