CN117460115A - Switch control method and system based on user demand - Google Patents
Switch control method and system based on user demand Download PDFInfo
- Publication number
- CN117460115A CN117460115A CN202311776952.8A CN202311776952A CN117460115A CN 117460115 A CN117460115 A CN 117460115A CN 202311776952 A CN202311776952 A CN 202311776952A CN 117460115 A CN117460115 A CN 117460115A
- Authority
- CN
- China
- Prior art keywords
- lamp
- user
- switch control
- obtaining
- illumination
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000005286 illumination Methods 0.000 claims abstract description 62
- 230000000694 effects Effects 0.000 claims abstract description 44
- 230000001795 light effect Effects 0.000 claims description 8
- 238000012790 confirmation Methods 0.000 claims description 3
- 238000005265 energy consumption Methods 0.000 abstract description 7
- 230000007774 longterm Effects 0.000 abstract description 3
- 230000000875 corresponding effect Effects 0.000 description 27
- 238000010586 diagram Methods 0.000 description 6
- 230000004907 flux Effects 0.000 description 6
- 230000001105 regulatory effect Effects 0.000 description 4
- 241001465382 Physalis alkekengi Species 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000000284 resting effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000005034 decoration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
- H05B45/32—Pulse-control circuits
- H05B45/325—Pulse-width modulation [PWM]
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/115—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention relates to the technical field of switch control, and provides a switch control method and a switch control system based on user requirements, wherein the method comprises the following steps: after the real-time position of the user is monitored, the user performs long-term activity on a certain position in a room, the illumination requirement of the user is obtained based on the regional activity attribute corresponding to the position of the user, the brightness adjustment of each lamp is calculated according to the lamp brightness combination model, the current illumination requirement of the user can be met under the condition that the energy consumption is the lowest, the lamp can be automatically and accurately adjusted to the brightness meeting the activity requirement of the user when the user is in activity, the use experience and the adjustment accuracy of the stepless switch of the lamp are improved, the use comfort of the user is increased, and the energy consumption is reduced.
Description
Technical Field
The invention relates to the technical field of switch control, in particular to a switch control method and system based on user requirements.
Background
At present, a plurality of LED lamps can realize stepless regulation of brightness in a PWM pulse width regulation mode, and the stepless switch of the lamps is formed by applying the regulation process in a switch, but when a plurality of lamps are arranged indoors and need to be regulated by the stepless switch, a user is difficult to realize accurate control of the switch, so that the brightness of the lamps meets the requirements of the user.
Disclosure of Invention
The invention provides a switch control method based on user requirements, which is used for solving the problem that a stepless switch in the prior art is difficult to accurately control the brightness of a lamp to meet the user requirements.
The first aspect of the present invention provides a switch control method based on user requirements, including:
acquiring real-time activity information of a user, acquiring activity attributes of a current position area when the time for keeping the current position of the user exceeds a preset threshold time, and selecting corresponding illumination requirements according to the activity attributes;
acquiring a user home plan, and identifying a first lamp in the same space according to current activity information of a user; the method comprises the steps of obtaining illumination information of each first lamp, calculating the distance between each first lamp and the current position of a user, substituting the distance into a lamp brightness combination model to obtain PWM (pulse width modulation) switch control proportion of each first lamp, wherein the lamp brightness combination model specifically comprises:
;
wherein,for the illumination of the illumination demand->The PWM switch control ratio for the nth first lamp is +.>Less than or equal to 1 +>Rated power for the nth first luminaire, < >>Is the firstLight efficiency of n first lamps, +.>For the distance of the nth first luminaire from the current position of the user, < >>Is the minimum value of the total power of the first lamp;
and setting the pulse proportion of the corresponding stepless switch according to the PWM switch control proportion of each first lamp.
Optionally, after the obtaining the lighting information of each first lamp, the method further includes:
acquiring a spatial image of a user, and acquiring a back angle range of the user based on image identification;
and obtaining a corresponding user back-facing area in the user home plan according to the user back-facing angle range, and eliminating illumination information corresponding to the first lamp in the user back-facing area.
Optionally, after the obtaining the lighting information of each first lamp, the method further includes:
the method comprises the steps of obtaining a space image of a user, obtaining a position of a second lamp based on image identification, identifying a position of the second lamp which is not recorded as a first lamp, obtaining a position of a soft-packaged lamp, calculating a distance between the soft-packaged lamp and a current position of the user, obtaining preset soft-packaged lamp information, and substituting the preset soft-packaged lamp information into a lamp brightness combination model to obtain a PWM (pulse width modulation) switch control proportion of the soft-packaged lamp.
A second aspect of the present application provides a switch control system based on user requirements, including:
the illumination demand confirmation module is used for acquiring real-time activity information of the user, acquiring activity attributes of the current position area when the time for keeping the current position of the user exceeds a preset threshold time, and selecting corresponding illumination demands according to the activity attributes;
the switch control parameter acquisition module is used for acquiring a user home plan and identifying a first lamp in the same space according to the current activity information of the user; the method comprises the steps of obtaining illumination information of each first lamp, calculating the distance between each first lamp and the current position of a user, substituting the distance into a lamp brightness combination model to obtain PWM (pulse width modulation) switch control proportion of each first lamp, wherein the lamp brightness combination model specifically comprises:
;
wherein,for the illumination of the illumination demand->The PWM switch control ratio for the nth first lamp is +.>Less than or equal to 1 +>Rated power for the nth first luminaire, < >>For the light effect of the nth first luminaire, < >>For the distance of the nth first luminaire from the current position of the user, < >>Is the minimum value of the total power of the first lamp;
and the switch control module is used for setting the pulse proportion of the corresponding stepless switch according to the PWM switch control proportion of each first lamp.
Optionally, in the switch control parameter obtaining module, after obtaining the illumination information of each first lamp, the switch control parameter obtaining module further includes:
acquiring a spatial image of a user, and acquiring a back angle range of the user based on image identification;
and obtaining a corresponding user back-facing area in the user home plan according to the user back-facing angle range, and eliminating illumination information corresponding to the first lamp in the user back-facing area.
Optionally, in the switch control parameter obtaining module, after obtaining the illumination information of each first lamp, the switch control parameter obtaining module further includes:
the method comprises the steps of obtaining a space image of a user, obtaining a position of a second lamp based on image identification, identifying a position of the second lamp which is not recorded as a first lamp, obtaining a position of a soft-packaged lamp, calculating a distance between the soft-packaged lamp and a current position of the user, obtaining preset soft-packaged lamp information, and substituting the preset soft-packaged lamp information into a lamp brightness combination model to obtain a PWM (pulse width modulation) switch control proportion of the soft-packaged lamp.
A third aspect of the present application provides a device for a switch control method based on user requirements, where the device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the switch control method according to any one of the first aspect of the present invention according to instructions in the program code.
A fourth aspect of the present application provides a computer readable storage medium for storing program code for executing a switching control method based on a user demand according to any one of the first aspects of the present invention.
From the above technical scheme, the invention has the following advantages: through monitoring the real-time position of user, confirm that the user carries out long-term activity back in indoor somewhere, obtain user's illumination demand based on the regional activity attribute that the user's position corresponds, calculate how to adjust luminance each lamps and lanterns according to lamps and lanterns luminance combination model, just can satisfy user's current illumination demand under the minimum circumstances of energy consumption, make the user can be automatic and accurate adjust to the luminance that satisfies its activity demand when the activity, improve the use experience and the regulation precision of the stepless switch of lamps and lanterns, increase user's use comfort level, and reduce the energy consumption.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a first flowchart of a switch control method based on user demand;
FIG. 2 is a schematic view of an indoor plan construction;
FIG. 3 is a second flowchart of a switch control method based on user demand;
FIG. 4 is a spatial image of a user;
fig. 5 is a block diagram of a switch control system based on user demand.
Detailed Description
In order to make the objects, features and advantages of the present invention more comprehensible, the following description of the embodiments accompanied with the accompanying drawings in the embodiments of the present invention will make it apparent that the embodiments described below are only some embodiments but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a switch control method based on user requirements, which is used for solving the problem that a stepless switch in the prior art is difficult to accurately control the brightness of a lamp to meet the user requirements.
Referring to fig. 1, fig. 1 is a first flowchart of a switch control method based on user requirements according to an embodiment of the present invention.
S100, acquiring real-time activity information of a user, acquiring activity attributes of a current position area when the time for keeping the current position of the user exceeds a preset threshold time, and selecting corresponding illumination requirements according to the activity attributes;
the real-time activity information of the user is specifically the indoor position of the user, an infrared sensor or an ultrasonic sensor can be pre-installed in the indoor, and the current position of the user is detected according to an infrared positioning technology or an ultrasonic positioning technology; or detecting the position of the user according to the real-time image acquired by the indoor camera and the image recognition positioning technology; referring to fig. 2, the indoor plane structure diagram is divided into areas of each room, and the installation positions of each lamp during decoration and installation are marked, wherein the circular points are used as lamps, the indoor plane structure diagram is preset by a user, the user home plane diagram contains information of each room, such as a study room and a bedroom, the user can preset the room area in advance, the user is positioned on the plane diagram according to the real-time activity information of the user, the indoor position of the user is determined, and the user is positioned in which room to obtain the corresponding activity attribute;
the user real-time activity information also comprises time corresponding to the user position, when the user keeps at one position for more than a preset threshold time, the user can be regarded as the user needs to perform activity at the current position, and the preset threshold time can be set to be 1min or 30s; after judging that the user can move for a long time at a certain position in a room, combining the preset activity attribute of the position area, judging the current illumination requirement of the user, for example, that the user is in a study room area for more than 1min, judging that the user has a reading requirement, wherein the illumination of the position of the user needs to be adjusted to be suitable for reading, or that the user is in a bedroom area for more than 1min, judging that the user has a resting sleep requirement, and the illumination of the position of the user needs to be adjusted to be suitable for resting; based on different activity attributes, corresponding illumination requirements are set to be quantized into illumination, the illumination is measured by Lux (Lux), specific values of the illumination requirements are set according to individual requirements of users, the illumination required for the middle is set to be 200Lux, and the illumination required for reading is 600Lux in the embodiment.
S200, acquiring a user home plan, and identifying a first lamp in the same space according to current activity information of a user; the method comprises the steps of obtaining illumination information of each first lamp, calculating the distance between each first lamp and the current position of a user, substituting the distance into a lamp brightness combination model to obtain PWM (pulse width modulation) switch control proportion of each first lamp, wherein the lamp brightness combination model specifically comprises:
;
wherein,for the illumination of the illumination demand->The PWM switch control ratio for the nth first lamp is +.>Less than or equal to 1 +>Rated power for the nth first luminaire, < >>For the light effect of the nth first luminaire, < >>For the distance of the nth first luminaire from the current position of the user, < >>For the minimum value of the total power of the first luminaire, < >>The number of the first lamps in the same space;
it should be noted that the user home plan view also contains the installation position of each lamp and the specification information of each lamp, and the specification information comprises the rated power and the light efficiency of the lamp; the light efficiency is a parameter of a lamp light source, is a ratio of luminous flux to power, and can bring light of a certain lumens (Lm) per watt, namely Lm/w, and the calculation formula is as follows: luminous flux = power x light effect, and multiplying the power and the light effect to obtain the luminous flux of the corresponding lamp; in the method for controlling the brightness of the LED lamp by the stepless switch, the duty ratio can be set by the PWM pulse regulating switch, the duty ratio is the flicker time proportion of the LED lamp in unit time, the brightness of the LED lamp is reduced due to continuous lighting of the LED lamp based on human eye vision residues, and the brightness of the lamp, namely the luminous flux, is correspondingly regulated according to the proportion of the duty ratio;
the illumination required by illumination ensures the luminous flux on a unit area, the light of the lamp is emitted to the periphery, the position of the user only receives illumination on a certain angle, and the farther the distance from the lamp is, the less the intensity of the luminous flux is, so that the illumination is inversely proportional to the square of the distance from the first lamp to the current position of the user; under the PWM switch regulation and control brightness combination of the first lamp, a combination scheme with the minimum total power consumption is further selected, so that the minimum energy consumption under the illumination requirement of a user is met.
S300, setting pulse proportion of the corresponding stepless switch according to PWM switch control proportion of each first lamp.
It should be noted that, each first lamp is connected with a PWM control stepless switch, and brightness can be controlled based on PWM pulse adjustment; because the perception of the human eyes to the light is limited, when the brightness of the lamp changes within a certain range, the human eyes cannot perceive the change of the brightness, when the high level time of the PWM signal occupies a small proportion of the whole period, the brightness of the lamp is darker, and when the high level time of the PWM signal occupies a large proportion of the whole period, the brightness of the lamp is brighter, so that the dimming effect of the lamp is formed;
when a user performs activities in a certain area, the first lamps are possibly only turned on, even if all the first lamps in the room are not turned on, in order to ensure life experience and visual comfort of the user, the lamps in the area where the user is located are required to be automatically turned on after the user is detected to perform continuous activities, and the corresponding PWM switch control proportion is set, so that illumination realized at the position where the user is located is comprehensively achieved by each first lamp to meet the current requirements of the user.
In this embodiment, through monitoring the real-time position of the user, after determining that the user performs long-term activity at a certain indoor position, the illumination requirement of the user is obtained based on the regional activity attribute corresponding to the position of the user, and how the brightness of each lamp is adjusted according to the lamp brightness combination model, so that the current illumination requirement of the user can be met under the condition of lowest energy consumption, the lamp can be automatically and accurately adjusted to the brightness meeting the activity requirement of the user during the activity, the use experience and the adjustment accuracy of the stepless switch of the lamp are improved, the use comfort of the user is increased, and the energy consumption is reduced.
The foregoing is a detailed description of a first embodiment of a switch control method based on user requirements provided in the present application, and the following is a detailed description of a second embodiment of a switch control method based on user requirements provided in the present application.
In this embodiment, referring to fig. 3, after the step S200 of obtaining the lighting information of each first lamp, the method further includes steps S201 to S202, specifically:
s201, acquiring a spatial image of a user, and acquiring a back angle range of the user based on image recognition;
it should be noted that when the user keeps at a position beyond the preset threshold time, the sitting posture or the orientation of the user is relatively fixed, the current image of the user can be shot through the indoor camera, the back direction corresponding to the current facing direction of the user can be detected based on image recognition, or the back direction of the user can be directly detected; a back angle can be preset, for example, 45 degrees, the opposite direction of the binocular vertical center is regarded as a back center after the direction of the user facing is detected, when the preset back angle is 45 degrees, the back angles are regarded as the back angle ranges of the user in the range of 22.5 degrees on the two horizontal sides of the back center respectively, the specific direction of the back angle is obtained, and the specific back angle is set according to the user requirement; in the case of a user sleeping in a lying position, the back angle is horizontally downward, and the range of the back angle may be 0.
S202, obtaining a corresponding user back-facing area in a user home plan according to a user back-facing angle range, and eliminating illumination information corresponding to a first lamp in the user back-facing area;
it should be noted that, referring to fig. 4, fig. 4 is a spatial image where a user is located, small hollow dots in the image are represented as first lamps, the user in the image is on a table reading, a back-to-center dotted line passing through the user is obtained through image recognition, then a specific direction of a back-to-angle range is obtained behind the user based on a preset back-to-angle, and a back-to-user area, namely a triangular area formed by the dotted lines in fig. 4, can be obtained by combining a home plan, and the three first lamps in the area have poor illumination effect on the user area and can cause backlight or shadow, so that corresponding illumination information can be removed; the user back-facing angle range is a piece of space which diverges in a preset back-facing angle direction by taking the current position of the user as a starting point, and after the user home plan is combined, the space can obtain a corresponding user back-facing area under the condition that the indoor space is limited; under the illumination requirement when the user is active, illumination of the back of the user is not beneficial to illumination of a user area, and shadow of the user can be possibly caused to influence the activity of the user, or backlight is caused when the user looks at a screen, so that illumination information of a first lamp in the back of the user is removed, namely the first lamp is equivalent to that the first lamp is not regulated and controlled, the first lamp in the back of the user is kept to be closed without being opened by the user, the first lamp can be set to be 0 in PWM (pulse width modulation) switch control proportion, namely the corresponding first lamp is closed, and the first lamp in the back of the user does not participate in subsequent calculation of a lamp brightness combination model.
Further, after the lighting information of each first lamp is obtained, the method further includes: acquiring a space image of a user, acquiring a position of a second lamp based on image identification, identifying a position of the second lamp which is not recorded as a first lamp, acquiring a position of a soft-packaged lamp, calculating a distance between the soft-packaged lamp and a current position of the user, acquiring preset soft-packaged lamp information, and substituting the preset soft-packaged lamp information into a lamp brightness combination model to acquire a PWM (pulse width modulation) switch control proportion of the soft-packaged lamp;
besides the hard-mounted and fixed indoor lighting lamps, the indoor lighting lamps also comprise soft-mounted lamps which can be moved at will, such as a desk lamp, a bedside lamp and the like, the indoor camera is used for shooting a space image of a user, all luminous light source positions in the image are identified to obtain a position of a second lamp, the position of the second lamp is the position of the lamp found through image identification and comprises the opened hard-mounted lamp and the opened soft-mounted lamp which is not recorded in a household plan, and therefore the position of the soft-mounted lamp is obtained by identifying the position of the second lamp which is not recorded as the first lamp, and the soft-mounted lamp is selected;
the user can pre-store the information of the soft-packaged lamp, for example, the information of the soft-packaged lamp is registered in the intelligent switch control center, and the soft-packaged lamp is connected with the control center through wifi or Bluetooth so as to perform PWM pulse control on the soft-packaged lamp subsequently; when a plurality of soft-packaged lamps are registered, each second lamp can be further distinguished according to the appearance or brightness characteristics of the lamp during image recognition; after further obtaining the information of the soft-packaged lamp and the distance between the soft-packaged lamp and the current position of the user, changing the lamp brightness combination model into:
;
wherein,PWM switch control ratio for mth soft-packaged lamp and +.>Less than or equal to 1 +>Rated power of mth soft-packaged lamp, < >>The light effect of the mth soft-packaged lamp is +.>For the distance of the mth soft-packaged lamp from the current position of the user, < >>Is the number of soft-packaged lamps.
The foregoing is a detailed description of a switch control method based on user requirements in the first aspect of the present application, and the following is a detailed description of an embodiment of a switch control system based on user requirements in the second aspect of the present application.
Referring to fig. 5, fig. 5 is a block diagram of a switch control system based on user requirements. The embodiment provides a switch control system based on user requirements, which comprises:
the illumination demand confirmation module 10 is configured to obtain real-time activity information of a user, obtain an activity attribute of a current location area when a time for which the user keeps the current location exceeds a preset threshold time, and select a corresponding illumination demand according to the activity attribute;
the switch control parameter obtaining module 20 is configured to obtain a user home plan, and identify a first lamp located in the same space according to current activity information of a user; the method comprises the steps of obtaining illumination information of each first lamp, calculating the distance between each first lamp and the current position of a user, substituting the distance into a lamp brightness combination model to obtain PWM (pulse width modulation) switch control proportion of each first lamp, wherein the lamp brightness combination model specifically comprises:
;
wherein,for the illumination of the illumination demand->The PWM switch control ratio for the nth first lamp is +.>Less than or equal to 1 +>Rated power for the nth first luminaire, < >>For the light effect of the nth first luminaire, < >>For the distance of the nth first luminaire from the current position of the user, < >>Is the minimum value of the total power of the first lamp;
the switch control module 30 is configured to set a pulse ratio of the corresponding stepless switch according to the PWM switch control ratio of each first lamp.
Further, the switch control parameter obtaining module 20 further includes:
acquiring a spatial image of a user, and acquiring a back angle range of the user based on image identification;
and obtaining a corresponding user back-facing area in the user home plan according to the user back-facing angle range, and eliminating illumination information corresponding to the first lamp in the user back-facing area.
Further, the switch control parameter obtaining module 20 further includes:
the method comprises the steps of obtaining a space image of a user, obtaining a position of a second lamp based on image identification, identifying a position of the second lamp which is not recorded as a first lamp, obtaining a position of a soft-packaged lamp, calculating a distance between the soft-packaged lamp and a current position of the user, obtaining preset soft-packaged lamp information, and substituting the preset soft-packaged lamp information into a lamp brightness combination model to obtain a PWM (pulse width modulation) switch control proportion of the soft-packaged lamp.
The third aspect of the present application further provides a switch control method device based on user requirements, including a processor and a memory: wherein the memory is used for storing the program code and transmitting the program code to the processor; the processor is configured to execute the above-described switch control method based on the user's requirement according to the instructions in the program code.
A fourth aspect of the present application provides a computer-readable storage medium for storing program code for performing a switching control method based on a user's demand as described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and device described above may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (8)
1. A switch control method based on user demand, characterized by comprising:
acquiring real-time activity information of a user, acquiring activity attributes of a current position area when the time for keeping the current position of the user exceeds a preset threshold time, and selecting corresponding illumination requirements according to the activity attributes;
acquiring a user home plan, and identifying a first lamp in the same space according to current activity information of a user; the method comprises the steps of obtaining illumination information of each first lamp, calculating the distance between each first lamp and the current position of a user, substituting the distance into a lamp brightness combination model to obtain PWM (pulse width modulation) switch control proportion of each first lamp, wherein the lamp brightness combination model specifically comprises:
;
wherein,for the illumination of the illumination demand->Is the nth first lampPWM switch control ratio of (2), and +.>Is less than or equal to 1, and is not more than 1,rated power for the nth first luminaire, < >>For the light effect of the nth first luminaire, < >>For the distance of the nth first luminaire from the current position of the user, < >>For the minimum value of the total power of the first luminaire, < >>The number of the first lamps in the same space;
and setting the pulse proportion of the corresponding stepless switch according to the PWM switch control proportion of each first lamp.
2. The method for controlling a switch according to claim 1, wherein after the obtaining the lighting information of each first lamp, the method further comprises:
acquiring a spatial image of a user, and acquiring a back angle range of the user based on image identification;
and obtaining a corresponding user back-facing area in the user home plan according to the user back-facing angle range, and eliminating illumination information corresponding to the first lamp in the user back-facing area.
3. The method for controlling a switch according to claim 2, wherein after the obtaining the lighting information of each first lamp, the method further comprises:
the method comprises the steps of obtaining a space image of a user, obtaining a position of a second lamp based on image identification, identifying a position of the second lamp which is not recorded as a first lamp, obtaining a position of a soft-packaged lamp, calculating a distance between the soft-packaged lamp and a current position of the user, obtaining preset soft-packaged lamp information, and substituting the preset soft-packaged lamp information into a lamp brightness combination model to obtain a PWM (pulse width modulation) switch control proportion of the soft-packaged lamp.
4. A switch control system based on user demand, comprising:
the illumination demand confirmation module is used for acquiring real-time activity information of the user, acquiring activity attributes of the current position area when the time for keeping the current position of the user exceeds a preset threshold time, and selecting corresponding illumination demands according to the activity attributes;
the switch control parameter acquisition module is used for acquiring a user home plan and identifying a first lamp in the same space according to the current activity information of the user; the method comprises the steps of obtaining illumination information of each first lamp, calculating the distance between each first lamp and the current position of a user, substituting the distance into a lamp brightness combination model to obtain PWM (pulse width modulation) switch control proportion of each first lamp, wherein the lamp brightness combination model specifically comprises:
;
wherein,for the illumination of the illumination demand->The PWM switch control ratio for the nth first lamp is +.>Is less than or equal to 1, and is not more than 1,rated power for the nth first luminaire, < >>For the light effect of the nth first luminaire, < >>For the distance of the nth first luminaire from the current position of the user, < >>Is the minimum value of the total power of the first lamp;
and the switch control module is used for setting the pulse proportion of the corresponding stepless switch according to the PWM switch control proportion of each first lamp.
5. The switch control system according to claim 4, wherein the switch control parameter obtaining module obtains the lighting information of each first lamp, and further comprises:
acquiring a spatial image of a user, and acquiring a back angle range of the user based on image identification;
and obtaining a corresponding user back-facing area in the user home plan according to the user back-facing angle range, and eliminating illumination information corresponding to the first lamp in the user back-facing area.
6. The switch control system according to claim 5, wherein the switch control parameter obtaining module obtains the lighting information of each first lamp, and further comprises:
the method comprises the steps of obtaining a space image of a user, obtaining a position of a second lamp based on image identification, identifying a position of the second lamp which is not recorded as a first lamp, obtaining a position of a soft-packaged lamp, calculating a distance between the soft-packaged lamp and a current position of the user, obtaining preset soft-packaged lamp information, and substituting the preset soft-packaged lamp information into a lamp brightness combination model to obtain a PWM (pulse width modulation) switch control proportion of the soft-packaged lamp.
7. A switch control method device based on user requirements, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute a switching control method according to any one of claims 1-3 based on user requirements according to instructions in the program code.
8. A computer readable storage medium for storing a program code for performing a switching control method based on user requirements according to any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311776952.8A CN117460115B (en) | 2023-12-22 | 2023-12-22 | Switch control method and system based on user demand |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311776952.8A CN117460115B (en) | 2023-12-22 | 2023-12-22 | Switch control method and system based on user demand |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117460115A true CN117460115A (en) | 2024-01-26 |
CN117460115B CN117460115B (en) | 2024-03-08 |
Family
ID=89591534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311776952.8A Active CN117460115B (en) | 2023-12-22 | 2023-12-22 | Switch control method and system based on user demand |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117460115B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219833A (en) * | 2014-07-31 | 2014-12-17 | 四川长虹电器股份有限公司 | Method for intelligently generating lamplight position distribution E-map |
CN106686810A (en) * | 2016-12-20 | 2017-05-17 | 四川长虹电器股份有限公司 | Method for intelligently generating light position map |
CN114615781A (en) * | 2022-03-14 | 2022-06-10 | 魏霞 | RGBW lamp control method and system |
-
2023
- 2023-12-22 CN CN202311776952.8A patent/CN117460115B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219833A (en) * | 2014-07-31 | 2014-12-17 | 四川长虹电器股份有限公司 | Method for intelligently generating lamplight position distribution E-map |
CN106686810A (en) * | 2016-12-20 | 2017-05-17 | 四川长虹电器股份有限公司 | Method for intelligently generating light position map |
CN114615781A (en) * | 2022-03-14 | 2022-06-10 | 魏霞 | RGBW lamp control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN117460115B (en) | 2024-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9326359B2 (en) | Lighting system operation management method | |
EP2949184B1 (en) | Lighting device and lighting system | |
US8593073B2 (en) | Apparatus and methods for interactive illumination | |
US9358360B2 (en) | Illumination apparatus | |
CN105979668B (en) | Lighting system | |
US20150002029A1 (en) | Lighting System | |
Bhardwaj et al. | Smart lighting using LED luminaries | |
CN115604893B (en) | Healthy lighting method, device and system for dynamically adjusting illumination environment of children room | |
EP3626030B1 (en) | Lighting system that maintains melanopic lux levels at the eye regardless of distance to user | |
CN113826445B (en) | Camera-based illumination control | |
KR102571088B1 (en) | Smart lighting control system and its method | |
CN114009148B (en) | Luminance distribution determination | |
JP5763114B2 (en) | LIGHTING DEVICE AND LIGHTING DEVICE CONTROL METHOD | |
CN110691444A (en) | Indoor LED lighting system based on distributed dimming control and adjusting method thereof | |
CN113853044A (en) | Illumination control method, system, storage medium, illumination terminal and desk lamp | |
CN117460115B (en) | Switch control method and system based on user demand | |
JP2021051899A (en) | Illumination system | |
CN108055746B (en) | Method and system for controlling ambient lighting by using smart phone | |
JP2003334250A (en) | Illumination device and illumination control unit | |
US11324097B2 (en) | Illumination control method and illumination control apparatus | |
CN117279175A (en) | Rhythmic illumination dose control method, system, device and storage medium | |
CN115004861A (en) | Controller for controlling a plurality of lighting units in a space and method thereof | |
CN112188709A (en) | Illumination control method, illumination device and desk lamp | |
CN113543422A (en) | Household light environment regulation and control method, device and system | |
CN111295930B (en) | Irradiation environment |
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 |