Share via


Terminal Emulator

Windows Mobile SupportedWindows Embedded CE Not Supported

8/28/2008

This code sample is named TTY. It demonstrates how to open, configure, and close, a serial communications port, and perform read/write operations for a TTY terminal emulation application.

Feature Area

Relevant APIs

Usage

To run the code sample

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\Tty

    Microsoft Visual Studio 2005 launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

  4. On the desktop, open a hyper-terminal, choose "Com1" or "Com2" and the baud rate (for example, 9600).If you connected the mobile device with the desktop through serial connection by using "com1", then choose "com2". Otherwise, choose "com1".

  5. Connect the mobile device to the desktop through the chosen com port.

To use the application

  1. Launch the TTY application on the mobile device.

  2. Type letters on the hyper-terminal and you'll see them appear in the TTY application window (and vice versa).

Remarks

The mobile device must have an available COM port, and it should be connected through the COM port to the desktop.

Development Environments

Pocket PC SDK: Windows Mobile 6 Professional SDK 

Development Environment: Visual Studio 2005.

ActiveSync: Version 4.5.

See Also

Concepts

Code Samples for Windows Mobile