about serial cable communication using Java

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2004
Posts: 189
Reputation: George2 is an unknown quantity at this point 
Solved Threads: 0
George2 George2 is offline Offline
Junior Poster

about serial cable communication using Java

 
0
  #1
Oct 12th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 181
Reputation: Paul.Esson is an unknown quantity at this point 
Solved Threads: 10
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

Re: about serial cable communication using Java

 
0
  #2
Oct 13th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 189
Reputation: George2 is an unknown quantity at this point 
Solved Threads: 0
George2 George2 is offline Offline
Junior Poster

Re: about serial cable communication using Java

 
0
  #3
Oct 14th, 2005
Thanks Paul,


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
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
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 1
Reputation: agalera is an unknown quantity at this point 
Solved Threads: 0
agalera agalera is offline Offline
Newbie Poster

Re: about serial cable communication using Java

 
0
  #4
May 12th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: about serial cable communication using Java

 
0
  #5
May 12th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 5444 | Replies: 4
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC