Intelligent lighting control method and device based on gesture mapping, equipment and medium

By detecting gesture dragging operations in the intelligent lighting system to generate coordinate trajectories, and converting nonlinear mapping models into optical parameters, multi-modal feedback and control instruction sequence sending is solved, and the problems of single interaction dimensions, low multi-device control efficiency and lack of feedback in the intelligent lighting system are solved, improving user experience and control efficiency.

CN120358654APending Publication Date: 2025-07-22北京自如信息科技有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510428762.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-07
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

The existing intelligent lighting system has a single interactive dimension, low control efficiency of multiple devices, lack of operation feedback and untraceable status, making it difficult to meet the high-standard needs of modern smart homes.

Method used

By detecting the user's gesture drag operation on the lighting control panel of the smart terminal, a continuous coordinate trajectory is generated, and the coordinate trajectory is converted into optical parameters using a nonlinear mapping model, a multi-modal feedback operation is performed, and a control command sequence is generated to send it to the lighting device to realize dynamic switching of lighting effects.

Benefits of technology

It enriches the interaction dimension, provides real-time diversified feedback, improves the efficiency of collaborative control of multiple devices, and quickly responds to environmental changes and user needs, solving the problems of single interaction dimension, low multi-device control efficiency, and lack of operation feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120358654A_ABST
    Figure CN120358654A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of light control, and discloses an intelligent lighting control method, device and equipment based on gesture mapping and a medium, and the method comprises the steps: detecting a gesture dragging operation of a user on a light control panel of an intelligent terminal for light equipment, and generating a continuous coordinate track; converting the coordinate track into an optical parameter based on a nonlinear mapping model, and executing a multi-mode feedback operation on the light control panel according to the optical parameter; and generating a corresponding control instruction sequence by using the optical parameters, and sending the control instruction sequence to the corresponding light equipment, so that the light equipment executes dynamic switching operation of the light effect based on the control instruction sequence. According to the invention, the problems of single interaction dimension, low multi-device control efficiency, lack of operation feedback and non-traceable state of the existing intelligent illumination system are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lighting control, and particularly to an intelligent lighting control method, device, equipment and medium based on gesture mapping. Background Art

[0002] With the rapid development of smart home technology, intelligent lighting systems have gradually become the core component of the whole-house smart scenario. Traditional lighting control solutions mostly adopt physical buttons, single-point touch or slider adjustment of mobile applications to adjust basic parameters such as color temperature and brightness through simple interface interactions. However, such systems have significant limitations in terms of interaction design, control efficiency and scene adaptability, and are particularly difficult to meet the high standards of modern smart homes in dimensions such as multi-device collaborative control, environmental dynamic response and user experience optimization.

[0003] Existing intelligent lighting control systems generally have the following defects: the interaction dimension is single, only supporting single-dimensional operations such as clicking or sliders, unable to achieve synchronous adjustment of color temperature and brightness, and the operation process lacks a real-time feedback mechanism; the control efficiency of multiple devices is low, requiring manual operation one by one, with an average long duration and lacking an abnormal device handling mechanism, which easily leads to failed instruction execution; the scene switching process is complex, and preset modes need to be selected through a secondary menu, making it difficult to quickly respond to environmental changes; the operation status is not traceable, and the system does not provide a historical record and rollback function. These problems seriously restrict the practicality and user experience of intelligent lighting systems. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide an intelligent lighting control method, device, equipment and medium based on gesture mapping to solve the problems of single interaction dimension, low multi-device control efficiency, lack of operation feedback and non-traceable status existing in existing intelligent lighting systems.

[0005] In a first aspect, an embodiment of the present invention provides an intelligent lighting control method based on gesture mapping, the method comprising:

[0006] Detecting a gesture dragging operation of a user on a lighting intelligent control panel of a smart terminal for a lighting device to generate a continuous coordinate trajectory;

[0007] Converting the coordinate trajectory into optical parameters based on a non-linear mapping model, and performing a multi-modal feedback operation on the lighting intelligent control panel according to the optical parameters;

[0008] Generating a corresponding control instruction sequence using the optical parameters, and sending the control instruction sequence to the corresponding lighting device, so that the lighting device performs a dynamic switching operation of a lighting effect based on the control instruction sequence.

[0009] Further, the conversion of the coordinate trajectory into optical parameters by the non-linear mapping model includes:

[0010] Obtain the preset coordinate system of the intelligent lighting control panel;

[0011] Determine the coordinate values corresponding to the coordinate trajectory according to the mapping relationship of the preset coordinate system;

[0012] Convert the coordinate values into optical parameters through a coordinate-parameter conversion formula.

[0013] Further, the execution of the multi-modal feedback operation on the intelligent lighting control panel according to the optical parameters includes:

[0014] Calculate the coordinate position corresponding to the optical parameter through an inverse mapping formula, dynamically mark the coordinate position on the intelligent lighting control panel, and render the actual state of the lighting device in real time;

[0015] Judge whether the optical parameter meets the haptic feedback condition. When the haptic feedback condition is met, calculate the corresponding vibration frequency according to the optical parameter, and apply damped vibration feedback to the gesture dragging operation according to the vibration frequency.

[0016] Further, the judgment of whether the optical parameter meets the haptic feedback condition includes:

[0017] Calculate the corresponding color temperature change gradient and brightness change rate based on the optical parameter;

[0018] Judge whether the color temperature change gradient exceeds a preset gradient threshold and whether the brightness change rate exceeds a preset rate threshold;

[0019] When the color temperature change gradient exceeds the preset gradient or the brightness change rate exceeds the preset rate threshold, determine that the optical parameter meets the haptic feedback condition.

[0020] Further, the generation of the corresponding control instruction sequence by using the optical parameter includes:

[0021] Construct the corresponding lighting control instruction according to the optical parameter;

[0022] Assign a corresponding transaction identifier to each lighting control instruction, where the transaction identifier includes the device identifier of the lighting device and the optical parameter;

[0023] Obtain the device type and spatial priority of each lighting device;

[0024] Sort the lighting control instructions based on the spatial priority and device type to obtain a control instruction sequence.

[0025] Further, before detecting a user's gesture dragging operation on the lighting control panel of the smart terminal for a lighting device, it further includes:

[0026] Receiving a selection instruction for a preset lighting effect mode triggered by the user, where the preset lighting effect mode includes optical reference parameters;

[0027] When the lighting effect modes corresponding to multiple selection instructions conflict, adding the later selection instruction to a buffer queue, and performing a switching operation of the lighting effect mode according to the timestamp of the selection instruction in the buffer queue;

[0028] Monitoring the user's adjustment operation on the optical parameters after the switching operation, and automatically updating the optical reference parameters of the preset lighting effect mode when the number of adjustments continuously exceeds a preset number.

[0029] Further, after sending the control instruction sequence to the corresponding lighting device, the method further includes:

[0030] Recording the historical control effects of each lighting device in a transaction log;

[0031] Triggering a rollback mechanism according to the historical control effects, and resending the control instruction sequence according to the spatial priority and the device type;

[0032] Maintaining an unresponsive status mark for offline devices, and preferentially sending the most recent control instruction when the offline devices come back online.

[0033] In a second aspect, an embodiment of the present invention provides an intelligent lighting control device based on gesture mapping, and the device includes:

[0034] A detection module, configured to detect a user's gesture dragging operation on the lighting control panel of the smart terminal for a lighting device, and generate a continuous coordinate trajectory;

[0035] A conversion module, configured to convert the coordinate trajectory into optical parameters based on a non - linear mapping model, and perform a multi - modal feedback operation on the lighting control panel according to the optical parameters;

[0036] A generation module, configured to generate a corresponding control instruction sequence by using the optical parameters, and send the control instruction sequence to the corresponding lighting device, so that the lighting device performs a dynamic switching operation of the lighting effect based on the control instruction sequence.

[0037] In a third aspect, an embodiment of the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method according to the first aspect or any corresponding embodiment thereof.

[0038] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the method according to the first aspect or any corresponding embodiment thereof.

[0039] The method provided by the embodiments of the present application has the following beneficial effects:

[0040] By detecting the gesture dragging operation of the user on the intelligent terminal lighting control panel and generating a continuous coordinate trajectory, the method provided by the embodiments of the present application enables the user to interact with the lighting system in a more natural and intuitive manner, getting rid of the limitation of the traditional single-dimensional operation. Based on the non-linear mapping model, converting the coordinate trajectory into optical parameters can realize the synchronous adjustment of optical parameters such as color temperature and brightness, greatly enriching the interaction dimension. Performing multi-modal feedback operations on the lighting control panel according to the optical parameters provides real-time and diverse feedback to the user, enhancing the operation experience. Generating a control instruction sequence using the optical parameters and sending it to the lighting device to realize the dynamic switching of lighting effects improves the efficiency of multi-device collaborative control, can quickly respond to environmental changes and user needs, and effectively solves the problems of single interaction dimension, low multi-device control efficiency, and lack of operation feedback in the existing intelligent lighting system. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0042] Figure 1 is a schematic flowchart of an intelligent lighting control method based on gesture mapping according to an embodiment of the present invention;

[0043] Figure 2 is a schematic flowchart of an intelligent lighting control operation based on gesture mapping according to an embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of the main interface of a smart home control application according to an embodiment of the present invention;

[0045] Figure 4 is a schematic diagram of the control panel interface of a smart home control application according to an embodiment of the present invention;

[0046] Figure 5 is a schematic diagram of the control panel state display of a smart home control application according to an embodiment of the present invention

[0047] Figure 6 is a structural block diagram of an intelligent lighting control device based on gesture mapping according to an embodiment of the present invention;

[0048] Figure 7 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Specific embodiments

[0049] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0050] According to an embodiment of the present invention, there are provided an intelligent lighting control method, device, equipment, and medium based on gesture mapping. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0051] In this embodiment, an intelligent lighting control method based on gesture mapping is provided. Figure 1 is a flowchart of an intelligent lighting control method based on gesture mapping according to an embodiment of the present invention, as Figure 1 shown, and the process includes the following steps:

[0052] Step S11, detecting a gesture dragging operation of a user on a lighting intelligent control panel of an intelligent terminal for a lighting device, and generating a continuous coordinate trajectory.

[0053] In the embodiments of the present application, detecting a gesture dragging operation is the starting operation of the entire intelligent lighting control process. The intelligent lighting control panel is the interaction interface between the user and the intelligent lighting system. When the user drags a finger on the panel, the movement trajectory of the finger is closely tracked. Since dragging is a continuous process, the system continuously captures the position information of the finger at different moments, and based on the preset rectangular coordinate system adopted by the intelligent lighting control panel (this coordinate system is aligned with the physical coordinate system of the touch screen, the X-axis is horizontal, the Y-axis is vertical, and directly maps the physical screen size), these position information are converted into corresponding coordinates. As the user continues to drag, the coordinates at consecutive moments are recorded in sequence, and finally a continuous coordinate trajectory is formed. This coordinate trajectory contains detailed information about the user's dragging operation and is the key basis for subsequently converting it into optical parameters for controlling lighting devices. For example, when the user drags from the lower left corner to the upper right corner of the panel, the system will record the coordinates corresponding to each instant from the starting point to the ending point, thereby generating a complete coordinate trajectory, laying the foundation for the precise control of lighting devices subsequently.

[0054] Step S12: Convert the coordinate trajectory into optical parameters based on the non-linear mapping model, and perform a multi-modal feedback operation on the intelligent lighting control panel according to the optical parameters.

[0055] In the embodiments of the present application, first, the coordinate trajectory is converted into optical parameters based on the non-linear mapping model. Specifically, the preset coordinate system of the intelligent lighting control panel is obtained, the coordinate values corresponding to the coordinate trajectory are determined according to its mapping relationship, and then the optical parameters are obtained using the coordinate-parameter conversion formula. After that, multi-modal feedback is performed on the panel based on these optical parameters: one is to calculate the coordinate position corresponding to the optical parameters through the inverse mapping formula, dynamically mark and render the device state in real time; the other is to determine whether the optical parameters meet the haptic feedback conditions, that is, calculate the color temperature change gradient and the brightness change rate to see if they exceed the preset threshold. If they meet the conditions, calculate the vibration frequency and apply damped vibration feedback.

[0056] In the embodiments of the present application, converting the coordinate trajectory into optical parameters based on the non-linear mapping model includes the following steps A1 - A3:

[0057] Step A1: Obtain the preset coordinate system of the intelligent lighting control panel.

[0058] Specifically, first, a rectangular coordinate system model matching the physical screen size of the user terminal is established. The coordinate system takes the lower left corner of the screen as the origin (0, 0), the positive X-axis extends to the right side of the screen (the maximum value W is the screen width), and the positive Y-axis extends to the top of the screen (the maximum value H is the screen height). The coordinate system division adopts a 1:1 physical pixel mapping strategy to ensure an absolute correspondence between the gesture position and the screen contact point. In the initialization stage, the system obtains the screen resolution parameters through the device API, dynamically generates a coordinate grid adapted to the current device, and establishes a coordinate reference system accurate to 0.1 mm.

[0059] Step A2, determine the coordinate values corresponding to the coordinate trajectory according to the mapping relationship of the preset coordinate system.

[0060] Specifically, when the user performs a gesture operation, the contact point coordinate sequence is recorded at a sampling interval of 20 ms. For each sampling point (x, y), coordinate validity verification is performed: if the contact point exceeds the screen boundary, it is automatically corrected to the nearest valid coordinate (x ∈ [0, W], y ∈ [0, H]). By establishing a double-buffer queue, Kalman filtering is performed on the coordinate trajectory to eliminate the contact point jitter error, and finally a smooth coordinate trajectory sequence is output. At the same time, the contact point movement speed is recorded As a dynamic adjustment parameter for subsequent haptic feedback.

[0061] Step A3, convert the coordinate values into optical parameters through the coordinate-parameter conversion formula.

[0062] Specifically, a non-linear conversion engine is used to perform parameter calculation. For the color temperature parameter, a piecewise exponential function is applied Among them, the design of the exponent 1.5 realizes a high-sensitivity response in the low color temperature region (2700 - 4000 K) (when the contact point moves 1 cm, ΔT ≈ 150 K) and a fine adjustment in the high color temperature region (4000 - 6500 K) (when the contact point moves 1 cm, ΔT ≈ 50 K). The brightness parameter adopts a quadratic function A slow-varying adjustment curve is formed in the lower half of the screen (y < 0.5H) (when the contact point moves 1 cm, ΔL ≈ 5%), and a steep-varying characteristic is presented in the upper half (y > 0.5H) (when the contact point moves 1 cm, ΔL ≈ 15%). The calculation process implements dynamic range constraints. When the calculation result exceeds [2700, 6500] K or [0%, 100%], it is automatically truncated to the boundary value and an exception warning is triggered.

[0063] The method provided by the embodiment of the present application can provide an accurate reference for the subsequent determination of coordinate values by obtaining the preset coordinate system of the intelligent lighting control panel. The coordinate values corresponding to the coordinate trajectory are determined according to the mapping relationship of the preset coordinate system, ensuring the accuracy of the coordinate values. The coordinate values are converted into optical parameters through the coordinate-parameter conversion formula, realizing the accurate conversion from the coordinate information of the user operation to the optical parameters recognizable by the lighting system, making the process of controlling the optical parameters of the light based on gesture operation more scientific and accurate.

[0064] In the embodiment of the present application, a multi-modal feedback operation is performed on the intelligent lighting control panel according to the optical parameters, including the following steps B1-B2:

[0065] Step B1, calculate the coordinate position corresponding to the optical parameter through the inverse mapping formula, dynamically mark the coordinate position in the intelligent lighting control panel, and render the actual state of the lighting device in real time.

[0066] Specifically, the visual feedback engine realizes state synchronization through the inverse mapping algorithm. Given the current light color temperature T and brightness L, solve:

[0067]

[0068] This process uses the Newton iteration method for numerical solution to ensure that the coordinate positioning is completed within 3 ms. The system draws a semi-transparent halo mark on the intelligent control panel, the mark diameter d = 5 mm + 0.1v (v is the contact moving speed), and the color uses the HSB model. The H component maps the current color temperature (2700K → 0° red, 6500K → 240° blue), and the S / B components are fixed at 100%. At the same time, a real-time parameter display screen is superimposed on the panel edge to accurately display the color temperature (accuracy ±10K) and brightness (accuracy ±1%) in digital form.

[0069] Step B2, determine whether the optical parameter meets the haptic feedback condition. When the haptic feedback condition is met, calculate the corresponding vibration frequency according to the optical parameter, and apply damped vibration feedback to the gesture dragging operation according to the vibration frequency.

[0070] Specifically, the haptic feedback decision module monitors in real time and parameters. When any parameter exceeds the threshold ( or ), trigger the vibration feedback. The vibration intensity is calculated by a composite function, and the composite function is as follows:

[0071] f = k|ΔT|sinθ

[0072] Among them, reflects the gesture direction, and k = 0.02 is the device vibration coefficient.

[0073] Adopt the PWM waveform modulation technology to generate a vibration waveform with a frequency of 50 - 200 Hz and an amplitude of 0.5 - 1.5 G. When the moving direction of the contact forms an angle with the direction of color temperature change (such as lateral movement causing color temperature change), the axial vibration perception is enhanced through the sinθ term. The vibration duration Ensure that users can obtain a clear perception of the magnitude of parameter changes.

[0074] The method provided by the embodiment of the present application calculates the coordinate position corresponding to the optical parameter through the inverse mapping formula and dynamically marks it on the intelligent lighting control panel, enabling users to intuitively see the position where the optical parameter changes corresponding to the operation. Render the actual state of the lighting device in real time, enabling users to timely understand the actual lighting effect and enhancing the real-time feedback of the operation. Determine whether the optical parameter meets the haptic feedback condition, and apply damped vibration feedback when it is met, further enriching the feedback form, providing feedback to users from multiple aspects such as vision and touch, and enhancing the immersion and experience of user operation.

[0075] In the embodiment of the present application, determining whether the optical parameter meets the haptic feedback condition includes the following steps B21 - B23:

[0076] Step B21, calculate the corresponding color temperature change gradient and brightness change rate based on the optical parameter.

[0077] Specifically, track the time series change of the optical parameter in real time, and calculate the color temperature change gradient through the difference algorithm and the brightness change rate Taking 20 ms as the sampling window, the color temperature gradient is calculated by dividing the color temperature difference value between adjacent sampling points by the time interval (ΔT = T n - T n-1 , Δt = 20 ms), and the brightness rate is calculated in the same way. For example, if the user adjusts the color temperature from 2700K to 3500K within 0.1 second, the gradient is (3500 - 2700) / 0.1 = 8000K / s. Synchronously record the gesture moving direction angle for subsequent directional association of vibration parameters.

[0078] Step B22, determine whether the color temperature change gradient exceeds the preset gradient threshold, and whether the brightness change rate exceeds the preset rate threshold.

[0079] Specifically, the preset gradient threshold (500K / s) and rate threshold (20% / s) are set based on user experience experiments. When the color temperature change gradient exceeds 500K / s, it indicates that the user is quickly crossing the color temperature range (such as suddenly changing from warm light to cold light), and haptic feedback is required to enhance the adjustment perception; when the brightness rate exceeds 20% / s (such as quickly rising from 10% to 80%), it reflects that the user intends to significantly change the light intensity. The determination process adopts dual-channel independent judgment: if Or That is, it is marked as an abnormal change state and the feedback condition is triggered.

[0080] Step B23, when the color temperature change gradient exceeds the preset gradient or the brightness change rate exceeds the preset rate threshold, it is determined that the optical parameters meet the haptic feedback condition.

[0081] Specifically, an "or" logic determination is adopted, and any parameter exceeding the threshold triggers haptic feedback. For example, when the user quickly swipes horizontally, causing the color temperature gradient to reach 600 K / s (exceeding the threshold), even if the brightness rate is only 15% / s, the system will still activate vibration. This design responds preferentially to the sudden intentions of the user's operations, avoiding missed reporting of key adjustment actions. At the same time, in combination with the direction angle θ, the axial vibration is enhanced by sinθ weighting (for example, the vibration intensity of the X-axis is higher during horizontal movement), making the haptic feedback consistent with the gesture direction, forming a perception of "physical resistance", and further improving the accuracy and immersion of parameter adjustment.

[0082] The method provided by the embodiment of the present application calculates the color temperature change gradient and the brightness change rate based on the optical parameters, and can quantify the change of the optical parameters. Judging whether the color temperature change gradient exceeds the preset gradient threshold and whether the brightness change rate exceeds the preset rate threshold provides a scientific basis for determining whether haptic feedback needs to be provided. When the condition is met, it is determined that the optical parameters meet the haptic feedback condition, and haptic feedback can be given to the user in a timely manner when the optical parameters change greatly, enabling the user to more clearly perceive the obvious changes brought by the operation and enhancing the user's sense of control over the operation.

[0083] Step S13, generate a corresponding control instruction sequence using the optical parameters, and send the control instruction sequence to the corresponding lighting device, so that the lighting device performs a dynamic switching operation of the lighting effect based on the control instruction sequence.

[0084] In the embodiment of the present application, first, atomized lighting control instructions are generated based on the color temperature and brightness parameters. Each lighting control instruction includes a target device identifier, a parameter value, and a timeout. Through the transaction management mechanism, a unique transaction ID is assigned to a single gesture operation to ensure the atomicity of the instructions (all successful or automatically rolled back). Subsequently, the system sorts the instructions according to the device type and spatial priority, and preferentially sends the instructions of high-priority devices. During the instruction sending process, if a device is detected to be offline, it is marked as the SKIP state and skipped, and the instructions of other devices are continued to be executed. Finally, the instruction sequence is sent to the device side through batch transmission to achieve synchronous adjustment of the whole-house lighting, and at the same time, a transaction log is recorded to support subsequent rollback.

[0085] In the embodiment of the present application, generating a corresponding control instruction sequence using the optical parameters includes the following steps C1 - C4:

[0086] Step C1: Construct corresponding lighting control instructions based on optical parameters.

[0087] Specifically, according to the color temperature formula and the brightness formula The calculated values, combined with the device communication protocol (such as MQTT or ZigBee), generate a structured instruction containing the target color temperature and brightness values. For example, for lamps that support RGB modulation, the color temperature needs to be converted into the corresponding RGB values; for devices that only support warm and cold light adjustment, they are mapped to a preset color temperature range. Each instruction is appended with a timestamp and a check code (such as CRC32) to ensure transmission integrity and traceability.

[0088] Step C2: Assign a corresponding transaction identifier to each lighting control instruction, where the transaction identifier includes the device identifier of the lighting device and the optical parameters.

[0089] Specifically, assign a globally unique transaction ID to each gesture operation, in the format of [timestamp]-[user ID]-[hash value], and bind the device list, target parameters, and timeout (such as 500ms). For example, the control instruction sequence corresponding to the transaction ID "1689123456-USER01-A1B2C3" includes device parameters such as the main light in the living room (color temperature 4500K, brightness 80%) and the downlights in the dining room (color temperature 3000K, brightness 50%). This mechanism ensures that all devices within a transaction are either updated successfully. If it times out or 20% of the devices do not respond (such as being offline), an automatic rollback to the previous state is triggered, and instructions are resent based on the historical parameters in the log.

[0090] Step C3: Obtain the device type and spatial priority of each lighting device.

[0091] Specifically, Step C3 determines the instruction execution priority through multi-dimensional rules. The system extracts the device type (main light, ambient light, downlight) and the space it belongs to (living room, bedroom, etc.) from the device metadata, and combines the real-time status (online / offline) to sort according to the following rules: Device type priority: main light (required lighting) > ambient light (auxiliary lighting) > downlight (local lighting); Spatial priority: public area (living room > dining room) > private area (master bedroom > secondary bedroom) > functional area (kitchen > storage room); Status priority: online devices take precedence over offline devices (marked as SKIP). For example, the instruction for the main light in the living room (online) takes precedence over the downlights in the secondary bedroom (online), while the offline downlights in the kitchen are skipped.

[0092] Step C4: Sort the lighting control instructions based on the spatial priority and device type to obtain a control instruction sequence.

[0093] Specifically, an efficient instruction sequence is generated through a dynamic sorting algorithm. A weighted priority queue is used to calculate the priority score for each instruction: Score = device type weight (main light 0.6 / ambient light 0.3 / downlight 0.1) + space weight (living room 0.5 / bedroom 0.3, etc.) + online status bonus (+0.2); the instructions are sorted in descending order of the score to ensure that devices with high weights respond first. For example, the main light in the living room (score 1.3) > the ambient light in the dining room (0.8) > the offline downlight in the second bedroom (0.1). The sorted instruction sequence is sent in one go through a bulk transfer interface (such as CoAP multicast), reducing network overhead, compressing the synchronous response time of all devices in the house to a relatively low level, and increasing the transmission success rate to a relatively high level.

[0094] The method provided by the embodiment of the present application constructs corresponding lighting control instructions according to optical parameters, ensuring the consistency between the control instructions and the user's operation intention. A corresponding transaction identifier is assigned to each lighting control instruction, facilitating the management and tracking of the control instructions. At the same time, it includes the device identifier and optical parameters of the lighting device, enabling accurate identification of the device and control content corresponding to the instruction. The device type and space priority of each lighting device are obtained, and based on this, the lighting control instructions are sorted to obtain a control instruction sequence, which can achieve orderly and efficient control of multiple devices, improving the efficiency and accuracy of multi-device collaborative control.

[0095] In the embodiment of the present application, before detecting the user's gesture dragging operation on the lighting intelligent control panel of the smart terminal for a lighting device, the following steps D1-D3 are also included:

[0096] Step D1, receiving a selection instruction for a preset light effect mode triggered by the user, where the preset light effect mode includes optical reference parameters.

[0097] Specifically, receive the preset light effect mode selected by the user (such as "Warm Mode: brightness 5%, color temperature 2700K"), and parse its optical reference parameters. The system captures the user click event through the UI event listening module, calls the pre-stored scene configuration file (in JSON format), extracts the target color temperature and brightness values, and generates a control instruction equivalent to the gesture operation. For example, when selecting the "Reading Mode", it is directly mapped to the target parameters of brightness 100% and color temperature 5000K, without the need for gesture interaction.

[0098] Step D2, when the light effect modes corresponding to multiple selection instructions conflict, add the later selection instruction to the buffer queue, and perform the switching operation of the light effect mode according to the timestamp of the selection instruction in the buffer queue.

[0099] Specifically, when the user quickly switches between multiple conflicting instructions (such as continuously selecting the "daylight mode" and the "warm mode"), a buffer queue mechanism is adopted to resolve the conflict. The subsequent instruction is added to the queue and executed in the order of the time stamp. And the device side adopts the LWT (Last Will and Testament) strategy to execute only the last valid instruction that arrives. For example, if the "daylight mode" instruction arrives later than the "warm mode" in the queue, only the "daylight mode" parameter will be finally executed.

[0100] Step D3: Monitor the adjustment operation of the user on the optical parameters after the switching operation. When the number of consecutive adjustments exceeds the preset number, automatically update the optical reference parameters of the preset light effect mode.

[0101] Specifically, monitor the subsequent adjustment behavior of the user on the preset mode (such as manually fine-tuning the brightness of the "daylight mode" to 95% multiple times). When the number of consecutive adjustments exceeds the threshold (such as 5 times), trigger the adaptive optimization of the preset mode. The system statistically analyzes the user preferences through the buried point data and dynamically updates the scene configuration file. For example, if the user has been adjusting the color temperature of the "reading mode" from 5000K to 4800K for a long time, the preset value will be automatically corrected to 4800K and synchronized to the cloud and other terminals.

[0102] The method provided by the embodiment of the present application receives the selection instruction of the preset light effect mode triggered by the user, providing a convenient way for the user to quickly switch the light effect mode. When the light effect modes corresponding to multiple selection instructions conflict, the subsequent selection instruction is added to the buffer queue and the switching operation is executed according to the time stamp, avoiding the chaos caused by the mode conflict and ensuring the orderliness of the light effect mode switching. Monitor the adjustment operation of the user on the optical parameters after the switching operation, and automatically update the optical reference parameters of the preset light effect mode when the number of consecutive adjustments exceeds the preset number, enabling the preset light effect mode to be dynamically adjusted according to the actual usage habits of the user, improving the practicability and adaptability of the preset light effect mode.

[0103] As an example, Figure 2 is a flowchart of intelligent lighting control operation based on gesture mapping. As Figure 2 shown, the process starts from "Start". After the user enters the system and selects "Light Smart Control", they can choose to control the color temperature and brightness with one key, or control by dragging with gestures. When choosing to drag with gestures, a light smart control panel pops up. During the user's operation, the system performs multi-modal feedback through the coordinate and visual and vibration feedback mapping algorithms. After the operation is completed, the optical parameter assembly is carried out, and then the light control instruction is sent, and the process ends. In addition, the user can also select the preset light effect mode and directly enter the instruction sending process by skipping the dragging link; if "Withdraw" is clicked, the operation can be rolled back.

[0104] As an example, Figure 3Displays the smart home control application interface with the page name "Judy's Heart House". This interface supports controlling the lights throughout the house. One can see the light control options for different rooms such as the living room and the foyer, and there are buttons for "All On" and "All Off". The Light Smart Control Panel below prompts to click to enter, and it can adjust the brightness and color temperature with one key. Figure 4 The displayed smart home control application interface prompts that users can drag with their fingers to adjust the color temperature on the horizontal axis and the brightness on the vertical axis simultaneously. At the bottom, there are several light mode options: "Warm", "Daily", "Reading", and "All On", and there is also a "Withdraw" button, which is convenient for users to adjust the operation at any time and optimizes the operation experience. Figure 5 The displayed smart home control application interface has a white circle in the middle smart control area, that is, the slider shows the Loading state. Next to it, the brightness is marked as "66%", and the color temperature "3500K" is shown at the bottom, clearly reflecting the current light state parameters. Similarly, there are "Warm", "Daylight", "Reading", and "All On" light mode options below, and the "All On" mode is highlighted in blue. When the user drags the smart control area, the color temperature, brightness, and vibration feedback intensity parameters are calculated according to the coordinate mapping; after the dragging ends, the application batch-integrates the control parameters, saves the control record locally, and sends the instruction to the lighting device at the same time.

[0105] In the embodiment of this application, after sending the control instruction sequence to the corresponding lighting device, the method further includes the following steps E1 - E3:

[0106] Step E1, record the historical control effects of each lighting device in the transaction log.

[0107] Specifically, record the historical control effects of each lighting device in the transaction log, including the transaction ID, device response status (success / failure), actual effective parameters, and timestamp. The log is stored in a structured manner (such as an SQLite database), and the fields include [transaction ID][device ID][target parameter][actual parameter][CRC32 checksum][response time], which are used for subsequent rollback and fault analysis. For example, record that the main light in the living room actually reaches a color temperature of 4490K (target 4500K) with an error of 10K in the transaction "1690000000 - USER01 - ABC123".

[0108] Step E2, trigger the rollback mechanism according to the historical control effects, and resend the control instruction sequence according to the spatial priority and device type.

[0109] Specifically, the rollback mechanism is triggered according to the log. If more than 20% of the devices do not respond (such as being offline or timing out), the system automatically extracts the historical parameters of the previous transaction (ensuring data integrity through CRC32 check), and regenerates the instruction sequence according to the space and device type priorities. For example, if the control of the main light in the living room fails, it is preferentially rolled back to the previous successful state (color temperature 4000K, brightness 70%), and then other devices are processed.

[0110] Step E3, keep the unresponsive status mark for offline devices, and preferentially send the last control instruction when the offline device comes back online.

[0111] Specifically, keep the unresponsive record for offline devices (marked as SKIP status). When it comes back online, the system actively pushes the last valid instruction (based on the latest successful transaction in the log) through the heartbeat detection mechanism. For example, after the offline kitchen downlight reconnects, it immediately receives the last issued instruction of color temperature 3000K and brightness 60% to ensure the consistency of the whole house state.

[0112] The method provided by the embodiment of the present application records the historical control effects of each lighting device in the transaction log, providing traceability of the operation status for users and facilitating users to understand the historical situation of lighting control. Triggering the rollback mechanism according to the historical control effects and resending the control instruction sequence according to the space priority and device type can timely restore the lighting state in case of abnormal situations, improving the stability and reliability of the system. Keeping the unresponsive status mark for offline devices and preferentially sending the last control instruction when the offline device comes back online ensures that the offline device can be timely restored to the state expected by the user after coming online, enhancing the adaptability of the system to different device states.

[0113] In this embodiment, an intelligent lighting control device based on gesture mapping is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0114] This embodiment provides an intelligent lighting control device based on gesture mapping, as Figure 6 shown, including:

[0115] A detection module 61, configured to detect the gesture dragging operation of the user on the lighting intelligent control panel of the intelligent terminal for a lighting device, and generate a continuous coordinate trajectory;

[0116] A conversion module 62, configured to convert the coordinate trajectory into optical parameters based on a non-linear mapping model, and perform a multi-modal feedback operation on the lighting intelligent control panel according to the optical parameters;

[0117] A generation module 63 is configured to generate a corresponding control instruction sequence by using optical parameters and send the control instruction sequence to a corresponding lighting device, so that the lighting device performs a dynamic switching operation of a lighting effect based on the control instruction sequence.

[0118] In an optional embodiment of the present application, the conversion module 62 includes an acquisition unit and an application unit;

[0119] The acquisition unit is configured to acquire a preset coordinate system of the lighting intelligent control panel; determine coordinate values corresponding to a coordinate trajectory according to a mapping relationship of the preset coordinate system; and convert the coordinate values into optical parameters through a coordinate-parameter conversion formula.

[0120] The application unit is configured to calculate a coordinate position corresponding to the optical parameters through an inverse mapping formula, dynamically mark the coordinate position on the lighting intelligent control panel, and render the actual state of the lighting device in real time; determine whether the optical parameters meet a haptic feedback condition, and when the haptic feedback condition is met, calculate a corresponding vibration frequency according to the optical parameters and apply damped vibration feedback to a gesture dragging operation according to the vibration frequency.

[0121] In an optional embodiment of the present application, the application unit further includes:

[0122] A calculation sub-module is configured to calculate a corresponding color temperature change gradient and a brightness change rate based on the optical parameters;

[0123] A judgment sub-module is configured to judge whether the color temperature change gradient exceeds a preset gradient threshold and whether the brightness change rate exceeds a preset rate threshold;

[0124] A determination sub-module is configured to determine that the optical parameters meet the haptic feedback condition when the color temperature change gradient exceeds the preset gradient or the brightness change rate exceeds the preset rate threshold.

[0125] In an optional embodiment of the present application, the generation module 63 is configured to construct corresponding lighting control instructions according to the optical parameters; assign a corresponding transaction identifier to each lighting control instruction, where the transaction identifier includes a device identifier of the lighting device and the optical parameters; acquire the device type and spatial priority of each lighting device; and sort the lighting control instructions based on the spatial priority and the device type to obtain a control instruction sequence.

[0126] In an alternative embodiment of the present application, the device further includes: a receiving module, configured to receive a selection instruction for a preset lighting effect mode triggered by a user, where the preset lighting effect mode includes optical reference parameters; when the lighting effect modes corresponding to multiple selection instructions conflict, add the later-arriving selection instruction to a buffer queue, and perform a switching operation of the lighting effect mode according to the time stamp of the selection instruction in the buffer queue; monitor the adjustment operation of the user for the optical parameters after the switching operation, and automatically update the optical reference parameters of the preset lighting effect mode when the number of adjustments continuously exceeds a preset number of times.

[0127] In an alternative embodiment of the present application, the device further includes: a rollback module, configured to record the historical control effects of each lighting device in a transaction log; trigger a rollback mechanism according to the historical control effects, and resend a control instruction sequence according to the spatial priority and device type; keep an unresponsive status flag for offline devices, and preferentially send the most recent control instruction when the offline devices come back online.

[0128] Please refer to Figure 7 , Figure 7 FIG. is a schematic structural diagram of a computer device provided by an alternative embodiment of the present invention. As Figure 7 shown, the computer device includes: one or more processors 10, a memory 20, and an interface for connecting each component, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as an array of servers, a set of blade servers, or a multi-processor system).

[0129] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field programmable gate array, a general array logic, or any combination thereof.

[0130] Among them, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.

[0131] The memory 20 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of a computer device presented by a kind of landing page of a small program, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 may optionally include a memory remotely disposed relative to the processor 10, and these remote memories may be connected to the computer device through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0132] The memory 20 may include a volatile memory, for example, a random access memory; the memory may also include a non-volatile memory, for example, a flash memory, a hard disk, or a solid-state drive; the memory 20 may further include a combination of the above types of memories.

[0133] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or communication networks.

[0134] The embodiments of the present invention further provide a computer-readable storage medium. The methods according to the embodiments of the present invention may be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code originally stored in a remote storage medium or a non-transitory machine-readable storage medium and to be downloaded through a network and stored in a local storage medium, so that the methods described herein can be stored in such software processes on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium may also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the methods shown in the above embodiments are implemented.

[0135] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. An intelligent lighting control method based on gesture mapping, characterized in that, The method includes: Detecting a gesture dragging operation of a user on a lighting intelligent control panel of a smart terminal for a lighting device, and generating a continuous coordinate trajectory; Converting the coordinate trajectory into optical parameters based on a non-linear mapping model, and performing a multi-modal feedback operation on the lighting intelligent control panel according to the optical parameters; Generating a corresponding control instruction sequence by using the optical parameters, and sending the control instruction sequence to the corresponding lighting device, so that the lighting device performs a dynamic switching operation of a lighting effect based on the control instruction sequence.

2. The method according to claim 1, wherein The converting the coordinate trajectory into optical parameters based on the non-linear mapping model includes: Obtaining a preset coordinate system of the lighting intelligent control panel; Determining coordinate values corresponding to the coordinate trajectory according to a mapping relationship of the preset coordinate system; Converting the coordinate values into optical parameters through a coordinate-parameter conversion formula.

3. The method according to claim 1, wherein The performing the multi-modal feedback operation on the lighting intelligent control panel according to the optical parameters includes: Calculating a coordinate position corresponding to the optical parameter through an inverse mapping formula, dynamically marking the coordinate position in the lighting intelligent control panel, and rendering an actual state of the lighting device in real time; Judging whether the optical parameter meets a haptic feedback condition, and when the haptic feedback condition is met, calculating a corresponding vibration frequency according to the optical parameter, and applying a damped vibration feedback to the gesture dragging operation according to the vibration frequency.

4. The method according to claim 3, characterized in that, The judging whether the optical parameter meets the haptic feedback condition includes: Calculating a corresponding color temperature change gradient and a brightness change rate based on the optical parameter; Judging whether the color temperature change gradient exceeds a preset gradient threshold and whether the brightness change rate exceeds a preset rate threshold; When the color temperature change gradient exceeds the preset gradient or the brightness change rate exceeds the preset rate threshold, determining that the optical parameter meets the haptic feedback condition.

5. The method according to claim 1, characterized in that, The generating the corresponding control instruction sequence by using the optical parameter includes: Constructing a corresponding lighting control instruction according to the optical parameter; Assigning a corresponding transaction identifier to each of the lighting control instructions, where the transaction identifier includes a device identifier of the lighting device and the optical parameter; Obtaining a device type and a space priority of each of the lighting devices; Sorting the lighting control instructions based on the space priority and the device type to obtain a control instruction sequence.

6. The method according to claim 1, characterized in that, Before detecting the gesture dragging operation of the user on the lighting intelligent control panel of the smart terminal, it further includes: Receiving a selection instruction of a preset lighting effect mode triggered by the user, where the preset lighting effect mode includes optical reference parameters; When lighting effect modes corresponding to multiple selection instructions conflict, adding a later selection instruction to a buffer queue, and performing a switching operation of the lighting effect mode according to a time stamp of the selection instruction in the buffer queue; Monitoring an adjustment operation of the user on the optical parameter after the switching operation, and automatically updating the optical reference parameter of the preset lighting effect mode when the number of adjustment times continuously exceeds a preset number of times.

7. The method according to claim 5, wherein After sending the control instruction sequence to the corresponding lighting device, the method further includes: Recording a historical control effect of each lighting device in a transaction log; Trigger a rollback mechanism according to the historical control effect, and resend the control instruction sequence according to the spatial priority and the device type; Keep the unresponsive status flag for offline devices, and give priority to sending the last control instruction when the offline devices come back online.

8. An intelligent lighting control device based on gesture mapping, characterized in that, The device includes: A detection module, configured to detect a gesture dragging operation of a user on a lighting intelligent control panel of a smart terminal, and generate a continuous coordinate trajectory; A conversion module, configured to convert the coordinate trajectory into optical parameters based on a non-linear mapping model, and perform a multi-modal feedback operation on the lighting intelligent control panel according to the optical parameters; A generation module, configured to generate a corresponding control instruction sequence by using the optical parameters, and send the control instruction sequence to a corresponding lighting device, so that the lighting device performs a dynamic switching operation of a lighting effect based on the control instruction sequence.

9. A computer device, characterized in that, Including: A memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Intelligent door and window linkage control method based on multi-scene mode switching

    CN121364653A

  • An intelligent door and window linkage control method based on multi-scene mode switching

    CN121364653B