Commit Graph

72 Commits

Author SHA1 Message Date
Klaus Reimer
b39ca1aeb0 Add short package handling 2013-02-24 20:09:06 +01:00
Klaus Reimer
9a497e7708 Unified handling of bulk and interrupt IO 2013-02-24 17:56:24 +01:00
Klaus Reimer
5209e5c3ec Correct processing of short packets 2013-02-24 17:36:19 +01:00
Klaus Reimer
40930d68d9 Improve IRP processing thread execution 2013-02-24 17:35:38 +01:00
Klaus Reimer
ab5c148f37 Switch from synchronized list to thread-safe queue to speed up
asynchronous operations
2013-02-24 16:30:36 +01:00
Klaus Reimer
1887a0d89e Read multiple chunks if necessary 2013-02-24 16:02:56 +01:00
Klaus Reimer
25f0db3ecd Send dataEventOccurred event when control IRP has finished. 2013-02-24 02:03:11 +01:00
Klaus Reimer
d694fe7d55 Ignore duplicate listeners. 2013-02-24 02:02:06 +01:00
Klaus Reimer
62f79e31ae Fix wrong logic in isBusy 2013-02-20 17:43:31 +01:00
Klaus Reimer
c2fb86f1d8 Move os, arch and ext names into constants 2013-02-20 17:42:01 +01:00
Klaus Reimer
02ebe76c65 Improve error handling during native lib loading so javax.usb no
longer hides the important exceptions.
2013-02-20 17:30:08 +01:00
Klaus Reimer
c5d52c3ae2 Native libraries are no longer extracted to a temporary directory when
they are not in a JAR file.
2013-02-16 17:46:48 +01:00
Klaus Reimer
e89e800b22 Increase version 2013-02-16 15:23:05 +01:00
Klaus Reimer
ea52468ecd Made library loading more universal to support loading shared libraries
for platforms not officially supported by usb4java.
2013-02-16 15:22:42 +01:00
Klaus Reimer
f36e7ec5f2 Rename Dump tool to Main. This tool is now executed automatically when
executing the JAR file. Maybe later I add some command line parameters
to use this tool as a Java implementation of lsusb.
2013-02-15 19:31:58 +01:00
Klaus Reimer
aebea196f7 Convert back into single project structure. Let's keep it simple 2013-02-15 19:27:41 +01:00
Klaus Reimer
2cb5374e98 New project structure and push version to 0.4.0 2012-11-12 20:39:16 +01:00
Klaus Reimer
e7948fc191 Change loading of native libraries. They are now included in the
classpath and extracted to a temporary directory during runtime. Looks
like I also fixed the loading problems of libusb.dylib on MacOS X by
changing the dependency path from @executable_path to @loader_path. So
no java.library.path and DYLD_LIBRARY_PATH needed anymore. Just add
usb4java as a dependency and that#s it.
2012-11-12 18:06:48 +01:00
Klaus Reimer
7affcc1864 Fix warnings 2012-11-12 18:06:48 +01:00
Klaus Reimer
40a72d0bc8 Added comments about usage of direct buffers in JNI wrapper. 2011-12-12 08:33:14 +01:00
Klaus Reimer
ffbd846872 Removed obsolete warning suppressions. 2011-10-31 11:03:27 +01:00
Klaus Reimer
71a98a2de6 JNI loading errors are now all logged so they are also visible when
using the high level API and so ALL four error messages are displayed
and not just the last one.
2011-10-31 11:02:12 +01:00
Klaus Reimer
0bd97df5bf Prepared for release 0.3.3 2011-03-28 22:06:21 +02:00
Klaus Reimer
6b627678d1 Updated implementation version.
Added changelog entry.
2011-03-27 14:26:13 +02:00
Klaus Reimer
580e7bd8d5 Now trying to load the JNI library with the following lib names:
usb4java, usb4java32, libusb4java, libusb4java32
2011-03-27 14:21:28 +02:00
Klaus Reimer
a9e6d6f9db Switched to version 0.3.1.
FIxed missing support for custom buffer offsets and lengths.
2011-03-05 16:53:59 +01:00
Klaus Reimer
38f8afe126 Changed version number. 2011-02-20 11:17:49 +01:00
Klaus Reimer
d2f4708b40 Added timeout configuration. 2011-02-20 11:15:56 +01:00
Klaus Reimer
3b7601b84f Corrected static/final order. 2011-02-13 13:56:54 +01:00
Klaus Reimer
127238b599 Corrected javadoc. 2011-02-13 13:53:53 +01:00
Klaus Reimer
df9be6b67f Added page about configuration. 2011-02-11 19:12:47 +01:00
Klaus Reimer
78e525d8b2 Added configuration.
Added scanHierarchy config to switch between scanning root_dev or devices list.
Added configuration to filter for vendors and products for a better performance when many devices are connected.
2011-02-11 17:51:16 +01:00
Klaus Reimer
f70aa2fb5b Changed field to use interface type. 2011-02-08 22:30:01 +01:00
Klaus Reimer
d77b0495f3 Added two missing fields in hashCode.
Corrected order of fields in hashcode.
2011-02-08 22:26:33 +01:00
Klaus Reimer
715bc509bc Added safety check in case the byte buffer is NULL. 2011-02-08 22:21:57 +01:00
Klaus Reimer
dad4b7c3ac Made toString final 2011-02-06 15:50:30 +01:00
Klaus Reimer
03f329812b Improved toString() 2011-02-06 15:32:46 +01:00
Klaus Reimer
82e64dcfa9 New pre-compiled binaries for windows and linux.
De-coupled version number from libusb.
Fixed cleaning of C files.
UPgraded configure.ac to newer format.
2011-02-05 22:53:12 +01:00
Klaus Reimer
35320a0a93 Fixed checkstyle issues 2011-02-05 22:42:18 +01:00
Klaus Reimer
032f1b7d13 Restructured project. JSR-80 implementation is now the main focus. 2011-02-05 22:09:58 +01:00
Klaus Reimer
c8f0524317 Code reformat. 2011-02-05 19:51:59 +01:00
Klaus Reimer
0737789460 Fixed checkstyle issues. 2011-02-05 18:19:12 +01:00
Klaus Reimer
76fbd9f5ab Implemented more simple IRP queue which is now also used for processing request IRPs. 2011-02-05 18:15:53 +01:00
Klaus Reimer
ea6b8cc5b4 Implemented pipe events. 2011-02-05 16:36:23 +01:00
Klaus Reimer
33a215b319 Fixed some findbugs issues. 2011-02-05 16:18:07 +01:00
Klaus Reimer
812d153828 Fixed some checkstyle issues. 2011-02-05 16:09:26 +01:00
Klaus Reimer
9864bb3235 Improved error handling.
Changed visibility of all classes except UsbServicesImpl to package private.
2011-02-05 15:46:51 +01:00
Klaus Reimer
7b4194c285 Corrected placement of exception throw. 2011-02-05 15:17:21 +01:00
Klaus Reimer
a4ec2a9d68 Moved force claim into device class. 2011-02-05 15:08:03 +01:00
Klaus Reimer
d80266929c Removed some debugging output.
Implemented non-portable libusb functions.
Implemented force-claiming of interfaces (Only works when libusb supports detaching drivers)
2011-02-05 15:02:00 +01:00