The Windows Mobile 6.0 SDK contains an emulator tool. Program Simulate the entire PPC runtime environment during development. However, many functions (such as calling, sending text messages, and connecting to GPRS) cannot be implemented after installation.
This article Article I will answer these frequently asked questions during the development process one by one, mainly from the msdn Development Forum for your research.
1. How to connect the simulator to the Internet?
1. Open the main interface of device emulator manager.
2. Select a simulator to connect to the Internet.
3. Right-click the simulator and select "Connect ".
4. After the simulator is started, right-click the simulator in device emulator manager again.
5. Click "Cradle ".
6. In this case, ActiveSync on the taskbar displays "connected ". (Check whether the configuration is correct: Enable the DMA mode in ActiveSync .)
7. Set the proxy method:
A. Click Start> set> connect ".
B. Select connections ".
C. My work network> set proxy server.
D. Enter the correct server name and IP address to connect to the Internet through the proxy server.
2. How can I use the WM simulator to call, send short messages, or connect to the GPRS network?
The Windows Mobile 6.0 SDK contains a tool named cellular emulator, which can be used to simulate sending short messages, making phone calls, and connecting to the GPRS network. Of course, this is all simulated.
The following describes how to use cellular emulator:
1. Start the simulator and cellular emulator (in the Start Menu, program, Windows Mobile 6 SDK, tools, and cellular emulator ).
2. In the status bar of cellular emulator, you can see a COM port number.
3. In the options File> options of the simulator, select the peripherals tag.
4. Map serial port 0 to the COM port number shown in step 2.
5. Restart the simulator (File> restart> soft restart ).
Cellular emulator can simulate a GPRS connection. You can create a virtual GPRS connection just like creating other types of virtual data connections. When simulating a GPRS connection, username and password are not checked, so you can set them as needed. After the data connection is established, the simulator is like a network connected to the host. If the host needs to set a proxy to connect to other machines, the same settings are also required on the simulator.
Assume that an HTTP proxy needs to be set in a network environment to access the external network. The sample settings on Windows Mobile 6 standard and Windows Mobile 6 Professional are described in the following section.
Windows Mobile 6 Standard
1. Go to Start-> Settings-> connections-> GPRS-> menu-> Add and use the following settings to create a GPRS connection:
Name: PPP
Connects to: WAP network
Access Point: Access Point name
User name: Set to null (indicating Anonymous Users)
2. (optional) Go to Start-> Settings-> connections-> proxy-> menu-> Add and use the following settings to create a proxy ):
Description: proxy
Connects from: WAP network
Connects to: the Internet
Address: proxy server address
3. Choose Start> Settings> connections> menu> advanced. The settings are as follows:
Set Internet connection to PPP.
Set WAP connection to PPP.
Other Default options
4. Open Internet Explorer mobile, choose menu> Tools> Options> connections, and configure as follows:
Automatically detect settings: checked
Select network: the Internet
5. Use the arrow keys to select the IE mobile icon.
6. Now you can use IE mobile to browse the Web page.
Windows Mobile 6 Professional
1. If your computer uses a proxy to access the network, you must set a work connection on a Windows Mobile device; otherwise, you can set an Internet connection.
2. Establish a GPRS connection. Set access point and username to null.
3. (optional) set a proxy. This should be set to the full name of the proxy required by the company network.
4. Now you can open ie mobile and browse the Web page.
3. How to access the Web service of a local machine on the WM simulator?
If you want to access a web service on the local machine in a smart device project, you need to replace "localhost" with the computer name of the desktop computer, for example:
Http: // computername/webservice1/service1.asmx
Computername is the name of your computer.