General method for configuring WiFi device to make same to connect WiFi router

A general method and device connection technology, which is applied in the field of wireless communication, can solve the problems that ordinary users cannot obtain MAC addresses, increase the security risk of WIFI devices, and the low configuration success rate, and achieve fast configuration speed, low cost, and high configuration success rate Effect

CN105554907AActive Publication Date: 2016-05-04SHENZHEN OGEMRAY TECH CO LTD
5 Cites 22 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2016-05-04
Patent Text Reader

Abstract

The invention discloses a general method for configuring a WiFi device to make the same to connect a WiFi router. The method includes the following steps that: step 1, a unidirectional physical data transmission channel is established between the WiFi device and the WiFi router; step 2, user configuration data are written and are adopted as multicast data packets, wherein the user configuration data include the SSID and password of the WiFi router; step 3, the WiFi router continuously sends the multicast packets through IP multicast; step 4, the WiFi device continuously scan all channels at intervals until a certain channel captures the multicast packets of a WiFi link layer, captures the multicast packets of the WiFi link layer, and filters the captured multicast data packets through a destination MAC address and multicast information so as to filter out illegal data packets, and obtains legitimate data packets, decrypts the data packets, performs analysis to obtain the SSID and password in the data, and is connected to the WiFi router; and step 5, if the WiFi device is successfully connected to the WiFi router, the WiFi device returns successful connection information to the WiFi device, otherwise, the method returns to the step 4, and scanning is further carried out.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of wireless communication, and in particular relates to a method for configuring an embedded device with a WiFi function to connect to a WiFi router. Background technique

[0002] Today, when intelligence and convenience become a trend, more and more devices come with or require remote control, and WiFi has become the mainstream. How to quickly configure intelligent embedded devices with WiFi functions (referred to as WiFi devices, such as WiFi speakers) , WiFi socket, etc.) to connect to the WiFi router conveniently and quickly to improve the experience is one of the important considerations for users to choose WiFi devices, and it is also one of the important topics that developers are committed to researching.

[0003] At present, there are many ways to connect WiFi devices to WiFi routers, and the details are listed as follows:

[0004] 1. WiFi devices with input and output devices (such as: keyboards, ...

Examples

Embodiment Construction

[0023] The present invention will be further described in conjunction with specific embodiments.

[0024] The present invention relies on the IEEE802.11 protocol cluster and uses all routers meeting the IEEE802.11 protocol cluster. In IEEE802.11, multicast addresses in the range of 01-00-5E-00-00-00 to 01-00-5E-7F-FF-FF are reserved for Ethernet and optical fiber distributed data interface media access control (MAC) )address. Therefore, the first 4 bits of the IP multicast address are fixed, and the adjacent 5 bits do not need to be mapped to the MAC layer multicast address. The 23 low-order bits of the IP multicast address are directly mapped to the MAC layer multicast address 23 low-order bits. According to the class D address convention, in order to use those 23 low-order bits, the first octet will not be used, and only the last 7 bits of the second octet will be used. The third and fourth octets will be directly converted to hexadecimal numbers. It is inevitable that a ho...