I have problem with opening RS232 port on Nokia9210
side in Java. I'm using standard JavaPhone API javax.comm.*
from Nokia and I allways obtain exception PortInUseException.
I'm trying to open COM1 or DATAPORT::0 or IrComm port.
Nothing works. I found on Symbian site partially solution on
FAQ-0733. I enclose it for better understanding:
I am running the SerialChat Java example application on a Nokia 9200 Communicator series SDK for Java. But every time I try to initialise an RS232 port or Ir port I get a PortInUseException. What is wrong here?
The reasons for this are different for the two different kinds of port.
In the case of the Ir port, the problem stems from a defect in the javax.comm JavaPhone package which shipped with the Nokia 9210 and corresponding SDK, whereby the wrong name for the Ir port ("IrComm" rather than the correct "IRCOM1") was hard-coded into the com.symbian.javax.comm.EpocCommDriver class in JavaPhone.jar. The solution is to patch this class with an updated version. Unzip the attached zip and copy EpocCommDriver.class into the \erj\classes folder on the SDK or \System\Java\classes folder on the Nokia 9200 communicator. You should find you are then able to initialise the Ir port successfully from the SerialChat application.
In the case of the RS232 port, this is a device-specific issue with the Nokia 9200 Communicator series which is outside Symbian's control.
It is really workig with IRCOM1 for infraport. But I really need
standard serial cable connection. Is there any solution how to
open RS232 serial cable port on Nokia9210? I will appreciate any