 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Paul Thompson Guest
|
Posted: Sat Jan 03, 2004 9:45 pm Post subject: Sun Java and serial ports |
|
|
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
|
Posted: Sat Jan 03, 2004 10:44 pm Post subject: Re: Sun Java and serial ports |
|
|
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
|
Posted: Sun Jan 04, 2004 5:14 am Post subject: Re: Sun Java and serial ports |
|
|
"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
|
Posted: Sun Jan 04, 2004 5:30 am Post subject: Re: Sun Java and serial ports |
|
|
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 |
|
 |
|
|
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
|
|