Setting up virtual port for emulator connection

If you want to use HTI connection with an emulator, do the following:

  1. Install a virtual COM port driver.
  2. Configure the serial port settings and add a pair of emulated ports.
  3. Configure the emulator to use the defined emulated ports.
  4. Test the communication between the emulator and the Datagateway.

Installing a virtual COM port driver

  1. Search the internet for a virtual COM port driver or a serial port bridge, and download a driver to a temporary folder.
  2. 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.
  3. Select Yes, I have already connected the hardware, and click Next.
  4. In the Installed hardware list, select Add a new hardware device, and click Next.

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

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

  7. Click Have Disk and browse to the driver file that you saved in a temporary folder. Select the file and click Open.
  8. Confirm the installation by clicking OK.
  9. 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

  1. In Control Panel, open System > Hardware > Device Manager.
  2. Open Multi-port serial adapters and right-click the driver that you installed, and select Properties.
  3. 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.

  4. Restart the computer.

Configuring the emulator

  1. Open the S60 platfrom folder \epoc32\winscw\c, and set the following parameters in hti.cfg and HtiSerialComm.cfg:

    hti.cfg:

    HtiSerialComm.cfg:

  2. Start the emulator epoc.exe in \epoc32\RELEASE\WINSCW\urel.
  3. In the emulator, start HtiAdmin by selecting Menu > RnD Tools > HtiAdmin.
  4. Check from the HtiAdmin that Communication=SERIAL and Port=7.
  5. If not started, start the HTI Framework by selecting Options > Start.

Testing the communication between emulator and Datagateway

  1. 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

  2. Start the HTI Connection Carbide.c++ Extension by selecting Carbide > HTI Connection.
  3. Open the HTI Connection Preferences by clicking .
  4. 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.

  5. Start the Datagateway by clicking . The connection status will be displayed in the status line above the console screen.

To stop the Datagateway, click .