AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sun Java and serial ports

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Paul Thompson
Guest





PostPosted: Sat Jan 03, 2004 9:45 pm    Post subject: Sun Java and serial ports Reply with quote



How can I use Java and deal with RS232 ports, e.g. read, write, set
baud, etc.?

Thanks
Paul

Back to top
Steve Horsley
Guest





PostPosted: Sat Jan 03, 2004 10:44 pm    Post subject: Re: Sun Java and serial ports Reply with quote



Paul Thompson wrote:
Quote:
How can I use Java and deal with RS232 ports, e.g. read, write, set
baud, etc.?

Thanks
Paul

You need this optional download:

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

Back to top
Anthony Borla
Guest





PostPosted: Sun Jan 04, 2004 5:14 am    Post subject: Re: Sun Java and serial ports Reply with quote




"Paul Thompson" <pault (AT) HiWAAY (DOT) net> wrote

Quote:

How can I use Java and deal with RS232 ports, e.g. read,
write, set baud, etc.?


Strictly speaking, such low-level, system-specific tasks are not those at
which Java excels. For such tasks you need to use its JNI [Java Native
Interface] facility to 'tap into' external entities such as operating system
calls, or customised native-code routines.

Do a Google search for the:

'javax.comm'

package. It uses JNI to provide a [relatively] easily-accesable interface to
the serial port(s), and may be what you require.

I hope this helps.

Anthony Borla



Back to top
Roedy Green
Guest





PostPosted: Sun Jan 04, 2004 5:30 am    Post subject: Re: Sun Java and serial ports Reply with quote

On Sat, 03 Jan 2004 15:45:53 -0600, Paul Thompson <pault (AT) HiWAAY (DOT) net>
wrote or quoted :

Quote:
How can I use Java and deal with RS232 ports, e.g. read, write, set
baud, etc.?

see http://mindprod.com/jgloss/serialport.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.