Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Serial Port Programming

Reply
Thread Tools

Serial Port Programming

 
 
crypto
Guest
Posts: n/a
 
      05-16-2005
Hi,

I am writing a program that interfaces with a serial port device
(router). This application must work for both Linux and Windows
machines. As such, I would like to use Java.

I would like to know what free libraries are available to do serial
communications programming in Java for Linux and for Windows.

I understand that there is javax.comm which is for Windows/Solaris
only. Is there one that will work for both Windows and Linux? If not,
what are the libraries which I may use?

Thanks,
C29

 
Reply With Quote
 
 
 
 
Richard Wheeldon
Guest
Posts: n/a
 
      05-16-2005
crypto wrote:
> I would like to know what free libraries are available to do serial
> communications programming in Java for Linux and for Windows.


http://users.frii.com/jarvi/rxtx/

Richard
 
Reply With Quote
 
 
 
 
fg
Guest
Posts: n/a
 
      05-16-2005
The javacomm API does it for you....

http://java.sun.com/products/javacomm/

Since it has to access natives method, there are various implementations,
for different platforms...


 
Reply With Quote
 
Dale King
Guest
Posts: n/a
 
      05-18-2005
Richard Wheeldon wrote:
> crypto wrote:
>
>>I would like to know what free libraries are available to do serial
>>communications programming in Java for Linux and for Windows.

>
>
> http://users.frii.com/jarvi/rxtx/


I second the recommendation for RXTX. I would like to add that RXTX can
be made compatible with Sun's JavaComm API, but I recommend against it.
There really is no point in trying to be compatible with Sun's lousy,
poorly designed CommApi that they have refused to update since before
the days of JDK1.2.

--
Dale King
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
emulate a serial port in windows (create a virtual 'com' port) Pom Python 2 01-31-2007 07:49 PM
Serial Port programming - Reading DSR from port msalerno Perl Misc 3 07-14-2005 12:58 PM
Can I connect router Serial interface directly to a PC serial port? Faustino Dina Cisco 2 08-18-2004 02:30 AM
Re: Serial port and PS/2 port schematics OR Assistive Tech. suggestion naive.verizon@locality.net Computer Support 1 07-10-2003 11:46 AM
Re: Serial port and PS/2 port schematics °Mike° Computer Support 1 07-09-2003 10:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57