CN104837132A - Wi-Fi (Wireless-Fidelity) network sharing method and device - Google Patents

Wi-Fi (Wireless-Fidelity) network sharing method and device Download PDF

Info

Publication number
CN104837132A
CN104837132A CN201510185209.4A CN201510185209A CN104837132A CN 104837132 A CN104837132 A CN 104837132A CN 201510185209 A CN201510185209 A CN 201510185209A CN 104837132 A CN104837132 A CN 104837132A
Authority
CN
China
Prior art keywords
frame
configuration information
broadcast
information
preface
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
CN201510185209.4A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201510185209.4A priority Critical patent/CN104837132A/en
Publication of CN104837132A publication Critical patent/CN104837132A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a Wi-Fi (Wireless-Fidelity) network sharing method and device. The method comprises a step of using an acquired encryption key to encrypt combined self Wi-Fi configuration information and preface information, wherein the Wi-Fi configuration information comprises current router information and an access cipher, and the preface information is used for indicating that a broadcast probe request frame comprises the Wi-Fi configuration information; and a step of sending the encrypted Wi-Fi configuration information and the encrypted preface information carried in the broadcast probe request frame to a reception device, in order to enable the reception device to establish a Wi-Fi network connection according to the Wi-Fi configuration information in the broadcast probe request frame. By means of the Wi-Fi network sharing scheme provided by the invention, the interaction time is saved, the work load of a transmission device and a reception device is reduced, and the safety of the Wi-Fi configuration information is enabled in the transmission process.

Description

Wi-Fi network shares method and apparatus
Technical field
The present invention relates to Sharing Technology in Network field, particularly relate to a kind of Wi-Fi network based on P2P and share method and apparatus.
Background technology
Some possess Wi-Fi (wireless fidelity, adopting wireless fidelity technology) access function smart machine such as: video cartridges, game cartridge, because self does not possess input unit, therefore, cannot be connected by the network independently completed between router, and needs obtain the configuration information between router by third party, set up by the configuration information obtained and be connected with the network between router.
At present, mainly adopt following two kinds of modes to solve smart machine independently cannot to complete the problem that the network between router is connected:
First kind of way is: the Wi-Fi Hotspot pattern of opening smart machine, waits for that subscriber equipment (i.e. third party) connects; User equipment scans is to this focus, and user successfully accesses this focus after inputting password; Subscriber equipment connects the fixed port input Wi-Fi configuration information on smart machine by socket; After receiving Wi-Fi configuration information, smart machine closes Wi-Fi Hotspot pattern; Smart machine uses the Wi-Fi configuration information of subscriber equipment input, and scanning is connection route device also.
The second way is: namely the Sniffer pattern of opening smart machine smells spy pattern, captures Wi-Fi air frame; Subscriber equipment is by SSID (the Service Set Identifier of institute's couple in router, service set identifier) and PSK (Pre-shared Key, access pin) the length field coding that wrapped by UDP (User Datagram Protocol, User Datagram Protoco (UDP)) become during a series of UDP wraps and carries out broadcast transmission by multicast; Smart machine captures UDP bag by smelling spy pattern, decodes during corresponding UDP wraps SSID and PSK of the router comprised, and completed the connection of Wi-Fi network by SSID and PSK of the router obtained according to length field.
Existing first kind of way, needing user manually to input password can connect with smart machine, and in the process that whole Wi-Fi network connects, the operation needing user to carry out complexity can complete the connection of Wi-Fi network.
The existing second way, although carry out complicated operation without the need to user, because the spy pattern of smelling of smart machine can only capture and determine the length that UDP wraps, so the length field that UDP can only be used to wrap is encoded, and the SSID of Wi-Fi and access pin are made up of multiple character, therefore, need the SSID of Wi-Fi and access pin to be carried at respectively in multiple UDP bag.Correspondingly, smart machine needs the whole UDP bags capturing SSID and the access pin information carrying Wi-Fi can obtain complete Wi-Fi configuration information.And the one-way transmitted due to the information of Sniffer pattern and easily by the characteristic of Wi-Fi environmental impact, UDP bag is lost often.Like this, smart machine often can not grab the whole UDP bags carrying Wi-Fi configuration information, to such an extent as to can not obtain complete Wi-Fi configuration information.Even if whole UDP bag can be grabbed, also need subscriber equipment to circulate and repeatedly send the UDP bag including Wi-Fi configuration information, like this, both required a great deal of time, again can the live load of adding users equipment and smart machine.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the Wi-Fi network that solves the problem at least in part shares method and apparatus.
According to one aspect of the present invention, provide a kind of Wi-Fi network and share method, comprise: adopt the encryption key obtained to be encrypted after the Wi-Fi configuration information of self and preface information combination, wherein, described Wi-Fi configuration information comprises: the route-map of current connection and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame and be sent to receiving equipment, set up Wi-Fi network for described receiving equipment according to the Wi-Fi configuration information that described broadcast is detected in claim frame and connect.
Preferably, carry out encrypting step after the encryption key of described employing acquisition combines the Wi-Fi configuration information of self and preface information before, described method also comprises: the Quick Response Code corresponding by described receiving equipment obtains encryption key; Or, receive the individual recognition code Pin code of described receiving equipment, using the Pin code of described receiving equipment as the described encryption key obtained.
Preferably, the route-map of described current connection is the cryptographic Hash of router rs name, before the step be encrypted after the encryption key of described employing acquisition combines the Wi-Fi configuration information of self and preface information, described method also comprises: the Wi-Fi link information obtaining self, wherein, Wi-Fi link information comprises: the router rs name of current connection and access pin; Calculate the cryptographic Hash of the router rs name of described current connection; Using the described cryptographic Hash that calculates and the described access pin Wi-Fi configuration information as self.
Preferably, describedly Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame the step being sent to receiving equipment and comprise: the Wi-Fi configuration information after encryption and preface information are carried at a broadcast and detect in claim frame and be sent to receiving equipment.
Preferably, Wi-Fi configuration information after encryption and preface information be carried at after broadcast detects in claim frame and be sent to receiving equipment step described, described method also comprises: receive the probe response frame that described receiving equipment returns, and detects in the described probe response frame received whether comprise described preface information; If comprise, then the broadcast carrying the Wi-Fi configuration information after encryption and preface information described in determining is detected claim frame and has been sent to described receiving equipment; If do not comprise, then again send described broadcast to described receiving equipment and detect claim frame.
Preferably, the described encryption key obtained that adopts comprises the step be encrypted after the Wi-Fi configuration information of self and preface information combination: the Wi-Fi configuration information of self is divided into multi-section molecule configuration information, adopts described encryption key to be encrypted with described preface information respectively by the sub-configuration information of each several part after segmentation; Describedly Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame the step being sent to described receiving equipment and comprise: respectively the sub-configuration information of each several part after encryption and described preface information are carried at different broadcast and detect in claim frame, claim frame is detected in each broadcast carrying sub-configuration information and described preface information and is sent to described receiving equipment.
Preferably, describedly each broadcast carrying sub-configuration information and described preface information is detected the step that claim frame is sent to described receiving equipment and comprises: select one not send in order and claim frame is detected in the broadcast carrying the sub-configuration information after encryption and described preface information, claim frame is detected in the described broadcast selected and is sent to described receiving equipment; Confirm to receive that described receiving equipment returns is used to indicate described broadcast and detects the probe response frame that claim frame is received, wherein, in described probe response frame, comprise described preface information; Judge that a broadcast of the sub-configuration information after carrying encryption and described preface information is detected claim frame and whether all sent, if not, then return execution in order described selection one do not send carry encryption after sub-configuration information and a broadcast of described preface information detect claim frame.
Preferably, the Wi-Fi configuration information after encryption and preface information are carried at broadcast to detect in claim frame the step being sent to receiving equipment and comprise: under the Wi-Fi configuration information after encryption and preface information being carried at the peer network device name field that broadcast detects in claim frame, be sent to described receiving equipment.
According to another aspect of the present invention, provide a kind of Wi-Fi network and share method, comprising: claim frame is detected in the broadcast receiving transmitting apparatus transmission; Wherein, described broadcast detect in claim frame and carry encryption after Wi-Fi configuration information and preface information, described Wi-Fi configuration information comprises: the route-map of the current connection of described transmitting apparatus and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Adopt the decruption key corresponding with described encryption key to detect the information of carrying in claim frame to described broadcast to be decrypted; Detect claim frame from the described broadcast after deciphering and obtain Wi-Fi configuration information; Wi-Fi network connection is carried out according to the described Wi-Fi configuration information obtained.
Preferably, after the described employing decruption key corresponding with described encryption key detects to described broadcast the step that the information of carrying in claim frame is decrypted, described method also comprises: judge the described broadcast after deciphering detects in claim frame whether carry described preface information; If carry described preface information, then determining that claim frame is detected in the described broadcast after deciphering is that claim frame is detected in the broadcast carrying Wi-Fi configuration information.
Preferably, to determine that claim frame is detected in the described broadcast after deciphering be after the step of claim frame is detected in the broadcast carrying Wi-Fi configuration information described, described method also comprises: described preface information be carried in probe response frame, and returns described probe response frame to described transmitting apparatus.
Preferably, the route-map of the current connection of described transmitting apparatus is the cryptographic Hash of router rs name, described step of carrying out Wi-Fi network connection according to the described Wi-Fi configuration information obtained comprises: open wireless network insertion spot scan, to obtain each router rs name, calculates the cryptographic Hash that each router rs name is corresponding; The cryptographic Hash identical with the cryptographic Hash of the described router rs name comprised in described configuration information is searched from the cryptographic Hash that described each router rs name is corresponding; Router corresponding for the described cryptographic Hash found is defined as router to be connected; Connect described router to be connected by the access pin comprised in described configuration information, carry out Wi-Fi network connection.
According to another aspect of the present invention, provide a kind of Wi-Fi network sharing means, comprise: encrypting module, be encrypted after the Wi-Fi configuration information of self and preface information combination for adopting the encryption key of acquisition, wherein, described Wi-Fi configuration information comprises: the route-map of current connection and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Sending module, detects in claim frame be sent to receiving equipment for the Wi-Fi configuration information after encryption and preface information is carried at broadcast, sets up Wi-Fi network connect for described receiving equipment according to the Wi-Fi configuration information that described broadcast is detected in claim frame.
According to another aspect of the invention, provide a kind of Wi-Fi network sharing means, comprising: receiver module, claim frame is detected in the broadcast sent for receiving transmitting apparatus; Wherein, described broadcast detect in claim frame and carry encryption after Wi-Fi configuration information and preface information, described Wi-Fi configuration information comprises: the route-map of the current connection of described transmitting apparatus and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Deciphering module, detects the information of carrying in claim frame for adopting the decruption key corresponding with described encryption key to described broadcast and is decrypted; Acquisition module, obtains Wi-Fi configuration information for detecting in claim frame from the described broadcast after deciphering; Link block, for carrying out Wi-Fi network connection according to the described Wi-Fi configuration information obtained.
Compared with prior art, the present invention includes following advantage:
Wi-Fi network secret sharing provided by the invention, Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame and Probe Request and be sent to receiving equipment, that detects that claim frame can carry due to broadcast contains much information, therefore, Wi-Fi configuration information can be carried at a frame broadcast to detect in claim frame and be sent to receiving equipment, only once shake hands between transmitting apparatus and receiving equipment and Wi-Fi configuration information can be sent to receiving equipment.Compared to existing scheme, both save the interaction time of equipment room, additionally reduce the live load of transmitting apparatus (i.e. subscriber equipment) and receiving equipment (i.e. smart machine).In addition, Wi-Fi network secret sharing provided by the invention, transmitting apparatus adopts encryption key to be encrypted rear transmission to self Wi-Fi configuration information, even if other receiving equipment have received the broadcast carrying Wi-Fi configuration information and detects claim frame like this, still cannot detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, only there is the receiving equipment with the decruption key corresponding with encryption key can detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, therefore, the fail safe of Wi-Fi configuration information in transmittance process can be ensured.Visible, by Wi-Fi network secret sharing provided by the invention, interaction time can either be saved, reduce the live load of transmitting apparatus and receiving equipment, the fail safe of Wi-Fi configuration information in transmittance process can be ensured again.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the flow chart of steps sharing method according to a kind of Wi-Fi network of the embodiment of the present invention one;
Fig. 2 is the flow chart of steps sharing method according to a kind of Wi-Fi network of the embodiment of the present invention two;
Fig. 3 is the flow chart of steps sharing method according to a kind of Wi-Fi network of the embodiment of the present invention three;
Fig. 4 is the flow chart of steps sharing method according to a kind of Wi-Fi network of the embodiment of the present invention four;
Fig. 5 is the structured flowchart of a kind of Wi-Fi network sharing means according to the embodiment of the present invention five;
Fig. 6 is the structured flowchart of a kind of Wi-Fi network sharing means according to the embodiment of the present invention six;
Fig. 7 is the structured flowchart of a kind of Wi-Fi network sharing means according to the embodiment of the present invention seven;
Fig. 8 is the structured flowchart of a kind of Wi-Fi network sharing means according to the embodiment of the present invention eight.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one
With reference to Fig. 1, a kind of Wi-Fi network showing the embodiment of the present invention one shares the flow chart of steps of method.
The present embodiment is detected claim frame transmitter side from broadcast and is shared method to Wi-Fi network of the present invention and be described, and the Wi-Fi network of the present embodiment is shared method and comprised the following steps:
Step S102: adopt the encryption key obtained to be encrypted after the Wi-Fi configuration information of self and preface information combination.
Wherein, Wi-Fi configuration information comprises: the route-map of current connection and access pin and PSK, and preface information and Preamble are used to indicate broadcast and detect in claim frame and comprise Wi-Fi configuration information.
The route-map of current connection can be the SSID of router rs name, router, can also, for the cryptographic Hash after router rs name conversion, can also be the cryptographic Hash after the SSID conversion of router certainly.
Preface information is that claim frame transmitting apparatus is detected in broadcast and consult to decide between claim frame receiving equipment is detected in broadcast, and the concrete composition of preface information can be arranged according to the actual requirements by those skilled in the art, such as: numeral, mark, word etc.
Step S104: the Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame and be sent to receiving equipment, sets up Wi-Fi network for receiving equipment according to the broadcast Wi-Fi configuration information detected in claim frame and connects.
Wi-Fi configuration information after encryption and preface information can be carried at broadcast detect field suitable arbitrarily in claim frame under, certainly can increase a field newly to add this information after encryption.
The Wi-Fi network provided by the present embodiment shares method, Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame and be sent to receiving equipment, that detects that claim frame can carry due to broadcast contains much information, therefore, Wi-Fi configuration information can be carried at a frame broadcast to detect in claim frame and be sent to receiving equipment, only once shake hands between transmitting apparatus and receiving equipment and Wi-Fi configuration information can be sent to receiving equipment.Compared to existing method, both save the interaction time of equipment room, additionally reduce the live load of transmitting apparatus (i.e. subscriber equipment) and receiving equipment (i.e. smart machine).In addition, the Wi-Fi network that the present embodiment provides shares method, transmitting apparatus adopts encryption key to be encrypted rear transmission to self Wi-Fi configuration information, even if other receiving equipment have received the broadcast carrying Wi-Fi configuration information and detects claim frame like this, still cannot detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, only there is the receiving equipment with the decruption key corresponding with encryption key can detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, therefore, the fail safe of Wi-Fi configuration information in transmittance process can be ensured.Visible, the Wi-Fi network provided by the present embodiment shares method, can either save interaction time, reduce the live load of transmitting apparatus and receiving equipment, can ensure again the fail safe of Wi-Fi configuration information in transmittance process.
Embodiment two
With reference to Fig. 2, a kind of Wi-Fi network showing the embodiment of the present invention two shares the flow chart of steps of method.
The present embodiment is still detected claim frame transmitter side from broadcast and is shared method to Wi-Fi network of the present invention and be described, and the Wi-Fi network of the present embodiment is shared method and specifically comprised the following steps:
Step S202: transmitting apparatus obtains encryption key.
The present embodiment utilizes the broadcast of Wi-Fi P2P scanning process to detect claim frame and probe response frame transmits Wi-Fi configuration information fast between receiving equipment.Wherein, transmitting apparatus is detected claim frame by broadcast and is sent Wi-Fi configuration information to receiving equipment, receiving equipment to be returned to transmitting apparatus by probe response frame and receives the response message that claim frame is detected in this broadcast, like this, can ensure the successful reception of Wi-Fi configuration information.
Transmitting apparatus is the smart machine that can connect arbitrarily Wi-Fi network, such as: mobile phone, and Ipad.Receiving equipment is for have Wi-Fi access function arbitrarily, but self is without the smart machine of input unit, such as: shadow rod, video cartridges, game cartridge, bracelet etc.
Particularly, transmitting apparatus can obtain encryption key by following two kinds of optimal ways:
The first: transmitting apparatus obtains encryption key by the Quick Response Code that receiving equipment is corresponding.
Transmitting apparatus scanning obtains the Quick Response Code of receiving equipment, in Quick Response Code, include encryption key.
The second: transmitting apparatus receives the Pin code (Personal Identification Number, individual recognition code) of receiving equipment, using the Pin code of receiving equipment as the encryption key obtained.
Be marked with the Pin code of this equipment in the external packing of receiving equipment or the outer surface subscript of receiving equipment, for only needing this Pin code input transmitting apparatus, transmitting apparatus can get the Pin code of receiving equipment.
Step S204: the Wi-Fi link information of transmitting apparatus acquisition self.
Wherein, Wi-Fi link information comprises: the router rs name of current connection and access pin.It should be noted that, in specific implementation process, be not limited to the SSID that the router rs name obtaining current connection can also obtain the router of current connection.
Step S206: transmitting apparatus calculates cryptographic Hash and the Hash of the router rs name of current connection.
Wherein, cryptographic Hash is the value of regular length, and the length of cryptographic Hash is by consult to decide between transmitting apparatus and receiving equipment.
Step S208: transmitting apparatus is using the cryptographic Hash that calculates and the access pin Wi-Fi configuration information as self.
It should be noted that, step S206 and step S208 is preferred steps, in specific implementation process, also can not carry out cryptographic Hash calculating, and directly using the router rs name of current connection that gets and the access pin Wi-Fi configuration information as self.Certainly, also can using the SSID of the router of current connection and the access pin Wi-Fi configuration information as self; Can also calculate the cryptographic Hash of the SSID of the router of current connection, using the cryptographic Hash of SSID and the access pin Wi-Fi configuration information as self, now, information to be encrypted is: Preamble+SSID Hash+PSK.
Step S210: transmitting apparatus adopts the encryption key obtained to be encrypted after the Wi-Fi configuration information of self and preface information combination.
When specifically encrypting, can by Wi-Fi configuration information and the encryption of preface information entirety, also the Wi-Fi configuration information of self can be carried out being divided into multi-section molecule configuration information, adopt encryption key to be encrypted with preface information respectively by the sub-configuration information of each several part after segmentation.
Concrete encipherment scheme depends on that the quantity of claim frame is detected in the broadcast of carrying Wi-Fi configuration information, detects claim frame carry Wi-Fi configuration information if be arranged to employing broadcast, then when encrypting without the need to splitting Wi-Fi configuration information.Adopt if be arranged to multiple broadcast to detect claim frame and carry Wi-Fi configuration information, then need Wi-Fi configuration information to be divided into and detect the identical number of claim frame number with broadcasting.
Wherein, preface information can be the fixing field appointed by transmitting apparatus and receiving equipment both sides.
Step S212: the Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame and be sent to receiving equipment by transmitting apparatus.
Specifically the Wi-Fi configuration information after encryption and preface information are carried at broadcast to detect in claim frame and can be realized by following two kinds of modes:
The first: the Wi-Fi configuration information after encryption and preface information are carried at a broadcast and detect in claim frame and be sent to receiving equipment.
The second: respectively the sub-configuration information of each several part after encryption and preface information are carried at different broadcast and detect in claim frame, claim frame is detected in each broadcast carrying sub-configuration information and preface information and is sent to receiving equipment.
It should be noted that, the Wi-Fi configuration information after encryption and preface information can be carried under broadcast detects the field suitable arbitrarily of claim frame, a newly-increased field can certainly be detected in claim frame to store this information in broadcast.
Preferably, under Wi-Fi configuration information after encryption and preface information are carried at the peer network device name field (P2P Device Name) of broadcasting and detecting in claim frame, P2P Device Name field is defaulted as Portable device name information, there is no substantial function is omissible information, therefore the information that this field is carried can effectively be substituted, and that directly carries out information substitutes operation of being more convenient for those skilled in the art.And other fields all have respective function, if take other fields will affect other functions to carry Wi-Fi configuration information, deal with more complicated.
Under Wi-Fi configuration information being carried at P2P Device Name field, Wi-Fi P2P specification itself is the length of limiting P 2 P Device Name field in Probe Request not, in actual use procedure, P2P Device Name length is generally limited in 32 bytes, therefore, if the length of Wi-Fi configuration information is beyond 32 bytes, configuration information can be split, be carried in multiple ProbeRequest and be sent to receiving equipment respectively.
Detect in claim frame for the sub-configuration information of each several part after encryption and preface information are carried at different broadcast the situation being sent to receiving equipment, a kind of preferred send mode is as follows:
S1, select one not send in order and claim frame is detected in a broadcast of sub-configuration information after carrying encryption and preface information, claim frame is detected in the broadcast of selection and is sent to receiving equipment.
Now, if receiving equipment receives after this broadcast detects claim frame, transmitting apparatus one probe response frame can be returned to, this frame is used to indicate the broadcast receiving transmitting apparatus transmission and detects claim frame, carry in this probe response frame and broadcast the preface information of carrying in the request of detecting, by this preface information, transmitting apparatus can confirm that the broadcast of the sub-configuration information after carrying encryption and preface information is detected the appointed receiving equipment of claim frame and successfully received.
S2, transmitting apparatus confirms to receive that receiving equipment returns is used to indicate broadcast and detects the probe response frame that claim frame is received.
Transmitting apparatus receives probe response frame, continues to send next frame broadcast and detects claim frame.
S3, transmitting apparatus judges that the broadcast adding the sub-configuration information after carrying encryption and preface information is detected claim frame and whether all sent, if not, then return that execution selects one not send in order and sub-configuration information after carrying encryption and preface information a broadcast and detect claim frame.
This optimal way is by the dialogue of the transmission-response between transmitting apparatus and receiving equipment-send again, and each broadcast that can ensure to carry Wi-Fi configuration information detects claim frame when not repeating to send, and received equipment that can also be complete receives.
The Wi-Fi network provided by the present embodiment shares method, Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame and be sent to receiving equipment, that detects that claim frame can carry due to broadcast contains much information, therefore, Wi-Fi configuration information can be carried at a frame broadcast to detect in claim frame and be sent to receiving equipment, only once shake hands between transmitting apparatus and receiving equipment and Wi-Fi configuration information can be sent to receiving equipment.Compared to existing method, both save the interaction time of equipment room, additionally reduce the live load of transmitting apparatus (i.e. subscriber equipment) and receiving equipment (i.e. smart machine).In addition, the Wi-Fi network that the present embodiment provides shares method, transmitting apparatus adopts encryption key to be encrypted rear transmission to self Wi-Fi configuration information, even if other receiving equipment have received the broadcast carrying Wi-Fi configuration information and detects claim frame like this, still cannot detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, only there is the receiving equipment with the decruption key corresponding with encryption key can detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, therefore, the fail safe of Wi-Fi configuration information in transmittance process can be ensured.Visible, the Wi-Fi network provided by the present embodiment shares method, can either save interaction time, reduce the live load of transmitting apparatus and receiving equipment, can ensure again the fail safe of Wi-Fi configuration information in transmittance process.
Embodiment three
With reference to Fig. 3, a kind of Wi-Fi network showing the embodiment of the present invention three shares the flow chart of steps of method.
The present embodiment is detected claim frame receiver side from broadcast and is shared method to Wi-Fi network of the present invention and be described, and the Wi-Fi network of the present embodiment is shared method and comprised the following steps:
Step S302: claim frame is detected in the broadcast receiving transmitting apparatus transmission.
In the present embodiment, receiving equipment is the equipment that claim frame receiver side is detected in broadcast.Receiving equipment starts P2P scanning, and claim frame is detected in the broadcast that wait-receiving mode transmitting apparatus end sends.
Wherein, the Wi-Fi configuration information after carrying encryption and preface information are detected in claim frame in broadcast, Wi-Fi configuration information comprises: the route-map of the current connection of transmitting apparatus and access pin, and preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information.
It should be noted that, the concrete setting of Wi-Fi configuration information and preface information, ciphering process and be carried at the setting that the particular location of claim frame is detected in broadcast, can reference example one, related content in embodiment two, the present embodiment repeats no more this.
Step S304: adopt the decruption key corresponding with encryption key to detect the information of carrying in claim frame to broadcast and be decrypted.
Step S306: detect claim frame from the broadcast after deciphering and obtain Wi-Fi configuration information.
Detecting after claim frame is decrypted to broadcast, receiving equipment obtains Wi-Fi configuration information under the field appointed with transmitting apparatus.
Step S308: carry out Wi-Fi network connection according to the Wi-Fi configuration information obtained.
After getting Wi-Fi configuration information, receiving equipment cuts out P2P scanning, open wireless AP (Access Point, access point) scanning, scanning gets each route-map, determine router to be connected according to the route-map of current connection, set up Wi-Fi network by access pin with router to be connected and be connected.
The Wi-Fi network provided by the present embodiment shares method, Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame and be sent to receiving equipment by transmitting apparatus, that detects that claim frame can carry due to broadcast contains much information, therefore, Wi-Fi configuration information can be carried at a frame broadcast to detect in claim frame and be sent to receiving equipment, only once shake hands between transmitting apparatus and receiving equipment and Wi-Fi configuration information can be sent to receiving equipment.Compared to existing method, both save the interaction time of equipment room, additionally reduce the live load of transmitting apparatus (i.e. subscriber equipment) and receiving equipment (i.e. smart machine).In addition, the Wi-Fi network that the present embodiment provides shares method, transmitting apparatus adopts encryption key to be encrypted rear transmission to self Wi-Fi configuration information, even if other receiving equipment have received the broadcast carrying Wi-Fi configuration information and detects claim frame like this, still cannot detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, only there is the receiving equipment with the decruption key corresponding with encryption key can detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, therefore, the fail safe of Wi-Fi configuration information in transmittance process can be ensured.Visible, the Wi-Fi network provided by the present embodiment shares method, can either save interaction time, reduce the live load of transmitting apparatus and receiving equipment, can ensure again the fail safe of Wi-Fi configuration information in transmittance process.
Embodiment four
With reference to Fig. 4, a kind of Wi-Fi network showing the embodiment of the present invention four shares the flow chart of steps of method.
The present embodiment is still detected claim frame receiver side from broadcast and is shared method to Wi-Fi network of the present invention and be described, and the Wi-Fi network of the present embodiment is shared method and specifically comprised the following steps:
Step S402: claim frame is detected in the broadcast that receiving equipment receives transmitting apparatus transmission.
In the present embodiment, P2P scanning still opened by receiving equipment, and claim frame is detected in the broadcast that wait-receiving mode transmitting apparatus sends.Wherein, it may be the claim frame carrying Wi-Fi configuration information that claim frame is detected in broadcast, also may be that claim frame is detected in other broadcast.
Wherein, the Wi-Fi configuration information after carrying encryption and preface information are detected in claim frame in the broadcast carrying Wi-Fi configuration information, Wi-Fi configuration information comprises: the route-map of the current connection of transmitting apparatus and access pin, and preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information.
It should be noted that, the concrete setting of Wi-Fi configuration information and preface information, ciphering process and be carried at the setting that the particular location of claim frame is detected in broadcast, can reference example one, related content in embodiment two, the present embodiment repeats no more this.
Step S404: receiving equipment adopts the decruption key corresponding with encryption key to detect the information of carrying in claim frame to broadcast and is decrypted.
Step S406: receiving equipment judges the broadcast after deciphering detects in claim frame whether carry preface information; If so, then perform step S408, if not, then perform setting operation.
Receiving equipment is being detected after claim frame is decrypted to broadcast, judge broadcast detects in claim frame whether carry preface information, if the preface information of carrying, then prove that this broadcast is detected in claim frame and carry Wi-Fi configuration information, if the preface information of not carrying, then prove that this broadcast is detected claim frame for other broadcast and detected claim frame, and not carry Wi-Fi configuration information.
Wherein, setting operation can be set to that claim frame is detected in this broadcast received and abandon, and is certainly not limited thereto, can also be set to any suitable operation by those skilled in the art according to actual conditions.
Step S408: when receiving equipment judge the broadcast after deciphering detect in claim frame carry preface information time, determine that to detect claim frame be that claim frame is detected in the broadcast carrying Wi-Fi configuration information to the broadcast after deciphering.
Step S410: broadcast is detected the preface information of carrying in claim frame and is carried in probe response frame by receiving equipment, and returns this probe response frame to transmitting apparatus.
Receiving equipment is after claim frame is detected in the broadcast receiving transmitting apparatus transmission, defer to P2P specification and return probe response frame, and, preface information is carried in this probe response frame, like this, transmitting apparatus can determine that receiving equipment successfully have received the broadcast sent and detects claim frame after receiving broadcast probe response frame, so just can continue the transmission that claim frame is detected in other broadcast.
Step S412: receiving equipment is detected claim frame from the broadcast after deciphering and obtained Wi-Fi configuration information.
Receiving equipment obtains Wi-Fi configuration information from the field appointed with transmitting apparatus.
Detect in claim frame be sent to receiving equipment as Wi-Fi configuration information to be carried at multiple broadcast by transmitting apparatus, receiving equipment then needs to repeat above-mentioned steps S402 to step S412, until get complete Wi-Fi configuration information.
Step S414: receiving equipment carries out Wi-Fi network connection according to the Wi-Fi configuration information obtained.
When Wi-Fi configuration information is router rs name and the access pin of transmitting apparatus current connection, receiving equipment cuts out P2P scanning, open wireless AP scans, obtain the title of each router, therefrom find out the router rs name matched with the router rs name that comprises in Wi-Fi configuration information, router corresponding for this router rs name is defined as router to be connected, connects this router to be connected by the access pin comprised in configuration information, carry out Wi-Fi network connection.
When Wi-Fi configuration information is the cryptographic Hash of the router rs name of the current connection of transmitting apparatus, receiving equipment can carry out Wi-Fi network connection in the following manner:
Open wireless network insertion spot scan, to obtain each router rs name, calculates the cryptographic Hash that each router rs name is corresponding; The cryptographic Hash identical with the cryptographic Hash of the described router rs name comprised in configuration information is searched from the cryptographic Hash that described each router rs name is corresponding; Router corresponding for the cryptographic Hash found is defined as router to be connected; Connect router to be connected by the access pin comprised in configuration information, carry out Wi-Fi network connection.
The Wi-Fi network provided by the present embodiment shares method, Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame and be sent to receiving equipment by transmitting apparatus, that detects that claim frame can carry due to broadcast contains much information, therefore, Wi-Fi configuration information can be carried at a frame broadcast to detect in claim frame and be sent to receiving equipment, only once shake hands between transmitting apparatus and receiving equipment and Wi-Fi configuration information can be sent to receiving equipment.Compared to existing method, both save the interaction time of equipment room, additionally reduce the live load of transmitting apparatus (i.e. subscriber equipment) and receiving equipment (i.e. smart machine).In addition, the Wi-Fi network that the present embodiment provides shares method, transmitting apparatus adopts encryption key to be encrypted rear transmission to self Wi-Fi configuration information, even if other receiving equipment have received the broadcast carrying Wi-Fi configuration information and detects claim frame like this, still cannot detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, only there is the receiving equipment with the decruption key corresponding with encryption key can detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, therefore, the fail safe of Wi-Fi configuration information in transmittance process can be ensured.Visible, the Wi-Fi network provided by the present embodiment shares method, can either save interaction time, reduce the live load of transmitting apparatus and receiving equipment, can ensure again the fail safe of Wi-Fi configuration information in transmittance process.
Embodiment five
With reference to Fig. 5, show the structured flowchart of a kind of Wi-Fi network sharing means of the embodiment of the present invention five.
The Wi-Fi network sharing means of the present embodiment comprises: encrypting module 502, be encrypted after the Wi-Fi configuration information of self and preface information combination for adopting the encryption key of acquisition, wherein, Wi-Fi configuration information comprises: the route-map of current connection and access pin, and preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Sending module 504, detects in claim frame be sent to receiving equipment for the Wi-Fi configuration information after encryption and preface information is carried at broadcast, sets up Wi-Fi network connect for receiving equipment according to the broadcast Wi-Fi configuration information detected in claim frame.
The Wi-Fi network sharing means provided by the present embodiment, Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame and be sent to receiving equipment, that detects that claim frame can carry due to broadcast contains much information, therefore, Wi-Fi configuration information can be carried at a frame broadcast to detect in claim frame and be sent to receiving equipment, only once shake hands between transmitting apparatus and receiving equipment and Wi-Fi configuration information can be sent to receiving equipment.Compared to existing processing unit, both save the interaction time of equipment room, additionally reduce the live load of transmitting apparatus (i.e. subscriber equipment) and receiving equipment (i.e. smart machine).In addition, the Wi-Fi network sharing means that the present embodiment provides, encryption key is adopted to be encrypted rear transmission to self Wi-Fi configuration information, even if other receiving equipment have received the broadcast carrying Wi-Fi configuration information and detects claim frame like this, still cannot detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, only there is the receiving equipment with the decruption key corresponding with encryption key can detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, therefore, it is possible to ensure the fail safe of Wi-Fi configuration information in transmittance process.Visible, the Wi-Fi network sharing means provided by the present embodiment, can either be saved interaction time, reduce the live load of self and receiving equipment, can ensure again the fail safe of Wi-Fi configuration information in transmittance process.
Embodiment six
With reference to Fig. 6, show the structured flowchart of a kind of Wi-Fi network sharing means of the embodiment of the present invention six.
The Wi-Fi network sharing means of the present embodiment comprises: encrypting module 602, be encrypted after the Wi-Fi configuration information of self and preface information combination for adopting the encryption key of acquisition, wherein, Wi-Fi configuration information comprises: the route-map of current connection and access pin, and preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Sending module 604, detects in claim frame be sent to receiving equipment for the Wi-Fi configuration information after encryption and preface information is carried at broadcast, sets up Wi-Fi network connect for receiving equipment according to the broadcast Wi-Fi configuration information detected in claim frame.
Preferably, the Wi-Fi network sharing means of the present embodiment also comprises: the first secret key acquisition module 606: before being encrypted after combining the Wi-Fi configuration information of self and preface information for adopting the encryption key obtained at encrypting module 602, the Quick Response Code corresponding by receiving equipment obtains encryption key; Or, second secret key acquisition module 608, for adopting before the encryption key obtained is encrypted the Wi-Fi configuration information of self and preface information at encrypting module 602, receive the Pin code of described receiving equipment, using the Pin code of receiving equipment as the encryption key obtained.
Preferably, the route-map of current connection is the cryptographic Hash of router rs name, the Wi-Fi network sharing means of the present embodiment also comprises: link information acquisition module 610, before being encrypted after the Wi-Fi configuration information of self and preface information being combined for adopting the encryption key obtained at encrypting module 602, obtain the Wi-Fi link information of self, wherein, Wi-Fi link information comprises: the router rs name of current connection and access pin; Computing module 612, for calculating the cryptographic Hash of the router rs name of current connection; Determination module 614, for the cryptographic Hash that will calculate and the access pin Wi-Fi configuration information as self.
Preferably, Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame when being sent to receiving equipment by sending module 604, the Wi-Fi configuration information after encryption and preface information are carried at a broadcast and detect in claim frame and be sent to receiving equipment.
Preferably, the Wi-Fi network sharing means of the present embodiment also comprises: response message receiver module 616, for at sending module 604 the Wi-Fi configuration information after encryption and preface information being carried at after broadcast detects in claim frame and be sent to receiving equipment, receive the probe response frame that receiving equipment returns, and detect in the probe response frame received whether comprise preface information; If comprise, then determine that the broadcast of the Wi-Fi configuration information after carrying encryption and preface information is detected claim frame and is sent to receiving equipment; If do not comprise, then again send broadcast to receiving equipment and detect claim frame.
Preferably, encrypting module 602 adopts the encryption key obtained to when being encrypted after the Wi-Fi configuration information of self and preface information combination, the Wi-Fi configuration information of self is carried out being divided into multi-section molecule configuration information, adopts encryption key to be encrypted with preface information respectively by the sub-configuration information of each several part after segmentation; Sending module 604 by encryption after Wi-Fi configuration information and preface information be carried at broadcast detect in claim frame be sent to receiving equipment time, respectively the sub-configuration information of each several part after encryption and preface information being carried at different broadcast detects in claim frame, claim frame is detected in each broadcast carrying sub-configuration information and preface information and is sent to receiving equipment.
Preferably, sending module 602 comprises: select module 6022, do not send for selecting one in order and claim frame is detected in the broadcast carrying the sub-configuration information after encryption and preface information, claim frame is detected in the broadcast of selection and is sent to receiving equipment; Response message confirms module 6024, and for confirming to receive, receiving equipment returns is used to indicate broadcast and detects the probe response frame that claim frame is received, and wherein, comprises preface information in probe response frame; Judge module 6026, whether a broadcast for judging to add the sub-configuration information after carrying encryption and preface information is detected claim frame and is all sent, if not, then return that execution selects one not send in order carry encryption after sub-configuration information and a broadcast of preface information detect claim frame.
Preferably, Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame when being sent to receiving equipment by encrypting module 602, are sent to receiving equipment under the Wi-Fi configuration information after encryption and preface information being carried at the peer network device name field that broadcast detects in claim frame.
The Wi-Fi network sharing means of the present embodiment is used for realizing corresponding Wi-Fi network in previous embodiment one, two and shares method, and has the beneficial effect corresponding to embodiment of the method, does not repeat them here.
Embodiment seven
With reference to Fig. 7, show the structured flowchart of a kind of Wi-Fi network sharing means of the embodiment of the present invention seven.
The Wi-Fi network sharing means of the present embodiment comprises: receiver module 702, and claim frame is detected in the broadcast sent for receiving transmitting apparatus; Wherein, the Wi-Fi configuration information after carrying encryption and preface information are detected in claim frame in broadcast, Wi-Fi configuration information comprises: the route-map of the current connection of transmitting apparatus and access pin, and preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Deciphering module 704, detects the information of carrying in claim frame for adopting the decruption key corresponding with encryption key to broadcast and is decrypted; Acquisition module 706, obtains Wi-Fi configuration information for detecting in claim frame from the broadcast after deciphering; Link block 708, for carrying out Wi-Fi network connection according to the Wi-Fi configuration information obtained.
Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect claim frame by the Wi-Fi network sharing means reception transmitting apparatus provided by the present embodiment, that detects that claim frame can carry due to broadcast contains much information, therefore, Wi-Fi configuration information can be carried at a frame broadcast to detect in claim frame and be sent to receiving equipment, only once shaking hands between Wi-Fi network sharing means and transmitting apparatus to get Wi-Fi configuration information.Compared to existing processing unit, both save the interaction time of equipment room, additionally reduce the live load of Wi-Fi network sharing means and transmitting apparatus.In addition, it is send after transmitting apparatus adopts encryption keys that the Wi-Fi configuration information carried in claim frame is detected in the broadcast received by Wi-Fi network sharing means that the present embodiment provides, even if other receiving equipment have received the broadcast carrying Wi-Fi configuration information and detects claim frame like this, still cannot detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, only there is the Wi-Fi network sharing means with the decruption key corresponding with encryption key can detect claim frame to broadcast and be decrypted acquisition Wi-Fi configuration information, therefore, the fail safe of Wi-Fi configuration information in transmittance process can be ensured.Visible, the Wi-Fi network sharing means provided by embodiment, can either be saved interaction time, reduce the live load of self and transmitting apparatus, can ensure again the fail safe of Wi-Fi configuration information in transmittance process.
Embodiment eight
With reference to Fig. 8, show the structured flowchart of a kind of Wi-Fi network sharing means of the embodiment of the present invention eight.
The Wi-Fi network sharing means of the present embodiment comprises: receiver module 802, and claim frame is detected in the broadcast sent for receiving transmitting apparatus; Wherein, the Wi-Fi configuration information after carrying encryption and preface information are detected in claim frame in broadcast, Wi-Fi configuration information comprises: the route-map of the current connection of transmitting apparatus and access pin, and preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information; Deciphering module 804, detects the information of carrying in claim frame for adopting the decruption key corresponding with encryption key to broadcast and is decrypted; Acquisition module 806, obtains Wi-Fi configuration information for detecting in claim frame from the broadcast after deciphering; Link block 808, for carrying out Wi-Fi network connection according to the Wi-Fi configuration information obtained.
Preferably, the Wi-Fi network sharing means of the present embodiment also comprises: preface information judge module 810, for adopting the decruption key corresponding with encryption key to detect after the information of carrying in claim frame is decrypted to broadcast at deciphering module 804, judge the broadcast after deciphering detects in claim frame whether carry preface information; Frame determination module 812, if for the judged result of preface information judge module for carrying preface information, then determining that claim frame is detected in the broadcast after deciphering is that claim frame is detected in the broadcast carrying Wi-Fi configuration information.
Preferably, the Wi-Fi network sharing means of the present embodiment also comprises: response message returns module 814, be after claim frame is detected in the broadcast carrying Wi-Fi configuration information for determining that at frame determination module 812 claim frame is detected in the broadcast after deciphering, described preface information is carried in probe response frame, and returns described probe response frame to described transmitting apparatus.
Preferably, the route-map of the current connection of transmitting apparatus is the cryptographic Hash of router rs name, link block 808 comprises: opening module 8082, for open wireless network insertion spot scan to obtain each router rs name, calculates the cryptographic Hash that each router rs name is corresponding; Search module 8084, for searching the cryptographic Hash identical with the cryptographic Hash of the router rs name comprised in configuration information from cryptographic Hash corresponding to each router rs name; Router determination module 8086, for being defined as router to be connected by router corresponding for the cryptographic Hash found; Router link block 8088, connects router to be connected for the access pin by comprising in configuration information, carries out Wi-Fi network connection.
The Wi-Fi network sharing means of the present embodiment is used for realizing corresponding Wi-Fi network in previous embodiment three, four and shares method, and has the beneficial effect corresponding to embodiment of the method, does not repeat them here.
Method is shared by Wi-Fi network provided by the invention, receiving equipment informs transmitting apparatus encryption key by Quick Response Code or PIN code, transmitting apparatus adopts encryption key to be encrypted Wi-Fi configuration information, Wi-Fi configuration information after encryption is carried in Probe Request and is sent to receiving equipment, two equipment rooms only need a handshake procedure, can complete sharing of Wi-Fi configuration information.In whole process, user only needs simple operations (key is shared, scan Quick Response Code, input the modes such as Pin code), just fast the Wi-Fi configuration information being connected with Wi-Fi network can be shared to receiving equipment, it is more convenient to operate, and, in whole process, transmitting apparatus connects without the need to disconnecting existing Wi-Fi.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Share method and apparatus to Wi-Fi network provided by the present invention to be above described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (24)

1. Wi-Fi network shares a method, it is characterized in that, comprising:
The encryption key obtained is adopted to be encrypted after the Wi-Fi configuration information of self and preface information combination, wherein, described Wi-Fi configuration information comprises: the route-map of current connection and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information;
Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame and be sent to receiving equipment, set up Wi-Fi network for described receiving equipment according to the Wi-Fi configuration information that described broadcast is detected in claim frame and connect.
2. method according to claim 1, is characterized in that, carry out encrypting step after the encryption key of described employing acquisition combines the Wi-Fi configuration information of self and preface information before, described method also comprises:
The Quick Response Code corresponding by described receiving equipment obtains encryption key;
Or,
Receive the individual recognition code Pin code of described receiving equipment, using the Pin code of described receiving equipment as the described encryption key obtained.
3. method according to claim 1, it is characterized in that, the route-map of described current connection is the cryptographic Hash of router rs name, and before the step be encrypted after the encryption key of described employing acquisition combines the Wi-Fi configuration information of self and preface information, described method also comprises:
Obtain the Wi-Fi link information of self, wherein, Wi-Fi link information comprises: the router rs name of current connection and access pin;
Calculate the cryptographic Hash of the router rs name of described current connection;
Using the described cryptographic Hash that calculates and the described access pin Wi-Fi configuration information as self.
4. the method according to any one of claim 1-3, is characterized in that, describedly Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame the step being sent to receiving equipment and comprises:
Wi-Fi configuration information after encryption and preface information are carried at a broadcast detect in claim frame and be sent to receiving equipment.
5. method according to claim 4, is characterized in that, the Wi-Fi configuration information after encryption and preface information to be carried at after broadcast detects in claim frame and be sent to receiving equipment step described, described method also comprises:
Receive the probe response frame that described receiving equipment returns, and detect in the described probe response frame received whether comprise described preface information;
If comprise, then the broadcast carrying the Wi-Fi configuration information after encryption and preface information described in determining is detected claim frame and has been sent to described receiving equipment;
If do not comprise, then again send described broadcast to described receiving equipment and detect claim frame.
6. the method as requested described in any one of 1-3, is characterized in that, the described encryption key obtained that adopts comprises the step be encrypted after the Wi-Fi configuration information of self and preface information combination:
The Wi-Fi configuration information of self is carried out being divided into multi-section molecule configuration information, adopts described encryption key to be encrypted with described preface information respectively by the sub-configuration information of each several part after segmentation;
Describedly Wi-Fi configuration information after encryption and preface information are carried at broadcast detect in claim frame the step being sent to described receiving equipment and comprise:
Respectively the sub-configuration information of each several part after encryption and described preface information being carried at different broadcast detects in claim frame, claim frame is detected in each broadcast carrying sub-configuration information and described preface information and is sent to described receiving equipment.
7. method according to claim 6, is characterized in that, describedly each broadcast carrying sub-configuration information and described preface information is detected the step that claim frame is sent to described receiving equipment and comprises:
That select one not send in order and claim frame is detected in a broadcast of sub-configuration information after carrying encryption and described preface information, claim frame is detected in the described broadcast selected and is sent to described receiving equipment;
Confirm to receive that described receiving equipment returns is used to indicate described broadcast and detects the probe response frame that claim frame is received, wherein, in described probe response frame, comprise described preface information;
Judge that a broadcast of the sub-configuration information after carrying encryption and described preface information is detected claim frame and whether all sent, if not, then return execution in order described selection one do not send carry encryption after sub-configuration information and a broadcast of described preface information detect claim frame.
8. method according to claim 1, is characterized in that, the Wi-Fi configuration information after encryption and preface information is carried at broadcast and detects in claim frame the step being sent to receiving equipment and comprise:
Described receiving equipment is sent under Wi-Fi configuration information after encryption and preface information being carried at the peer network device name field of broadcasting and detecting in claim frame.
9. Wi-Fi network shares a method, it is characterized in that, comprising:
Claim frame is detected in the broadcast receiving transmitting apparatus transmission;
Wherein, described broadcast detect in claim frame and carry encryption after Wi-Fi configuration information and preface information, described Wi-Fi configuration information comprises: the route-map of the current connection of described transmitting apparatus and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information;
Adopt the decruption key corresponding with described encryption key to detect the information of carrying in claim frame to described broadcast to be decrypted;
Detect claim frame from the described broadcast after deciphering and obtain Wi-Fi configuration information;
Wi-Fi network connection is carried out according to the described Wi-Fi configuration information obtained.
10. method according to claim 9, is characterized in that, after the described employing decruption key corresponding with described encryption key detects to described broadcast the step that the information of carrying in claim frame is decrypted, described method also comprises:
Judge the described broadcast after deciphering detects in claim frame whether carry described preface information;
If carry described preface information, then determining that claim frame is detected in the described broadcast after deciphering is that claim frame is detected in the broadcast carrying Wi-Fi configuration information.
11. methods according to claim 10, is characterized in that, to determine that claim frame is detected in the described broadcast after deciphering be that after the step of claim frame is detected in the broadcast carrying Wi-Fi configuration information, described method also comprises described:
Described preface information is carried in probe response frame, and returns described probe response frame to described transmitting apparatus.
12. methods according to claim 11, is characterized in that, the route-map of the current connection of described transmitting apparatus is the cryptographic Hash of router rs name, and described step of carrying out Wi-Fi network connection according to the described Wi-Fi configuration information obtained comprises:
Open wireless network insertion spot scan, to obtain each router rs name, calculates the cryptographic Hash that each router rs name is corresponding;
The cryptographic Hash identical with the cryptographic Hash of the described router rs name comprised in described configuration information is searched from the cryptographic Hash that described each router rs name is corresponding;
Router corresponding for the described cryptographic Hash found is defined as router to be connected;
Connect described router to be connected by the access pin comprised in described configuration information, carry out Wi-Fi network connection.
13. 1 kinds of Wi-Fi network sharing means, is characterized in that, comprising:
Encrypting module, be encrypted after the Wi-Fi configuration information of self and preface information combination for adopting the encryption key of acquisition, wherein, described Wi-Fi configuration information comprises: the route-map of current connection and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information;
Sending module, detects in claim frame be sent to receiving equipment for the Wi-Fi configuration information after encryption and preface information is carried at broadcast, sets up Wi-Fi network connect for described receiving equipment according to the Wi-Fi configuration information that described broadcast is detected in claim frame.
14. devices according to claim 13, is characterized in that, described device also comprises:
First secret key acquisition module: before being encrypted after combining the Wi-Fi configuration information of self and preface information for adopting the encryption key obtained at described encrypting module, the Quick Response Code corresponding by described receiving equipment obtains encryption key;
Or,
Second secret key acquisition module, before being encrypted after the Wi-Fi configuration information of self and preface information being combined for adopting the encryption key obtained at described encrypting module, receive the individual recognition code Pin code of described receiving equipment, using the Pin code of described receiving equipment as the described encryption key obtained.
15. devices according to claim 13, is characterized in that, the route-map of described current connection is the cryptographic Hash of router rs name, and described device also comprises:
Link information acquisition module, before being encrypted after the Wi-Fi configuration information of self and preface information being combined for adopting the encryption key obtained at described encrypting module, obtain the Wi-Fi link information of self, wherein, Wi-Fi link information comprises: the router rs name of current connection and access pin;
Computing module, for calculating the cryptographic Hash of the router rs name of described current connection;
Determination module, for the described cryptographic Hash that will calculate and the described access pin Wi-Fi configuration information as self.
16. devices according to any one of claim 13-15, it is characterized in that, Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame when being sent to receiving equipment by described sending module, the Wi-Fi configuration information after encryption and preface information are carried at a broadcast and detect in claim frame and be sent to receiving equipment.
17. devices according to claim 16, is characterized in that, described device also comprises:
Response message receiver module, for at described sending module the Wi-Fi configuration information after encryption and preface information being carried at after broadcast detects in claim frame and be sent to receiving equipment, receive the probe response frame that described receiving equipment returns, and detect in the described probe response frame received whether comprise described preface information; If comprise, then the broadcast carrying the Wi-Fi configuration information after encryption and preface information described in determining is detected claim frame and has been sent to described receiving equipment; If do not comprise, then again send described broadcast to described receiving equipment and detect claim frame.
18. devices as requested described in any one of 13-15, it is characterized in that, described encrypting module adopts the encryption key obtained to when being encrypted after the Wi-Fi configuration information of self and preface information combination, the Wi-Fi configuration information of self is carried out being divided into multi-section molecule configuration information, adopts described encryption key to be encrypted with described preface information respectively by the sub-configuration information of each several part after segmentation;
Described sending module by encryption after Wi-Fi configuration information and preface information be carried at broadcast detect in claim frame be sent to described receiving equipment time, respectively the sub-configuration information of each several part after encryption and described preface information being carried at different broadcast detects in claim frame, claim frame is detected in each broadcast carrying sub-configuration information and described preface information and is sent to described receiving equipment.
19. devices according to claim 18, is characterized in that, described sending module comprises:
Select module, do not send for selecting one in order and claim frame is detected in the broadcast carrying the sub-configuration information after encryption and described preface information, claim frame is detected in the described broadcast selected and is sent to described receiving equipment;
Response message confirms module, and for confirming to receive, described receiving equipment returns is used to indicate described broadcast and detects the probe response frame that claim frame is received, and wherein, comprises described preface information in described probe response frame;
Judge module, whether a broadcast for judging to add the sub-configuration information after carrying encryption and described preface information is detected claim frame and is all sent, if not, then return select one not send in order described in execution carry encryption after sub-configuration information and a broadcast of described preface information detect claim frame.
20. devices according to claim 12, it is characterized in that, Wi-Fi configuration information after encryption and preface information are carried at broadcast and detect in claim frame when being sent to receiving equipment by described encrypting module, are sent to described receiving equipment under the Wi-Fi configuration information after encryption and preface information being carried at the peer network device name field that broadcast detects in claim frame.
21. 1 kinds of Wi-Fi network sharing means, is characterized in that, comprising:
Receiver module, claim frame is detected in the broadcast sent for receiving transmitting apparatus;
Wherein, described broadcast detect in claim frame and carry encryption after Wi-Fi configuration information and preface information, described Wi-Fi configuration information comprises: the route-map of the current connection of described transmitting apparatus and access pin, and described preface information is used to indicate broadcast and detects in claim frame and comprise Wi-Fi configuration information;
Deciphering module, detects the information of carrying in claim frame for adopting the decruption key corresponding with described encryption key to described broadcast and is decrypted;
Acquisition module, obtains Wi-Fi configuration information for detecting in claim frame from the described broadcast after deciphering;
Link block, for carrying out Wi-Fi network connection according to the described Wi-Fi configuration information obtained.
22. devices according to claim 21, is characterized in that, described device also comprises:
Preface information judge module, for adopting the decruption key corresponding with described encryption key at described deciphering module described broadcast detected after the information of carrying in claim frame is decrypted, judge the described broadcast after deciphering detects in claim frame whether carry described preface information;
Frame determination module, if for the judged result of described preface information judge module for carrying described preface information, then determining that claim frame is detected in the described broadcast after deciphering is that claim frame is detected in the broadcast carrying Wi-Fi configuration information.
23. devices according to claim 22, is characterized in that, described device also comprises:
Response message returns module, be after claim frame is detected in the broadcast carrying Wi-Fi configuration information for determining that at described frame determination module claim frame is detected in the described broadcast after deciphering, described preface information is carried in probe response frame, and returns described probe response frame to described transmitting apparatus.
24. devices according to claim 23, is characterized in that, the route-map of the current connection of described transmitting apparatus is the cryptographic Hash of router rs name, and described link block comprises:
Opening module, for open wireless network insertion spot scan to obtain each router rs name, calculates the cryptographic Hash that each router rs name is corresponding;
Search module, for searching the cryptographic Hash identical with the cryptographic Hash of the described router rs name comprised in described configuration information from cryptographic Hash corresponding to described each router rs name;
Router determination module, for being defined as router to be connected by router corresponding for the described cryptographic Hash found;
Router link block, connecting described router to be connected for the access pin by comprising in described configuration information, carrying out Wi-Fi network connection.
CN201510185209.4A 2015-04-17 2015-04-17 Wi-Fi (Wireless-Fidelity) network sharing method and device Pending CN104837132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510185209.4A CN104837132A (en) 2015-04-17 2015-04-17 Wi-Fi (Wireless-Fidelity) network sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510185209.4A CN104837132A (en) 2015-04-17 2015-04-17 Wi-Fi (Wireless-Fidelity) network sharing method and device

Publications (1)

Publication Number Publication Date
CN104837132A true CN104837132A (en) 2015-08-12

Family

ID=53814710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510185209.4A Pending CN104837132A (en) 2015-04-17 2015-04-17 Wi-Fi (Wireless-Fidelity) network sharing method and device

Country Status (1)

Country Link
CN (1) CN104837132A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207790A (en) * 2015-08-29 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Information processing method, device and system
CN105517102A (en) * 2015-11-20 2016-04-20 青岛海信移动通信技术股份有限公司 Method, device and equipment for enabling wireless network equipment to be connected with hot spot
CN105848145A (en) * 2016-05-16 2016-08-10 福州瑞芯微电子股份有限公司 WIFI intelligent configuration method and device
CN105933895A (en) * 2016-05-04 2016-09-07 海尔优家智能科技(北京)有限公司 Transmission method of WIFI network configuration data, intelligent device, and intelligent terminal
CN106535192A (en) * 2016-11-29 2017-03-22 北京小米移动软件有限公司 Method and device for realizing access of smart equipment to router and mobile terminal
CN106851608A (en) * 2015-12-07 2017-06-13 宏碁股份有限公司 Network setting method and system for networking device
CN107231673A (en) * 2016-03-23 2017-10-03 北京京东尚科信息技术有限公司 Electronic equipment and its communication means
CN108028774A (en) * 2015-09-16 2018-05-11 柯达阿拉里斯股份有限公司 Simplifying for network equipment is configured using scanned bar code
CN108684067A (en) * 2018-05-14 2018-10-19 四川斐讯信息技术有限公司 Time-based wireless connection method and system, radio reception device
CN108777865A (en) * 2018-05-18 2018-11-09 北京奇艺世纪科技有限公司 A kind of WIFI connection methods and device
CN110460995A (en) * 2018-05-07 2019-11-15 中国移动通信有限公司研究院 A kind of wireless connection method, internet of things equipment and client device
CN110809329A (en) * 2019-11-11 2020-02-18 龙尚科技(上海)有限公司 Network communication method, device, computer equipment and storage medium
CN113839760A (en) * 2015-09-25 2021-12-24 中兴通讯股份有限公司 Data transmission method and node

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581901A (en) * 2012-08-09 2014-02-12 展讯通信(上海)有限公司 Method and device for processing Wi-Fi wireless network access configuration information
CN103607751A (en) * 2013-11-18 2014-02-26 深圳市通力科技开发有限公司 Wireless device configuration method and system
US20140226817A1 (en) * 2013-02-11 2014-08-14 Broadcom Corporation Apparatus and method to register wi-fi clients on a wi-fi network
CN104010309A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method for establishing connection between access point and terminal and terminal
CN104168625A (en) * 2014-08-20 2014-11-26 普联技术有限公司 Intelligent device, method for connecting intelligent device to wireless routing device, and wireless routing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581901A (en) * 2012-08-09 2014-02-12 展讯通信(上海)有限公司 Method and device for processing Wi-Fi wireless network access configuration information
US20140226817A1 (en) * 2013-02-11 2014-08-14 Broadcom Corporation Apparatus and method to register wi-fi clients on a wi-fi network
CN103607751A (en) * 2013-11-18 2014-02-26 深圳市通力科技开发有限公司 Wireless device configuration method and system
CN104010309A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method for establishing connection between access point and terminal and terminal
CN104168625A (en) * 2014-08-20 2014-11-26 普联技术有限公司 Intelligent device, method for connecting intelligent device to wireless routing device, and wireless routing device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207790A (en) * 2015-08-29 2015-12-30 宇龙计算机通信科技(深圳)有限公司 Information processing method, device and system
CN108028774A (en) * 2015-09-16 2018-05-11 柯达阿拉里斯股份有限公司 Simplifying for network equipment is configured using scanned bar code
CN113839760A (en) * 2015-09-25 2021-12-24 中兴通讯股份有限公司 Data transmission method and node
CN105517102A (en) * 2015-11-20 2016-04-20 青岛海信移动通信技术股份有限公司 Method, device and equipment for enabling wireless network equipment to be connected with hot spot
CN106851608A (en) * 2015-12-07 2017-06-13 宏碁股份有限公司 Network setting method and system for networking device
CN107231673A (en) * 2016-03-23 2017-10-03 北京京东尚科信息技术有限公司 Electronic equipment and its communication means
CN105933895A (en) * 2016-05-04 2016-09-07 海尔优家智能科技(北京)有限公司 Transmission method of WIFI network configuration data, intelligent device, and intelligent terminal
CN105848145A (en) * 2016-05-16 2016-08-10 福州瑞芯微电子股份有限公司 WIFI intelligent configuration method and device
CN106535192A (en) * 2016-11-29 2017-03-22 北京小米移动软件有限公司 Method and device for realizing access of smart equipment to router and mobile terminal
CN110460995A (en) * 2018-05-07 2019-11-15 中国移动通信有限公司研究院 A kind of wireless connection method, internet of things equipment and client device
CN108684067A (en) * 2018-05-14 2018-10-19 四川斐讯信息技术有限公司 Time-based wireless connection method and system, radio reception device
CN108777865A (en) * 2018-05-18 2018-11-09 北京奇艺世纪科技有限公司 A kind of WIFI connection methods and device
CN108777865B (en) * 2018-05-18 2020-07-31 北京奇艺世纪科技有限公司 WIFI connection method and device
CN110809329A (en) * 2019-11-11 2020-02-18 龙尚科技(上海)有限公司 Network communication method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104837132A (en) Wi-Fi (Wireless-Fidelity) network sharing method and device
CN109413627B (en) Network distribution method and network distribution system of intelligent household equipment
CN104427501B (en) Method for network access, device and system
CN107317606B (en) Bluetooth anti-tracking method and equipment
JP6370985B2 (en) Method, apparatus and system for establishing a connection by a terminal
CN105850168B (en) A kind of network equipment secure connection method, relevant apparatus and system
US20140226817A1 (en) Apparatus and method to register wi-fi clients on a wi-fi network
CN104703176A (en) Configuration method of wireless network, intelligent terminal and wireless network equipment
CN106778285B (en) Method and device for upgrading equipment
WO2016161583A1 (en) Gprs system key enhancement method, sgsn device, ue, hlr/hss and gprs system
US20180139213A1 (en) Method and terminal device for encrypting message
CN105119900A (en) Information secure transmission method, network access method and corresponding terminals
KR101452124B1 (en) Method for Device Authentication and Session Key Generation Based on Encryption in Internet of Things
CN110784865A (en) Network distribution method and terminal of Internet of things equipment, Internet of things equipment and network distribution system
CN111884802B (en) Media stream encryption transmission method, system, terminal and electronic equipment
CN103916925A (en) Data transmission method and device
CN116963054B (en) WLAN multilink TDLS key derivation
CN105120454A (en) Information transmission method, network access method and corresponding terminals
CN113726895A (en) File transmission method and device and network KTV system
CN107508814A (en) Data ciphering method, decryption method, apparatus and system
CN104184773A (en) Data download method and system
CN105657640A (en) Wireless network access parameter obtaining method and device of intelligent communication devices
CN115297472A (en) Network access authentication method, image reading device and terminal device
CN105763516B (en) The method and apparatus that terminal sends data to net external equipment out of WLAN
CN114826591A (en) Cross-device data transmission method, system and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150812

RJ01 Rejection of invention patent application after publication