A kind of location-based home intelligent lamp control method and system
Technical field
The present invention relates to field of intelligent control more particularly to a kind of location-based home intelligent lamp control method and system.
Background technique
Lamps intelligent control is to transmit X10 using power line carrier technology and power line information based on power line network
Agreement realizes the various controls such as remote control using telephone, centralized control, wireless remote control, computer control, timing controlled, network-control
Mode, and provide light it is soft open, dim, brightness memory, intelligent operations and the management such as Episodic Memory.
The characteristics of lamps intelligent control is: system uses Modular Structure Design, simple and flexible, easy for installation.It controls back
Road is separated with load circuit, and the lamps and lanterns in each circuit are directly connected on output equipment, and all devices are passed through 4 core low-voltage cables
(ensuring personal safety) is linked to be network, then controls lamplight scene by input equipment (touch screen, panel).According to environment and use
The variation of family demand need to only do software modification setting or a small amount of track remodelling, so that it may realize the change and function of light layout
Expand.
The control information separate storage of each equipment in lamps intelligent control, arbitrary equipment damage nor affect on its in this system
Its equipment works normally, and will not more cause systemic breakdown.The information of storage does not lose data function after having power failure, is restoring electricity
When, system can automatically restore to the working condition before having a power failure.Equipped with " soft start " function to prevent high starting electricity in system equipment
The permanent damage of lamps and lanterns caused by stream or thermal shock.Lamps intelligent control function is arranged by software, can be passed through
Software realization: switch, light modulation, on the spot control, multiparty control, remote control, region control etc..In use, simply by touching
Touching operation can handoff scenario.Lamps intelligent control can be easily other related in arenas, TV station studio
Control and management system are (such as large-scale studio hall stage light control system, multimedia intercommunication system, security system, BA system
System, fire-fighting system etc.) platform realize extension and connection, realize the management mode of " more net unification, resource-sharing ".
Under the trend of smart home development, family room light will be towards energy-saving, health and the side of hommization
To development.Existing lamps intelligent control is generally by the way of physical switch, or such as according to the threshold intensities of some signals
Sound, light etc. carry out.The development of smart home so that signal light control mode is transferred to APP or Intelligent touch terminal, however this
The control mode of a little too busy to get away active operations can stamp discount to intelligence experience.The present invention uses location-based control method,
Positioning based on user automatically controls the light near user, while the hand of corresponding light can be provided on intelligent terminal
Dynamic control function, meets use demand of the user under different scenes.The intelligence carried based on user location, the position by user
Energy terminal carries out indoor positioning to it, and according to the positioning as the foundation controlled neighbouring light;Simultaneously according to positioning
The control interface of neighbouring light is provided at the terminal as spare control mode, goes which is selected by terminal without user
Light is as control object.More intelligent experience is provided for user.
The patent of Publication No. CN105430838A provides a kind of method of signal light control based on location-based service, packet
It includes: controlling the method for lighting system by way of a kind of location-based service based on Ibeacon.Ibeacon is a kind of aerogram
Mark, is being broadcasted always, when personnel hold the smart phone (loading specific APP software) or specific hardware mould with bluetooth
The Ibeacon equipment that block (with bluetooth and cable mouth or Wi-Fi module) detects, the smart phone (dress with bluetooth
Carry specific APP software) either specific hardware module (with bluetooth and cable mouth or Wi-Fi module) is by mobile phone network
Either local Wi-Fi network or local area network carry out light controling signal transmission.To transmit data to lamp dimmer.
Lamp dimmer receives signal generation movement, and light is the movement that is triggered.This mode is used in home environment under many scenes
It is all not applicable.
The patent of Publication No. CN105813286A provides a kind of lamps intelligent control method, comprising: detection object
Signal;Based on detection case, the location of object analysis and the direction of motion;It will be located in front of object on movement direction of object
Lighting device is opened, and the lighting device at rear is closed.Method of this method based on this simple scenario in passageway is in room ring
There is also uncomfortable problems under border.
Summary of the invention
The technical problem to be solved in the present invention is designed to provide a kind of location-based home intelligent lamp prosecutor method and is
System, to solve the problems, such as that the prior art needs manual operation physical switch or terminal APP to complete.
To achieve the goals above, the technical solution adopted by the present invention are as follows:
A kind of location-based home intelligent lamp prosecutor method, comprising steps of
Obtain the status information and location information of user;
Judge whether the user is in sleep state, if so, light keeps OFF state;Otherwise, according to the user
Location information control light status.
Further, the status information of the user and location information are obtained by the intelligent terminal that the user carries.
Further, light status is controlled according to the location information of the user, specifically includes step:
Judge neighbouring light at a distance from the user whether less than the first value, if so, the light is set as all light
State;Otherwise, judge whether the neighbouring light is less than second value at a distance from the user, if so, the light is set as
Half bright state, otherwise, the light keep OFF state.
Further, light status is controlled according to the location information of user, specifically includes step:
According to user's travel path of anticipation, the light on user's travel path is set as half bright state;
After the travel path for obtaining the user, the close light of the user is set as light state, by the user
The light of separate light state is converted to half bright state and extinguishes after being kept for a period of time.
Further, the light shape in the user preset distance is adjusted in the operation of intelligent terminal according to the user
State.
A kind of location-based home intelligent lighting control system, comprising:
Locating module obtains the status information and location information of user;
Control module, including controller, for judging whether the user is in sleep state, if so, light holding is put out
It goes out state;Otherwise, light status is controlled according to the location information of the user.
Further, the locating module includes:
Intelligent terminal, for the status information of the user and location information to be sent to control module.
Further, control module be also used to judge neighbouring light at a distance from the user whether less than the first value, if
It is that the light is set as light state;Otherwise, judge the neighbouring light at a distance from the user whether less than second
Value, if so, the light is set as half bright state, otherwise, the light keeps OFF state.
Further, control module is also used to the light on user's travel path by anticipation and is set as half bright state;It obtains
After the travel path of the user, the close light of the user is set as light state, by the separate all light shape of the user
The light of state is converted to half bright state and extinguishes after being kept for a period of time.
Further, control module is also used to the operation according to the user in intelligent terminal, adjusts the user preset
Light status in distance.
Compared with prior art, the present invention having the following advantages:
It is positioned by the intelligent terminal that user carries 1. the present invention is based on user locations, and according to positioning conduct pair
Neighbouring light is controlled, and is not necessarily to active operation, more intelligently.
2. the present invention provides the control interface of neighbouring light according to positioning as spare control mode at the terminal, it is not necessarily to
User goes to select which light as control object by terminal, and more convenient experience is provided for user.
Detailed description of the invention
Fig. 1 is a kind of location-based home intelligent lamp control method flow diagram that embodiment one provides;
Fig. 2 is a kind of location-based home intelligent lamp control method flow diagram that embodiment two provides;
Fig. 3 is a kind of location-based home intelligent lamp control method flow diagram that embodiment three provides;
Fig. 4 is a kind of location-based home intelligent lamp control method flow diagram that example IV provides;
Fig. 5 is a kind of location-based home intelligent lighting control system structure chart provided in an embodiment of the present invention.
Specific embodiment
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Embodiment one
A kind of location-based home intelligent lamp prosecutor method is present embodiments provided, comprising steps of
S11: the status information and location information of user are obtained;
S12: judging whether user is in sleep state, if so, light keeps OFF state;Otherwise, according to the position of user
Confidence breath control light status.
Smart home is the embodiment of the instrumentation under the influence of internet.Smart home will be in family by technology of Internet of things
Various equipment (such as audio & video equipment, lighting system, curtain control, airconditioning control, security system, Digital Theater Systems, audio-visual clothes
Business device, shadow cabinet system, network home appliance etc.) it connects together, home wiring control, Lighting control, remote control using telephone, indoor and outdoor are provided
The multiple functions such as remote control, burglar alarm, environmental monitoring, HVAC control, infrared forwarding and programmable Timer control and means.With
Common household is compared, and smart home not only has traditional inhabitation function, has both building, network communication, information household appliances, equipment certainly
Dynamicization provides comprehensive information exchange function, and even various energy expenditures save fund.
Home automation means using micro process electronic technology, Lai Jicheng or electric equipment products in control man or is
System, such as: headlamp, coffee stove, computer equipment, security system, heating and cold gas system, video signal and sound system etc..Family
After automated system mainly receives the message from associated electrical electric equipment products with a CPU microprocessor, then with set
Program sends appropriate information to other electric equipment products.CPU microprocessor must be transmitted through many interfaces to control in family
Electric equipment products, these interfaces can be keyboard, be also possible to touch screen, button, computer, telephone set, remote controler etc.;Consumption
Signal can be transmitted to CPU microprocessor, or signal of the reception from CPU microprocessor in person.Home automation is smart home
An important system, smart home on the first appearance, home automation is even equivalent to smart home, and today, it was still intelligence
Can household one of core, but as network technology has the commonly used of smart home, network home appliance/information household appliances maturation,
Many product functions of home automation will be dissolved into these new products, to make the simple home automation product be
Fewer and fewer in system design, core status will also be replaced by home network/home information system.It will be used as home network
In control network part play a role in smart home.
Lamps intelligent control is to transmit X10 using power line carrier technology and power line information based on power line network
Agreement realizes the various controls such as remote control using telephone, centralized control, wireless remote control, computer control, timing controlled, network-control
Mode, and provide light it is soft open, dim, brightness memory, intelligent operations and the management such as Episodic Memory.
The characteristics of lamps intelligent control is: system uses Modular Structure Design, simple and flexible, easy for installation.It controls back
Road is separated with load circuit, and the lamps and lanterns in each circuit are directly connected on output equipment, and all devices are passed through 4 core low-voltage cables
(ensuring personal safety) is linked to be network, then controls lamplight scene by input equipment (touch screen, panel).According to environment and use
The variation of family demand need to only do software modification setting or a small amount of track remodelling, so that it may realize the change and function of light layout
Expand.
The control information separate storage of each equipment in lamps intelligent control, arbitrary equipment damage nor affect on its in this system
Its equipment works normally, and will not more cause systemic breakdown.The information of storage does not lose data function after having power failure, is restoring electricity
When, system can automatically restore to the working condition before having a power failure.Equipped with " soft start " function to prevent high starting electricity in system equipment
The permanent damage of lamps and lanterns caused by stream or thermal shock.
Lamps intelligent control function is arranged by software, and software realization can be passed through: switch, light modulation, control on the spot,
Multiparty control, remote control, region control etc..In use, can handoff scenario simply by touch operation.
Lamps intelligent control can easily with the other relevant controls and management system in arenas, TV station studio
(such as large-scale studio hall stage light control system, multimedia intercommunication system, security system, BA system, fire-fighting system)
Platform realize extension and connection, realize the management mode of " more net unification, resource-sharing ".
Under the trend of smart home development, family room light will be towards energy-saving, health and the side of hommization
To development.Existing lamps intelligent control is generally by the way of physical switch, or such as according to the threshold intensities of some signals
Sound, light etc. carry out.The development of smart home so that signal light control mode is transferred to APP or Intelligent touch terminal, however this
The control mode of a little too busy to get away active operations can stamp discount to intelligence experience.The present invention uses location-based control method,
Positioning based on user automatically controls the light near user, while the hand of corresponding light can be provided on intelligent terminal
Dynamic control function, meets use demand of the user under different scenes.The intelligence carried based on user location, the position by user
Energy terminal carries out indoor positioning to it, and according to the positioning as the foundation controlled neighbouring light;Simultaneously according to positioning
The control interface of neighbouring light is provided at the terminal as spare control mode, goes which is selected by terminal without user
Light is as control object.More intelligent experience is provided for user.
In the present embodiment, the positioning of user is that the intelligent terminal carried based on it is realized, it is however generally that, intelligent terminal is one
Class embedded computer system equipment, therefore its architecture frame is consistent with embedded system architecture;Meanwhile intelligence
An application direction of the energy terminal as embedded system, application scenarios setting is more clear, and therefore, architecture is than general
Definitely, granularity is thinner for logical Embedded System Structure, and possess it is some itself the characteristics of.Specific positioning implementation includes logical
Cross Wi-Fi, zigbee etc..
Wi-Fi positioning is the indoor location tracking supported without any system.Belong to secondly, Wi-Fi positioning is opposite
Network-side service, rather than client functionality.Because incoming end (AP) can be deployed to any position, in client triangulation location sheet
Body use is little.After all, absolutely not any calculating reference mark here.But network can help location client end.This meeting
Lead to where client " does not know " oneself.Therefore also needing some additional steps just can determine that the position of client.
Operationally, the service of Wi-Fi position tracking is again very simple.Client can send some detecting data packets, observation
Which network is available.There are multiple AP possibly to be present in detecting client range.These AP can determine whether these detecting clients
The received signal strength index (RSSI) at end.The incidental system of core Wi-Fi network and application program can acquire and handle this
A little information, so that it is determined that position of each client relative to AP.
ZigBee is the low-power consumption LAN protocol based on IEEE802.15.4 standard.It is provided according to international standard,
ZigBee technology is the wireless communication technique of a kind of short distance, low-power consumption.This title (also known as ZigBee protocol) derives from honeybee
Eight words dance, due to honeybee (bee) be by circle in the air and " drone " (zig) shake wing " dancing " come and companion transmitting pollen
Place azimuth information, that is to say, that honeybee constitutes the communication network in group by such mode.Its main feature is that closely,
Low complex degree, self-organizing, low-power consumption, low data rate.It is mainly suitable for be embedded in for automatic control and remote control field
Various equipment.In brief, ZigBee is a kind of cheap, the near radio networking mechanics of communication of low-power consumption.ZigBee
It is a kind of wireless network protocol of low speed short-distance transmission.Zigbee protocol is respectively physical layer (PHY), media visit from top to bottom
Ask control layer (MAC), transport layer (TL), network layer (NWK), application layer (APL) etc..Wherein physical layer and MAC layer
Follow the regulation of IEEE 802.15.4 standard.ZigBee technology is exactly by laying a large amount of cheap reference in area to be targeted
Point forms a large-scale ad hoc network system between these reference modes, when area to be positioned through wireless communication
When the information of perceived object occurs in domain, the reference mode in communication distance can rapidly collect these information, while benefit
Other reference modes are conveyed information to the mode of routing broadcast, ultimately form an information linking and by information
Multistage jump returns to terminal computer and is pocessed, and the long-time of certain area is monitored and positioned to realize.
In the present embodiment, the status information of user is obtained, judges whether user is in sleep state.If so, light is kept
OFF state.The information that user is obtained by the intelligent terminal that user carries, automatically controls light.If detecting that user is in sleep
Dormancy state, controller close indoor whole light.User no longer needs to stand up to close light before sleeping, more intelligence and convenience.
If detecting that user is detached from sleep state by the intelligent terminal that user carries, the positioning of user is obtained.According to
The location information of user controls light status.
Wherein, light status includes all light, half bright and OFF state.It is controlled near user according to preset control method
Light.In all light, half is bright and OFF state in switch.
The present embodiment additionally provides a kind of location-based home intelligent lighting control system, as shown in Figure 5, comprising:
Locating module 51, for obtaining the status information and location information of user;
Control module 52, including controller, for judging whether user is in sleep state, if so, light keeps extinguishing
State;Otherwise, light status is controlled according to the location information of user.
In the present embodiment, locating module 51 includes intelligent terminal, for sending the status information of user and location information
To control module 52.Intelligent terminal is a kind of embedded computer system equipment, therefore its architecture frame and embedded system
System architecture is consistent;Meanwhile an application direction of the intelligent terminal as embedded system, application scenarios setting compared with
Be it is clear, therefore, definitely than common Embedded System Structure, granularity is thinner for architecture, and possess it is some itself
Feature.
Control module 52 includes controller, and controller refers to the wiring for changing main circuit or control circuit according to predetermined order
Starting, speed regulation, braking and reversely main that motor is controlled with resistance value in change circuit enable device.By program counter,
Command register, command decoder, clock generator and operation controller composition, it is publication order " policy-making body ", i.e.,
It completes coordination and commands the operation of entire computer system.The information that controller is obtained according to locating module 51 by intelligent terminal
To control light.
Embodiment two
A kind of location-based home intelligent lamp prosecutor method is present embodiments provided, as shown in Fig. 2, comprising steps of
S21: the status information of user is obtained;
S22: judging whether user is in sleep state, if so, light keeps OFF state;Otherwise, user location is obtained
Information;
S23: by the neighbouring light of customer position information judgement whether less than the first value at a distance from user, if so, by lamp
Light is set as light state;
S24: if neighbouring light is not less than the first value at a distance from user, judge whether neighbouring light is small at a distance from user
In second value, if so, light is set as half bright state, otherwise, light keeps OFF state.
In the present embodiment, according to the distance controlling light status of user and neighbouring light.Controller is carried by user
Intelligent terminal obtains the position of user, judges user and neighbouring light distance.It is L apart from second value if the first value of distance is M,
If user is d at a distance from neighbouring light;
If d < M, light is set as light state;If M≤d < L, light are set as half bright state.
The present embodiment additionally provides a kind of location-based home intelligent lighting control system, as shown in figure 5, not with embodiment one
It is with place,
Control module 52, including controller, for judging whether user is in sleep state, if so, light keeps extinguishing
State;Otherwise, the location information of user is obtained.Judge whether neighbouring light is less than at a distance from user by customer position information
First value, if so, light is set as light state;Otherwise, judge whether neighbouring light is less than second value at a distance from user, if
It is that light is set as half bright state, otherwise, light keeps OFF state.
Embodiment three
A kind of location-based home intelligent lamp prosecutor method is present embodiments provided, as shown in figure 3, comprising steps of
S31: the status information of user is obtained;
S32: judging whether user is in sleep state, if so, light keeps OFF state;Otherwise, user location is obtained
Information;
S33: according to user's travel path of anticipation, the light on user's travel path is set as half bright state;
S34: after the travel path for obtaining user, being set as light state for the close light of user, by separate complete of user
The light of bright state is converted to half bright state and extinguishes after being kept for a period of time.
In the present embodiment, light is controlled according to the travel path of anticipation and the user obtained, reduces manual switch lamp
The step of light, user experience are more intelligent.And when prejudging user's travel path, it is first set as half bright state, not only energy conservation but also energy
For user's illumination, kill two birds with one stone.After the travel path for obtaining user, after user is far from the light of light state, first convert
For half bright state, extinguish again after being kept for a period of time.Facilitate user to turn round and selects other paths, it is also more energy saving.
The present embodiment additionally provides a kind of location-based home intelligent lighting control system, as shown in figure 5, with embodiment one,
Two the difference is that:
Control module 52, including controller, for judging whether user is in sleep state, if so, light keeps extinguishing
State;Otherwise, the location information of user is obtained.According to user's travel path of anticipation, the light on user's travel path is set
For half bright state;After the travel path for obtaining user, the close light of user is set as light state, by the separate all light of user
The light of state is converted to half bright state and extinguishes after being kept for a period of time.
Example IV
A kind of location-based home intelligent lamp prosecutor method is present embodiments provided, as shown in figure 4, comprising steps of
S41: the status information of user is obtained;
S42: judging whether user is in sleep state, if so, light keeps OFF state;Otherwise, user location is obtained
Information;
S43: according to user in the operation of intelligent terminal, the light status in user preset distance is adjusted.
In the present embodiment, user operates in intelligent terminal, operation of the controller according to user in intelligent terminal, control
The state of light in pre-determined distance.User need to only convert the state of light on intelligent terminal, light state, half bright state or
OFF state intelligently controls the light in pre-determined distance without selecting light.It operates simpler, facilitates the behaviour of user
Make, the user experience is improved.
The present embodiment additionally provides a kind of location-based home intelligent lighting control system, as shown in figure 5, with embodiment one,
Two, three the difference is that:
Control module 52, including controller, for judging whether user is in sleep state, if so, light keeps extinguishing
State;Otherwise, the location information of user is obtained.According to user in the operation of intelligent terminal, the lamp in user preset distance is adjusted
Light state.
The present invention is based on user locations to position it by the intelligent terminal that user carries, and is used as according to the positioning to neighbour
Low beam light is controlled, and is not necessarily to active operation, more intelligently.
The present invention provides the control interface of neighbouring light according to positioning as spare control mode, without using at the terminal
Family is gone to select which light as control object by terminal, provides for user more convenient
Experience.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.