Lighting device control method, apparatus and lighting device based on wireless communication

By using wireless communication and gesture analysis technology, the problem of difficult operation of lighting equipment in industrial and mining environments has been solved, realizing a contactless, highly stable, and safe control method, and extending the battery life of the equipment.

CN122640911APending Publication Date: 2026-08-25SHENZHEN ZHONGFUNENG ELECTRIC EQUIPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611028700.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-10
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

In industrial and mining environments, the mechanical buttons of traditional lighting equipment are difficult to operate, and wireless control methods are cumbersome to operate in high-risk environments, distracting attention and posing safety hazards.

Method used

By establishing a low-power wireless communication connection with the control terminal, the received signal strength indication value is periodically acquired, sliding window filtering is performed, extreme value features are extracted and matched with signal action templates to achieve contactless gesture parsing and control.

Benefits of technology

It enables contactless operation on highly protected sealed equipment, reduces the risk of interaction, ensures the stability of state transitions, extends battery life, adapts to complex environments, prevents accidental triggering, and improves the intuitiveness and safety of interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122640911A_ABST
    Figure CN122640911A_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of lighting control, and provides a lighting device control method and device based on wireless communication and a lighting device, the method comprising: establishing a wireless communication connection with a control terminal, and periodically acquiring a received signal strength indication value; performing sliding window filtering processing on the value, and when the value rises and breaks through a first preset threshold, waking up the lighting device to enter a gesture analysis window period and starting a timer; continuously recording a change track of the received signal strength indication value in the gesture analysis window period, and generating a received signal strength time sequence; extracting extreme value features in the received signal strength time sequence, and matching the extracted extreme value features with a preset signal action template to determine a corresponding control instruction; and according to the matched control instruction, directly executing a corresponding lighting state switching operation locally by the lighting device. The application solves the problem that it is difficult to quickly and effectively operate the lighting device in the existing industrial and mining environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of lighting control technology, and in particular to a lighting equipment control method, device, and lighting equipment based on wireless communication. Background Technology

[0002] In special working environments such as mining operations, emergency rescue, and tunnel construction, portable lighting equipment (such as flashlights, headlamps, or work lights mounted on safety helmets) is essential for ensuring operational safety and efficiency. Traditional lighting equipment typically uses physical mechanical buttons or capacitive touch buttons to switch the light source on and off and adjust the brightness level. However, in actual operations, workers usually need to wear heavy insulating or cut-resistant gloves, making it very difficult to precisely operate the small physical buttons. Furthermore, in harsh mining environments containing high concentrations of dust, mud, water stains, or flammable and explosive gases, touch buttons are prone to malfunction, while the gaps in physical mechanical buttons easily accumulate impurities, causing them to jam and fail. Additionally, button openings compromise the overall seal of the casing, reducing the equipment's dustproof, waterproof, and explosion-proof safety performance.

[0003] With the development of wireless communication technology, some existing lighting equipment has adopted wireless control, allowing users to remotely adjust the lighting equipment through mobile application interfaces such as smartphones and tablets. However, in high-risk, obstacle-filled mining operations, requiring workers to stop work, remove protective gloves, and frequently operate mobile device screens is not only cumbersome and slow to respond, but also easily distracts workers, leading to serious safety hazards. Summary of the Invention

[0004] Therefore, the purpose of this invention is to provide a lighting equipment control method, device, and lighting equipment based on wireless communication, so as to fundamentally solve the problem of difficulty in quickly and effectively operating lighting equipment in existing industrial and mining environments.

[0005] A lighting device control method based on wireless communication according to an embodiment of the present invention is applied to a lighting device, the method comprising: Establish a low-power wireless communication connection with the control terminal, and periodically acquire the received signal strength indication value of the wireless communication connection according to a preset sampling rate; The received signal strength indication value is subjected to sliding window filtering. When the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, the lighting device is woken up to enter the gesture parsing window period and a timer is started. Within the preset gesture parsing window period, the change trajectory of the filtered received signal strength indicator value is continuously recorded to generate a received signal strength time series. Extract the extreme value features from the received signal strength time series, and match the extracted extreme value features with a preset signal action template to determine the corresponding control command; Based on the matched control command, the lighting device directly performs the corresponding lighting state switching operation locally.

[0006] In addition, the lighting device control method based on wireless communication according to the above embodiments of the present invention may also have the following additional technical features: Further, the step of performing sliding window filtering on the acquired received signal strength indication value, and waking up the lighting device to enter the gesture parsing window and starting the timer when the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, includes: Construct a sliding data window of a preset length, and sequentially move the real-time received signal strength indicator values ​​into the sliding data window; Calculate the average value of all received signal strength indication values ​​within the sliding data window to obtain the smoothed and filtered received signal strength indication value; The received signal strength indication value after smoothing and filtering is input into a preset hysteresis comparator and compared with the first preset threshold and the second preset threshold, wherein the first preset threshold is greater than the second preset threshold. When the received signal strength indicator value after smoothing and filtering rises and exceeds the first preset threshold, it is determined that the near-field trigger state is entered, triggering the lighting device to enter the gesture parsing window period, and triggering the timer to start counting forward. When the received signal strength indicator value after smoothing and filtering decreases and exceeds the second preset threshold, it is determined that the near-field trigger state has been discontinued, and after the timer completes the timing of the current gesture parsing window, the lighting device is controlled to return to the low-power listening state. When the received signal strength indicator value after smoothing and filtering is within the range between the first preset threshold and the second preset threshold, the current wake-up or wake-up state of the lighting device is maintained.

[0007] Further, the step of extracting extreme value features from the received signal strength time series includes: Calculate the first-order difference sequence of the received signal strength time series to reflect the changing trend of the received signal strength indication value over time; Identify the zero-crossing points in the first-order difference sequence, and determine the local maxima and local minima in the received signal strength time series based on the sign characteristics of the difference before and after the zero-crossing points. The identified local maxima and local minima are screened, and invalid extreme points whose amplitude difference with adjacent extreme points is less than a preset fluctuation threshold are removed, while valid peak and valley features are retained. Based on the timestamps, amplitudes, and order of occurrence of the effective peak and valley features, an extreme value feature vector is constructed.

[0008] Furthermore, the step of matching the extracted extreme value features with a preset signal action template to determine the corresponding control command includes: The distance between the constructed extreme value feature vector and multiple preset signal action templates is calculated using a dynamic time warping algorithm. If the extreme value feature vector exhibits a waveform feature where the received signal strength indicator value is greater than the first preset threshold, then drops to below the second preset threshold, and then exceeds the first preset threshold again within the gesture parsing window, and the dynamic time warping distance with the preset double proximity signal action template is the smallest, then the successfully matched double proximity signal action template is mapped to a first control instruction. The first control instruction is used to instruct the lighting device to reverse the switching between the power on state and the power off state. If the extreme value feature vector shows no effective valley feature, and the duration for which the received signal strength indication value remains above the first preset threshold exceeds the preset duration threshold, and the dynamic time warping distance with the preset long-term proximity signal action template is the smallest, then the successfully matched long-term proximity signal action template is mapped to a second control instruction. The second control instruction is used to instruct the lighting device to perform cyclic adjustment of the luminous brightness or luminous mode.

[0009] Furthermore, before the step of establishing a low-power wireless communication connection with the control terminal and periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate, the method further includes: After the lighting equipment is turned on, it broadcasts a pairing request to the surrounding area and establishes a unique wireless communication binding relationship with the control terminal. Within an initial preset time period, multiple basic received signal strength indication values ​​are collected under a static and safe environment; Calculate the average noise floor value of multiple basic received signal strength indicators collected, and extract the variance features of the numerical distribution; Based on the calculated average noise floor value and the variance characteristics of the numerical distribution, the first preset threshold is dynamically calculated and updated. The second preset threshold is updated synchronously according to the updated first preset threshold, so as to keep the difference between the first preset threshold and the second preset threshold greater than or equal to the preset hysteresis bandwidth.

[0010] Furthermore, before the step of waking up the lighting device to enter the gesture parsing window and starting the timer, the method further includes: Acceleration and angular velocity data are acquired in real time through the built-in inertial sensor; The acceleration and angular velocity data are calculated to obtain the intensity of the current lighting equipment's motion and its spatial pitch angle. When the filtered received signal strength indicator value is greater than or equal to the first preset threshold, it is determined whether the currently calculated intensity of motion is greater than the preset anti-shake threshold. If it is determined that the calculated intensity of the movement is greater than the anti-shake threshold, then the wake-up signal is blocked to prevent entering the gesture parsing window period, so as to prevent misoperation caused by the limbs getting close due to the work bumps; If it is determined that the calculated intensity of the movement is not greater than the anti-shake threshold, and the spatial pitch angle is within the preset normal operating angle range, then the lighting device is allowed to be woken up to enter the gesture parsing window.

[0011] Furthermore, before the step of establishing a low-power wireless communication connection with the control terminal and periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate, the method further includes: The lighting device is controlled to transmit a wireless communication broadcast signal during a first broadcast cycle while in sleep mode; Receive a pairing request from the control terminal and verify the identity information of the control terminal; If authentication is successful, a low-power wireless communication connection is established with the control terminal, and the communication cycle is switched from the first broadcast cycle to a connection communication cycle that matches the preset sampling rate.

[0012] Furthermore, the step of periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate includes: The average value of the received signal strength indication obtained within a preset time window is calculated in real time and used as the reference value of the received signal strength in the background environment. The reference value of the received signal strength in the background environment is compared with a third preset threshold, wherein the third preset threshold is less than the first preset threshold and indicates that the control terminal is at a normal wearing distance. If the ambient background received signal strength reference value is less than the third preset threshold, the wireless communication module is controlled to obtain the received signal strength indication value at the first sampling frequency. If the ambient background received signal strength reference value is greater than or equal to the third preset threshold, the wireless communication module is controlled to switch the sampling frequency from the first sampling frequency to the second sampling frequency, wherein the second sampling frequency is greater than the first sampling frequency.

[0013] Another embodiment of the present invention aims to provide a lighting device control device based on wireless communication, applied to a lighting device, the device comprising: The communication monitoring module is used to establish a low-power wireless communication connection with the control terminal and periodically acquire the received signal strength indication value of the wireless communication connection according to a preset sampling rate. The wake-up trigger module is used to perform sliding window filtering on the acquired received signal strength indication value, and when it is determined that the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, the lighting device is woken up to enter the gesture parsing window period and the timer is started. The sequence recording module is used to continuously record the change trajectory of the filtered received signal strength indicator value within the preset gesture parsing window period, and generate a received signal strength time series. The feature matching module is used to extract extreme value features from the received signal strength time series and match the extracted extreme value features with a preset signal action template to determine the corresponding control command. The operation execution module is used to enable the lighting device to directly perform the corresponding lighting state switching operation locally according to the matched control command.

[0014] Another embodiment of the present invention aims to provide a lighting device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor executes the program to implement the lighting device control method based on wireless communication as described above.

[0015] The lighting equipment control method based on wireless communication provided in this invention establishes a low-power wireless communication connection with the control terminal and periodically acquires the received signal strength indication value. Combined with recording the trajectory within the gesture parsing window and performing template matching, it achieves contactless closed-loop zero-contact control on the lighting equipment. This avoids the problem of operators having difficulty operating physical buttons or screen terminals due to wearing heavy protective gloves. While maintaining the extremely high protective sealing performance of the lighting equipment's outer shell, it effectively reduces the interaction hazards in special industrial and mining environments and solves the problem of difficulty in quickly and effectively operating lighting equipment in existing industrial and mining environments. Furthermore, by processing the received signal strength indication value... After smoothing and filtering, the signal is input to a hysteresis comparator with two unequal thresholds, achieving noise reduction and jitter protection during near-field triggering and disengagement state determination. This effectively eliminates frequent false wake-ups caused by instantaneous jitter in the ambient radio electromagnetic signal and ensures that the system only returns to low-power mode after normal gesture parsing, guaranteeing the stability of state transitions. Furthermore, by calculating the first-order difference sequence of the received signal strength time series and extracting zero-crossing points to locate peak and trough features, while eliminating invalid fluctuations below a preset fluctuation threshold, significant data compression and effective noise reduction of continuous gesture wireless signals are achieved. This effectively reduces the algorithm computation and memory read / write load of the local processor of the lighting equipment. This ensures smooth operation on low-computing-power, low-power microprocessors. By employing a dynamic time warping algorithm to calculate the path distance between the extreme feature vector and the signal action template, and mapping successfully matched double-approach gestures and long-duration approach gestures to the first control command for power switch switching and the second control command for cyclic adjustment of illumination levels, it achieves adaptive consideration of the differences in the speed of gestures made by different operators, ensuring clear and intuitive interactive command control even without on-screen prompts. Furthermore, by collecting the basic signal strength under static conditions after power-on and dynamically calculating and collaboratively updating the first and second preset thresholds based on the average and variance characteristics, it achieves... It features adaptive threshold drift calibration for complex and variable mining environments, eliminating the multipath effects in enclosed metal mine tunnels and the problems of false triggering or insensitivity caused by occasional electromagnetic noise variations, ensuring the consistency of gesture interaction distance feedback; and by using built-in inertial sensors to calculate the intensity of movement and spatial pitch angle in real time before triggering gesture wake-up, and forcibly intercepting and shielding the current wake-up trigger when the intensity exceeds the anti-shake threshold, it realizes multi-sensor data fusion threshold determination, eliminating the accidental switching of equipment caused by workers' unintentional physical contact during daily running, climbing, tool collisions, or accidental equipment bumps and falls, ensuring the safety of light use during special operations;By sending wireless communication broadcast signals at a slow first broadcast cycle during sleep mode, and quickly switching the communication cycle to a connection communication cycle matching the preset sampling rate after a successful connection is established, an on-demand communication mode is achieved, which features long-cycle broadcast standby during normal operation and instantaneous high-frequency sampling during gesture interaction. This effectively reduces the static power consumption during the system's monitoring phase and greatly extends the battery life of the lighting equipment on a single charge. Furthermore, by calculating the ambient background received signal strength benchmark value in real time and comparing it with a third preset threshold representing the normal wearing distance, the system adaptively switches between the first and second sampling frequencies at different physical spatial distances. This achieves power saving when the control terminal is at a medium to long non-interactive distance and a seamless increase in the sampling rate when the user approaches at close range, further reducing the overall operating current of the system. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating the lighting device control method based on wireless communication in the first embodiment of the present invention. Figure 2 This is a schematic diagram of the specific process of step S20 in the first embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a lighting device control device based on wireless communication according to the second embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of the lighting device in the third embodiment of the present invention; The following detailed description of the embodiments will further illustrate the present invention in conjunction with the above-described accompanying drawings. Detailed Implementation

[0017] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

[0018] It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0020] Example 1 Please see Figure 1 The image shows a lighting device control method based on wireless communication according to the first embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown. The lighting device control method based on wireless communication provided by the embodiment of the present invention is applied to a lighting device, and the method includes: Step S10: Establish a low-power wireless communication connection with the control terminal, and periodically acquire the received signal strength indication value of the wireless communication connection according to a preset sampling rate. In one embodiment of the present invention, the method is applied to a lighting device, which includes a flashlight, headlamp, or engineering lighting, etc. Specifically, the lighting device in this embodiment is actually a special work headlamp, mainly used in mining operations, but can also be used for daily purposes. Furthermore, the lighting device can be used in conjunction with a safety helmet, that is, the lighting device is installed on the safety helmet for lighting purposes.

[0021] Furthermore, the hardware architecture of its lighting equipment includes, but is not limited to, a central processing unit (CPU), a wireless communication module, a data acquisition module, a zoom actuator, a light-emitting unit, and a power management module. The CPU serves as the core control unit connecting all modules. The wireless communication module, comprising a radio frequency transceiver front-end and a baseband processing core, is integrated on the motherboard of the lighting equipment and communicates bidirectionally with the CPU via a serial bus. This enables wireless data interaction between the lighting equipment and external control terminals, and the acquisition of signal strength indicators at the physical layer of the connection layer. The data acquisition module integrates at least an inertial sensor for attitude detection. This inertial sensor can be a six-axis sensor, including a three-axis accelerometer and a three-axis gyroscope, mounted on the main circuit board and connected to the CPU via a communication bus. It captures the three-dimensional angular velocity and three-dimensional acceleration changes of the lighting equipment in real time to determine the current motion state of the equipment. The zoom actuator, as the main optical actuator, includes a miniature drive motor and a mechanical transmission structure. It receives control pulse signals from the CPU and, through physical transmission, moves the internal optical lens back and forth linearly along the optical axis, thereby changing the divergence angle of the emitted beam and achieving stepless switching between focused and floodlight modes. The light-emitting unit includes a high-power light-emitting diode and a matching constant-current drive control circuit. This circuit receives dimming signals from the central processing unit and precisely adjusts the intensity of the illumination beam by changing the current flowing through the light source. The power management module includes a battery voltage detection circuit to detect the remaining battery power. The control terminal can be a smart bracelet, smartwatch, or explosion-proof mobile phone worn on the user's wrist. These control terminals are also equipped with compatible wireless communication transceiver chips.

[0022] In one embodiment of the present invention, before the steps of establishing a low-power wireless communication connection with the control terminal and periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate, the method further includes: The lighting equipment is controlled to send a wireless communication broadcast signal during the first broadcast cycle while in sleep mode; Receive pairing requests from the control terminal and verify the identity information of the control terminal; If authentication is successful, a low-power wireless communication connection is established with the control terminal, and the communication cycle is switched from the first broadcast cycle to a connection communication cycle that matches the preset sampling rate.

[0023] Specifically, the central processing unit (CPU) first sends an initialization configuration command to the wireless communication module, configuring its operating mode to broadcast standby mode and setting a fixed first broadcast interval. In this mode, the wireless communication module periodically sends wireless broadcast data packets containing device identification information to the surrounding space. When the control terminal worn by the operator enters the wireless signal coverage area and captures the broadcast data packet, the control terminal will proactively initiate a pairing request containing its own device identification. After receiving the pairing request, the wireless communication module sends it to the CPU. The CPU extracts the device identification and compares it with a locally stored authorized whitelist. If the authentication is successful, the CPU controls the wireless communication module to allocate a communication channel and connection parameters, thereby establishing a bound low-power wireless communication connection with the control terminal.

[0024] Furthermore, after successfully establishing a low-power wireless communication connection, the central processing unit starts an internal timer to generate a periodic trigger signal matching a preset sampling rate. This trigger signal controls the wireless communication module to open its signal reception window at a fixed frequency. Each time the trigger time is reached, the control terminal sends a data packet to maintain the connection according to the communication connection protocol, and the receiving antenna of the wireless communication module simultaneously turns on and captures the wireless radio frequency signal transmitted by the control terminal.

[0025] Furthermore, the wireless communication module directly measures the received signal strength upon receiving the radio frequency signal. Specifically, the wireless communication module assesses the overall energy level of the radio frequency signal reaching the receiving end and quantifies it directly into a value reflecting the degree of signal attenuation; this value is the received signal strength indicator. This received signal strength indicator can dynamically represent the current physical distance between the control terminal and the lighting equipment in real time; the closer the distance, the greater the signal strength represented by this value.

[0026] Finally, the central processing unit (CPU) reads the latest received signal strength indicator value generated in the current communication cycle from the wireless communication module via the internal communication bus, binds and packages it with the current system time information, and stores it in its data buffer. This set of spatial distance sensing data, continuously collected at a preset sampling rate, will then serve as the core data source for subsequent sliding window filtering and motion feature matching, used to analyze the spatial trajectory of the worker's limbs as they approach and move away.

[0027] Furthermore, in one embodiment of the present invention, before the steps of establishing a low-power wireless communication connection with the control terminal and periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate, the method further includes: After the lighting equipment is turned on, it broadcasts a pairing request to the surrounding area and establishes a unique wireless communication binding relationship with the control terminal. Within an initial preset time period, multiple basic received signal strength indication values ​​are collected under a static and safe environment; Calculate the average noise floor value of multiple basic received signal strength indicators collected, and extract the variance features of the numerical distribution; Based on the calculated average noise floor value and the variance characteristics of the numerical distribution, the first preset threshold is dynamically calculated and updated. The second preset threshold is updated synchronously based on the updated first preset threshold to keep the difference between the first preset threshold and the second preset threshold greater than or equal to the preset hysteresis bandwidth.

[0028] Specifically, after the lighting equipment is powered on, the central processing unit (CPU) controls the wireless communication module to enter active broadcast mode, sending a wireless broadcast signal containing a pairing request to the surrounding space. When the control terminal receives the pairing request and sends back a confirmation signal, the CPU extracts the identity identifier from the feedback signal for matching and comparison. If the comparison is successful, the CPU controls the wireless communication module to handshake with the control terminal, establishing a unique wireless communication binding relationship. This ensures that the lighting equipment is controlled only by the instructions of this specific control terminal in subsequent operations, preventing signal crosstalk when multiple workers are working simultaneously in an industrial or mining environment.

[0029] Furthermore, within the initial preset timeframe after successful establishment of the binding relationship—that is, in a static, safe environment where the operator has powered on the device but has not yet begun moving or waving—the central processing unit (CPU) drives the wireless communication module to receive reference data packets sent by the control terminal at high frequency, and extracts the signal energy intensity corresponding to each communication in real time, thereby collecting multiple basic received signal strength indication values. The CPU sequentially stores these basic values ​​into its internal data buffer, forming a basic reference data sample library for environmental calibration.

[0030] Meanwhile, when the initial preset duration ends, the central processing unit (CPU) stops basic data acquisition and processes all samples in the data buffer. The CPU first sums and averages these multiple basic received signal strength indicators to obtain the average noise floor value, representing the current signal attenuation in the space environment. Subsequently, the CPU further calculates the sum of squares of the differences between each basic value and this average noise floor value, thereby extracting the variance characteristics of the numerical distribution reflecting the jitter and fluctuation of the radio frequency signal under this static environment.

[0031] Furthermore, to overcome the issue of varying transmission power among control terminals of different brands, the central processing unit (CPU) utilizes the calculated average noise floor value and variance characteristics to execute a dynamic threshold calibration procedure. At this point, the CPU superimposes a compensation gain positively correlated with the variance characteristics onto the average noise floor value, dynamically calculating a first preset threshold adapted to the current specific hardware configuration and spatial environment. The system's default first preset threshold is then updated to this calculated result, ensuring that the threshold accurately represents the true signal strength boundary when the control terminal is extremely close to the lighting equipment.

[0032] Finally, after updating the first preset threshold, the central processing unit (CPU) immediately adjusts the second preset threshold synchronously based on the updated first preset threshold. The CPU subtracts the system's built-in preset hysteresis bandwidth value from the updated first preset threshold, and uses the result as the new second preset threshold. Through this synchronous adjustment operation, the CPU ensures that the difference between the first and second preset thresholds is always greater than or equal to the preset hysteresis bandwidth. Therefore, this environment-adaptive baseline calibration method provides a reliable judgment benchmark for subsequent sliding window filtering and anti-interference hysteresis comparison, effectively avoiding missed actions or false triggering at critical distances due to individual device differences.

[0033] Furthermore, in one embodiment of the present invention, the step of periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate includes: The average value of the received signal strength indication obtained within a preset time window is calculated in real time and used as the reference value of the received signal strength in the background environment. The reference value of the received signal strength in the background environment is compared with the third preset threshold, wherein the third preset threshold is less than the first preset threshold and indicates that the control terminal is at a normal wearing distance. If the ambient background received signal strength reference value is less than the third preset threshold, the wireless communication module is controlled to obtain the received signal strength indication value at the first sampling frequency. If the ambient background received signal strength reference value is greater than or equal to the third preset threshold, the wireless communication module is controlled to switch the sampling frequency from the first sampling frequency to the second sampling frequency, wherein the second sampling frequency is greater than the first sampling frequency.

[0034] Specifically, during the process of establishing a wireless communication connection between the lighting equipment and the control terminal and maintaining normal communication, the central processing unit (CPU) maintains a preset time window (e.g., the two-second period of the most recently sampled data) for monitoring the background environmental distance. The CPU continuously fills this preset time window with periodically acquired received signal strength indicators, and at the end of each communication cycle, it sums all the values ​​stored in the preset time window and calculates the average value. This calculated result is used as the baseline value for the ambient background received signal strength. This baseline value dynamically and smoothly reflects the normal relative distance between the worker's wrist (wearing the control terminal) and the head lighting equipment, effectively eliminating occasional interference caused by single RF signal fluctuations.

[0035] Furthermore, the central processing unit compares the real-time calculated ambient background received signal strength benchmark with a third preset threshold stored in local memory. This third preset threshold is pre-set to a value significantly smaller than the first preset threshold. Physically, this value corresponds to the natural air distance between the control terminal and the head-mounted lighting device when the operator's wrist is naturally hanging down or in a normal two-handed operation. Therefore, logically, this third preset threshold indicates that the control terminal is currently at a normal wearing distance and has not entered the near-field trigger range for gesture recognition.

[0036] Meanwhile, if the central processing unit (CPU) determines that the current ambient background received signal strength benchmark is less than a third preset threshold, it indicates that the control terminal is currently far from the lighting equipment, and the operator is working normally and has no intention of changing the lighting status. In this case, the CPU controls the low-power wireless communication module to acquire the received signal strength indication value at a lower first sampling frequency (e.g., twice per second). Under this low-frequency sampling state, the on-time of the low-power wireless communication module's radio frequency receiving circuit is significantly shortened, allowing it to maintain a low-power operating state, thereby greatly saving the power consumption of the lighting equipment and extending the overall operating time.

[0037] Furthermore, if the central processing unit (CPU) determines that the ambient background received signal strength reference value is greater than or equal to the third preset threshold, it indicates that the operator's wrist is raising towards the head, and the control terminal has entered the operation alert zone for spatial gesture interaction. At this time, to prevent missing timely and rapid gestures due to a low sampling rate, the CPU immediately controls the low-power wireless communication module to quickly switch its data acquisition frequency from a low-speed first sampling frequency to a high-speed second sampling frequency (e.g., high-frequency sampling of twenty times per second). By acquiring the received signal strength indication value at a high frequency, dense and continuous data samples can be provided for the subsequent gesture parsing window, which is used to accurately depict the hand movement trajectory. Thus, while maintaining the overall low power consumption of the device, the accuracy and response speed of gesture recognition are greatly improved.

[0038] Step S20: Perform sliding window filtering on the obtained received signal strength indication value, and when it is determined that the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, wake up the lighting device to enter the gesture parsing window period and start the timer. In one embodiment of the present invention, reference is made to Figure 2 As shown, the steps of performing sliding window filtering on the acquired received signal strength indication value, and waking up the lighting device to enter the gesture parsing window and starting the timer when the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold include: Step S21: Construct a sliding data window of a preset length, and sequentially move the real-time received signal strength indicator values ​​into the sliding data window; Step S22: Calculate the average value of all received signal strength indication values ​​within the sliding data window to obtain the smoothed and filtered received signal strength indication value. Step S23: Input the received signal strength indication value after smoothing and filtering into a preset hysteresis comparator and compare it with a first preset threshold and a second preset threshold, wherein the first preset threshold is greater than the second preset threshold. Step S24: When the received signal strength indicator value after smoothing and filtering rises and exceeds the first preset threshold, it is determined that the near field trigger state is entered, the lighting device is triggered to enter the gesture parsing window period, and the timer is triggered to start forward timing. Step S25: When the received signal strength indicator value after smoothing and filtering decreases and exceeds the second preset threshold, it is determined that the near-field trigger state has been discontinued, and after the timer completes the timing of the current gesture parsing window, the lighting device is controlled to return to the low-power listening state. Step S26: When the received signal strength indicator value after smoothing and filtering is within the range between the first preset threshold and the second preset threshold, maintain the current wake-up or wake-up state of the lighting device.

[0039] Specifically, during the continuous periodic acquisition of received signal strength (RSS) values ​​by the wireless communication module, the central processing unit (CPU) constructs a sliding data window of a preset length (e.g., ten data points) in its internal data storage unit. The CPU controls this sliding data window to operate according to a first-in, first-out (FIFO) queue rule, sequentially moving the most recently sampled RSS values ​​from the wireless communication module to the end of the sliding data window while automatically removing the oldest historical value from the beginning. Next, the CPU reads all the values ​​currently retained within the sliding data window in real time, sums them, and then divides them by the preset length to calculate their arithmetic mean, thus obtaining a smoothed and filtered RSS value representing the current state. This moving average smoothing process effectively filters out random interference and spikes caused by multipath effects on instantaneous energy intensity when radio frequency waves propagate in complex spaces.

[0040] Furthermore, the central processing unit (CPU) calculates the smoothed and filtered received signal strength indicator value and loads it as an input signal into a preset hysteresis comparator in real time. This hysteresis comparator pre-stores two unequal key decision thresholds: the aforementioned first preset threshold and second preset threshold. The first preset threshold represents the trigger threshold for extreme proximity (e.g., indicating that the air distance between the wrist and the lighting device is less than ten centimeters), and the second preset threshold represents the release threshold for exiting the action (e.g., indicating that the wrist has moved more than fifty centimeters away). The value of the first preset threshold is set greater than the second preset threshold, and the difference between the two physically constitutes the anti-shake comparison bandwidth used by the system to resist signal fluctuations.

[0041] Meanwhile, the central processing unit (CPU) monitors the output logic state of the hysteresis comparator in real time. When the received signal strength indicator value after smoothing and filtering continuously rises due to the proximity of a human hand, and the value exceeds the first preset threshold from below, the hysteresis comparator generates a state transition signal. After capturing this state transition, the CPU determines that the control terminal has officially entered the near-field trigger state and uses this as the trigger wake-up signal. The CPU immediately wakes up the lighting device from the low-power listening state, controls it to enter the gesture parsing window (e.g., opening a 2.5-second feature capture cycle), and simultaneously starts the internal high-precision timer for forward timing, thereby locking the effective time window for gesture interaction.

[0042] Furthermore, to prevent frequent false wake-ups caused by slight fluctuations in signal strength around the first preset threshold due to minor hand tremors, the hysteresis comparator employs bidirectional asymmetric determination. When the device is woken up, even if the smoothed and filtered received signal strength indicator briefly drops below the first preset threshold due to slight hand tremors, as long as it doesn't fall below the smaller second preset threshold, the central processing unit (CPU) still determines that the control terminal has not left the near-field range and continues to maintain the current wake-up and timing state. Only when the smoothed and filtered value continues to decrease and exceeds the second preset threshold does the system determine that the control terminal has completely left the near-field trigger state. At this point, the CPU will allow the timer to complete the timing of the current gesture parsing window, and after the feature parsing process ends, control the lighting device to return to a low-power listening state for the next interaction wake-up; if the value remains within the range between the first and second preset thresholds, the current wake-up or non-wake-up state remains unchanged.

[0043] Furthermore, in one embodiment of the present invention, before the step of waking up the lighting device to enter the gesture parsing window and starting the timer, the method further includes: Acceleration and angular velocity data are acquired in real time through the built-in inertial sensor; By calculating the acceleration and angular velocity data, the intensity of the current lighting equipment's motion and its spatial pitch angle can be obtained. When the filtered received signal strength indicator value is greater than or equal to the first preset threshold, it is determined whether the currently calculated motion intensity is greater than the preset anti-shake threshold. If it is determined that the calculated intensity of the movement is greater than the anti-shake threshold, the wake-up signal is blocked to prevent entering the gesture parsing window, so as to prevent misoperation caused by the proximity of limbs due to work bumps. If it is determined that the calculated intensity of the motion is not greater than the anti-shake threshold and the pitch angle is within the preset normal operating angle range, then the lighting equipment can be woken up to enter the gesture parsing window.

[0044] Specifically, while the wireless communication module periodically acquires received signal strength indicators, the inertial sensor in the data acquisition module also works synchronously and in parallel. The central processing unit reads the three-axis acceleration data and three-axis angular velocity data acquired by the inertial sensor in real time through the internal communication bus. This frequently updated dynamic physical data can directly and sensitively reflect the instantaneous spatial force and rotational attitude of the lighting equipment as the worker's head or torso moves.

[0045] Next, the central processing unit (CPU) fuses and calculates the real-time acquired acceleration and angular velocity data. Specifically, the CPU performs vector magnitude calculations on the three-axis acceleration data to obtain the overall composite acceleration of the lighting equipment in three-dimensional space. By calculating the high-frequency fluctuation range or standard deviation of this composite acceleration in the time domain, the CPU obtains the intensity of motion characterizing the instantaneous vibration amplitude of the lighting equipment. Simultaneously, the CPU inputs the three-axis acceleration and three-axis angular velocity data into a preset attitude estimation algorithm to calculate the current spatial pitch angle of the lighting equipment relative to the direction of gravity. This is used to identify whether the operator is in a normal upright and stable working posture, or in a state of rapid running, violent shaking, or bending and tilting.

[0046] Meanwhile, when the received signal strength indicator value after smoothing and filtering rises to a value greater than or equal to a first preset threshold (i.e., the wake-up condition of the near-field radio frequency signal is met), the central processing unit (CPU) does not immediately wake up the lighting equipment. Instead, it introduces the motion state parameters calculated above to perform multi-dimensional condition verification to prevent accidental touches. The CPU first extracts the calculated intensity of motion at the current moment and compares it with a preset anti-shake threshold in local memory. This anti-shake threshold is preset as a critical value that distinguishes between the normal stable state of the worker and the state of mechanical vibration, construction bumps, or running.

[0047] If the central processing unit (CPU) determines that the calculated intensity of movement exceeds the preset anti-shake threshold, it indicates that the worker is currently in a non-interactive working state characterized by rapid jolting of the mine cart, rapid running, or high-frequency head vibrations caused by intense construction work. In this dynamic jolting state, the worker's limbs or surrounding reflective obstacles are easily displaced due to the jolting, causing them to briefly approach the lighting equipment and resulting in false sudden changes in received signal strength. To avoid electromagnetic interference caused by this unintentional interaction, the CPU at this time selects to block the quasi-wake-up signal generated by the signal rise, preventing the lighting equipment from entering the gesture parsing window and forcing the equipment to continue maintaining a low-power listening state. This physically eliminates the possibility of equipment malfunction caused by limb proximity due to work jolting or body swaying.

[0048] Furthermore, if the central processing unit (CPU) determines that the calculated intensity of the movement is not greater than the preset anti-shake threshold, it indicates that the operator is currently in a relatively stable state. At this time, the CPU will further verify the spatial pitch angle to determine whether the calculated spatial pitch angle is within the preset normal working angle range (e.g., a safe working angle range within ±45 degrees relative to the horizontal plane). If the spatial pitch angle also meets this range requirement, it proves that the operator is currently in a normal upright or stable head-down working posture, eliminating interference from abnormal postures such as bending over to pick up tools or falling. At this time, there is a very high probability that the operator is intentionally engaging in active gesture interaction. Under the premise of satisfying the dual anti-mistouch verification of motion intensity not exceeding the limit and posture angle being normal, the CPU finally releases and allows the wake-up signal to pass, controlling the lighting equipment to officially enter the gesture parsing window period and start the timer for timing. Through this multi-dimensional verification mechanism combining dynamic physical amplitude and static spatial geometric posture, the adaptive filtering capability of the lighting equipment to environmental bumps and random human movements is greatly enhanced, ensuring the ultra-high stability of spatial contactless control in harsh and vibrating special working conditions.

[0049] Step S30: Within the preset gesture parsing window period, continuously record the change trajectory of the filtered received signal strength indicator value to generate a received signal strength time series. In one embodiment of the present invention, after the aforementioned anti-mistouch verification conditions are met and wake-up is successfully triggered, the central processing unit switches the working state of the lighting device to high-frequency gesture capture mode. At this time, the timer started in the aforementioned steps begins to perform precise timing, defining a gesture parsing window period with a preset time (e.g., 2.5 seconds) to limit the effective boundaries of gesture interaction actions on the time axis.

[0050] Then, throughout the entire gesture parsing window, the wireless communication module, under the control of the central processing unit, continues to maintain a high-speed second sampling frequency (e.g., 20 samples per second) to continuously capture the radio frequency signals transmitted from the control terminal. For the received signal strength indication value collected by the wireless communication module at each trigger moment, the central processing unit immediately calls the aforementioned sliding data window to perform real-time sliding average smoothing processing, thereby eliminating instantaneous jitter caused by multipath reflections and obtaining a continuous and high-confidence smoothed filtered received signal strength indication value.

[0051] Meanwhile, the central processing unit (CPU) allocates a fixed-capacity time-series data buffer (e.g., a one-dimensional array or a doubly linked circular list) in real time within the system's data storage unit. Whenever a new, smoothed, filtered received signal strength indicator value is obtained, the CPU synchronously reads the current real-time count value of a high-precision timer, uses it as a relative timestamp, and pairs the smoothed, filtered value with the corresponding relative timestamp. Subsequently, the CPU writes these time-informed data pairs sequentially into contiguous storage units within the time-series data buffer, thus connecting scattered data points into a continuous trajectory reflecting the changing spatial position of the control terminal.

[0052] Finally, when the timer reaches the preset gesture parsing window threshold (e.g., 2.5 seconds), the central processing unit immediately sends a frequency reduction control signal to the wireless communication module to restore low-power operation, closes the gesture parsing window, and locks the timing data buffer. At this point, the entire set of data pairs stored in the buffer, arranged chronologically, generates a complete received signal strength time series. This series records the entire process of the operator's wrist moving closer to the headlamp, moving away from the headlamp, and then moving closer to the headlamp again during the interaction.

[0053] Step S40: Extract extreme value features from the received signal strength time series, and match the extracted extreme value features with the preset signal action template to determine the corresponding control command; In one embodiment of the present invention, the step of extracting extreme value features from the received signal strength time series includes: Calculate the first-order difference sequence of the received signal strength time series to reflect the trend of the received signal strength indication value over time; Identify the zero-crossing points in the first-order difference sequence, and determine the local maxima and local minima in the received signal strength time series based on the sign characteristics of the difference before and after the zero-crossing points. The identified local maxima and local minima are screened, and invalid extreme points whose amplitude difference with adjacent extreme points is less than a preset fluctuation threshold are removed, while valid peak and valley features are retained. Based on the timestamps, amplitudes, and order of occurrence of effective peak and trough features, an extreme value feature vector is constructed.

[0054] Furthermore, in one embodiment of the present invention, the step of matching the extracted extreme value features with a preset signal action template to determine the corresponding control command includes: The distance between the constructed extreme value feature vector and multiple preset signal action templates is calculated using a dynamic time warping algorithm. If the extreme value feature vector exhibits a waveform feature where the received signal strength indicator value is greater than the first preset threshold, then drops to below the second preset threshold, and then exceeds the first preset threshold again within the gesture parsing window, and the dynamic time warping distance with the preset double proximity signal action template is the smallest, then the successfully matched double proximity signal action template is mapped to the first control command. The first control command is used to instruct the lighting device to reverse the switching between the power on and off states. If the extreme value feature vector shows no effective valley feature, and the duration for which the received signal strength indication value remains above the first preset threshold exceeds the preset duration threshold, and the dynamic time warping distance with the preset long-term proximity signal action template is the smallest, then the successfully matched long-term proximity signal action template is mapped to the second control command. The second control command is used to instruct the lighting device to perform cyclic adjustment of the brightness or lighting mode.

[0055] Specifically, after generating a complete received signal strength time series, the central processing unit (CPU) reads the series from the data storage unit. The CPU subtracts adjacent time step data points from each other in the series to calculate the first-order difference sequence of the received signal strength time series, which visually and quantitatively reflects the instantaneous slope and overall trend of signal strength changes over time. Subsequently, the CPU searches for zero-crossing points along the time axis in this first-order difference sequence. For each found zero-crossing point, the CPU performs a geometric determination based on the sign of the difference values ​​before and after the zero point: if the difference value changes from positive to negative, it indicates that the waveform reached its highest point and then declined; the CPU determines that this point corresponds to a local maximum point in the received signal strength time series, i.e., the peak of the signal waveform. If the difference value changes from negative to positive, it indicates that the waveform reached its lowest point and then rose; the CPU determines that this point corresponds to a local minimum point in the received signal strength time series, i.e., the trough of the signal waveform.

[0056] Next, to eliminate invalid micro-waveform fluctuations caused by minor human movements, breathing variations, or other weak electromagnetic noise in the mining environment, the central processing unit (CPU) performs digital filtering on all identified local maxima and minima. The CPU iterates through all extreme points, calculating the signal amplitude difference between adjacent maxima and minima. If this amplitude difference is less than a preset fluctuation threshold (e.g., less than 3 dB), the CPU determines the fluctuation to be invalid environmental noise jitter and discards these invalid extreme points with insignificant amplitude changes. If the calculated amplitude difference is greater than or equal to the preset fluctuation threshold, the CPU retains the extreme point, thus accurately locating the effective peak and trough features truly caused by large-scale hand movements in the time-series data. Finally, based on the timestamps, signal amplitudes, and their order of appearance on the timeline corresponding to the retained effective peak and trough features, the CPU packages and constructs an extreme feature vector representing the physical characteristics of this interaction.

[0057] Meanwhile, the central processing unit (CPU) compares and matches the constructed extreme value feature vector with multiple locally preset signal action templates. Since the waving or hovering speeds of different operators vary, the CPU employs a dynamic time warping algorithm to improve the matching's inclusiveness. This algorithm elastically warps and aligns the time axis, calculating the minimum cumulative distance between the constructed extreme value feature vector and each preset template after time alignment, serving as a metric for the waveform similarity between the two.

[0058] Furthermore, the central processing unit (CPU) sequentially calculates and compares the dynamic time warping distance under different action templates. If the calculated dynamic time warping distance between the current extreme feature vector and the preset double approach signal action template is the smallest, and the physical waveform of the extreme feature vector within the gesture parsing window is as follows: after its received signal strength indication value is greater than the first preset threshold, it first drops sharply to below the second preset threshold, and then quickly rises again to above the first preset threshold (physically accurately representing the double-tap interaction process of the operator's wrist quickly approaching the headlamp, retracting, and then approaching the headlamp again), then the CPU determines that the double approach gesture matching is successful and maps the current extreme feature vector to the first control command. This first control command is directly sent to the driving circuit of the light-emitting unit to instruct the lighting equipment to reverse the switching between the power-on state and the power-off state (i.e., to perform the switching operation). If the calculated dynamic time-warped distance between the current extreme feature vector and the preset long-term proximity signal action template is the smallest, and the extreme feature vector is characterized by: within the gesture parsing window, its received signal strength indicator value always remaining above the first preset threshold, the duration exceeding the preset duration threshold (e.g., lasting more than 1.5 seconds), and the sequence not containing any effective trough features (physically representing the hovering interaction process where the operator keeps their wrist close to the headlamp for a long time without moving it), then the central processing unit determines that the long-term proximity gesture matching is successful and maps the current extreme feature vector to a second control command. This second control command is sent to the drive circuit of the zoom actuator or the light-emitting unit to instruct the lighting equipment to perform a cycle adjustment operation of the light intensity or light mode (e.g., switching between strong light, weak light, or zoom focusing). Through this multi-dimensional matching mechanism combining differential filtering and elastic warping, it is ensured that even when the fingers are restricted by heavy gloves and cannot perform small physical button operations, the lighting equipment can still highly sensitively and extremely accurately decode the operator's interaction intentions, greatly ensuring the interaction safety during special operations.

[0059] Step S50: Based on the matched control command, the lighting device directly executes the corresponding lighting state switching operation locally; In one embodiment of the present invention, after completing template matching of the motion feature vector and determining the corresponding control instruction, the central processing unit (CPU) converts the control instruction into physical electrical signal parameters for driving the hardware. Based on the different attributes of the current instruction (first control instruction or second control instruction), the CPU prepares and outputs corresponding high / low level control signals for control pins, pulse width modulation control signals, or motor drive stepping pulse signals.

[0060] If the matched control command is the first control command, the central processing unit (CPU) immediately sends a level transition control signal to the constant current drive circuit of the light-emitting unit. Specifically, when the current lighting device is detected to be in the off state, the CPU controls the control pin electrically connected to the light-emitting unit drive circuit to output a high level, causing the electronic switch (such as a field-effect transistor) in the drive circuit to quickly conduct. The power from the high-capacity lithium battery in the power management module is then efficiently applied to the LED, causing it to light up. Conversely, if the current lighting device is detected to be in the on state, the CPU controls the control pin to output a low level, cutting off the electronic switch in the drive circuit and causing the LED to turn off instantly. Thus, the CPU directly and instantly completes the inversion switch between the power on and off states locally.

[0061] If the matched control command is the second control command, the embodiments of the present invention include, but are not limited to, the following two implementation methods: The first implementation involves the lighting device pre-combining the luminous brightness (three levels: high, medium, and low) with the luminous mode (two levels: spotlight and floodlight) in pairs orthogonal combinations. A state machine sequence containing six fixed combinations is constructed in the local read-only memory: low-light floodlight, medium-light floodlight, high-light floodlight, high-light spotlight, medium-light spotlight, and low-light spotlight. The central processing unit (CPU) automatically accumulates the current level and jumps to the next target level according to a preset cyclic dimming logic. When the target level is an adjustment of luminous intensity, the CPU adjusts the duty cycle of the pulse width modulation (PWM) control signal output to the constant current drive circuit of the light-emitting unit in real time. For example, when the level cycles from low-light floodlight to medium-light floodlight, the CPU increases the duty cycle of the PWM control signal from 30% to a preset 60%, thereby increasing the average current flowing through the LED chips and achieving a cyclical, step-wise adjustment of the luminous brightness. When the target setting involves adjusting the beam divergence angle (i.e., between spotlight and floodlight modes) (e.g., when switching between high-intensity floodlight and high-intensity spotlight modes), the central processing unit sends a specific frequency and number of drive pulse signals to the motor driver of the zoom actuator. Upon receiving these pulse signals, the motor driver drives a micro-stepping motor to rotate precisely, which, through a lead screw and transmission components, drives the optical lens at the front of the lamp head to move horizontally along the optical axis. This change in the optical lens position alters the beam divergence angle emitted by the LED chips, thus enabling seamless, local, and automatic switching between spotlight and floodlight modes.

[0062] The second implementation involves the central processing unit (CPU) recording the current brightness index value (weak, medium, strong) and mode state value (spotlight, floodlight) in its local read-only memory. If the control terminal moves away after reaching a prolonged proximity threshold within the gesture parsing window, the CPU simply increments the current brightness index value (e.g., switching from weak to medium light, while maintaining the current spotlight or floodlight mode). In this case, the CPU adjusts the output brightness of the light-emitting unit by adjusting the duty cycle of the pulse width modulation control signal, while the micro-stepping motor of the zoom actuator remains stationary. However, if the control terminal is continuously held above a first preset threshold for a duration exceeding a longer secondary time threshold (e.g., hovering for more than three seconds), the CPU determines that the operator intends to change the light-emitting mode. In this case, the CPU keeps the current brightness index value unchanged but reverses the mode state value (i.e., if the current mode is spotlight, it switches to floodlight; if the current mode is floodlight, it switches to spotlight). The central processing unit sends forward or reverse step pulses to the motor driver of the zoom actuator, driving the optical lens to move back and forth, completing the dual-state switching between focusing and floodlighting.

[0063] Therefore, through the two specific adjustment and execution methods mentioned above (fixed combination sequence loop and two-dimensional alternating step loop), the embodiments of the present invention provide clear and rigorous control logic support for operation scenarios of different complexities, making the collaboration path between hardware modules clear.

[0064] Furthermore, throughout the entire execution process described above, from the capture, filtering, and dynamic time warping matching of gestures to the final physical drive execution, everything is completed independently and in a closed loop by the lighting equipment locally. The lighting equipment does not need to send complex control commands back to the control terminal; the control terminal only acts as a passive radio frequency beacon during the interaction. This independent single-end execution mechanism effectively bypasses the cumbersome problem of traditional wireless solutions requiring operators to manipulate the control terminal screen or open specific terminal software applications. It ensures that even when operators' hands are covered in dirt or sand, or when wearing heavy protective gloves, they can still safely and efficiently switch lighting states without contact through a very natural head-and-wrist spatial interaction.

[0065] In summary, the wireless communication-based lighting equipment control method in the above embodiments of the present invention establishes a low-power wireless communication connection with the control terminal and periodically acquires the received signal strength indicator value. Combined with recording the gesture trajectory within the gesture parsing window and performing template matching, it achieves contactless closed-loop zero-contact control on the lighting equipment. This avoids the problem of operators having difficulty operating physical buttons or screen terminals due to wearing heavy protective gloves. While maintaining the extremely high protective sealing performance of the lighting equipment's outer shell, it effectively reduces the interactive hazards in special industrial and mining environments and solves the problem of difficulty in quickly and effectively operating lighting equipment in existing industrial and mining environments. Furthermore, by using the received signal strength indicator... The displayed value, after smoothing and filtering, is input into a hysteresis comparator with two unequal thresholds. This achieves noise reduction and jitter prevention protection during near-field triggering and disengagement state determination, effectively eliminating frequent false wake-ups caused by instantaneous jitter in the ambient radio electromagnetic signal. It also ensures stability of state transitions by guaranteeing that the system only returns to low-power mode after the gesture parsing is completed normally. Furthermore, by calculating the first-order difference sequence of the received signal strength time series and extracting zero-crossing points to locate peak and trough features, while eliminating invalid fluctuations below a preset fluctuation threshold, significant data compression and effective noise reduction of continuous gesture wireless signals are achieved. This effectively reduces the algorithm calculations and memory reads of the lighting device's local processor. The write load ensures smooth operation on low-computing-power, low-power microprocessors. By employing a dynamic time warping algorithm to calculate the path distance between the extreme feature vector and the signal action template, and mapping successfully matched double-proximity gestures and long-duration proximity gestures to the first control command for power switch switching and the second control command for cyclic adjustment of illumination levels, adaptive consideration is achieved for the differences in the speed of gestures made by different operators, ensuring clear and intuitive interactive command control even without on-screen prompts. Furthermore, by collecting the basic signal strength under static conditions after power-on and dynamically calculating and collaboratively updating the first and second preset thresholds based on the average and variance characteristics, the system effectively addresses these challenges. It achieves adaptive threshold drift calibration for complex and variable mining environments, eliminating the multipath effect in enclosed metal mine tunnels and the problem of false triggering or insensitivity caused by occasional electromagnetic noise changes, ensuring the consistency of gesture interaction distance feedback; and by using the built-in inertial sensor to calculate the intensity of movement and spatial pitch angle in real time before triggering gesture wake-up, and forcibly intercepting and shielding the current wake-up trigger when the intensity exceeds the anti-shake threshold, it realizes the data fusion threshold determination of multiple sensors, eliminating the accidental switching of equipment caused by workers' limbs unintentionally approaching during daily running, climbing, tool collisions, or accidental bumps and falls of equipment, ensuring the safety of light use during special operations;By sending wireless communication broadcast signals at a slow first broadcast cycle during sleep mode, and quickly switching the communication cycle to a connection communication cycle matching the preset sampling rate after a successful connection is established, an on-demand communication mode is achieved, which features long-cycle broadcast standby during normal operation and instantaneous high-frequency sampling during gesture interaction. This effectively reduces the static power consumption during the system's monitoring phase and greatly extends the battery life of the lighting equipment on a single charge. Furthermore, by calculating the ambient background received signal strength benchmark value in real time and comparing it with a third preset threshold representing the normal wearing distance, the system adaptively switches between the first and second sampling frequencies at different physical spatial distances. This achieves power saving when the control terminal is at a medium to long non-interactive distance and a seamless increase in the sampling rate when the user approaches at close range, further reducing the overall operating current of the system.

[0066] Example 2 Please see Figure 3 This is a schematic diagram of a lighting equipment control device based on wireless communication according to a second embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown. The lighting equipment control device based on wireless communication in this embodiment of the present invention is applied to a lighting equipment, and the device includes: The communication monitoring module 11 is used to establish a low-power wireless communication connection with the control terminal and periodically acquire the received signal strength indication value of the wireless communication connection according to a preset sampling rate. The wake-up trigger module 12 is used to perform sliding window filtering on the acquired received signal strength indication value, and when it is determined that the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, wake up the lighting device to enter the gesture parsing window period and start the timer. The sequence recording module 13 is used to continuously record the change trajectory of the filtered received signal strength indicator value within the preset gesture parsing window period, and generate a received signal strength time series. The feature matching module 14 is used to extract extreme value features from the received signal strength time series and match the extracted extreme value features with a preset signal action template to determine the corresponding control command. The operation execution module 15 is used to allow the lighting device to directly perform the corresponding lighting state switching operation locally according to the matched control command.

[0067] Furthermore, in one embodiment of the present invention, the wake-up trigger module 12 includes: A sliding data window construction unit is used to construct a sliding data window of a preset length, and to sequentially move the real-time acquired received signal strength indication values ​​into the sliding data window; The smoothing filter calculation unit is used to calculate the average value of all received signal strength indication values ​​within the sliding data window to obtain the smoothed received signal strength indication value. The hysteresis threshold comparison unit is used to input the received signal strength indication value after smoothing and filtering into a preset hysteresis comparator and compare it with the first preset threshold and the second preset threshold, wherein the first preset threshold is greater than the second preset threshold. The near-field wake-up trigger unit is used to determine that the near-field trigger state is entered when the received signal strength indicator value after smoothing and filtering rises and exceeds the first preset threshold, triggering the wake-up of the lighting device to enter the gesture parsing window period, and triggering the timer to start forward timing. The delayed sleep control unit is used to determine that the near-field triggering state is lost when the received signal strength indicator value after smoothing and filtering drops and exceeds the second preset threshold, and to control the lighting device to return to the low-power listening state after the timer completes the timing of the current gesture parsing window period. The hysteresis state maintenance unit is used to maintain the current wake-up or wake-up state of the lighting device when the received signal strength indication value after smoothing and filtering is within the range between the first preset threshold and the second preset threshold.

[0068] Furthermore, in one embodiment of the present invention, the feature matching module 14 includes: A first-order difference calculation unit is used to calculate the first-order difference sequence of the received signal strength time series to reflect the changing trend of the received signal strength indication value over time. The local extremum localization unit is used to identify the zero-crossing points in the first-order difference sequence, and determine the local maxima and local minima in the received signal strength time series based on the positive and negative sign characteristics of the difference before and after the zero-crossing points. The noise filtering unit is used to filter the determined local maxima and local minima, remove invalid extreme points whose amplitude difference with adjacent extreme points is less than a preset fluctuation threshold, and retain effective peak features and effective trough features. The feature vector generation unit is used to construct an extreme value feature vector based on the timestamps, amplitudes, and order of occurrence of the effective peak features and effective trough features.

[0069] Furthermore, in one embodiment of the present invention, the feature matching module 14 includes: The path warping calculation unit is used to calculate the distance between the constructed extreme value feature vector and multiple preset signal action templates using a dynamic time warping algorithm; The first mode mapping unit is used to map the successfully matched double proximity signal action template into a first control instruction if the extreme value feature vector shows a waveform feature in which the received signal strength indication value is greater than the first preset threshold, then drops to below the second preset threshold, and then exceeds the first preset threshold again within the gesture parsing window period, and the dynamic time warping distance with the preset double proximity signal action template is the smallest. The first control instruction is used to instruct the lighting device to reverse the switching between the power on state and the power off state. The second mode mapping unit is used to map the successfully matched long-term close signal action template into a second control command if the extreme value feature vector shows no effective valley feature, and the duration of the received signal strength indication value remaining above the first preset threshold exceeds the preset duration threshold, and the dynamic time warping distance with the preset long-term close signal action template is the smallest. The second control command is used to instruct the lighting device to perform cyclic adjustment of the luminous brightness or luminous mode.

[0070] Furthermore, in one embodiment of the present invention, the communication monitoring module 11 includes: The wireless binding connection unit is used to broadcast a pairing request to the surrounding area after the lighting equipment is turned on and to establish a unique wireless communication binding relationship with the control terminal; The static sampling unit is used to collect multiple basic received signal strength indication values ​​under static and safe conditions within an initial preset time period. The variance feature extraction unit is used to calculate the average noise floor value of multiple basic received signal strength indication values ​​and extract the variance features of the numerical distribution. Based on the calculated average noise floor value and the variance characteristics of the numerical distribution, the first preset threshold is dynamically calculated and updated. The dynamic threshold adaptive unit is used to synchronously update the second preset threshold according to the updated first preset threshold, so as to keep the difference between the first preset threshold and the second preset threshold greater than or equal to the preset hysteresis bandwidth.

[0071] Furthermore, in one embodiment of the present invention, the wake-up trigger module 12 includes: The attitude acquisition unit is used to acquire acceleration and angular velocity data in real time through the built-in inertial sensor; The attitude parameter calculation unit is used to calculate the acceleration data and the angular velocity data to obtain the intensity of the current lighting device's motion and the spatial pitch angle; The motion judgment unit is used to determine whether the currently calculated intensity of motion is greater than a preset anti-shake threshold when the filtered received signal strength indicator value is greater than or equal to a first preset threshold. An abnormal motion shielding unit is used to shield the wake-up signal if it is determined that the calculated intensity of the motion is greater than the anti-shake threshold, thereby preventing entry into the gesture parsing window period and preventing misoperation caused by limb proximity due to work bumps. The normal operation permission unit is used to allow the lighting device to enter the gesture parsing window period if it is determined that the currently calculated intensity of the movement is not greater than the anti-shake threshold and the spatial pitch angle is within the preset normal operation angle range.

[0072] Furthermore, in one embodiment of the present invention, the communication monitoring module 11 includes: A periodic broadcasting unit is used to control the lighting device to send a wireless communication broadcast signal in a first broadcast cycle when it is in a sleep state; An identity security verification unit is used to receive a pairing request from the control terminal and verify the identity information of the control terminal. The connection cycle switching unit is used to establish a low-power wireless communication connection with the control terminal if the authentication is successful, and to switch the communication cycle from the first broadcast cycle to a connection communication cycle that matches the preset sampling rate.

[0073] Furthermore, in one embodiment of the present invention, the communication monitoring module 11 includes: The background reference calculation unit is used to calculate the average value of the received signal strength indication value obtained within a preset time window in real time, and use it as the environmental background received signal strength reference value. A distance-level evaluation unit is used to compare the ambient background received signal strength benchmark value with a third preset threshold, wherein the third preset threshold is less than the first preset threshold and indicates that the control terminal is at a normal wearing distance. The first sampling frequency control unit is used to control the wireless communication module to obtain the received signal strength indication value at the first sampling frequency if the ambient background received signal strength reference value is less than the third preset threshold. The second sampling frequency control unit is used to control the wireless communication module to switch the sampling frequency from the first sampling frequency to the second sampling frequency if the ambient background received signal strength reference value is greater than or equal to the third preset threshold, wherein the second sampling frequency is greater than the first sampling frequency.

[0074] The lighting equipment control device based on wireless communication provided in this embodiment of the invention has the same implementation principle and technical effects as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0075] Example 3 In another aspect, the present invention also provides a lighting device, please refer to [link / reference]. Figure 4 The image shows a lighting device according to a third embodiment of the present invention, including a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the wireless communication-based lighting device control method as described in the foregoing method embodiments.

[0076] In some embodiments, the processor mentioned above may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip, used to run program code stored in memory or process data, such as executing access restriction programs.

[0077] The aforementioned memory includes at least one type of readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory can be an internal storage unit of the lighting device, such as the hard disk of the lighting device. In other embodiments, the memory can be an external storage device of the lighting device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the lighting device. Furthermore, the memory 20 can include both internal and external storage units of the lighting device. The memory 20 can be used not only to store application software and various types of data installed on the lighting device, but also to temporarily store data that has been output or will be output.

[0078] It should be pointed out that, Figure 4 The structure shown does not constitute a limitation on the lighting device. In other embodiments, the lighting device may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0079] This invention also proposes a computer-readable medium storing a program that, when executed by a processor, implements the wireless communication-based lighting device control method as described in the foregoing method embodiments.

[0080] Those skilled in the art will understand that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0081] More specific examples of media (a non-exhaustive list) include: electrical connections (electronic devices) with one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0082] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0083] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0084] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the appended claims.

Claims

1. A method for controlling lighting equipment based on wireless communication, characterized in that, Applied to lighting equipment, the method includes: Establish a low-power wireless communication connection with the control terminal, and periodically acquire the received signal strength indication value of the wireless communication connection according to a preset sampling rate; The received signal strength indication value is subjected to sliding window filtering. When the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, the lighting device is woken up to enter the gesture parsing window period and a timer is started. Within the preset gesture parsing window period, the change trajectory of the filtered received signal strength indicator value is continuously recorded to generate a received signal strength time series. Extract the extreme value features from the received signal strength time series, and match the extracted extreme value features with a preset signal action template to determine the corresponding control command; Based on the matched control command, the lighting device directly performs the corresponding lighting state switching operation locally.

2. The lighting equipment control method based on wireless communication according to claim 1, characterized in that, The steps of performing sliding window filtering on the acquired received signal strength indication value, and waking up the lighting device to enter the gesture parsing window and starting the timer when the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, include: Construct a sliding data window of a preset length, and sequentially move the real-time received signal strength indicator values ​​into the sliding data window; Calculate the average value of all received signal strength indication values ​​within the sliding data window to obtain the smoothed and filtered received signal strength indication value; The received signal strength indication value after smoothing and filtering is input into a preset hysteresis comparator and compared with the first preset threshold and the second preset threshold, wherein the first preset threshold is greater than the second preset threshold. When the received signal strength indicator value after smoothing and filtering rises and exceeds the first preset threshold, it is determined that the near-field trigger state is entered, triggering the lighting device to enter the gesture parsing window period, and triggering the timer to start counting forward. When the received signal strength indicator value after smoothing and filtering decreases and exceeds the second preset threshold, it is determined that the near-field trigger state has been discontinued, and after the timer completes the timing of the current gesture parsing window, the lighting device is controlled to return to the low-power listening state. When the received signal strength indicator value after smoothing and filtering is within the range between the first preset threshold and the second preset threshold, the current wake-up or wake-up state of the lighting device is maintained.

3. The lighting equipment control method based on wireless communication according to claim 2, characterized in that, The step of extracting the extreme value features from the received signal strength time series includes: Calculate the first-order difference sequence of the received signal strength time series to reflect the changing trend of the received signal strength indication value over time; Identify the zero-crossing points in the first-order difference sequence, and determine the local maxima and local minima in the received signal strength time series based on the sign characteristics of the difference before and after the zero-crossing points. The identified local maxima and local minima are screened, and invalid extreme points whose amplitude difference with adjacent extreme points is less than a preset fluctuation threshold are removed, while valid peak and valley features are retained. Based on the timestamps, amplitudes, and order of occurrence of the effective peak and valley features, an extreme value feature vector is constructed.

4. The lighting equipment control method based on wireless communication according to claim 3, characterized in that, The step of matching the extracted extreme value features with a preset signal action template to determine the corresponding control command includes: The distance between the constructed extreme value feature vector and multiple preset signal action templates is calculated using a dynamic time warping algorithm. If the extreme value feature vector exhibits a waveform feature where the received signal strength indicator value is greater than the first preset threshold, then drops to below the second preset threshold, and then exceeds the first preset threshold again within the gesture parsing window, and the dynamic time warping distance with the preset double proximity signal action template is the smallest, then the successfully matched double proximity signal action template is mapped to a first control instruction. The first control instruction is used to instruct the lighting device to reverse the switching between the power on state and the power off state. If the extreme value feature vector shows no effective valley feature, and the duration for which the received signal strength indication value remains above the first preset threshold exceeds the preset duration threshold, and the dynamic time warping distance with the preset long-term proximity signal action template is the smallest, then the successfully matched long-term proximity signal action template is mapped to a second control instruction. The second control instruction is used to instruct the lighting device to perform cyclic adjustment of the luminous brightness or luminous mode.

5. The lighting equipment control method based on wireless communication according to claim 1, characterized in that, Before the step of establishing a low-power wireless communication connection with the control terminal and periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate, the method further includes: After the lighting equipment is turned on, it broadcasts a pairing request to the surrounding area and establishes a unique wireless communication binding relationship with the control terminal. Within an initial preset time period, multiple basic received signal strength indication values ​​are collected under a static and safe environment; Calculate the average noise floor value of multiple basic received signal strength indicators collected, and extract the variance features of the numerical distribution; Based on the calculated average noise floor value and the variance characteristics of the numerical distribution, the first preset threshold is dynamically calculated and updated. The second preset threshold is updated synchronously according to the updated first preset threshold, so as to keep the difference between the first preset threshold and the second preset threshold greater than or equal to the preset hysteresis bandwidth.

6. The lighting equipment control method based on wireless communication according to claim 1, characterized in that, Before the step of waking up the lighting device to enter the gesture parsing window and starting the timer, the method further includes: Acceleration and angular velocity data are acquired in real time through the built-in inertial sensor; The acceleration and angular velocity data are calculated to obtain the intensity of the current lighting equipment's motion and its spatial pitch angle. When the filtered received signal strength indicator value is greater than or equal to the first preset threshold, it is determined whether the currently calculated intensity of motion is greater than the preset anti-shake threshold. If it is determined that the calculated intensity of the movement is greater than the anti-shake threshold, then the wake-up signal is blocked to prevent entering the gesture parsing window period, so as to prevent misoperation caused by the limbs getting close due to the work bumps; If it is determined that the calculated intensity of the movement is not greater than the anti-shake threshold, and the spatial pitch angle is within the preset normal operating angle range, then the lighting device is allowed to be woken up to enter the gesture parsing window.

7. The lighting equipment control method based on wireless communication according to claim 1, characterized in that, Before the step of establishing a low-power wireless communication connection with the control terminal and periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate, the method further includes: The lighting device is controlled to transmit a wireless communication broadcast signal during a first broadcast cycle while in sleep mode; Receive a pairing request from the control terminal and verify the identity information of the control terminal; If authentication is successful, a low-power wireless communication connection is established with the control terminal, and the communication cycle is switched from the first broadcast cycle to a connection communication cycle that matches the preset sampling rate.

8. The lighting equipment control method based on wireless communication according to claim 1, characterized in that, The step of periodically acquiring the received signal strength indication value of the wireless communication connection according to a preset sampling rate includes: The average value of the received signal strength indication obtained within a preset time window is calculated in real time and used as the reference value of the received signal strength in the background environment. The reference value of the received signal strength in the background environment is compared with a third preset threshold, wherein the third preset threshold is less than the first preset threshold and indicates that the control terminal is at a normal wearing distance. If the ambient background received signal strength reference value is less than the third preset threshold, the wireless communication module is controlled to obtain the received signal strength indication value at the first sampling frequency. If the ambient background received signal strength reference value is greater than or equal to the third preset threshold, the wireless communication module is controlled to switch the sampling frequency from the first sampling frequency to the second sampling frequency, wherein the second sampling frequency is greater than the first sampling frequency.

9. A lighting equipment control device based on wireless communication, characterized in that, Applied to lighting equipment, the device includes: The communication monitoring module is used to establish a low-power wireless communication connection with the control terminal and periodically acquire the received signal strength indication value of the wireless communication connection according to a preset sampling rate. The wake-up trigger module is used to perform sliding window filtering on the acquired received signal strength indication value, and when it is determined that the filtered received signal strength indication value rises from below the first preset threshold to above or equal to the first preset threshold, the lighting device is woken up to enter the gesture parsing window period and the timer is started. The sequence recording module is used to continuously record the change trajectory of the filtered received signal strength indicator value within the preset gesture parsing window period, and generate a received signal strength time series. The feature matching module is used to extract extreme value features from the received signal strength time series and match the extracted extreme value features with a preset signal action template to determine the corresponding control command. The operation execution module is used to enable the lighting device to directly perform the corresponding lighting state switching operation locally according to the matched control command.

10. A lighting device, characterized in that, It includes a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the wireless communication-based lighting device control method as described in any one of claims 1-8.