Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Mastering the Windows Mobile Emulators : Page 3

The latest versions of the Windows Mobile 6 Professional and Standard SDKs allow you to test phone and SMS functionalities using the built-in Cellular Emulator—without needing to use a physical device.


advertisement
Cellular Emulator
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.

Better Debugging
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.



Wei-Meng Lee is a Microsoft MVP and founder of Developer Learning Solutions, a technology company specializing in hands-on training on the latest Microsoft technologies. He is an established developer and trainer specializing in .NET and wireless technologies. Wei-Meng speaks regularly at international conferences and has authored and coauthored numerous books on .NET, XML, and wireless technologies. He writes extensively on topics ranging from .NET to Mac OS X. He is also the author of the .NET Compact Framework Pocket Guide, ASP.NET 2.0: A Developer's Notebook (both from O'Reilly Media, Inc.), and Programming Sudoku (Apress). Here is Wei-Meng's blog.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

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