phon...@mobileandembedded.org wrote:
Hi Khan,
That's just because we set "microedition.commports"
by default to
/dev/ttyS0. You can disregard that if you know that
/dev/ttyS1 is
correct. It's really just meant as a placeholder
property value.
Can you use GCF to connect to /dev/ttyS1 on your
target device and
communicate?
Hinkmond
------------------------------------------------------
hi hinkmond,
thanks for your support. i have tried to communicate with /dev/ttyS1, but an
IOException was thrown when i tried to open the port. i booted the device with a
serial cable connecting it with my linux machine. so, /dev/ttyS0 might be in use
(and i think it is). i used the following code to open the port:
try {
CommConnection comPort = (CommConnection) Connector.open("comm:COM1");
} catch(IOException e) {
System.out.println("not opened");
}
i have also tried it by passing "comm:COM0" , "comm:COM2" , "comm:com1" ,
"comm:/dev/ttyS1" etc. as argument to Connector.open(), but the port was not
opened and always IOException was thrown. so, i need help to open the serial
port.
regards,
khan
[Message sent by forum member 'sandykhan' (sandykhan)]
http://forums.java.net/jive/thread.jspa?messageID=265673