com.nokia.m2m.imp.comm
Interface CommConnection
- All Superinterfaces:
- Connection, InputConnection, OutputConnection, StreamConnection
- public interface CommConnection
- extends StreamConnection
Interface defining a logical serial port connection.
A "logical" serial port is defined as a logical connection through which bytes
are transferred serially.
A comm port is accessed using a Generic Connection Framework string with an
explicit port identifier and embedded configuration parameters,
each separated with a semi-colon (;).
Only one application may be connected to a particular serial port at a given
time. A java.io.IOException is thrown, if an attempt is made to open the
serial port with Connector.open() and the connection is already open.
Nokia 12 GSM module supports the opening of a single serial port
for the J2ME specific data transfer at a given time. The serial port used is
COM3. In the Nokia 12 IMP 1.0 Concept Simulator, the user can, however,
define the real serial port used for serial communication.
A URI with the type and parameters is used to open the connection.
The scheme (defined in RFC 2396) must be: comm:[]
The first parameter must be a port identifier, which is a logical device name.
These identifiers are most likely device specific and should be used with care.
getBaudRate
public int getBaudRate()
setBaudRate
public int setBaudRate(int baudrate)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Portions of this document are under the following copyright:
Copyright © 2003 Nokia. All rights reserved.