Method for preventing false triggering of security light in D2D mode

By using the light sensor and human body sensor in the security light hardware system, combined with algorithms T1, T2, and T3, changes in ambient light intensity are detected in real time, solving the problem of false triggering of the light sensor in D2D mode and achieving stable lighting and energy-saving effect of the security light.

CN115529703BActive Publication Date: 2026-02-17SHENZHEN GOALSUN OPTOELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211188383.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-28
Publication Date
2026-02-17
Estimated Expiration
2042-09-28

AI Technical Summary

Technical Problem

In the D2D mode of the smart security light, the light frequently turns on and off due to the light sensor's incorrect judgment of the preset LUX value, which cannot effectively realize the lighting and security functions and causes trouble for users.

Method used

The system utilizes light sensors and human body sensors in the security light hardware system. Through the monitoring and control module, it detects changes in ambient light intensity in real time. Combined with algorithms T1, T2, and T3, it updates voltage values ​​and offsets to determine the night and day status, thus avoiding false triggering.

Benefits of technology

It effectively avoids interference from the security light source, ensuring stable operation of the lights and meeting users' dual needs for energy saving and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529703B_ABST
    Figure CN115529703B_ABST
Patent Text Reader

Abstract

A security lamp D2D mode prevents false triggering method, control method contains the following steps: S1, in the register of monitoring control module, write the voltage value data V for judging night, day state A And offset data P D50 , P D100 ;S2, the host control module is set to D2D mode, and the host control module sends instruction M DD2D To monitoring control module;S3, monitoring control module receives instruction M DD2D , X seconds after starting through photosensitive sensor real-time detection day and night state;S4, the host control module receives the night, day state reported by monitoring control module is day, no action;S5, the host control module receives D 100 And D 50 State report received after 2n minutes, as valid data;The application monitoring control module updates the voltage value of photosensitive sensor through algorithm T1, T2, T3 in real time, judges the night, day state through the offset change of voltage value, which can effectively avoid the security lamp light source self-disturbance phenomenon.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of security light control technology, and in particular to a method for preventing false triggering of security lights in D2D mode. Background Technology

[0002] With the advancement of technology, people's production and life are increasingly moving towards intelligence. Intelligent light sources can bring great convenience to people in life and can meet people's lighting requirements in different scenarios. Intelligent security lights are light sources with human body detection and light sensing functions, and can interact with people. Under certain circumstances, when the sensor detects human activity, the light will turn on. At this time, the switch of the light can be used as a condition for triggering an alarm.

[0003] Since smart security lights are not only used as security tools but also primarily for lighting, users need them to remain on all night, which means they need a mode where the lights are on at dusk and off at dawn, referred to here as D2D mode.

[0004] Currently, D2D mode generally adopts three methods: timed, sensing, and sensing + timed. Since the timed and sensing + timed methods can only guarantee to provide lighting function for users within a fixed time, they cannot meet users' dual needs for energy saving and security alarm. Therefore, the more intelligent human body detection + light sensing (hereinafter referred to as multi-sensing) method has become the key to solving user needs.

[0005] In D2D mode, multiple sensors offer a wider detection angle and reduced mold development costs due to the presence of two or more sensors within the same lens, making it a preferred design choice for smart security lights. However, under these conditions, existing technologies, such as using a light sensor to determine day or night based on a preset LUX value, suffer from self-interference. For example, when dusk arrives, the light sensor determines it's night based on the preset LUX value and turns on the light. If the light then radiates onto the lens, the light sensor, again based on the preset LUX value, will determine it's daytime and turn off the light. This results in the light turning on and off repeatedly until the acquired ambient light LUX value no longer meets the preset condition for nighttime. Such false triggering not only fails to achieve lighting and security functions but also causes inconvenience for customers. These shortcomings are problems that urgently need to be solved by those skilled in the art. Summary of the Invention

[0006] To overcome the shortcomings of the prior art, the present invention discloses a method for preventing false triggering in D2D mode of security lights.

[0007] To achieve the above-mentioned objectives, the present invention adopts the following technical solution:

[0008] A method for preventing false triggering in D2D mode of a security light, wherein the hardware system of the security light includes a light source, a main control module, a monitoring and control module, a photosensor, and a human body sensor. The monitoring and control module is connected to the photosensor and the human body sensor respectively through a sensor driving circuit. The monitoring and control module is connected to the main control module via corresponding signals. The main control module is connected to the light source for corresponding control through a light source driving circuit. The monitoring and control module is equipped with a register. The control method includes the following steps:

[0009] S1. Write the voltage value V used to determine the night and day status into the register of the monitoring and control module. A and offset data P D50 P D100 ;

[0010] S2, System initialization; Light source off, photosensor on, human body sensor off;

[0011] S3, X seconds later, the photosensitive sensor detects the day and night status in real time; the monitoring and control module reports the day and night status to the main control module once every t seconds; where X≤60, 1≤t≤1800;

[0012] S4. When the main control module receives a report from the monitoring and control module indicating that the night / day status is daytime, it takes no action; when it receives a report indicating that the night / day status is nighttime, it performs three actions:

[0013] Action 1. Light source turned on, brightness 100% for n minutes, then brightness 50% for n minutes, 1≤n≤10, human body sensor turned on;

[0014] Action 2. Obtain the voltage value V of the light source plus the current ambient light source when the lights are 100% lit within n minutes using algorithm T1. amax As V 100datum And write it to the register for later use; and the light sensor voltage V of the light source plus the current ambient light source when 50% of the lights are on within n minutes. amax As V 50datum And write it to the register for later use;

[0015] Algorithm T1 is as follows: acquire the photosensor voltage data every F seconds, with each G acquisitions forming a group, and select an intermediate value V from each group. axmed Continuously obtain M1 groups, and select the maximum value V among them. amax As the voltage value of the photosensor; where F > 0, G is an odd number and G ≥ 3, M1 ≥ 2, and ;

[0016] Action 3. The monitoring and control module begins to send human body sensor trigger signals back to the main control module after 2n minutes;

[0017] When the main control module does not receive a human body sensor trigger signal:

[0018] The photosensitive voltage value V is continuously updated using algorithm T2. 50datum and offset p D50now If there are M2 consecutive offsets p D50now ≥P D50 This indicates that it is daytime, M2≥2, the lights are off, and the human body sensor is turned off;

[0019] Algorithm T2 is: to acquire the voltage value V of the photosensor under the conditions of 50% light source illumination plus ambient light source in real time. 50new If V 50new >V 50datum The value indicates that the ambient light source is dimmer. (V) 50new The value of V 50datum Write to register; if V 50new ≤V 50datum Then calculate the offset: Offset p D50now Where Z is the largest unsigned integer represented by one byte, and Y is the maximum rated voltage for the operation of the photosensor;

[0020] When the main control module receives a human body sensor trigger signal:

[0021] The light is 100% bright; the photosensitive sensor voltage value V is continuously updated via algorithm T3. 100datum and offset p D100now If there are M2 consecutive offsets p D100now ≥P D100 It is then assumed that it is daytime, so the lights are turned off and the human body sensor is deactivated.

[0022] Algorithm T3 is: to acquire the voltage value V of the photosensor under the conditions of 100% light source illumination plus ambient light source in real time. 100new If V 100new Greater than V 100datum This indicates that the ambient light source is dimmer, at which point V 100datum Updated to V 100new The value of V 100datum Write to register; if V 100new Less than V 100datum Then calculate the offset: Offset p D100now ;

[0023] S5. Repeat steps S2 to S4.

[0024] Preferably, the main control module is equipped with a Bluetooth / WIFI / 2G / 4G / 5G communication module, which receives control commands from the mobile terminal.

[0025] Preferably, the photosensor and the human body sensor are integrated on the same circuit board.

[0026] Preferably, after the main control module is set to D2D mode in step S2, the main control module sends the instruction M. DD2D The monitoring and control module receives M. DD2D The command then activates the light sensor and sends a light-off command M. OFF The light source driver circuit receives the lamp-off command M. OFF Then the lights will be turned off.

[0027] Preferably, in step S3, the monitoring and control module reports the night and day status to the main control module every t seconds. The monitoring and control module determines the night and day status based on the real-time acquired photosensitive sensor voltage value V. AS With preset voltage value V A The difference V = (V AS -V A A value greater than 0 indicates nighttime, and a value not greater than 0 indicates daytime.

[0028] Preferably, in step S4, when the main control module receives the reported night / day status and it is night, the main control module sends an instruction M to the light source driving circuit. on100n-50n Send mode status command M to the monitoring and control module DaD2D100 The monitoring and control module received the mode status command M. DaD2D100 Then, the register is marked as being in night mode with the light on at 100% brightness (D). 100 The system reports this status to the main control module every N minutes, where N ≤ n, until n minutes have passed or a new mode status command is detected, at which point the reporting stops; the main control module sends a human body sensor activation command M. GON The sensor driver circuit receives the human body sensor activation command M. GON Then, the human body detection monitoring is activated; n minutes later, the main control module sends the mode status command M to the monitoring and control module. DaD2D50 The monitoring and control module received the mode status command M. DaD2D50 Then, the register is marked as being in night mode with the light on at 50% brightness (D). 50 It reports the status to the main control module in real time until a new mode status command is detected and then stops reporting.

[0029] Preferably, in step S4, when the main control module does not receive a human body sensor trigger signal, the main control module sends M. onD50 The instruction is sent to the light source driver circuit, which then drives the light source to increase its brightness to 50% and sends an M signal to the monitoring and control module. DbD2D50The instruction marks the current state as night (D) in the monitoring and control module register. 50 The monitoring and control module reports the status to the main control module every N minutes until a new mode status command is detected and then the reporting stops.

[0030] Preferably, in step S4, when the main control module receives the human body sensing trigger signal, the main control module sends M. onD100 The command is sent to the light source driver circuit, which then drives the light source to 100% brightness and sends an M signal to the monitoring and control module. DbD2D100 The instruction marks the current state as night (D) in the monitoring and control module register. 100 The monitoring and control module reports the status to the main control module every N minutes until a new mode status command is detected and then the reporting stops.

[0031] Preferably, in step S4, when the main control module determines it is daytime using algorithm T2 or T3, the monitoring and control module sends a status command D. d The main control module receives the status command D. d Then send instruction M OFF The light source driver circuit receives the lamp-off command M. OFF Then, the lights are turned off, and at the same time, the main control module sends the command M. GOFF The sensor drive circuit sends command G. OFF The human body sensor is turned off, and at the same time, the main control module sends command M. DD2D To the monitoring and control module.

[0032] By employing the technical solution described above, the present invention has the following beneficial effects:

[0033] This invention discloses a method for preventing false triggering in D2D mode of a security light. After enabling D2D mode, the monitoring and control module updates the voltage value of the photosensitive sensor in real time through algorithms T1, T2, and T3 in the dark state. The night and day states are determined by the deviation of the voltage value, which can effectively avoid the interference phenomenon of the security light source. Attached Figure Description

[0034] Figure 1 This is a schematic diagram of the hardware system connection of the security light of the present invention;

[0035] Figure 2 This is a flowchart of the control logic of the present invention. Detailed Implementation

[0036] The present invention can be explained in detail through the following embodiments. The purpose of disclosing the present invention is to protect all technical improvements within the scope of the present invention. In the description of the present invention, it should be understood that if there are terms such as "upper", "lower", "front", "rear", "left", "right" indicating the orientation or positional relationship, they are only corresponding to the drawings of this application for the convenience of describing the present invention, and are not intended to indicate or imply that the device or element referred to must have a specific orientation.

[0037] Combined with appendix Figures 1-2 A method for preventing false triggering in D2D mode of a security light. The hardware system of the security light includes a light source, a main control module, a monitoring and control module, a photosensitive sensor, and a human body sensor. The monitoring and control module is connected to the photosensitive sensor and the human body sensor through a sensor driving circuit. The monitoring and control module is connected to the main control module through a corresponding signal connection. The main control module is connected to the light source through a light source driving circuit. The monitoring and control module is equipped with a register. The photosensitive sensor and the human body sensor are integrated on the same circuit board.

[0038] The system includes a main control module that sends commands related to light source control to the light source drive circuit and commands related to sensors to the monitoring and control module, and receives commands related to sensors from the monitoring and control module. The light source drive circuit receives and executes commands from the main control module related to light source control. The monitoring and control module interacts with the main control module, stores and calculates the collected data, and sends a judgment command value based on the calculation results to the main control module. The sensor drive circuit transmits the sensor-collected data and receives and executes commands from the monitoring and control module related to sensors. The photosensor and the human body sensor respectively receive commands from the sensor drive circuit related to sensors, perform switching actions, collect data, and send the collected data to the monitoring and control module.

[0039] The control method includes the following steps:

[0040] S1. Write the voltage value V used to determine the night and day status into the register of the monitoring and control module. A and offset data P D50 P D100 ;

[0041] S2. Set the main control module to D2D mode, and the main control module sends command M. DD2D The monitoring and control module receives M. DD2D The command then activates the light sensor, deactivates the human body sensor, and sends a light-off command M. OFF The light source driver circuit receives the lamp-off command M. OFFThen, the light is turned off. As needed, the main control module is equipped with a Bluetooth / WIFI / 2G / 4G / 5G communication module to receive control commands from the mobile terminal.

[0042] S3, The monitoring and control module received instruction M DD2D After X seconds, the day / night status is detected in real time via a photosensor; and the day / night status is reported to the main control module every t seconds; at this time, the monitoring and control module determines the day / night status based on the photosensor voltage value V. AS With preset voltage value V A The difference V = (V AS -V A A value greater than 0 indicates night, and a value not greater than 0 indicates day; where X ≤ 60, 1 ≤ t ≤ 1800;

[0043] S4. When the main control module receives a report from the monitoring and control module indicating that the night / day status is daytime, it takes no action; when it receives a report indicating that the night / day status is nighttime, it performs three actions:

[0044] Action 1. The main control module sends command M to the light source drive circuit. on100n-50n The light is on, brightness is 100%, and after n minutes the brightness is reduced to 50%, and after n minutes the main control module sends a human body sensor activation command M. GON The sensor driver circuit receives the human body sensor activation command M. GON Then, activate the human body detection monitoring function.

[0045] Action 2. The main control module sends the mode status command M to the monitoring and control module. DaD2D100 The monitoring and control module received the mode status command M. DaD2D100 Then, the register is marked as being in night mode with the light on at 100% brightness (D). 100 The system reports this status to the main control module every N minutes, where N ≤ n, until a new mode status command is detected, at which point the reporting stops. Simultaneously, it uses algorithm T1 to obtain the photosensitive voltage V of the light source plus the current ambient light source when the lights are 100% lit within n minutes. 100datum And write it to the register for later use;

[0046] n minutes later, the main control module sends the mode status command M to the monitoring and control module. DaD2D50 The monitoring and control module received the mode status command M. DaD2D50 Then, the register is marked as being in night mode with the light on at 50% brightness (D). 50It reports this status to the main control module every N minutes until a new mode status command is detected, at which point the reporting stops. Simultaneously, it starts using algorithm T1 to obtain the light sensor voltage V of the light source plus the current ambient light source when 50% of the lights are on within n minutes. 50datum And write it to the register for later use;

[0047] Algorithm T1 is as follows: acquire the photosensor voltage data every F seconds, with each G acquisitions forming a group, and select an intermediate value V from each group. axmed Continuously obtain M1 groups, and select the maximum value V among them. amax As the voltage value of the photosensor; where F > 0, G is an odd number and G ≥ 3, M1 ≥ 2, and ;

[0048] For example: n=3, F=2, G=3, M1=30, then, A maximum value (effective photosensitive voltage value V) can be obtained. amax =V 100datum ); or n=1, F=2, G=1, M1=30, then A maximum value (effective photosensitive voltage value V) can be obtained. amax =V 100datum ); or n=0.5, F=2, G=5, M1=3, then A maximum value (effective photosensitive voltage value V) can be obtained. amax =V 100datum ); or n=0.6, F=2, G=3, M1=6, then, A maximum value (effective photosensitive voltage value V) can be obtained. amax =V 100datum ); or n=0.2, F=4, G=1, M1=3, then, A maximum value (effective photosensitive voltage value V) can be obtained. amax =V 100datum );

[0049] The main control module received D after 2n minutes. 100 and D 50 The status report, as valid data, sends the corresponding command M to the light source driver circuit. onD100 M onD50 ; whereby, if the main control module receives D after 2n minutes 100 Status report, sending command M to the light source driver circuit onD100 The light source driver circuit drives the light source to turn on, with a brightness of 100%; if the main control module receives a status report from D50 after 2n minutes, it sends a command M to the light source driver circuit. onD50 The light source driver circuit drives the light source to turn on, with a brightness of 50%.

[0050] Action 3. The monitoring and control module begins to send human body sensor trigger signals back to the main control module after 2n minutes;

[0051] The main control module, not receiving a human body sensor trigger signal, performs two actions:

[0052] Action 1. The main control module sends M onD50 The instruction is given to the light source driver circuit, which then drives the light source to illuminate at 50% brightness.

[0053] Action 2. The main control module sends M to the monitoring and control module. DbD2D50 The instruction marks the current state as night (D) in the monitoring and control module register. n It reports this status to the main control module every N minutes until a new mode status command is detected, at which point the reporting stops. Simultaneously, it continuously updates the photosensor voltage value V using algorithm T2. 50datum and offset p D50now If there are M2 consecutive offsets p D50now ≥P D50 This indicates that it is daytime, M2 is not less than two consecutive sets, and the monitoring and control module sends a status command D. d The main control module receives the status command D. d Then send the light-off command M OFF The light source driver circuit receives the lamp-off command M. OFF Then, the lights are turned off; simultaneously, the main control module sends command M. GOFF The sensor drive circuit sends command G. OFF The human body sensor is turned off; simultaneously, the main control module sends command M. DD2D To the monitoring and control module;

[0054] Algorithm T2 is: to acquire the voltage value V of the photosensor under the conditions of 50% light source illumination plus ambient light source in real time. 50new If V 50new >V 50datum The value indicates that the ambient light source is dimmer. (V) 50new The value of V 50datum Write to register; if V 50new ≤V 50datum Then calculate the offset: Offset p D50now Where Z is the largest unsigned integer represented by one byte, and Y is the maximum rated voltage for the operation of the photosensor; as needed, Z is 255 and Y is 2.4 to 4.5.

[0055] The main control module receives a human body sensor trigger signal and executes two actions;

[0056] Action 1. The main control module sends M onD100 The instruction is given to the light source driving circuit, which then drives the light source to illuminate at 100% brightness.

[0057] Action 2. Send M to the monitoring and control module DbD2D100 Command: Mark the current state as night in the monitoring and control module register (D). 100 It reports this status to the main control module every N minutes until a new mode status command is detected, at which point the reporting stops. Simultaneously, it continuously updates the photosensor voltage value V using algorithm T3. 100datum and offset p D100now If the offset p D100now ≥P D100 This indicates that it is daytime, and the monitoring and control module sends status command D. d The main control module receives the status command D. d Then send instruction M OFF The light source driver circuit receives the lamp-off command M. OFF Then, the lights are turned off, and at the same time, the main control module sends the command M. GOFF The sensor drive circuit sends command G. OFF The human body sensor is turned off, and at the same time, the main control module sends command M. DD2D To the monitoring and control module;

[0058] Algorithm T3 is: to acquire the voltage value V of the photosensor under the conditions of 100% light source illumination plus ambient light source in real time. 100new If V 100new Greater than V 100datum This indicates that the ambient light source is dimmer, at which point V 100datum Updated to V 100new The value of V 100datum Write to register; if V 100new Less than V 100datum Then calculate the offset: Offset p D100now ;

[0059] S5. Repeat steps S3 to S4.

[0060] Example 1:

[0061] At 17:00 in a certain location, with good lighting, the security light was activated in D2D mode via Bluetooth communication.

[0062] The main control module sends command M DD2D The monitoring and control module sends a light-off command M. OFF The light source driver circuit receives the lamp-off command M. OFFAfter the lights are turned off, the main control module sends a human body sensor activation command M. GON The sensor driver circuit receives the human body sensor activation command M. GON Then, the action of activating the human body sensor is executed;

[0063] The monitoring and control module received instruction M DD2D Two seconds later, the day / night status is detected in real time via a photosensor; and the day / night status is reported to the main control module every 10 seconds; at this time, V = (V AS -V A If the value is not greater than 0, the monitoring and control module determines that it is daytime. When the main control module receives the night and day status reported by the monitoring and control module as daytime, it does not take any action.

[0064] Until 19:40, V = (V AS -V A If the value is greater than 0, the monitoring and control module determines that it is nighttime.

[0065] The main control module sends command M to the light source driver circuit. on100n-50n Lights on, brightness 100%;

[0066] The main control module sends the mode status command M to the monitoring and control module. DaD2D100 The monitoring and control module received the mode status command M. DaD2D100 Then, the register is marked as being in night mode with the light on at 100% brightness (D). 100 It reports this status to the main control module every minute until a new mode status command is detected, at which point the reporting stops. Simultaneously, it acquires the photosensor voltage data every 2 seconds, grouping the data into sets of 3, and selecting the middle value V from each set. axmed 30 sets of data were continuously acquired, and the maximum value among them was selected as the voltage of the photosensor, denoted as V. amax Obtain the voltage value V of the light sensor when the light source is 100% lit within 3 minutes, plus the voltage value of the light sensor under the current ambient light. 100datum And write it to the register for later use;

[0067] Three minutes later, the main control module sent the mode status command M to the monitoring and control module. DaD2D50 The monitoring and control module received the mode status command M. DaD2D50 Then, the register is marked as being in night mode with the light on at 50% brightness (D). 50 It reports this status to the main control module every minute, and simultaneously acquires the photosensor voltage data every 2 seconds, with each group consisting of 3 data points, from which an intermediate value V is selected. axmed 30 sets of data were continuously acquired, and the maximum value among them was selected as the voltage of the photosensor, denoted as V. amaxObtain the voltage value V of the light sensor when the light source is 50% lit within 3 minutes, plus the voltage value of the current ambient light source. 50datum And write it to the register for later use;

[0068] The monitoring and control module begins to send the human body sensor trigger signal back to the main control module after 6 minutes.

[0069] No one was present between 19:40 and 20:00, and the human body sensor was not triggered; the main control module did not receive a human body sensor trigger signal and performed two actions:

[0070] Action 1. The main control module sends M onD50 The instruction is given to the light source driver circuit, which then drives the light source to illuminate at 50% brightness.

[0071] Action 2. The main control module sends M to the monitoring and control module. DbD2D50 The instruction marks the current state as night (D) in the monitoring and control module register. n It reports this status to the main control module every minute, and simultaneously acquires the voltage value V of the photosensitive sensor under the condition of 50% light source plus ambient light source. 50new During V 50new Always greater than V 50datum This indicates that the ambient light source is dimmer, so V 50datum Updated to V 50new and as V 50datum Write to register;

[0072] From 20:00 to 22:30, there was activity under the security light. During this period, the human body sensor was triggered. The main control module received the human body sensor trigger signal and executed two actions.

[0073] Action 1. The main control module sends M onD100 The instruction is given to the light source driving circuit, which then drives the light source to illuminate at 100% brightness.

[0074] Action 2. Send M to the monitoring and control module DbD2D100 Command: Mark the current state as night in the monitoring and control module register (D). 100 It reports this status to the main control module every minute, and simultaneously acquires the voltage value V of the photosensor under the conditions of 100% light source plus ambient light source. 100new During V 100new Greater than V 100datum This indicates that the ambient light source is dimmer, at which point V 100datum Updated to V 100new The value of V 100datum Write to register;

[0075] At 22:30, personnel evacuated, but the human body sensor was not triggered; the main control module did not receive a trigger signal from the human body sensor and performed two actions:

[0076] Action 1. The main control module sends M onD50 The instruction is given to the light source driver circuit, which then drives the light source to illuminate at 50% brightness.

[0077] Action 2. The main control module sends M to the monitoring and control module. DbD2D50 The instruction marks the current state as night (D) in the monitoring and control module register. n It reports this status to the main control module every 3 minutes, and simultaneously acquires the voltage value V of the photosensitive sensor under the condition of 50% light source plus ambient light source. 50new During V 50new Always greater than V 50datum This indicates that the ambient light source is dimmer, so V 50datum Updated to V 50new and as V 50datum Write to register;

[0078] Until 05:40 the next day, V 50new Less than V 50datum Then calculate the offset: Offset p D50now Continuously update the photosensitive sensor voltage value V 50datum and offset p D50now ;

[0079] 6 consecutive sets of offsets p D50now ≥P D50 This indicates that it is daytime, and the monitoring and control module sends status command D. d The main control module receives the status command D. d Then send the light-off command M OFF The light source driver circuit receives the lamp-off command M. OFF Then, the lights are turned off; simultaneously, the main control module sends command M. GOFF The sensor drive circuit sends command G. OFF The human body sensor is turned off; simultaneously, the main control module sends command M. DD2D To the monitoring and control module.

[0080] Example 2:

[0081] At 18:00 in a certain location, the lighting is good, and the security lights are turned on in D2D mode;

[0082] The main control module sends command M DD2D The monitoring and control module sends a light-off command M. OFFThe light source driver circuit receives the lamp-off command M. OFF After the lights are turned off, the main control module sends a human body sensor activation command M. GON The sensor driver circuit receives the human body sensor activation command M. GON Then, the action of activating the human body sensor is executed;

[0083] The monitoring and control module received instruction M DD2D Two seconds later, the day / night status is detected in real time via a photosensor; and the day / night status is reported to the main control module every 5 seconds; at this time, V = (V AS -V A If the value is not greater than 0, the monitoring and control module determines that it is daytime. When the main control module receives the night and day status reported by the monitoring and control module as daytime, it does not take any action.

[0084] Until 19:50, V = (V AS -V A If the value is greater than 0, the monitoring and control module determines that it is nighttime.

[0085] The main control module sends command M to the light source driver circuit. on100n-50n Lights on, brightness 100%;

[0086] The main control module sends the mode status command M to the monitoring and control module. DaD2D100 The monitoring and control module received the mode status command M. DaD2D100 Then, the register is marked as being in night mode with the light on at 100% brightness (D). 100 It reports this status to the main control module every 3 minutes until a new mode status command is detected, at which point the reporting stops. Simultaneously, it acquires the photosensor voltage data every 2 seconds, grouping these data into sets of 3, and selecting the median value V from each set. axmed 30 sets of data were continuously acquired, and the maximum value among them was selected as the voltage of the photosensor, denoted as V. amax Obtain the voltage value V of the light sensor when the light source is 100% lit within 3 minutes, plus the voltage value of the light sensor under the current ambient light. 100datum And write it to the register for later use;

[0087] Three minutes later, the main control module sent the mode status command M to the monitoring and control module. DaD2D50 The monitoring and control module received the mode status command M. DaD2D50 Then, the register is marked as being in night mode with the light on at 50% brightness (D). 50 It reports this status to the main control module every 3 minutes, and simultaneously acquires the photosensor voltage data every 2 seconds, with each group consisting of 3 data points, from which an intermediate value V is selected. axmed30 sets of data were continuously acquired, and the maximum value among them was selected as the voltage of the photosensor, denoted as V. amax Obtain the voltage value V of the light sensor when the light source is 50% lit within 3 minutes, plus the voltage value of the current ambient light source. 50datum And write it to the register for later use;

[0088] The monitoring and control module begins to send the human body sensor trigger signal back to the main control module after 6 minutes.

[0089] No one was present between 19:50 and 05:00 the next day, and the human body sensor was not triggered; the main control module did not receive a trigger signal from the human body sensor and performed two actions:

[0090] Action 1. The main control module sends M onD50 The instruction is given to the light source driver circuit, which then drives the light source to illuminate at 50% brightness.

[0091] Action 2. The main control module sends M to the monitoring and control module. DbD2D50 The instruction marks the current state as night (D) in the monitoring and control module register. n It reports this status to the main control module every 3 minutes, and simultaneously acquires the voltage value V of the photosensitive sensor under the condition of 50% light source plus ambient light source. 50new During V 50new Always greater than V 50datum This indicates that the ambient light source is dimmer, so V 50datum Updated to V 50new and as V 50datum Write to register;

[0092] From 05:00 to 06:00 on the second day, there was human activity under the security light. During this period, the human body sensor was triggered. The main control module received the human body sensor trigger signal and executed two actions.

[0093] Action 1. The main control module sends M onD100 The instruction is given to the light source driving circuit, which then drives the light source to illuminate at 100% brightness.

[0094] Action 2. Send M to the monitoring and control module DbD2D100 Command: Mark the current state as night in the monitoring and control module register (D). 100 It reports this status to the main control module every 3 minutes, and simultaneously acquires the voltage value V of the photosensitive sensor under the conditions of 100% light source plus ambient light source. 100new ;

[0095] At 5:35 V 100new Less than V 100datum Then calculate the offset: Offset p D100nowContinuously update the photosensitive sensor voltage value V 100datum and offset p D100now ; 6 consecutive sets of offsets p D100now ≥P D100 It is then assumed that it is daytime, and the monitoring and control module sends status command D. d The main control module receives the status command D. d Then send the light-off command M OFF The light source driver circuit receives the lamp-off command M. OFF Then, the lights are turned off; simultaneously, the main control module sends command M. GOFF The sensor drive circuit sends command G. OFF The human body sensor is turned off; simultaneously, the main control module sends command M. DD2D To the monitoring and control module.

[0096] The parts of this invention not described in detail are prior art. It will be apparent to those skilled in the art that this invention is not limited to the details of the above exemplary embodiments, and that the invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be regarded as exemplary and non-limiting in all respects, and are intended to encompass all changes falling within the meaning and scope of equivalents within this invention.

Claims

1. A method for preventing false triggering in D2D mode of a security light, wherein the hardware system of the security light includes a light source, a main control module, a monitoring and control module, a photosensor, and a human body sensor; the monitoring and control module is connected to the photosensor and the human body sensor respectively through a sensor driving circuit; the monitoring and control module is connected to the main control module via corresponding signals; the main control module is connected to the light source respectively through a light source driving circuit; and the monitoring and control module is equipped with a register; characterized in that: The control method includes the following steps: S1. Write the voltage value V used to determine the night and day status into the register of the monitoring and control module. A and offset data P D50 P D100 ; S2, System initialization; Light source off, photosensor on, human body sensor off; S3, X seconds later, the photosensitive sensor detects the day and night status in real time; the monitoring and control module reports the day and night status to the main control module once every t seconds; where X≤60, 1≤t≤1800; S4. When the main control module receives a report from the monitoring and control module indicating that the night / day status is daytime, it takes no action; when it receives a report indicating that the night / day status is nighttime, it performs three actions: Action 1. Light source turned on, brightness 100% for n minutes, then brightness 50% for n minutes, 1≤n≤10, human body sensor turned on; Action 2. Obtain the voltage value V of the light source plus the current ambient light source when the lights are 100% lit within n minutes using algorithm T1. amax As V 100datum And write it to the register for later use; and the light sensor voltage V of the light source plus the current ambient light source when 50% of the lights are on within n minutes. amax As V 50datum And write it to the register for later use; Algorithm T1 is as follows: acquire the photosensor voltage data every F seconds, with each G acquisitions forming a group, and select an intermediate value V from each group. axmed Continuously obtain M1 groups, and select the maximum value V among them. amax As the voltage value of the photosensor; where F > 0, G is an odd number and G ≥ 3, M1 ≥ 2, and ; Action 3. The monitoring and control module begins to send human body sensor trigger signals back to the main control module after 2n minutes; When the main control module does not receive a human body sensor trigger signal: The photosensitive voltage value V is continuously updated using algorithm T2. 50datum and offset p D50now If there are M2 consecutive offsets p D50now ≥P D50 This indicates that it is daytime, M2≥2, the lights are off, and the human body sensor is turned off; Algorithm T2 is: to acquire the voltage value V of the photosensor under the conditions of 50% light source illumination plus ambient light source in real time. 50new If V 50new >V 50datum The value indicates that the ambient light source is dimmer. (V) 50new The value of V 50datum Write to register; if V 50new ≤V 50datum Then calculate the offset: Offset p D50now Z is the largest unsigned integer represented by one byte, and Y is the maximum rated voltage for the operation of the photosensor. When the main control module receives a human body sensor trigger signal: The light is 100% bright; the photosensitive sensor voltage value V is continuously updated via algorithm T3. 100datum and offset p D100now If there are M2 consecutive offsets p D100now ≥P D100 It is then assumed that it is daytime, so the lights are turned off and the human body sensor is deactivated. Algorithm T3 is: to acquire the voltage value V of the photosensor under the conditions of 100% light source illumination plus ambient light source in real time. 100new If V 100new Greater than V 100datum This indicates that the ambient light source is dimmer, at which point V 100datum Updated to V 100new The value of V 100datum Write to register; if V 100new Less than V 100datum Then calculate the offset: Offset p D100now ; S5. Repeat steps S2 to S4.

2. The method for preventing false triggering in D2D mode of security lights as described in claim 1, characterized in that: The main control module is equipped with a Bluetooth / WIFI / 2G / 4G / 5G communication module, which receives control commands from the mobile terminal.

3. The method for preventing false triggering in D2D mode of security lights as described in claim 1, characterized in that: The photosensor and the human body sensor are integrated on the same circuit board.

4. The method for preventing false triggering in D2D mode of security lights as described in claim 1, characterized in that: After the main control module is set to D2D mode in step S2, the main control module sends command M. DD2D The monitoring and control module sends a light-off command M. OFF The light source driver circuit receives the lamp-off command M. OFF Then the lights will be turned off.

5. The method for preventing false triggering in D2D mode of security lights as described in claim 1, characterized in that: In step S3, the monitoring and control module reports the night and day status to the main control module every t seconds. The monitoring and control module determines the night and day status based on the real-time acquired photosensitive sensor voltage value V. AS With preset voltage value V A The difference V = (V AS -V A A value greater than 0 indicates nighttime, and a value not greater than 0 indicates daytime.

6. The method for preventing false triggering in D2D mode of security lights as described in claim 1, characterized in that: In step S4, when the main control module receives the reported night / day status and it is night, the main control module sends instruction M to the light source drive circuit. on100n-50n Send mode status command M to the monitoring and control module DaD2D100 The monitoring and control module received the mode status command M. DaD2D100 Then, the register is marked as being in night mode with the light on at 100% brightness (D). 100 And report the status to the main control module every N minutes, N≤n, until the reporting stops after n minutes or when a new mode status command is detected; The main control module sends the human body sensor activation command M GON The sensor driver circuit receives the human body sensor activation command M. GON Then, activate the human body detection monitoring function. n minutes later, the main control module sends the mode status command M to the monitoring and control module. DaD2D50 The monitoring and control module received the mode status command M. DaD2D50 Then, the register is marked as being in night mode with the light on at 50% brightness (D). 50 It reports the status to the main control module in real time until a new mode status command is detected and then stops reporting.

7. The method for preventing false triggering in D2D mode of security lights as described in claim 1, characterized in that: In step S4, if the main control module does not receive a human body sensor trigger signal, the main control module sends M. onD50 The instruction is sent to the light source driver circuit, which then drives the light source to increase its brightness to 50% and sends an M signal to the monitoring and control module. DbD2D50 The instruction marks the current state as night (D) in the monitoring and control module register. 50 The monitoring and control module reports the status to the main control module every N minutes until a new mode status command is detected and then the reporting stops.

8. The method for preventing false triggering of security lights in D2D mode as described in claim 1, characterized in that: In step S4, when the main control module receives the human body sensing trigger signal, the main control module sends M. onD100 The command is sent to the light source driver circuit, which then drives the light source to 100% brightness and sends an M signal to the monitoring and control module. DbD2D100 The instruction marks the current state as night (D) in the monitoring and control module register. 100 The monitoring and control module reports the status to the main control module every N minutes until a new mode status command is detected and then the reporting stops.

9. The method for preventing false triggering in D2D mode of a security light as described in claim 1, characterized in that: In step S4, when the main control module determines it is daytime using algorithm T2 or T3, the monitoring and control module sends a status command D. d The main control module receives the status command D. d Then send instruction M OFF The light source driver circuit receives the lamp-off command M. OFF Then, the lights are turned off, and at the same time, the main control module sends the command M. DD2D To the monitoring and control module.

Citation Information

Patent Citations

  • All-weather solar azimuth tracking method and device

    CN105259930A

  • A method and a system for adjusting the output wavelength of a laser

    CN109193339A