Commit Graph

135 Commits

Author SHA1 Message Date
Klaus Reimer
2463d30408 Add Java part of polling and timing functions 2013-03-02 13:43:12 +01:00
Klaus Reimer
f8e3bb8c0e Explicitly loading libusb-1.0.so from usb4java 2013-03-02 12:09:56 +01:00
Klaus Reimer
24da607def Remove Test file 2013-03-01 22:20:19 +01:00
Klaus Reimer
b55f66bade Implement synchronized IO 2013-03-01 22:18:38 +01:00
Klaus Reimer
d56ce5589e Implement getDescriptor and getStringDescriptor methods 2013-03-01 21:13:54 +01:00
Klaus Reimer
dfb8104520 Implement libusbx descriptor stuff and some unit tests. 2013-03-01 20:22:42 +01:00
Klaus Reimer
2169a91c1a Implement large parts of libusbx 1.0 JNI wrapper 2013-02-28 22:02:27 +01:00
Klaus Reimer
ad87ef7c19 Add toString methods 2013-02-28 07:15:33 +01:00
Klaus Reimer
90dfbd984a Add missing Context class 2013-02-28 00:12:33 +01:00
Klaus Reimer
fa8e34a344 Started working on switch to libusbx 1.0 2013-02-28 00:12:07 +01:00
Klaus Reimer
9f208cb3cb Implement support for control endpoints. 2013-02-24 21:59:11 +01:00
Klaus Reimer
99d6caa3d9 Unify type conversion 2013-02-24 21:43:55 +01:00
Klaus Reimer
614e493e5f Fix wrong key type 2013-02-24 21:43:45 +01:00
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
Klaus Reimer
f49b05c57a Fixed wait/notify.
Fixed wrong format sting in LibUsbException
2011-02-05 11:38:56 +01:00
Klaus Reimer
8563bd97d5 Finished pipe implementation. 2011-02-04 23:32:36 +01:00
Klaus Reimer
cf4dd66d31 Implemented interfaces and alternate settings. 2011-02-03 00:01:44 +01:00
Klaus Reimer
d4a11ef16f Added missing class. 2011-02-02 18:14:04 +01:00
Klaus Reimer
ddeaedb273 Fixed checkstyle problems. 2011-02-02 18:13:52 +01:00
Klaus Reimer
65819ae7c1 JSR 80: Implemented device scanning.
Added hashcode/equals methods.
2011-01-31 20:10:19 +01:00
Klaus Reimer
42f44f474e Implemented more JSR 80 stuff. 2011-01-30 22:25:24 +01:00
Klaus Reimer
3e890e258a Added some first JSR 80 implementations. 2011-01-30 16:09:01 +01:00
Klaus Reimer
5672cdf991 Added global USB sub system lock support.
Moved dump stuff from toString to dump() methods and added some more simple toString methods.
2011-01-30 16:08:42 +01:00
Klaus Reimer
b07502a5a4 Added missing usb_strerror function. 2011-01-30 14:56:27 +01:00
Klaus Reimer
bc675e4e74 Fixed string descriptor output length. 2011-01-30 11:20:57 +01:00
Klaus Reimer
c176d10c77 Fixed dump indentation. 2011-01-29 22:01:36 +01:00
Klaus Reimer
3ca70baf17 Improved dump output.
FIxed endless loop in tree dump.
2011-01-29 21:58:48 +01:00
Klaus Reimer
c073024c3a Fixed some javadocs.
Added toString() methods to dump all USB information.
Added a Dump command line program.
2011-01-29 21:33:29 +01:00
Klaus Reimer
132a8cf70a Removed some empty lines. 2011-01-24 22:54:22 +01:00
Klaus Reimer
a54b1e43d9 Added EOL at EOF. 2011-01-24 22:53:14 +01:00
Klaus Reimer
9ad4040e16 Removed bMaxPower.
Switched back to native methods instead of using get() methods on the byte buffers.
Converted the remaining pointer-to-long conversions to use NIO because this is more portable.
2011-01-24 21:18:58 +01:00
Klaus Reimer
7646f7b4d5 Added site (Not finished yet).
Fixed some bugs find by checkstyle.
2011-01-23 23:28:58 +01:00
Klaus Reimer
a34c3a01fe Converted into single module project. 2011-01-23 18:12:06 +01:00
Klaus Reimer
17130ec21b Converted to multi-module maven project. 2011-01-21 23:41:11 +01:00
Klaus Reimer
03cef5357b Added some missing files.
Renamed native classes.
2011-01-21 22:18:33 +01:00
Klaus Reimer
321b1c9e20 First commit. 2011-01-21 21:59:55 +01:00