CN108307386A - A kind of smart machine Auto-reconnect method and apparatus - Google Patents

A kind of smart machine Auto-reconnect method and apparatus Download PDF

Info

Publication number
CN108307386A
CN108307386A CN201610799335.3A CN201610799335A CN108307386A CN 108307386 A CN108307386 A CN 108307386A CN 201610799335 A CN201610799335 A CN 201610799335A CN 108307386 A CN108307386 A CN 108307386A
Authority
CN
China
Prior art keywords
wireless network
configuration information
value
ssid
connection password
Prior art date
Application number
CN201610799335.3A
Other languages
Chinese (zh)
Inventor
郑金
Original Assignee
海尔优家智能科技(北京)有限公司
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 海尔优家智能科技(北京)有限公司 filed Critical 海尔优家智能科技(北京)有限公司
Priority to CN201610799335.3A priority Critical patent/CN108307386A/en
Publication of CN108307386A publication Critical patent/CN108307386A/en

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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Abstract

The invention discloses a kind of smart machine Auto-reconnect method and apparatus, the method includes:When wireless network is normal, smart machine receives configuration information, after judging the configuration information for the configuration information of access wireless network again according to the configuration rule of configuration information, the service set SSID of wireless network and/or the connection password of wireless network are parsed from the configuration information according to the configuration rule of configuration information;After the connection of the smart machine and wireless network disconnects, when judging to disconnect reason as the connection password mistake of the SSID of the wireless network and/or the wireless network, is re-established and connect with wireless network according to the connection password of the SSID of the wireless network parsed from the configuration information and/or the wireless network.In the present invention between router and smart machine the SSID of automatically updated wireless network and/or wireless network connection password, carry out Auto-reconnect, without user participate in, significantly improve user experience.

Description

A kind of smart machine Auto-reconnect method and apparatus
Technical field
The present invention relates to wireless communication data process field more particularly to a kind of smart machine Auto-reconnect method and dresses It sets.
Background technology
The application of short-distance radio network technology is more and more extensive, such as family lan, and a router can pass through Wireless mode connects multiple smart machines simultaneously, makes multiple smart machines while obtaining wireless network resource.
In the prior art, as service set (the Service Set of the wireless network in home LAN Identifier, abbreviation SSID) and/or wireless network connection password changed after, the intelligence of network has been connected in family Equipment, such as intelligent appliance need to carry out network connection configuration manually again.
Invention content
In order to solve in the prior art, when the connection of the SSID and/or wireless network of the wireless network in local area network are close Code modification after, smart machine again manually carry out network connection configuration the problem of, the present invention provides a kind of smart machine Auto-reconnects Method and apparatus.
The present invention provides a kind of smart machine Auto-reconnect methods, including:
When wireless network is normal, smart machine receives configuration information, according to the judgement of the configuration rule of configuration information Configuration information is after accessing the configuration information of wireless network again, according to the configuration rule of configuration information from the configuration information Parse the SSID of wireless network and/or the connection password of wireless network;It is disconnected in the connection of the smart machine and wireless network After opening, judge disconnect reason for the connection password mistake of the SSID of the wireless network and/or the wireless network when, according to from The SSID of the wireless network parsed in the configuration information and/or the connection password and wireless network of the wireless network Re-establish connection.
Above-mentioned smart machine Auto-reconnect method also has the characteristics that:
The configuration rule according to configuration information judges that the configuration information matches confidence for access wireless network again Breath includes:The value that data identification field in the configuration information is parsed according to the configuration rule of configuration information judges this value to use When indicating that this configuration information accesses the value of wireless network again for smart machine, judge the configuration information for smart machine Again the configuration information of wireless network is accessed.
Above-mentioned smart machine Auto-reconnect method also has the characteristics that:
The SSID and/or wireless network of wireless network are parsed from the configuration information according to the configuration rule of configuration information The connection password of network includes:
The value in the data type field in the configuration information is parsed according to the configuration rule of configuration information, this value is When being used to indicate the value for the SSID for carrying wireless network in this configuration information, the ssid field of the configuration information is parsed Value is the SSID of the wireless network;This value is to be used to indicate the value for the connection password that wireless network is carried in this configuration information When, the value for parsing the connection password field of the wireless network in the configuration information is the connection password of the wireless network; When this value is the value for the connection password for being used to indicate the SSID and wireless network that carry wireless network in this configuration information, parsing The value for going out the ssid field in the configuration information is the SSID of the wireless network, is parsed wireless in the configuration information The value of the connection password field of network is the connection password of the wireless network.
Above-mentioned smart machine Auto-reconnect method also has the characteristics that:
The SSID and/or wireless network of wireless network are parsed from the configuration information according to the configuration rule of configuration information The connection password of network includes:
The value in the configuration information in data type field is parsed according to the configuration rule of configuration information, this value is to use When the value for the SSID for indicating to carry wireless network in this configuration information, it is N number of to parse the length after data type field The value M of the data length field of byte, the value for parsing the ssid field that length after the data length field is M byte is nothing The SSID of gauze network;
Value in the configuration information in data type field is to be used to indicate in this configuration information to carry wireless network Connection password value when, parse the length after data type field be X byte data length field value Y, parse The value for going out the connection password field for the wireless network that the data length field length is Y byte is that the connection of wireless network is close Code;
Value in the configuration information in data type field is to be used to indicate in this configuration information to carry wireless network SSID and wireless network connection password value when, parse the length after data type field be N number of byte first number According to the value M of length field, the value for parsing the ssid field of M byte after first data length field is wireless network SSID;The value Y for parsing the second data length field that the length after ssid field is X byte, parses second data The value of the connection password field of the wireless network of Y byte is the connection password of wireless network after length field.
The present invention also provides a kind of Auto-reconnect devices, are applied in smart machine, including:
Receiving module, for when wireless network is normal, receiving configuration information;
Parsing module, for judging the configuration information according to the configuration rule of configuration information to access wireless network again Configuration information after, parsed from the configuration information according to the configuration rule of configuration information wireless network SSID and/or The connection password of wireless network;
Link block, for after the connection of the smart machine and wireless network disconnects, judging that it is described to disconnect reason When the connection password mistake of the SSID of wireless network and/or the wireless network, according to what is parsed from the configuration information The connection password of the SSID of the wireless network and/or the wireless network is re-established with wireless network to be connect.
The present invention also provides a kind of smart machine Auto-reconnect methods, including:
Before the SSID of more new wireless network and/or the connection password of wireless network, router is matched according to configuration information It sets rule carrying in configuration information and is used to indicate this configuration information to access the mark of the configuration information of wireless network again simultaneously The SSID of updated wireless network and/or the connection password of wireless network are carried in the configuration information, pass through wireless network Network sends the configuration information to smart machine, after sending the configuration information, the SSID of more new wireless network and/or wireless The connection password of network is re-established with the smart machine according to the connection request of smart machine and is connect, wherein connection request Carry the SSID of the updated wireless network and/or the connection password of wireless network.
Above-mentioned smart machine Auto-reconnect method also has the characteristics that:
It is described carried in configuration information again access wireless network configuration information include:It is arranged in the configuration information The value of data identification field is to be used to indicate the value that the configuration information is the configuration information of access wireless network again.
Above-mentioned smart machine Auto-reconnect method also has the characteristics that:
The connection password of the SSID for carrying wireless network and/or wireless network includes one of following methods:
Value in the data type field being arranged in the configuration information is to be used to indicate in this configuration information to carry nothing The value of the SSID of gauze network, the value that ssid field is arranged is the SSID of the wireless network;
Value in the data type field being arranged in the configuration information is to be used to indicate in this configuration information to carry nothing The value of the connection password of gauze network, the value that the connection password field of the wireless network in the configuration information is arranged are described wireless The connection password of network;
Value in the data type field being arranged in the configuration information is to be used to indicate in this configuration information to carry nothing The value of the SSID of gauze network and the connection password of wireless network, the value in the ssid field being arranged in the configuration information is described The SSID of wireless network, the value that the connection password field of the wireless network in the configuration information is arranged are the wireless network Connection password;
It is to be used to indicate in this configuration information to carry wirelessly that the value in the configuration information in data type field, which is arranged, The value of the SSID of network, calculates the byte number M of the SSID of the wireless network, and it is that N number of byte after data type field, which is arranged, One data length field, the value that first data length field is arranged are M, wherein N >=1;The first data length word is set M byte after section is ssid field, and the value that the ssid field is arranged is the SSID of wireless network;
It is to be used to indicate in this configuration information to carry wirelessly that the value in the configuration information in data type field, which is arranged, When the value of the connection password of network, the byte number X of the connection password of the wireless network is calculated, the Y after data type field is set A byte is the second data length field, and the value that second data length field is arranged is X, wherein Y >=1;It is arranged described second X byte after data length field is the connection password field of wireless network, and the connection password field of the wireless network is arranged Value be wireless network connection password;
It is to be used to indicate in this configuration information to carry wirelessly that the value in the configuration information in data type field, which is arranged, The value of the SSID of network and the connection password of wireless network, the byte number for calculating the SSID of the wireless network are M, and data class is arranged N number of byte after type-word section is the first data length field, and the value that first data length field is arranged is M, wherein N >=1; It is ssid field that M byte after first data length field, which is arranged, and the value that the ssid field is arranged is wireless network SSID;The byte number X of the connection password of the wireless network is calculated, it is the second data length that Y byte after ssid field, which is arranged, Field, the value that second data length field is arranged are X, wherein Y >=1;X word after second data length field is set Section is the connection password field of wireless network, and the value that the connection password field of the wireless network is arranged is that the connection of wireless network is close Code.
Above-mentioned smart machine Auto-reconnect method also has the characteristics that:
The router at least sends the configuration information twice.
The present invention also provides a kind of Auto-reconnect devices, are applied in router, including:
Setup module is used for before the SSID of more new wireless network and/or the connection password of wireless network, according to confidence The configuration rule of breath carries the configuration information for being used to indicate that this configuration information is access wireless network again in configuration information It identifies and carries the SSID of updated wireless network and/or the connection password of wireless network in the configuration information;Also use After sending the configuration information in the sending module, the SSID of more new wireless network and/or the connection password of wireless network;
Sending module, for sending the configuration information to smart machine by wireless network;
Link block is connect for being re-established with the smart machine according to the connection request of smart machine, wherein connecting It connects request and carries the SSID of the updated wireless network and/or the connection password of wireless network.
The present invention will make by oneself after router triggers the connection password modification of SSID and/or wireless network of wireless network The configuration information of justice is sent to smart machine, such as intelligent appliance, and smart machine is new wireless according to what is carried in configuration information The SSID of network and/or the connection password of wireless network, are automatically updated, and are participated in without user, are significantly improved user Experience.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of smart machine Auto-reconnect method in embodiment;
Fig. 2 is the structure chart of Auto-reconnect device in embodiment;
Fig. 3 is smart machine Auto-reconnect method flow diagram in embodiment;
Fig. 4 is the structure chart of Auto-reconnect device in embodiment.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application mutually can be combined arbitrarily.
Fig. 1 is the flow chart of smart machine Auto-reconnect method in embodiment, using router as executive agent, smart machine Auto-reconnect method includes:Before the SSID of more new wireless network and/or the connection password of wireless network, router is according to configuration It is the configuration information for accessing wireless network again that the configuration rule of information, which carries in configuration information and is used to indicate this configuration information, Mark and the SSID of updated wireless network and/or the connection password of wireless network are carried in this configuration information, pass through Wireless network sends the configuration information to smart machine, after sending the configuration information, the SSID of more new wireless network and/ Or the connection password of wireless network, it is re-established and is connect with the smart machine according to the connection request of smart machine, wherein connecting It connects request and carries the SSID of the updated wireless network and/or the connection password of wireless network.
Data identification field is used in the configuration rule of the configuration information used in this method, setting in this field is used In instruction, this configuration information is to access the configuration information of wireless network again, and be used to carry wireless network using other fields SSID and/or wireless network connection password.
Carry out process in detail below by field configuration in configuration information.
It is the specific of the configuration information of access wireless network again to be carried in configuration information and be used to indicate the configuration information Including:The value that data identification field in configuration information is arranged is to be used to indicate the configuration information matching for access wireless network again The value of confidence breath, such as 1.
It is carried in configuration information according to the configuration rule of configuration information in this method and is used to indicate the configuration information and attaches most importance to The mark of the configuration information of new access wireless network and the SSID and/or wireless network that wireless network is carried in the configuration information Connection password one kind in following methods may be used:
Router can use the configuration rule of the first configuration information when carrying out configuration information setting.As shown in table 1, In the configuration rule of this first configuration information, configuration information includes data identification field, data type field, ssid field and The connection password field of wireless network.
Table 1
Data identification field Data type field Ssid field The connection password field of wireless network
The value of data identification field is to be used to indicate this configuration information to access nothing again in router setting configuration information The value of line network configuration information, such as 1.The value that data type field in configuration information is arranged is to be used to indicate in this configuration information Carry the value of the SSID of wireless network and/or the connection password of wireless network:
The value that data type field is arranged is to be used to indicate the service identifiers that wireless network is carried in this configuration information SSID, the value that ssid field is arranged is the SSID of wireless network;
The value that data type field is set be used to indicate the connection password that wireless network is carried in this configuration information, if The value for setting the connection password field of wireless network is the connection password of wireless network;
The value that data type field is arranged is to be used to indicate the service identifiers that wireless network is carried in this configuration information When the connection password of SSID and wireless network, the value that ssid field is arranged is the SSID of wireless network, and the company of wireless network is arranged The value for connecing password field is the connection password of wireless network.
The length set-up mode of each subfield can there are many, be exemplified below:The length of data identification field is 2 bytes, The field of data type is 1 byte, and the length of the connection password field of ssid field and wireless network is 14 bytes.
Router can use the configuration rule of the second configuration information when carrying out configuration information setting.As shown in table 2, In the configuration rule of this second configuration information, configuration information includes data identification field, data type field, the first data length The connection password field of field and ssid field and/or the second data length field and wireless network.
Table 2
The value of data identification field in router setting configuration information is for indicating that the configuration information is to access again The value of wireless network, such as 1.The value that data type field is arranged is to be used to indicate that carried in the configuration information is wireless network SSID and/or wireless network connection password:
It is to be used to indicate in this configuration information to carry wireless network that the value in the configuration information in data type field, which is arranged, The value of the SSID of network calculates the byte number M of the SSID of the wireless network, and it is first that N number of byte after data type field, which is arranged, Data length field, the value that first data length field is arranged are M, wherein N >=1;First data length field is set M byte afterwards is ssid field, and the value that the ssid field is arranged is the SSID of wireless network;
The value being arranged in data type field is to be used to indicate the connection password that wireless network is carried in this configuration information Value, calculate the byte number X of the connection password of the wireless network, it is the second data that Y byte after data type field, which is arranged, Length field, the value that second data length field is arranged are X, wherein Y >=1;X after second data length field is set A byte is the connection password field of wireless network, and the value that the connection password field of the wireless network is arranged is the company of wireless network Connect password;
It is to be used to indicate in this configuration information to carry wirelessly that the value in the configuration information in data type field, which is arranged, When the value of the SSID of network and the connection password of wireless network, the byte number for calculating the SSID of the wireless network is M, and data are arranged N number of byte after type field is the first data length field, and the value of first data length field is M, wherein N >=1;If It is ssid field to set M byte after first data length field, and the value that the ssid field is arranged is wireless network SSID;The byte number X of the connection password of the wireless network is calculated, Y byte being arranged after ssid field is long as the second data Field is spent, the value of second data length field is X, wherein Y >=1;X byte after second data length field is set For the connection password field of wireless network, the value that the connection password field of the wireless network is arranged is that the connection of wireless network is close Code.
The length set-up mode of identification field and data type field can there are many, be exemplified below:The length of identification field Degree is 1 byte, and the length of data type field is 1 byte.
Router sends configuration information to smart machine.The sending method of broadcast may be used when sending configuration information, The sending method of unicast may be used.Transmission times can be set as needed, for example, at least send twice configuration information to intelligence It can equipment.When using mode of unicast, router can be according to the mark for being connected thereto smart machine recorded, to corresponding intelligence It can equipment transmission configuration information.
Fig. 2 is the structure chart of Auto-reconnect device in embodiment.The Auto-reconnect device is applied in router.This is automatic Reconnection device includes:
Setup module is used for before the SSID of more new wireless network and/or the connection password of wireless network, according to confidence The configuration rule of breath carries the configuration information for being used to indicate that this configuration information is access wireless network again in configuration information It identifies and carries the SSID of updated wireless network and/or the connection password of wireless network in configuration information;It is additionally operable to After the sending module sends the configuration information, the SSID of more new wireless network and/or the connection password of wireless network;
Sending module, for sending configuration information to smart machine by wireless network;
Link block is connect for being re-established with smart machine according to the connection request of smart machine, wherein connection is asked It asks and carries the SSID of updated wireless network and/or the connection password of wireless network.
Wherein, setting mould is used to indicate this configuration information in configuration information carrying according to the configuration rule of configuration information and attaches most importance to The new SSID that the mark of wireless network is added and carries updated wireless network in the configuration information and wireless network The method of connection password is identical as the method described in the above, and details are not described herein again.
Fig. 3 is smart machine Auto-reconnect method flow diagram in embodiment.Smart machine Auto-reconnect method includes:In nothing When gauze network is normal, smart machine receives configuration information, judges configuration information according to the configuration rule of configuration information to connect again After the configuration information for entering wireless network, the SSID of wireless network is parsed from configuration information according to the configuration rule of configuration information And/or the connection password of wireless network judges that it is described to disconnect reason after the smart machine and wireless network connection disconnect When the connection password mistake of the SSID of wireless network and/or the wireless network, according to what is parsed from the configuration information The SSID of wireless network and/or the connection password of wireless network are re-established with wireless network and are connect.
Wherein, configuration information is judged according to the configuration rule of configuration information to access the configuration information packet of wireless network again It includes:The value that data identification field in configuration information is parsed according to the configuration rule of configuration information, judges this value to be used to indicate this When the value for the configuration that configuration information accesses wireless network again for smart machine, judgement configuration information connects again for smart machine Enter the configuration information of wireless network.
Corresponding in foregoing description, router uses the configuration rule of the configuration information of the different wireless networks of access again When building configuration information, smart machine parses wireless network according to the configuration rule of corresponding configuration information from configuration information SSID and/or wireless network connection password.Specifically:
When router is configured using the configuration rule structure of the first configuration information, smart machine is according to the first configuration information Configuration rule is from the value in the data type field parsed in configuration information in configuration information:
Value in configuration information in data type field is to be used to indicate in this configuration information to carry wireless network When the value of SSID, the value for parsing the ssid field of configuration information is the SSID of wireless network;
Value in configuration information in data type field is to be used to indicate the company that wireless network is carried in this configuration information When connecing the value of password, it is close for the connection of wireless network to parse the value of the connection password field of the wireless network in configuration information Code;
Value in configuration information in data type field is to be used to indicate in this configuration information to carry wireless network When the value of the connection password of SSID and wireless network, the value for parsing the ssid field in configuration information is wireless network SSID, the value for parsing the connection password field of the wireless network of configuration information is the connection password of wireless network.
When router is configured using the configuration rule structure of the second configuration information, smart machine is according to the second configuration information Configuration rule is from the value parsed in configuration information in configuration information in data type field:
Value in configuration information in data type field is to be used to indicate in this configuration information to carry wireless network When the value of SSID, the value M for the data length field that the length after the data type field of configuration information is N number of byte is parsed, The value for parsing the ssid field of M byte after the data length field is the SSID of wireless network;
Value in configuration information in data type field is to be used to indicate the company that wireless network is carried in this configuration information When connecing the value of password, the value for the data length field that the length after the data type field of configuration information is X byte is parsed Y, the value for parsing the connection password field of the wireless network of Y byte after the data length field are that the connection of wireless network is close Code;
Value in configuration information in data type field is to be used to indicate the business that wireless network is carried in this configuration information When the value of the connection password of set identifier SSID and wireless network, it is N to parse the length after the data type field of configuration information The value M of first data length field of a byte parses the value of the ssid field of M byte after first data length field For the SSID of wireless network;Parse the value Y for the second data length field that the length after ssid field is X byte, parsing The value for going out the connection password field of the wireless network of Y byte after second data length field is that the connection of wireless network is close Code.
Fig. 4 is the structure chart of Auto-reconnect device in embodiment.This Auto-reconnect device is applied in smart machine, this is certainly Moving reconnection device includes:
Receiving module, for when wireless network is normal, receiving configuration information;
Parsing module, for judging configuration information matching for access wireless network again according to the configuration rule of configuration information After confidence breath, the SSID and/or wireless network of wireless network are parsed from configuration information according to the configuration rule of configuration information Connection password;
Link block, for after the connection of smart machine and wireless network disconnects, judging to disconnect reason for wireless network SSID and/or wireless network connection password mistake when, according to the SSID of the wireless network parsed from configuration information and/ Or the connection password of wireless network is re-established with wireless network and is connect.
The present invention is carried by the configuration rule of the customized radio network configuration information of access again using configuration information The SSID of wireless network and/or the connection password of wireless network, by router in the SSID and/or wireless network for changing wireless network It after the connection password of network, is independently completed, is participated in without user, and smart machine can weigh automatically by the communication with smart machine It newly accesses on modified router, the complex operations such as network connection configuration networking without execution smart machine again.Based on routing Device and the SSID of the wireless network after the change of smart machine automatic synchronization and/or the connection password of wireless network, join without user With, can and big improvement user experience.
Descriptions above can combine implementation individually or in various ways, and these variants all exist Within protection scope of the present invention.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that article or equipment including a series of elements include not only those elements, but also includes not having There is the other element being expressly recited, or further includes for this article or the intrinsic element of equipment.Do not limiting more In the case of system, the element that is limited by sentence " including ... ", it is not excluded that including the element article or equipment in There is also other identical elements.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program Related hardware is completed, and described program can be stored in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, accordingly Ground, the form that hardware may be used in each module/unit in above-described embodiment are realized, the shape of software function module can also be used Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, reference only to preferred embodiment to this hair It is bright to be described in detail.It will be understood by those of ordinary skill in the art that can modify to technical scheme of the present invention Or equivalent replacement should all cover the claim model in the present invention without departing from the spirit of the technical scheme of the invention and range In enclosing.

Claims (10)

1. a kind of smart machine Auto-reconnect method, which is characterized in that including:
When wireless network is normal, smart machine receives configuration information, judges the configuration according to the configuration rule of configuration information Information is after accessing the configuration information of wireless network again, to be parsed from the configuration information according to the configuration rule of configuration information Go out the service set SSID of wireless network and/or the connection password of wireless network;In the smart machine and wireless network After connection disconnects, when judging to disconnect reason as the connection password mistake of the SSID of the wireless network and/or the wireless network, According to the connection password and nothing of the SSID of the wireless network parsed from the configuration information and/or the wireless network Gauze network re-establishes connection.
2. smart machine Auto-reconnect method as described in claim 1, which is characterized in that the configuration according to configuration information Rule judges that the configuration information includes for the configuration information of access wireless network again:According to the configuration rule solution of configuration information The value for analysing data identification field in the configuration information judges this value to be used to indicate this configuration information and is used for smart machine again When accessing the value of wireless network, judge that the configuration information accesses the configuration information of wireless network for smart machine again.
3. smart machine Auto-reconnect method as claimed in claim 1 or 2, which is characterized in that
The SSID and/or wireless network of wireless network are parsed according to the configuration rule of configuration information from the configuration information Connection password includes:
The value in the data type field in the configuration information is parsed according to the configuration rule of configuration information, this value be for When indicating to carry the value of the SSID of wireless network in this configuration information, the value for parsing the ssid field of the configuration information is The SSID of the wireless network;This value is when being used to indicate the value for the connection password for carrying wireless network in this configuration information, The value for parsing the connection password field of the wireless network in the configuration information is the connection password of the wireless network;This value For be used to indicate carried in this configuration information wireless network SSID and wireless network connection password value when, parse institute The value for stating the ssid field in configuration information is the SSID of the wireless network, parses the wireless network in the configuration information Connection password field value be the wireless network connection password.
4. smart machine Auto-reconnect method as claimed in claim 1 or 2, which is characterized in that
The SSID and/or wireless network of wireless network are parsed according to the configuration rule of configuration information from the configuration information Connection password includes:
The value in the configuration information in data type field is parsed according to the configuration rule of configuration information, this value is for referring to When showing the value for the SSID for carrying wireless network in this configuration information, it is N number of byte to parse the length after data type field Data length field value M, the value for parsing the ssid field that length after the data length field is M byte is wireless network The SSID of network;
Value in the configuration information in data type field is to be used to indicate the company that wireless network is carried in this configuration information When connecing the value of password, the value Y for the data length field that the length after data type field is X byte is parsed, this is parsed Data length field length is that the value of the connection password field of the wireless network of Y byte is the connection password of wireless network;
Value in the configuration information in data type field is to be used to indicate in this configuration information to carry wireless network When the value of the connection password of SSID and wireless network, the first data that the length after data type field is N number of byte are parsed The value M of length field, the value for parsing the ssid field of M byte after first data length field are wireless network SSID;The value Y for parsing the second data length field that the length after ssid field is X byte, parses second data The value of the connection password field of the wireless network of Y byte is the connection password of wireless network after length field.
5. a kind of Auto-reconnect device, which is characterized in that it is applied in smart machine, including:
Receiving module, for when wireless network is normal, receiving configuration information;
Parsing module, for judging the configuration information matching for access wireless network again according to the configuration rule of configuration information After confidence breath, the SSID of wireless network and/or wireless is parsed from the configuration information according to the configuration rule of configuration information The connection password of network;
Link block, for the smart machine and wireless network connection disconnect after, judge disconnect reason be it is described wirelessly When the connection password mistake of the SSID of network and/or the wireless network, according to being parsed from the configuration information The connection password of the SSID of wireless network and/or the wireless network is re-established with wireless network to be connect.
6. a kind of smart machine Auto-reconnect method, which is characterized in that including:
Before the service set SSID of more new wireless network and/or the connection password of wireless network, router is according to confidence The configuration rule of breath carries the configuration information for being used to indicate that this configuration information is access wireless network again in configuration information It identifies and carries the SSID of updated wireless network and/or the connection password of wireless network in the configuration information, pass through Wireless network sends the configuration information to smart machine, after sending the configuration information, the SSID of more new wireless network and/ Or the connection password of wireless network, it is re-established and is connect with the smart machine according to the connection request of smart machine, wherein connecting It connects request and carries the SSID of the updated wireless network and/or the connection password of wireless network.
7. smart machine Auto-reconnect method as claimed in claim 6, which is characterized in that
It is described carried in configuration information again access wireless network configuration information include:Data in the configuration information are set The value of identification field is to be used to indicate the value that the configuration information is the configuration information of access wireless network again.
8. smart machine Auto-reconnect method as claimed in claims 6 or 7, which is characterized in that the carrying wireless network The connection password of SSID and/or wireless network includes one of following methods:
Value in the data type field being arranged in the configuration information is to be used to indicate in this configuration information to carry wireless network The value of the SSID of network, the value that ssid field is arranged is the SSID of the wireless network;
Value in the data type field being arranged in the configuration information is to be used to indicate in this configuration information to carry wireless network The value of the connection password of network, the value that the connection password field of the wireless network in the configuration information is arranged are the wireless network Connection password;
Value in the data type field being arranged in the configuration information is to be used to indicate in this configuration information to carry wireless network The value of the SSID of network and the connection password of wireless network, the value being arranged in the ssid field in the configuration information are described wireless The SSID of network, the value that the connection password field of the wireless network in the configuration information is arranged is the connection of the wireless network Password;
It is to be used to indicate in this configuration information to carry wireless network that the value in the configuration information in data type field, which is arranged, SSID value, calculate the byte number M of the SSID of the wireless network, it is the first number that N number of byte after data type field, which is arranged, According to length field, the value that first data length field is arranged is M, wherein N >=1;After first data length field is set M byte be ssid field, be arranged the ssid field value be wireless network SSID;
It is to be used to indicate in this configuration information to carry wireless network that the value in the configuration information in data type field, which is arranged, Connection password value when, calculate the byte number X of the connection password of the wireless network, Y word after data type field be set Section is the second data length field, and the value that second data length field is arranged is X, wherein Y >=1;Second data are set X byte after length field is the connection password field of wireless network, and the value of the connection password field of the wireless network is arranged For the connection password of wireless network;
It is to be used to indicate in this configuration information to carry wireless network that the value in the configuration information in data type field, which is arranged, SSID and wireless network connection password value, calculate the SSID of the wireless network byte number be M, be arranged data class type-word N number of byte after section is the first data length field, and the value that first data length field is arranged is M, wherein N >=1;Setting M byte after first data length field is ssid field, and the value that the ssid field is arranged is the SSID of wireless network; The byte number X of the connection password of the wireless network is calculated, it is the second data length field that Y byte after ssid field, which is arranged, The value that second data length field is arranged is X, wherein Y >=1;X byte after second data length field, which is arranged, is The connection password field of wireless network, the value that the connection password field of the wireless network is arranged is the connection password of wireless network.
9. smart machine Auto-reconnect method as claimed in claim 6, which is characterized in that
The router at least sends the configuration information twice.
10. a kind of Auto-reconnect device, which is characterized in that it is applied in router, including:
Setup module is used for before the service set SSID of more new wireless network and/or the connection password of wireless network, according to It is the configuration for accessing wireless network again that the configuration rule of configuration information, which carries in configuration information and is used to indicate this configuration information, The mark of information and carried in the configuration information updated wireless network SSID and/or wireless network connection it is close Code;It is additionally operable to after the sending module sends the configuration information, the SSID of more new wireless network and/or the company of wireless network Connect password;
Sending module, for sending the configuration information to smart machine by wireless network;
Link block is connect for being re-established with the smart machine according to the connection request of smart machine, wherein connection is asked It asks and carries the SSID of the updated wireless network and/or the connection password of wireless network.
CN201610799335.3A 2016-08-31 2016-08-31 A kind of smart machine Auto-reconnect method and apparatus CN108307386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610799335.3A CN108307386A (en) 2016-08-31 2016-08-31 A kind of smart machine Auto-reconnect method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610799335.3A CN108307386A (en) 2016-08-31 2016-08-31 A kind of smart machine Auto-reconnect method and apparatus

Publications (1)

Publication Number Publication Date
CN108307386A true CN108307386A (en) 2018-07-20

Family

ID=62871760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610799335.3A CN108307386A (en) 2016-08-31 2016-08-31 A kind of smart machine Auto-reconnect method and apparatus

Country Status (1)

Country Link
CN (1) CN108307386A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151010A (en) * 2018-08-09 2019-01-04 北京小米移动软件有限公司 Method for connecting network, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068719A1 (en) * 2012-09-04 2014-03-06 Nokia Corporation Method, apparatus, and computer program product for sharing wireless network configurations
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN104869609A (en) * 2015-04-27 2015-08-26 小米科技有限责任公司 Information providing method and device
CN105764058A (en) * 2016-04-12 2016-07-13 广东欧珀移动通信有限公司 Network access method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068719A1 (en) * 2012-09-04 2014-03-06 Nokia Corporation Method, apparatus, and computer program product for sharing wireless network configurations
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN104869609A (en) * 2015-04-27 2015-08-26 小米科技有限责任公司 Information providing method and device
CN105764058A (en) * 2016-04-12 2016-07-13 广东欧珀移动通信有限公司 Network access method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151010A (en) * 2018-08-09 2019-01-04 北京小米移动软件有限公司 Method for connecting network, device and storage medium

Similar Documents

Publication Publication Date Title
EP3327992B1 (en) Method of selecting network slice and system utilizing same
CN106982458B (en) Network slice selection method and device
CN104137476B (en) Apparatus and method for carrying out the multi-casting communication based on accessing identifier
KR101421874B1 (en) Method and apparatus for allocating bundles of sessions in a network element
CN203135921U (en) System for forwarding data package
US20140105097A1 (en) Service Information Pushing and Receiving Method, and Related Apparatus and System
KR100978710B1 (en) Method and device for the automatic configuration of a gprs terminal0000
US9531591B2 (en) Configuration of networks using switch device access of remote server
AU755688B2 (en) Managing group ip addresses in mobile end stations
CN104365151B (en) The dynamic control method and device of network selection
CN103476023B (en) The collocation method of access point apparatus, access controller and communication system
CN106060900A (en) Method and apparatus for controlling access to network slicing, terminal small cell and SDN controller
CN103037318B (en) Mobile device forms device, the system and method for point-to-point group by proximity sensing
CN104540090B (en) A kind of networking interconnecting method and system based on low-power consumption bluetooth
CN103368949B (en) A kind of method configuring communicator
CN104734931A (en) Method and device for establishing link between virtual network functions
CN100550806C (en) Realize method and ustomer premises access equipment that the Internet Service Provider selects
TW201603602A (en) Apparatus and method for controlling wireless network access and wireless data traffic
CN106797407A (en) The dynamic generation of the unique identifier in things system
CN107347205B (en) A kind of network slice selection method, apparatus and system
EP2793448B1 (en) Method, device, and system for short address use in wireless data communication networks
US20140169222A1 (en) Bridging network devices in a hybrid communication network
CN103747441A (en) Wireless network accessing method and accessing apparatus
CN105188056B (en) A kind of connection method and the device of WiFi equipment and access point
CN108668381A (en) Communication means and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination