The Windows Mobile 6 SDKs shipped with a very useful tool that allows developers to test phone and SMS applications without using a real device.
To launch the Cellular Emulator, click the Start>Programs>Windows Mobile 6 SDK>Tools>Cellular Emulator. Observe the COM port number located at the bottom left of the screen. Most computers should either display either COM3 or COM4.
To enable your Windows Mobile emulator to connect to the Cellular Emulator, go to the Properties page of your Windows Mobile emulator (File>Settings) and select the Peripherals tab. Under Serial Port 0, enter the COM port that you have observed in your Cellular Emulator. Click OK.
|Author's Note: Only Windows Mobile 6 Professional emulators can connect to the Cellular Emulator; Classic emulators cannot be used as they do not have phone radios.
You need to perform a soft reset on the Windows Mobile Emulator (File>Reset>Soft). After the reset, you should now observe that the Windows Mobile emulator now has a full-signal indicator (see Figure 10).
Figure 10. Full-Signal: After the reset, you should see a full-signal indicator.
Figure 11. Fake Phone Calls: The Cellular Emulator calls the Windows Mobile emulator.
You can now make a phone call from the Cellular Emulator and the Windows Mobile emulator will receive an incoming call (see Figure 11).
|Figure 12. Fake SMS Messages: The Cellular Emulator messages the Windows Mobile emulator.|
Likewise, the Windows Mobile emulator can also make an out-going call and the call will be displayed in the Cellular Emulator. The Cellular Emulator also shows a list of numbers (7272024, 7272020, etc) that you can use to simulate different phone conditions (such as busy line, call reject, and so on).
You can also use the Cellular Emulator to send SMS messages to the Windows Mobile emulator (see Figure 12). You can send a chain of messages by checking the Repeatedly checkbox and specifying the intervals between messages. SMS messages sent by the Windows Mobile Emulator will also be displayed in the Cellular Emulator.
Now you've seen how to use the Windows Mobile emulator and how to lend it Internet access using the various available methods. You've also seen how to connect a Windows Mobile emulator to the Cellular Emulator so that you can enable phone and SMS functionalities in your emulator.