Qtopia Home - Classes - Hierachy - Annotated - Functions - Qt Embedded

SerialProxy Class Reference

Proxy for managing an external serial interface. More...

#include <serialproxy.h>

List of all member functions.

Public Members

Static Public Members


Detailed Description

Proxy for managing an external serial interface.

Most modern phones have an external serial interface, which is used to connect to a computer for the purposes of data calls, FAX transmissions, or synchronization with desktop applications.

The SerialProxy class assists with this process. It sets up a proxy connection between the external serial interface and an internal GSM 07.10 capable modem. The serial interface may be RS-232, USB, Bluetooth, or any other suitable connection protocol.

We assume that the cable that connects the phone to the computer is wired like a null modem, even if the "cable" is USB, Bluetooth, etc:

TD --> RD
RD <-- TD
DTR --> DSR, DCD
CTS <-- RTS
RTS --> CTS
DSR, DCD <-- DTR

If the cable isn't wired in this fashion, then the SerialProxy code may need to be modified for a specific device.

The external device must be configured in the Phone.conf file. For example:

    [SerialDevices]
    ExternalAccessDevice=/dev/ttyS1
    ExternalAccessSpeed=115200
    

See also Qtopia Phone Classes.


Member Function Documentation

SerialProxy * SerialProxy::create ( MuxDeviceChannel * channel ) [static]

Create a serial proxy and associate it with a GSM 07.10 multiplexing channel. The external serial port is initialized from parameters in Phone.conf. Returns NULL if the proxy has not been configured.

This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.1.2