diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-35D49549-1F4D-583F-A45D-9B557A207DD2.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-35D49549-1F4D-583F-A45D-9B557A207DD2.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,54 @@ + + + + + +GlassTerm: +glass teletype terminal +
Download

Click on the following link to download +the example: GlassTerm.zip

Download some additional files required +by the example: CommonFiles

Click: browse to view the example code.

View the additional +files: browse.
+
Description

GlassTerm is a terminal application +with configurable handshaking that illustrates the use of the Serial Communications +API.

+
Class Summary

RComm: serial port

RCommServ: +Comms server

TCommCaps: serial port capabilities +(in package buffer)

TCommConfig: serial port configuration +(in package buffer)

TRequestStatus: asynchronous +request status

TSerialInfo: serial protocol information

+
Build

The source code for this example application +can be found in the directory:

examples\SerialComms\ServerClientSide\GlassTerm

It +may be in the directory in which you installed Symbian OS, or it may be in src\common\developerlibrary\. +It includes the two project files needed for building: bld.inf and +the .mmp file.

The +Symbian OS build process describes how to build this application, which +results in an executable called \epoc32\release\<target>\<urel +or udeb>\GLASSTERM.EXE.

+
Usage
    +
  1. Run the executable GLASSTERM.EXE.

    Executables +for the emulator targets wins and winscw can +be run on your PC. Executables for ARM targets must be copied to your target +platform before being run.

  2. +
  3. Once running, the glass +teletype application performs two simple functions:

      +
    • Read any key presses +and send the characters to the serial port.

    • +
    • Receive any incoming +characters from the serial port and display them on screen.

    • +

    It sends and receives at 19200 baud, 8 data bits, no parity, 1 stop +bit.

  4. +

In order to see the application working, you must make a suitable +serial port connection. A simple way is to connect a PC and a Symbian OS phone, +and run the application on both machines simultaneously. (Before doing this, +make sure to close down any other applications using the serial port on the +PC, and set the phone's Link To Desktop option +to Off). Characters typed on one machine are +then echoed to the application on the other.

+
\ No newline at end of file