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);
}
.....