Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javax.comm on Linux

843829Jan 12 2004 — edited Jan 12 2004
I'm using the IBM version of javax.comm on Linux. Works great for the first four serial ports (which are mapped to the DOS names COM1...COM4).

However, I am unable to get the #$*^ thing to communicate with my modem, which is on /dev/ttyS15, and mapped to /dev/modem. This should map to COM16, but I just get a null when I try to open it.

I use the following to add the port, have tried "COM16", "/dev/ttyS15", "/dev/modem". Always returns a null when I try to open the port, using the sample SimpleWrite code.
try
{
    CommDriver commdriver = (CommDriver)Class.forName("com.ibm.comm.NSCommDriver").newInstance();

    CommPortIdentifier.addPortName("COM16", CommPortIdentifier.PORT_SERIAL , commdriver);
		}
.....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2004
Added on Jan 12 2004
1 comment
196 views