Windows Mobile program environment configuration and UDP communication between Windows Mobile and PC

Source: Internet
Author: User

Developed Windows Mobile in September 27 Program Environment configuration and UDP communication between Windows Mobile and PC

1. install Active Sync, Windows Mobile SDK, and Windows Mobile SDK Chinese Images
Download URL: http://blog.csdn.net/lanruoshui/archive/2009/07/11/4339864.aspx

2. If it is a simulator for UDP communication, you need to install the virtual network card for relevant settings, refer to the following URL
Example:
IP Address: 192.168.0.10)
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1)
After the settings are successful, restart the simulator and Ping 192.168.0.10 on the PC to check whether the settings are successful, you can use the simulator for UDP communication, and the simulator can access the Internet.

Note: when running the program, if the simulator is used, remember that Active Sync is gray and cannot be green, that is, do not insert the base in the device simulation manager.

Possible questions:
(1) how to Ping: Start-run-input cmd-input Ping 192.168.0.10
(2) how to check whether the Ping is successful: If reply from 192.168.0.10: bytes = 32... is returned, the Ping is successful,
If the request timed out is returned, the Ping is not successful. You can set another IP address and then ping it after soft restart.
(3) how to enable the device simulation Manager: Tools-device simulation Manager
(4) What is the device simulation manager? It is used to simulate a simulator into a real machine and plug it into a PC. You can open my computer.-Double-click a mobile device, you can see the files in the simulator.
For example, if you installed the Windows mobile6.0 SDK and installed a Chinese image.
If you deploy Windows Mobile 6 embedded sioal emulator when you start the program, right-click Windows Mobile 6 embedded sioal emulator-connection-in the device simulation manager and click Insert base.
If you deploy CHS Windows Mobile 6 Integrated sioal emulator when you start the program, right-click CHS Windows Mobile 6 Integrated sioal emulator in the device simulation manager. Remember to select the same one as your deployment, otherwise, Active Sync cannot connect to the simulator, and you cannot see the files in the simulator on the mobile device.
If you do not have a Chinese image installed, you can use the English language, that is, Windows Mobile 6 ‑sioal emulator. CHS indicates that the image is in Chinese.

Web: http://blog.csdn.net/okadler0518/archive/2009/06/15/4271791.aspx

3. If it is a real machine, the program is packaged into a cab and installed on the real machine. If the shortcut method does not respond, the program cannot be called,
It may be that the. NET Compact framework is not installed on your windows mobile real machine. Check whether you are on a PC,
Which version of. NET Compact framework is selected when you create a new project in Visual Studio.
(For example, if you use. NET Compact framework3.5 when creating a project, download. NET Compact framework3.5 and install it on your mobile phone .)

4. if you use a mobile phone to communicate with a PC over UDP, you need to use GPRS to access the Internet. You need to set the APN (if UDP is set to cmnet; otherwise, you can also set it to cmwap because cmwap has a gateway, there are restrictions and socket communication is not allowed .)

5. Set APN (cmwap)
(1) Start ----- set ------ "connection" in the bottom row"
(2). Click the connection above ----- click Advanced.
(3). Click "network". In the "Network Management" dialog box, use the "Next" button to create a connection when the program automatically connects to the Internet.
(4) enter the ISP name
(5). Click the modem and click Create.
(6) enter the connection name cmwap select the modem: cellular telephone line (GPRS) click Next.
(7). Enter the Access Point name cmwap point next
(8). Do not worry about the user name and password. Leave it empty. Click Finish.
(9). Proxy Server settings in the bottom row of the dot. Select both of the selection boxes and enter: 10.0.0.172 advanced in the proxy server dialog box.
(10) set the http wap security WAP socks to 10.0.0.172 (different places, ask mobile. The interface socks type is empty. Select socks5. click OK.
(11). Now we are back. In step 2, set the network management dialog box. You will see that the above selection box has appeared. We just created the cmwap option. Select the box below. You can also select the cmwap option. Okay, now all the way OK, surfing the internet
Note: Close the program in time:
When you open many programs, you click OK to close the program. In this way, the mobile phone will be slow. You only need to open the task manager. Just end all the programs. You can also press the OK key. After the task manager pops up, press the key above the OK key to close all.

Web: http://club.tech.163.com/bbs/mobile_btsc/85082919.html

As mentioned above, UDP communication cannot be set as cmwap. Data is intercepted and cannot be received on the server. It should be set as cmnet.
Question:
(1) how to set cmnet: the steps for setting cmnet are the same as those for setting cmwap, but cmnet does not need to set 10.0.0.172 (this IP address is the gateway of mobile cmwap, and currently only this gateway is used). It can be left blank or set to 0.0.0.0.
(2) differences between cmwap and cmnet: check online and explain in detail. Http://tech.ccidnet.com/art/1093/20050317/224551_1.html

Related urls:
(1) GPRS dialing: http://www.cnblogs.com/fox23/archive/2008/08/15/Establish-a-GPRS-connection-with-TcpClient.html
(2) GPRS management and creating APN dial-up connections: http://www.cnblogs.com/michael-zhangyu/archive/2009/07/04/1516797.html

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.