Author Topic: Reading and writing to the USB port with JAVA  (Read 6264 times)

titan2020

  • Member
  • ***
  • Posts: 7
Reading and writing to the USB port with JAVA
« 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,

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Reading and writing to the USB port with JAVA
« Reply #1 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
« Last Edit: July 13, 2014, 10:09:14 pm by Jan Axelson »