PDA

S75 Serial port Parity





View Full Version: S75 Serial port Parity


igork
28.03.2007, 13:31
Please HELP!!
I am trying to connect a device to the com port of my S75. It requires even parity for the comm port settings.
when I am opening com port with CommConnection connection = (CommConnection)Connector.open("comm:COM0;baudrate=9600;bitsperchar=8;stopbits=1;parity=even");
I get IllegalArgumentException parity=even not supprted by the com port.
If I use parity=none connection is opened by communication with the device does not function (of course). I can not change settings in the device. If I run the same code in emulator connecting to the com port of my PC everything works fine.

Did someone experienced similar problem. Is it hardware limitation of the com port of mobile phone?



michalehmann
29.03.2007, 10:59
Hi! Is Com 0 alright? I don't know anything about programming Java-Midlets but Windows starts with Com 1. OK, maybe the telephone starts with Port Number 0. On Microchip-Microcontrollers I can set the bit-lenght to 9 bits per char. Maybe you can do this, too. Then you can manually calculate the parity and put it in the 9th bit.

igork
29.03.2007, 21:18
Hi!
com0 is alright - I have tested it connecting to device, which does not require parity.
Thanks a lot for your suggestion. I am just not sure if it is possible to implement it in j2me.. Will try. I will post in the thread if get it running.

Cheers!

View Full Version: S75 Serial port Parity