| | |
about serial cable communication using Java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
•
•
Originally Posted by George2
Hello everyone,
I want to use javax.comm to do serial cable communication on Linux platform. Currently, I can not find enough learning materials (tutorials and samples) from searching the net. Could anyone help to recommend some good ones?
thanks in advance,
George
Your quite lucky the newest version of the javax.comm libarys come with linux support now, so you don't need rxtx. If you look at the javax.comm package it provides some examples of code using the API.
I used it to make a simple application for sending SMS's through a GSM modem. It works quite well.
But anyway check out the API Specs
http://java.sun.com/products/javacom...api/index.html
and then check out the two examples
simpleread
http://java.sun.com/developer/releas...impleRead.java
and
simplewrite
http://java.sun.com/developer/releas...mpleWrite.java
•
•
Join Date: Nov 2004
Posts: 189
Reputation:
Solved Threads: 0
Thanks Paul,
The information you provided is very helpful. My current issue is that, I do not know how to install and configure the library on Linux platform. Where can I find related documents?
regards,
George
•
•
•
•
Originally Posted by Paul.Esson
Your quite lucky the newest version of the javax.comm libarys come with linux support now, so you don't need rxtx. If you look at the javax.comm package it provides some examples of code using the API.
I used it to make a simple application for sending SMS's through a GSM modem. It works quite well.
But anyway check out the API Specs
http://java.sun.com/products/javacom...api/index.html
and then check out the two examples
simpleread
http://java.sun.com/developer/releas...impleRead.java
and
simplewrite
http://java.sun.com/developer/releas...mpleWrite.java
regards,
George
•
•
Join Date: May 2008
Posts: 1
Reputation:
Solved Threads: 0
I've some problems trying to compile these examples:
I get this problems:
Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading driver com.sun.comm.Win32Driver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
port COM1 not found.
I get this problems:
Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading driver com.sun.comm.Win32Driver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
port COM1 not found.
says it all really... It can't find "COM1" using the Solaris classes (which is hardly surprising). It also can't the Windows classes, which is also hardly surprising if you didn't install them.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- Java app to send an SMS via DKU-5 serial cable (Java)
- Send data on a serial port (C++)
- USb to Serial Cable Pin Assignment (USB Devices and other Peripherals)
- Serial Port Communication (Assembly)
Other Threads in the Java Forum
- Previous Thread: retrieve database values
- Next Thread: chat program
Views: 5444 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Java
911 addressbook android api append apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component csv database draw eclipse error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me japplet java javaarraylist javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie number object objects oracle oriented panel print problem program programming project projects recursion replaydirector reporting researchinmotion return robot rotatetext scanner score screen se server set size sms socket sort sql stream string swing test threads time transfer tree ubuntu windows






