Vista, and the Device and Cellular Emulators

Vista, and the Device and Cellular Emulators

Today I have been doing some work with the Windows Mobile notification broker, which, for those who haven’t used it is basically the event bus that Windows Mobile has for notifying applications when system properties have changed. For example in my application I can register an event handler for when the system state PhoneIncomingCall changes.  This is useful as it means that my application can respond to device based events, instead of just the typical user interaction. 

Unfortunately one of the issues with doing this type of development is how do you test your code.  I could simply call my real device but that might get expense.  Alternatively the Windows Mobile SDK now includes a cellular emulator which you can use in conjunction with the device emulators to simulate phone calls, messages and other connectivity.

Now I don’t want to provide another How To article on the cellular emulator as there are a couple out there including a particularly useful one by Wei Meng Lee on getting started and a similar one by fellow Aussie, Dave Glover. However what I want to briefly point out is one of the issues I faced today in getting it to work.  These two articles are both great starting points, however when I attempted to restart the emulator (after adding the peripheral COM port) all I would get is the black screen of death (equivalent of the blue screen for desktop machines – basically the device emulator fails to restart properly).

The fix to this issue, as indicated in the first of the common problems discussed by Wei, is to disable the bluetooth services.  Luckily you don’t actually need to go to the great pain of reinstalling the Windows Mobile SDK.  Here’s what you need to do:

  • Stop the Bluetooth Support Service – As I don’t need the Bluetooth service at all I’ve elected to stop it and set the Startup Type to Manual.  Apparently once you have the cellular emulator working you can restart this service without causing any issues.


  • Reinstall the  XPVCom device driver – From an administrator command line issue the following commands:
  • C:Program FilesWindows Mobile 6 SDKToolsCellular Emulator>InstallXPVCom.exe uninstall

    C:Program FilesWindows Mobile 6 SDKToolsCellular Emulator>InstallXPVCom.exe install

  • Do a soft reset of your emulator – File -> Reset -> Soft

Once you have done these steps (in addition to those steps provided by Wei) you should be able to initiate a call from the cellular emulator and send sms messages to the device emulator.  Note that you don’t need to have the emulator cradled for this to work since the cellular emulator talks directly to the device emulator.  This is particularly useful in light of the ongoing issues with both ActiveSync and the Windows Mobile Device Center…… still waiting for a reliable tool Microsoft!!!

TechEd 2008 Australia gets a mobility track

TechEd 2008 Australia gets a mobility track

For anyone who has been working in the Microsoft mobility and embedded space you will have noticed that there has not been an MEDC event this year.  Luckily there is still an opportunity to get your gear-fix for the year at this year’s TechEd.  This year there is a twist – in addition to the traditional tracks there is now the concept of a virtual track.  A virtual track is one that has sessions spread across the other tracks.  For example this years virtual mobility track has sessions in both the database, developer and security tracks.  More information on this is available via the TechEd Event Tracks page.

Early bird registrations are now open and with a saving of $250 it’s definitely worth getting in early.  You can register by following the links from the main TechEd Australia website.  As the NZ event sells out incredibly early if you happen to be looking to go to that instead/as well you’d better get cracking!

Long live the mobile developer

Long live the mobile developer

It seems that Microsoft has remembered that there are still developers out there building mobile applications.  It would appear that there isn’t much new stuff out there for mobile developers in the Windows Mobile platform (not much has really changes since WM5 was released).  Hopefully with a new team blog and more interactive documentation things may be changing.  Anyhow, enough of the talk, here are a couple of links worth checking out:

  • Team blog for the Mobile Developer Group (Microsoft)
  • MSDN Wiki:

Windows Mobile:

Windows CE:

Shared WM/CE Library:

MSDN Annotations is easy to use. Just click on the Add New Content link below the Community Content bar, write your comment, add your tag(s), and then click Submit. We will be actively monitoring your comments and are looking forward to everybody’s feedback!

Hope these are useful.  If not, let the team know!