Which ports were configured for use with the Java stack on
your platform?
midp/src/configuration/configuration_xml/share/properties.xml
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?
regards,
khan.
[Message sent by forum member 'sandykhan' (sandykhan)]
http://forums.java.net/jive/thread.jspa?messageID=265530