11 messages in net.java.dev.phoneme.advancedRe: problem during serial port commun...
FromSent OnAttachments
phon...@mobileandembedded.orgMar 24, 2008 11:02 am 
Gary AdamsMar 24, 2008 11:45 am 
Hinkmond WongMar 24, 2008 5:37 pm 
phon...@mobileandembedded.orgMar 25, 2008 6:46 am 
Hinkmond WongMar 26, 2008 8:39 pm 
phon...@mobileandembedded.orgMar 28, 2008 10:08 am 
Hinkmond WongMar 28, 2008 12:50 pm 
Gary AdamsMar 28, 2008 1:05 pm 
Hinkmond WongMar 28, 2008 1:33 pm 
phon...@mobileandembedded.orgMar 29, 2008 3:51 am 
Hinkmond WongMar 31, 2008 10:46 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: problem during serial port communicationActions...
From:phon...@mobileandembedded.org (phon@mobileandembedded.org)
Date:Mar 25, 2008 6:46:30 am
List:net.java.dev.phoneme.advanced

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