Use wifi to build an ad-hoc Network on Windows Mobile

Source: Internet
Author: User

In general, we will use the WiFi module on Windows Mobile devices to access the Access Node, so as to achieve the goal of surfing the Internet. Such as my previousArticleAs described in Windows Mobile Wireless Network Access Point scanning, we can scan the current wireless environment and find the nearby AP access points, showing their names, MAC addresses, and signal strength), Wi-Fi channels, and password required. So can we use wifi to establish connections between devices? It is actually a question about how to build an ad-hoc Network (or point-to-point/P2P) on a Windows mobile device.

And so on. If a point-to-point connection is established on a Windows Mobile Device, can Bluetooth be implemented? Indeed, using Bluetooth to establish connections between devices is indeed the mainstream for many mobile devices. For more information about Bluetooth development on Windows Mobile devices, refer to the blog of mvp jacob: http://www.cnblogs.com/procoder/, where he has done a lot of work. On the other hand, the bandwidth disadvantage of Bluetooth is obvious compared with WiFi, and the transmission distance is not far from wifi. Of course, in general, the power consumption of wifi is larger than that of Bluetooth, but in some application scenarios, we focus on bandwidth and distance. Therefore, from the above analysis, using WiFi to establish a point-to-point connection on a Windows Mobile Device is of application significance.

So how can we build an ad-hoc Network on Windows Mobile? The document "A tutorial of setting up and using Wi-Fi peer-to-peer connections between Pocket PC's" On xda provides a wizard. Here I just do some practical work, therefore, I am very grateful to the author of this article. Next, I will take Windows Mobile 2003se for Pocket PC and Windows Mobile 6 Professional as an example to illustrate the configuration steps step by step.

First, we confirm that the Windows Mobile 2003se for Pocket PC device is server, and the Windows Mobile 6 Professional device is client.

Open WiFi, and click Settings-to add a new one. Here, set the network name to "myppcnet" and select "this is a device-to-device (specific) Connection", as shown in:

In the network key, select "verify enabled" and "Disable Data Encryption" (you can also select "Data Encryption ). After setting, click "OK". In the wireless network, "myppcnet" appears. Long-click it. In the right-click menu, select "connection ", make the network "connected", as shown in:

After the server is configured, we turn to the client, open the wireless network, and select "WiFi" in settings-connection. The system will list a bunch of scanned wireless networks, we can find the "myppcnet" just created on the server, as shown in:

When "myppcnet" is set on the client side, it must be set based on the server side, especially the options such as identity authentication and data encryption, as shown in:

After a while, we can find that "myppcnet" is connected. We can also find its MAC address, mode, channel, and other information, as shown in:

So far, the Ad-Hoc network between the server and client has been established.

 

References: a tutorial of setting up and using Wi-Fi peer-to-peer connections between Pocket PC's

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.