By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

Anybody use Java with USB devices?

P: n/a
Hi,
I'm thinking about using a USB attached device for some data collection.
I can use other languages to "talk" with it, but I'd prefer a Java solution.
Does anybody have any experience with USB and Java and could point me to a
starting point? Thanks. (Already know Java and apologize if I'm
overlooking the obvious.)
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Fred" <Fr**@isp.com> wrote in message news:<ph5Hb.666443$Tr4.1673039@attbi_s03>...
Hi,
I'm thinking about using a USB attached device for some data collection.
I can use other languages to "talk" with it, but I'd prefer a Java solution.
Does anybody have any experience with USB and Java and could point me to a
starting point? Thanks. (Already know Java and apologize if I'm
overlooking the obvious.)


There is a third party Java USB class library. If my memory is fine,
it's called JUSB or something. Do google or serch groups.
Jul 17 '05 #2

P: n/a
Fred wrote:
Hi,
I'm thinking about using a USB attached device for some data collection.
I can use other languages to "talk" with it, but I'd prefer a Java solution.
Does anybody have any experience with USB and Java and could point me to a
starting point? Thanks. (Already know Java and apologize if I'm
overlooking the obvious.)


You have two options:

0) jUSB -- http://jusb.sourceforge.net

jUSB works quite well -- at least on Linux, where it's reference
implementation is. There has recently been a port to Win32-based
platforms, however I can't comment on how well it works (as i avoid
Win32 platforms like the plague that they are :) ). It has the benifit
of being available under an Open Source license. It has the
disadvantage, however, of being fairly poorly supported by its
developers -- project development activity is rare, and getting
questions answered can be exceedingly slow (I once had a question
answered several months after e-mailing it to their developers :P).

One thing to note: if you're going to try it out on Linux, grab the
sources from their CVS repository directly. Their downloadable releases
have badly broken build processes which don't work for many users.
However, once built it does what it advertizes -- we support it with the
jSyncManager Project (http://www.jsyncmanager.org) for talking to
USB-enabled PalmOS-based handhelds.

1) Javax-USB (JSR-080) -- http://javax-usb.org

This will probably eventually be the official USB solution for Java,
once it completes the Java Community Process (JCP). It officially has
been granted the package "javax.usb".

This project is well maintained -- the developers run a mailing list
where they respond quickly to queries. As with jUSB, however, the
reference implementation is only for Linux, and AFAIK they don't have a
port to any other platform as of yet.

The jSyncManager project isn't setup to use this API just yet, but I've
assigned the task of writing a plug-in to use Javax-USB for connectivity
for our next release, as in the long term this appears to be the way to go.

I hope this helps!

Brad BARCLAY

--
=-=-=-=-=-=-=-=-=
From the OS/2 WARP v4.5 Desktop of Brad BARCLAY.
The jSyncManager Project: http://www.jsyncmanager.org
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.