CN106856609A - A kind of network collocating method and device - Google Patents
A kind of network collocating method and device Download PDFInfo
- Publication number
- CN106856609A CN106856609A CN201710115308.4A CN201710115308A CN106856609A CN 106856609 A CN106856609 A CN 106856609A CN 201710115308 A CN201710115308 A CN 201710115308A CN 106856609 A CN106856609 A CN 106856609A
- Authority
- CN
- China
- Prior art keywords
- link information
- internet
- mobile terminal
- things equipment
- radio reception
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the present invention provides a kind of network collocating method and device, belongs to wireless communication technology field.Specifically, the network collocating method is that the link information of radio reception device is carried on probe request by mobile terminal by calling WiFi control interfaces, then initiates unicast type scanning process, and the probe request is sent in each channel.Work in listening mode internet of things equipment capture the probe request after, by parsing obtain the link information, then according between the link information and the radio reception device set up communication connection.Compared with prior art, network collocating method provided in an embodiment of the present invention and device can effectively lift allocative efficiency on the premise of ensureing conveniently, safely to configure, and accelerate configuration process.
Description
Technical field
The present invention relates to wireless communication technology field, in particular to a kind of network collocating method and device.
Background technology
WiFi is the wireless LAN communication technology based on the series standards of IEEE 802.11.In short-distance wireless communication
In selection, WiFi has wide due to possessing the advantages of convenience is networked, communication distance is remote, transmission rate is high in various fields
Application prospect, wherein just including the Internet of Things industry being currently vigorously developed.
But, these possess setting for friendly and abundant human-computer interaction interface and input interface with PC, mobile phone or panel computer
Standby difference, many internet of things equipment and the input interface without screen or other forms.In order to solve the network of these equipment
Allocation problem, the assistance based on smart mobile phone is suggested to the method that internet of things equipment carries out WiFi network configuration.
A kind of existing more common scheme is specifically, the application program (APP) in smart mobile phone calls data application interface
Send the udp broadcast bag that configuration information is carried by the Length fields in 802.2SNAP data forms.But the method is present
The drawbacks of allocative efficiency is low, reason is:One is, Length fields only have 2 bytes, due to actual transmittable packet length
Limitation, only 9 bits or 10 bits that can be used effectively, therefore, a configuration sequence will often send dozens or even hundreds of
Individual udp broadcast bag;Two are, before the confirmation bag of equipment end transmission is received, mobile phone terminal needs the channel where wireless router
Broadcast packet is sent always, and wireless router will also be forwarded with low transmission rate, greatly interfere with equipment and without circuit
By normal line (the including DHCP) process between device.
The content of the invention
In view of this, it is an object of the invention to provide a kind of network collocating method and device, to improve above mentioned problem.
Present pre-ferred embodiments provide a kind of network collocating method, are applied to carry out WLAN to internet of things equipment
The mobile terminal of network configuration, the method includes:The link information of a radio reception device is obtained, the link information includes the nothing
The service set and connection password of line access device;The link information is write the service set field of probe request
It is interior;The scanning process of unicast type is initiated according to above-mentioned probe request, so that the capture of the internet of things equipment in listening mode should
The link information is obtained after probe request;After scanning process initiation, judge whether that receiving the internet of things equipment returns
The confirmation message returned, the confirmation message is used to representing that internet of things equipment is successfully connected according to the link information and described wirelessly connects
Enter equipment;If having been received by the confirmation message, terminate above-mentioned scanning process.
Another preferred embodiment of the present invention provides a kind of network collocating method, is applied to carry out wireless office by mobile terminal
The internet of things equipment of domain network configuration, the method includes:Unicast type scanning process of the mobile terminal by initiating is captured to send out
The network configuration packet for going out, the network configuration packet includes the detection of at least two link informations for carrying a radio reception device
Claim frame, the link information includes service set and connection password;The network configuration packet is parsed, the network configuration is obtained
The link information of the radio reception device included in bag;Wireless network scan is carried out, all services set marks that will be scanned
Know and matched with the service set parsed in the link information that above-mentioned network configuration packet is obtained respectively;If in the presence of matching
Successful service set, then the wireless access corresponding with the service set of the connection password in the link information set
Standby foundation is connected, and the mobile terminal is sent an acknowledgement message to after successful connection.
Another preferred embodiment of the present invention provides a kind of network collocating method, and internet of things equipment is carried out by mobile terminal
WLAN is configured, and the method includes:The link information of the radio reception device of the acquisition for mobile terminal one, the connection
Information includes the service set of the radio reception device and connection password;The connection letter that the mobile terminal will get
Breath is encoded, is divided into multistage subdata, each cross-talk data correspondence one service of probe request of write-in after encryption
In set identifier field, all probe request network consisting configuration bags for carrying the subdata;The mobile terminal is by upper
State the scanning process that network configuration packet initiates unicast type;The internet of things equipment for being operated in listening mode captures the network
It is decrypted after configuration bag, decoded, obtains the link information of the radio reception device;The internet of things equipment ceases listening for mould
Formula, and be connected with radio reception device foundation according to the above-mentioned link information for getting, if successful connection, send and confirm
Message is to the mobile terminal, if being not connected with successfully, reverting to listening mode;The mobile terminal judges whether to receive institute
Confirmation message is stated, if having been received by, terminates the scanning process.
Another preferred embodiment of the present invention provides a kind of network configuration device, is applied to carry out wireless office to internet of things equipment
The mobile terminal of domain network configuration, the device includes:Data obtaining module, the connection letter for obtaining a radio reception device
Breath, the link information includes the service set of the radio reception device and connection password;Message processing module, for by institute
State in the service set field of link information write-in probe request;Scanning initiation module, for according to above-mentioned probe requests thereby
Frame initiates the scanning process of unicast type, so that the internet of things equipment in listening mode obtains described after capturing the probe request
Link information;Judge module, for after scanning process is initiated, judging whether to receive the confirmation that the internet of things equipment is returned
Message, the confirmation message is used to represent that internet of things equipment is successfully connected the radio reception device according to the link information;
Scanning terminates module, for terminating above-mentioned scanning process after the confirmation message is received.
Another preferred embodiment of the present invention provides a kind of network configuration device, is applied to carry out wireless office by mobile terminal
The internet of things equipment of domain network configuration, the device includes:Configuration Packet capturing module, for capturing the mobile terminal by initiating
The network configuration packet that sends of unicast type scanning process, the network configuration packet includes that at least two carry a wireless access and set
The probe request of standby link information, the link information includes service set and connection password;Configuration Packet analyzing module,
For parsing the network configuration packet, the link information of the radio reception device included in the network configuration packet is obtained;Letter
Breath matching module, for carrying out wireless network scan, all service sets that will be scanned are matched somebody with somebody with the above-mentioned network of parsing respectively
The service set put in the link information that bag is obtained is matched;Wireless connection module, in the presence of the match is successful
Service set when, the connection password radio reception device corresponding with the service set in the link information is built
Vertical connection;Message transmission module, for be successfully established with the radio reception device be connected after send an acknowledgement message to it is described
Mobile terminal.
In the network collocating method and device of present pre-ferred embodiments offer, mobile terminal controls to connect by calling WiFi
The link information of radio reception device is carried on probe request by mouth, then initiates unicast type scanning process, please by the detection
Frame is asked to be sent in each channel.Work in listening mode internet of things equipment capture the probe request after, by parsing
The link information is obtained, then according to foundation communication connection between the link information and the radio reception device.
Compared with prior art, at least there is following beneficial effect in this kind of network collocating method:
One is, the link information for carrying radio reception device using the service set field in probe request can be effective
Reduce the quantity of data frame in single configuration sequence.Because service set field is most long up to 32 bytes, and it can carry letter
The effective length of breath is far longer than the length of the Length fields of existing use.Generally, one to three probe requests are
A complete configuration information can be carried.
Two are, are that the probe request in network configuration packet exists when the mobile terminal initiates unicast type scanning process
Each channel is transmitted, and radio reception device is not forwarded to it.As long as internet of things equipment rests on a selected letter
Monitored on road, without switching on each channel.In this way, the connection between internet of things equipment and radio reception device
Interference is significantly reduced.
Based on above-mentioned 2 points, compared with prior art, network collocating method provided in an embodiment of the present invention and device can be with
On the premise of ensureing conveniently, safely to configure, allocative efficiency is effectively lifted, accelerate configuration process.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the schematic diagram at " addition network " interface in a kind of WLAN setting provided in an embodiment of the present invention;
Fig. 2 is a kind of application scenarios schematic diagram of network collocating method provided in an embodiment of the present invention;
Fig. 3 is the block diagram of mobile terminal shown in Fig. 2 provided in an embodiment of the present invention;
Fig. 4 is the block diagram of internet of things equipment shown in Fig. 2 provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the network collocating method for being applied to scene shown in Fig. 2 provided in an embodiment of the present invention;
Fig. 6 is a kind of data encoding format schematic diagram provided in an embodiment of the present invention;
Fig. 7 is a kind of flow chart of network collocating method for being applied to the mobile terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of flow of network collocating method for being applied to the internet of things equipment provided in an embodiment of the present invention
Figure;
Fig. 9 is a kind of functional block diagram of first network configuration device provided in an embodiment of the present invention;
Figure 10 is a kind of functional block diagram of second network configuration device provided in an embodiment of the present invention.
Icon:100- radio reception devices;200- mobile terminals;300- internet of things equipment;210- first memories;220-
First processor;230- first network configuration devices;310- second memories;320- second processing devices;The networks of 330- second are matched somebody with somebody
Put device;2302- data obtaining modules;2304- message processing modules;2306- scans initiation module;2308- judge modules;
2310- scannings terminate module;3302- configures Packet capturing module;3304- configures Packet analyzing module;3306- information matches modules;
3308- wireless connection modules;3310- message transmission modules.
Specific embodiment
When intelligent terminal carries out wireless network scan, whether carry specified according to probe request (Probe Request)
Service set (Service Set Identifier, SSID) and be divided into broadcast type scanning and unicast type scan two kinds.Its
In, broadcast type scanning refers to the length of service set field (SSID Element) in the probe request that intelligent terminal sends
It is 0, that is, is not directed to specific service set and is scanned.Based on this kind of detection mode, " SSID is not provided with effective range
Do not broadcast " wireless router of option will give out a contract for a project and be responded.But, partly it has been provided with that " SSID is not wide for safety
Broadcast " wireless router of option will not then produce response to above-mentioned probe request, and its own beacon (Beacon) for sending
In also do not include service set information.It is connected to be set up with the part radio reception device, then needs initiation unicast type to sweep
The process of retouching is detected.
In detail, the mode for initiating unicast type scanning process can be, as shown in figure 1, in calling WLAN to set
" addition network " or " other networks " control interface be input into scanning to be specified wireless router service set, Ran Houfa
Play scanning.Now, the probe requests thereby frame in for sending out will carry the service set of above-mentioned input.
Network collocating method provided in an embodiment of the present invention is namely based on the probe requests thereby for carrying out being sent when unicast type is scanned
The characteristics of frame carries the service set specified configures the proprietary protocol of equipment end WiFi network to define.
To make the technical scheme of the embodiment of the present invention and advantage clearer, carried out below in conjunction with accompanying drawing clear, complete
Ground description.Obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.Therefore, based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, the scope of protection of the invention is belonged to.
Fig. 2 is referred to, is a kind of application scenarios schematic diagram of network collocating method provided in an embodiment of the present invention.As schemed
Show, the scene includes to carry out each other radio reception device 100, mobile terminal 200 and the internet of things equipment of information exchange
300.Wherein, the radio reception device 100 may be, but not limited to, and wireless router (collects route and access function in one
Body), wireless aps (simple access function) or possess terminal of personal focus etc..The mobile terminal 200 can be, but not limit
In smart mobile phone, panel computer or other removable equipments for surfing the net etc..The internet of things equipment 300 is built-in with wireless network card, can
To support to pass through WiFi access networks.
Fig. 3 is referred to, is the block diagram of mobile terminal provided in an embodiment of the present invention 200.The mobile terminal 200 is wrapped
Include first memory 210, first processor 220 and first network configuration device 230.The first network configuration device 230
The software function module in the first memory 210 can be stored in software or form of firmware including at least one.Certainly, should
Device can also include one or more hardware modules being made up of hardware circuit or nextport hardware component NextPort, as long as corresponding work(can be realized
Can.The first processor 220 is used to perform the executable module stored in the memory, such as above-mentioned first network
The software module that configuration device 230 includes, or for controlling hardware module to realize that it is acted on.
Fig. 4 is referred to, is the block diagram of internet of things equipment provided in an embodiment of the present invention 300.The internet of things equipment
300 include second memory 310, the network configuration device 330 of second processing device 320 and second.The second network configuration dress
Putting 330 includes at least one executable module and/or at least one being stored in second memory 310 by second processing device
320 hardware modules being controlled.The second processing device 320 is electrically connected with to perform inside it with the second memory 310
Software function module.
Fig. 5 is referred to, is a kind of stream of network collocating method for being applied to scene shown in Fig. 2 provided in an embodiment of the present invention
Cheng Tu.It should be noted that, the method is not limitation with Fig. 5 and particular order as described below.Below to each step shown in Fig. 5
Suddenly it is described in detail.
Step S101, the mobile terminal 200 obtains the link information of the radio reception device 100.
In the present embodiment, the link information include, but not limited to the radio reception device 100 service set and
Connection password.The mobile terminal 200 can obtain its connection by way of being successfully established with radio reception device 100 and being connected
Information.
Step S103, the link information that the mobile terminal 200 will get is encoded, be divided into after encryption
Multistage subdata, in each cross-talk data correspondence one service set field of probe request of write-in.
In the present embodiment, used as a kind of implementation method, the mobile terminal 200 can be carried out according to the process shown in Fig. 6
Coding, encryption and group bag treatment.
In detail, the pre-defined data form of the first behavior in Fig. 6.The connection letter that the mobile terminal 200 gets
Breath can be encoded according to the data form.Wherein, write-in is the part selected in service set in " SSID " field
Byte (such as preceding 4 bytes) and the corresponding redundancy check code of the service set.The preseting length for being somebody's turn to do " SSID " field is 8 words
Section." SSID CRC8 " is used to verify " SSID " field.It is close that " PasswordLength " field is used for mark connection
The length of code.The write-in of " Password " field is then complete connection password, and its total length is not more than 32 bytes.
" Password CRC8 " is used to carry out redundancy check to " Password " field.The write-in of " Random Number " field
It is the random number of 4 bytes, so that the encryption data of generation is different every time.
The second row is in Fig. 6, and after being encoded according to above-mentioned data form, the coded data to obtaining is encrypted,
Obtain encryption data.In present embodiment, encryption key can be by the 2 D code information or PIN code of internet of things equipment 300
Information is generated.AES can select conventional AES encryption, but be not limited to this.It is understood that in other embodiment party
In formula, encryption key can also be the public key of the cipher key pair for previously generating, and corresponding private key is then stored in internet of things equipment
In 300, decrypted for follow-up data.After encrypted cipher text " AES Text " is obtained, the frame of 4 bytes can be added in its afterbody
Verification sequence (Frame Check Sequence, FCS), for being verified to complete ciphertext.
The third line is in Fig. 6, and encrypted cipher text and Frame Check Sequence are segmented, bag is organized.Specifically, the encryption is close
Text and Frame Check Sequence are divided into two cross-talk data (two packets), and in the head addition packet header of every cross-talk data.The bag
Head includes Sync fields and Seq fields.Wherein, the Sync fields have form set in advance, so that equipment end can basis
The possible effective configuration data of format identification of the setting.The Seq fields are sequence number, complete for knowing equipment end
Configuration information includes a few cross-talk data and is currently which section altogether.
Fourth line is in Fig. 6, will be segmented and add two cross-talk data behind packet header to be respectively written into two clothes of probe request
In business set identifier field (SSID Element).Wherein, " the Element ID " shown in figure is the identification number of the field.
" Length " represents the length of the field." SSID " Field is the part for really carrying configuration data.
It should be noted that in present embodiment, carrying out coding using above-mentioned data form and being based primarily upon 2 points of considerations:Its
One, carry complete configuration information using as far as possible few probe request;Two are, it is ensured that data communications security reliability.Therefore, compile
Use only partial bytes in service set during code, and not all byte, and add redundancy check code, random number with
And the reliability and security of the Data safeguard such as Frame Check Sequence interaction.
It is appreciated that the data encoding format shown in Fig. 6 is only schematical, it is not excluded that in other embodiments
Can also be encoded using other data forms.Additionally, in present embodiment, carrying the number of the probe request of configuration information
Amount can also be three or more than three, and simply compared with using two, allocative efficiency can decrease.That is, using
Different data encoding formaies may be in requisition for different number of probe request, same data encoding format can also be selected
Using different number of probe request.
For the ease of description, in the present embodiment, at least one probe request composition of complete configuration information will be carried
Configuration sequence be referred to as network configuration packet.
Step S105, the mobile terminal 200 initiates the scanning process of unicast type by above-mentioned network configuration packet.
In the present embodiment, the internet of things equipment 300 only needs to be monitored on a selected channel, and is cut without channel
Change.All probe requests that the mobile terminal 200 includes the network configuration packet are being currently located work frequently respectively
Each channel of section is transmitted, so as on the selected channel and work in the internet of things equipment 300 of listening mode and capture
The network configuration packet.
Without loss of generality, with working frequency range as 2.4GHz and the network configuration packet is including two probe requests
, the scanning process of the mobile terminal 200 can be:By one of probe request successively at 11 of 2.4GHz frequency ranges
After being sent in channel, then another probe request is transmitted in the same fashion, this is a wheel scan.Swept a wheel is completed
After retouching, the mobile terminal 200 can rest on the working channel certain hour (such as 1 second) of radio reception device 100, with etc.
The confirmation message (be specifically described and see below step 113) that internet of things equipment to be received 300 is returned.
Step S107, the internet of things equipment 300 is decrypted after capturing the network configuration packet, decodes, and obtains institute
State the link information of radio reception device 100.
In the present embodiment, after the internet of things equipment 300 listens to probe request, data that can be according to entrained by it
Sync fields in bag packet header identify whether to be effective configuration data, and determine whether to have been received by according to packet number complete
Configuration information.If it is determined that having been received by complete network configuration packet, then it is decrypted and decodes, and does corresponding integrality and just
True property verification, to obtain the link information of the radio reception device 100.If obtained successfully, following step S109 is performed,
Otherwise, the internet of things equipment 300 will proceed to monitor.
Step S109, the internet of things equipment 300 ceases listening for pattern, and according to the above-mentioned link information for getting and institute
State radio reception device 100 and set up connection.
In the present embodiment, the internet of things equipment 300 carries out a wireless network scan after pattern is ceased listening for.So
The all service sets that will be scanned afterwards are matched with the service set in the link information for getting, Huo Zheyu
Partial bytes in service set are matched and the Cyclic Redundancy Code to service set is verified.If matching is verified into
Work(, it tries set up with the radio reception device 100 and be connected.
Step S111, judges whether successful connection, if successful connection, performs following step S113, otherwise, performs step
S115。
Step S113, sends an acknowledgement message to the mobile terminal 200, so that the mobile terminal 200 is being received really
Terminate scanning process after recognizing message.The confirmation message can be that UDP confirms bag.
In the present embodiment, the internet of things equipment 300 can periodically send the confirmation message, until receiving described
What mobile terminal 200 was returned represents its response message for having been received by the confirmation message.
In addition, in other embodiments, the mobile terminal 200 can also send table after the confirmation message is received
Show the request bag of the MAC Address or identification information that obtain the internet of things equipment 300 etc., so that internet of things equipment 300 makes phase
The response answered.
Step S115, recovers listening mode, return to step S107.
The network collocating method that the present embodiment is provided, compared with prior art, included by a complete configuration sequence
Packet is considerably less (generally 1 to 3), and is not in substantial amounts of in the working channel where radio reception device 100
Forwarding bag, the interference of normal connection is big between the influence and radio reception device 100 and internet of things equipment 300 to network environment
It is big to reduce, can effectively accelerate network configuration process.
For stronger proof technical scheme advantage compared with prior art, inventor has carried out following reality
Test and contrasted.Based on same environment, radio reception device 100, mobile terminal 200 and internet of things equipment 300, and move
Dynamic terminal 200, the time needed for internet of things equipment 300 sets up line with radio reception device 100 by UART command modes are steady
In the case of within being scheduled on 5 seconds, test by contrast, the privately owned communication protocol of existing utilization udp broadcast bag Length code fields,
The time that its configuration successful needs is general at 10~20 seconds, and worst situation even needs more than 30 seconds, and what the application was proposed
Time needed for method configuration successful substantially stablized within 10 seconds, even can be close to 6 seconds during preferable situation.
By the contrast of above-mentioned data, it can be clearly seen that, network collocating method provided in an embodiment of the present invention has more
Network configuration efficiency high.
Fig. 7 is referred to, is a kind of network collocating method for being applied to the mobile terminal 200 provided in an embodiment of the present invention
Flow chart.As illustrated, the method includes:
Step S301, obtains the link information of the radio reception device 100.The link information includes the wireless access
The service set and connection password of equipment 100.
Step S303, by the service set field of link information write-in probe request.
In the present embodiment, after the mobile terminal 200 gets the link information, it is first according to predefined data and compiles
Code form is encoded to the link information, obtains coded data.The coded data is included from the radio reception device 100
Service set in partial bytes data, the CRC of the service set data and described chosen in advance
Connect whole byte datas of password.
Then, using the key generated according to the unique identification information of the internet of things equipment 300 to the coded data
It is encrypted.Wherein, the unique identification information may be, but not limited to, the 2 D code information of the internet of things equipment 300 or
PIN code information.
Finally, the encryption data obtained after will be encrypted is divided into multistage subdata, each corresponding bag of cross-talk data addition
After head in one service set field of probe request of correspondence write-in.All probe request groups for carrying the subdata
Into network configuration packet.
Step S305, the scanning process of unicast type is initiated according to above-mentioned probe request, so that the thing in listening mode
Networked devices 300 obtain the link information after capturing the probe request.
In detail, all probe requests that the mobile terminal 200 includes the network configuration packet are respectively current
Each channel of place working frequency range is transmitted, so as on a selected channel and work in the Internet of Things of listening mode and set
Standby 300 capture the network configuration packet.
Step S307, after scanning process initiation, judges whether that the confirmation for receiving the return of the internet of things equipment 300 disappears
Breath.If having been received by, following step S309 is performed, terminate above-mentioned scanning process, if not receiving, perform following step
S311。
The confirmation message is used to representing that internet of things equipment 300 is successfully connected according to the link information and described wirelessly connects
Enter equipment 100.
Step S309, terminates scanning, terminates whole configuration process.
Step S311, judges whether the duration of the current scanning process initiated exceedes preset duration, if not less than,
Return to step S305 continues to send network configuration packet, if having exceeded, performs following step S313.
In the present embodiment, in order to preferably control configuration process, the scanning process that whole process is initiated altogether can be set
Number of times must not exceed predetermined threshold value (such as 3 times), and each time the duration of scanning process must not exceed preset duration (such as 20
Second).
Step S313, terminates current scanning process, and judge whether the number of times of the current scanning process initiated altogether surpasses
The predetermined threshold value is crossed, if having exceeded, terminates whole configuration process, if not less than return to step S303, with to the company
The information of connecing initiates scanning process again after re-starting coding, encryption.
It should be noted that in whole configuration process, the network configuration packet corresponding to scanning process initiated each time
Comprising configuration information can be different.Such as, can be using different piece in the service set of radio reception device 100
Byte encoded, so as to produce different configuration informations.Or, can also using different data forms, it is different plus
Close mode or different number of probe request are carried etc..
In addition, terminal 200 is transferred described in the present embodiment judges whether the duration of scanning process exceedes preset duration
And whether the scanning times initiated are equally applicable in the method shown in Fig. 5 more than the method for predetermined threshold value.
The concrete methods of realizing of each step similar to Fig. 5 shown in the present embodiment can refer to above method embodiment
The description of middle corresponding steps.
Fig. 8 is referred to, is a kind of network configuration side for being applied to the internet of things equipment 300 provided in an embodiment of the present invention
The flow chart of method.As illustrated, the method includes:
Step S401, judges whether to be previously stored with the link information of the radio reception device 100, if so, then holding
Row following step S411, if it is not, then following step S403.
Step S403, into listening mode, is captured the mobile terminal 200 and is sent by the unicast type scanning process initiated
Network configuration packet.
Step S405, parses the network configuration packet, obtains the radio reception device included in the network configuration packet
100 link information.
Step S407, ceases listening for pattern, carries out wireless network scan, all service sets that will be scanned respectively with
The service set parsed in the link information that above-mentioned network configuration packet is obtained is matched and verified.
Step S409, judges whether that matching is proved to be successful, if so, following step S411 is then performed, if it is not, then return to step
S403。
Step S411, sets up with the radio reception device 100 according to the link information and is connected.
Step S413, judges whether successful connection, if successful connection, performs step S415, otherwise, return to step
S403。
Step S415, sends an acknowledgement message to the mobile terminal 200, so that the mobile terminal 200 terminates scanning.
Fig. 9 is referred to, is a kind of functional block diagram of first network configuration device 230 provided in an embodiment of the present invention.
The device include data obtaining module 2302, message processing module 2304, scanning initiation module 2306, judge module 2308 and
Scanning terminates module 2310.
Described information acquisition module 2302, the link information for obtaining radio reception device 100.
Described information processing module 2304, the service set field for the link information to be write probe request
It is interior.
The scanning initiation module 2306, the scanning process for initiating unicast type according to above-mentioned probe request, so that
Internet of things equipment 300 in listening mode obtains the link information after capturing the probe request.
The judge module 2308, for after scanning process is initiated, judging whether to receive the internet of things equipment 300
The confirmation message of return.
The scanning terminates module 2310, for terminating above-mentioned scanning process after the confirmation message is received.
The concrete operation method of each functional module can refer to the detailed of corresponding steps in above method embodiment in the present embodiment
It is thin to illustrate.
Figure 10 is referred to, is a kind of functional block diagram of second network configuration device 330 provided in an embodiment of the present invention.
As illustrated, the device includes:
Configuration Packet capturing module 3302, sends out for capturing unicast type scanning process of the mobile terminal 200 by initiating
The network configuration packet for going out.
Configuration Packet analyzing module 3304, for parsing the network configuration packet, obtains the institute included in the network configuration packet
State the link information of radio reception device 100.
Information matches module 3306, for carrying out wireless network scan, all service sets that will be scanned respectively with
The service set and its CRC parsed in the link information that above-mentioned network configuration packet is obtained are matched
And checking.
Wireless connection module 3308, for when there is the service set that the match is successful, according in the link information
Corresponding with the service set radio reception device 100 of connection password set up connection.
Message transmission module 3310, for be successfully established with the radio reception device 100 be connected after send confirmation disappear
Cease to the mobile terminal 200.
The concrete operation method of each functional module can refer to the detailed of corresponding steps in above method embodiment in the present embodiment
Thin to illustrate, this is no longer going to repeat them.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code
Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more
Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation
Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to
Nonexcludability is included.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of network collocating method, is applied to carry out internet of things equipment the mobile terminal of WLAN configuration, and it is special
Levy and be, the method includes:
Obtain the link information of a radio reception device, the link information include the service set of the radio reception device and
Connection password;
By in the service set field of link information write-in probe request;
The scanning process of unicast type is initiated according to above-mentioned probe request, so that the capture of the internet of things equipment in listening mode should
The link information is obtained after probe request;
After scanning process initiation, judge whether to receive the confirmation message that the internet of things equipment is returned, the confirmation message is used
The radio reception device is successfully connected according to the link information in expression internet of things equipment;
If having been received by the confirmation message, terminate above-mentioned scanning process.
2. method according to claim 1, it is characterised in that the link information write-in probe request that will be got
Service set field in step include:
The link information is encoded according to predefined data encoding format, obtains coded data;
The coded data is encrypted using the key generated according to the unique identification information of the internet of things equipment, its
In, the unique identification information includes the 2 D code information or PIN code information of the internet of things equipment;
The encryption data obtained after will be encrypted is divided into multistage subdata, each cross-talk data correspondence one probe request of write-in
Service set field in, all probe request network consistings configuration bags for carrying the subdatas.
3. method according to claim 2, it is characterised in that the coded data is included from the radio reception device
Partial bytes data, the CRC of the service set and the connection chosen in advance in service set are close
Whole byte datas of code.
4. method according to claim 2, it is characterised in that the scanned of unicast type is initiated by above-mentioned probe request
The step of journey, includes:
All probe requests that the network configuration packet is included are carried out in each channel for being currently located working frequency range respectively
Send, so as on a selected channel and work in the internet of things equipment of listening mode and capture the network configuration packet.
5. a kind of network collocating method, is applied to be carried out by mobile terminal the internet of things equipment of WLAN configuration, its
It is characterised by, the method includes:
The network configuration packet that the mobile terminal is sent by the unicast type scanning process initiated is captured, is wrapped in the network configuration packet
The probe request of at least two link informations for carrying a radio reception device is included, the link information includes services set mark
Know and connection password;
The network configuration packet is parsed, the link information of the radio reception device included in the network configuration packet is obtained;
Wireless network scan is carried out, the institute that all service sets that will be scanned are obtained with the above-mentioned network configuration packet of parsing respectively
The service set stated in link information is matched;
If in the presence of the service set that the match is successful, connection password and the service set pair in the link information
The radio reception device answered sets up connection, and the mobile terminal is sent an acknowledgement message to after successful connection.
6. a kind of network collocating method, WLAN configuration is carried out by mobile terminal to internet of things equipment, and its feature exists
In the method includes:
The link information of the radio reception device of the acquisition for mobile terminal one, the link information includes the radio reception device
Service set and connection password;
The link information that the mobile terminal will get is encoded, be divided into multistage subdata after encryption, each
In cross-talk data correspondence one service set field of probe request of write-in, all probe requests therebies for carrying the subdata
Frame network consisting configuration bag;
The mobile terminal initiates the scanning process of unicast type by above-mentioned network configuration packet;
It is operated in after the internet of things equipment of listening mode captures the network configuration packet and is decrypted, decodes, obtains institute
State the link information of radio reception device;
The internet of things equipment ceases listening for pattern, and is built according to the above-mentioned link information for getting and the radio reception device
Vertical connection, if successful connection, sends an acknowledgement message to the mobile terminal, if being not connected with successfully, reverting to listening mode;
The mobile terminal judges whether to receive the confirmation message, if having been received by, terminates the scanning process.
7. method according to claim 6, it is characterised in that the internet of things equipment is located on a selected channel and is supervised
Listen, wherein, the mobile terminal by above-mentioned network configuration packet initiate unicast type scanning process the step of include:
All probe requests that the network configuration packet includes are being currently located working frequency range by the mobile terminal respectively
Each channel is transmitted, so as on the selected channel and work in the internet of things equipment of listening mode and capture the network and match somebody with somebody
Put bag.
8. method according to claim 6, it is characterised in that when the mobile terminal judges that not receiving the confirmation disappears
During breath, the method also includes:
The mobile terminal judges whether the duration of the current scanning process initiated exceedes preset duration;
If having exceeded preset duration, terminate current scanning process, and judge the number of times of the current scanning process initiated altogether
Whether predetermined threshold value is exceeded;
If not less than predetermined threshold value, scanning process is initiated again after coding, encryption are re-started to the link information.
9. a kind of network configuration device, is applied to carry out internet of things equipment the mobile terminal of WLAN configuration, and it is special
Levy and be, the device includes:
Data obtaining module, the link information for obtaining a radio reception device, the link information includes the wireless access
The service set and connection password of equipment;
Message processing module, for by the service set field of link information write-in probe request;
Scanning initiation module, the scanning process for initiating unicast type according to above-mentioned probe request, so as to be in listening mode
Internet of things equipment capture the probe request after obtain the link information;
Judge module, for after scanning process is initiated, judging whether to receive the confirmation message that the internet of things equipment is returned,
The confirmation message is used to represent that internet of things equipment is successfully connected the radio reception device according to the link information;
Scanning terminates module, for terminating above-mentioned scanning process after the confirmation message is received.
10. a kind of network configuration device, is applied to be carried out by mobile terminal the internet of things equipment of WLAN configuration, its
It is characterised by, the device includes:
Configuration Packet capturing module, for capturing the network configuration that the mobile terminal is sent by the unicast type scanning process initiated
Bag, the network configuration packet includes the probe request of at least two link informations for carrying a radio reception device, described
Link information includes service set and connection password;
Configuration Packet analyzing module, for parsing the network configuration packet, obtains included in the network configuration packet described and wirelessly connects
Enter the link information of equipment;
Information matches module, for carrying out wireless network scan, all service sets that will be scanned are above-mentioned with parsing respectively
Service set in the link information that network configuration packet is obtained is matched;
Wireless connection module, for when there is the service set that the match is successful, the connection in the link information to be close
Code radio reception device corresponding with the service set sets up connection;
Message transmission module, for be successfully established with the radio reception device be connected after send an acknowledgement message to the movement
Terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710115308.4A CN106856609A (en) | 2017-02-28 | 2017-02-28 | A kind of network collocating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710115308.4A CN106856609A (en) | 2017-02-28 | 2017-02-28 | A kind of network collocating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106856609A true CN106856609A (en) | 2017-06-16 |
Family
ID=59125323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710115308.4A Pending CN106856609A (en) | 2017-02-28 | 2017-02-28 | A kind of network collocating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106856609A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107819648A (en) * | 2017-11-14 | 2018-03-20 | 新华三技术有限公司 | Network configuration NETCONF connecting detection method and apparatus |
CN108040355A (en) * | 2017-12-08 | 2018-05-15 | 深圳市恒腾智能科技有限公司 | Method for network access and system |
CN108200081A (en) * | 2018-01-24 | 2018-06-22 | 深圳市硅传科技有限公司 | Smart machine networking method and smart machine system |
CN108848466A (en) * | 2018-05-31 | 2018-11-20 | 北京橙鑫数据科技有限公司 | Data transmission method and system |
CN108882344A (en) * | 2018-06-05 | 2018-11-23 | 深圳市泰和安科技有限公司 | A kind of method for network access of wireless device, apparatus and system |
CN109219042A (en) * | 2018-10-31 | 2019-01-15 | 全讯汇聚网络科技(北京)有限公司 | Wireless network automatically accesses method and system |
CN109560909A (en) * | 2018-11-29 | 2019-04-02 | 广州慧睿思通信息科技有限公司 | Target of eating dishes without rice or wine induces detection method, detecting devices and induces equipment |
WO2019075896A1 (en) * | 2017-10-18 | 2019-04-25 | 广州视睿电子科技有限公司 | Method and apparatus for interconnection between devices, system, device, and storage medium |
CN110662236A (en) * | 2019-09-30 | 2020-01-07 | 上海趣威文化发展有限公司 | Network configuration method, system and device |
CN111741509A (en) * | 2019-03-25 | 2020-10-02 | 珠海格力电器股份有限公司 | Network distribution method and device, storage medium and processor |
CN112217831A (en) * | 2017-09-18 | 2021-01-12 | 创新先进技术有限公司 | Information interaction method, device and equipment about Internet of things equipment |
CN112235795A (en) * | 2020-09-09 | 2021-01-15 | 广州安食通信息科技有限公司 | Wireless network configuration method, system, device and medium based on Internet of things |
CN113260014A (en) * | 2020-02-10 | 2021-08-13 | 华为技术有限公司 | Method and device for IOT (Internet of things) equipment to automatically access WLAN (wireless local area network) |
CN114698060A (en) * | 2020-12-31 | 2022-07-01 | 华为技术有限公司 | Method and device for rapidly discovering wireless access point |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607751A (en) * | 2013-11-18 | 2014-02-26 | 深圳市通力科技开发有限公司 | Wireless device configuration method and system |
CN104113861A (en) * | 2011-05-18 | 2014-10-22 | Wifi名称有限公司 | A System And Method For Registering Network Information Strings |
CN104581886A (en) * | 2015-01-16 | 2015-04-29 | 深圳市银河风云网络系统股份有限公司 | Method and system for data transmission and wireless connection of terminal and wireless device |
CN104618900A (en) * | 2015-02-02 | 2015-05-13 | 青岛海尔智能家电科技有限公司 | Network access method for intelligent device, intelligent device and mobile terminal |
CN104703176A (en) * | 2015-03-18 | 2015-06-10 | 北京联盛德微电子有限责任公司 | Configuration method of wireless network, intelligent terminal and wireless network equipment |
CN105491600A (en) * | 2015-12-30 | 2016-04-13 | 青岛海尔智能家电科技有限公司 | Network access method, device and related equipment for household appliances |
CN105744596A (en) * | 2016-03-29 | 2016-07-06 | 海尔优家智能科技(北京)有限公司 | Network accessing method and device of WiFi device |
CN106254147A (en) * | 2016-09-08 | 2016-12-21 | 珠海全志科技股份有限公司 | A kind of collocation method for Wi Fi network, internet-of-things terminal and control end |
CN106304409A (en) * | 2016-08-31 | 2017-01-04 | 江苏福云星信息技术有限公司 | The method of attachment of a kind of fast automatic access WIFI wireless network and application system |
CN106455001A (en) * | 2016-11-30 | 2017-02-22 | 青岛海尔科技有限公司 | Method and device for configuring WIFI module |
-
2017
- 2017-02-28 CN CN201710115308.4A patent/CN106856609A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113861A (en) * | 2011-05-18 | 2014-10-22 | Wifi名称有限公司 | A System And Method For Registering Network Information Strings |
CN103607751A (en) * | 2013-11-18 | 2014-02-26 | 深圳市通力科技开发有限公司 | Wireless device configuration method and system |
CN104581886A (en) * | 2015-01-16 | 2015-04-29 | 深圳市银河风云网络系统股份有限公司 | Method and system for data transmission and wireless connection of terminal and wireless device |
CN104618900A (en) * | 2015-02-02 | 2015-05-13 | 青岛海尔智能家电科技有限公司 | Network access method for intelligent device, intelligent device and mobile terminal |
CN104703176A (en) * | 2015-03-18 | 2015-06-10 | 北京联盛德微电子有限责任公司 | Configuration method of wireless network, intelligent terminal and wireless network equipment |
CN105491600A (en) * | 2015-12-30 | 2016-04-13 | 青岛海尔智能家电科技有限公司 | Network access method, device and related equipment for household appliances |
CN105744596A (en) * | 2016-03-29 | 2016-07-06 | 海尔优家智能科技(北京)有限公司 | Network accessing method and device of WiFi device |
CN106304409A (en) * | 2016-08-31 | 2017-01-04 | 江苏福云星信息技术有限公司 | The method of attachment of a kind of fast automatic access WIFI wireless network and application system |
CN106254147A (en) * | 2016-09-08 | 2016-12-21 | 珠海全志科技股份有限公司 | A kind of collocation method for Wi Fi network, internet-of-things terminal and control end |
CN106455001A (en) * | 2016-11-30 | 2017-02-22 | 青岛海尔科技有限公司 | Method and device for configuring WIFI module |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112217831A (en) * | 2017-09-18 | 2021-01-12 | 创新先进技术有限公司 | Information interaction method, device and equipment about Internet of things equipment |
WO2019075896A1 (en) * | 2017-10-18 | 2019-04-25 | 广州视睿电子科技有限公司 | Method and apparatus for interconnection between devices, system, device, and storage medium |
CN107819648A (en) * | 2017-11-14 | 2018-03-20 | 新华三技术有限公司 | Network configuration NETCONF connecting detection method and apparatus |
CN108040355A (en) * | 2017-12-08 | 2018-05-15 | 深圳市恒腾智能科技有限公司 | Method for network access and system |
CN108040355B (en) * | 2017-12-08 | 2020-09-25 | 恒大智慧科技有限公司 | Network access method and system |
CN108200081A (en) * | 2018-01-24 | 2018-06-22 | 深圳市硅传科技有限公司 | Smart machine networking method and smart machine system |
CN108848466A (en) * | 2018-05-31 | 2018-11-20 | 北京橙鑫数据科技有限公司 | Data transmission method and system |
CN108882344A (en) * | 2018-06-05 | 2018-11-23 | 深圳市泰和安科技有限公司 | A kind of method for network access of wireless device, apparatus and system |
CN108882344B (en) * | 2018-06-05 | 2021-08-06 | 深圳市泰和安科技有限公司 | Network access method, device and system of wireless equipment |
CN109219042A (en) * | 2018-10-31 | 2019-01-15 | 全讯汇聚网络科技(北京)有限公司 | Wireless network automatically accesses method and system |
CN109560909A (en) * | 2018-11-29 | 2019-04-02 | 广州慧睿思通信息科技有限公司 | Target of eating dishes without rice or wine induces detection method, detecting devices and induces equipment |
CN111741509A (en) * | 2019-03-25 | 2020-10-02 | 珠海格力电器股份有限公司 | Network distribution method and device, storage medium and processor |
CN110662236A (en) * | 2019-09-30 | 2020-01-07 | 上海趣威文化发展有限公司 | Network configuration method, system and device |
CN113260014A (en) * | 2020-02-10 | 2021-08-13 | 华为技术有限公司 | Method and device for IOT (Internet of things) equipment to automatically access WLAN (wireless local area network) |
WO2021159708A1 (en) * | 2020-02-10 | 2021-08-19 | 华为技术有限公司 | Method and apparatus for automatic access of internet of things device to wireless local area network |
CN113260014B (en) * | 2020-02-10 | 2023-04-28 | 华为技术有限公司 | Method and device for automatically accessing IOT (Internet of things) equipment to WLAN (wireless local area network) |
EP4090081A4 (en) * | 2020-02-10 | 2023-05-03 | Huawei Technologies Co., Ltd. | Method and apparatus for automatic access of internet of things device to wireless local area network |
CN112235795A (en) * | 2020-09-09 | 2021-01-15 | 广州安食通信息科技有限公司 | Wireless network configuration method, system, device and medium based on Internet of things |
CN112235795B (en) * | 2020-09-09 | 2023-08-01 | 广州安食通信息科技有限公司 | Wireless network configuration method, system, device and medium based on Internet of things |
CN114698060A (en) * | 2020-12-31 | 2022-07-01 | 华为技术有限公司 | Method and device for rapidly discovering wireless access point |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106856609A (en) | A kind of network collocating method and device | |
TWI565140B (en) | Methods for adaptive multi-antenna selection | |
CN106921963A (en) | A kind of smart machine accesses the method and device of WLAN | |
US8009626B2 (en) | Dynamic temporary MAC address generation in wireless networks | |
CN104168625B (en) | Smart machine and its method and wireless routing device for being connected to wireless routing device | |
CN106535288A (en) | Method for sending and obtaining wifi networking information and corresponding apparatus | |
CN101621800B (en) | Method for exchanging authentication information between wireless terminal and wireless router | |
CN107529160B (en) | VoWiFi network access method and system, terminal and wireless access point equipment | |
CN103188766B (en) | A kind of method and access controller unifying configuration WAP (wireless access point) | |
CN104967595A (en) | Method and apparatus for registering devices on Internet of things platform | |
CN104010327A (en) | Method and system for quickly having access to WIFI wireless network | |
MXPA03010777A (en) | Native wi-fi architecture for 802.11 networks. | |
CN102882938A (en) | Data share method and mobile terminal | |
US20090274065A1 (en) | Method and apparatus for setting wireless local area network by using button | |
CN109640375A (en) | A kind of smart machine distribution method and system | |
CN103999495B (en) | Enable the access to the cipher key lifetimes of wireless link | |
CN104320782A (en) | WiFi signal blocking system and method | |
CN105228264A (en) | A kind of quick WI-FI network matching method being applicable to Internet of Things | |
WO2012150526A2 (en) | Efficient creation of wlan connections | |
CN104066083B (en) | Method and device for accessing wireless local area network | |
US20190335331A1 (en) | Method, apparatus, and system for performing authentication on terminal in wireless local area network | |
CN106713522A (en) | Wireless fidelity (Wi-Fi) connection method and mobile terminal | |
CN103281692B (en) | Method for fast roaming between a kind of AC and equipment | |
CN110115067A (en) | The operation information of fast propagation for WLAN management | |
CN102215515B (en) | Data processing method, communication system and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170616 |
|
RJ01 | Rejection of invention patent application after publication |