The emulator supports ActiveSync between the host PC (with Microsoft ActiveSync version 3.5 installed) and the emulator image. To use ActiveSync with the emulator, two available serial ports on the development workstation and a serial cable are required. The cable should be a straight-through cable, sometimes called an extension or a null modem cable (Belkin part number F2N209-6 or equivalent).
To configure the development workstation to use ActiveSync
1、Connect each end of the serial cable to an available serial port (for example, COM1 or COM2).
2、If a Pocket PC device is connected to the workstation, remove the device from its cradle and disconnect the cradle from the workstation.
3、In the ActiveSync application, on the File menu, click Connection Settings.
4、Ensure that the Allow serial cable or infrared connection to this COM port check box is selected.
5、Set the COM port in the drop-down list box to COM2 (or one of the COM ports to which the serial cable is connected).
6、Click OK to close the Connection Settings dialog box.
7、In eMbedded Visual C++, on the Tools menu, click Configure Platform Manager; in eMbedded Visual Basic, on the Tools menu, click Remote Tools, and then click Configure Platform Manager.
8、In the device list, click Pocket PC 2002 Emulator, and then click Properties.
9、Click Configure (next to the Startup Server drop-down list box).
10、In the drop-down list box next to Serial Port 1, click COM1 (or the other COM port to which the serial cable is connected).
11、Click OK to close the Emulation Configuration Settings dialog box.
13、When the emulator image is loaded and Platform Manager has completed its test, press and hold CTRL (equivalent to the Action button on the device), and click and hold the clock in the upper right of the title bar. When the shortcut menu appears, click Run.
Note When the emulator image loads, ActiveSync may try to connect to it; however, this connection will be unsuccessful. If a dialog box appears, asking whether to disconnect the port from ActiveSync or retry, click retry.
14、In the Run dialog box, type repllog and then click OK. The Repllog.exe file is the device-side part of ActiveSync that initiates a connection to the partner computer.
15、ActiveSync on the desktop side of the development workstation will detect a client that is trying to connect without an established partnership. This detection will cause the New Partnership Wizard to be displayed (the same wizard appears when a new or cold-booted Pocket PC 2002 device is connected to a desktop computer). In this wizard, first choose whether to establish a partnership or connect as a guest.
Note Establishing a guest connection is convenient when the sole purpose of the connection is to transfer files by means of ActiveSync.
16、Type a name that will be used to identify the partnership and to set the device name of the emulator image.
17、Select the types of information to be synchronized with the emulator.
18、When the New Partnership Wizard is complete, ActiveSync will synchronize the selected data to the emulator. After this synchronization, any changes made to the information (either in the emulator or on the desktop) will be synchronized.
Note After a partnership is established, use the Save Emulator State option when exiting the emulator. This option preserves the partnership and data for future use in the emulator. For more information, see Shutting Down the Emulator.