Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

How can I make use of the USB-port from Java ?

Thread view: 
Arne Styve - 24 Aug 2006 12:56 GMT
Hi,

I am curretly looking into a project where a USB-port is to be used, but I
cannot find any implemented Java API's for USB to use on the Windows
platform. I would be very greatful to get som hints about good USB API
implementations out there.

Any help appreciated.

Arne
Thomas Kellerer - 24 Aug 2006 13:10 GMT
> I am curretly looking into a project where a USB-port is to be used, but I
> cannot find any implemented Java API's for USB to use on the Windows
> platform. I would be very greatful to get som hints about good USB API
> implementations out there.

Did you try http://javax-usb.org/

Thomas

Signature

It's not a RootKit - it's a Sony

Arne Styve - 24 Aug 2006 13:19 GMT
>> I am curretly looking into a project where a USB-port is to be used, but
>> I cannot find any implemented Java API's for USB to use on the Windows
[quoted text clipped - 4 lines]
>
> Thomas

Hi Thomas,

Yes, I looked at it, but it's for Linux only. As it says on the web-page:
javax-usb-ri-windows : This is a pre-alpha Windows implementation (it does
not work, it needs a kernel driver).

Arne
Oliver Wong - 24 Aug 2006 18:29 GMT
>>> I am curretly looking into a project where a USB-port is to be used, but
>>> I cannot find any implemented Java API's for USB to use on the Windows
[quoted text clipped - 10 lines]
> javax-usb-ri-windows : This is a pre-alpha Windows implementation (it does
> not work, it needs a kernel driver).

   What about http://www.steelbrothers.ch/jusb/ ?

   And if that doesn't work, how about listing the ones you tried so we
don't waste our times recommending stuff that you know won't work for you?

   - Oliver
Arne Styve - 25 Aug 2006 09:51 GMT
>>>> I am curretly looking into a project where a USB-port is to be used,
>>>> but I cannot find any implemented Java API's for USB to use on the
[quoted text clipped - 17 lines]
>
>    - Oliver

Hi Oliver,

Please do not let me waste your time. Searching the internet I can manage on
my own. I was hoping to find someone on this newsgroup that had experience
with developing solutions in Java using the USB-port and hence could
recommend a suitable library. Sorry if my initial question was not clear
enough in that respect.

Anyway, thanks for your tip. I looked at it (on your recomendation), but it
seams to be quite prototypish and incomplete ( An implementation attempt to
provide jUSB for Windows 2000/XP as it says on the website).

Arne
Mindundi - 24 Aug 2006 23:17 GMT
How about compiling and running the linux implementation over Cygwin? Is it
possible?

>>> I am curretly looking into a project where a USB-port is to be used, but
>>> I cannot find any implemented Java API's for USB to use on the Windows
[quoted text clipped - 12 lines]
>
> Arne
Arne Styve - 25 Aug 2006 09:56 GMT
> How about compiling and running the linux implementation over Cygwin? Is
> it possible?

Thanks for the tip. But isn't CygWin "just" a way to get some Unix/Linux
commands/tools on the windows platform ? You still have to rebuild the
applications froms sourcecode for the Windows platform, I beleive, and hence
you will need specific Windows drivers for the USB-port, probably.

I'll chekc into it a bit further.

Thanks !

Arne
vvk - 25 Aug 2006 08:22 GMT
hello,
try with the java's comm api to access the usb access.
__Vasantha kumar
> Hi,
>
[quoted text clipped - 6 lines]
>
> Arne
Arne Styve - 25 Aug 2006 09:57 GMT
> hello,
> try with the java's comm api to access the usb access.
> __Vasantha kumar

Hi,

The Java comm API does not support USB, and as far as I have been able to
find out, there are no concrete plans to include USB either.

Arne
Arne Styve - 25 Aug 2006 10:18 GMT
Hi!

Problem solved (well, partly). Got a tip from the Norwgian newsgroup
(no.it.programmering.java) about a recent article:
http://today.java.net/pub/a/today/2006/07/06/java-and-usb.html?page=1 about
Java and USB.
Also found a commercial library (from the same article) that I might try
out: http://www.icaste.com/jcommusb.htm

Thanks for trying to help me out here :-)

- Arne
Chris Uppal - 25 Aug 2006 10:40 GMT
> http://www.icaste.com/jcommusb.htm

Why on earth does that require the .NET runtime ?

(Only a rhetorical question ;-)

(And I'm not wildy impressed by per-seat licencing for a programming library
either...)

   -- chris
Anthony.McClay@gmail.com - 25 Aug 2006 13:44 GMT
It sounds like you have a solution for you problem, but maybe no a
great one.

I was reading a book at the book store about Java's new IO Packages
(NIO) which gives you the ability to access USB ports.

I believe this is available for Java 1.4 and java 1.5 and is cross
platform.

perhaps a book also with examples.  Please take a look at :
http://press.oreilly.com/pub/pr/1581

Best of Luck, Please post back when you have a known solution.  You
would think this would be an easy questions, but I don't personally
know of anyone who has done anything with USB and java.

Tony McClay
Arne Styve - 28 Aug 2006 08:40 GMT
> It sounds like you have a solution for you problem, but maybe no a
> great one.
[quoted text clipped - 13 lines]
>
> Tony McClay

Hi Tony,

You're right, it's a solution, but not a very great one.

I'll check out the book. From the review of the book it looks promising, but
if the java.nio API covers USB, why doesn't it say so on the official
web-pages at Sun.....
Also found good support for USB on the SPARC-platform.....

I'll keep you updated, if I find a better solution to this.

Thanks for your inputs.

Regards Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.