CN104869612B - Access the method and device of network - Google Patents

Access the method and device of network Download PDF

Info

Publication number
CN104869612B
CN104869612B CN201510220084.4A CN201510220084A CN104869612B CN 104869612 B CN104869612 B CN 104869612B CN 201510220084 A CN201510220084 A CN 201510220084A CN 104869612 B CN104869612 B CN 104869612B
Authority
CN
China
Prior art keywords
ssid
password
smart machine
network access
terminal
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.)
Active
Application number
CN201510220084.4A
Other languages
Chinese (zh)
Other versions
CN104869612A (en
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510220084.4A priority Critical patent/CN104869612B/en
Publication of CN104869612A publication Critical patent/CN104869612A/en
Application granted granted Critical
Publication of CN104869612B publication Critical patent/CN104869612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security

Landscapes

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

Abstract

The present disclosure discloses a kind of method and devices for accessing network, belong to technical field of intelligent equipment.Method includes: to send the first broadcasting packet, includes the identification information or media access control layer MAC Address of the smart machine in first broadcasting packet;The service set SSID and password of the encryption of terminal or network access equipment transmission are received, and the SSID and password of the encryption is decrypted in communication key according to the pre-stored data, wherein the communication key and the smart machine unique association;According to the SSID and password of the decryption, Xiang Suoshu network access equipment is initiated the connection.The disclosure is avoided intercepted by the SSID and password of public key encryption by other people after crack to obtain SSID and password by public key, improve the access safety of network access equipment.

Description

Access the method and device of network
Technical field
This disclosure relates to technical field of intelligent equipment, in particular to a kind of method and device for accessing network.
Background technique
With the development of smart machine technology, all kinds of smart machines are gradually popularized in people's lives.Smart machine It is built-in with Wi-Fi (Wireless-Fidelity, Wireless Fidelity) chip, can make itself to access net by the Wi-Fi chip Network.
Many smart machines itself do not provide input interface, therefore the process of this kind of smart machine access network needs it His smart machine (such as: mobile phone or router) is by SSID (Service Set Identifier, service set) and password Encrypted by public key, and encrypted SSID and password be sent to smart machine, so as to smart machine according to decryption after SSID and password carry out network insertion.
Summary of the invention
In order to solve the problems, such as that the relevant technologies, the embodiment of the present disclosure provide a kind of method and device for accessing network.Institute It is as follows to state technical solution:
According to the first aspect of the embodiments of the present disclosure, a kind of method for accessing network is provided, the method is applied to intelligence Equipment, comprising:
The first broadcasting packet is sent, includes the identification information or medium of the smart machine in first broadcasting packet Access control layer MAC address;
Receive the service set SSID and password of the encryption that terminal or network access equipment are sent, and according to depositing in advance The SSID and password of the encryption is decrypted in the communication key of storage, wherein the communication key and the smart machine are unique Association;
According to the SSID and password of the decryption, Xiang Suoshu network access equipment is initiated the connection.
Optionally, the first broadcasting packet of the transmission, comprising:
When detecting not stored SSID and password after smart machine booting, the first broadcasting packet is sent;Alternatively,
When smart machine receives reset indication, the first broadcasting packet is sent.
According to the second aspect of an embodiment of the present disclosure, a kind of method accessing network is provided, the method is applied to terminal, Include:
The first broadcasting packet that smart machine is sent is received, includes the mark of the smart machine in first broadcasting packet Know information or MAC Address;
Obtain the SSID and password of network access equipment corresponding with the smart machine;
The communication key of the smart machine, and root are obtained according to the identification information of the smart machine or MAC Address The SSID and password are encrypted according to the communication key, wherein the communication key is uniquely closed with the smart machine Connection;
The SSID of the encryption and password are sent to the smart machine, so that the smart machine is according to the encryption SSID and password initiated the connection forward to the network access equipment.
Optionally, the SSID and password for obtaining network access equipment corresponding with the smart machine, comprising:
Obtain the SSID and password of user's input, and using the SSID of the input and password as with the smart machine pair The SSID and password for the network access equipment answered;
Alternatively,
Obtain the network access equipment chosen in stored network access equipment list of user, and by the selection The SSID and password of the corresponding SSID of network access equipment and password as network access equipment corresponding with the smart machine.
Optionally, after the SSID and password for obtaining user's input, the method also includes:
According to the SSID and password, initiated the connection to the network access equipment corresponding with the smart machine.
Optionally, the identification information or MAC Address according to the smart machine obtains the logical of the smart machine Interrogate key, comprising:
The request for obtaining the communication key of the smart machine is sent to cloud server, it is described to obtain the smart machine Communication key request in include the smart machine identification information or MAC Address;
Receive the communication key for the smart machine that the cloud server returns.
It is optionally, described that the SSID of the encryption and password are sent to the smart machine, comprising:
The network access equipment accessed to the terminal sends preset instructions, carries the encryption in the preset instructions SSID and password;So that the network access equipment of terminal access is according to the preset instructions by the SSID of the encryption and close Code is sent to the smart machine;
Alternatively,
The second broadcasting packet is sent, so that the smart machine receives the second broadcasting packet, second broadcasting packet In include the encryption SSID and password.
According to the third aspect of an embodiment of the present disclosure, a kind of device for accessing network is provided, described device is applied to intelligence Equipment, comprising:
First sending module includes the smart machine in first broadcasting packet for sending the first broadcasting packet Identification information or media access control layer MAC Address;;
First receiving module, for receive the encryption that terminal or network access equipment are sent service set SSID and Password;
Deciphering module is decrypted for SSID and password of the communication key according to the pre-stored data to the encryption, Described in communication key and the smart machine unique association;
Link block, for the SSID and password according to the decryption, Xiang Suoshu network access equipment is initiated the connection.
Optionally, first broadcast module, comprising:
When for detecting not stored SSID and password after smart machine is switched on, it is wide to send first for first transmission unit Casting text;
Second transmission unit, for sending the first broadcasting packet when smart machine receives reset indication.
According to a fourth aspect of embodiments of the present disclosure, a kind of device accessing network is provided, described device is applied to terminal, Include:
Second receiving module wraps in first broadcasting packet for receiving the first broadcasting packet of smart machine transmission Include the identification information or MAC Address of the smart machine;
First obtains module, for obtaining the SSID and password of network access equipment corresponding with the smart machine;
Second obtains module, sets for obtaining the intelligence according to the identification information or MAC Address of the smart machine Standby communication key, wherein the communication key and the smart machine unique association;
Encrypting module, for being encrypted according to the communication key to the SSID and password;
Second sending module, for the SSID of the encryption and password to be sent to the smart machine, so that the intelligence Energy equipment is initiated the connection according to the SSID and password of the encryption to the network access equipment.
Optionally, described first module is obtained, comprising:
First acquisition unit, for obtaining the SSID and password of user's input, using the SSID of the input and password as The SSID and password of network access equipment corresponding with the smart machine;
Second acquisition unit is set for obtaining the network insertion that user chooses in stored network access equipment list It is standby, and using the corresponding SSID of the network access equipment of the selection and password as network insertion corresponding with the smart machine The SSID and password of equipment.
Optionally, described first module is obtained further include:
Connection unit, for being set to the network insertion corresponding with the smart machine according to the SSID and password It is standby to initiate the connection.
Optionally, described second module is obtained, comprising:
Third transmission unit, for sending the request for obtaining the communication key of the smart machine, institute to cloud server State the identification information or MAC Address in the request for obtaining the communication key of the smart machine including the smart machine;
Receiving unit, for receiving the communication key for the smart machine that the cloud server returns.
Optionally, second sending module is used for:
4th transmission unit, the network access equipment for accessing to the terminal send preset instructions, the default finger The SSID and password of the encryption are carried in order;So that the network access equipment of the terminal access will according to the preset instructions The SSID and password of the encryption are sent to the smart machine;
5th transmission unit, for sending the second broadcasting packet, so that the smart machine receives the second broadcasting packet, It include the SSID and password of the encryption in second broadcasting packet.
According to a fifth aspect of the embodiments of the present disclosure, a kind of device for accessing network is provided, described device is applied to intelligence Equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first broadcasting packet is sent, includes the identification information or medium of the smart machine in first broadcasting packet Access control layer MAC address;
Receive the service set SSID and password of the encryption that terminal or network access equipment are sent, and according to depositing in advance The SSID and password of the encryption is decrypted in the communication key of storage, wherein the communication key and the smart machine are unique Association;
According to the SSID and password of the decryption, Xiang Suoshu network access equipment is initiated the connection.
According to a sixth aspect of an embodiment of the present disclosure, a kind of device accessing network is provided, described device is applied to terminal, Include:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first broadcasting packet that smart machine is sent is received, includes the mark of the smart machine in first broadcasting packet Know information or MAC Address;
Obtain the SSID and password of network access equipment corresponding with the smart machine;
The communication key of the smart machine, and root are obtained according to the identification information of the smart machine or MAC Address The SSID and password are encrypted according to the communication key, wherein the communication key is uniquely closed with the smart machine Connection;
The SSID of the encryption and password are sent to the smart machine, so that the smart machine is according to the encryption SSID and password initiated the connection forward to the network access equipment.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The first broadcasting packet of identification information or MAC Address for carrying smart machine, and root are sent by smart machine The SSID and password for the encryption that the communication key stored according to itself returns to terminal or network access equipment are decrypted, finally According to after decryption SSID and password carry out network insertion.It avoids after being intercepted by the SSID and password of public key encryption by other people It cracks to obtain SSID and password by public key, improves the access safety of network access equipment.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of method for accessing network shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of method for accessing network shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of method for accessing network shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of method for accessing network shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of device for accessing network shown according to an exemplary embodiment;
Fig. 6 is the block diagram of the first sending module in a kind of device for accessing network shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of device for accessing network shown according to an exemplary embodiment;
Fig. 8 is the first block diagram for obtaining module in a kind of device for accessing network shown according to an exemplary embodiment;
Fig. 9 is the second block diagram for obtaining module in a kind of device for accessing network shown according to an exemplary embodiment;
Figure 10 is the block diagram of the second sending module in a kind of device for accessing network shown according to an exemplary embodiment;
Figure 11 be it is shown according to an exemplary embodiment it is a kind of access network device block diagram (smart machine it is general Structure);
Figure 12 be it is shown according to an exemplary embodiment it is a kind of access network device block diagram (mobile terminal it is general Structure).
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party Formula is described in further detail.
An exemplary embodiment of the present disclosure provides a kind of method for accessing network, this method embodiment is applied to intelligence and sets In standby, referring to Fig. 1, method flow includes:
In a step 101, send the first broadcasting packet, include in the first broadcasting packet smart machine identification information or Media access control layer MAC Address;
In a step 102, the service set SSID and password of the encryption of terminal or network access equipment transmission are received, The SSID and password of encryption is decrypted in communication key according to the pre-stored data, and wherein communication key is uniquely closed with smart machine Connection;
In step 103, it according to the SSID of decryption and password, is initiated the connection to network access equipment.
The disclosure sends the identification information for carrying smart machine or the broadcast report of MAC Address first by smart machine Text, and solved according to SSID and password of the communication key of itself storage to the encryption of terminal or network access equipment return It is close, finally according to after decryption SSID and password carry out network insertion.SSID and password by public key encryption are avoided by him It cracks to obtain SSID and password by public key after people's interception, improves the access safety of network access equipment.
Disclosure another exemplary embodiment provides a kind of method for accessing network, and this method embodiment is applied to terminal In, referring to fig. 2, method flow includes:
In step 201, the first broadcasting packet that smart machine is sent is received, includes smart machine in the first broadcasting packet Identification information or MAC Address;
In step 202, the SSID and password of network access equipment corresponding with smart machine are obtained;
In step 203, the communication key of smart machine is obtained according to the identification information of smart machine or MAC Address, And SSID and password are encrypted according to communication key, wherein communication key and smart machine unique association;
In step 204, the SSID of encryption and password are sent to smart machine, so that smart machine is according to encryption SSID and password are initiated the connection forward to network access equipment.
The disclosure receives the first broadcasting packet that smart machine is sent by terminal, and according to the intelligence in the first broadcasting packet Can equipment identification information or MAC Address obtain communication key, according to the communication key to the SSID and password got into Row encryption, and encrypted SSID and password are sent to smart machine.Avoid the SSID and password quilt by public key encryption Other people crack to obtain SSID and password by public key after intercepting, and improve the access safety of network access equipment.
Disclosure another exemplary embodiment provides a kind of method for accessing network, referring to Fig. 3.
It should be noted that carrying out the SSID and password of broadcast enciphering in the embodiment of the present disclosure to smart machine with terminal Mode notifies smart machine.
Wherein, this method process includes:
In step 301, smart machine sends the first broadcasting packet, includes the mark of smart machine in the first broadcasting packet Information or media access control layer MAC Address.
Each smart machine can be previously stored with unique communication key corresponding with its identification information before factory; Each smart machine can be close by its (Media Access Control, media access control) address MAC and communication before factory The corresponding relationship of the corresponding relationship of key or the identification information of smart machine and communication key is uploaded to cloud server.Accordingly , the MAC Address of smart machine and the corresponding relation database of communication key or intelligence are saved and safeguarded in cloud server The identification information of equipment and the corresponding relation database of communication key.Wherein, the MAC Address of smart machine can be every with unique identification A smart machine;The identification information of smart machine can include but is not limited to the sequence number of smart machine, feature coding etc..
Wherein, step 301 can be triggered by two ways and be executed, and corresponding step 301 can be carried out real by following steps It is existing:
First way:
In step 3011, when detecting not stored SSID and password after smart machine booting, the first broadcast report is sent Text.
Wherein, it will do it self-test when each starting up of smart machine, never accessed in self-test to smart machine any Network access equipment, that is, not stored SSID and when password, then can trigger and execute step 301.Correspondingly, step 3011 can be in intelligence Execution when being powered for the first time after energy equipment factory can also carry out self-test after smart machine is powered every time, and meet detecting It is executed when condition.
The second way:
In step 3012, when smart machine receives reset indication, the first broadcasting packet is sent.
Wherein, the second way can trigger execution in following implement scene: when smart machine had accessed one After network access equipment, the network access equipment of access is needed replacing, wherein replacing the scene of the network access equipment of access It may include: that network access equipment is replaced in family;Smart machine use environment changes, and needs to access in new environment again Network access equipment etc..Smart machine can be by being arranged hardware entities key, that is, reset button, and user passes through to reset button It is operable to triggering reset indication;Resetting option can also be centered by setting in system, user selects in system setting Resetting option is taken to trigger reset indication.
Further, above-mentioned first broadcasting packet can be beacon message.
In step 302, terminal receives the first broadcasting packet that smart machine is sent, and includes intelligence in the first broadcasting packet The identification information or MAC Address of equipment.
Wherein, terminal is equipped with specified application in advance, this apply running background to the received air message of terminal into Row monitoring.If monitoring the first broadcast report that terminal has received the identification information or MAC Address that carry smart machine Wen Shi then can initiate to prompt to user.Wherein, the mode of prompt can disappear to issue a prompt in the notice system of terminal Breath, to prompt user to have found smart machine, terminal executes step 303 at this moment accordingly.
In step 303, the SSID and password of network access equipment corresponding with smart machine are obtained.
Wherein, can be got by two ways in this step the corresponding network access equipment of smart machine SSID and Password.
Correspondingly, step 303 can be realized by following steps:
First way:
In step 3031, obtain the SSID and password of user's input, and using the SSID of input and password as with intelligence The SSID and password of the corresponding network access equipment of equipment.
It can be in such a way that multiple input frames be set in the terminal, so that user is in input frame under current mode Input SSID and password.Terminal then user input finish carry out submission operation after get for smart machine choose network The SSID and password of access device.
Further, due to being SSID and password that user is manually entered, it is possible to can have the phenomenon that input error.Cause This, the SSID and password for determining user's input under current mode are correctly, also to execute after step 3031 Following steps:
In step 3032, according to SSID and password, initiated the connection to network access equipment corresponding with smart machine.
Terminal disconnects current network connection, and initiates the connection to the network access equipment of selection, defeated to verify user Whether the SSID and password entered be correct.If correctly thening follow the steps 304;It re-execute the steps in 3031 and sets if incorrect Multiple input frames are set, so that user re-enters SSID and password.
The second way:
In step 3033, the network access equipment that user chooses in stored network access equipment list is obtained, And using the corresponding SSID of the network access equipment of selection and password as the SSID of network access equipment corresponding with smart machine And password.
It can be smart machine using the network access equipment list that terminal pre-saves as user under current mode The alternate list of the network access equipment of selection.Wherein, the network access equipment list pre-saved is that terminal saves once The inventory of the network access equipment accessed will also save the corresponding SSID of each network access equipment and password accordingly.
In step 304, the communication key of smart machine is obtained according to the identification information of smart machine or MAC Address, And SSID and password are encrypted according to communication key, wherein communication key and smart machine unique association.
In this step, terminal is needed to obtain the communication key of the smart machine to cloud server, so that terminal is according to this The corresponding unique communication key of smart machine encrypts SSID and password.
Correspondingly, this step can be realized by following steps:
In step 3041, the request for obtaining the communication key of smart machine is sent to cloud server, is obtained intelligence and is set It include the identification information or MAC Address of smart machine in the request of standby communication key.
In step 3042, the communication key for the smart machine that cloud server returns is received.
Cloud server according to obtain communication key request in smart machine identification information or MAC Address, The identification information and communication key of the MAC Address of smart machine and the corresponding relation database of communication key or smart machine Communication key is inquired in corresponding relation database, and according in the request for obtaining communication key after inquiring communication key Source address carries the communication key of smart machine to terminal returning response message in the response message.
In step 3043, SSID and password are encrypted according to communication key.
In step 305, the second broadcasting packet is sent, so that smart machine receives the second broadcasting packet, the second broadcast It include the SSID and password of encryption in message.
Within step 306, smart machine receives the service set SSID and password for the encryption that terminal is sent, and according to pre- The SSID and password of encryption is decrypted in the communication key first stored, wherein communication key and smart machine unique association;
Smart machine parses the SSID and password encrypted from the second broadcasting packet that terminal is sent, and obtains intelligence Equipment pre-stored communication key decrypts SSID and password, and wherein decipherment algorithm is that smart machine is preset.
In step 307, it according to the SSID of decryption and password, is initiated the connection to network access equipment.
The disclosure sends the identification information for carrying smart machine or the broadcast report of MAC Address first by smart machine Text, and solved according to SSID and password of the communication key of itself storage to the encryption of terminal or network access equipment return It is close, finally according to after decryption SSID and password carry out network insertion.SSID and password by public key encryption are avoided by him It cracks to obtain SSID and password by public key after people's interception, improves the access safety of network access equipment.
In addition, receiving the first broadcasting packet that smart machine is sent by terminal, and according to the intelligence in the first broadcasting packet Can equipment identification information or MAC Address obtain communication key, according to the communication key to the SSID and password got into Row encryption, and encrypted SSID and password are sent to smart machine.Avoid the SSID and password quilt by public key encryption Other people crack to obtain SSID and password by public key after intercepting, and improve the access safety of network access equipment.
Disclosure another exemplary embodiment provides a kind of method for accessing network, referring to fig. 4.
It should be noted that carrying out the SSID of broadcast enciphering in the embodiment of the present disclosure to smart machine with network access equipment Smart machine is notified with the mode of password.The detailed description of part steps such as previous embodiment, details are not described herein.
Wherein, this method process includes:
In step 401, smart machine sends the first broadcasting packet, includes the mark of smart machine in the first broadcasting packet Information or media access control layer MAC Address.
In step 402, terminal receives the first broadcasting packet that smart machine is sent, and includes intelligence in the first broadcasting packet The identification information or MAC Address of equipment.
In step 403, the SSID and password of network access equipment corresponding with smart machine are obtained.
In step 404, the communication key of smart machine is obtained according to the identification information of smart machine or MAC Address, And SSID and password are encrypted according to communication key, wherein communication key and smart machine unique association.
In step 405, the network access equipment accessed to terminal sends preset instructions, carries encryption in preset instructions SSID and password;So that the SSID of encryption and password are sent to intelligence according to preset instructions by the network access equipment of terminal access Equipment;
Wherein, preset instructions are used to indicate the SSID and password that network access equipment carries out broadcast enciphering.
In a step 406, network access equipment receives preset instructions, and according to preset instructions by the SSID and password of encryption It is sent to smart machine.
In step 407, smart machine receives the service set SSID and password for the encryption that network access equipment is sent, And the SSID and password of encryption is decrypted in communication key according to the pre-stored data, wherein communication key and smart machine are unique Association;
In a step 408, it according to the SSID of decryption and password, is initiated the connection to network access equipment.
The disclosure sends the identification information for carrying smart machine or the broadcast report of MAC Address first by smart machine Text, and solved according to SSID and password of the communication key of itself storage to the encryption of terminal or network access equipment return It is close, finally according to after decryption SSID and password carry out network insertion.SSID and password by public key encryption are avoided by him It cracks to obtain SSID and password by public key after people's interception, improves the access safety of network access equipment.
In addition, receiving the first broadcasting packet that smart machine is sent by terminal, and according to the intelligence in the first broadcasting packet Can equipment identification information or MAC Address obtain communication key, according to the communication key to the SSID and password got into Row encryption, and encrypted SSID and password are sent to smart machine.Avoid the SSID and password quilt by public key encryption Other people crack to obtain SSID and password by public key after intercepting, and improve the access safety of network access equipment.
Corresponding to the method for the access network that the above exemplary embodiments provide, disclosure another exemplary embodiment is provided A kind of device accessing network, device are applied to smart machine, and referring to Fig. 5, which includes:
First sending module 501 includes the mark of smart machine for sending the first broadcasting packet, in the first broadcasting packet Information or media access control layer MAC Address;
First receiving module 502, the service set of the encryption for receiving terminal or network access equipment transmission SSID and password;
Deciphering module 503 is decrypted for SSID and password of the communication key according to the pre-stored data to encryption, wherein Communication key and smart machine unique association;
Link block 504 is initiated the connection for the SSID and password according to decryption to network access equipment.
Wherein, as shown in fig. 6, the first sending module 501, comprising:
First transmission unit 5011 when for detecting not stored SSID and password after smart machine is switched on, sends the One broadcasting packet;
Second transmission unit 5012, for sending the first broadcasting packet when smart machine receives reset indication.
The disclosure sends the identification information for carrying smart machine or the broadcast report of MAC Address first by smart machine Text, and solved according to SSID and password of the communication key of itself storage to the encryption of terminal or network access equipment return It is close, finally according to after decryption SSID and password carry out network insertion.SSID and password by public key encryption are avoided by him It cracks to obtain SSID and password by public key after people's interception, improves the access safety of network access equipment.
Corresponding to the method for the access network that the above exemplary embodiments provide, disclosure another exemplary embodiment is provided A kind of device accessing network, device are applied to terminal, and referring to Fig. 7, which includes:
Second receiving module 701 includes for receiving the first broadcasting packet of smart machine transmission, in the first broadcasting packet The identification information or MAC Address of smart machine;
First obtains module 702, for obtaining the SSID and password code of network access equipment corresponding with smart machine;
Second obtains module 703, for obtaining the logical of smart machine according to the identification information or MAC Address of smart machine Key is interrogated, wherein communication key and smart machine unique association;
Encrypting module 704, for being encrypted according to communication key to SSID and password;
Second sending module 705, for the SSID of encryption and password to be sent to smart machine so that smart machine according to The SSID and password of encryption are initiated the connection forward to network access equipment.
Wherein, as shown in figure 8, first obtains module 702, comprising:
First acquisition unit 7021, for obtaining the SSID and password of user's input, using the SSID of input and password as The SSID and password of network access equipment corresponding with smart machine;
Second acquisition unit 7022 connects for obtaining the network that user chooses in stored network access equipment list Enter equipment, and using the corresponding SSID of the network access equipment of selection and password as network access equipment corresponding with smart machine SSID and password.
Wherein, as shown in figure 8, first obtains module 702 further include:
Connection unit 7023, for initiating to connect to network access equipment corresponding with smart machine according to SSID and password It connects.
Wherein, as shown in figure 9, second obtains module 703, comprising:
Third transmission unit 7031 is obtained for sending the request for obtaining the communication key of smart machine to cloud server Take the identification information or MAC Address in the request of the communication key of smart machine including smart machine;
Receiving unit 7032, the communication key of the smart machine for receiving cloud server return.
Wherein, as shown in Figure 10, the second sending module 705 includes:
4th transmission unit 7051, network access equipment for accessing to terminal send preset instructions, in preset instructions Carry the SSID and password of encryption;So that the network access equipment of terminal access is according to preset instructions by the SSID and password of encryption It is sent to smart machine;
5th transmission unit 7052, for sending the second broadcasting packet, so that smart machine receives the second broadcasting packet, It include the SSID and password of encryption in second broadcasting packet.
The disclosure receives the first broadcasting packet that smart machine is sent by terminal, and according to the intelligence in the first broadcasting packet Can equipment identification information or MAC Address obtain communication key, according to the communication key to the SSID and password got into Row encryption, and encrypted SSID and password are sent to smart machine.Avoid the SSID and password quilt by public key encryption Other people crack to obtain SSID and password by public key after intercepting, and improve the access safety of network access equipment.
Corresponding to the control device for the wireless access points that the above exemplary embodiments provide, disclosure another exemplary Embodiment provides a kind of smart machine 1100, referring to Figure 11.For example, smart machine 1100 can be mobile phone, computer, Digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant, Smart machine etc..Optionally, smart machine 1100 can also be intelligent router, Intelligent air purifier, intelligent water purifier, intelligence Energy camera etc..
Referring to Fig.1 1, smart machine 1100 may include following one or more components: processing component 1102, memory 1104, electric power assembly 1106, multimedia component 1108, audio component 1110, the interface 1112 of input/output (I/O), sensor Component 1114 and communication component 1116.
The integrated operation of the usually control smart machine 1100 of processing component 1102, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 1102 may include one or more processors 1120 It executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1102 may include one or more Module, convenient for the interaction between processing component 1102 and other assemblies.For example, processing component 1102 may include multimedia mould Block, to facilitate the interaction between multimedia component 1108 and processing component 1102.
Memory 1104 is configured as storing various types of data to support the operation in equipment 1100.These data Example includes the instruction of any application or method for operating on smart machine 1100, contact data, telephone directory Data, message, picture, video etc..Memory 1104 can by any kind of volatibility or non-volatile memory device or Their combination realizes that, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) can Erasable programmable read-only memory (EPROM) (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, Flash memory, disk or CD.
Electric power assembly 1106 provides electric power for the various assemblies of smart machine 1100.Electric power assembly 1106 may include power supply Management system, one or more power supplys and other with for smart machine 1100 generate, manage, and distribute associated group of electric power Part.
Multimedia component 1108 includes the screen of one output interface of offer between the smart machine 1100 and user Curtain.In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touching Panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touchings Sensor is touched to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or cunning The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments In, multimedia component 1108 includes a front camera and/or rear camera.When equipment 1100 is in operation mode, such as When screening-mode or video mode, front camera and/or rear camera can receive external multi-medium data.Before each Setting camera and rear camera can be a fixed optical lens system or has focusing and optical zoom capabilities.
Audio component 1110 is configured as output and/or input audio signal.For example, audio component 1110 includes a wheat Gram wind (MIC), when smart machine 1100 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1104 or via Communication component 1116 is sent.In some embodiments, audio component 1110 further includes a loudspeaker, for exporting audio letter Number.
I/O interface 1112 provides interface, above-mentioned peripheral interface module between processing component 1102 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1114 includes one or more sensors, for providing the shape of various aspects for smart machine 1100 State assessment.For example, sensor module 1114 can detecte the state that opens/closes of equipment 1100, the relative positioning of component, example Such as the display and keypad that the component is smart machine 1100, sensor module 1114 can also detect smart machine 1100 Or the position change of 1,100 1 components of smart machine, the existence or non-existence that user contacts with smart machine 1100 are intelligently set The temperature change in standby 1100 orientation or acceleration/deceleration and smart machine 1100.Sensor module 1114 may include approaching sensing Device is configured to detect the presence of nearby objects without any physical contact.Sensor module 1114 can also wrap Optical sensor is included, such as CMOS or ccd image sensor, for using in imaging applications.In some embodiments, the sensor Component 1114 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1116 is configured to facilitate the logical of wired or wireless way between smart machine 1100 and other equipment Letter.Smart machine 1100 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.One In a exemplary embodiment, communication component 1116 via broadcast channel receive broadcast singal from external broadcasting management system or Broadcast related information.In one exemplary embodiment, the communication component 1116 further includes near-field communication (NFC) module, with Promote short range communication.For example, can be based on radio frequency identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology surpasses Broadband (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, smart machine 1100 can by one or more application specific integrated circuit (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field-programmable gate array It arranges (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1104 of instruction, above-metioned instruction can be executed by the processor 1120 of smart machine 1100 to complete above-mentioned side Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
The disclosure sends the identification information for carrying smart machine or the broadcast report of MAC Address first by smart machine Text, and solved according to SSID and password of the communication key of itself storage to the encryption of terminal or network access equipment return It is close, finally according to after decryption SSID and password carry out network insertion.SSID and password by public key encryption are avoided by him It cracks to obtain SSID and password by public key after people's interception, improves the access safety of network access equipment.
Corresponding to the device for the access network that the above exemplary embodiments provide, disclosure another exemplary embodiment is provided A kind of terminal 1200, referring to Figure 12.For example, terminal 1200 can be mobile phone, computer, digital broadcast terminal, message Transceiver, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..Optionally, terminal 1200 It can also be smart television etc..
Referring to Fig.1 2, terminal 1200 may include following one or more components: processing component 1202, memory 1204, Electric power assembly 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1215 and communication component 1216.
The integrated operation of the usual controlling terminal 1200 of processing component 1202, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module, To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in equipment 1200.These data Example includes the instruction of any application or method for operating in terminal 1200, contact data, telephone book data, Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1206 provides electric power for the various assemblies of terminal 1200.Electric power assembly 1206 may include power management System, one or more power supplys and other with for terminal 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between terminal 1200 and user.Some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, But also detection duration and pressure relevant to touch or slide.In some embodiments, multimedia component 1208 Including a front camera and/or rear camera.When equipment 1200 is in operation mode, such as screening-mode or video mode When, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition camera shooting Head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat Gram wind (MIC), when terminal 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1215 includes one or more sensors, and the state for providing various aspects for terminal 1200 is commented Estimate.For example, sensor module 1215 can detecte the state that opens/closes of equipment 1200, the relative positioning of component, such as group Part is the display and keypad of terminal 1200, and sensor module 1215 can also detect 1,200 1 groups of terminal 1200 or terminal The position change of part, the existence or non-existence that user contacts with terminal 1200,1200 orientation of terminal or acceleration/deceleration and terminal 1200 temperature change.Sensor module 1215 may include proximity sensor, be configured to connect in not any physics It is detected the presence of nearby objects when touching.Sensor module 1215 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between terminal 1200 and other equipment.Eventually End 1200 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 1216 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 1200 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of terminal 1200 to complete the above method.Example Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
The disclosure receives the first broadcasting packet that smart machine is sent by terminal, and according to the intelligence in the first broadcasting packet Can equipment identification information or MAC Address obtain communication key, according to the communication key to the SSID and password got into Row encryption, and encrypted SSID and password are sent to smart machine.Avoid the SSID and password quilt by public key encryption Other people crack to obtain SSID and password by public key after intercepting, and improve the access safety of network access equipment.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (8)

1. a kind of method for accessing network, the method are applied to smart machine, which is characterized in that the described method includes:
The first broadcasting packet is sent to terminal, includes identification information or the Jie of the smart machine in first broadcasting packet Matter access control layer MAC address carries in the preset instructions so that the terminal sends preset instructions to network access equipment The service set SSID and password that the terminal is encrypted according to the communication code key with the smart machine unique association, from And the network access equipment for accessing the terminal broadcasts the SSID and password of the encryption according to the preset instructions, from And the SSID of the encryption and password are sent to the smart machine, the communication code key is the terminal to cloud server It obtains;Alternatively, the terminal sends the second broadcasting packet to the smart machine, it include described in second broadcasting packet The SSID and password of encryption;
Receive the service set SSID and password of the encryption of the terminal or network access equipment transmission, and root It is decrypted according to SSID and password of the pre-stored communication key to the encryption;
According to the SSID and password of the decryption, Xiang Suoshu network access equipment is initiated the connection;
What the communication code key was that the terminal obtains to cloud server includes: that the terminal is sent to the cloud server The request of the communication key of the smart machine is obtained, includes institute in the request of the communication key for obtaining the smart machine State the identification information or MAC Address of smart machine;The cloud server is according to the source address in the request to the end End returns to the communication code key of the smart machine;
Wherein, the smart machine sends the first broadcasting packet to the terminal, and the terminal can also obtained and the intelligence The SSID and password of the corresponding network access equipment of equipment;
The terminal obtains the SSID and password of network access equipment corresponding with the smart machine, comprising: the terminal obtains The SSID and password of family input are taken, and is connect using the SSID of the input and password as network corresponding with the smart machine Enter the SSID and password of equipment;Alternatively, the terminal obtains the net that user chooses in stored network access equipment list Network access device, and using the corresponding SSID of the network access equipment of the selection and password as corresponding with the smart machine The SSID and password of network access equipment;
Wherein, after the SSID and password that the terminal obtains user's input, the terminal can be according to the SSID of the input And password, it is initiated the connection to the network access equipment corresponding with the smart machine.
2. the method according to claim 1, wherein the first broadcasting packet of the transmission, comprising:
When detecting not stored SSID and password after smart machine booting, the first broadcasting packet is sent;Alternatively,
When smart machine receives reset indication, the first broadcasting packet is sent.
3. a kind of method for accessing network, the method are applied to terminal, which is characterized in that the described method includes:
The first broadcasting packet that smart machine is sent is received, includes the mark letter of the smart machine in first broadcasting packet Breath or MAC Address;
Obtain the SSID and password of network access equipment corresponding with the smart machine;
The communication key of the smart machine is obtained according to the identification information of the smart machine or MAC Address, and according to institute It states communication key to encrypt the SSID and password, wherein the communication key and the smart machine unique association, institute Stating communication code key is that the terminal is obtained to cloud server;
The SSID of the encryption and password are sent to the smart machine, so that the smart machine is according to the encryption SSID and password are initiated the connection forward to the network access equipment;
The method, further includes:
The network access equipment accessed to the terminal sends preset instructions, and the SSID of the encryption is carried in the preset instructions And password;So that the network access equipment of terminal access broadcasts the SSID of the encryption and close according to the preset instructions Code, so that the SSID of the encryption and password are sent to the smart machine;
Alternatively,
The second broadcasting packet is sent, so that the smart machine receives the second broadcasting packet, is wrapped in second broadcasting packet Include the SSID and password of the encryption;
The communication code key is that the terminal includes: to what cloud server obtained
The request for obtaining the communication key of the smart machine is sent to cloud server, it is described to obtain the logical of the smart machine Interrogate the identification information or MAC Address in the request of key including the smart machine;
Receive the communication key for the smart machine that the cloud server is returned according to the source address in the request;
The SSID and password for obtaining network access equipment corresponding with the smart machine, comprising: obtain user's input SSID and password, and using the SSID of the input and password as the SSID of network access equipment corresponding with the smart machine And password;Alternatively, obtain the network access equipment chosen in stored network access equipment list of user, and by the choosing The corresponding SSID of the network access equipment taken and password as network access equipment corresponding with the smart machine SSID and Password;
Wherein, after the SSID and password of the acquisition user input, the method also includes: according to the SSID and close Code, initiates the connection to the network access equipment corresponding with the smart machine.
4. a kind of device for accessing network, described device are applied to smart machine, which is characterized in that described device includes:
First sending module includes that the intelligence is set in first broadcasting packet for sending the first broadcasting packet to terminal Standby identification information or media access control layer MAC Address, so that the terminal sends preset instructions to network access equipment, The service that the terminal is encrypted according to the communication code key with the smart machine unique association is carried in the preset instructions Set identifier SSID and password, to make the network access equipment of the terminal access according to preset instructions broadcast The SSID and password of encryption, so that the SSID of the encryption and password are sent to the smart machine, the communication code key is The terminal is obtained to cloud server;Alternatively, the terminal sends the second broadcasting packet to the smart machine, described the It include the SSID and password of the encryption in two broadcasting packets;
First receiving module, the services set mark of the encryption for receiving the terminal or network access equipment transmission Know SSID and password;
Deciphering module is decrypted for SSID and password of the communication key according to the pre-stored data to the encryption;
Link block, for the SSID and password according to the decryption, Xiang Suoshu network access equipment is initiated the connection;
What the communication code key was that the terminal obtains to cloud server includes: that the terminal is sent to the cloud server The request of the communication key of the smart machine is obtained, includes institute in the request of the communication key for obtaining the smart machine State the identification information or MAC Address of smart machine;The cloud server is according to the source address in the request to the end End returns to the communication code key of the smart machine;
Wherein, the smart machine sends the first broadcasting packet to the terminal, and the terminal can also obtained and the intelligence The SSID and password of the corresponding network access equipment of equipment;
The terminal obtains the SSID and password of network access equipment corresponding with the smart machine, comprising: the terminal obtains The SSID and password of family input are taken, and is connect using the SSID of the input and password as network corresponding with the smart machine Enter the SSID and password of equipment;Alternatively, the terminal obtains the net that user chooses in stored network access equipment list Network access device, and using the corresponding SSID of the network access equipment of the selection and password as corresponding with the smart machine The SSID and password of network access equipment;
Wherein, after the SSID and password that the terminal obtains user's input, the terminal can be according to the SSID of the input And password, it is initiated the connection to the network access equipment corresponding with the smart machine.
5. device according to claim 4, which is characterized in that first sending module, comprising:
First transmission unit when for detecting not stored SSID and password after smart machine is switched on, sends the first broadcast report Text;
Second transmission unit, for sending the first broadcasting packet when smart machine receives reset indication.
6. a kind of device for accessing network, described device are applied to terminal, which is characterized in that described device includes:
Second receiving module includes institute in first broadcasting packet for receiving the first broadcasting packet of smart machine transmission State the identification information or MAC Address of smart machine;
First obtains module, for obtaining the SSID and password of network access equipment corresponding with the smart machine;
Second obtains module, for obtaining the smart machine according to the identification information or MAC Address of the smart machine Communication key, wherein the communication key and the smart machine unique association, the communication code key is the terminal to cloud What server obtained;
Encrypting module, for being encrypted according to the communication key to the SSID and password;
Second sending module, for the SSID of the encryption and password to be sent to the smart machine, so that the intelligence is set It is standby to be initiated the connection according to the SSID and password of the encryption forward to the network access equipment;
Described device, further includes:
4th transmission unit, network access equipment for accessing to the terminal send preset instructions, in the preset instructions Carry the SSID and password of the encryption;So that the network access equipment of the terminal access broadcasts institute according to the preset instructions The SSID and password of encryption are stated, so that the SSID of the encryption and password are sent to the smart machine;
5th transmission unit, for sending the second broadcasting packet, so that the smart machine receives the second broadcasting packet, it is described It include the SSID and password of the encryption in second broadcasting packet;
Described second, which obtains module, includes:
Third transmission unit, it is described to obtain for sending the request for obtaining the communication key of the smart machine to cloud server Take the identification information or MAC Address in the request of the communication key of the smart machine including the smart machine;
Receiving unit, the smart machine returned for receiving the cloud server according to the source address in the request Communication key;
Described first obtains module, comprising: first acquisition unit will be described defeated for obtaining the SSID and password of user's input SSID and password of the SSID and password entered as network access equipment corresponding with the smart machine;Second acquisition unit, The network access equipment chosen in stored network access equipment list for obtaining user, and by the network of the selection The SSID and password of the corresponding SSID of access device and password as network access equipment corresponding with the smart machine;
Described first obtains module further include: connection unit, for being set with the intelligence to described according to the SSID and password Standby corresponding network access equipment initiates the connection.
7. a kind of device for accessing network, described device are applied to smart machine characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first broadcasting packet is sent to terminal, includes identification information or the Jie of the smart machine in first broadcasting packet Matter access control layer MAC address carries in the preset instructions so that the terminal sends preset instructions to network access equipment The service set SSID and password that the terminal is encrypted according to the communication code key with the smart machine unique association, from And the network access equipment for accessing the terminal broadcasts the SSID and password of the encryption according to the preset instructions, from And the SSID of the encryption and password are sent to the smart machine, the communication code key is the terminal to cloud server It obtains;Alternatively, the terminal sends the second broadcasting packet to the smart machine, it include described in second broadcasting packet The SSID and password of encryption;
Receive the service set SSID and password of the encryption of the terminal or network access equipment transmission, and root It is decrypted according to SSID and password of the pre-stored communication key to the encryption;
According to the SSID and password of the decryption, Xiang Suoshu network access equipment is initiated the connection;
What the communication code key was that the terminal obtains to cloud server includes: that the terminal is sent to the cloud server The request of the communication key of the smart machine is obtained, includes institute in the request of the communication key for obtaining the smart machine State the identification information or MAC Address of smart machine;The cloud server is according to the source address in the request to the end End returns to the communication code key of the smart machine;
Wherein, the smart machine sends the first broadcasting packet to the terminal, and the terminal can also obtained and the intelligence The SSID and password of the corresponding network access equipment of equipment;
The terminal obtains the SSID and password of network access equipment corresponding with the smart machine, comprising: the terminal obtains The SSID and password of family input are taken, and is connect using the SSID of the input and password as network corresponding with the smart machine Enter the SSID and password of equipment;Alternatively, the terminal obtains the net that user chooses in stored network access equipment list Network access device, and using the corresponding SSID of the network access equipment of the selection and password as corresponding with the smart machine The SSID and password of network access equipment;
Wherein, after the SSID and password that the terminal obtains user's input, the terminal can be according to the SSID of the input And password, it is initiated the connection to the network access equipment corresponding with the smart machine.
8. a kind of device for accessing network, described device are applied to terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first broadcasting packet that smart machine is sent is received, includes the mark letter of the smart machine in first broadcasting packet Breath or MAC Address;
Obtain the SSID and password of network access equipment corresponding with the smart machine;
The communication key of the smart machine is obtained according to the identification information of the smart machine or MAC Address, and according to institute It states communication key to encrypt the SSID and password, wherein the communication key and the smart machine unique association, institute Stating communication code key is that the terminal is obtained to cloud server;
The SSID of the encryption and password are sent to the smart machine, so that the smart machine is according to the encryption SSID and password are initiated the connection to the network access equipment;
The processor is also configured to
The network access equipment accessed to the terminal sends preset instructions, and the SSID of the encryption is carried in the preset instructions And password;So that the network access equipment of terminal access broadcasts the SSID of the encryption and close according to the preset instructions Code, so that the SSID of the encryption and password are sent to the smart machine;
Alternatively,
The second broadcasting packet is sent, so that the smart machine receives the second broadcasting packet, is wrapped in second broadcasting packet Include the SSID and password of the encryption;
The communication code key is that the terminal includes: to what cloud server obtained
The request for obtaining the communication key of the smart machine is sent to cloud server, it is described to obtain the logical of the smart machine Interrogate the identification information or MAC Address in the request of key including the smart machine;
Receive the communication key for the smart machine that the cloud server is returned according to the source address in the request;
The SSID and password for obtaining network access equipment corresponding with the smart machine, comprising: obtain user's input SSID and password, and using the SSID of the input and password as the SSID of network access equipment corresponding with the smart machine And password;Alternatively, obtain the network access equipment chosen in stored network access equipment list of user, and by the choosing The corresponding SSID of the network access equipment taken and password as network access equipment corresponding with the smart machine SSID and Password;
Wherein, after the SSID and password of the acquisition user input, further includes: according to the SSID and password, Xiang Suoshu Network access equipment corresponding with the smart machine initiates the connection.
CN201510220084.4A 2015-04-30 2015-04-30 Access the method and device of network Active CN104869612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510220084.4A CN104869612B (en) 2015-04-30 2015-04-30 Access the method and device of network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510220084.4A CN104869612B (en) 2015-04-30 2015-04-30 Access the method and device of network

Publications (2)

Publication Number Publication Date
CN104869612A CN104869612A (en) 2015-08-26
CN104869612B true CN104869612B (en) 2019-05-10

Family

ID=53915031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510220084.4A Active CN104869612B (en) 2015-04-30 2015-04-30 Access the method and device of network

Country Status (1)

Country Link
CN (1) CN104869612B (en)

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550362B (en) * 2015-09-18 2020-06-19 大唐半导体设计有限公司 Method and system for safely accessing intelligent equipment to wireless local area network
CN105228141A (en) * 2015-09-28 2016-01-06 小米科技有限责任公司 A kind of methods, devices and systems set up network and connect
CN105392138A (en) * 2015-10-20 2016-03-09 广东欧珀移动通信有限公司 Method and system for joining intelligent terminal to network system, and control terminal
CN105307143B (en) * 2015-11-04 2019-02-05 Oppo广东移动通信有限公司 A kind of method for connecting network and wireless sound box
CN106714170A (en) * 2015-11-13 2017-05-24 深圳市光峰光电技术有限公司 Projection device, user terminal, and method for accessing projection device into local area network
CN105392133A (en) * 2015-11-26 2016-03-09 北京奇虎科技有限公司 Method and system for wireless function device to automatically access to wireless access point
CN107231673A (en) * 2016-03-23 2017-10-03 北京京东尚科信息技术有限公司 Electronic equipment and its communication means
CN105764058B (en) * 2016-04-12 2020-06-09 Oppo广东移动通信有限公司 Method, device and system for accessing network
CN105933899B (en) 2016-04-14 2019-07-09 北京小米移动软件有限公司 The cut-in method and device of wireless access point
CN105933904B (en) * 2016-05-17 2020-04-21 腾讯科技(深圳)有限公司 Network connection method and device
CN106101067B (en) * 2016-05-30 2020-03-10 深圳酷旗互联网有限公司 Method and terminal for binding intelligent equipment
CN106488532B (en) * 2016-09-14 2020-02-07 珠海格力电器股份有限公司 Automatic network distribution method and device, intelligent network distribution equipment and repeater
CN106559850B (en) * 2016-11-22 2020-10-16 宇龙计算机通信科技(深圳)有限公司 Network access switching method and device
CN106847264A (en) * 2017-01-19 2017-06-13 海尔优家智能科技(北京)有限公司 The method and system that a kind of configuration equipment networks
CN108632814A (en) * 2017-03-17 2018-10-09 上海庆科信息技术有限公司 A kind of terminal device network collocating method and system
CN108632056B (en) * 2017-03-17 2023-01-31 阿里云计算有限公司 Intelligent equipment network configuration method and system
CN106973423A (en) * 2017-04-01 2017-07-21 深圳市国科微半导体股份有限公司 WiFi automatic connection methods and device
CN107995356A (en) * 2017-11-14 2018-05-04 上海斐讯数据通信技术有限公司 It is a kind of based on shake binding Intelligent hardware method and system
CN110505125A (en) * 2018-05-17 2019-11-26 苏州狗尾草智能科技有限公司 The universal management method and system of smart machine
CN111615172B (en) * 2019-02-22 2023-01-24 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system
CN112399410A (en) * 2019-08-02 2021-02-23 云丁网络技术(北京)有限公司 Method, apparatus, computer readable medium and device for secure communication
WO2021023164A1 (en) 2019-08-02 2021-02-11 云丁网络技术(北京)有限公司 Intelligent lock control method and system
CN110620661A (en) * 2019-10-16 2019-12-27 四川虹美智能科技有限公司 System and method for writing key into intelligent equipment
CN111163462B (en) * 2019-12-24 2023-03-24 华为技术有限公司 Network distribution method and related product
CN113395743A (en) * 2020-03-11 2021-09-14 阿里巴巴集团控股有限公司 Device connection method and system, corresponding terminal device and networking method
CN112261604B (en) * 2020-10-20 2023-02-28 成都觅瑞科技有限公司 Network distribution method of intelligent terminal, configuration terminal, intelligent terminal and medium
CN112187831B (en) * 2020-10-30 2023-04-25 腾讯科技(深圳)有限公司 Equipment network access method and device, storage medium and electronic equipment
CN113556736A (en) * 2021-07-21 2021-10-26 元心信息科技集团有限公司 Access method, server, terminal to be accessed, electronic device and storage medium
CN116668507A (en) * 2022-02-21 2023-08-29 腾讯科技(深圳)有限公司 Network connection method, device, equipment and storage medium
CN115915115B (en) * 2022-10-18 2024-02-06 小米汽车科技有限公司 Communication network access method, device, vehicle, electronic equipment and storage medium
CN116886405B (en) * 2023-08-03 2024-01-09 广东九博科技股份有限公司 Miniaturized packet router and single point access information encryption protection method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010352A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method and device for connecting router with intelligent device
CN104301884A (en) * 2014-10-29 2015-01-21 浙江宇视科技有限公司 Method for configuring IP cameras to have access to wireless router

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137395B (en) * 2010-09-09 2014-07-30 华为技术有限公司 Method, device and system for configuring access device
CN103167581A (en) * 2011-12-14 2013-06-19 北京千橡网景科技发展有限公司 Method and device for utilizing shared network connection information to access to short distance wireless network
CN103517383B (en) * 2012-06-18 2017-04-12 华为终端有限公司 A method and a device for the access of a mobile terminal to a household network
CN103037538B (en) * 2012-12-17 2016-02-24 广州市动景计算机科技有限公司 Data transmission method and mobile terminal
CN103873454B (en) * 2012-12-18 2017-02-08 ***通信集团山东有限公司 Authentication method and equipment
CN103686674A (en) * 2013-09-30 2014-03-26 深圳市通力科技开发有限公司 Network access method, intelligent terminal and WiFi access equipment
CN103987033A (en) * 2014-04-23 2014-08-13 微梦创科网络科技(中国)有限公司 Method, device and system for equipment to be connected with Wi-Fi network
CN104378758B (en) * 2014-05-12 2016-08-17 腾讯科技(深圳)有限公司 Access point method of attachment, terminal and server
CN104144421A (en) * 2014-07-29 2014-11-12 诚迈科技(南京)股份有限公司 Automatic network configuration system
CN104168625B (en) * 2014-08-20 2018-01-16 普联技术有限公司 Smart machine and its method and wireless routing device for being connected to wireless routing device
CN104378801A (en) * 2014-09-19 2015-02-25 小米科技有限责任公司 Method and device for having access to wireless network
CN104301116B (en) * 2014-10-23 2018-04-06 上海斐讯数据通信技术有限公司 A kind of method and system of NFC wireless routers private certification mode
CN104375497B (en) * 2014-12-15 2017-09-29 广东美的厨房电器制造有限公司 Smart home and its control method, control system and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010352A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method and device for connecting router with intelligent device
CN104301884A (en) * 2014-10-29 2015-01-21 浙江宇视科技有限公司 Method for configuring IP cameras to have access to wireless router

Also Published As

Publication number Publication date
CN104869612A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN104869612B (en) Access the method and device of network
CN106302762B (en) Smart machine binding method and device
CN104993981B (en) Control the method and device of equipment access
EP3151507B1 (en) Methods and apparatuses for controlling device
KR101693130B1 (en) Information interaction method and device
CN106452924B (en) The method and apparatus of synchronous radio network configuration
EP3229423B1 (en) Method and device for displaying setting interface of router
EP3200421B1 (en) Method, apparatus and system for accessing wireless local area network
CN106060098B (en) Processing method, processing unit and the processing system of identifying code
EP3076632B1 (en) Method and apparatus for accessing a network
CN105243318A (en) User equipment control right determining method and apparatus and terminal device
EP3157198A1 (en) Method and apparatus for network connection
CN105282158A (en) Intelligent equipment networking method, routing equipment, intelligent equipment and system
KR101642019B1 (en) Method, apparatus, program, and recording medium of verifying terminal
CN106528249B (en) Storage method, device and the terminal of upgrade package
CN106506562B (en) Method for connecting network, device and the smart machine of smart machine
US20170171794A1 (en) Method and apparatus for acquiring routing information
KR101719599B1 (en) Method, apparatus, program and recording medium for accessing network
CN105282162B (en) The processing method and processing device of account management business
JP6509331B2 (en) Information transmission method, apparatus and system
CN104852800B (en) Data transmission method and device
CN104618987B (en) Access the method and device of network
CN105376399B (en) For controlling the method and device of smart machine
EP3276995B1 (en) Information writing method and device
CN105812339A (en) Encryption and decryption method and device

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
GR01 Patent grant
GR01 Patent grant