Embedded intelligent switch control system based on dual-mode detection

By combining dual-mode detection with infrared and sound modules, a driving logic program was designed to achieve efficient, low-false-triggering, and low-energy-consumption operation of the intelligent switch control system in complex environments, thereby improving the system's intelligence and user experience.

CN120122535BActive Publication Date: 2026-01-16联想长风科技(北京)有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510269882.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2026-01-16
Estimated Expiration
2045-03-07

AI Technical Summary

Technical Problem

Traditional intelligent switch control systems suffer from high false triggering rates, high energy consumption, and poor scene adaptability in complex environments. A single triggering method leads to response delays or malfunctions.

Method used

A dual-mode control channel is constructed using infrared and sound modules. A driving logic program is designed, and the main control chip, together with infrared and sound sensors, performs time-lapse detection and signal determination to generate switch switching commands, control the relay to switch the switch state, and reduce system energy consumption through low-power optimization strategies.

Benefits of technology

It improves the system's intelligence and response efficiency, reduces false triggering rate and energy consumption in complex environments, enhances scenario adaptability, and provides a more reliable user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120122535B_ABST
    Figure CN120122535B_ABST
Patent Text Reader

Abstract

The application provides an embedded intelligent switch control system based on dual-mode detection, and relates to the technical field of intelligent control, comprising: a driving logic program establishment module, which is responsible for configuring a dual-mode control channel of infrared and sound cooperation; a main control sensing establishment module, which is responsible for writing driving logic into a main control chip and connecting infrared and sound sensors; a signal determination module, which is responsible for driving sensor staggered detection and determining signals to generate switch instructions; and a switch state switching module, which is responsible for controlling a relay to switch a switch state according to the instructions. The application solves the technical problems of high false triggering rate, high energy consumption and poor scene adaptability of the conventional switch control system in the prior art due to a single triggering mode, achieves the technical effects of judging time zones and flexible calibration mechanism through infrared and sound dual-mode detection combination, reducing the false triggering rate and energy consumption in complex environments, and improving the scene adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent control, and particularly relates to an embedded intelligent switch control system based on dual-mode detection. BACKGROUND

[0002] In the field of smart home, as the key device connecting users and home appliances, the performance and intelligent degree of intelligent switch directly relate to the convenience experience of users and the overall efficiency of home system. Traditional intelligent switch control systems mostly rely on single triggering mode, such as infrared remote control or voice recognition. These modes have exposed many limitations in actual application. For example, in complex environment (such as high noise or strong light interference), single detection mode is difficult to accurately identify user operation, resulting in system response delay or misoperation. In addition, the energy consumption management efficiency of traditional system is low, and long-time operation will cause the service life of the device to be shortened, increasing the maintenance cost. SUMMARY

[0003] The present application provides an embedded intelligent switch control system based on dual-mode detection, aiming at solving the technical problems of high mis-triggering rate, high energy consumption and poor scene adaptability of traditional switch control system due to single triggering mode in complex environment.

[0004] The embedded intelligent switch control system based on dual-mode detection disclosed in the present application comprises: a driving logic program establishment module configured to configure a dual-mode control channel and determine a driving logic program based on the dual-mode control channel, wherein the dual-mode control channel is composed by cooperating an infrared module and a sound module; a main control sensor establishment module configured to write the driving logic program based on the dual-mode control channel into a main control chip and establish a connection between the main control chip and front-end sensors, wherein the front-end sensors are infrared sensors and sound sensors; a signal judgment module configured to drive the front-end sensors to perform staggered detection and signal judgment according to the driving logic program of the main control chip, and generate a switch switching instruction; and a switch state switching module configured to control a relay to switch a switch state according to the switch switching instruction.

[0005] One or more technical solutions provided in the present application have at least the following beneficial effects:

[0006] The dual-mode control channel is constructed by integrating the infrared module and the sound module, and a driving logic program is designed according to the dual-mode control channel, the program is written into the main control chip, meanwhile, the connection with the infrared sensor and the sound sensor is established, the main control chip commands the sensor to perform the staggered detection and signal determination according to the driving logic, and then generates the switch switching instructions, which are used to control the relay, thereby realizing the switching of the switch state, and improving the intelligence and response efficiency of the system. Overall, through the infrared and sound dual-mode detection, the time zone is determined and the flexible calibration mechanism is combined, the false triggering rate and energy consumption in the complex environment are reduced, and the scene adaptability is improved.

[0007] The above description is only a summary of the technical solutions of the present application. In order to enable the technical means of the present application to be more clearly understood, and to be implemented according to the content of the specification, and in order to enable the above and other purposes, characteristics and advantages of the present application to be more apparent and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS

[0008] Figure 1 The present application provides an embedded intelligent switch control system structure diagram based on dual-mode detection.

[0009] Figure 2 The present application provides an embedded intelligent switch control system structure diagram based on dual-mode detection.

[0010] The driving logic program establishment module 10, the main control sensor establishment module 20, the signal determination module 30, and the switch state switching module 40. DETAILED DESCRIPTION

[0011] The present application provides an embedded intelligent switch control system structure diagram based on dual-mode detection.

[0012] After introducing the basic principle of the present application, the various non-limiting embodiments of the present application will be specifically introduced in combination with the drawings of the specification.

[0013] As shown in Figure 1 The present application provides an embedded intelligent switch control system structure diagram based on dual-mode detection.

[0014] The driving logic program establishment module 10 is configured to configure the dual-mode control channel and determine the driving logic program based on the dual-mode control channel, wherein the dual-mode control channel is composed by cooperating the infrared module and the sound module.

[0015] Specifically, the driving logic program establishing module 10 is used to construct a control channel for infrared and sound dual-mode cooperative detection, and through the organic combination of hardware configuration and software logic, the establishment of an efficient and reliable dual-mode detection mechanism is completed.

[0016] For example, the module first configures an HC-SR501 pyroelectric sensor as an infrared detection unit to monitor human infrared radiation signals in real time, and integrates an electret microphone and an LM393 comparator to form a sound detection unit for collecting and analyzing environmental sound wave characteristics. At the software level, the module establishes the core logic of infrared signal priority triggering, that is, when an effective infrared signal is detected, a 2-second timing window is immediately started, and the sound detection function is activated within the window period, and an effective sound signal (such as two handclap sounds with an interval of less than 500 ms) detected for more than 1 second is determined as an effective trigger. In addition, the module also has a low-power optimization strategy, which makes the main control chip enter a deep sleep state when there is no effective infrared signal, and only the normally open detection function of the infrared module is retained to reduce the overall power consumption of the system. Through the cooperative work of the above hardware configuration and software logic, the driving logic program establishing module successfully constructs an efficient and reliable dual-mode detection control channel, which provides a reliable logical foundation for subsequent signal judgment and switch control.

[0017] The main control sensing establishing module 20 is used to write the driving logic program based on the dual-mode control channel into the main control chip and establish the connection between the main control chip and the front-end sensor, wherein the front-end sensor is an infrared sensor and a sound sensor.

[0018] The connection between the main control chip of the main control sensing establishing module and the front-end monitoring device includes the connection between the infrared sensor and the infrared module, and the connection between the sound sensor and the sound module.

[0019] It should be understood that the main control sensing establishing module 20 of the present application is used to realize the hardware deployment and connection configuration of the dual-mode control channel, and through writing the driving logic program into the main control chip and establishing the connection between the main control chip and the front-end sensor, the hardware architecture of the entire detection system is built.

[0020] Specifically, the module first programs the driving logic of the dual-mode control channel to the master control chip (using STM32F030 Cortex-M0 core, meeting the low power consumption and real-time requirements), and then establishes the physical connection between the master control chip and the front-end sensor. Among them, the front-end sensor includes an infrared sensor (such as HC-SR501 pyroelectric sensor) and a sound sensor (such as a electret microphone + LM393 comparator). In terms of connection configuration, the module realizes the docking of the infrared sensor and the infrared module through the GPIO pin, connects the output signal of HC-SR501 to the PA0 pin of the master control chip, which is used to trigger the interrupt wake-up; at the same time, the connection between the sound sensor and the sound module is established through the analog input channel, and the output signal of the LM393 comparator is connected to the PA1 pin of the master control chip, which is used for sound feature detection. In addition, the module also configures the necessary power management circuit to ensure that each sensor works stably in low power consumption mode. Through the above hardware deployment and connection configuration, the master control sensor establishment module successfully realizes the hardware architecture building of the dual-mode detection system, and provides a reliable hardware foundation for subsequent signal acquisition and processing.

[0021] The signal determination module 30 is configured to drive the front-end sensor to perform the time-misaligned detection and signal determination according to the driving logic program, and generate a switch switching instruction.

[0022] Further, when driving the front-end sensor to perform the time-misaligned detection and signal determination, the signal determination module 30 is further configured to perform the following steps:

[0023] P31: Acquire an infrared signal, wherein the infrared signal is detected by the infrared sensor; P32: If the infrared signal is a user detection signal, start a timing window, wherein the timing window has a first time interval; P33: Drive the sound sensor to perform sound source perception within the timing window and receive a sound signal; P34: Determine whether to perform switch switching control according to the sound signal.

[0024] Optionally, the signal determination module 30 of the present application is configured to realize the time sequence control and logic determination of the dual-mode detection signal. The master control chip executes the driving logic program to drive the front-end sensor to perform the time-misaligned detection and signal determination, and finally generates a switch switching instruction. Specifically, the module is based on the STM32F030 master control chip, and according to the preset driving logic program, the following steps are sequentially executed:

[0025] Firstly, the module reads the output signal of the infrared sensor (HC-SR501) in real time through the PA0 pin, and judges whether there is valid human body infrared radiation. The HC-SR501 sensor focuses the infrared radiation emitted by the human body through the Fresnel lens and converts it into an electrical signal output. When a high-level signal is detected, the module determines that it is a user detection signal, indicating that there may be human activity. Then, the module filters the infrared signal to exclude false triggers caused by environmental temperature changes or small animal activity, ensuring the accuracy of the detection.

[0026] Next, the acquired infrared signal is judged. If the signal is identified as a user detection signal, it means that a human body has entered the detection range, and a timing window with a specific time interval (such as 2 seconds) will be immediately started at this time. The setting of this timing window is based on the statistical analysis of human motion response time, ensuring that the system can capture the user's operation intention within a reasonable time range. Further, the module records the current system time and initializes the timer when starting the timing window, providing a time reference for subsequent sound detection. The start of the timing window marks the transition of the system from the infrared detection phase to the sound detection phase.

[0027] Within the timing window, the module activates the sound sensor (such as a electret microphone + LM393 comparator) through the PA1 pin to collect environmental sound wave signals, i.e. sound signals. The electret microphone converts sound waves into electrical signals, and the LM393 comparator amplifies and shapes the signals, outputting high and low level signals. The module analyzes the characteristics of the sound signal in real time, including sound duration, pulse interval, etc. Further, the module uses digital filtering algorithms to process the sound signal, filtering out environmental noise (such as wind noise, electrical noise, etc.), ensuring the accuracy of the detection. Next, the module compares the processed sound signal with the preset trigger condition (such as two handclaps with a pulse interval less than 500ms) to determine whether it meets the standard of valid sound signal.

[0028] Further, the module makes logical judgments based on the characteristics of the sound signal. If a valid sound signal lasting more than 1 second (such as two handclaps with a pulse interval less than 500ms) is detected, a switch switching instruction is generated to control the execution of the corresponding switch action. Before executing the switch switching instruction, the module will verify the state of the infrared signal again to ensure the consistency of the dual-mode detection and avoid false triggering. If no valid sound signal is detected, it is determined as invalid triggering, and the system returns to standby state, and the main control chip enters low power consumption mode, waiting for the next infrared signal trigger.

[0029] Through the timing control and logical determination of the above steps, the signal determination module 30 successfully realizes the cooperative detection and accurate determination of the infrared and sound dual-mode signals, and provides a reliable decision basis for the switch control. This staggered detection mechanism effectively avoids the limitations of single detection mode, and significantly improves the anti-interference ability and detection accuracy of the system.

[0030] Further, the signal determination module 30, when executing the switch switching control according to the sound signal, is further configured to execute the following steps:

[0031] P34-1: Set a second time interval, wherein the second time interval is less than the first time interval; P34-2: Identify the effective frequency band of the sound signal, determine whether the second time interval is met, and generate the switch switching instruction if it is met.

[0032] Specifically, the signal determination module 30 of the present application further refines the determination logic of the sound signal when executing the switch switching control according to the sound signal, and ensures the accuracy and reliability of the switch switching instruction by setting a second time interval and identifying the effective frequency band.

[0033] First, the module sets a shorter second time interval, for example 500ms, in the timing window (first time interval). The setting of this time interval is based on the analysis of the user's operation habit, which ensures that the system can quickly respond to the effective sound signal, while avoiding the misoperation caused by environmental noise or false triggering. Moreover, the start time of the second time interval is synchronized with the start time of the timing window, and the module initializes the timer of the second time interval when starting the timing window, providing a time reference for subsequent sound signal determination.

[0034] Then, the module analyzes the frequency band of the sound signal and identifies the effective frequency band. Specifically, the frequency spectrum of the sound signal can be analyzed by using the Fast Fourier Transform (FFT) algorithm to extract its frequency characteristics. The frequency of the sound signal is compared with the preset effective frequency band (for example, 1kHz to 4kHz) to determine whether it belongs to the effective frequency band. If the frequency of the sound signal falls within the effective frequency band, the duration of the sound signal is analyzed to determine whether the duration of the sound signal meets the second time interval (i.e. whether it is completed within 500ms). If the duration of the sound signal is within the second time interval and the frequency characteristics meet the preset conditions, the module determines that it is an effective trigger signal and generates a switch switching instruction. If the duration of the sound signal exceeds the second time interval or the frequency characteristics do not meet the preset conditions, the module determines that it is an invalid trigger signal, and the system returns to standby state.

[0035] Through the above steps, the signal determination module 30 further optimizes the determination logic of the sound signal, and by setting the second time interval and identifying the effective frequency band, the detection accuracy and anti-interference ability of the system can be significantly improved. This double determination mechanism ensures the accurate generation of the switch switching instruction and avoids false operations caused by environmental noise or false triggering, thereby improving the reliability and user experience of the system.

[0036] Further, when the signal determination module 30 identifies the effective frequency band of the sound signal and determines whether the second time interval is met, if the infrared signal is not a user detection signal, the timing window is not started for sound source perception.

[0037] In a possible embodiment of the present application, the signal determination module 30 of the present application further introduces a cooperative determination mechanism of the infrared signal when identifying the effective frequency band of the sound signal and determining whether the second time interval is met, to ensure that the detection logic of the system is more rigorous and reliable.

[0038] If the module detects that the infrared signal becomes low during the sound signal detection process, indicating that there is no effective human infrared radiation in the current environment, the sound signal detection process can be terminated immediately, and the timing window is not started for sound source perception. The system state is reset to standby mode, and the master chip enters low-power state, waiting for the next infrared signal trigger. This design is based on the cooperative logic of dual-mode detection, which ensures that the system will only generate a switch switching instruction when both the infrared signal and the sound signal meet the conditions. This realizes the double cooperative determination of the infrared signal and the sound signal, effectively avoiding false operations caused by false triggering of a single signal. This design not only improves the detection accuracy of the system, but also enhances the anti-interference ability of the system, ensuring that the generation of the switch switching instruction is more reliable and accurate.

[0039] The switch state switching module 40 is configured to control the relay to switch the state according to the switch switching instruction.

[0040] It should be understood that the switch state switching module 40 of the present application is configured to control the relay to perform the switching operation of the switch state according to the switch switching instruction generated by the signal determination module 30, so as to realize the opening or closing of the electrical equipment. The module cooperates with the relay through the master chip to ensure the accuracy and reliability of the switch switching.

[0041] First, the module receives the switch switching instruction from the signal determination module 30 through the GPIO pin of the master chip (such as STM32F030). The instruction is generated based on the infrared and sound dual-mode detection logic, ensuring that it will only be triggered when an effective user operation is detected.

[0042] Then, after receiving a valid switch command, the module outputs a high-level signal through the GPIO pin (such as PA2) of the main control chip to drive the coil of the relay (such as SRD-05VDC-SL-C) to be energized. After the relay is energized, its internal contacts are switched from the normally open state to the normally closed state, or from the normally closed state to the normally open state, thereby realizing the opening or closing of the electrical appliance. When driving the relay, the module uses delay control technology to ensure stable switching of the relay contacts and avoid contact jitter caused by transient current fluctuations.

[0043] After the relay completes the switch, the module reads the state feedback signal of the relay through the GPIO pin of the main control chip to confirm whether the switch is successful. If the switch is successful, the module stores the current switch state information in the register of the main control chip and updates the system state. If the switch fails, the module will reattempt to drive the relay and generate a fault alarm signal after multiple attempts to fail, prompting the user to check the system state. After completing the switch operation, the module switches the main control chip to a low-power mode and waits for the next switch command.

[0044] Through the above steps, the switch state switching module 40 realizes efficient control of the relay and ensures accurate switching of the switch state. This design not only improves the response speed and reliability of the system, but also provides users with a convenient operation experience.

[0045] Further, as shown in Figure 2 The system further includes a dual-mode driving management module 50 for performing the following steps:

[0046] P51: Set a low-energy control mode, wherein the low-energy control mode is a continuous operation state of the infrared module and a sleep state of the main control chip; P52: According to the infrared module, control the infrared sensor to perform continuous sensing detection and receive an infrared signal; P53: Interpret the infrared signal and perform dual-mode driving management according to the signal state.

[0047] Optionally, the dual-mode driving management module 50 of the present application is used to optimize the energy management and dual-mode detection logic of the system. By setting a low-energy control mode, the working states of the infrared module and the main control chip are coordinated to ensure that the system can still efficiently perform infrared and sound dual-mode detection under low-power consumption conditions.

[0048] Firstly, the module sets a low-power control mode through the power management unit (PMU) of the master chip (such as STM32F030). In this mode, the infrared module (such as HC-SR501) remains in a continuous working state to detect the infrared signal in the environment in real time, while the master chip enters a sleep state and only wakes up when a valid infrared signal is detected. This design can effectively reduce the overall power consumption of the system and prolong the service life of the device. Moreover, the module configures the low-power timer (LPTIM) of the master chip to ensure that it can still wake up at regular intervals to check the working state of the infrared module in the sleep state.

[0049] Then, in the low-power control mode, the module controls the infrared sensor to perform continuous sensing detection through the GPIO pin (such as PA0) of the master chip. The infrared sensor detects the infrared radiation in the environment in real time and outputs the detection results in the form of high and low level signals. The module reads the infrared signal through the GPIO pin and transmits it to the master chip for interpretation. At the same time, during the detection process of the infrared sensor, noise filtering technology is used to eliminate interference signals in the environment and ensure the accuracy of the detection results.

[0050] Further, the received infrared signal is interpreted to determine whether it is a valid user detection signal. If the infrared signal is high, it indicates that valid human infrared radiation has been detected, and the module immediately wakes up the master chip, starts a timing window (first time interval), and enters the sound signal detection stage. If the infrared signal is low, it indicates that no valid user has been detected, and the module continues to maintain the low-power control mode and the master chip continues to sleep. At the same time, the module uses signal state machine logic when interpreting the infrared signal to ensure that the determination of the infrared signal is more accurate and to avoid false triggering caused by environmental interference.

[0051] Through the above steps, the dual-mode driving management module 50 realizes efficient operation of the system under low-power conditions by coordinating the working state of the infrared module and the master chip, ensuring the accuracy and reliability of the dual-mode detection logic. This design not only reduces the power consumption of the system, but also improves the response speed and user experience of the system.

[0052] Further, the dual-mode driving management module 50, when executing dual-mode driving management according to the signal state, is further configured to execute the following steps:

[0053] P53-1: If the signal state is not a user detection signal, the master chip does not respond; P53-2: If the signal state is a user detection signal, wake up the master chip and execute dual-mode driving management.

[0054] In a possible embodiment of the present application, the dual-mode driving management module 50 of the present application further refines the judgment logic of the infrared signal when performing dual-mode driving management according to the signal state, ensuring that the system can quickly respond when detecting valid user operation, and maintaining a low power consumption state when there is no user operation.

[0055] Specifically, when the module interprets the infrared signal, if the signal state is judged to be a non-user detection signal (i.e., the infrared signal is low), it indicates that there is no valid human infrared radiation in the current environment. At this time, the module does not perform any operation, the main control chip continues to maintain the sleep state, and the infrared module continues to perform continuous sensing detection. This design effectively avoids system wake-up caused by environmental interference or false triggering, further reducing the power consumption of the system.

[0056] When the module interprets the infrared signal, if the signal state is judged to be a user detection signal (i.e., the infrared signal is high), it indicates that valid human infrared radiation is detected. At this time, the module wakes up the main control chip immediately, starts the timing window (first time interval) and enters the sound signal detection stage. In the sound signal detection process, the module collects the environmental sound signal through the microphone and performs frequency domain analysis and energy detection to determine whether there is an effective sound source. If the sound signal meets the preset condition (such as energy exceeding the threshold and frequency within the effective range), the module generates a switch switching instruction to control the relay to perform switch state switching. If the sound signal does not meet the condition, the module resets the system state to standby mode, and the main control chip reenters the sleep state.

[0057] Through the above steps, accurate judgment and response to the infrared signal are realized, ensuring that the system can quickly wake up and perform dual-mode detection logic when detecting valid user operation, and maintaining a low power consumption state when there is no user operation. This design not only improves the detection efficiency and accuracy of the system, but also further optimizes the energy management of the system, providing users with a more intelligent and energy-saving use experience.

[0058] Further, the dual-mode driving management module 50, when waking up the main control chip to perform dual-mode driving management, is further used to perform the following steps:

[0059] P53-21: introducing a judgment time zone, wherein the judgment time zone is greater than the first time interval; P53-22: waking up the main control chip, and according to the judgment time zone, the main control chip executes the driving logic program to perform dual-mode driving response; P53-23: if there is no response, the main control chip enters the sleep state.

[0060] It should be understood that the dual-mode drive management module 50 of the present application further introduces the concept of a judgment time zone when waking up the master chip and performing dual-mode drive management, in order to optimize the response logic and energy management of the system. The judgment time zone is a time window with a length greater than the first time interval, which is used to ensure that the system has enough time to complete the dual-mode detection and response operation after the master chip is woken up.

[0061] Specifically, after waking up the master chip, the module first sets a judgment time zone. The length of the judgment time zone is greater than the first time interval (i.e. the timing window started after infrared signal detection), in order to ensure that the master chip has enough time to complete the dual-mode detection and response operation. The specific length of the judgment time zone can be configured according to the actual application scenario, for example, set to 5 seconds or 10 seconds. The introduction of the judgment time zone can effectively avoid misjudgment or missed judgment due to insufficient detection time, and improve the detection accuracy and reliability of the system.

[0062] Within the judgment time zone, the module wakes up the master chip and executes the drive logic program to perform dual-mode drive response. Specifically, the master chip first starts sound signal detection, collects environmental sound signals through the microphone, and performs frequency domain analysis and energy detection on them to determine whether there is an effective sound source. If the sound signal meets the preset conditions (such as energy exceeding the threshold and frequency within the effective range), the module generates a switch switching instruction to control the relay to perform switch state switching. If the sound signal does not meet the conditions, the module continues to wait until the end of the judgment time zone. Moreover, the module uses dynamic threshold adjustment technology within the judgment time zone to adjust the detection threshold of the sound signal in real time according to the environmental noise level, to ensure the accuracy of the detection result.

[0063] If no effective sound source is detected within the judgment time zone, the module resets the system state to standby mode and the master chip re-enters sleep state. This design effectively reduces the power consumption of the system and avoids energy waste caused by long-term wake-up.

[0064] Further, the system further comprises a sensitivity calibration module 60 for performing the following steps:

[0065] P61: set a preset sensitivity; P62: configure a calibration mode, wherein the calibration mode includes Bluetooth remote calibration and physical near-end calibration; P63: according to any of the calibration modes, perform sensitivity calibration of switch control with the preset sensitivity as the target.

[0066] Optionally, the sensitivity calibration module 60 of the present application is used to accurately calibrate the detection sensitivity of the system, to ensure that the system can accurately detect user operations under different environmental conditions. This module sets a preset sensitivity and supports two calibration modes, Bluetooth remote calibration and physical near-end calibration, to realize flexible adjustment of the sensitivity of switch control.

[0067] Specifically, the module first sets the preset sensitivity according to the application scenario and user demand. The preset sensitivity includes infrared detection sensitivity and sound detection sensitivity, which are used to control the detection threshold of the infrared module and the microphone, respectively. For example, the infrared detection sensitivity can be set to a detection distance (such as 3 meters or 5 meters), and the sound detection sensitivity can be set to an energy threshold (such as 50 dB or 60 dB). The setting of the preset sensitivity can be completed through the register configuration of the master chip and stored in the non-volatile memory (such as EEPROM) so that the calibration result can be maintained after system restart.

[0068] In addition, the module supports two calibration methods: Bluetooth remote calibration and physical near-end calibration. Among them, the Bluetooth remote calibration establishes a connection through the Bluetooth module (such as HC-05) and the mobile terminal (such as a smart phone), and the user can adjust the sensitivity parameters of infrared and sound detection on the mobile terminal through a special application. The module receives the calibration instruction through the Bluetooth communication protocol and updates the register configuration of the master chip. The physical near-end calibration adjusts the sensitivity parameters of infrared and sound detection through the physical buttons or knobs on the system. The module reads the state of the physical buttons or knobs through the GPIO pin and updates the register configuration of the master chip.

[0069] Further, the module executes the sensitivity calibration of the switch control according to the user's selected calibration method and the preset sensitivity as the target. In the Bluetooth remote calibration mode, the module receives the calibration instruction sent by the mobile terminal through the Bluetooth module, analyzes the instruction content, and updates the detection threshold of the infrared module and the microphone. For example, if the user adjusts the infrared detection sensitivity to 5 meters, the module updates the detection distance parameter of the infrared module to 5 meters. In the physical near-end calibration mode, the module reads the state of the physical buttons or knobs through the GPIO pin, and adjusts the detection threshold of the infrared module and the microphone according to the user's operation. For example, if the user rotates the knob to increase the sound detection sensitivity, the module adjusts the energy threshold of the microphone to a higher value.

[0070] After calibration, the module stores the updated sensitivity parameters in the non-volatile memory and generates a calibration log for subsequent analysis and optimization of system performance. In the calibration process, an adaptive algorithm can be used to dynamically adjust the sensitivity parameters according to the environmental noise level and user operation habits to ensure the accuracy and practicality of the calibration result.

[0071] Through the above steps, the sensitivity calibration module 60 realizes accurate calibration of the system detection sensitivity, supports two calibration methods of Bluetooth remote calibration and physical near-end calibration, and provides a flexible and convenient calibration experience for users. This design not only improves the detection accuracy and adaptability of the system, but also further enhances the intelligence and user-friendliness of the system.

[0072] In summary, the embedded intelligent switch control system based on dual-mode detection provided by the embodiments of the present application has the following technical effects:

[0073] The system integrates infrared and sound modules, cooperatively establishes a dual-mode control channel, and designs a driving logic program according to the same. The program is precisely written into a main control chip, and a close connection between the main control chip and front-end infrared and sound sensors is established. The main control chip skillfully commands the front-end sensors to perform staggered detection according to a preset driving logic, accurately determines signals, and thus rapidly generates switch switching instructions. The instructions are immediately used to accurately control relays, and realize flexible switching of the switch state. Overall, through the combination of infrared and sound dual-mode detection to determine time zones and a flexible calibration mechanism, the false triggering rate and energy consumption in a complex environment are reduced, and the scene adaptability is improved.

[0074] The above description of disclosed embodiments enables one of ordinary skill in the art to make or use the application. Various modifications to these embodiments will be readily apparent to those of ordinary skill in the art, and the generic principles defined herein can be applied to other embodiments without departing from the spirit or scope of the application. Accordingly, the application is not to be restricted based on the embodiments set forth in this description, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An embedded intelligent switch control system based on dual mode detection, characterized in that, The system comprises: a driving logic program establishing module configured to configure a dual-mode control channel, determine a driving logic program based on the dual-mode control channel, and establish the dual-mode control channel by coordinating an infrared module and a sound module; a main control sensing establishing module configured to write the driving logic program based on the dual-mode control channel into a main control chip, and establish a connection between the main control chip and front-end sensors, wherein the front-end sensors are infrared sensors and sound sensors; a signal determining module configured to drive the front-end sensors to perform time-misaligned detection and signal determination according to the driving logic program, and generate a switch switching instruction; a switch state switching module configured to control a relay to switch a state according to the switch switching instruction; wherein, when driving the front-end sensors to perform time-misaligned detection and signal determination, the signal determining module is further configured to: obtain an infrared signal, wherein the infrared signal is detected by the infrared sensors; if the infrared signal is a user detection signal, start a timing window, wherein the timing window has a first time interval; drive the sound sensors to perform sound source sensing within the timing window, and receive a sound signal; determine whether to perform switch switching control according to the sound signal; wherein, when determining whether to perform switch switching control according to the sound signal, the signal determining module is further configured to: set a second time interval, wherein the second time interval is less than the first time interval; identify an effective frequency band of the sound signal, determine whether the second time interval is met, and if so, generate the switch switching instruction; wherein, when identifying the effective frequency band of the sound signal and determining whether the second time interval is met, if the infrared signal is not a user detection signal, the timing window is not started for sound source sensing.

2. The dual-mode detection based embedded intelligent switch control system of claim 1, wherein, The connection between the main control chip of the main control sensing establishing module and the front-end monitoring device comprises: establishing a connection between the infrared sensors and the infrared module, and establishing a connection between the sound sensors and the sound module.

3. The dual-mode detection based embedded intelligent switch control system of claim 1, wherein, The system further comprises a dual-mode driving management module configured to: set a low-energy-consumption control mode, wherein the low-energy-consumption control mode is a continuous operation state of the infrared module and a sleep state of the main control chip; control the infrared sensors to perform continuous sensing detection according to the infrared module, and receive an infrared signal; interpret the infrared signal, and perform dual-mode driving management according to a signal state.

4. The dual-mode detection based embedded intelligent switch control system of claim 3, wherein, When performing dual-mode driving management according to the signal state, the dual-mode driving management module is further configured to: if the signal state is not a user detection signal, the main control chip is not responsive; if the signal state is a user detection signal, wake up the main control chip, and perform dual-mode driving management.

5. The dual-mode detection based embedded intelligent switch control system of claim 4, wherein, When waking up the main control chip and performing dual-mode driving management, the dual-mode driving management module is further configured to: introduce a judgment time zone, wherein the judgment time zone is greater than the first time interval; wake up the main control chip, and according to the judgment time zone, the main control chip executes the driving logic program to perform dual-mode driving response; if there is no response, the main control chip enters a sleep state.

6. The dual-mode detection based embedded intelligent switch control system of claim 1, wherein, The system further comprises a sensitivity calibration module for: setting a preset sensitivity; configuring a calibration mode, wherein the calibration mode comprises a Bluetooth remote calibration and a physical close-end calibration; performing a sensitivity calibration of the switch control according to any of the calibration modes with the preset sensitivity as a target.

Citation Information

Patent Citations

  • Low-power intelligent garbage can control system and method

    CN110442063A

  • Method for reducing standby power consumption of television, television and storage medium

    CN110933345A