Wednesday, October 10, 2007

Tip: Using the Cellular Emulator in the Windows Mobile 6 SDK

One of the very cool tools available in the Windows Mobile 6 SDK is the Cellular Emulator. The Cellular Emulator allows you to use the Windows Mobile Emulator to emulate making and receiving phone calls, as well as sending and receiving of SMS messages. However, getting it to work with your emulator is not so straight-forward. Follow the steps outlined below:

1. Launch Cellular Emulator from Start -> Programs -> Windows Mobile 6 SDK -> Tools -> Cellular Emulator.

2. Observe the COM port number used by the Cellular Emulator. For my example, it is COM3. You may see something similar or different (like COM4).

3. Launch the Windows Mobile 6 Professional Emulator (make sure it is not the Classic emulator) from within Visual Studio 2005. You can do so from Tools -> Device Emulator Manager and right-click on Windows Mobile 6 Professional Emulator and select Connect.

4. In the Windows Mobile 6 Professional Emulator, select File -> Configure... and click the Peripherals tab.

5. Under Serial port 0: enter the COM port number used by the Cellular Emulator. For my example, I enter COM3. Note that you have to manually enter the COM port; it is not listed in the dropdown list.

6. Finally, reset the Windows Mobile 6 Professional Emulator by selecting File -> Reset -> Soft. This step is essential!

You should now be able to get the Cellular Emulator to "talk" to the Windows Mobile 6 Professional Emulator.

Some common problems

1. From experience, you are likely to encounter problems with the Cellular Emulator if you install the Windows Mobile 6 SDK on a notebook. You are likely to see an error that says "COM17 is used, please verify" (or something similar). There is no official way to resolve this, but it seems like some folks managed to solve this by first uninstalling the Windows Mobile 6 SDK, then disable the Bluetooth services, followed by installing the Windows Mobile 6 SDK again.

2. If you find that the Windows Mobile emulator is not receiving SMS messages/phone calls made from the Cellular Emulator, the first place to check is the COM port settings in the Emulator Properties page. I encountered instances of this problem when the emulator started to lose the COM port settings after a while of use.






A call center service can help you with your telephone needs if you run a growing business. A good phone answering service can provide plenty of help; some companies wouldn't work without an external answering service to take calls.

9 comments:

Lim Boon Tiong said...

this is so cool!!

thanks for the setuo tip, I managed to get it to work. :)

kurry said...

why doesn't it work with windows mobile 5.0 device emulator?

Alexy said...

thanks man. saved my day

Alexy said...

thanks man. u saved my day

Ashok Senapati said...

Good tips. thanks

Unknown said...

I run cellular and error message: COM4 is in use...
I tried to remove WM 6.1 sdk but once again the message: COM4 is in use, please close Cellular Emulator .... i cannot remove it.
Please help

Unknown said...

Hi
I cannot remove SDK nor use cellular emulator due to message: COM4 is in use....
please help ...

Ju Huynh said...

Change BIOS setting solved it.
Thanks
Du H

Unknown said...

to solve the COM in use issue, try this (found it on http://social.msdn.microsoft.com/forums/en-US/microsoftdeviceemu/thread/c3bc80fa-ed59-4ce7-bf42-3f77f85e9574/)
Worked instantly :) Thanks to JonnyVicious


- Open Regedit
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\xpvcom\history\group
- Double-Click on the entry named '6', the one with a value equal to 'COM17<-->COM27'
- Clear the value so that you still have the entry named 6 but data is empty
- Start Cellular Emulator