13 serial port access – Motorola HANDSET C381P User Manual
Page 62
13
Serial Port Access
62
13
Serial Port Access
The Serial Port RS232 API is incorporated into any J2ME device allowing connection to
the J2ME serial port communication stream.
Opening the port requires the form Connector.open("comm:/name;parameters) where
name is the name of the serial port. (A comma separated list of supported names can be
obtained by calling System.getProperty("serialport.name");)
The API should allow the J2ME application to query for the available device connections
(data cable), as well as the available data speeds.
This API should be in-line with the CLDC javax.microedition.io Version 1.02. In addition,
the following changes must be added over the CLDC standard:
• Automatic baud rate detection.
• Addition of more parity options; specifically mark and space.
• Support for 1.5 stop bits as a common UART feature.
• Changes to port names, as opposed to the "open by port number option". The
use of actual port names are more meaningful to the user.
• The mode parameter for Connector.open() is not ignored. A MIDlet should not be
allowed to write a connection which is specified as READ only.