Method, apparatus that equipment networks, intelligent terminal, networked and treated log equipment
Technical field
The present invention relates to Internet technical field, more particularly to equipment network method, apparatus, intelligent terminal, networked
And treat log equipment.
Background technology
Intelligent appliance equipment adds wireless communication module on the basis of traditional home appliance so that home appliance has networking
Function is allowed users to by intelligent terminal remote control intelligent appliance, such as user can be direct using intelligent terminal at home
Control the home appliance in home network.After intelligent appliance equipment and cloud platform establish connection, user can also outdoors via
Smart machine in cloud platform remote control home.
Configure intelligent appliance equipment to network, when especially configuring the intelligent appliance networking of no user interface, pass through
The process of intelligent terminal configuration is comparatively laborious, it is necessary to which user repeatedly participates in, and user needs to wait network configuration process.
The content of the invention
In order to solve the above technical problem, the present invention provides equipment network method, apparatus, intelligent terminal, networked and
Treat log equipment.
The method that configuration equipment provided by the invention networks, the method are applied to intelligent terminal, including:
Obtain the first access information for treating log equipment under default wireless-access mode;
The distribution instruction for carrying the first access information is sent to log equipment, wherein, distribution instruction is used to indicate
Net equipment according to the first access information access treat log equipment and by for access the second access information of home network send to
Treat log equipment.
The above method also has the characteristics that:
Treat to be provided with the information code for including the first access information on log equipment;Acquisition treats that log equipment wirelessly connects default
The first access information entered under pattern includes:Obtained by way of scanning information code and treat log equipment in default wireless access mould
The first access information under formula.
The above method also has the characteristics that:
In the case where log equipment is multiple, the distribution that the first access information of carrying is sent to log equipment refers to
Order, including:Chosen distance treats the nearest log equipment of log equipment from multiple log equipments, and to nearest networking
Equipment sends the distribution instruction for carrying access information;Or the minimum log equipment of selection load from multiple log equipments,
And the distribution instruction for carrying access information is sent to the minimum log equipment of load;Or send and carry to all log equipments
The distribution instruction of access information.
The above method also has the characteristics that:
Distribution instruction is additionally operable to:Before log equipment treats log equipment according to the access of the first access information, instruction is
Log equipment disconnects the connection with home network, and in log equipment with treating log equipment connection failure and waiting to network
After equipment closes default wireless-access mode, log equipment reconnects home network for instruction.
The present invention also provides the method that networks of another configuration equipment, the method is applied to treat log equipment, including:
Receive the connection request of log equipment;
In the case of including the first access information in a connection request, it is connected with log equipment, wherein, the first access letter
Cease the access information to treat log equipment under default wireless-access mode;
Receive the second access information for being used to access home network that log equipment is sent;
Home network is accessed according to the second access information.
The above method also has the characteristics that:
In the case where receiving the connection request of multiple log equipments, it is connected with log equipment, including:
It is connected with the log equipment corresponding to the connection request being initially received;Or
The connection of log equipment arbitrarily corresponding to one connection request of selection.
The above method also has the characteristics that:
Reception log equipment transmission is used to access after the second access information of home network, and method further includes:Close
Close default wireless-access mode.
The present invention also provides the method that networks of another configuration equipment, the method is applied to log equipment, including:
Receive intelligent terminal send the first access information of carrying distribution instruction, wherein, the first access information for treat into
Access information of the net equipment under default wireless-access mode;
Log equipment is treated according to the access of the first access information;
It will be sent for accessing the second access information of home network to treating log equipment.
The above method also has the characteristics that:
After the distribution instruction for receiving the first access information of carrying that intelligent terminal is sent, method further includes:Disconnection and family
The connection of front yard network.
The above method also has the characteristics that:
In the case where log equipment is multiple, before treating log equipment according to the access of the first access information, method is also
Including:To treat log equipment send connection request;According to treating log equipment according to selection feelings of the connection request to log equipment
Condition, one in multiple log equipments log equipment log equipment is treated according to the access of the first access information, other have entered
Net equipment after log equipment connection failure with reconnecting home network.
The above method also has the characteristics that:
It will be sent for the second access information for accessing home network to after treating log equipment, method further includes:Treating
After log equipment closes default wireless-access mode, home network is reconnected.
The present invention also provides intelligent terminal, including:
First acquisition module, for obtaining the first access information for treating log equipment under default wireless-access mode;
First sending module, the distribution that the first access information is carried for being sent to log equipment instruct, wherein, distribution
Instruction is used to indicate that log equipment to treat log equipment and by for accessing the of home network according to the access of the first access information
Two access informations are sent to treating log equipment.
Above-mentioned intelligent terminal also has the characteristics that:
Treat to be provided with the information code for including the first access information on log equipment;First acquisition module includes:Second obtains
Module, for obtaining the first access letter for treating log equipment under default wireless-access mode by way of scanning information code
Breath.
Above-mentioned intelligent terminal also has the characteristics that:
In the case where log equipment is multiple, the first sending module includes the second sending module, the 3rd sending module
Or the 4th sending module;
Second sending module is used for the chosen distance from multiple log equipments and treats the nearest log equipment of log equipment,
And the distribution instruction for carrying access information is sent to nearest log equipment;
3rd sending module is used for the log equipment that selection load is minimum from multiple log equipments, and to load most
Small log equipment sends the distribution instruction for carrying access information;
4th sending module is used to send the distribution instruction for carrying access information to all log equipments.
Above-mentioned intelligent terminal also has the characteristics that:
Distribution instruction is additionally operable to:Before log equipment treats log equipment according to the access of the first access information, instruction is
Log equipment disconnects the connection with home network, and in log equipment with treating log equipment connection failure and waiting to network
After equipment closes default wireless-access mode, log equipment reconnects home network for instruction.
It is provided by the invention to treat log equipment, including:
First receiving module, for receiving the connection request of log equipment;
First link block, in the case of including the first access information in a connection request, connects with log equipment
Connect, wherein, the first access information is the access information for treating log equipment under default wireless-access mode;
Second receiving module, the second access information for being used to access home network sent for receiving log equipment;
First AM access module, for accessing home network according to the second access information.
It is above-mentioned to treat that log equipment also has the characteristics that:
In the case where receiving the connection request of multiple log equipments, the first link block includes the second link block
Or the 3rd link block:
Second link block, is connected for the log equipment corresponding to the connection request with being initially received;
3rd link block, for the connection of log equipment corresponding to one connection request of any selection.
It is above-mentioned to treat that log equipment also has the characteristics that:
Treat that log equipment further includes:Closedown module, for receiving being used for for log equipment transmission in the second receiving module
Access after the second access information of home network, close default wireless-access mode.
Log equipment provided by the invention, including:
3rd receiving module, the distribution instruction of the first access information of carrying for receiving intelligent terminal transmission, wherein, the
One access information is the access information for treating log equipment under default wireless-access mode;
Second AM access module, for treating log equipment according to the access of the first access information;
5th sending module, for will be sent for accessing the second access information of home network to treating log equipment.
Above-mentioned log equipment also has the characteristics that:
Log equipment further includes:Module is disconnected, for receiving the carrying that intelligent terminal sends in the 3rd receiving module
After the distribution instruction of one access information, the connection with home network is disconnected.
Above-mentioned log equipment also has the characteristics that:
In the case where log equipment is multiple, log equipment further includes:
6th sending module, for the second AM access module according to the first access information access treat log equipment before, to
Treat that log equipment sends connection request;
3rd AM access module, log equipment is treated according to selection situation of the connection request to log equipment for basis, more
One in a log equipment log equipment log equipment is treated according to the access of the first access information, wherein, other have entered
Net equipment after log equipment connection failure with reconnecting home network.
Above-mentioned log equipment also has the characteristics that:
Log equipment further includes:Reconnect module, in the 5th sending module by for accessing home network
Second access information is sent to after treating log equipment, after default wireless-access mode is closed after log equipment, is reconnected
Home network.
Present invention also offers a kind of device for configuring equipment and networking, including above-mentioned intelligent terminal, above-mentioned treat log equipment
With above-mentioned log equipment.
The present invention can complete device configuration in the case where user inputs without any information and enter network process, greatly letter
Change user's operation, improve user experience.
Brief description of the drawings
The attached drawing for forming the part of the present invention is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its explanation is used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method to network in embodiment one applied to the configuration equipment of intelligent terminal;
Fig. 2 is the structure chart of intelligent terminal in embodiment one;
Fig. 3 is the flow chart that the method that equipment networks is configured in instantiation one;
Fig. 4 is the flow chart that the method that equipment networks is configured in instantiation two.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
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
All other embodiments obtained without making creative work, belong to the scope of protection of the invention.Need
Illustrate, in the case where there is no conflict, the feature in embodiment and embodiment in the application can be mutually combined.
It is herein to treat log equipment and log equipment is typically smart home device.
Embodiment one
Fig. 1 is the flow chart of the method to network in embodiment applied to the configuration equipment of intelligent terminal, and the method includes:
Step 101, the first access information for treating log equipment under default wireless-access mode is obtained;
Step 102, the distribution instruction for carrying the first access information is sent to log equipment, wherein, distribution instruction is used for
Indicate that log equipment is treated log equipment according to the access of the first access information and will be believed for the second access for accessing home network
Breath is sent to treating log equipment.
The present invention can complete device configuration in the case where user inputs without any information and enter network process, greatly letter
Change user's operation, improve user experience.
Treat to be provided with the information code for including the first access information on log equipment;Obtained in step 101 and treat that log equipment exists
The first access information under default wireless-access mode includes:Obtained by way of scanning information code and treat log equipment default
The first access information under wireless-access mode.Information code can be bar code, black and white Quick Response Code, color 2 D code etc..This sweeps
The mode of code makes operation more simple and efficient.
Treat that access information of the log equipment under default wireless-access mode includes service set (Service Set
Identifier, SSID) and password.
It is virtual radio access module that wireless-access mode is preset in this method, such as softAP or other nothings
Line access module.
Sent in the case where log equipment is multiple, in step 102 to log equipment and carry the first access information
Distribution instruction, including:Chosen distance treats the nearest log equipment of log equipment from multiple log equipments, and to nearest
Log equipment send carry access information distribution instruction;Or selection loads having entered for minimum from multiple log equipments
Net equipment, and the distribution instruction for carrying access information is sent to the minimum log equipment of load;Or to all log equipments
Send the distribution instruction for carrying access information.
Distribution instruction is additionally operable to before log equipment treats log equipment according to the access of the first access information, and instruction has entered
Net equipment disconnect with the connection of home network, and in log equipment with treating log equipment connection failure and treating that networking sets
After the standby default wireless-access mode of closing, log equipment reconnects home network for instruction.
Fig. 2 is the structure chart of intelligent terminal in embodiment one;This intelligent terminal includes:
First acquisition module, for obtaining the first access information for treating log equipment under default wireless-access mode;
First sending module, the distribution that the first access information is carried for being sent to log equipment instruct, wherein, distribution
Instruction is used to indicate that log equipment to treat log equipment and by for accessing the of home network according to the access of the first access information
Two access informations are sent to treating log equipment.
Wherein, treat to be provided with the information code for including the first access information on log equipment;First acquisition module includes:Second
Acquisition module, for obtaining the first access for treating log equipment under default wireless-access mode by way of scanning information code
Information.
In the case where log equipment is multiple, the first sending module includes the second sending module, the 3rd sending module
Or the 4th sending module;
Second sending module is used for the chosen distance from multiple log equipments and treats the nearest log equipment of log equipment,
And the distribution instruction for carrying access information is sent to nearest log equipment;
3rd sending module is used for the log equipment that selection load is minimum from multiple log equipments, and to load most
Small log equipment sends the distribution instruction for carrying access information;
4th sending module is used to send the distribution instruction for carrying access information to all log equipments.
Distribution instruction is additionally operable to:Before log equipment treats log equipment according to the access of the first access information, instruction is
Log equipment disconnects the connection with home network, and in log equipment with treating log equipment connection failure and waiting to network
After equipment closes default wireless-access mode, log equipment reconnects home network for instruction.
Embodiment two
Method applied to the configuration equipment networking for treating log equipment includes:Receive the connection request of log equipment;
In the case that connection request includes the first access information, it is connected with log equipment, wherein, the first access information is to wait to network
Access information of the equipment under default wireless-access mode;Receive log equipment send be used for access the second of home network
Access information;Home network is accessed according to the second access information.
In the case of the connection request for receiving multiple log equipments, it is connected with log equipment, including:With connecing at first
The connection of log equipment corresponding to received connection request;Or, the networking arbitrarily corresponding to one connection request of selection is set
Standby connection.
The method further includes:Reception log equipment transmission is used to access after the second access information of home network,
Method further includes:Close default wireless-access mode.
Treat that log equipment includes:
First receiving module, for receiving the connection request of log equipment;
First link block, in the case of including the first access information in a connection request, connects with log equipment
Connect, wherein, the first access information is the access information for treating log equipment under default wireless-access mode;
Second receiving module, the second access information for being used to access home network sent for receiving log equipment;
First AM access module, for accessing home network according to the second access information.
Wherein, in the case where receiving the connection request of multiple log equipments, the first link block includes second and connects
Connection module or the 3rd link block:
Second link block, is connected for the log equipment corresponding to the connection request with being initially received;
3rd link block, for the connection of log equipment corresponding to one connection request of any selection.
Treat that log equipment further includes:Closedown module, for receiving being used for for log equipment transmission in the second receiving module
Access after the second access information of home network, close default wireless-access mode.
Embodiment three
The method that configuration equipment applied to log equipment networks includes:The carrying first that intelligent terminal is sent is received to connect
Enter the distribution instruction of information, wherein, the first access information is the access information for treating log equipment under default wireless-access mode;
Log equipment is treated according to the access of the first access information;It will be sent for accessing the second access information of home network to treating that networking sets
It is standby.
In the method, after the distribution instruction for receiving the first access information of carrying that intelligent terminal is sent, method further includes:
Disconnect the connection with home network.
In the case where log equipment is multiple, before treating log equipment according to the access of the first access information, method is also
Including:To treat log equipment send connection request;According to treating log equipment according to selection feelings of the connection request to log equipment
Condition, one in multiple log equipments log equipment log equipment is treated according to the access of the first access information, other have entered
Net equipment after log equipment connection failure with reconnecting home network.
It will be sent for the second access information for accessing home network to after treating log equipment, method further includes:Treating
After log equipment closes default wireless-access mode, home network is reconnected.
Log equipment includes:
3rd receiving module, the distribution instruction of the first access information of carrying for receiving intelligent terminal transmission, wherein, the
One access information is the access information for treating log equipment under default wireless-access mode;
Second AM access module, for treating log equipment according to the access of the first access information;
5th sending module, for will be sent for accessing the second access information of home network to treating log equipment.
Wherein,
Log equipment further includes:Module is disconnected, for receiving the carrying that intelligent terminal sends in the 3rd receiving module
After the distribution instruction of one access information, the connection with home network is disconnected.
In the case where log equipment is multiple, log equipment further includes:
6th sending module, for the second AM access module according to the first access information access treat log equipment before, to
Treat that log equipment sends connection request;
3rd AM access module, log equipment is treated according to selection situation of the connection request to log equipment for basis, more
One in a log equipment log equipment log equipment is treated according to the access of the first access information, wherein, other have entered
Net equipment after log equipment connection failure with reconnecting home network.
Log equipment further includes:Reconnect module, in the 5th sending module by for accessing home network
Second access information is sent to after treating log equipment, after default wireless-access mode is closed after log equipment, is reconnected
Home network.
Example IV
Device present invention also offers configuration equipment networking is including in the intelligent terminal in embodiment one, embodiment two
Treat the log equipment in log equipment and embodiment three.
Two instantiations are given below this method is described in detail.
Instantiation one
As shown in figure 3, the method includes:
Step 301, treat that log equipment opens softAP patterns.
Step 302, intelligent terminal scanning treats the preset mode of log equipment comprising the Quick Response Code acquisition for treating log equipment
Access information, this access information include SSID and password.
Step 303, intelligent terminal selects a log equipment from more log equipment.
System of selection can be one kind in the following manner:
Mode one, intelligent terminal display access home network all log equipments information, user determine selection away from
The log equipment nearest from log equipment, and choose;
Mode two, intelligent terminal obtain the intelligent terminal of log equipment, the minimum log equipment of selection operation load;
Mode three, intelligent terminal are determined to receive and treat log equipment in default nothing by being interacted with log equipment
All log equipments of wireless signal under line access module, from least one log equipment of selection.
Step 304, intelligent terminal sends the distribution instruction for carrying above-mentioned access information to the log equipment selected.
Step 305, after log equipment receives this distribution instruction, disconnect with the connection of home network, using waiting to network
The access information of the preset mode of equipment to treat log equipment send connection request;
Step 306, establish and connect with log equipment after log equipment receives connection request, log equipment passes through
This connection sends the access information of home network to treating log equipment.
Step 307, treat that log equipment closes softAP patterns.
Step 308, treat that log equipment accesses home network using the access information of home network to request.
Step 309, log equipment detects and after the connection of log equipment disconnects, accesses home network again.
Instantiation two
As shown in figure 4, the method includes:
Step 401, treat that log equipment opens softAP patterns.
Step 402, intelligent terminal scanning treats the preset mode of log equipment comprising the Quick Response Code acquisition for treating log equipment
Access information, this access information include SSID and password.
Step 403, intelligent terminal sends the distribution instruction for carrying above-mentioned access information to more than one log equipment.
Step 404, after log equipment receives this distribution instruction, the connection with home network is disconnected, log equipment
Using the preset mode for treating log equipment access information to treat log equipment send connection request.
Step 405, after log equipment receives multiple connection requests, therefrom log equipment has entered for what is determined for selection one
Net equipment.For example, the corresponding log equipment of connection request that selection is initially received, subsequently receives other networked and sets again
Refusal respond is returned after the connection request that preparation is sent or is not dealt with.It is for another example corresponding from the connection request received
Any selection one in log equipment.
Treat that log equipment is established with definite log equipment to connect.With treating that log equipment establishes the networking of connection failure
Equipment reconnects home network.
Step 406, the access of home network is believed by this connection with treating that log equipment establishes the log equipment connected
Breath is sent to treating log equipment.
Step 407, treat that log equipment closes softAP patterns.
Step 408, treat that log equipment accesses home network using the access information of home network to request.
The present invention can complete device configuration in the case where user inputs without any information and enter network process, greatly letter
Change user's operation, improve user experience.
Descriptions above can combine implementation individually or in a variety of ways, and these variants all exist
Within protection scope of the present invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to the embodiment of the present invention described herein can with except illustrating herein or
Order beyond those of description is implemented.
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 program can be stored in computer-readable recording medium, such as read-only storage, disk or CD.Can
Selection of land, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, correspondingly, above-mentioned
Each module/unit in embodiment can be realized in the form of hardware, can also be realized in the form of software function module.
The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that article or equipment including a series of elements not only include those key elements, but also including not
There is the other element being expressly recited, or further include as this article or the intrinsic key element of equipment.Do not limiting more
In the case of system, the key element that is limited by sentence " including ... ", it is not excluded that in the article including the key element or equipment
Also there are other identical element.
The above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, 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 it can modify to technical scheme
Or equivalent substitution, without departing from the spirit and scope of technical solution of the present invention, the claim model in the present invention should all be covered
Among enclosing.