My OpenWrt Study notes (26): Smartconfig One-click Configuration UDP principle

Source: Internet
Author: User

My OpenWrt Study notes (26): Smartconfig One-click Configuration UDP principle

1, an electronic device access network method based on WiFi communication, characterized in that the method comprises:

Step S1: The sending side encrypts the raw data information to be transmitted in 16 binary form to send data;
Step S2: The sending side will send the data to be sent and the data index to join the multicast IP address;
Step S3: The sending side maps the multicast IP address to the corresponding multicast MAC address;
Step S4: The sending side repeatedly issues the multicast packet containing the multicast MAC address;
Steps S5 : The receiving end is scanned according to the prior WIFI channel, continuous cycle scan WIFI Channel to detect multicast packets sent by the above senders;
Step S6: The receiving end obtains the multicast MAC address information of the multicast packet when it detects the multicast packet;
Step S7: The receiving end resolves the multicast MAC address of the 16 binary form of data to be sent;
Step S8: the receiving side resolves the sending data information from the sending party and decrypts the original data sent by the sending party.
2 as claimed in claim 1, wherein the WIFI communication electronic device access network method, characterized in that, in step S2, the sender will send the data to join the multicast IP address of the low 32-bit, the index to send the data to join the low 23-bit multicast IP address.

3. The electronic Device Access network method of the WiFi communication as claimed in claim 1, characterized in that said transmitting end is a mobile phone or tablet WiFi device, the receiving end is a WiFi communication electronic device, the original data information is the router WiFi SSID and passwd.

Background technology

The method of device access network based on WiFi technology, which is called one-key configuration Smartconfig, is mainly using the method of the SSID and key of the UDP broadcast (255.255.255.255) router. The technical programmes of the existing technical methods are specified as follows:

Smart home appliances work in ap+station mode or station mode (at the same time in promiscuous mode, can receive all 802.11 packets on the network), smart terminal such as mobile phone, pad and other work in station mode, 1, when smart home appliances in channel1- The CHANNEL13 is constantly switching between the network communication data broadcast packets (255.255.255.255) leading packets that loop through the SSID key issued by other intelligent terminals in the network environment, and if the relevant information is received, stop switching channel and continue to receive the relevant information. Until all the information received, the smart home appliance in accordance with the corresponding decoding rules to resolve the correct SSID key information, configure itself connected to the received SSID, and then send the configuration of the successful information returned to the smart terminal, the smart Terminal received smart appliance configuration on the network message, display configuration success. The defects of existing technologies are as follows:

1, SSID, the UDP packet produced by passwd is relatively large, so the Ethernet data frame is longer, the WiFi chip of the smart device receives the Ethernet data frame, the probability of receiving failure increases, resulting in the configuration network time is long, the existence of probabilistic failure;

2, in the specific implementation details, very complex, some routers in the forwarding broadcast packet compatibility effect is not good.

Description of drawings

Figure 1 is an existing electronic device access network method;

Figure 2 is the electronic Device access network method of the invention.

Specific implementation methods

Manual drawings


Figure 1


Figure 2

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. The articles reproduced can only be used for non-commercial nature, and can not be accompanied by virtual currency, points and other additional conditions, reprint must indicate the source.

My OpenWrt Study notes (26): Smartconfig One-click Configuration UDP principle

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.