Posts: 2
Joined: Fri Aug 04, 2017 3:42 pm

How to read and write in usb rs232?

Fri Aug 04, 2017 3:50 pm

Hello, I need your help, I have pi3 b with a display 3.5 and usb rs232. I need information how to handle usb rs232 in java. thanks.

Posts: 18
Joined: Sat Nov 12, 2016 2:11 pm

Re: How to read and write in usb rs232?

Sun Aug 06, 2017 9:26 am

That is quite easy in Java: simply open device /dev/ttyUSB0 as if it were a file; if you read from it, your program is reading from whatever is located on the other side of the (serial) bus; if you write to it, the data will be written to that other device.

kind regards,


Return to “Java”

Who is online

Users browsing this forum: No registered users and 3 guests