views:

1237

answers:

2

Hi all,

I would like two java programs to communicate directly over the USB without going through a device or cable. Don't ask me why, I don't know the details or reasoning behind this decision.

I have found jusb and jsr-80 to be two java/usb APIs to do this. They work on linux AND windows - I will need capabilities on both.

Question:

Which is more standard and accepted? Which is more stable? Which is easier for my task? Are there other standard or common java/usb APIs out there?

I'd like to hear your guys' experiences with these or other java/usb APIs.

Thanks, Jbu

+1  A: 

I would like two java programs to communicate directly over the USB without going through a device or cable

Huh? USB connects a device to a host via a cable.

edit: If I had to quickly use two Java programs to communicate, one on a device and one on a host, I would almost certainly use the USB link (configured that way outside of the scope of Java) to act as a serial stream and use a serial library like rxtx.

Jason S
+1  A: 

Well both of these implementations have their limitations specially on windows. They both lack support for Bulk Transfer on windows.

There is a commercial library JCommUSB available at www.icaste.com

Faisal Feroz