CN116113115B - Control method, device and equipment of lighting lamp and storage medium - Google Patents

Control method, device and equipment of lighting lamp and storage medium Download PDF

Info

Publication number
CN116113115B
CN116113115B CN202310133085.XA CN202310133085A CN116113115B CN 116113115 B CN116113115 B CN 116113115B CN 202310133085 A CN202310133085 A CN 202310133085A CN 116113115 B CN116113115 B CN 116113115B
Authority
CN
China
Prior art keywords
state
access point
wireless access
room
learning machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310133085.XA
Other languages
Chinese (zh)
Other versions
CN116113115A (en
Inventor
余亚利
周煊
卢铬坤
胡俊
杨碧婉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Earda Technologies Co ltd
Original Assignee
Earda Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Earda Technologies Co ltd filed Critical Earda Technologies Co ltd
Priority to CN202310133085.XA priority Critical patent/CN116113115B/en
Publication of CN116113115A publication Critical patent/CN116113115A/en
Application granted granted Critical
Publication of CN116113115B publication Critical patent/CN116113115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a control method, a device, equipment and a storage medium of a lighting lamp, wherein the method comprises the following steps: detecting the brightness of light in a room; if the brightness is smaller than or equal to a preset first threshold value, inquiring the user equipment accessed by the wireless access point; if the user equipment comprises a mobile terminal carried by a user belonging to a room, respectively starting a first learning machine, a second learning machine and a third learning machine; adding unified windows to the first state, the second state and the third state, and moving the windows; if the first state is moving, the second state is opening and closing and the third state is that the duty ratio of human body interference exceeds a preset second threshold value in the window, controlling the lighting lamp to emit light according to a first lighting mode; driving the microwave radar to scan the room to obtain a fourth state of the human body when the human body exists in the room; the lighting fixture is controlled to switch from the first lighting mode to a second lighting mode adapted to the fourth state to emit light. The embodiment reduces the electric energy consumed by the microwave radar.

Description

Control method, device and equipment of lighting lamp and storage medium
Technical Field
The present invention relates to the field of lighting technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling a lighting fixture.
Background
The lighting lamp is one of household appliances commonly used by users, a part of the lighting lamps are provided with distance sensors, and the lighting lamps continuously run the distance sensors to detect whether the users are close to the lighting lamps or not in real time, so that the lighting lamps are automatically started. However, the distance sensor consumes high electric energy due to long-time operation of the distance sensor, and causes high loss to the distance sensor.
Disclosure of Invention
The invention provides a control method, a device, equipment and a storage medium of a lighting lamp, which are used for solving the problem of how to reduce the operation time of a distance sensor in the lighting lamp.
According to an aspect of the present invention, there is provided a control method of a lighting fixture installed in a room and having access to a wireless access point, the method comprising:
detecting the brightness of light in the room;
if the brightness is smaller than or equal to a preset first threshold value, inquiring the user equipment accessed by the wireless access point;
if the user equipment comprises a mobile terminal carried by a user belonging to the room, respectively starting a first learning machine, a second learning machine and a third learning machine, wherein the first learning machine is used for detecting a first state of the mobile terminal to the wireless access point, the second learning machine is used for detecting a second state of a door of the room according to a broadcast signal transmitted by the wireless access point, and the third learning machine is used for detecting a third state of the broadcast signal;
Adding a unified window to the first state, the second state and the third state on a time axis, and moving the window;
if the first state is moving, the second state is opening and closing and the third state is that the duty ratio of human body interference exceeds a preset second threshold value in the window, controlling the lighting lamp to emit light according to a first lighting mode;
driving the microwave radar to scan the room to obtain a fourth state of the human body when the human body exists in the room;
and controlling the lighting lamp to switch from the first lighting mode to a second lighting mode matched with the fourth state to emit light, wherein the power consumption of the first lighting mode is lower than that of the second lighting mode.
According to another aspect of the present invention, there is provided a control device of a lighting fixture installed in a room and having access to a wireless access point, the device comprising:
the brightness detection module is used for detecting the brightness of the light rays in the room;
a user equipment query module, configured to query, if the brightness is less than or equal to a preset first threshold, a user equipment to which the wireless access point has been connected;
The learning machine starting module is used for respectively starting a first learning machine, a second learning machine and a third learning machine if the user equipment comprises a mobile terminal carried by a user belonging to the room, wherein the first learning machine is used for detecting a first state of the mobile terminal to the wireless access point, the second learning machine is used for detecting a second state of a door of the room according to a broadcast signal transmitted by the wireless access point, and the third learning machine is used for detecting a third state of the broadcast signal;
the window adding module is used for adding unified windows to the first state, the second state and the third state on a time axis and moving the windows;
the lamp starting module is used for controlling the lighting lamp to emit light according to a first lighting mode if the first state is moving, the second state is opening and closing and the third state is that the occupancy rate of human body interference exceeds a preset second threshold value in the window;
the human body detection module is used for driving the microwave radar to scan the room so as to obtain a fourth state of the human body when the human body exists in the room;
and the operation switching module is used for controlling the lighting lamp to switch from the first lighting mode to a second lighting mode which is matched with the fourth state to emit light, and the power consumption of the first lighting mode is lower than that of the second lighting mode.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of controlling a lighting fixture according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing a computer program for causing a processor to execute the method for controlling a lighting fixture according to any embodiment of the present invention.
In this embodiment, the brightness of light in a room is detected; if the brightness is smaller than or equal to a preset first threshold value, inquiring the user equipment accessed by the wireless access point; if the user equipment comprises a mobile terminal carried by a user to which the room belongs, respectively starting a first learning machine, a second learning machine and a third learning machine, wherein the first learning machine is used for detecting a first state of the mobile terminal to the wireless access point, the second learning machine is used for detecting a second state of a door of the room according to a broadcast signal transmitted by the wireless access point, and the third learning machine is used for detecting a third state of the broadcast signal; adding unified windows to the first state, the second state and the third state on a time axis, and moving the windows; if the first state is moving, the second state is opening and closing and the third state is that the duty ratio of human body interference exceeds a preset second threshold value in the window, controlling the lighting lamp to emit light according to a first lighting mode; driving the microwave radar to scan the room to obtain a fourth state of the human body when the human body exists in the room; and controlling the lighting lamp to switch from the first lighting mode to a second lighting mode which is matched with the fourth state to emit light, wherein the power consumption of the first lighting mode is lower than that of the second lighting mode. According to the method, the wireless access point is learned based on the strong learning machines of the weak learning machines, and because the wireless access point is usually operated for a long time, the information of the multiplexing wireless access point can be detected for a long time, and the accuracy of the possibility that a detection user uses the illumination lamp to illuminate is guaranteed, so that the normal use of the illumination lamp is guaranteed, the microwave radar is started to detect a human body under the conditions that the illumination lamp is dark and the user exists, the long-time movement of the microwave radar can be avoided, an algorithm for detecting the human body by using the microwave radar is complex, the operation of the microwave Li Weida is reduced, the operation of the algorithm can be reduced, the electric energy consumed by the microwave radar and the algorithm is reduced, and the loss caused to the microblog radar is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a control method of a lighting fixture according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a control device for a lighting fixture according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a control method of a lighting fixture according to an embodiment of the present invention, where the method may be performed by a control device of the lighting fixture, where the control device of the lighting fixture may be implemented in a form of hardware and/or software, and the control device of the lighting fixture may be configured in an electronic device, and the electronic device may be inherited in a switch of an integrated fixture, or may be integrated in a main board of the lighting fixture, where a plurality of weak learning machines learn a possibility of a user to potentially use the lighting fixture according to an Access Point (AP), and start a microwave radar to detect a state of the user according to the possibility, so as to control the lighting fixture. As shown in fig. 1, the method includes:
Step 101, detecting the brightness of light in a room.
In this embodiment, the lighting fixture may be in the form of a ceiling lamp, a wall lamp, or the like, and may be installed in a bedroom, a study room, or the like, and has access to a wireless access point.
The wireless access point is also called a session point or an access bridge, and not only includes a simple wireless access point (wireless AP), but also is a generic term for devices such as a wireless router (including a wireless gateway and a wireless bridge), and can be used for a wireless switch of a wireless network, and is also a core of the wireless network.
The lighting lamp is provided with a microwave radar, the microwave radar is used for carrying out non-contact detection, tracking and positioning on one or more objects through electromagnetic waves, the working frequency of the microwave radar is between 3MHz and 300GHz, and the wavelength of the microwave radar is between 100m and 1 mm.
In these rooms, a luminance sensor, i.e. a sensor that senses the luminance of light and converts it into a usable output signal, may be provided, which may detect the luminance of light in the room.
In some designs, the brightness sensor is a component of other intelligent home appliances in the room, at this time, the intelligent home appliances upload the brightness of the light in the room to the internet of things server and associate the brightness of the light in the room to the home of the user logged in at the intelligent home appliances, and the lighting fixture belongs to the intelligent device in the home, and can query the brightness of the light in the room from the internet of things server.
In other designs, the intensity sensor is a component of the light fixture, at which time the light fixture may invoke the intensity sensor at intervals to detect the intensity of light in the room.
Step 102, if the brightness is less than or equal to the preset first threshold, inquiring the user equipment accessed by the wireless access point.
And comparing the brightness of the light in the room with a preset first threshold value, if the brightness of the light in the room is larger than the first threshold value, indicating that the brightness of the light in the room is higher, and if the brightness of the light in the room is smaller than or equal to the first threshold value, indicating that the brightness of the light in the room is lower, inquiring the wireless access point about the user equipment which is connected with the wireless access point.
These user devices may be fixed devices, such as air conditioners, refrigerators, washing machines, etc., or mobile terminals, such as cell phones, smart wearable devices (e.g., watches, etc.), tablet computers, notebook computers, etc.
In one embodiment of the present invention, step 102 may include the steps of:
step 1021, request original authentication information from the wireless access point.
The lighting fixture may send a first authentication request to the wireless access point, and when the wireless access point receives the first authentication request, the wireless access point may generate unique original authentication information and send the original authentication information to the lighting fixture.
For example, the wireless access point generates a random number as the original authentication information.
For another example, the wireless access point generates a random number, and combines the random number and the current timestamp into the original authentication information according to a given arrangement.
For another example, the wireless access point generates a hash value for the current timestamp using an algorithm such as MD5 (Message Digest Algorithm, fifth version of message digest algorithm) as the original authentication information.
Step 1022, original verification information is sent to the internet of things server which is logged in by both the wireless access point and the lighting fixture.
Step 1023, receiving first target verification information obtained by signing the original verification information by the internet of things server by using a first key corresponding to the wireless access point.
The wireless access point and the lighting fixture belong to the same internet of things platform, and the internet of things platform can belong to a manufacturer for producing the wireless access point and/or the lighting fixture, and also can belong to a third party manufacturer, which is not limited in this embodiment.
The lighting lamp can send a second verification request to an internet of things server in the internet of things platform, the second verification request carries the identification of the lighting lamp, the identification of the wireless access point and original verification information, when the internet of things server receives the second verification request, the relation between the lighting lamp (expressed by the identification) and the wireless access point (expressed by the identification) is verified, if the relation is the same house of the same user as the lighting lamp (expressed by the identification) and the wireless access point (expressed by the identification), a secret key configured for the wireless access point is inquired, the secret key is used for signing the original verification information, first target verification information is obtained, and the first target verification information is sent to the lighting lamp.
Step 1024, send the first target authentication information to the wireless access point.
Step 1025, when the wireless access point performs the verification operation successfully, controlling the lighting lamp to establish a wireless link with the wireless access point.
The lighting lamp can send a third verification request to the wireless access point, the third verification request carries the first target verification information, when the wireless access point receives the third verification request, verification operation is executed, the verification operation is that the wireless access point signs the original verification information by using a local secret key to obtain second target verification information, and the first target verification information is compared with the second target verification information.
When the verification operation is successfully executed, the lighting lamp and the wireless access point establish an independent wireless link, and the independent wireless link indicates that the user has authorized the lighting lamp to use part of the information of the wireless access point in advance.
The verification operation successfully indicates that the wireless access point signs the original verification information by using a local key to obtain second target verification information, and the first target verification information is identical to the second target verification information.
Step 1026, receiving, via the wireless link, the accessed user equipment sent by the wireless access point.
The lighting fixture may send a query request to the wireless access point via the wireless link, and the wireless access point queries the user device (represented by information such as a name) that is currently accessed when receiving the query request, and sends the information (such as the name) of the user device to the lighting fixture via the wireless link.
Step 1027, searching a list of devices for room learning.
The lighting fixtures may historically communicate with the wireless access point periodically, record the user devices that access it, form a list of devices that are stored in the lighting fixtures, indicating the user devices that have entered the house and possibly the room.
Step 1028, user equipment belonging to the mobile terminal carried by the user belonging to the room is screened out from the equipment list.
Each user equipment in the equipment list has multidimensional information such as names, login time length, login frequency and the like, and the characteristics of the user equipment can be reflected to a certain extent by integrating the information, so that user equipment possibly belonging to a mobile terminal carried by a user belonging to a room is screened out from all the user equipment.
In a specific implementation, the information recorded in the device list includes a name of the user device, a time when the user device accesses the wireless hotspot, and so on.
Then, the user equipment accessing the wireless access point in the last multiple time periods (the time period is a periodic time period, such as 1 natural day) is selected from the device list as the first candidate device, that is, the time of the first candidate device accessing the wireless hotspot is in the last multiple time periods.
Because the names of the user equipment contain equipment models in many ways, the equipment models of the mobile terminals can be collected in advance, so that the first candidate equipment with the names representing the mobile terminals is screened out from the equipment list and used as the second candidate equipment, namely, at least part of fields of the names of the second candidate equipment are the same as the equipment models of the mobile terminals, and intelligent household appliances such as air conditioners, refrigerators and washing machines, which are connected with wireless access points in the long term can be eliminated.
And counting the frequency of the second candidate device accessing the wireless access point in each time period in the latest time periods.
If the frequency value of a certain second candidate device in a certain time period is zero, the user to which the second candidate device belongs is highly likely to not enter the house in the time period, and the user to which the second candidate device belongs is likely to belong to the visitor.
And if the frequency of which the value is not zero is larger than a preset third threshold value (which indicates that the second candidate device accesses the wireless access point for a long time) and the number of the frequency is larger than a preset fourth threshold value (which indicates that the second candidate device frequently accesses the wireless access point), the probability that the user to which the second candidate device belongs to the visitor is lower, otherwise, the probability that the user to which the second candidate device belongs to the owner of the room (house) is higher, and the mobile terminal carried by the user to which the second candidate device belongs can be determined.
Step 103, if the user equipment includes a mobile terminal carried by a user belonging to the room, respectively starting the first learning machine, the second learning machine and the third learning machine.
In general, the wireless hot spot is equipment which operates for a long time, so that the wireless hot spot can indirectly reflect the activity condition of a user in multiple aspects, can be used as an anchor point for detecting the activity condition of the user, and can avoid the long-time operation of the microwave radar by the lighting lamp.
However, the accuracy of detecting the activity condition of the user by the single-aspect information provided by the wireless hotspot is low, and then, in this embodiment, reinforcement learning may be applied, and a plurality of weak learning machines including a first learning machine, a second learning machine, and a third learning machine may be respectively provided.
The first learning machine is used for detecting a first state of the mobile terminal from the wireless access point.
The second learning machine is configured to detect a second state of a door of the room based on a broadcast signal transmitted by the wireless access point.
The third learning machine is used for detecting a third state of the broadcast signal.
The first learning machine, the second learning machine and the third learning machine are aggregated into a strong learning machine, so that the accuracy of detecting the activity condition of the user is improved.
In a specific implementation, if the mobile terminal carried by the user to which the room belongs is detected, which indicates that the requirement of the user for using the lighting lamp is likely to occur, the first learning machine can be started in an independent process respectively, the first learning machine detects the first state of the mobile terminal to the wireless access point, the second learning machine is started in another independent process, the second learning machine detects the second state of the door of the room according to the broadcast signal transmitted by the wireless access point, and the third learning machine is started in another independent process, and the third learning machine detects the third state of the broadcast signal.
In one embodiment of the present invention, step 103 may include the steps of:
step S31, starting the first learning machine, and sending a jump inquiry request to the wireless access point for the mobile terminal through the wireless link.
And step S32, if the wireless access point is a wireless mesh network, receiving a node which is returned by the wireless access point in response to the jump inquiry request and is accessed by the mobile terminal in the wireless mesh network through a wireless link.
Step S33, if the node changes, the first state of the mobile terminal is determined to be mobile.
In this embodiment, the wireless access point is a wireless Mesh network (Mesh network), in which there are multiple nodes, and the user arranges the multiple nodes at different positions according to the layout of the house, so that the Mesh network can cover the house, any node can be used as an AP and a router at the same time, each node in the Mesh network can send and receive signals, and each node can directly communicate with one or more peer nodes.
The first learning machine in the lighting lamp sends a jump inquiry request to the wireless access point through an independent wireless link for the mobile terminal, the wireless access point checks a node which is accessed by the mobile terminal in a Mesh network in the latest time when receiving the jump inquiry request, the node is sent to the lighting lamp through the independent wireless link, and the lighting lamp judges whether the node which is accessed by the mobile terminal in the latest time in the Mesh network changes or not.
If the node accessed by the mobile terminal in the Mesh network in the latest period of time changes, the mobile terminal can be determined to be carried by the user to move in a large range, so that the first state of the mobile terminal is determined to be moving.
If the node accessed by the mobile terminal in the Mesh network in the latest period of time is unchanged, the small-range round trip of the mobile terminal carried by the user can be determined, so that the first state of the mobile terminal is determined to be static.
In one embodiment of the present invention, step 103 may include the steps of:
step S41, starting a second learning machine, and reading the first signal strength of the broadcast signal transmitted by the wireless access point.
Step S42, calculating an average value from the first signal intensity as an average intensity.
Step S43, calculating the difference between the original signal intensity and the average intensity as the intensity difference.
Step S44, taking a specified proportion of the average intensity as a fifth threshold.
Step S45, if the intensity difference is larger than a fifth threshold value, determining that a second state of the door of the room is open and closed.
In general, the placement position of the wireless access point and the installation position of the lighting fixture are fixed, and most household appliances in the house are also fixed, and because the lighting fixture is in the room, the movable barrier at intervals between the wireless access point and the lighting fixture is mainly a door of the room, and the strength of a broadcast signal emitted by the wireless access point has obvious attenuation when penetrating the door of the room, and is particularly obvious when the door of the room is made of metal.
The wireless access point periodically transmits a broadcast signal to the outside, and the broadcast signal contains information such as SSID (Service Set Identifier ) and the like, so that other devices receiving the broadcast signal access the wireless access point according to protocols such as WiFi (wireless fidelity).
In this embodiment, the second learning machine in the lighting fixture reads the strength of the broadcast signal received from the wireless access point, and records the strength as the first signal strength, that is, the first signal strength belongs to the received signal strength (Received Signal Strength Indicator, RSSI).
Since the wireless access point has a certain fluctuation in the broadcast signal transmitted to the outside, as the intensity difference, an average value is calculated from the first signal intensities of the plurality of frames, as the average intensity, and a specified ratio is taken as the fifth threshold value.
To increase the sensitivity of the fifth threshold to detection, the ratio may take a smaller percentage, such as 10%.
At this time, a difference between the original signal intensity and the average intensity may be calculated, and if a certain frame intensity difference is greater than a fifth threshold value, it may be determined that the second state of the door of the room is open and closed, wherein the open and closed is one action, indicating that the door is opened from the closed time or closed from the opened time, indicating that the amplitude of the first received signal intensity fluctuation is large.
Further, the door of the room is opened when being closed, the first signal intensity is greatly improved at the moment of opening, the door of the room is closed when being opened, and the first signal intensity is greatly reduced at the moment of closing.
If the difference in the intensity of a certain frame is less than or equal to the fifth threshold value, which indicates that the amplitude of the first received signal intensity fluctuation is small, it is determined that the second state of the door of the room is not open or closed.
In one embodiment of the present invention, step 103 may include the steps of:
step S51, starting a third learning machine, and extracting first signal features in time domain and frequency domain from the current broadcast signal.
Step S52, extracting a history signal.
The history signal is a broadcast signal recorded for the wireless access point when the human body exists in the room history, and the history signal is related to the second signal strength and the second signal characteristics in the time domain and the frequency domain.
Step S53, calculating the relative entropy between the first signal intensity and the second signal intensity.
Step S54, calculating pearson correlation coefficients between the first signal characteristic and the second signal characteristic.
Step S55, the relative entropy and the Pearson correlation coefficient are linearly fused into the similarity between the current broadcast signal and the historical signal.
Step S56, if the similarity is greater than or equal to a preset sixth threshold, determining that the third state of the broadcast signal is human body interference.
If a user walks between the wireless access point and the lighting fixture, a certain disturbance exists in the broadcast signal received by the lighting fixture and transmitted by the wireless access point, and the disturbance is caused by irregular human body interference.
In this embodiment, the third learning machine in the lighting fixture performs inter-process communication with the second learning machine to obtain the first signal strength of the broadcast signal transmitted by the wireless access point, and in addition, extracts the first signal features of the current broadcast signal in the time domain and the frequency domain.
To improve the sensitivity of the detection, the first signal characteristic is mostly a statistical characteristic, e.g. period in time sequence, amplitude in frequency domain, etc.
When the lighting fixture historically detects that a user exists in a room (namely human body interference exists) by using the microwave radar, the broadcasting signal transmitted by the wireless access point is recorded as a historical signal, accordingly, the strength of the received historical signal is recorded as second signal strength, and second signal characteristics in the time domain and the frequency domain are extracted for the historical signal.
On the one hand, the relative entropy (also called KL (Kullback-Leibler) divergence) between the first signal intensity and the second signal intensity is calculated, and the difference degree of the current broadcast signal and the historical signal on the intensity distribution is measured.
On the other hand, a pearson correlation coefficient (Pearson correlation coefficient) between the first signal characteristic and the second signal characteristic is calculated, and the correlation degree of the current broadcast signal and the historical signal in the time domain and the frequency domain is measured.
At this time, the relative entropy and the pearson correlation coefficient are linearly fused as the similarity between the current broadcast signal and the history signal, the fusion being expressed as follows:
Sim=α×KL+β×PCCs
wherein Sim is similarity, KL is relative entropy, PCCs is pearson correlation coefficient, alpha and beta are weights, and in general, alpha is larger than beta.
If the similarity is greater than or equal to a preset sixth threshold, which indicates that the similarity between the current broadcast signal and the history signal is high, it may be determined that the third state of the broadcast signal is human body interference.
If the similarity is smaller than a preset sixth threshold, which indicates that the similarity between the current broadcast signal and the history signal is lower, it may be determined that the third state of the broadcast signal is that there is no human body interference.
The sixth threshold may be a smaller value in order to increase the sensitivity of detection.
And 104, adding unified windows to the first state, the second state and the third state on a time axis, and moving the windows.
In this embodiment, the first state, the second state, and the third state each have a time stamp, the first state, the second state, and the third state are marked on a time axis according to the time stamps, a window is added on the time axis, and the window is moved according to a specified step size.
Typically, the step size of the movement is smaller than the length of the window.
Step 105, if the first state is moving, the second state is open and close, and the third state is that the duty ratio of human interference exceeds a preset second threshold value, the lighting lamp is controlled to emit light according to the first lighting mode.
When the window is moved each time, the first state in the window is moving, the second state is open and close, and the third state is the ratio of the human body interference, namely the ratio of the first state belonging to the moving to all the first states, the ratio of the second state belonging to the open and close to all the second states, and the ratio of the third state belonging to the human body interference to all the third states can be judged.
If the first state is moving, the second state is open and close, and the third state is that the duty ratio of human body interference exceeds a preset second threshold value, the situation that a user walks in a room (particularly a room) and the possibility of certain use of the lighting lamp exists is indicated, and at the moment, the lighting lamp is controlled to emit light according to a first lighting mode.
The first lighting mode comprises a first brightness value and a first color temperature value, namely, the first brightness value and the first color temperature value of the lighting lamp are controlled to emit light.
Further, the first illumination mode is a low-power consumption mode, at this time, the first brightness value is lower, so that the consumption of electric energy can be saved, and in a low-light environment, the light in the low-power consumption mode can reduce the irritation to eyes of a user.
And 106, driving the microwave radar to scan the room so as to obtain a fourth state of the human body when the human body exists in the room.
The antenna of the microwave radar emits an electromagnetic wave signal in the form of microwaves, which moves at the speed of light, and when the electromagnetic wave signal hits an object, the electromagnetic wave signal changes and is reflected back to the microwave radar. The electromagnetic wave signal arriving at the antenna of the microwave radar contains information about the detected object.
In the running process of the lighting lamp, the microwave radar can be continuously controlled to emit multi-frame electromagnetic wave signals to the room, and then the microwave radar can continuously receive multi-frame electromagnetic wave signals reflected by different objects such as furniture, household appliances, walls, human bodies and the like in the room.
The objects except the user are mostly static, the user is mostly dynamic, limbs are mostly swung to a certain extent, namely, the human body is mostly moved to a certain extent, so that each frame of electromagnetic wave signal can be detected by taking the user as a target through a target detection network, a dynamic tracking model and the like, the user is detected, tracked, and the information of the gesture, the position and the like of the user is detected.
Based on deep learning, machine learning (such as SVM (Support Vector Machine, support vector machine) and other classifiers) or rules, a fourth state of the user can be identified according to electromagnetic wave signals, gestures and positions of the user and other information, wherein the fourth state mainly comprises a static state (including a static region) and a motion state (including a motion region).
Step 107, controlling the lighting lamp to switch from the first lighting mode to the second lighting mode adapted to the fourth state to emit light.
The user is in different fourth states, and there is certain difference to the demand of light, therefore, in this embodiment, the second illumination mode can be set up in advance through modes such as experiments to different fourth states, and the light of the second illumination mode can make the user obtain better illumination experience in the fourth state.
Then, the lighting fixture may be controlled to switch from a first lighting mode to a second lighting mode adapted to the fourth state to emit light, wherein the second lighting mode is a normal lighting mode, and the power consumption of the first lighting mode is lower than the power consumption of the second lighting mode.
Further, the lighting lamp can be directly switched to the second lighting mode adapted to the fourth state from the first lighting mode to emit light, and can also be gradually switched to the second lighting mode adapted to the fourth state from the first lighting mode to emit light, so that the irritation to eyes of a user is reduced, and the embodiment is not limited to the above.
During progressive switching, a mapping table may be loaded, the mapping table records a relation of mapping the fourth state to the second illumination mode, and the second illumination mode adapted to the fourth state is queried in the mapping table, wherein the second illumination mode includes a second brightness value and a second color temperature value.
The difference between the first luminance value and the second luminance value is calculated as a luminance difference, and the difference between the first color temperature value and the second color temperature value is calculated as a color temperature difference, respectively.
In general, the luminance difference is more remarkable than the chromaticity difference, and therefore, a plurality of control points can be generated based on the luminance difference, wherein the number of control points is positively correlated with the luminance difference, that is, the greater the luminance difference is, the greater the number of control points is, the smaller the luminance difference is, the number of control points is smaller, and in addition, the time length of the interval between two adjacent control points is positively correlated with the luminance difference, that is, the greater the luminance difference is, the greater the time length of the interval between two adjacent control points is, the smaller the luminance difference is, and the time length of the interval between two adjacent control points is smaller.
A first ratio between the brightness difference and the number of the regulation points is calculated, and a second ratio between the color temperature difference and the number of the regulation points is calculated.
And configuring brightness and color temperature for the regulating points in sequence, wherein the initial value of the brightness is a first brightness value, the first ratio is sequentially increased on the basis of the first brightness value (namely, the first ratio is increased once every interval of one regulating point) until the second brightness is reached, the initial value of the color temperature is a first color temperature value, the second ratio is sequentially increased on the basis of the first color temperature value (namely, the second ratio is increased once every interval of one regulating point) until the second color temperature value is reached.
And then, controlling the lighting lamp to emit light according to the brightness and the color temperature in the regulation point in sequence.
In one way of adjusting the brightness and color temperature, the lighting fixture outputs two light sources, one being warm light (color temperature about 3000K) and one being cold light (white, color temperature about 7000K). Each light source is independent, the output current of the light source is regulated by regulating the duty ratio of PWM (Pulse width modulation ) signals, the different brightness of each light source is regulated, and the two light sources are fully mixed, so that the adjustment of the color temperature and the adjustment of the brightness of the light of the whole lighting lamp are realized.
For example, the color temperature of the mixed light in the lighting fixture is about 5000K (not very cool white, but a single spot of warm white) because the light in the path A is warm light with the color temperature of 3000K, but the brightness is only 10% of the full brightness, and the light in the path B is cold light with the brightness of only 40% of the full brightness.
In this embodiment, the brightness of light in a room is detected; if the brightness is smaller than or equal to a preset first threshold value, inquiring the user equipment accessed by the wireless access point; if the user equipment comprises a mobile terminal carried by a user to which the room belongs, respectively starting a first learning machine, a second learning machine and a third learning machine, wherein the first learning machine is used for detecting a first state of the mobile terminal to the wireless access point, the second learning machine is used for detecting a second state of a door of the room according to a broadcast signal transmitted by the wireless access point, and the third learning machine is used for detecting a third state of the broadcast signal; adding unified windows to the first state, the second state and the third state on a time axis, and moving the windows; if the first state is moving, the second state is opening and closing and the third state is that the duty ratio of human body interference exceeds a preset second threshold value in the window, controlling the lighting lamp to emit light according to a first lighting mode; driving the microwave radar to scan the room to obtain a fourth state of the human body when the human body exists in the room; and controlling the lighting lamp to switch from the first lighting mode to a second lighting mode which is matched with the fourth state to emit light, wherein the power consumption of the first lighting mode is lower than that of the second lighting mode. According to the method, the wireless access point is learned based on the strong learning machines of the weak learning machines, and because the wireless access point is usually operated for a long time, the information of the multiplexing wireless access point can be detected for a long time, and the accuracy of the possibility that a detection user uses the illumination lamp to illuminate is guaranteed, so that the normal use of the illumination lamp is guaranteed, the microwave radar is started to detect a human body under the conditions that the illumination lamp is dark and the user exists, the long-time movement of the microwave radar can be avoided, an algorithm for detecting the human body by using the microwave radar is complex, the operation of the microwave Li Weida is reduced, the operation of the algorithm can be reduced, the electric energy consumed by the microwave radar and the algorithm is reduced, and the loss caused to the microblog radar is reduced.
Example two
Fig. 2 is a schematic structural diagram of a control device for a lighting fixture according to a second embodiment of the present invention. The lighting fixture is installed in a room and has access to a wireless access point, as shown in fig. 2, the apparatus comprises:
a brightness detection module 201 for detecting brightness of light in the room;
a ue query module 202, configured to query a ue to which the wireless access point has been connected if the brightness is less than or equal to a preset first threshold;
a learning machine starting module 203, configured to, if the user equipment includes a mobile terminal carried by a user to which the room belongs, start a first learning machine, a second learning machine, and a third learning machine, where the first learning machine is configured to detect a first state of the mobile terminal to the wireless access point, the second learning machine is configured to detect a second state of a door of the room according to a broadcast signal transmitted by the wireless access point, and the third learning machine is configured to detect a third state of the broadcast signal;
a window adding module 204, configured to add a unified window to the first state, the second state, and the third state on a time axis, and move the window;
The lamp starting module 205 is configured to control the lighting lamp to emit light according to a first lighting mode if the first state is moving, the second state is open and close, and the third state is that the duty ratio of human interference exceeds a preset second threshold;
a human body detection module 206, configured to drive the microwave radar to scan the room, so as to obtain a fourth state of the human body when the human body exists in the room;
and the operation switching module 207 is configured to control the lighting fixture to switch from the first lighting mode to a second lighting mode adapted to the fourth state to emit light, where the power consumption of the first lighting mode is lower than the power consumption of the second lighting mode.
In one embodiment of the present invention, the ue query module 202 is further configured to:
requesting original authentication information from the wireless access point;
the original verification information is sent to an Internet of things server which is logged in by the wireless access point and the lighting lamp at the same time;
receiving first target verification information obtained by signing the original verification information by the internet of things server by using a key corresponding to the wireless access point;
transmitting the first target authentication information to the wireless access point;
When the wireless access point successfully executes the verification operation, the lighting lamp and the wireless access point are controlled to establish a wireless link, wherein the verification operation successfully indicates that the wireless access point signs the original verification information by using a local key to obtain second target verification information, and the first target verification information is identical to the second target verification information;
receiving the accessed user equipment sent by the wireless access point through the wireless link;
searching a device list learned for the room;
and screening the user equipment belonging to the mobile terminal carried by the user belonging to the room from the equipment list.
In one embodiment of the present invention, the ue query module 202 is further configured to:
screening the user equipment which is accessed to the wireless access point in a plurality of latest time periods from the equipment list as first candidate equipment;
screening the first candidate device with the name representing the mobile terminal from the device list to serve as a second candidate device;
counting the frequency of the second candidate device accessing the wireless access point in each time period;
counting the frequency with the logarithmic value not being zero;
And if the frequencies with the values not equal to zero are all larger than a preset third threshold value and the number is larger than a preset fourth threshold value, determining that the second candidate equipment is a mobile terminal carried by the user belonging to the room.
In one embodiment of the present invention, the learning machine start module 203 is further configured to:
starting a first learning machine, and sending a jump inquiry request to the wireless access point for the mobile terminal through the wireless link;
if the wireless access point is a wireless mesh network, receiving a node, returned by the wireless access point in response to the jump inquiry request, of the mobile terminal in the wireless mesh network through the wireless link;
and if the node changes, determining that the first state of the mobile terminal is moving.
In one embodiment of the present invention, the learning machine start module 203 is further configured to:
starting a second learning machine, and reading the first signal strength of the broadcast signal transmitted by the wireless access point;
calculating an average value from the first signal intensities as an average intensity;
calculating a difference between the original signal intensity and the average intensity as an intensity difference;
Taking a specified proportion of the average intensity as a fifth threshold;
and if the intensity difference is greater than the fifth threshold, determining that the second state of the door of the room is open and closed.
In one embodiment of the present invention, the learning machine start module 203 is further configured to:
starting a third learning machine, and extracting first signal features in time domain and frequency domain from the current broadcast signal;
extracting a history signal, wherein the history signal is a broadcast signal recorded by the wireless access point when a human body exists in the room history, and the history signal is related to second signal strength and second signal characteristics in a time domain and a frequency domain;
calculating a relative entropy between the first signal strength and the second signal strength;
calculating a pearson correlation coefficient between the first signal feature and the second signal feature;
linearly fusing the relative entropy and the pearson correlation coefficient into a similarity between the current broadcast signal and the historical signal;
and if the similarity is greater than or equal to a preset sixth threshold, determining that the third state of the broadcast signal is human body interference.
In one embodiment of the present invention, the first illumination mode includes a first luminance value and a first color temperature value;
The operation switching module 207 is further configured to:
querying a second illumination pattern adapted to the fourth state, the second illumination pattern comprising a second luminance value and a second color temperature value;
calculating a difference between the first luminance value and the second luminance value as a luminance difference;
calculating a difference between the first color temperature value and the second color temperature value as a color temperature difference;
generating a plurality of control points based on the brightness difference, wherein the number of the control points is positively correlated with the brightness difference, and the time length of the interval between two adjacent control points is positively correlated with the brightness difference;
calculating a first ratio between the brightness difference and the number of the regulation points;
calculating a second ratio between the color temperature difference and the number of the regulation points;
sequentially configuring brightness and color temperature for the regulation points, wherein the brightness is obtained by sequentially increasing the first ratio on the basis of the first brightness value until reaching the second brightness, and the color temperature is obtained by sequentially increasing the second ratio on the basis of the first color temperature value until reaching the second color temperature value;
and sequentially controlling the lighting lamp to emit light according to the brightness and the color temperature in the regulating point.
The control device of the lighting lamp provided by the embodiment of the invention can execute the control method of the lighting lamp provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the control method of the lighting lamp.
Example III
Fig. 3 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 3, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a method of controlling a lighting fixture.
In some embodiments, the method of controlling a lighting fixture may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method of controlling a lighting fixture described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of controlling the lighting fixture by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
Example IV
Embodiments of the present invention also provide a computer program product comprising a computer program which, when executed by a processor, implements a method of controlling a lighting fixture as provided by any of the embodiments of the present invention.
Computer program product in the implementation, the computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method of controlling a lighting fixture, the lighting fixture being installed in a room and having access to a wireless access point, the method comprising:
detecting the brightness of light in the room;
if the brightness is smaller than or equal to a preset first threshold value, inquiring the user equipment accessed by the wireless access point;
if the user equipment comprises a mobile terminal carried by a user belonging to the room, respectively starting a first learning machine, a second learning machine and a third learning machine, wherein the first learning machine is used for detecting a first state of the mobile terminal to the wireless access point, the second learning machine is used for detecting a second state of a door of the room according to a broadcast signal transmitted by the wireless access point, and the third learning machine is used for detecting a third state of the broadcast signal;
Adding a unified window to the first state, the second state and the third state on a time axis, and moving the window;
if the ratio of the first state which belongs to movement to all the first states, the ratio of the second state which belongs to opening and closing to all the second states and the ratio of the third state which belongs to human body interference to all the third states in the window all exceed a preset second threshold value, controlling the lighting lamp to emit light according to a first lighting mode;
driving a microwave radar to scan the room to obtain a fourth state of a human body when the human body exists in the room;
and controlling the lighting lamp to switch from the first lighting mode to a second lighting mode matched with the fourth state to emit light, wherein the power consumption of the first lighting mode is lower than that of the second lighting mode.
2. The method of claim 1, wherein the querying the user device to which the wireless access point has access comprises:
requesting original authentication information from the wireless access point;
the original verification information is sent to an Internet of things server which is logged in by the wireless access point and the lighting lamp at the same time;
Receiving first target verification information obtained by signing the original verification information by the internet of things server by using a key corresponding to the wireless access point;
transmitting the first target authentication information to the wireless access point;
when the wireless access point successfully executes the verification operation, the lighting lamp and the wireless access point are controlled to establish a wireless link, wherein the verification operation successfully indicates that the wireless access point signs the original verification information by using a local key to obtain second target verification information, and the first target verification information is identical to the second target verification information;
receiving the name of the user equipment which is accessed to the wireless access point and is sent by the wireless access point through the wireless link;
searching a device list learned for the room, the device list including user devices historically accessed to the wireless access point;
and screening the user equipment belonging to the mobile terminal carried by the user belonging to the room from the equipment list.
3. The method according to claim 2, wherein said screening out said user equipment belonging to a mobile terminal carried by a user to whom said room belongs from said list of devices comprises:
Screening the user equipment which is accessed to the wireless access point in a plurality of latest time periods from the equipment list as first candidate equipment;
screening the first candidate device with the name representing the mobile terminal from the device list to serve as a second candidate device;
counting the frequency of the second candidate device accessing the wireless access point in each time period;
counting the frequency with the logarithmic value not being zero;
and if the frequencies with the values not equal to zero are all larger than a preset third threshold value and the number is larger than a preset fourth threshold value, determining that the second candidate equipment is a mobile terminal carried by the user belonging to the room.
4. The method of claim 1, wherein the activating the first learning machine, the second learning machine, and the third learning machine, respectively, comprises:
starting a second learning machine, and reading the first signal strength of the broadcast signal transmitted by the wireless access point;
calculating an average value from the first signal intensities as an average intensity;
calculating a difference between the first signal intensity and the average intensity as an intensity difference;
taking a specified proportion of the average intensity as a fifth threshold;
And if the intensity difference is greater than the fifth threshold, determining that the second state of the door of the room is open and closed.
5. The method of claim 4, wherein the activating the first learning machine, the second learning machine, and the third learning machine, respectively, comprises:
starting a third learning machine, and extracting first signal features in time domain and frequency domain from the current broadcast signal;
extracting a history signal, wherein the history signal is a broadcast signal recorded by the wireless access point when a human body exists in the room history, and the history signal is related to second signal strength and second signal characteristics in a time domain and a frequency domain;
calculating a relative entropy between the first signal strength and the second signal strength;
calculating a pearson correlation coefficient between the first signal feature and the second signal feature;
linearly fusing the relative entropy and the pearson correlation coefficient into a similarity between the current broadcast signal and the historical signal;
and if the similarity is greater than or equal to a preset sixth threshold, determining that the third state of the broadcast signal is human body interference.
6. The method of any one of claims 1-5, wherein the first illumination pattern comprises a first luminance value and a first color temperature value;
The controlling the lighting fixture to switch from the first lighting mode to a second lighting mode adapted to the fourth state to emit light comprises:
querying a second illumination pattern adapted to the fourth state, the second illumination pattern comprising a second luminance value and a second color temperature value;
calculating a difference between the first luminance value and the second luminance value as a luminance difference;
calculating a difference between the first color temperature value and the second color temperature value as a color temperature difference;
generating a plurality of control points based on the brightness difference, wherein the number of the control points is positively correlated with the brightness difference, and the time length of the interval between two adjacent control points is positively correlated with the brightness difference;
calculating a first ratio between the brightness difference and the number of the regulation points;
calculating a second ratio between the color temperature difference and the number of the regulation points;
sequentially configuring brightness and color temperature for the regulation points, wherein the brightness is obtained by sequentially increasing the first ratio on the basis of the first brightness value until reaching the second brightness, and the color temperature is obtained by sequentially increasing the second ratio on the basis of the first color temperature value until reaching the second color temperature value;
And sequentially controlling the lighting lamp to emit light according to the brightness and the color temperature in the regulating point.
7. A control device for a lighting fixture, wherein the lighting fixture is installed in a room and has access to a wireless access point, the device comprising:
the brightness detection module is used for detecting the brightness of the light rays in the room;
a user equipment query module, configured to query, if the brightness is less than or equal to a preset first threshold, a user equipment to which the wireless access point has been connected;
the learning machine starting module is used for respectively starting a first learning machine, a second learning machine and a third learning machine if the user equipment comprises a mobile terminal carried by a user belonging to the room, wherein the first learning machine is used for detecting a first state of the mobile terminal to the wireless access point, the second learning machine is used for detecting a second state of a door of the room according to a broadcast signal transmitted by the wireless access point, and the third learning machine is used for detecting a third state of the broadcast signal;
the window adding module is used for adding unified windows to the first state, the second state and the third state on a time axis and moving the windows;
The lamp starting module is used for controlling the lighting lamp to emit light according to a first lighting mode if the ratio of the first state which belongs to movement to all the first states, the ratio of the second state which belongs to opening and closing to all the second states and the ratio of the third state which belongs to human body interference to all the third states in the window all exceed a preset second threshold;
the human body detection module is used for driving the microwave radar to scan the room so as to obtain a fourth state of the human body when the human body exists in the room;
and the operation switching module is used for controlling the lighting lamp to switch from the first lighting mode to a second lighting mode which is matched with the fourth state to emit light, and the power consumption of the first lighting mode is lower than that of the second lighting mode.
8. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of controlling a lighting fixture of any one of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for causing a processor to execute the method of controlling a lighting fixture according to any one of claims 1-6.
CN202310133085.XA 2023-02-20 2023-02-20 Control method, device and equipment of lighting lamp and storage medium Active CN116113115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310133085.XA CN116113115B (en) 2023-02-20 2023-02-20 Control method, device and equipment of lighting lamp and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310133085.XA CN116113115B (en) 2023-02-20 2023-02-20 Control method, device and equipment of lighting lamp and storage medium

Publications (2)

Publication Number Publication Date
CN116113115A CN116113115A (en) 2023-05-12
CN116113115B true CN116113115B (en) 2023-08-18

Family

ID=86263674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310133085.XA Active CN116113115B (en) 2023-02-20 2023-02-20 Control method, device and equipment of lighting lamp and storage medium

Country Status (1)

Country Link
CN (1) CN116113115B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110167241A (en) * 2019-05-29 2019-08-23 北京工业大学 A kind of data transfer control method and system of the illumination of interior wisdom
CN110888681A (en) * 2019-11-29 2020-03-17 维沃移动通信有限公司 Lighting lamp control method, lighting lamp control device, electronic equipment and medium
CN113873732A (en) * 2021-10-08 2021-12-31 广州优谷信息技术有限公司 Method, device and system for detecting internal and external states of user in reading kiosk
CN114026886A (en) * 2020-05-08 2022-02-08 谷歌有限责任公司 User proximity sensing for automatic cross-device content delivery
CN115529700A (en) * 2022-10-15 2022-12-27 江西嘉捷鑫源科技有限公司 Indoor intelligent light control system based on millimeter wave radar sensor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019113589A1 (en) * 2017-12-08 2019-06-13 Shell Michael Ross System and method for providing a discrete workspace

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110167241A (en) * 2019-05-29 2019-08-23 北京工业大学 A kind of data transfer control method and system of the illumination of interior wisdom
CN110888681A (en) * 2019-11-29 2020-03-17 维沃移动通信有限公司 Lighting lamp control method, lighting lamp control device, electronic equipment and medium
CN114026886A (en) * 2020-05-08 2022-02-08 谷歌有限责任公司 User proximity sensing for automatic cross-device content delivery
CN113873732A (en) * 2021-10-08 2021-12-31 广州优谷信息技术有限公司 Method, device and system for detecting internal and external states of user in reading kiosk
CN115529700A (en) * 2022-10-15 2022-12-27 江西嘉捷鑫源科技有限公司 Indoor intelligent light control system based on millimeter wave radar sensor

Also Published As

Publication number Publication date
CN116113115A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CA3044480C (en) Device-free localization methods within smart indoor environments
CN114745217B (en) Method and apparatus for facilitating end user defined policy management
US10949255B2 (en) Compact schedules for resource-constrained devices
CN104852975B (en) Household equipment calling method and device
US11025061B2 (en) Predictive power usage monitoring
Lu et al. Robust occupancy inference with commodity WiFi
CN109753034B (en) Control method, control device, electronic equipment and storage medium
Yu et al. Adaptive double‐threshold cooperative spectrum sensing algorithm based on history energy detection
US9491060B1 (en) Integrated wireless sensor network (WSN) and massively parallel processing database management system (MPP DBMS)
CN109699065A (en) Power regulating method, device, intelligent switch and storage medium
US20240031774A1 (en) Device-free localization methods within smart indoor environments
CN116113115B (en) Control method, device and equipment of lighting lamp and storage medium
CN105450486A (en) Home gateway and smart home system, control method for household appliances
CN110836525A (en) Self-adaptive adjusting method and device for air conditioner running state
CN110868374A (en) Security authentication method, server and client device
US20210174975A1 (en) Car to home service system and method
CN116094858A (en) Energy-saving control system based on Internet of things
WO2019024173A1 (en) Batch management method for saving power of internet of things terminal devices, and relay device
CN116567806A (en) Positioning method and communication equipment based on artificial intelligence AI model
CN109976168B (en) Decentralized intelligent home control method and system
De Paola et al. Predictive models for energy saving in wireless sensor networks
Zhou [Retracted] Node Injection Control Logic Design for Intelligent Home System Based on Wireless Sensor Network
CN107580017B (en) Batch power-saving management method and access equipment
CN113641105A (en) Household appliance control method, device, equipment and storage medium
WO2024027576A1 (en) Performance supervision method and apparatus for ai network model, and communication device

Legal Events

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