A lamp scene mode control method, system, device and storage medium
By using the location and identity verification of mobile terminals, combined with the lighting scene mode control system, the problem of identity verification for smart LED lights has been solved, enabling precise lighting control and safe switching, and improving the intelligence and user experience of the lighting system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BENTUO INTELLIGENT MANUFACTURING TECHNOLOGY (GUANGDONG) CO LTD
- Filing Date
- 2026-04-02
- Publication Date
- 2026-06-09
AI Technical Summary
Existing smart LED lighting fixtures lack effective identity verification mechanisms, which can easily lead to mis-pairing and unauthorized control, failing to meet the refined lighting control needs of commercial scenarios.
By acquiring mobile terminal location data and distance analysis of preset lighting network areas, combined with dwell time thresholds and sound signal strength, the system verifies the mobile terminal's control permissions and switches the scene mode of the lighting fixtures according to the current lighting parameters and color temperature, ensuring the legitimacy and security of identity verification.
It enables precise control of the lighting system, improves the safety, stability and comfort of lighting, and enhances scene adaptability and intelligence.
Smart Images

Figure CN122179942A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lighting control technology, and in particular to a lighting scene mode control method, system, device and storage medium. Background Technology
[0002] With the development of LED lighting technology and the popularization of IoT technology, LED luminaires have evolved from simple lighting functions to intelligent, scenario-based, and personalized applications. Commercial applications such as hotel rooms, exhibitions, and retail outlets have also shifted their demands for LED lighting from simple brightness adjustment to refined control of multiple parameters, including color temperature, color gamut, and luminous efficacy. However, existing intelligent LED luminaire control schemes still have many technical shortcomings and cannot meet the actual application needs of commercial scenarios. Existing LED luminaires lack effective identification mechanisms, leading to issues such as mis-pairing and unauthorized control. For example, lights in adjacent hotel rooms may be mistakenly operated, or unauthorized devices may control exhibition lighting in exhibition settings, impacting the user experience. To address these shortcomings, there is an urgent need for intelligent LED luminaires and control methods that can meet the requirements of refined lighting control, adapting to the lighting control needs of different application scenarios such as hotels, shopping malls, exhibitions, food, and retail, and improving the deployment, maintenance, and usage efficiency of LED luminaires. Summary of the Invention
[0003] In order to overcome the shortcomings of the prior art, the purpose of this invention is to provide a lighting scene mode control method, system, device and storage medium.
[0004] A lighting scene mode control method is applied to a lighting scene mode control system, which includes a mobile terminal and lighting fixtures. The lighting scene mode control method includes: acquiring mobile terminal location data and performing distance analysis on the mobile terminal location data and a preset lighting network area to obtain a distance analysis result; obtaining mobile terminal control permissions based on the distance analysis result and a preset dwell time threshold; verifying the mobile terminal control permissions according to a preset device identifier library to obtain an authentication result; if the authentication result is successful, acquiring current lighting parameters, current brightness, and current color temperature; and switching the lighting scene mode of the lighting fixtures according to the current lighting parameters, current brightness, and current color temperature to obtain a safe lighting state.
[0005] Furthermore, the step of obtaining mobile terminal control permissions based on distance analysis results and a preset dwell time threshold includes: if the distance analysis result indicates that the mobile terminal is within the lighting network area, then obtaining the mobile terminal's dwell time and sound signal strength; determining whether the mobile terminal's dwell time is greater than or equal to the dwell time threshold and whether the sound signal strength is greater than or equal to a preset effective trigger threshold; if the mobile terminal's dwell time is greater than or equal to the dwell time threshold and the sound signal strength is greater than or equal to the effective trigger threshold, then obtaining mobile terminal control permissions.
[0006] Furthermore, the step of switching the lighting scene mode of the lamps according to the current lighting parameters, current brightness, and current color temperature to obtain a safe lighting state includes: adjusting the current lighting parameters according to the preset signal frequency, current brightness, and current color temperature to obtain safe lighting parameters; and switching the lighting scene mode of the lamps according to the safe lighting parameters to obtain a safe lighting state.
[0007] Furthermore, the step of adjusting the current lighting parameters according to the preset signal frequency, current brightness, and current color temperature to obtain safe lighting parameters includes: adjusting the current lighting parameters according to the current brightness and current color temperature to obtain updated lighting parameters; switching the lighting scene mode of the lamp according to the updated lighting parameters to obtain the lamp lighting state; obtaining the current lamp output power in the lamp lighting state; optimizing the current lamp output power according to the signal frequency to obtain optimized output power; and adjusting the updated lighting parameters according to the optimized output power to obtain safe lighting parameters.
[0008] Furthermore, the step of adjusting the current lighting parameters based on the current brightness and current color temperature to obtain updated lighting parameters includes: calculating the deviation between the current brightness and the preset target brightness to obtain a brightness deviation value; calculating the deviation between the current color temperature and the preset target color temperature to obtain a color temperature deviation value; and adjusting the current lighting parameters based on preset luminaire capability information, brightness deviation value, color temperature deviation value, and sound signal intensity to obtain updated lighting parameters.
[0009] Furthermore, the step of optimizing the current lamp output power based on the signal frequency to obtain optimized output power includes: performing mapping analysis on the sound signal intensity according to a preset mapping rule to obtain a dimming response coefficient; performing mapping analysis on the current lamp output power according to a preset mapping relationship to obtain a PWM duty cycle; generating a PWM dimming signal based on the signal frequency, PWM duty cycle, and dimming response coefficient; and optimizing the current lamp output power based on the PWM dimming signal to obtain optimized output power.
[0010] Furthermore, the step of adjusting the updated lighting parameters based on the optimized output power to obtain safe lighting parameters includes: acquiring the signal transmission time of the luminaire and the signal reception time of the mobile terminal; calculating the preset speed of light, the signal transmission time of the luminaire, and the signal reception time of the mobile terminal to obtain the actual distance between the devices; and adjusting the updated lighting parameters based on the optimized output power and the actual distance between the devices to obtain safe lighting parameters.
[0011] Furthermore, a lighting scene mode control method is applied to various steps of a lighting scene mode control system as described above, the lighting scene mode control system including a control device, a mobile terminal electrically connected to the control device, and a lighting fixture.
[0012] Furthermore, a computer-readable storage medium stores instructions that, when executed by a processor, implement the various steps of the lighting scene mode control method described above.
[0013] In the technical solution of this invention, distance analysis is performed on the location data of the mobile terminal and the preset lighting network area to accurately determine whether the mobile terminal is within the lighting network area. The effective control boundary is delineated from a spatial dimension. After obtaining the terminal control authority by combining the distance analysis results and the dwell time threshold, a consistency comparison is performed based on the preset device identifier library to strictly verify the legality of the terminal. If the verification fails, the process is terminated to reduce invalid calculations in the system. Only after successful verification are the real-time lighting parameters, current brightness, and current color temperature of the lamp collected, and the scene mode is switched accordingly. This ensures that the safe lighting state is adapted to the scene requirements and user visual habits, guaranteeing the safety, stability, and comfort of the lighting. At the same time, it enhances scene adaptability and comprehensively improves the accuracy and intelligence level of the lighting system control. Attached Figure Description
[0014] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a first flowchart of a lighting scene mode control method provided in an embodiment of the present invention; Figure 2 This is a second flowchart of a lighting scene mode control method provided in an embodiment of the present invention; Figure 3 This is a third flowchart of a lighting scene mode control method provided in an embodiment of the present invention; Figure 4 This is a fourth flowchart of a lighting scene mode control method provided in an embodiment of the present invention; Figure 5 The fifth flowchart of a lighting scene mode control method provided in an embodiment of the present invention; Figure 6 The sixth flowchart of a lighting scene mode control method provided in an embodiment of the present invention; Figure 7 The seventh flowchart of a lighting scene mode control method provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of a lighting scene mode control system provided in an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of a lighting scene mode control device provided in an embodiment of the present invention.
[0015] In the attached diagram, 1-control device; 2-mobile terminal; 3-lighting fixture. Detailed Implementation
[0016] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0017] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 An embodiment of a lighting scene mode control method according to the present invention includes: a lighting scene mode control method applied to a lighting scene mode control system, the lighting scene mode control system including a mobile terminal and lighting fixtures, the lighting scene mode control method including: 101. Obtain mobile terminal location data and perform distance analysis on the mobile terminal location data and the preset lighting network area to obtain distance analysis results; In this embodiment, the mobile terminal location data and the coordinate data of the preset lighting network area are unified into the same spatial coordinate system (such as the WGS84 geographic coordinate system or the indoor Cartesian coordinate system) to eliminate coordinate system deviations caused by different positioning methods (GPS, Bluetooth, Wi-Fi positioning) and ensure that the reference for distance calculation is consistent. The corresponding calculation method is selected according to the shape of the preset lighting network area (commonly circular or rectangular). If the lighting network area is circular, the straight-line distance from the mobile terminal to the center point of the lighting network area is calculated, and the preset area radius of the lighting network area is obtained at the same time. If the lighting network area is rectangular, it is determined whether the terminal location coordinates fall within the horizontal coordinate boundary and the vertical coordinate boundary of the area. If the mobile terminal is within the boundary of the lighting network area (circular: distance from the mobile terminal to the center point ≤ area radius; rectangular: coordinates are within the boundary), "Mobile terminal is within the lighting network area" is output. If the mobile terminal is outside the boundary of the lighting network area (circular: distance from the mobile terminal to the center point > area radius; rectangular: coordinates are outside the boundary), "Mobile terminal is outside the lighting network area" is output. 102. Obtain mobile terminal control permissions based on distance analysis results and preset dwell time thresholds; 103. Verify the mobile terminal's control permissions based on the preset device identifier database to obtain the identity verification result; In this embodiment, a preset device identifier library is used as the core benchmark. The unique device identifiers of authorized and legitimate mobile terminals are pre-entered into the library to establish the authorization benchmark for terminal control permissions. When a mobile terminal initiates a lighting control request, the system first collects the mobile terminal's control rights, then performs a precise consistency comparison between these rights and the pre-stored authorized identifiers in the library. Based on the comparison result, an identity verification result is output: if the identifiers match, verification passes; otherwise, verification fails. The verification result serves as the core permission access basis for subsequent lighting control processes. Verification failure will directly terminate subsequent operations, forming a rigorous permission verification chain. 104. If the authentication result is successful, obtain the current lighting parameters, current brightness, and current color temperature; 105. Switch the lighting scene mode of the lamps according to the current lighting parameters, current brightness and current color temperature to obtain a safe lighting state; In this embodiment, the lighting scene mode of the lamp is switched according to the current lighting parameters, current brightness and current color temperature to achieve a safe lighting state, which fits the scene requirements and user visual habits, ensures the safety and stability of lighting, improves the comfort of use, and enhances scene adaptability, further improving the intelligent level of the lamp system control. In this embodiment, by performing distance analysis on the mobile terminal's location data and a preset lighting network area, it accurately determines whether the mobile terminal is within the lighting network area, delineating the effective control boundary from a spatial perspective. After obtaining terminal control permissions by combining the distance analysis results and dwell time thresholds, a consistency comparison is performed based on a preset device identifier library to strictly verify the terminal's legitimacy. If verification fails, the process is terminated, reducing unnecessary system calculations. Only after successful verification are the real-time lighting parameters, current brightness, and current color temperature of the lamps collected, and the scene mode is switched accordingly. This ensures that the implemented safe lighting state matches the scene requirements and user visual habits, guaranteeing the safety, stability, and comfort of the lighting, while enhancing scene adaptability and comprehensively improving the accuracy and intelligence level of the lighting system control.
[0018] Please see Figure 2 The second embodiment of a lighting scene mode control method according to the present invention specifically includes: 201. If the distance analysis result indicates that the mobile terminal is within the lighting network area, then obtain the dwell time of the mobile terminal and the sound signal strength. In this embodiment, if the distance analysis result indicates that the mobile terminal is within the lighting network area, the dwell time of the mobile terminal (the duration of the terminal continuously within the area is counted by the timing module) and the sound signal strength (collected and transmitted by the mobile terminal microphone, in dB, reflecting whether there is user activity in the scene) are obtained. This step is a prerequisite for triggering, and the core is to define the near-field interaction boundary through position determination and eliminate invalid interference outside the area. 202. Determine whether the dwell time of the mobile terminal is greater than or equal to the dwell time threshold and whether the sound signal strength is greater than or equal to the preset effective trigger threshold; In this embodiment, the dwell time threshold effectively excludes invalid cases where users briefly pass through the lighting network area (e.g., when the mobile terminal's dwell time is less than the dwell time threshold), ensuring that user-based dwell-based lighting needs are triggered; the sound signal strength being greater than or equal to the effective trigger threshold further verifies the authenticity of user activities within the scene; 203. If the dwell time of the mobile terminal is greater than or equal to the dwell time threshold and the sound signal strength is greater than or equal to the effective trigger threshold, then obtain control permissions for the mobile terminal. In this embodiment, the near-field interaction boundary is first delineated based on the location of the lighting network area, directly eliminating invalid interference outside the lighting network area. Only the terminal dwell time and sound signal intensity within the lighting network area are collected, making data collection more targeted. Then, invalid cases of users briefly passing by are excluded by the dwell time threshold, and the authenticity of user activities in the scene is verified by the sound signal intensity threshold. The actual lighting needs of users are accurately identified, and mobile terminal control permissions are only granted after the criteria are met. This lays a reliable foundation for subsequent core steps such as identity verification, effectively avoiding subsequent erroneous operations caused by invalid triggers, and improving the intelligence, accuracy, and security of lighting scene control as a whole.
[0019] Please see Figure 3 The third embodiment of a lighting scene mode control method in this invention specifically includes: 301. Adjust the current lighting parameters according to the preset signal frequency, current brightness, and current color temperature to obtain safe lighting parameters; In this embodiment, the current lighting parameters are adjusted by combining the preset signal frequency, current brightness and current color temperature to generate safe lighting parameters, thereby achieving multi-dimensional precise control. The signal frequency avoids the human eye flicker range and matches the driving characteristics of the lamps. The brightness and color temperature are specifically corrected to meet the needs of the lighting scene, providing reliable support for lighting scene switching and improving the system's intelligent control, adaptability and operational reliability. 302. Switch the lighting scene mode of the luminaire according to the safety lighting parameters to obtain the safety lighting status; In this embodiment, the lighting scene mode of the lamps is switched based on the safety lighting parameters to ensure that the scene switching is highly compatible with the lamp hardware and actual usage requirements, so that the light effect of the safety lighting state is stable and controllable, and the overall control accuracy and reliability are improved. In this embodiment, the current lighting parameters are adjusted by combining the preset signal frequency, current brightness, and current color temperature. The signal frequency avoids the flicker range of the human eye and matches the driving characteristics of the lamp. Based on the current brightness and current color temperature, deviations are specifically corrected, and safe lighting parameters are precisely controlled to generate parameters that meet the lighting needs of the scene, laying a reliable foundation for scene switching. The lighting scene mode is switched based on the safe lighting parameters, ensuring that the switching process is highly adapted to the lamp hardware and actual usage needs. This makes the final safe lighting state stable and controllable, improving the accuracy, intelligence, and reliability of lighting control, while taking into account both lighting safety and scene adaptability.
[0020] Please see Figure 4 The fourth embodiment of a lighting scene mode control method according to the present invention specifically includes: 401. Adjust the current lighting parameters based on the current brightness and color temperature to obtain updated lighting parameters; In this embodiment, the current lighting parameters are adjusted based on the current brightness and color temperature to generate updated lighting parameters. This can accurately correct the brightness and color temperature deviations, making the updated lighting parameters fit the scene lighting needs and user visual habits, improving lighting comfort, laying a solid foundation for subsequent lighting scene mode switching and power optimization, enhancing dimming stability and scene adaptability, and taking into account both experience and safety. 402. Switch the lighting scene mode of the lamps according to the updated lighting parameters to obtain the lighting status of the lamps; 403. Under the illumination status of the lamps, obtain the current output power of the lamps; 404. Optimize the current output power of the lamps based on the signal frequency to obtain optimized output power; In this embodiment, the current output power of the lamp is specifically optimized based on the preset signal frequency to generate an optimized output power. The signal frequency is precisely selected to avoid the human eye's flicker perception range and match the operating frequency of the lamp driver module. This effectively avoids power surges and flicker problems, protects the user's eyesight, and reduces hardware impact. The optimized output power fits the characteristics of the lamp hardware, avoids overload losses, extends equipment life, and lays a stable foundation for subsequent parameter fine-tuning. It takes into account both lighting needs and energy consumption control, and improves system adaptability and operational reliability. 405. Adjust the updated lighting parameters based on the optimized output power to obtain safe lighting parameters; In this embodiment, the core basis is to optimize the output power, adjust and update the lighting parameters to generate safe lighting parameters, and achieve precise matching between the updated lighting parameters and the optimized output power. This ensures that the lighting effect meets the needs of the scene and visual habits, while strictly adhering to the hardware characteristics of the lamp. Ultimately, the safe lighting parameters have both stability and safety, avoiding flicker and power waste issues, providing reliable support for scene mode switching, and taking into account user experience, hardware protection and energy consumption optimization, thereby improving the intelligence and reliability of the overall system control. In this embodiment, lighting parameters are adjusted with brightness and color temperature as the core, and deviations are precisely corrected to make the parameters fit the needs of the scene and visual habits, thereby improving lighting comfort and laying a solid foundation for subsequent processes. The output power of the lamps is optimized by preset signal frequencies, which avoids the flicker range of the human eye, matches the lamp driving frequency, avoids overload losses, and extends the life of the equipment. Finally, the optimized power is used to adjust the updated lighting parameters to generate safe lighting parameters, achieving both safe lighting parameters and optimized output power, taking into account user experience, hardware protection, and energy consumption optimization, providing reliable support for scene switching, and comprehensively improving the intelligence, stability, and adaptability of system control.
[0021] Please see Figure 5 The fifth embodiment of a lighting scene mode control method according to the present invention specifically includes: 501. Calculate the deviation between the current brightness and the preset target brightness to obtain the brightness deviation value; In this embodiment, by calculating the deviation between the current brightness and the preset target brightness, precise data support is provided for adjusting lighting parameters. The brightness deviation can be corrected in a targeted manner to achieve precise matching between brightness and scene requirements, improve lighting comfort, avoid ineffective energy consumption, improve dimming stability and intelligence level, and adapt to multiple scene applications. 502. Calculate the deviation between the current color temperature and the preset target color temperature to obtain the color temperature deviation value; In this embodiment, by calculating the deviation between the current color temperature and the preset target color temperature, a quantitative basis is provided for precise color temperature control. Color temperature deviation can be corrected in a targeted manner to avoid problems such as glaring cold light and overly soft warm light. This adapts to the color temperature requirements of different scenarios, conforms to users' visual habits, and improves the lighting experience. 503. Adjust the current lighting parameters based on the preset luminaire capacity information, brightness deviation value, color temperature deviation value and sound signal intensity to obtain updated lighting parameters; In this embodiment, the luminaire capability information is generated based on the "color temperature range" and "luminaire hardware performance," serving as the "boundary threshold" for parameter adjustment. The color temperature range clearly defines the adjustable color temperature range of the luminaire (e.g., 1600K–12000K), while the hardware performance encompasses indicators such as rated power, maximum dimming rate, and drive circuit capacity. This hardware performance limits the adjustment range at the hardware level, preventing luminaire malfunctions, abnormal luminous efficacy, or lifespan loss caused by current lighting parameters exceeding hardware limits. Brightness deviation and color temperature deviation provide a benchmark for adjustment range. Sound signal strength serves as an environmental adaptation factor, dynamically adjusting the dimming rate (e.g., faster dimming in noisy environments, slower dimming in quiet environments) to improve scene adaptability. In this embodiment, the brightness deviation value and color temperature deviation value provide precise data support and quantitative basis for regulation, which can specifically correct brightness and color temperature deviations. This avoids problems such as excessive brightness or dimness, glaring cold light or excessively soft warm light, and ensures that the brightness and color temperature meet the needs of the scene and the user's visual habits, thereby improving lighting comfort and user experience. At the same time, the capability boundary is constructed based on the hardware performance and color temperature range of the lamp, which limits the adjustment range at the hardware level, avoids lamp failure, abnormal light effect and life loss caused by parameter exceeding the limit, and ensures operational stability. Combined with the dynamic adjustment of the dimming rate by the sound signal intensity, it can adapt to different environmental scenarios, take into account the energy consumption optimization and intelligent control level, and can flexibly adapt to various scenarios such as home and commercial showrooms (clothing, food, jewelry), so as to achieve multiple improvements in experience, safety and adaptability.
[0022] Please see Figure 6 The sixth embodiment of a lighting scene mode control method according to the present invention specifically includes: 601. Perform mapping analysis on the sound signal intensity according to the preset mapping rules to obtain the dimming response coefficient; In this embodiment, the intelligent control module of the lamp completes the analysis and calculation. The core input is the ambient sound signal intensity (unit dB, reflecting the noise level of the current scene, such as 40dB-50dB in a quiet home scene and 70dB-80dB in a noisy commercial showroom scene) collected and transmitted by the mobile terminal. The preset mapping rule is a unique association rule between the sound signal intensity and the dimming response coefficient. It adopts linear or non-linear piecewise mapping to adapt to the dimming needs of different lighting scenes. The mapping rule is built into the lamp storage module and can be flexibly modified. The dimming response coefficient ranges from 0 to 1. The core association logic is that the greater the sound signal intensity, the closer the dimming response coefficient is to 1, and the higher the dimming sensitivity. The smaller the sound signal intensity, the closer the coefficient is to 0, and the smoother the dimming. After mapping analysis, a unique dimming response coefficient is generated. This coefficient serves as the environmental adaptation factor for the subsequent PWM dimming signal generation and directly determines the adjustment range of the PWM duty cycle, ensuring that the dimming behavior is highly matched with the ambient sound characteristics. 602. Perform mapping analysis on the current lamp output power according to the preset mapping relationship to obtain the PWM duty cycle; In this embodiment, the PWM duty cycle is the core parameter that determines the power supply of the lamp driver module. It is positively and linearly correlated with the lamp output power (the larger the duty cycle, the higher the proportion of the driver module's power supply time, and the greater the lamp output power). The preset mapping relationship is a power-PWM duty cycle exclusive mapping table calibrated by the lamp before it leaves the factory according to its own hardware characteristics (such as LED chip specifications and driver circuit parameters), ensuring a one-to-one correspondence between duty cycle and power. The lamp intelligent control module reads the current output power in the temporary lighting state (i.e., the unoptimized power corresponding to the updated lighting parameters), compares it with the preset mapping relationship, and quickly matches and generates the corresponding basic PWM duty cycle (value from 0% to 100%). This process is a hardware characteristic adaptation step to avoid power sudden changes and abnormal light effect caused by the mismatch between duty cycle and lamp hardware. If the current output power is at the critical value of the preset mapping relationship, the control module will calculate the accurate duty cycle through interpolation algorithm to ensure no power jump, laying a stable basic parameter for the subsequent dimming signal generation. 603. Generate a PWM dimming signal based on the signal frequency, PWM duty cycle, and dimming response coefficient; In this embodiment, the preset signal frequency (e.g., 1kHz, 2kHz) is the fixed carrier frequency of the PWM dimming signal, determined by the type of lamp. The selection principle is to avoid the human eye's flicker perception range and match the operating frequency of the lamp driver module to ensure that there is no visible flicker during the dimming process. Based on the preset signal frequency as the carrier, the basic PWM duty cycle is multiplied by the dimming response coefficient to obtain the dynamically adjusted actual duty cycle. Then, a continuous and smooth PWM dimming signal is generated based on this actual duty cycle. The core correction logic is as follows: when the environment is noisy (coefficient ≈ 1), the actual duty cycle is close to the basic value, and the dimming amplitude matches the power demand to meet the strong light lighting requirements; when the environment is quiet (coefficient ≈ 0.5-0.7), the actual duty cycle is appropriately reduced, the dimming is smoother, and the strong light is avoided. The generated PWM dimming signal is a digital electrical signal that is directly transmitted to the PWM driver module of the lamp. The signal transmission process uses hardware level triggering to ensure no delay and no distortion. 604. Optimize the current output power of the lamps based on the PWM dimming signal to obtain optimized output power; In this embodiment, the output power of the current lamp is optimized according to the duty cycle of the PWM dimming signal, so that the output power of the lamp gradually transitions from "unoptimized temporary power" to stable optimized output power. During the adjustment process, the duty cycle changes continuously without step jumps, so the output power of the lamp has no sudden changes and small fluctuations, thus achieving smooth power optimization. In this embodiment, a dimming response coefficient is generated based on the sound signal intensity mapping, allowing the dimming behavior to dynamically adapt to the noise level of the scene. Sensitivity is increased in noisy scenes, while dimming is smoothed in quiet scenes, balancing lighting needs and visual comfort. Based on the dedicated power-PWM duty cycle mapping relationship calibrated by the luminaire hardware, and with the help of interpolation algorithms, power abrupt changes and abnormal light effects caused by mismatch between the analyzed PWM duty cycle and the hardware are avoided. A fixed carrier frequency avoids the flicker range, and a PWM dimming signal is generated by combining the dynamic actual PWM duty cycle. Hardware level triggering transmission ensures no delay or distortion, achieving smooth power adjustment without step jumps. This lays a stable foundation for the subsequent generation of safe lighting parameters, taking into account versatility, safety, and energy conservation and environmental protection.
[0023] Please see Figure 7 The seventh embodiment of a lighting scene mode control method according to the present invention specifically includes: 701. Obtain the signal transmission time of the lighting fixture and the signal reception time of the mobile terminal; In this embodiment, the lamp acts as a signal transmitter. When sending a specific synchronization signal to the mobile terminal, it records the signal transmission time (T1) through a built-in high-precision timing module (such as a timer in a microcontroller MCU with microsecond-level timing accuracy) and embeds T1 synchronously into the signal data packet. The mobile terminal acts as a receiver. After receiving the signal through a wireless communication module (Bluetooth, NFC, etc.), it also records the signal reception time (T2) through its own timing module, ensuring that the timestamp is accurately bound to the signal transmission behavior. 702. Calculate the preset light speed, the signal transmission time of the lamp, and the signal reception time of the mobile terminal to obtain the actual distance between the devices; In this embodiment, the propagation speed of electromagnetic waves (wireless signals) is approximately equal to the speed of light (preset speed of light). Based on the physical characteristics of the light fixture, the straight-line distance between devices is calculated using the round-trip time difference of the signal. Since the signal transmission from the light fixture to the mobile terminal is a one-way transmission, and the recorded time difference (T2-T1) includes the one-way time of signal "transmission-reception", the formula for calculating the actual distance (L) between devices is: The "divide by 2" in the formula is the core correction term, which is used to eliminate the redundant time of signal round trip and ensure that the distance calculation is the actual one-way distance. This calculation method is suitable for close-range scenarios of smart lighting (usually 0m-15m, such as homes, hotel rooms, and exhibition halls). 703. Adjust the updated lighting parameters based on the optimized output power and the actual distance between devices to obtain safe lighting parameters; In this embodiment, the "updated lighting parameters" (parameters after brightness / color temperature deviation calibration and luminaire capability information adaptation) are the foundation, while incorporating two key variables: ① Optimized output power (optimized by PWM dimming, with no sudden changes and strong stability); ② Actual distance between devices (reflecting the positional relationship between the user and the luminaire). The core principle of adjustment is "distance adapts to power, power constrains parameters," and all adjustment values strictly do not exceed the preset luminaire capability information range (e.g., color temperature adjustment range (wide-range high-precision color tuning: supports 305 basic color adjustments, color temperature covers a wide range of 1600K–12000K, can finely adjust DUV color deviation, saturation, and chromaticity parameters, combining to achieve thousands of light color outputs, low color difference guarantee: color difference ΔE≤1.5, meeting the needs of professional-grade color rendering and high-precision lighting; visual interaction: the APP supports color wheel, color gamut diagram, slider, and ring control operations, realizing "what you see is what you get"). The system adjusts brightness and color temperature to balance professional tuning precision with ease of use for ordinary users. It also adjusts maximum brightness and rated power. When users approach the light fixture, to avoid glare from strong light, it appropriately reduces brightness based on optimized output power (e.g., optimized output power of 30W corresponds to 500lm brightness, adjusted to 350lm-400lm for close-range scenes (L≤1.5m)) and fine-tunes the color temperature to the warm light range (e.g., reducing it by 200K-300K), while maintaining stable light output and avoiding power waste. In this embodiment, relying on the timing modules of the lamp and the mobile terminal, the signal transmission and reception timestamps are synchronously bound, utilizing the fact that the propagation speed of electromagnetic waves (wireless signals) is approximately equal to the speed of light (preset speed of light). Based on the physical characteristics of the signal round-trip time difference, the linear distance between devices is calculated. Based on the optimization of output power, the lighting parameters are dynamically adjusted according to the linear distance between devices. The system adapts to soft and warm light at close range, reduces brightness to avoid glare, and balances light efficiency stability and energy consumption optimization. It is compatible with various types of lamps and home scenarios, improving lighting comfort and safety while enhancing system versatility and operational stability.
[0024] The above describes a lighting scene mode control method according to an embodiment of the present invention. The following describes a lighting scene mode control system according to an embodiment of the present invention. Please refer to [link / reference]. Figure 8 One embodiment of a lighting scene mode control system according to the present invention includes: A lighting scene mode control method is applied to each step of a lighting scene mode control system as described above, the lighting scene mode control system including a control device 1, a mobile terminal 2 electrically connected to the control device 1, and a lighting fixture 3. Control device 1 adopts a standardized NFC control module, which includes two core modules. The underlying circuitry and control logic of the two modules are completely identical, and only their appearance and installation methods differ. External independent small square box: adopts standard parts structure, can be externally attached to all types of lighting equipment (including lamps 3), fixed after installation, cannot be disassembled, and has strong versatility; Embedded snap-fit components: support detachable installation and flexible use; Both modules share a hardware platform and control logic, enabling standardized mass production, effectively reducing R&D and manufacturing costs while ensuring product functionality consistency and stability. They support NFC contactless control and simple scenario-based interaction, requiring no power, gateway, or WiFi; simply bring your phone close to quickly read and write lighting parameters. Configuration for a single device takes ≤2 minutes, shortening on-site debugging and project delivery cycles. The app includes 7 standardized commercial scenarios (home appliances, beauty and cosmetics, daily necessities, agricultural products, clothing, food, and jewelry), preset with optimal lighting parameters, and an extremely simple operation process: click on a scene, NFC touch, automatic writing (current brightness and color temperature, etc.), and one-click light switching, all without manual parameter adjustment. It also features full lifecycle data traceability, recording device usage counts, runtime, energy consumption, switching frequency, firmware version, and other information, making the entire process traceable. With intelligent power-off memory, parameters are automatically saved during power outages, eliminating the need for reconfiguration upon power-up, and accurately tracking power-on counts and usage time. Figure 9 This is a schematic diagram of the structure of a lighting scene mode control device 900 provided in an embodiment of the present invention. This lighting scene mode control device 900 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 910 (e.g., one or more processors) and a memory 920, and one or more storage media 930 (e.g., one or more mass storage devices) storing application programs 933 or data 932. The memory 920 and storage media 930 can be temporary or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the lighting scene mode control device 900. Furthermore, the processor 910 may be configured to communicate with the storage media 930 and execute a series of instruction operations in the storage media 930 on the lighting scene mode control device 900 to implement the steps of the lighting scene mode control method provided in the above-described method embodiments.
[0025] A lighting scene mode control device 900 may further include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input / output interfaces 960, and / or one or more operating systems 931, such as Windows Server, MacOSX, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 9 The illustrated structure of a lighting scene mode control device does not constitute a limitation on a lighting scene mode control device. It may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0026] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of a lighting scene mode control method.
[0027] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0028] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0029] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for controlling lighting scene modes, characterized in that, An application is made to a lighting scene mode control system, the lighting scene mode control system comprising a mobile terminal and lighting fixtures, the lighting scene mode control method comprising: Acquire mobile terminal location data and perform distance analysis on the mobile terminal location data and the preset lighting network area to obtain the distance analysis results; Mobile terminal control permissions are obtained based on distance analysis results and preset dwell time thresholds; The mobile terminal's control permissions are verified based on a pre-defined device identifier database to obtain the identity verification result; If the authentication result is successful, then obtain the current lighting parameters, current brightness, and current color temperature; The lighting scene mode of the luminaire is switched according to the current lighting parameters, current brightness and current color temperature to obtain a safe lighting state.
2. The lighting scene mode control method as described in claim 1, characterized in that, The process of obtaining mobile terminal control permissions based on distance analysis results and a preset dwell time threshold includes: If the distance analysis result indicates that the mobile terminal is within the lighting network area, then obtain the mobile terminal's dwell time and sound signal strength; Determine whether the dwell time of the mobile terminal is greater than or equal to the dwell time threshold and whether the sound signal strength is greater than or equal to the preset effective trigger threshold; If the mobile terminal stay time is greater than or equal to the stay time threshold and the sound signal strength is greater than or equal to the effective trigger threshold, then control permissions for the mobile terminal are obtained.
3. The lighting scene mode control method as described in claim 2, characterized in that, The step of switching the lighting scene mode of the lamps according to the current lighting parameters, current brightness, and current color temperature to obtain a safe lighting state includes: The current lighting parameters are adjusted based on the preset signal frequency, current brightness, and current color temperature to obtain safe lighting parameters; Switch the lighting scene mode of the luminaire according to the safety lighting parameters to obtain the safety lighting status.
4. The lighting scene mode control method as described in claim 3, characterized in that, The step of adjusting the current lighting parameters according to the preset signal frequency, current brightness, and current color temperature to obtain safe lighting parameters includes: The current lighting parameters are adjusted based on the current brightness and color temperature to obtain updated lighting parameters; The lighting scene mode of the luminaire is switched according to the updated lighting parameters to obtain the lighting status of the luminaire; Under the lighting conditions of the lamps, obtain the current output power of the lamps; The output power of the current lighting fixture is optimized based on the signal frequency to obtain an optimized output power; The updated lighting parameters are adjusted based on the optimized output power to obtain safe lighting parameters.
5. The lighting scene mode control method as described in claim 4, characterized in that, The step of adjusting the current lighting parameters based on the current brightness and current color temperature to obtain updated lighting parameters includes: The deviation between the current brightness and the preset target brightness is calculated to obtain the brightness deviation value; The deviation between the current color temperature and the preset target color temperature is calculated to obtain the color temperature deviation value; The current lighting parameters are adjusted based on preset luminaire capability information, brightness deviation value, color temperature deviation value, and sound signal intensity to obtain updated lighting parameters.
6. The lighting scene mode control method as described in claim 4, characterized in that, The optimization of the current lamp output power based on the signal frequency to obtain optimized output power includes: The sound signal intensity is mapped and analyzed according to the preset mapping rules to obtain the dimming response coefficient; The current lamp output power is mapped and analyzed according to the preset mapping relationship to obtain the PWM duty cycle; A PWM dimming signal is generated based on the signal frequency, PWM duty cycle, and dimming response coefficient. The output power of the current lamp is optimized based on the PWM dimming signal to obtain the optimized output power.
7. The lighting scene mode control method as described in claim 4, characterized in that, The step of adjusting the updated lighting parameters based on the optimized output power to obtain safe lighting parameters includes: Obtain the signal transmission time of the lighting fixture and the signal reception time of the mobile terminal; The preset speed of light, the signal transmission time of the lamps, and the signal reception time of the mobile terminal are calculated to obtain the actual distance between the devices; The updated lighting parameters are adjusted based on the optimized output power and the actual distance between devices to obtain safe lighting parameters.
8. A method for controlling lighting scene modes, characterized in that, The lighting scene mode control system described in any one of claims 1-7 is applied to various steps of the lighting scene mode control system, which includes a control device, a mobile terminal electrically connected to the control device, and a lighting fixture.
9. A lighting scene mode control device, characterized in that, include: A memory and at least one processor, wherein the memory stores instructions; At least one of the processors invokes the instructions in the memory to cause the lighting scene mode control device to perform the steps of the lighting scene mode control method as described in any one of claims 1-7.
10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions are executed by the processor, they implement the various steps of the lighting scene mode control method as described in any one of claims 1-7.