Java and Multiport Serial Port

S

Sumit

Hi
I am trying to establish serial communication via
one of the port of RocketPort multiport serial Port
using Java 1.4 on RH 9.0. I had installed rxtx as a
comm
package(http://wass.homelinux.net/howtos/Comm_How-To.shtml)

For the code
-------------------------------------------------
String commPort ="/dev/ttyR6";
CommPortIdentifier portId =
CommPortIdentifier.getPortIdentifier ( commPort );
--------------------------------------------------
Things work fine if I use commPort ="/dev/ttyS0" but
with "/dev/ttyR6"(which is one of the rocketport port)
it causes exception.

The card is properly configured and I had tested
/dev/ttyR6 is working using od -tx1 /dev/ttyR6. I am
executing all this as root.


Moreover using
Enumeration ports =
CommPortIdentifier.getPortIdentifiers();

and listing the ports list only /dev/ttyS0 and
/dev/lp0 as the available ports.

I am quite new to Java, so I am not sure, but do I
need to use CommPortIdentifier.addPortName to add the
/dev/ttyR0-6 port.


Thanks,
Sumit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top