Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Java to communicate to device through USB port?

I just recently learn Java and try to communicate to the device through USB port connection. I've have used C# with OpenNETCF which allows me to send file and retrieve file on the device through USB port; how can I achieve this with java?

I seearch on stackoverflow thread, How to communicate with a USB device under Windows and Java?, the comment made by christoffer is to hack the native code, but I don't quite which native code api that he referred to. RAPI, maybe?

like image 266
Bopha Avatar asked Mar 13 '09 19:03

Bopha


1 Answers

The only USB API I could find for Windows is here. Seems as if it has limited functionality, but it might suit your needs. A more complete UNIX API is also available.

ETA: Found a link to the official Java USB implementation, but looks like the windows version is still in alpha.

like image 62
Eric Petroelje Avatar answered Oct 03 '22 05:10

Eric Petroelje