Setting up virtual port for emulator connection
If you want to use HTI connection with an emulator, do the following:
- Install a virtual COM port driver.
- Configure the serial port settings and add a pair of emulated ports.
- Configure the emulator to use the defined emulated ports.
- Test the communication between the emulator and the Datagateway.
Installing a virtual COM port driver
- Search the internet for a virtual COM port driver or a serial port bridge, and download a driver to a temporary folder.
- Open the Add Hardware Wizard by opening the Control Panel, selecting Add Hardware, and clicking Next. The Add Hardware Wizard first scans your system for new hardware.
- Select Yes, I have already connected the hardware, and click Next.
- In the Installed hardware list, select Add a new hardware device, and click Next.

- Select the option Install the hardware that I manually select from a list (Advanced), and click Next.

- In Common hardware types, select Multi-port serial adapters, and click Next.

- Click Have Disk and browse to the driver file that you saved in a temporary folder. Select the file and click Open.
- Confirm the installation by clicking OK.
- If prompted, ignore the warning that the driver is not digitally signed, and click Next. This will install the virtual COM port driver.
Configuring the serial port settings
- In Control Panel, open System > Hardware > Device Manager.
- Open Multi-port serial adapters and right-click the driver that you installed, and select Properties.
- In the driver Properties, define at least one pair of emulated ports. Use COM ports that are not in use (COM7 and COM8). When you are done, click OK.

Note: Adding a new pair of emulated ports requires a restart.
Note: Do not use any existing COM ports. These are listed in the Ports (COM & LPT) section of Device Manager.
- Restart the computer.
Configuring the emulator
- Open the S60 platfrom folder \epoc32\winscw\c, and set the following parameters in hti.cfg and HtiSerialComm.cfg:
hti.cfg:
- EnableHtiAutoStart=1: start the HTI framework during emulator startup.
- CommPlugin=SERIAL: use serial communication.
- ShowConsole=1: open console at startup.
HtiSerialComm.cfg:
- CommPort=7: use COM port 8 (the port numbers run from 0 onwards, i.e. 0=COM1 etc.).
- SendDelay=5: prevent data communication problems caused by virtual com ports.
- Start the emulator epoc.exe in \epoc32\RELEASE\WINSCW\urel.
- In the emulator, start HtiAdmin by selecting Menu > RnD Tools > HtiAdmin.
- Check from the HtiAdmin that Communication=SERIAL and Port=7.
- If not started, start the HTI Framework by selecting Options > Start.
Testing the communication between emulator and Datagateway
- Start the emulator and HtiAdmin as instructed above.
Note: Make sure that you start urel version of the emulator: \Epoc32\Release\winscw\urel\epoc.exe
- Start the HTI Connection Carbide.c++ Extension by selecting Carbide > HTI Connection.
- Open the HTI Connection Preferences by clicking
.
- Set the Connection Type to Serial, and select the serial port that you configured for the virtual COM port (COM7). Click OK to close the Preferences dialog.

- Start the Datagateway by clicking
. The connection status will be displayed in the status line above the console screen.
To stop the Datagateway, click
.