Summary of the invention
The purpose of the present invention is intended to solve above-mentioned one of technical problem at least to a certain extent.
For this purpose, the first purpose of this invention be to propose a kind of smart home device with network method.This method is not necessarily to
Quick distribution can be realized by external equipment, save human and material resources resource, have very high convenience, and user with
The internal circuit of smart home device does not have direct contact, without personal security risk, improves user's overall experience.
Second object of the present invention is to propose a kind of network distribution device of smart home device.
Third object of the present invention is to propose a kind of smart home device.
Fourth object of the present invention is to propose another smart home device.
5th purpose of the invention is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above objectives, first aspect present invention embodiment propose smart home device match network method, it is described
Smart home device has photosensitive sensor, which comprises obtains the collected illumination brightness letter of the photosensitive sensor
Breath;Judge whether the illumination luminance information meets preset condition;If satisfied, then sending the request that networks to intelligent gateway, wherein
The intelligent gateway requests to carry out with net operation the smart home device according to the networking.
Smart home device according to an embodiment of the present invention matches network method, can obtain the collected illumination of photosensitive sensor
Luminance information, and judge whether illumination luminance information meets preset condition, if satisfied, the request that networks then is sent to intelligent gateway,
Wherein, intelligent gateway carries out with net operation, i.e., during entire distribution, without borrowing smart home device according to request is networked
It helps external equipment that quick distribution can be realized, saves human and material resources resource, there is very high convenience, and user and intelligence
The internal circuit of energy home equipment does not have direct contact, without personal security risk, improves user's overall experience.
In order to achieve the above objectives, the network distribution device for the smart home device that second aspect of the present invention embodiment proposes, it is described
Smart home device has photosensitive sensor, and described device includes: acquisition module, is collected for obtaining the photosensitive sensor
Illumination luminance information;Judgment module, for judging whether the illumination luminance information meets preset condition;Sending module is used
In when the illumination luminance information meets the preset condition, the request that networks is sent to intelligent gateway, wherein the intelligent network
It closes and the smart home device is carried out with net operation according to networking request.
The network distribution device of smart home device according to an embodiment of the present invention can obtain photosensitive sensor by obtaining module
Collected illumination luminance information, judgment module judge whether illumination luminance information meets preset condition, if satisfied, sending module
Then the request that networks is sent to intelligent gateway, wherein intelligent gateway carries out with net operation smart home device according to request is networked,
I.e. during entire distribution, quick distribution can be realized without external equipment, save human and material resources resource, have
Very high convenience, and user does not have with the internal circuit of smart home device and directly contacts, and without personal security risk, mentions
User's overall experience is risen.
In order to achieve the above objectives, the smart home device that third aspect present invention embodiment proposes, comprising: light sensor
Device, for the illumination luminance information around acquiring;And the smart home device as described in second aspect of the present invention embodiment
Network distribution device.
Smart home device according to an embodiment of the present invention can obtain the collected light of photosensitive sensor by obtaining module
According to luminance information, judgment module judges whether illumination luminance information meets preset condition, if satisfied, sending module is then to intelligent network
It closes and sends the request that networks, wherein intelligent gateway entirely matching with net operation to smart home device according to request is networked
In network process, quick distribution can be realized without external equipment, save human and material resources resource, it is very high convenient to have
Property, and user does not have with the internal circuit of smart home device and directly contacts, and without personal security risk, it is whole to improve user
Body experience.
In order to achieve the above objectives, the smart home device that fourth aspect present invention embodiment proposes, including photosensitive sensor,
Memory, processor and storage on a memory and the computer program that can run on a processor, processor execution institute
When stating program, that realizes smart home device described in first aspect present invention embodiment matches network method.
In order to achieve the above objectives, the non-transitorycomputer readable storage medium that fifth aspect present invention embodiment proposes,
It is stored thereon with computer program, intelligence described in first aspect present invention embodiment is realized when described program is executed by processor
Home equipment matches network method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the distribution method, apparatus and smart home of the smart home device of the embodiment of the present invention are described
Equipment.
Fig. 1 is the flow chart with network method of smart home device according to an embodiment of the invention.It needs to illustrate
It is that the smart home device that can be applied to the embodiment of the present invention with network method of the smart home device of the embodiment of the present invention is matched
Net device.Wherein, which is configured in smart home device.
It should also be noted that, the embodiment of the present invention smart home device with network method can be from smart home device side
It is described.Wherein, which can have photosensitive sensor.
As shown in Figure 1, the smart home device may include: with network method
S110 obtains the collected illumination luminance information of photosensitive sensor.
It should be noted that the photosensitive sensor in smart home device can be used for acquiring the illumination luminance information of surrounding.
Smart home device can obtain the collected illumination luminance information of photosensitive sensor institute.
S120, judges whether illumination luminance information meets preset condition.
It should be noted that the difference of the content of above-mentioned illumination luminance information, then above-mentioned whether to judge illumination luminance information
The implementation for meeting preset condition also can be different.The implementation of two different deterministic processes is presented below:
As an example, above-mentioned to judge whether illumination luminance information is full when illumination luminance information is illumination brightness value
The specific implementation process of sufficient preset condition can be as follows: judging whether illumination brightness value is greater than or equal to preset threshold.More specifically,
When getting photosensitive sensor currently collected illumination brightness value, it can determine whether current illumination brightness value is greater than or waits
In preset threshold, if so, can determine that illumination luminance information meets preset condition.For example, user can be by mobile terminal
Flashlight application program or other equipment with light-emitting function, when being irradiated against the photosensitive sensor, the light sensor
Device can collect stronger illumination brightness value, if the illumination brightness value is greater than or equal to the preset threshold, can determine that illumination
Whether luminance information meets preset condition.
As another example, above-mentioned illumination luminance information may include multiple illumination brightness values, wherein multiple illumination
Brightness value is in regularity variation.In this way, it is default to can determine whether multiple illumination brightness value meets in the variation of regularity at this time
Rule variation.
In this example, in order to obtain the illumination luminance information comprising multiple illumination brightness values, when can obtain default
The interior collected illumination luminance information of photosensitive sensor.It is in this example, above-mentioned that judge whether illumination luminance information meets pre-
If the specific implementation process of condition can be as follows: according to illumination luminance information, judging that the rule of illumination brightness within a preset time becomes
Change and whether meets preset condition.
More specifically, when getting the collected illumination luminance information of photosensitive sensor in preset time, it can be according to this
Illumination luminance information, judges whether rule variation of the illumination brightness in the preset time meets preset condition, such as whether meeting
Preset rule variation, if so, can determine that illumination luminance information meets preset condition.For example, user can using palm or its
He adopts photosensitive sensor such as double swerve 5 times in 3 seconds at shaking of the convenient shelter at photosensitive sensor or so faster
The illumination brightness of collection generate in the preset time (such as 3 seconds) it is apparent " it is bright -> dark -> bright -> dark -> bright -> dark -> bright -> dark -> bright-
> dark " rule variation, judge whether rule variation meets preset rule variation, if so, can determine that illumination luminance information is
It is no to meet preset condition.
S130, if satisfied, then sending the request that networks to intelligent gateway, wherein intelligent gateway is according to the request that networks to intelligence
Home equipment is carried out with net operation.
It specifically, can be to the intelligence for allowing to be added intelligent home network when judging that illumination luminance information meets preset condition
It can gateway transmission networking request.Intelligent gateway, can be with the intelligence man in the networking request for receiving smart home device transmission
It occupies equipment and carries out network matching operation, and the Internet resources distributed for the smart home device are fed back into the smart home and are set
It is standby.Wherein, which may include but be not limited to network ip address, network speed size etc..
As an example, which can be intelligent switch panel.In one embodiment of the invention, intelligence
Can there can be photosensitive sensor in switch panel, and when compounding method through the embodiment of the present invention is added to intelligent gateway,
Intelligent gateway can control other smart home devices by the intelligent switch panel, for example, the intelligent lamp in openable parlor, adjusting
The brightness etc. of the intelligent lamp.
Optionally, intelligent gateway can also according to the collected illumination luminance information of photosensitive sensor in intelligent switch panel into
The linkage of row device context.For example, IFTTT linkage rule can be preset, wherein the trigger condition in linkage rule can be
It is related with the collected illumination luminance information of photosensitive sensor, for example illumination brightness value is greater than certain threshold value etc., linkage rule
In execution movement can be open parlor intelligent lamp, in this way, in the illumination brightness for detecting that photosensitive sensor currently acquires
It, can be according to the corresponding intelligence of execution action control in above-mentioned linkage rule when information meets the trigger condition in above-mentioned linkage rule
It can household progress corresponding operation.
In order to enable those skilled in the art clearly understands the present invention, below in conjunction with Fig. 2 to of the invention real
Apply being described further with network method for example.In the present embodiment, by taking smart home device is intelligent switch panel as an example.
For example, as shown in Fig. 2, non-distribution mode can be entered when intelligent switch panel is powered after mounting.Intelligent switch face
Switch key on the operation panel of plate can control the switch relevant operation of the equipment such as intelligent lamp, curtain, wherein the intelligent lamp,
The equipment such as curtain can be connected by way of physical connection with the switch key on the operation panel.When user using palm or its
His portable shelter is at the photosensitive sensor of intelligent switch panel, and when left and right is faster shaken, such as double swerve 5 in 3 seconds
It is secondary, the illumination brightness that photosensitive sensor can be made to acquire generate in the preset time (such as 3 seconds) it is apparent " it is bright -> dark -> bright -> dark ->
It is bright -> dark -> bright -> dark -> bright -> dark " rule variation.Intelligent switch panel detect the rule variation meet preset rule
When variation, triggerable equipment enters distribution mode, and intelligent switch panel begins look for the network that can be added at this time, and the duration can
It is set as 60s.
Intelligent gateway can be arranged or be triggered by application APP included physical button and enter " equipment is allowed to network " mould
Formula, duration can be set as 60s.Intelligent switch panel, can be to the intelligence in the intelligent home network for searching the intelligent gateway
Energy gateway sends the request that networks, and intelligent gateway responds the networking and requests and be intelligent switch panel distribution Internet resources, so that
The intelligent switch panel enters the intelligent home network, with complete intelligent switch panel with net operation.Intelligent gateway is detecting
When the intelligent home network has been added to intelligent switch panel, can pass hull closure networking channel, and the switch can be monitored by APP
The real-time status of panel, also, also wireless control can be carried out to the intelligent switch panel by APP or linkage condition.
Smart home device according to an embodiment of the present invention matches network method, can obtain the collected illumination of photosensitive sensor
Luminance information, and judge whether illumination luminance information meets preset condition, if satisfied, the request that networks then is sent to intelligent gateway,
Wherein, intelligent gateway carries out with net operation, i.e., during entire distribution, without borrowing smart home device according to request is networked
It helps external equipment that quick distribution can be realized, saves human and material resources resource, there is very high convenience, and user and intelligence
The internal circuit of energy home equipment does not have direct contact, without personal security risk, improves user's overall experience.
With a kind of embodiment corresponding, of the invention with network method for the smart home device that above-mentioned several embodiments provide
A kind of network distribution device of smart home device is also provided, due to the network distribution device of smart home device provided in an embodiment of the present invention
It is corresponding with network method with smart home device that above-mentioned several embodiments provide, therefore matching in aforementioned intelligent home equipment
The embodiment of network method is also applied for the network distribution device of smart home device provided in this embodiment, in the present embodiment no longer
Detailed description.Fig. 3 is the structural schematic diagram of the network distribution device of smart home device according to an embodiment of the invention.It needs
Bright, in an embodiment of the present invention, which can have photosensitive sensor.As shown in figure 3, the smart home
The network distribution device of equipment may include: to obtain module 310, judgment module 320 and sending module 330.
Specifically, obtaining module 310 can be used for obtaining the collected illumination luminance information of photosensitive sensor.
Judgment module 320 can be used for judging whether illumination luminance information meets preset condition.It should be noted that above-mentioned light
It is according to the difference of the content of luminance information, then above-mentioned to judge whether illumination luminance information meets the implementation of preset condition and also
Together.The implementation of two different deterministic processes is presented below:
As an example, when illumination luminance information is illumination brightness value, judgment module 320 can determine whether illumination brightness value
Whether preset threshold is greater than or equal to.
As another example, above-mentioned illumination luminance information may include multiple illumination brightness values, wherein multiple illumination
Brightness value is in regularity variation.In this way, it is default to can determine whether multiple illumination brightness value meets in the variation of regularity at this time
Rule variation.
In this example, in order to obtain the illumination luminance information comprising multiple illumination brightness values, obtaining module 310 can
Obtain the collected illumination luminance information of photosensitive sensor in preset time.In this example, judgment module 320 can be according to illumination
Luminance information, judges whether the rule variation of illumination brightness within a preset time meets preset condition.
Sending module 330 can be used for when illumination luminance information meets preset condition, send the request that networks to intelligent gateway,
Wherein, intelligent gateway carries out with net operation smart home device according to request is networked.
As an example, smart home device can be intelligent switch panel.In one embodiment of the invention, intelligence
There can be photosensitive sensor in switch panel, and when formulation device through the embodiment of the present invention is added to intelligent gateway, intelligence
Energy gateway can control other smart home devices by the intelligent switch panel, for example, the intelligent lamp in openable parlor, adjusting should
The brightness etc. of intelligent lamp.
The network distribution device of smart home device according to an embodiment of the present invention can obtain photosensitive sensor by obtaining module
Collected illumination luminance information, judgment module judge whether illumination luminance information meets preset condition, if satisfied, sending module
Then the request that networks is sent to intelligent gateway, wherein intelligent gateway carries out with net operation smart home device according to request is networked,
I.e. during entire distribution, quick distribution can be realized without external equipment, save human and material resources resource, have
Very high convenience, and user does not have with the internal circuit of smart home device and directly contacts, and without personal security risk, mentions
User's overall experience is risen.
In order to realize above-described embodiment, the invention also provides a kind of smart home devices.
Fig. 4 is the structural schematic diagram of smart home device according to an embodiment of the invention.As shown in figure 4, the intelligence
Home equipment 40 may include: the network distribution device 42 of photosensitive sensor 41 and smart home device.
Specifically, photosensitive sensor 41 can be used for acquiring the illumination luminance information of surrounding.
The concrete function of network distribution device 42 can be found in the specific function of the network distribution device of above-mentioned smart home device shown in Fig. 3
It can describe, details are not described herein.
Smart home device according to an embodiment of the present invention can obtain the collected light of photosensitive sensor by obtaining module
According to luminance information, judgment module judges whether illumination luminance information meets preset condition, if satisfied, sending module is then to intelligent network
It closes and sends the request that networks, wherein intelligent gateway entirely matching with net operation to smart home device according to request is networked
In network process, quick distribution can be realized without external equipment, save human and material resources resource, it is very high convenient to have
Property, and user does not have with the internal circuit of smart home device and directly contacts, and without personal security risk, it is whole to improve user
Body experience.
In order to realize above-described embodiment, the invention also provides another smart home devices.
Fig. 5 is the structural schematic diagram of smart home device in accordance with another embodiment of the present invention.As shown in figure 5, the intelligence
Energy home equipment 50 may include: photosensitive sensor 51, memory 52, processor 53 and be stored on memory 52 and can locate
The computer program 54 run on reason device 53 when processor 53 executes described program 54, is realized as the present invention any of the above-described real
That applies smart home device described in example matches network method.
In order to realize above-described embodiment, the invention also provides a kind of non-transitorycomputer readable storage mediums, thereon
It is stored with computer program, the intelligence as described in any of the above-described a embodiment of the present invention is realized when described program is executed by processor
Home equipment matches network method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.