Cellular emulator in Windows Mobile 6 SDK

Source: Internet
Author: User

Currently, most Windows Mobile devices have telephone and other wireless communication functions. In many cases, you want your applicationProgramInteract with these communication functions. For example, you want to reduce the sound of your app playing music when the phone calls, or you need to directly perform various operations on the communication hardware. It is often difficult to develop such applications. The biggest difficulty lies in testing applications.

To solve the difficulty of testing such applications, the Windows Mobile 6 SDK contains cellular emulator (cellular simulator ). Cellular emulator enables you to test the behavior of your applications in various cellular communication conditions in device emulator.

Cellular emulator is a powerful testing tool that can be used to test the behavior of your applications when the cellular communication status changes. You can use cellular emulator to perform some simple tests, such as calling in the simulator, answering incoming calls and hanging up the phone, and sending and receiving SMS messages. To enable developers to test more complex functions, cellular emulator also supports modification of SIM configuration information, as well as selection of 2G network or 3G network. No physical device is required for all these tests.

To enable cellular emulator and device emulator to work together, you must first associate them.
1. Write down the COM port number of the status bar in the lower left corner of cellular emulator. Such as com5.
2. Select"File --> Configure..."Menu item, openEmulator PropertiesDialog box.
3. InEmulator PropertiesSelectPeripheralsTab.
4. Enter the COM port number you noted downSerial Port 0Text Box. If you cannot find your port number in the drop-down list, enter it by yourself.
5. Click OK to save the settings and close the settings.Emulator PropertiesDialog box.
6. Click"File --> Reset --> soft"Menu item to perform soft reset operations on the simulator.

After the simulator is reset and restarted, you will see that the simulator's cellular network is available. If the problem persists, it may be because the system has not been restarted after the Windows Mobile 6 SDK is installed.

Call the simulator
Open the cellular emulatorCall ManagerTab, inPhone numberEnter any phone number in the text box and clickDialThe phone number of the simulator will ring and the incoming call from the entered phone number will be displayed. In this caseActive CILSActive calls on the simulator will appear in the list,StatusDisplayed as incoming.
Use the phone number 7272024 to call the simulator:

The simulator receives a call number 7272024:

Call from the simulator
InPreset numberThe list provides four phone numbers for testing.BusyIndicates the line is busy,RejectIndicates that the answer is rejected,Hang up after connectIndicates that the device will be hung up after receiving the answer,No answerIndicates no response. Try to call the 7272021, cellular emulatorActive CILSThe List displays the active calls of the simulator. After the phone is connected, it lasts for 10 seconds and then hangs up, that isHang up after connect.

Send SMS messages to the simulator
Open the cellular emulatorSMSTab, inSend to DeviceEnter the text message content in the multi-line text box, and then clickSendButton to send the text message to the simulator.

The simulator will receive a new text message:

You can also set repeated sending. SelectedRepeatlyCheck box, SetInterval(Interval) andMax count(Maximum), and then clickSendButton. If you reply a message in the simulatorReceive from DeviceThe text message you replied to is displayed in the list.

Select Network
Open the cellular emulatorNetworkTab, you can select 2G or 3G networks, disconnect GPRS, View data channels, and so on.

Execute and view at commands
Open the cellular emulatorInjectionTab, where you can send AT commands or events to the simulator.

Open the cellular emulatorAt logTab, you can see all the AT commands corresponding to the operations on the simulator.

Use the configuration file
Which SIM configuration file can be selected here. The file content is in XML format.

Summary
With the cooperation of cellular emulator, device emulator is more powerful. Now Windows Mobile 6 developers can use simulators for development and testing, without the need to buy a variety of real devices. Unfortunately, cellular emulator does not support Windows Mobile 5.0 and Windows Mobile 2003 simulators. However, the Windows Mobile 6 API is the same as the vast majority of Windows Mobile 5.0 APIs, so you can develop and debug Windows Mobile 5.0 applications in the Windows Mobile 6 simulator. For Windows Mobile 2003, the test results may not be so consistent. You can try it yourself.

Refer:
What's new for developers in Windows Mobile 6

I will introduce new features and new tools for Windows Mobile 6 in the near future. If youArticleIf you have any suggestions or ideas, please reply to the article or write an email to me. Thank you for your support!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.