RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX


Using the Cellular Emulator in the Windows Mobile 6 SDK : Page 2

Testing your Windows Mobile app just got a lot easier! Learn how to set up both Windows Mobile 6 Professional and Standard emulators and work with the Cellular Emulator.


Configuring Data Connections

One of the uses of the Cellular Emulator is to emulate 2G and 3G network connections for your Windows Mobile emulator. Doing so will provide your applications with Internet access without needing to use the ActiveSync or network card mapping technique.

Configuring data connections using GPRS (via the Cellular Emulator) is straightforward for a Windows Mobile Professional emulator. Follow these steps to set up an Internet connection using the Cellular Emulator:

  • Go to Start—>Settings.
  • Select the Connections tab.
  • Select Connections.
  • Under the My ISP item, select "Add a new modem connection."
  • Enter a name for the connection and select Cellular Line (GPRS). Click Next (see Figure 6).
  • For access point name and login credential information, leave them empty.
Using Internet Explorer, you can now determine whether the connection is successful. Figure 7 shows that, if the connection is successful, you'll see the G icon shown at the top of the Windows Mobile emulator. On the Cellular Emulator's end, you'll see the number of bytes transferred across the data channels, as well as the indicator showing that GPRS is connected.

Figure 6. The GPRS Connection: Configuring a GPRS connection for the Windows Mobile Professional emulator.
Figure 7. Success! Connecting successfully to the Cellular Emulator.

To emulate a faster network connection, click on the Switch to 3G button on the Cellular Emulator. You'll see the 3G icon on the Windows Mobile emulator (see Figure 8).

If you cannot connect to the Internet, or you cannot see the G symbol, go to the Settings—>Advanced tab and click on the Select Networks button. Ensure that you have the configuration shown in Figure 9.

Figure 8. 3G: The screen emulates a 3G connection.
Figure 9. Correct Configuration: Be sure to set the profile correctly.

For Windows Mobile Standard devices, the process is a little more involved:

  • Go to Start—>Settings.
  • Select Connections.
  • Select GPRS.
  • Select New….
  • In the "Description:" field, give the new connection a name, say PPP.
  • In the "Connects to:" dropdown list, select Internet.
  • In the “Access point:” name, enter some text. Click Done.
  • Back in the Connections screen, select Menu—>Advanced.
  • In the "Internet connection:" dropdown list, select PPP. Click Done.
You can now try to make a connection to the Internet to see if the setup works.

Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date