PORTS Forum

Ports and Interfaces => USB => Topic started by: titan2020 on September 19, 2013, 10:41:49 am

Title: Reading and writing to the USB port with JAVA
Post by: titan2020 on September 19, 2013, 10:41:49 am
Hello,

I would like to use JAVA to write a program that will run on Windows or Linux. The program needs to communicate with an external device via USB port. I'm very new to JAVA. Is it possible to communicate with the USB port in JAVA? If so, do you have any suggested reading on the subject?

Thank you,
Title: Re: Reading and writing to the USB port with JAVA
Post by: Jan Axelson on September 26, 2013, 04:33:25 pm
See the first questions here:

http://janaxelson.com/usbfaq.htm

Your USB device should use a driver that you can access via Java.

For example, if your device enumerates as a USB virtual serial port, seee:

http://rxtx.qbang.org/wiki/index.php/Writing_%22Hello_World%22_to_a_USB_to_serial_converter