944,111 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 7695
  • Java RSS
Oct 12th, 2005
0

about serial cable communication using Java

Expand Post »
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
Similar Threads
Reputation Points: 11
Solved Threads: 0
Junior Poster
George2 is offline Offline
189 posts
since Nov 2004
Oct 13th, 2005
0

Re: about serial cable communication using Java

Quote 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
Reputation Points: 21
Solved Threads: 10
Junior Poster
Paul.Esson is offline Offline
181 posts
since Feb 2005
Oct 14th, 2005
0

Re: about serial cable communication using Java

Thanks Paul,


Quote 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
Reputation Points: 11
Solved Threads: 0
Junior Poster
George2 is offline Offline
189 posts
since Nov 2004
May 12th, 2008
0

Re: about serial cable communication using Java

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
agalera is offline Offline
1 posts
since May 2008
May 12th, 2008
0

Re: about serial cable communication using Java

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: retrieve database values
Next Thread in Java Forum Timeline: Connecting Database to my Mobile





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC