Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Serial Communication on Windows

I've been looking around for a Java API that can communicate with serial devices on Windows/Win32 but many of the APIs I've checked out are either for Linux, too outdated, or just had bad critics.

Can someone recommend one to me that they've tried or knows about that is easy to implement on Windows XP?

like image 930
Steve Avatar asked Nov 05 '08 03:11

Steve


People also ask

How do I connect to a serial port in Windows?

Open a console sessionUsing PuTTY or other terminal emulator, select "Serial" as the connection type and change the "Serial line" to match the COM port noted earlier. The serial console speed is typically 9600. Click "Open" to connect to the console.

What is jSerialComm?

jSerialComm is a Java library designed to provide a platform-independent way to access standard serial ports without requiring external libraries, native code, or any other tools.

How do I enable serial communication?

To configure the Serial Port for your device, on your computer go to Control Panel - Device Manager, select “High-Speed USB Serial Port (Com X)”, right click and select Properties. Click the Features tab. This tab is used to change the COM port number and configure the port.


1 Answers

I started looking for the same thing couple weeks ago, and I've been very happy with the multi-platform RXTX library so far. Works with any Windows, Linux and OS X. Has a very clean, easy to understand API.

edit: RXTX is also open source.

like image 54
Murat Ayfer Avatar answered Oct 16 '22 22:10

Murat Ayfer