Summary of the invention
The embodiment of the present application provides a kind of information processing method and intelligent home device, for realizing the technique effect of intelligent home device as gateway.
First aspect, this application provides a kind of information processing method, is applied to the first intelligent home device, and the intelligent domestic system at described first intelligent home device place also comprises multiple intelligent home device, and described method comprises:
Obtain the network capabilities collection of described multiple intelligent home device;
According to network capabilities and the described network capabilities collection of described first intelligent home device, determining from described first intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway.
Optionally, the network capabilities of described first intelligent home device comprises ability rating and the performance parameter of described first intelligent home device, described network capabilities collection comprises ability rating and the performance parameter of described multiple intelligent home device, according to network capabilities and the described network capabilities collection of described first intelligent home device, determine from described first intelligent home device and described multiple intelligent home device and as the second intelligent home device of gateway, can comprise:
According to the ability rating of described first intelligent home device and the ability rating of described multiple intelligent home device, determine that at least one intelligent home device that described ability rating is the highest is at least one optional equipment;
From at least one optional equipment described, determining that described performance parameter meets a pre-conditioned optional equipment is described second intelligent home device.
Optionally, when described second smart machine is not described first intelligent home device, determine from described first intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway after, also comprise:
Judge that whether described second intelligent home device is abnormal;
When described second Smart Home is abnormal, according to network capabilities and the described network capabilities collection of described first intelligent home device, determining from the intelligent home device beyond the second intelligent home device described in described first intelligent home device and described multiple intelligent home device can as the 3rd intelligent home device of gateway.
Optionally, when described second intelligent home device is described first intelligent home device, determine from described first intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway after, also comprise:
Receive the connection request that described multiple intelligent home device sends;
Based on described connection request, be connected with described multiple intelligent home device;
Set up the connection with high in the clouds, be transmitted to intelligent home device corresponding in described multiple intelligent home device with the first information sent in described high in the clouds, and the second information that at least one intelligent home device in described multiple intelligent home device sends is transmitted to high in the clouds.
Optionally, when described second intelligent home device is the arbitrary intelligent home device in described multiple intelligent home device, determine from described first intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway after, also comprise:
Connection request is sent, to be connected with described second intelligent home device to described second intelligent home device;
Receive the first information of the described high in the clouds transmission that described second smart machine forwards, and by described second intelligent home device, the second information is transmitted to high in the clouds.
On the other hand, this application provides a kind of intelligent home device, the intelligent domestic system at described intelligent home device place also comprises multiple intelligent home device, comprising:
Obtain unit, for obtaining the network capabilities collection of described multiple intelligent home device;
Determining unit, for according to the network capabilities of described intelligent home device and described network capabilities collection, determining from described intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway.
Optionally, the network capabilities of described intelligent home device comprises ability rating and the performance parameter of described intelligent home device, described network capabilities collection comprises ability rating and the performance parameter of described multiple intelligent home device, described determining unit is used for according to the ability rating of described first intelligent home device and the ability rating of described multiple intelligent home device, determines that at least one intelligent home device that described ability rating is the highest is at least one optional equipment; From at least one optional equipment described, determining that described performance parameter meets a pre-conditioned optional equipment is described second intelligent home device.
Optionally, when described second smart machine is not described intelligent home device, described intelligent home device also comprises:
Judging unit, for determine from described intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway after, judge that described second intelligent home device is whether abnormal;
Described determining unit is also for when described second Smart Home is abnormal, according to network capabilities and the described network capabilities collection of described intelligent home device, determining from the intelligent home device beyond the second intelligent home device described in described intelligent home device and described multiple intelligent home device can as the 3rd intelligent home device of gateway.
Optionally, when described second intelligent home device is described intelligent home device, described intelligent home device also comprises:
Transmit-Receive Unit, for determine from described intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway after, receive the connection request that described multiple intelligent home device sends;
First linkage unit, for based on described connection request, is connected with described multiple intelligent home device;
Second linkage unit, for setting up the connection with high in the clouds, be transmitted to intelligent home device corresponding in described multiple intelligent home device with the first information sent in described high in the clouds, and the second information that at least one intelligent home device in described multiple intelligent home device sends is transmitted to high in the clouds.
Optionally, when described second intelligent home device is the arbitrary intelligent home device in described multiple intelligent home device, described intelligent home device also comprises:
Transmit-Receive Unit, for determine from described first intelligent home device and described multiple intelligent home device can as the second intelligent home device of gateway after, connection request is sent, to be connected with described second intelligent home device to described second intelligent home device; Receive the first information of the described high in the clouds transmission that described second smart machine forwards, and by described second intelligent home device, the second information is transmitted to high in the clouds.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
1, in the technical scheme of the embodiment of the present application, first the first intelligent home device obtains the network capabilities collection of the multiple intelligent home devices be connected with self.Then, according to network capabilities and the network capabilities collection of the first intelligent home device, determining from the first intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway.So, determine that the second intelligent home device is as gateway, substitute gateway box, and be connected with high in the clouds by the second intelligent home device, make user need not buy separately gateway box again, for user has saved cost.
2, further, when the first intelligent home device is not the second intelligent home device, first intelligent home device using the second intelligent home device after gateway, if the second intelligent home device occurs abnormal, first intelligent home device is by network capabilities and the network capabilities collection again according to the first intelligent home device, and determining can as the 3rd intelligent home device of gateway.So, solve gateway box in prior art and extremely cause the technical problem that all intelligent home devices all cannot be connected with high in the clouds, even if the second intelligent home device is abnormal, first Smart Home and other Smart Homes also can be connected with high in the clouds by the 3rd intelligent home device again, and then not by the second intelligent home device anomalous effects.
Embodiment
The embodiment of the present application provides a kind of information processing method and intelligent home device, increasing the technical problem of cost, achieving the technique effect of intelligent home device as gateway for solving independent purchase gateway box.
In order to solve the problems of the technologies described above, the technical scheme general thought that the application provides is as follows:
In the technical scheme of the embodiment of the present application, first the first intelligent home device obtains the network capabilities collection of the multiple intelligent home devices be connected with self.Then, according to network capabilities and the network capabilities collection of the first intelligent home device, determining from the first intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway.So, determine that the second intelligent home device is as gateway, substitute gateway box, and be connected with high in the clouds by the second intelligent home device, make user need not buy separately gateway box again, for user has saved cost.
Below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, the specific features being to be understood that in the embodiment of the present application and embodiment is the detailed description to technical scheme, instead of the restriction to technical scheme, when not conflicting, the technical characteristic in the embodiment of the present application and embodiment can combine mutually.
Term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
The application's first aspect provides a kind of information processing method, is applied to the first intelligent home device.Specifically, be provided with intelligent domestic system in family, the first intelligent home device is the arbitrary intelligent home device in intelligent domestic system.In addition, multiple intelligent home device is also comprised in intelligent domestic system.Be interconnected by wireless network between each intelligent home device in intelligent domestic system.The method of the application can be applicable to each intelligent home device in intelligent domestic system.For convenience of introducing, describe wherein arbitrary intelligent home device in the embodiment of the present application, namely how the first intelligent home device performs the method in the embodiment of the present application, and all the other intelligent home device executive modes are similar, therefore will not repeat to repeat.
Please refer to Fig. 1, the information processing method in the embodiment of the present application comprises the steps:
S101: the network capabilities collection obtaining described multiple intelligent home device;
S102: according to network capabilities and the described network capabilities collection of described first intelligent home device, determining from multiple intelligent home device described in described first intelligent home device can as the second intelligent home device of gateway.
First, in the embodiment of the present application, the network capabilities collection of multiple intelligent home device comprises the network capabilities of each intelligent home device in multiple intelligent home device.Wherein, network capabilities represents the ability of intelligent home device interconnection network and routing iinformation.Network capabilities can represent with network type, operating system and/or internal memory etc., and the application does not do concrete restriction.
Can as the second intelligent home device of gateway in order to determine, in S101, the first intelligent home device obtains the network capabilities collection of multiple intelligent home device.Specifically, first intelligent home device is connected with multiple intelligent home device, so S101, be specially and receive the respective network capabilities that sends respectively of each intelligent home device, then the all-network competence set received is network capabilities collection by the first intelligent home device again.
Further, the first intelligent home device, except needing the network capabilities collection obtaining multiple intelligent home device, also needs the network capabilities from self obtaining the first intelligent home device.In S102, the first intelligent home device is according to own net ability and network capabilities collection, and determining from the first intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway.
Specifically, because the equipment as gateway is connected with high in the clouds except self, also to bear the connection in other intelligent home devices and high in the clouds in system, so the network capabilities of the second intelligent home device is more by force better selection simultaneously.In the embodiment of the present application, the first intelligent home device, according to own net ability and network capabilities collection, selects the strongest intelligent home device of network capabilities as gateway.In other words, the second intelligent home device is specially the intelligent home device that in intelligent domestic system, current network ability is the strongest.
Because each intelligent home device in intelligent domestic system can perform the method for the embodiment of the present application, so each intelligent domestic system can determine same second intelligent home device.And then after determining the second intelligent home device as gateway, except the second intelligent home device, each intelligent home device can be connected to the second intelligent home device, to connect high in the clouds by the second intelligent home device.
Seen from the above description, the first intelligent home device in the embodiment of the present application determines that the second intelligent home device is as gateway, substitutes gateway box, and is connected with high in the clouds by the second intelligent home device, make user need not buy separately gateway box again, for user has saved cost.
In specific implementation process, the second intelligent home device can be the first intelligent home device, and can be any one in multiple intelligent home device, the application do concrete restriction yet.
Next, to how determining in S102 that the second intelligent home device describes in detail.
In the embodiment of the present application, the network capabilities of the first intelligent home device comprises ability rating and the performance parameter of the first intelligent home device, and network capabilities collection comprises ability rating and the performance parameter of each intelligent home device in multiple intelligent home device.
Specifically, in the embodiment of the present application, in intelligent home device, ability rating is provided with in advance.In specific implementation process, ability rating can be set according to the operating system of intelligent home device, the intelligent home device of such as Android system is set to highest-capacity grade, the intelligent home device ability rating of Linux system takes second place, and the ability rating of the intelligent home device of Single Chip Microcomputer (SCM) system is minimum.Ability rating can also be set according to the network type of intelligent domestic system, the ability rating such as with the intelligent home device of wireless network module is the first order, and the ability rating without the intelligent home device of wireless network module is the second level lower than the first order.The application those of ordinary skill in the field can be arranged according to actual, and the application does not do concrete restriction.
For convenience of introducing, suppose that the ability rating in the embodiment of the present application is followed successively by A, B, C and D level Four from high to low, and the ability that each rank specifically represents is:
A level: using Android system as operating system, disposal ability is strong, and internal memory is large, and possesses wireless network module;
B level: using linux or class Linux system as operating system, disposal ability is comparatively strong, and internal memory is comparatively large, possesses wireless network module;
C level: be system with single-chip microcomputer, ability is poor, and internal memory is less, has or does not have wireless network module;
D level: without operating system, poor arithmetic ability, does not have wireless network module.
In the embodiment of the present application, the specific implementation process of S102 can comprise:
According to the ability rating of described first intelligent home device and the ability rating of described multiple intelligent home device, determine that at least one intelligent home device that described ability rating is the highest is at least one optional equipment;
From at least one optional equipment described, determining that described performance parameter meets a pre-conditioned optional equipment is described second intelligent home device.
Specifically, in order to select the second the strongest intelligent home device of network capabilities, first, first intelligent home device, from the ability rating of the first intelligent home device and the ability rating of multiple intelligent home device, determines that at least one intelligent home device that ability rating is the highest is at least one optional equipment.
Further, when at least one optional equipment specifically only has one, directly can determine that this optional equipment is the second intelligent home device.And when at least one optional equipment is multiple, also need from least one optional equipment, to filter out an optional equipment as the second intelligent home device.
Specifically, on the one hand, the performance parameter in the embodiment of the present application can for representing intelligent home device ability in a certain respect, and such as embody the memory usage of response speed, reflect the bandwidth etc. uploading download capabilities, the application does not do concrete restriction.And then, the intelligent home device that the pre-conditioned expression performance parameter in the embodiment of the present application is best.So the performance parameter of the more multiple optional equipment of the first intelligent home device, determines that the optional equipment that wherein performance parameter is best is the second intelligent home device.
For example, ability rating foregoing A, B, C and D is supposed.Intelligent domestic system comprises 5 intelligent home devices, is respectively A1 equipment, A2 equipment, B equipment, C equipment and D equipment.Wherein the ability rating of A1 equipment is A level, and the ability rating of A2 equipment is A level, and the ability rating of B equipment is B level, and the ability rating of C equipment is C level, and the ability rating of D equipment is D level.First intelligent home device is assumed to be B equipment.B equipment obtains the ability rating of all the other 4 intelligent home devices, and is determined by contrast, and the ability of A1 equipment and A2 equipment is the highest, therefore A1 equipment and A2 equipment is defined as optional equipment.
Further hypothesis performance parameter is for using residual life.The use residual life that the performance parameter that first intelligent home device receives is specially A1 equipment is 18 years, and the use residual life of A2 equipment is 10 years.Owing to using the wearing and tearing of the longer intelligent home device of residual life usual device comparatively light, response speed is very fast, thus use the longer intelligent home device of residual life be more suitable for do gateway.Therefore, the first intelligent home device determines that A1 equipment is the second intelligent home device.
On the other hand, performance parameter also can not represent intelligent home device ability in a certain respect, and represent the difference between each intelligent home device, such as (media interviews control MAC, MediaAccessControl) address, free translation is the subnet size etc. of address, IP (agreement interconnected between network, InternetProtocol), and the application does not do concrete restriction.And then pre-conditioned in the embodiment of the present application can be just the condition of any corresponding performance parameter, the subnet of such as Stochastic choice or IP is minimum etc., and the application does not do concrete restriction.So according to pre-conditioned, the first intelligent home device determines that one of them optional equipment is the second intelligent home device.
Continue to use example above, from 5 equipment, determine that A1 equipment and A2 equipment are optional equipment.Further hypothesis performance parameter is the subnet size of IP, and pre-conditioned be that the subnet of IP is minimum.So the first intelligent home device, from A1 equipment and A2 equipment from determining that the minimum intelligent home device of the subnet of IP is the second intelligent home device, is assumed to be A1 equipment.
Further, be connected with high in the clouds because all intelligent home devices in intelligent domestic system all pass through the second intelligent home device, so, if when the second Smart Home cannot be connected with high in the clouds extremely, all intelligent home devices will be caused all cannot to be connected with high in the clouds, so, in another embodiment of the application, when the second smart machine is not the first intelligent home device, after S102, further comprise:
Judge that whether described second intelligent home device is abnormal;
When described second Smart Home is abnormal, according to network capabilities and the described network capabilities collection of described first intelligent home device, determining from the intelligent home device beyond the second intelligent home device described in described first intelligent home device and described multiple intelligent home device can as the 3rd intelligent home device of gateway.
Specifically, in the embodiment of the present application, the first intelligent home device can judge by the heartbeat packet judging whether to receive the second intelligent home device on time that whether the second intelligent home device is abnormal.When the first intelligent home device does not receive heartbeat packet on time, determine that the second intelligent home device is abnormal.Or when the first Smart Home needs to send successful feedback information by the second intelligent home device to the expression not receiving the second intelligent home device feedback during the transmission information of high in the clouds, determine that the second intelligent home device is abnormal.In specific implementation process, can also judge that whether the second intelligent home device is abnormal by other means, such as whether receive the information etc. of high in the clouds timed sending, the application those of ordinary skill in the field can be arranged according to actual, and the application does not do concrete restriction.
When the first intelligent home device determines that the second intelligent home device is abnormal, in order to not continue to be connected with high in the clouds by the impact of the second intelligent home device exception, the first intelligent home device can substitute three intelligent home device of the second intelligent home device as gateway using again determining from the multiple intelligent home devices beyond the first intelligent home device and the second intelligent home device.
In the embodiment of the present application, the first intelligent home device redefines the process of the 3rd intelligent home device and determines the process of the second intelligent home device, and just it is no longer repeated here.
Continue to use above A2 equipment as the example of the second intelligent home device.When after A2 unit exception, B equipment obtains the ability rating of all the other 3 intelligent home devices, and is determined by contrast, and the ability of A2 equipment is the highest, therefore A2 equipment is defined as optional equipment.Because now optional equipment only has A2 equipment, so B equipment directly can determine that A2 equipment is the 3rd intelligent home device.
Seen from the above description, when the first intelligent home device is not the second intelligent home device, first intelligent home device using the second intelligent home device after gateway, if the second intelligent home device occurs abnormal, first intelligent home device is by network capabilities and the network capabilities collection again according to the first intelligent home device, and determining can as the 3rd intelligent home device of gateway.So, solve gateway box in prior art and extremely cause the technical problem that all intelligent home devices all cannot be connected with high in the clouds, even if the second intelligent home device is abnormal, first Smart Home and other Smart Homes also can be connected with high in the clouds by the 3rd intelligent home device again, and then not by the second intelligent home device anomalous effects.
In another embodiment of the application, the second intelligent home device is specially the first intelligent home device, and then after S102, the first intelligent home device also will perform:
Receive the connection request that described multiple intelligent home device sends;
Based on described connection request, be connected with described multiple intelligent home device;
Set up the connection with high in the clouds, be transmitted to intelligent home device corresponding in described multiple intelligent home device with the first information sent in described high in the clouds, and the second information that at least one intelligent home device in described multiple intelligent home device sends is transmitted to high in the clouds.
Specifically, multiple intelligent home device also can determine that same intelligent home device is the second intelligent home device, so, connection request can be sent to the first intelligent home device in the embodiment of the present application after determining, and then the first intelligent home device will receive connection request.
In the embodiment of the present application, connection request is used for request and the second intelligent home device, and namely the first intelligent home device connects.The IP address of the intelligent home device sending connection request, MAC Address and/or port numbers etc. are included but not limited in connection request.And then the first intelligent home device, based on connection request, is connected with multiple intelligent home device.
In addition, first intelligent home device is determined certainly as the second smart machine, to connect with high in the clouds, and then, the first information that high in the clouds sends can be transmitted to intelligent home device corresponding in multiple intelligent home device on the one hand, and the second information that at least one intelligent home device in multiple intelligent home device sends is transmitted to high in the clouds.On the other hand, receive the 3rd information that high in the clouds sends to self, and need the 4th information sent to high in the clouds to send to high in the clouds self.
In another embodiment of the application, the second intelligent home device is specially the arbitrary intelligent home device in multiple intelligent home device, and then after S102, the first intelligent home device also will perform:
Connection request is sent, to be connected with described second intelligent home device to described second intelligent home device;
Receive the first information of the described high in the clouds transmission that described second smart machine forwards, or by described second intelligent home device, the second information is transmitted to high in the clouds.
Specifically, when the second intelligent home device is not the first intelligent home device, and when being any one in multiple intelligent home device, after first intelligent home device determines the second intelligent home device, in order to be connected with high in the clouds by the second intelligent home device, the first intelligent home device will send connection request to the second intelligent home device.Connection request is used for request and connects with the second intelligent home device.The IP address of the first intelligent home device, MAC Address and/or port numbers etc. are included but not limited in connection request.And then the second intelligent home device, based on connection request, is connected with the first intelligent home device.After other intelligent home devices determine the second intelligent home device, also will send connection request to the second intelligent home device.
After being connected with the second intelligent home device, when the second intelligent home device receive high in the clouds send to the first information of the first intelligent home device time, the first intelligent home device will receive the second intelligent home device and forward and the first information that comes.And when the first intelligent home device needs to send the second information to high in the clouds, the second information is sent to the second intelligent home device, and then the second information is transmitted to high in the clouds by the second intelligent home device.
Based on the inventive concept same with information processing method in previous embodiment, the application's second aspect also provides a kind of intelligent home device, as shown in Figure 2, comprising:
Obtain unit 201, for obtaining the network capabilities collection of multiple intelligent home device;
Determining unit 202, for according to the network capabilities of intelligent home device and network capabilities collection, determining from intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway.
Specifically, the network capabilities of intelligent home device comprises ability rating and the performance parameter of intelligent home device, network capabilities collection comprises ability rating and the performance parameter of multiple intelligent home device, determining unit 202, for according to the ability rating of the first intelligent home device and the ability rating of multiple intelligent home device, determines that at least one intelligent home device that ability rating is the highest is at least one optional equipment; From at least one optional equipment, determining that performance parameter meets a pre-conditioned optional equipment is the second intelligent home device.
Further, when the second smart machine is not intelligent home device, intelligent home device also comprises:
Judging unit, for determine from intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway after, judge that the second intelligent home device is whether abnormal;
Determining unit 202 is also for when the second Smart Home is abnormal, according to network capabilities and the network capabilities collection of intelligent home device, determining in the intelligent home device from intelligent home device and multiple intelligent home device beyond the second intelligent home device can as the 3rd intelligent home device of gateway.
Optionally, when the second intelligent home device is intelligent home device, intelligent home device also comprises:
Transmit-Receive Unit, for determine from intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway after, receive multiple intelligent home device send connection request;
First linkage unit, for based on connection request, is connected with multiple intelligent home device;
Second linkage unit, for setting up the connection with high in the clouds, be transmitted to intelligent home device corresponding in multiple intelligent home device with the first information sent in high in the clouds, and the second information that at least one intelligent home device in multiple intelligent home device sends is transmitted to high in the clouds.
Optionally, when the second intelligent home device is the arbitrary intelligent home device in multiple intelligent home device, intelligent home device also comprises:
Transmit-Receive Unit, for determine from the first intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway after, to second intelligent home device send connection request, to be connected with the second intelligent home device; Receive the first information of the high in the clouds transmission that the second smart machine forwards, and by the second intelligent home device, the second information is transmitted to high in the clouds.
The various variation pattern of the information processing method in earlier figures 1 embodiment and instantiation are equally applicable to the intelligent home device of the present embodiment, by the aforementioned detailed description to information processing method, those skilled in the art clearly can know the implementation method of intelligent home device in the present embodiment, so succinct in order to specification, be not described in detail in this.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
1, in the technical scheme of the embodiment of the present application, first the first intelligent home device obtains the network capabilities collection of the multiple intelligent home devices be connected with self.Then, according to network capabilities and the network capabilities collection of the first intelligent home device, determining from the first intelligent home device and multiple intelligent home device can as the second intelligent home device of gateway.So, determine that the second intelligent home device is as gateway, substitute gateway box, and be connected with high in the clouds by the second intelligent home device, make user need not buy separately gateway box again, for user has saved cost.
2, further, when the first intelligent home device is not the second intelligent home device, first intelligent home device using the second intelligent home device after gateway, if the second intelligent home device occurs abnormal, first intelligent home device is by network capabilities and the network capabilities collection again according to the first intelligent home device, and determining can as the 3rd intelligent home device of gateway.So, solve gateway box in prior art and extremely cause the technical problem that all intelligent home devices all cannot be connected with high in the clouds, even if the second intelligent home device is abnormal, first Smart Home and other Smart Homes also can be connected with high in the clouds by the 3rd intelligent home device again, and then not by the second intelligent home device anomalous effects.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.