CN109474708A - A kind of implementation method of intelligent WiFi equipment mixing activation - Google Patents

A kind of implementation method of intelligent WiFi equipment mixing activation Download PDF

Info

Publication number
CN109474708A
CN109474708A CN201710803570.8A CN201710803570A CN109474708A CN 109474708 A CN109474708 A CN 109474708A CN 201710803570 A CN201710803570 A CN 201710803570A CN 109474708 A CN109474708 A CN 109474708A
Authority
CN
China
Prior art keywords
mode
smartconfig
direct
smartphone
ssid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201710803570.8A
Other languages
Chinese (zh)
Inventor
易爱国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seaing Co Ltd
Original Assignee
Seaing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seaing Co Ltd filed Critical Seaing Co Ltd
Priority to CN201710803570.8A priority Critical patent/CN109474708A/en
Publication of CN109474708A publication Critical patent/CN109474708A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Abstract

The invention discloses a kind of implementation methods of intelligent WiFi equipment mixing activation, so that equipment is switched in both of which, M (M=10) second is in SmartConfig mode, N (N=5) second is in direct-connected mode, neighbouring AP is first scanned under SmartConfig mode, channel where obtaining, it is only switched in the channel for have AP in the listen mode, parse aerial packet radio, if it find that the condition code for thering is SmartPhone to send out, then stop switching channel, parsing and the encoded information in recombination SmartPhone, obtain the MAC Address of IP address information and wireless router, if receiving 802.11 management frames during monitoring and being Probe frame, compare SSID therein whether with from Oneself SSID in direct-connected mode as AP is identical, then stops SmartConfig mode immediately, enter direct-connected mode.The present invention allows SmartPhone in the case where connecting upper wireless router, also can can preferably experience smart home life in the case where SmartConfig is activated and failed through direct-connected mode activation equipment by SmartConfig mode activation equipment.

Description

A kind of implementation method of intelligent WiFi equipment mixing activation
Technical field
The present invention relates to intelligent WiFi equipment, the implementation method of specifically a kind of intelligent WiFi equipment mixing activation.
Background technique
For the function of current smart home product in device activation, there are two types of modes, and one is set by intelligent WiFi The network interface card of standby hardware device is placed in listening mode, also known as promiscuous mode, so that 802.11 wireless data frames of surrounding are obtained, custom Claim packet capturing.Length field is visible with MAC Address in the wireless data of encryption, using length or multicast mac address this We can arrange a kind of agreement for transmitting data to a field, to provide wirelessly when hardware device enters environment for the first time for it The information such as the account number cipher of router, abbreviation SmartConfig mode.Another mode is direct-connected mode, and intelligent WiFi is set It purchases in ap mode, SmartPhone, which finds the SSID of intelligent WiFi equipment and connects, goes up it, then by the account of wireless router Number Password Input gives intelligent WiFi equipment.SmartConfig mode is easy to use, and user does not need complicated operation can be to intelligence Energy WiFi equipment is activated.
But there are many kinds of the models of router and mobile phone currently on the market, it can inevitably encounter the two compatibility issue and lead Cause SmartConfig mode under configuration failure, at this time SmartPhone can not successful activation intelligent WiFi equipment, this is just people Use bring inconvenience.
Summary of the invention
The purpose of the present invention is to provide a kind of implementation methods of intelligent WiFi equipment mixing activation, to solve above-mentioned background The problem of being proposed in technology.
To achieve the above object, the invention provides the following technical scheme:
A kind of implementation method of intelligent WiFi equipment mixing activation, the specific steps are as follows:
Step 1, the initialization module of intelligent WiFi equipment complete the initialization of data and start to scan in current environment All AP locating for channel, SmartConfig module set timer Timer1, be under SmartConfig mode, should Under mode and set timer Timer2 so that on the channel of each scanning cyclic switching and monitor 802.11 messages, when Direct-connected mode is switched to after Timer1 time-out and shortens Timer1, switches back into SmartConfig mode if time-out;
Step 2 stops channel and cuts if receiving the condition code that SmartPhone is sent under SmartConfig mode It changes, and carries out the assembling of data, the SSID and password of wireless router are obtained after being completed, connect wireless router, pass through DHCP gets IP address, carries out the process that activation is shaken hands with SmartPhone immediately;
Step 3 compares therein if receiving 802.11 management frames under SmartConfig mode and being Probe frame Whether SSID is identical as oneself SSID in direct-connected mode as AP, then stops SmartConfig mode immediately, enter direct-connected Mode;The information such as the SSID and password of the wireless router that reception SmartPhone is sent by UDP message under direct-connected mode, Wireless router is connected, IP address is got by DHCP, carries out the process that activation is shaken hands with SmartPhone immediately.
Compared with prior art, it the beneficial effects of the present invention are: the method that the present invention initiates uses simply, allows SmartPhone, can be by SmartConfig mode activation equipment in the case where connecting upper wireless router, also can be By direct-connected mode activation equipment in the case where SmartConfig activation failure, so that user be allowed preferably to experience smart home Life, meets the use demand of people.
Detailed description of the invention
Fig. 1 is the work flow diagram of the implementation method of intelligent WiFi equipment mixing activation.
Fig. 2 is the work flow diagram of initialization module in the implementation method of intelligent WiFi equipment mixing activation.
Fig. 3 is the work flow diagram of SmartConfig module in the implementation method of intelligent WiFi equipment mixing activation.
Fig. 4 is the work flow diagram of direct-connected mode treatment module in the implementation method of intelligent WiFi equipment mixing activation.
Specific embodiment
The technical solution of the patent is explained in further detail With reference to embodiment.
Embodiment 1
Premise of the invention is intelligent Wi-Fi equipment and SmartPhone supports the wireless router of mainstream to access, and With listening mode and ap mode, the hypothesis from the point of view of the intelligent Wi-Fi chip of existing mainstream and the chip of SmartPhone all It sets up.The hardware configuration and software configuration of this patent will illustrate by source of ESP8266 chip.Present invention employs DHCP, i.e., Dynamic host configuration protocol is the network protocol of a local area network, is worked using udp protocol, and main there are two purposes: to inside Network or Internet service provider's automatic IP address allocation are used as to user or internal network administrator and make to all computers The means of central management are described later in detail in RFC 2131.DHCP has 3 ports, and wherein UDP67 and UDP68 is normal DHCP service port, respectively as the serve port of DHCP Server and DHCP Client.STA Mode, i.e. Station, Similar to wireless terminal, STA itself does not receive wireless access, it may be coupled to AP, and general wireless network card works The mode.Monitor Mode, i.e. listening mode do not distinguish the destination-mac address of received data packet, this point and promiscuous mode It is similar, however, with promiscuous mode unlike, listening mode do not need and wireless access point (AP) or Ad-hoc network are established Connection, listening mode is the distinctive special pattern of wireless network card, and promiscuous mode is applied to wired network adapter and wireless network card.AP Mode, i.e. AP are the abbreviations of Wireless Access Point, and Chinese is wireless access point;Ap mode i.e. wireless Access point mode.WiFi driving is just responsible for receiving network data from Wi-Fi interface to assemble, with the network above equipment Layer is communicated.
A kind of implementation method of intelligent WiFi equipment mixing activation, the specific steps are as follows:
Step 1, step 1, the initialization module of intelligent WiFi equipment complete the initialization of data and start to scan to work as Channel locating for all AP in preceding environment, SmartConfig module set timer Timer1=10s, are in Under SmartConfig mode, under the mode and timer Timer2=100ms is set, so that following on the channel of each scanning Ring cutting changes and monitors 802.11 messages, is switched to direct-connected mode after Timer1 time-out and Timer1 is set as 5s, if time-out Switch back into SmartConfig mode;
Step 2 stops channel and cuts if receiving the condition code that SmartPhone is sent under SmartConfig mode It changes, and carries out the assembling of data, the SSID and password of wireless router are obtained after being completed, connect wireless router, pass through DHCP gets IP address, carries out the process that activation is shaken hands with SmartPhone immediately;
Step 3 compares therein if receiving 802.11 management frames under SmartConfig mode and being Probe frame Whether SSID is identical as oneself SSID in direct-connected mode as AP, then stops SmartConfig mode immediately, enter direct-connected Mode, the information such as the SSID and password of the wireless router that reception SmartPhone is sent by UDP message under direct-connected mode, Wireless router is connected, IP address is got by DHCP, carries out the process that activation is shaken hands with SmartPhone immediately.
The working principle of the invention is: the initialization and scanning that initialization module mainly completes the data of modules are currently Channel locating for all AP in environment, these channels are assumed to { Isosorbide-5-Nitrae, 6,9 }, and SSID of the set device as AP is band Three unique names after MAC Address, and the timer T1 of Timer1=10s is initialized for SmartConfig module and straight The switching of gang mould formula processing module.The effect of SmartConfig module is to enter listening mode, opens determining for Timer1=10s When device T1, open the timer T3 of Timer3=100ms and switch for channel, circulation is carried out on the channel scanned before and is cut It changes, there is following three situation during packet capturing: the first, it is sent to wirelessly if receiving SmartPhone on this channel The feature packet of router, then Timer3 timer, lock channel.Continue the decoding activity of other packets, so that decoding is set out Link road is carried out after the information of the wireless router sent by the operation of device;Second, if receiving Probe Request message, And if the SSID carried in the message is identical as SSID (being assumed to be Seaing_aabbcc) that equipment oneself is set, then table It is bright to there is SmartPhone to want to be connected into the AP, and sent Probe Request packet and be attached, it is being equivalent to SmartPhone just It is in direct-connected mode, so equipment will move out listening mode at this time, is entered directly into direct-connected mode;The third, when T1 timing After device time-out, T1 timer can be stopped at this time, and enter in direct-connected mode.The effect of direct-connected mode treatment module is to enter Into direct-connected mode, the timer T2 of Timer2=5s is opened, equipment serves as the role of AP, the connection of STA is received, under having at this time Two kinds of face situation: the first receives the connection request that SmartPhone serves as STA, and equipment stops T2 timer at this time, opens UDP socket receives the configuration information of STA, which includes the SSID and password of wireless router, then can link road By device;Second, after T2 timer expiry, stops T2 timer, enter in SmartConfig mode.Activation is shaken hands The effect of processing module is to carry out information exchange with SmartPhone after equipment is connected to wireless router, to complete to set Standby addition facilitates operation of the user to equipment.
Core of the invention is that intelligent WiFi equipment switches over mutually in both of which, and M (M=10) second is in SmartConfig mode, N (N=5) second are in direct-connected mode, and neighbouring AP is first scanned under SmartConfig mode, is obtained The channel at place only switches in the channel for have AP in the listen mode, aerial packet radio is parsed, if it find that having The condition code that SmartPhone is sent out then stops switching channel, parsing and the encoded information in recombination SmartPhone, from And the MAC Address of IP address information and wireless router is obtained, if 802.11 management frames are received during monitoring at this time And be Probe frame, whether as oneself SSID in direct-connected mode as AP identical, then stop immediately if comparing SSID therein SmartConfig mode enters direct-connected mode.
The technology is that SmartPhone can not successful activation intelligence Wi-Fi in the case where the failure of SmartConfig mode Equipment, the Probe Request message of SmartPhone transmission is received under SmartConfig mode to exit listening mode, Accelerate the connection of direct-connected mode.The technology is that SmartPhone can not successfully swash in the case where the failure of SmartConfig mode Intelligence Wi-Fi equipment living, to carry out a solution proposed when direct-connected mode, the program is known as MixSmartConfig Mode, abbreviation MSC.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (1)

1. a kind of implementation method of intelligent WiFi equipment mixing activation, which is characterized in that specific step is as follows:
Step 1, the initialization module of intelligent WiFi equipment complete the initialization of data and start to scan the institute in current environment There is channel locating for AP, SmartConfig module sets the Timer1 of timer, is under SmartConfig mode, the mode Timer2 that is lower and setting timer, so that cyclic switching and 802.11 messages of monitoring on the channel of each scanning, when Direct-connected mode is switched to after Timer1 time-out and shortens Timer1, switches back into SmartConfig mode if time-out;
Step 2 stops channel switching if receiving the condition code that SmartPhone is sent under SmartConfig mode, And the assembling of data is carried out, the SSID and password of wireless router are obtained after being completed, and are connected wireless router, are passed through DHCP IP address is got, carries out the process that activation is shaken hands with SmartPhone immediately;
Step 3, if receiving 802.11 management frames under SmartConfig mode and being Probe frame, comparing SSID therein is The no SSID with oneself in direct-connected mode as AP is identical, then stops SmartConfig mode immediately, enter direct-connected mode; The information such as the SSID and password of the wireless router that reception SmartPhone is sent by UDP message under direct-connected mode, connection Wireless router gets IP address by DHCP, carries out the process that activation is shaken hands with SmartPhone immediately.
CN201710803570.8A 2017-09-08 2017-09-08 A kind of implementation method of intelligent WiFi equipment mixing activation Withdrawn CN109474708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710803570.8A CN109474708A (en) 2017-09-08 2017-09-08 A kind of implementation method of intelligent WiFi equipment mixing activation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710803570.8A CN109474708A (en) 2017-09-08 2017-09-08 A kind of implementation method of intelligent WiFi equipment mixing activation

Publications (1)

Publication Number Publication Date
CN109474708A true CN109474708A (en) 2019-03-15

Family

ID=65658511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710803570.8A Withdrawn CN109474708A (en) 2017-09-08 2017-09-08 A kind of implementation method of intelligent WiFi equipment mixing activation

Country Status (1)

Country Link
CN (1) CN109474708A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191498A (en) * 2019-06-17 2019-08-30 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine
CN111246536A (en) * 2020-01-09 2020-06-05 杭州涂鸦信息技术有限公司 Wireless intelligent device network distribution method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191498A (en) * 2019-06-17 2019-08-30 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine
CN111246536A (en) * 2020-01-09 2020-06-05 杭州涂鸦信息技术有限公司 Wireless intelligent device network distribution method and system

Similar Documents

Publication Publication Date Title
US7535884B2 (en) Battery-efficient generic advertising service for wireless mobile devices
CN106535288B (en) Method for sending and acquiring wifi networking information and corresponding device
AU2016200197B2 (en) Repeating method of wireless repeating device,and wireless repeating device
US9271136B2 (en) Probe messaging for direct link connections
CN106254147B (en) It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal
US8942212B2 (en) Autoconfiguration system for wireless sensor network and its method, and gateway apparatus for wireless sensor network
CN106921963A (en) A kind of smart machine accesses the method and device of WLAN
CN104768150B (en) WiFi equipment connects the method and system of hotspot
CN107113617A (en) The mechanism of LTE voices, internet and eMBMS services is provided by Ethernet for the residential housing of connection
CN105228264B (en) A kind of quick WI-FI network matching method suitable for Internet of Things
CN106686526B (en) Method and device for acquiring routing information of electric appliance
CN104010327A (en) Method and system for quickly having access to WIFI wireless network
CN106856609A (en) A kind of network collocating method and device
CN102882938A (en) Data share method and mobile terminal
CN106060809A (en) Method for rapidly access wireless network, wireless route device and smart device
CN109525939B (en) NVR and IPC automatic pairing method and wireless video monitoring automatic networking system
CN105744596B (en) WiFi equipment network access method and device
CN104468291A (en) WiFi module communication method and device
CN105245695B (en) A kind of method and system improving wechat AirKiss compatibility
CN110324790A (en) A kind of method for connecting network, node device, network system and storage medium
JP2016534619A (en) Method and apparatus for constructing simple and easy wireless connection
US10070289B1 (en) Client association for provisioning devices in a communication network
CN109474708A (en) A kind of implementation method of intelligent WiFi equipment mixing activation
TWI650026B (en) Data transmission method, first device and second device
EP3133873B1 (en) Method and apparatus for receiving d2d discovery information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20190315

WW01 Invention patent application withdrawn after publication