CN105357693A - Method and system for network configuration of WiFi equipment - Google Patents

Method and system for network configuration of WiFi equipment Download PDF

Info

Publication number
CN105357693A
CN105357693A CN201510631229.XA CN201510631229A CN105357693A CN 105357693 A CN105357693 A CN 105357693A CN 201510631229 A CN201510631229 A CN 201510631229A CN 105357693 A CN105357693 A CN 105357693A
Authority
CN
China
Prior art keywords
wifi equipment
packet
answer code
configuration
effective time
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.)
Pending
Application number
CN201510631229.XA
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.)
Shenzhen Longsys Electronics Co Ltd
Original Assignee
Shenzhen Longsys Electronics 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 Shenzhen Longsys Electronics Co Ltd filed Critical Shenzhen Longsys Electronics Co Ltd
Priority to CN201510631229.XA priority Critical patent/CN105357693A/en
Publication of CN105357693A publication Critical patent/CN105357693A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The invention relates to a method and a system for network configuration of WiFi equipment. The method comprises the following steps of recording a first response code in a first data packet, which is sent to the WiFi equipment at each time, and distributing corresponding valid time; receiving a second data packet, which is sent by the WiFi equipment; and parsing the second data packet and obtaining a second response code in the second data packet, and judging whether the second response code is the same as any recorded first response code and the first response code is within the corresponding valid time, if yes, successfully configuring the WiFi equipment, and if no, failing to configure the WiFi equipment. According to the method and the system for network configuration of the WiFi equipment, a condition that the terminal judges that the WiFi equipment configuration fails when the WiFi equipment configuration is successful cannot occur, the wrong judgment is effectively avoided, and the configuration efficiency of the WiFi equipment is improved.

Description

The network collocating method of WiFi equipment and system
Technical field
The present invention relates to wireless communication technique field, particularly relate to a kind of network collocating method and system of WiFi equipment.
Background technology
WiFi equipment is by the APP (Application of terminal, application program) target AP (AccessPoint that sends, wireless access points) SSID (ServiceSetIdentifier, service set) and password connecting wireless network.APP, when judging whether WiFi equipment successfully configures, sends answer code to it, when after the success of WiFi equipment interconnection network, can return this answer code.At present, APP only records the answer code of up-to-date transmission, if the WiFi equipment connect hours is longer, can not respond within the setup time of APP in time, then APP can think this WiFi equipment configuration failure, again send new answer code to WiFi equipment, and now, WiFi equipment may in upper once interconnection network success, then APP will receive last answer code, different from the answer code of up-to-date transmission, APP still can judge WiFi equipment configuration failure, causes the allocative efficiency of WiFi equipment to reduce.
Summary of the invention
Based on this, be necessary to there is for APP the problem judged by accident and cause the allocative efficiency of WiFi equipment to reduce, a kind of network collocating method of WiFi equipment is provided.
In addition, there is a need to there is for APP the problem judged by accident and cause the allocative efficiency of WiFi equipment to reduce, a kind of network collocating method of WiFi equipment is provided.
A network collocating method for WiFi equipment, comprises the following steps:
Record at every turn to the first answer code in the first packet of WiFi equipment transmission, and distributes corresponding effective time;
Receive the second packet sent by described WiFi equipment;
Resolve described second packet and obtain the second answer code in described second packet;
Judge that whether described second answer code is identical with described arbitrary first answer code be recorded, and described first answer code is within the effective time of correspondence;
If so, then described WiFi equipment configuration successful, if not, then described WiFi equipment configuration is unsuccessful.
Wherein in an embodiment, the first answer code in the first packet that described record sends to WiFi equipment at every turn, and before distributing the step of corresponding effective time, also comprise:
Send the first packet to described WiFi equipment, in described first packet, also comprise SSID and the password of target AP, to make described WiFi equipment according to the SSID of described target AP and password access target AP;
Before the step of the second packet sent by described WiFi equipment in described reception, also comprise:
Monitor the second packet sent by described WiFi equipment, if do not hear described second packet in Preset Time, then return the described step sending the first packet to described WiFi equipment.
Wherein in an embodiment, described send the step of the first packet to described WiFi equipment before, also comprise step:
Described first answer code of random generation;
The step of the second packet that described monitoring is sent by described WiFi equipment specifically comprises:
The second packet sent by UDP or TCP by described WiFi equipment is monitored by designated port;
If do not hear described second packet in Preset Time, then prompting configuration time-out.
Wherein in an embodiment, described method also comprises step:
Described first answer code and end message and/or route-map are bound, described terminal is connected with described router.
Wherein in an embodiment, described method is further comprising the steps of:
When described first answer code is not within effective time, remove the first answer code of described record.
A network configuration system for WiFi equipment, comprising:
Logging modle, for recording at every turn to the first answer code in the first packet of WiFi equipment transmission, and distributes corresponding effective time;
Receiver module, for receiving the second packet sent by described WiFi equipment;
Parsing module, for resolving described second packet and obtaining the second answer code in described second packet;
Judge module, for judging that whether described second answer code is identical with described arbitrary first answer code be recorded, and described first answer code is within the effective time of correspondence; If so, then described WiFi equipment configuration successful, if not, then described WiFi equipment configuration is unsuccessful.
Wherein in an embodiment, described system also comprises:
Sending module, for sending the first packet to described WiFi equipment, also comprises SSID and the password of target AP in described first packet, to make described WiFi equipment according to the SSID of described target AP and password access target AP;
Monitor module, for monitoring the second packet sent by described WiFi equipment;
If described sending module also for not hearing described second packet in Preset Time, then sends the first packet to described WiFi equipment again.
Wherein in an embodiment, described system also comprises:
Randomized blocks, for producing described first answer code at random;
Described monitoring module comprises:
Port unit, for monitoring the second packet sent by UDP or TCP by described WiFi equipment by designated port;
Tip element, if for not hearing described second packet in Preset Time, then prompting configuration time-out.
Wherein in an embodiment, described system also comprises:
Binding module, for described first answer code and end message and/or route-map being bound, described terminal is connected with described router.
Wherein in an embodiment, described system also comprises:
Remove module, for when described first answer code is not within effective time, remove the first answer code of described record.
The network collocating method of above-mentioned WiFi equipment and system, the APP of terminal can record the answer code the effective time of assignment response code that send at every turn, the answer code sent by WiFi equipment received as APP is the answer code recorded, and this answer code is within effective time, then think WiFi equipment configuration successful, APP is not gone out and can show the situation that WiFi equipment configuration successful but judges its configuration failure, effectively can avoid erroneous judgement, and improve the allocative efficiency of WiFi equipment.
Accompanying drawing explanation
Fig. 1 is network collocating method and the systematic difference scene graph of WiFi equipment in an embodiment;
Fig. 2 is the schematic flow sheet of the network collocating method of WiFi equipment in an embodiment;
Fig. 3 is the schematic flow sheet of the network collocating method of WiFi equipment in another embodiment;
Fig. 4 is the structural representation of the network configuration system of WiFi equipment in an embodiment;
Fig. 5 is the structural representation of the network configuration system of WiFi equipment in another embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is network collocating method and the systematic difference scene graph of WiFi equipment in an embodiment, comprises terminal 10, router two 0 and WiFi equipment 30.
The AP of terminal 10 couple in router 20, and send the first packet to WiFi equipment 30, comprises answer code, the SSID of AP of router two 0 and password in the first packet.WiFi equipment receives the first packet, and according to the SSID of the AP in the first packet and password connection route device 20, after interconnection network success, WiFi equipment sends the second packet to terminal 10, comprises the answer code in the first packet in the second packet.Terminal 10 receive this second packet and judge this answer code be before the answer code that sends and within the effective time of answer code, then assert WiFi equipment 30 configuration successful.
As shown in Figure 2, in one embodiment, a kind of network collocating method of WiFi equipment, comprises the following steps:
Step S210, record at every turn to the first answer code in the first packet of WiFi equipment transmission, and distributes corresponding effective time.
Concrete, when the APP of terminal sends the first packet to WiFi equipment at every turn, all by the first answer code in record first packet, and distribute the effective time of this first answer code.Be greater than the wait WiFi equipment that APP pre-sets this effective time and receive the first packet, success interconnection network also returns time of answer code, such as effective time can be 10min (minute), 15min, and the time that the wait WiFi equipment that APP pre-sets returns answer code may be only 30s (second), 1min etc.First answer code can be the content of arbitrary form, also can be the content of random length, such as, can be the random number etc. of 1 byte.The first answer code that different terminals sends is different, and the first answer code that same terminal sends at every turn is also different.
Step S220, receives the second packet sent by WiFi equipment.
Concrete, the first packet, except including answer code, also carries the distribution information of target AP, and distribution information comprises SSID and the password of target AP.After WiFi equipment receives the first packet sent by the APP of terminal, according to SSID and the password linking objective AP of the target AP in the first packet, after successful connection, the second packet of the answer code included in the first packet can be sent to terminal, to represent configuration successful.
Step S230, resolves the second packet and obtains the second answer code in the second packet.
Concrete, after the APP of terminal receives the second packet sent by WiFi equipment, the second answer code that acquisition WiFi equipment returns, and judge this WiFi equipment whether configuration successful according to this second answer code.
Step S240, judge that whether the second answer code is identical with arbitrary first answer code be recorded, and the first answer code is within the effective time of correspondence, if so, then performs step S250, if not, then performs step S260.
Concrete, the second answer code returned when WiFi equipment is identical with arbitrary first answer code be recorded, and this first answer code is within the effective time of correspondence, then represent that this WiFi arranges configuration successful.Effective time of the first different answer codes may be identical or different, such as, the first answer code recorded in the APP of terminal and the effective time of correspondence as shown in table 1:
Table 1
First answer code Effective time
1 10min
2 10min
3 11min
4 12min
If the second answer code that WiFi equipment returns is 5, then not in the first answer code of record, WiFi equipment configuration failure.If the second answer code that WiFi equipment returns is 1, but the time that time gap first answer code 1 that the APP of terminal receives the second packet is recorded has exceeded 10min effective time, namely this first answer code is not within the effective time of correspondence, then represent WiFi equipment configuration failure.If the second answer code that WiFi equipment returns is 2, and time of being recorded of time gap first answer code 2 that the APP of terminal receives the second packet is within effective time 10min, then represent WiFi equipment configuration successful.Record the answer code allocative efficiency time that send at every turn, when can prevent the first packet successful connection that WiFi equipment sends according to the APP last time and return last answer code, APP false judgment WiFi equipment configures unsuccessful situation, the answer code before as long as WiFi equipment returns in effective time, namely configuration successful is represented, effectively can avoid erroneous judgement, and improve the allocative efficiency of WiFi equipment.
Step S250, WiFi equipment configuration successful.
Step S260, WiFi equipment configuration is unsuccessful.
Concrete, if WiFi equipment configuration failure, continuation is sent the first packet to WiFi equipment by the APP of terminal.
In a further embodiment, the network collocating method of above-mentioned WiFi equipment, also comprises step: the first answer code and end message and/or route-map are bound, terminal is connected with router.
Concrete, first answer code and end message and the route-map be connected with terminal can be bound, also can by the first answer code binding terminal information, or only binding router information, make each answer code have corresponding unique terminal and/or router.End message can be MAC (MediaAccessControl, media the get involved key-course) information such as address, terminal iidentification of terminal, and route-map can be the information such as MAC Address, Router Distinguisher of router.When there is multiple terminal and/or multiple router sends packet simultaneously, first answer code and end message and/or route-map are bound, can prevent the information of other terminal or router from disturbing and occur correctly judging the problem of WiFi equipment whether configuration successful.
In a further embodiment, the network collocating method of above-mentioned WiFi equipment, also comprises step: when the first answer code is not within effective time, removes the first answer code of record.
Concrete, if the time that current time distance the first answer code is recorded has exceeded the effective time of this first answer code, this first answer code of record can be removed, namely the first answer code lost efficacy is not recorded in APP, when the second packet that APP receives WiFi equipment also obtains the second answer code returned, only need judge that whether whether this second answer code identical with arbitrary first answer code be recorded and can determine WiFi equipment whether configuration successful.
The network collocating method of above-mentioned WiFi equipment, the APP of terminal can record the answer code the effective time of assignment response code that send at every turn, the answer code sent by WiFi equipment received as APP is the answer code recorded, and this answer code is within effective time, then think WiFi equipment configuration successful, APP is not gone out and can show the situation that WiFi equipment configuration successful but judges its configuration failure, effectively can avoid erroneous judgement, and improve the allocative efficiency of WiFi equipment.
In one embodiment, as shown in Figure 3, said method is further comprising the steps of:
Step S302, random generation the first answer code.
Concrete, first answer code can be the content of arbitrary form, also can be the content of random length, the first answer code that random generation first answer code can make different terminals send is different, the first answer code that same terminal sends at every turn is also different, information interference when multiple stage terminal can be avoided simultaneously to carry out distribution.
Step S304, sends the first packet to WiFi equipment.
Concrete, the APP of terminal sends the first packet to WiFi equipment, to make WiFi equipment according to the SSID of the target AP in this first packet and password access target AP, when after WiFi equipment successful connection, can return this answer code to terminal.
Step S306, records the first answer code in the first packet, and distributes corresponding effective time.
Step S308, monitors the second packet sent by WiFi equipment.
Concrete, in a further embodiment, step is monitored the second packet sent by WiFi equipment and is specifically comprised:
(1) monitored by WiFi equipment by UDP (UserDatagramProtocol by designated port, User Datagram Protoco (UDP)) or the second packet of sending of TCP (TransmissionControlProtocol, transmission control protocol).
Further, designated port is the communication port that APP and WiFi equipment are appointed, such as, APP and WiFi equipment communication port of can making an appointment is 8000, then APP will monitor UDP message or the tcp data of this designated port 8000, when receiving the second packet by WiFi equipment, and when comprising effective answer code in this packet, namely represent this Equipments Setting success.
(2) if do not hear the second packet in Preset Time, then prompting configuration time-out.
Further, Preset Time is that the wait WiFi equipment that APP pre-sets receives the first packet, success interconnection network also returns time of answer code, Preset Time is less than the effective time of answer code, such as can be 30s, 40s etc., when not hearing the second packet that WiFi equipment sends in this Preset Time, then prompting configuration time-out, and resend the first packet.
Step S310, judges whether in Preset Time, listen to the second packet, if so, then performs step S312, if not, then performs step S302.
Concrete, if listen to the second packet in Preset Time, then receive this second packet, and obtain the second answer code in the second packet, judge WiFi equipment whether configuration successful.If Preset Time does not also hear the second packet, then continue random generation the first answer code and send the first packet comprising this first answer code to WiFi equipment.
Step S312, receives the second packet sent by WiFi equipment.
The network collocating method of above-mentioned WiFi equipment, the APP of terminal can record the answer code the effective time of assignment response code that send at every turn, the answer code sent by WiFi equipment received as APP is the answer code recorded, and this answer code is within effective time, then think WiFi equipment configuration successful, APP is not gone out and can show the situation that WiFi equipment configuration successful but judges its configuration failure, effectively can avoid erroneous judgement, and improve the allocative efficiency of WiFi equipment.
As shown in Figure 4, in an embodiment, a kind of network configuration system of WiFi equipment, comprises logging modle 410, receiver module 420, parsing module 430 and judge module 440.
Logging modle 410, for recording at every turn to the first answer code in the first packet of WiFi equipment transmission, and distributes corresponding effective time.
Concrete, when the APP of terminal sends the first packet to WiFi equipment at every turn, all by the first answer code in record first packet, and distribute the effective time of this first answer code.Be greater than the wait WiFi equipment that APP pre-sets this effective time and receive the first packet, success interconnection network also returns time of answer code, such as effective time can be 10min, 15min, and the time that the wait WiFi equipment that APP pre-sets returns answer code may be only 30s, 1min etc.First answer code can be the content of arbitrary form, also can be the content of random length, such as, can be the random number etc. of 1 byte.The first answer code that different terminals sends is different, and the first answer code that same terminal sends at every turn is also different.
Receiver module 420, for receiving the second packet sent by WiFi equipment.
Concrete, the first packet, except including answer code, also carries the distribution information of target AP, and distribution information comprises SSID and the password of target AP.After WiFi equipment receives the first packet sent by the APP of terminal, according to SSID and the password linking objective AP of the target AP in the first packet, after successful connection, the second packet of the answer code included in the first packet can be sent to terminal, to represent configuration successful.
Parsing module 430, for resolving this second packet and obtaining the second answer code in this second packet.
Concrete, after the APP of terminal receives the second packet sent by WiFi equipment, the second answer code that acquisition WiFi equipment returns, and judge this WiFi equipment whether configuration successful according to this second answer code.
Judge module 440, for judging that whether the second answer code is identical with arbitrary first answer code be recorded, and the first answer code is within the effective time of correspondence; If so, then WiFi equipment configuration successful, if not, then WiFi equipment configuration is unsuccessful.
Concrete, the second answer code returned when WiFi equipment is identical with arbitrary first answer code be recorded, and this first answer code is within the effective time of correspondence, then represent that this WiFi arranges configuration successful.The effective time of the first different answer codes may be identical or different.Such as, the first answer code recorded in the APP of terminal and the effective time of correspondence as shown in table 1, if the second answer code that WiFi equipment returns is 5, then not record the first answer code in, WiFi equipment configuration failure.If the second answer code that WiFi equipment returns is 1, but the time that time gap first answer code 1 that the APP of terminal receives the second packet is recorded has exceeded 10min effective time, namely this first answer code is not within the effective time of correspondence, then represent WiFi equipment configuration failure.If the second answer code that WiFi equipment returns is 2, and time of being recorded of time gap first answer code 2 that the APP of terminal receives the second packet is within effective time 10min, then represent WiFi equipment configuration successful.Record the answer code allocative efficiency time that send at every turn, when can prevent the first packet successful connection that WiFi equipment sends according to the APP last time and return last answer code, APP false judgment WiFi equipment configures unsuccessful situation, the answer code before as long as WiFi equipment returns in effective time, namely configuration successful is represented, effectively can avoid erroneous judgement, and improve the allocative efficiency of WiFi equipment.
If WiFi equipment configuration failure, continuation is sent the first packet to WiFi equipment by the APP of terminal.
In a further embodiment, the network configuration system of above-mentioned WiFi equipment, except comprising logging modle 410, receiver module 420, parsing module 430 and judge module 440, also comprising binding module and removing module.
Binding module, for the first answer code and end message and/or route-map being bound, terminal is connected with router.
Concrete, first answer code and end message and the route-map be connected with terminal can be bound, also can by the first answer code binding terminal information, or only binding router information, make each answer code have corresponding unique terminal and/or router.End message can be the information such as MAC Address, terminal iidentification of terminal, and route-map can be the information such as MAC Address, Router Distinguisher of router.When there is multiple terminal and/or multiple router sends packet simultaneously, first answer code and end message and/or route-map are bound, can prevent the information of other terminal or router from disturbing and occur correctly judging the problem of WiFi equipment whether configuration successful.
Remove module, for when the first answer code is not within effective time, remove the first answer code of record.
Concrete, if the time that current time distance the first answer code is recorded has exceeded the effective time of this first answer code, this first answer code of record can be removed, namely the first answer code lost efficacy is not recorded in APP, when the second packet that APP receives WiFi equipment also obtains the second answer code returned, only need judge that whether whether this second answer code identical with arbitrary first answer code be recorded and can determine WiFi equipment whether configuration successful.
The network configuration system of above-mentioned WiFi equipment, the APP of terminal can record the answer code the effective time of assignment response code that send at every turn, the answer code sent by WiFi equipment received as APP is the answer code recorded, and this answer code is within effective time, then think WiFi equipment configuration successful, APP is not gone out and can show the situation that WiFi equipment configuration successful but judges its configuration failure, effectively can avoid erroneous judgement, and improve the allocative efficiency of WiFi equipment.
In one embodiment, as shown in Figure 4, the network configuration system of above-mentioned WiFi equipment, except comprising logging modle 410, receiver module 420, parsing module 430 and judge module 440, also comprises randomized blocks 412, sending module 414 and monitoring module 450.
Randomized blocks 412, for producing the first answer code at random.
Concrete, first answer code can be the content of arbitrary form, also can be the content of random length, the first answer code that random generation first answer code can make different terminals send is different, the first answer code that same terminal sends at every turn is also different, information interference when multiple stage terminal can be avoided simultaneously to carry out distribution.
Sending module 414, for sending the first packet to WiFi equipment, also comprises SSID and the password of target AP in the first packet, to make WiFi equipment according to the SSID of target AP and password access target AP.
Concrete, the APP of terminal sends the first packet to WiFi equipment, to make WiFi equipment according to the SSID of the target AP in this first packet and password access target AP, when after WiFi equipment successful connection, can return this answer code to terminal.
Monitor module 450, for monitoring the second packet sent by WiFi equipment.
Monitor module 450 and comprise port unit 452 and Tip element 454.
Port unit 452, for monitoring the second packet sent by UDP or TCP by WiFi equipment by designated port.
Concrete, designated port is the communication port that APP and WiFi equipment are appointed, such as, APP and WiFi equipment communication port of can making an appointment is 8000, then APP will monitor UDP message or the tcp data of this designated port 8000, when receiving the second packet by WiFi equipment, and when comprising effective answer code in this packet, namely represent this Equipments Setting success.
Tip element 454, if for not hearing the second packet in Preset Time, then prompting configuration time-out.
Concrete, Preset Time is that the wait WiFi equipment that APP pre-sets receives the first packet, success interconnection network also returns time of answer code, Preset Time is less than the effective time of answer code, such as can be 30s, 40s etc., when not hearing the second packet that WiFi equipment sends in this Preset Time, then prompting configuration time-out, and resend the first packet.
If sending module 414 also for not hearing the second packet in Preset Time, then sends the first packet to WiFi equipment again.
Concrete, if listen to the second packet in Preset Time, then receive this second packet, and obtain the second answer code in the second packet, judge WiFi equipment whether configuration successful.If Preset Time does not also hear the second packet, then continue random generation the first answer code and send the first packet comprising this first answer code to WiFi equipment.
The network configuration system of above-mentioned WiFi equipment, the APP of terminal can record the answer code the effective time of assignment response code that send at every turn, the answer code sent by WiFi equipment received as APP is the answer code recorded, and this answer code is within effective time, then think WiFi equipment configuration successful, APP is not gone out and can show the situation that WiFi equipment configuration successful but judges its configuration failure, effectively can avoid erroneous judgement, and improve the allocative efficiency of WiFi equipment.
Each technical characteristic of the above embodiment can combine arbitrarily, for making description succinct, the all possible combination of each technical characteristic in above-described embodiment is not all described, but, as long as the combination of these technical characteristics does not exist contradiction, be all considered to be the scope that this specification is recorded.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a network collocating method for WiFi equipment, is characterized in that, comprises the following steps:
Record at every turn to the first answer code in the first packet of WiFi equipment transmission, and distributes corresponding effective time;
Receive the second packet sent by described WiFi equipment;
Resolve described second packet and obtain the second answer code in described second packet;
Judge that whether described second answer code is identical with described arbitrary first answer code be recorded, and described first answer code is within the effective time of correspondence;
If so, then described WiFi equipment configuration successful, if not, then described WiFi equipment configuration is unsuccessful.
2. the network collocating method of WiFi equipment according to claim 1, is characterized in that, the first answer code in the first packet that described record sends to WiFi equipment at every turn, and before distributing the step of corresponding effective time, also comprises:
Send the first packet to described WiFi equipment, in described first packet, also comprise SSID and the password of target AP, to make described WiFi equipment according to the SSID of described target AP and password access target AP;
Before the step of the second packet sent by described WiFi equipment in described reception, also comprise:
Monitor the second packet sent by described WiFi equipment, if do not hear described second packet in Preset Time, then return the described step sending the first packet to described WiFi equipment.
3. the network collocating method of WiFi equipment according to claim 2, is characterized in that, described send the step of the first packet to described WiFi equipment before, also comprise step:
Described first answer code of random generation;
The step of the second packet that described monitoring is sent by described WiFi equipment specifically comprises:
The second packet sent by UDP or TCP by described WiFi equipment is monitored by designated port;
If do not hear described second packet in Preset Time, then prompting configuration time-out.
4. the network collocating method of WiFi equipment according to claim 1 and 2, is characterized in that, described method also comprises step:
Described first answer code and end message and/or route-map are bound, described terminal is connected with described router.
5. the network collocating method of WiFi equipment according to claim 1, is characterized in that, described method is further comprising the steps of:
When described first answer code is not within effective time, remove the first answer code of described record.
6. a network configuration system for WiFi equipment, is characterized in that, comprising:
Logging modle, for recording at every turn to the first answer code in the first packet of WiFi equipment transmission, and distributes corresponding effective time;
Receiver module, for receiving the second packet sent by described WiFi equipment;
Parsing module, for resolving described second packet and obtaining the second answer code in described second packet;
Judge module, for judging that whether described second answer code is identical with described arbitrary first answer code be recorded, and described first answer code is within the effective time of correspondence; If so, then described WiFi equipment configuration successful, if not, then described WiFi equipment configuration is unsuccessful.
7. the network configuration system of WiFi equipment according to claim 6, is characterized in that, described system also comprises:
Sending module, for sending the first packet to described WiFi equipment, also comprises SSID and the password of target AP in described first packet, to make described WiFi equipment according to the SSID of described target AP and password access target AP;
Monitor module, for monitoring the second packet sent by described WiFi equipment;
If described sending module also for not hearing described second packet in Preset Time, then sends the first packet to described WiFi equipment again.
8. the network configuration system of WiFi equipment according to claim 7, is characterized in that, described system also comprises:
Randomized blocks, for producing described first answer code at random;
Described monitoring module comprises:
Port unit, for monitoring the second packet sent by UDP or TCP by described WiFi equipment by designated port;
Tip element, if for not hearing described second packet in Preset Time, then prompting configuration time-out.
9. the network configuration system of the WiFi equipment according to claim 6 or 7, is characterized in that, described system also comprises:
Binding module, for described first answer code and end message and/or route-map being bound, described terminal is connected with described router.
10. the network configuration system of WiFi equipment according to claim 6, is characterized in that, described system also comprises:
Remove module, for when described first answer code is not within effective time, remove the first answer code of described record.
CN201510631229.XA 2015-09-28 2015-09-28 Method and system for network configuration of WiFi equipment Pending CN105357693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510631229.XA CN105357693A (en) 2015-09-28 2015-09-28 Method and system for network configuration of WiFi equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510631229.XA CN105357693A (en) 2015-09-28 2015-09-28 Method and system for network configuration of WiFi equipment

Publications (1)

Publication Number Publication Date
CN105357693A true CN105357693A (en) 2016-02-24

Family

ID=55333525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510631229.XA Pending CN105357693A (en) 2015-09-28 2015-09-28 Method and system for network configuration of WiFi equipment

Country Status (1)

Country Link
CN (1) CN105357693A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1176548A (en) * 1996-07-31 1998-03-18 日本电气株式会社 Data communication system and method therefor
CN101252437A (en) * 2008-01-15 2008-08-27 深圳市九思泰达技术有限公司 Dynamic verification method, system and apparatus of client terminal identification under C/S architecture
CN103532979A (en) * 2013-10-30 2014-01-22 蓝盾信息安全技术股份有限公司 Method for generating and verifying multi-conversation verification codes under CGI (common gateway interface) for web
WO2015001019A1 (en) * 2013-07-05 2015-01-08 Assa Abloy Ab Key device and associated method, computer program and computer program product
CN104780587A (en) * 2015-03-27 2015-07-15 深圳市江波龙电子有限公司 AP (access point) accessing method and system for WiFi (wireless fidelity) equipment in Internet of Things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1176548A (en) * 1996-07-31 1998-03-18 日本电气株式会社 Data communication system and method therefor
CN101252437A (en) * 2008-01-15 2008-08-27 深圳市九思泰达技术有限公司 Dynamic verification method, system and apparatus of client terminal identification under C/S architecture
WO2015001019A1 (en) * 2013-07-05 2015-01-08 Assa Abloy Ab Key device and associated method, computer program and computer program product
CN103532979A (en) * 2013-10-30 2014-01-22 蓝盾信息安全技术股份有限公司 Method for generating and verifying multi-conversation verification codes under CGI (common gateway interface) for web
CN104780587A (en) * 2015-03-27 2015-07-15 深圳市江波龙电子有限公司 AP (access point) accessing method and system for WiFi (wireless fidelity) equipment in Internet of Things

Similar Documents

Publication Publication Date Title
CN106332224B (en) Equipment network distribution method, device and system
CN104902443A (en) Communication method and equipment
EP3267721B1 (en) Air-interface protocol stack configuration method, and data transmission method and device
CN107113892B (en) Method and device for automatically networking gateway equipment
CN105491600A (en) Network access method, device and related equipment for household appliances
CN105049495B (en) Method for discovering equipment, apparatus and system
CN110913006B (en) Remote diagnosis method and system
US10560378B2 (en) Data link layer-based communication method, device, and system
CN106487583B (en) Method for establishing network connection and local area network system
CN105101465A (en) Wireless network configuration method and wireless network configuration system
CN110290570A (en) Wireless network access method and relevant device, storage device
CN104023001A (en) Method for AC equipment to forward unauthorized message information
CN113613251A (en) Information synchronization method and system, storage medium and electronic device
CN104780587A (en) AP (access point) accessing method and system for WiFi (wireless fidelity) equipment in Internet of Things
CN105451367A (en) Wireless network connection method, device and system
EP3515121A1 (en) Device networking method, apparatus and system
CN103442450A (en) Wireless communication method and wireless communication equipment
CN105357693A (en) Method and system for network configuration of WiFi equipment
CN103188662B (en) A kind of method and device verifying WAP (wireless access point)
CN115474257A (en) Method and device for accessing Mesh network
CN105848146B (en) WIFI automatic connection method, device and system
CN103957079A (en) Negotiation method and equipment in HDLC network
US8300619B2 (en) System and method for providing scheduled data communications in a communication system
CN102740329A (en) Method and apparatus of parameter distribution, and method and apparatus of parameter configuration
CN104009857A (en) Network configuration configuring system based on device position and configuring method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224

RJ01 Rejection of invention patent application after publication