Motorola maxx V6 manual CommConnection Interface, Accessing, Draft Subject to Change 183/201

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 183
Image 183

Java ME Developer Guide

Chapter 28 - CommConnection Interface

28 CommConnection Interface

28.1 CommConnection

The CommConnection interface defines a logical serial port connection. A logical serial port connection is a logical connection through which bytes are transferred serially. This serial port is defined within the underlying operating system and may not correspond to a physical RS-232 serial port. For example, IrDA IRCOMM ports can be configured as a logical serial port within the operating system so it can act as a logical serial port.

28.2 Accessing

The Comm port is accessed using a Generic Connection Framework string with an ex- plicit 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 ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ is thrown if an attempt is made to open the serial port with ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ if the connection is already open.

A URI with the type and parameters is used to open the connection. The scheme, as defined in RFC 2396, will be the following:

￿￿￿￿￿￿ ￿￿￿￿￿ ￿￿￿￿￿￿￿￿￿￿￿ ￿￿￿￿￿￿￿￿￿￿ ￿￿￿￿￿￿￿￿￿￿￿￿

DRAFT - Subject to Change [183/201]

Page 183
Image 183
Motorola maxx V6 manual CommConnection Interface, Accessing, Draft Subject to Change 183/201