phon...@mobileandembedded.org wrote:
hi,
i want to communicate with a device (which has linux on it), through serial
port, but the problem is that i am unable to see all of my ports. i have run the
following utility program on the target device, given in CDC's documentation, to
list down my comm ports.
String port1;
String ports = System.getProperty("microedition.commports");
int comma = ports.indexOf(',');
if (comma > 0) {
// Parse the first port from the available ports list.
port1 = ports.substring(0, comma);
} else {
// Only one serial port available.
port1 =ports;
}
but, it always lists just one port /dev/ttyS0. i'm sure about the availability
of /dev/ttyS1 on the target as i have used it to boot the device. so, what could
be the problem?
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