Control methods, systems, electronic equipment, and media of capacitor switching devices
By using a frequency division detection method that combines high-frequency and low-frequency drive signals, the impedance characteristics of the human body and rainwater are distinguished, solving the problem of false triggering of capacitive switching devices in rainy environments, improving sensitivity and user experience, and simplifying structural design.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- DONGFENG MOTOR GRP
- Filing Date
- 2026-04-27
- Publication Date
- 2026-07-31
AI Technical Summary
Existing capacitive switching devices are prone to false triggering in rainy environments, and their complex structure and high installation precision result in a high failure rate and poor user experience.
A frequency division detection method using high-frequency and low-frequency drive signals is adopted. By distinguishing the impedance characteristics of the human body and rainwater, false triggering is avoided and the structural design is simplified.
It avoids false triggering in rainy environments, improves sensitivity and user experience, and reduces structural complexity and failure rate.
Smart Images

Figure CN122496033A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a control method, system, electronic device, and medium for a capacitor switching device. Background Technology
[0002] With the rapid development of the automotive industry and the improvement of living standards, the requirements for automobiles are constantly increasing. In keyless entry control systems, capacitive PE touch switches are being adopted. Compared to traditional micro-switch PE switches, ordinary capacitive switches avoid problems such as freezing in extreme cold and high button force. However, current solutions suffer from issues like accidental activation due to rain. While capacitive switches with pressure sensors can avoid accidental activation due to rain, their complex component design and high installation requirements lead to a high failure rate. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art, and proposes a control method, system, electronic device and medium for a capacitor switching device.
[0004] In a first aspect, embodiments of the present invention provide a control method for a capacitor switching device, comprising:
[0005] Power on and initialize the capacitor switching device, and read the stored value of the capacitor switching device;
[0006] The transmission period signal is determined based on the stored value; wherein the transmission period signal includes a high-frequency drive signal and a low-frequency drive signal;
[0007] When the trigger moment is reached, high-frequency drive signals and low-frequency drive signals are sent sequentially.
[0008] The trigger values of the high-frequency drive signal and the low-frequency drive signal are detected at the sensing capacitor;
[0009] The trigger value is analyzed to obtain the detection result, and the output strategy is executed based on the detection result.
[0010] In some embodiments, the stored values include: sampling period when not in sleep mode, sampling period when in sleep mode, wake-up threshold, touch threshold, effective number of consecutive detections required when the rain threshold is triggered, effective number of consecutive detections required when the rain threshold is not triggered, rain threshold, high frequency detection frequency, low frequency detection frequency, continuous output time when detection is effective, and basic threshold adjustment time.
[0011] In some embodiments, detecting the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor includes:
[0012] At the sensing capacitor, feedback signals of the high-frequency drive signal and the low-frequency drive signal after being affected by different media are received and collected respectively.
[0013] The feedback signal is used as the detection value.
[0014] In some embodiments, the step of analyzing the trigger value to obtain a detection result and executing an output strategy based on the detection result includes:
[0015] The trigger value is analyzed using the response characteristics of high-frequency and low-frequency signals respectively to obtain the detection results;
[0016] When the detection result reaches the output threshold, the continuous output time when the detection is valid is determined according to the stored value, and a control signal is output based on the continuous output time when the detection is valid.
[0017] In some embodiments, the step of analyzing the trigger value using the response characteristics of high-frequency and low-frequency signals respectively to obtain the detection result includes:
[0018] The high-frequency detection value of the trigger value is compared with the rain threshold of the stored value;
[0019] If the high-frequency detection value exceeds the rain threshold, it is determined that the current mode is rainy, and the effective number of continuous detections is set when the rain threshold is triggered.
[0020] Otherwise, if the current mode is determined to be normal, the effective number of consecutive checks must be set if the rain threshold is not triggered.
[0021] The low-frequency detection value of the trigger value is compared with the wake-up threshold and touch threshold of the stored value to obtain the touch validity count and judgment result;
[0022] The detection result is obtained based on the touch validity count and the judgment result.
[0023] In some embodiments, comparing the low-frequency detection value of the trigger value with the wake-up threshold and touch threshold of the stored value to obtain a touch validity count and determination result includes:
[0024] The low-frequency detection value of the trigger value is compared with the wake-up threshold of the stored value;
[0025] If the low-frequency detection value exceeds the wake-up threshold, it is determined that the system has entered wake-up mode and the sampling period has been updated to a fast period; otherwise, it is determined that the system is in sleep mode and the sampling period has been maintained or updated to a slow period.
[0026] Determine whether the low-frequency detection value reaches the touch threshold;
[0027] If the touch threshold is reached, the current count value is incremented by 1; otherwise, the current count value is reset to zero.
[0028] The current count value is compared with the effective number of continuous detections required when the rain threshold is triggered and the effective number of continuous detections required when the rain threshold is not triggered to obtain the touch validity count and judgment result.
[0029] In some embodiments, the method further includes:
[0030] During operation, a basic threshold update strategy is executed;
[0031] The set basic threshold adjustment time is determined based on the stored value;
[0032] The cumulative detection values within the basic threshold adjustment time are calculated and averaged.
[0033] The base threshold adjustment time is updated in real time based on the average value.
[0034] In a second aspect, embodiments of the present invention provide a control system for a capacitor switching device, comprising:
[0035] The power-on and read module is used to power on and initialize the capacitor switching device and read the stored value of the capacitor switching device.
[0036] A signal determination module is used to determine a transmission period signal based on the stored value; wherein the transmission period signal includes a high-frequency drive signal and a low-frequency drive signal;
[0037] The signal driving module is used to sequentially send a high-frequency driving signal and a low-frequency driving signal when the trigger time is reached;
[0038] The signal detection module is used to detect the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor.
[0039] The analysis output module is used to analyze the trigger value to obtain the detection result, and execute the output strategy based on the detection result.
[0040] Thirdly, embodiments of the present invention provide an electronic device, including:
[0041] One or more processors;
[0042] Memory, used to store one or more programs;
[0043] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described above.
[0044] Fourthly, embodiments of the present invention provide a computer-readable medium on which a computer program is stored, the computer program being executed by a processor to implement the steps of any of the methods described above.
[0045] The present invention provides a control method for a capacitive switch device, comprising: powering on and initializing the capacitive switch device; reading the stored value of the capacitive switch device; determining a transmission periodic signal based on the stored value; wherein the transmission periodic signal includes a high-frequency drive signal and a low-frequency drive signal; sequentially transmitting the high-frequency drive signal and the low-frequency drive signal when a trigger moment is reached; detecting the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor; analyzing the trigger values to obtain a detection result; and executing an output strategy based on the detection result. The present invention utilizes a frequency-division detection method by sequentially transmitting high-frequency and low-frequency drive signals, filtering based on the differences in impedance lines between the human body and water at different frequencies, thus avoiding problems such as false triggering by rainwater, thereby achieving higher sensitivity and a better user experience. Attached Figure Description
[0046] Figure 1 A schematic diagram of a capacitive handle sensor that integrates pressure detection;
[0047] Figure 2 A flowchart illustrating a control method for a capacitor switching device provided in an embodiment of the present invention;
[0048] Figure 3 This is a schematic diagram of the capacitor switch detection process according to an embodiment of the present invention;
[0049] Figure 4 This is a schematic diagram of the dual-capacitor detection principle of the capacitor switch involved in an embodiment of the present invention;
[0050] Figure 5 This is a schematic diagram of the capacitor switch detection value analysis and processing flow according to an embodiment of the present invention;
[0051] Figure 6 This is a schematic diagram of the capacitor switch structure according to an embodiment of the present invention;
[0052] Figure 7 This is a structural block diagram of a control system for a capacitor switching device provided in an embodiment of the present invention;
[0053] Figure 8 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0054] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0055] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.
[0056] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0057] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.
[0058] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.
[0059] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information all comply with relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution follows relevant national laws and regulations (e.g., the "Information Security Technology - Personal Information Security Specification"). For example: appropriate measures are taken for personal information access control; restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; and explicit identity targeting is eliminated when using personal information to avoid precisely locating a specific individual.
[0060] In related technologies, such as Figure 1As shown, an integrated pressure detection capacitive handle sensor includes a capacitive sensor 100, a pressure sensor 200, a capacitive processor 110, a single-board computer 120, a capacitive sensing electrode assembly 130, a first sensing electrode 131, and a second sensing electrode 132. The integrated pressure detection capacitive handle sensor includes a capacitive sensor and a pressure sensor. The capacitive sensor includes a capacitive processor, a single-board computer, and a capacitive sensing electrode assembly. The single-board computer is connected to the capacitive processor, which is connected to both the capacitive sensing electrode assembly and the pressure sensor. The capacitive sensing electrode assembly detects changes in capacitance around the handle and generates a corresponding signal. The pressure sensor detects changes in handle pressure and generates a corresponding signal. After simultaneously receiving signals from both the capacitive sensing electrode assembly and the pressure sensor, the capacitive processor compares the measured pressure value from the pressure sensor with a threshold value. If the pressure value exceeds the threshold, an unlocking signal is generated. This capacitive handle sensor solution provides double protection through the capacitive sensor and the pressure sensor; an unlocking signal is only generated when both sensors simultaneously generate signals and the pressure signal exceeds the threshold value.
[0061] However, this capacitive handle sensor solution relies on external user pressure for detection. Physical pressure, generated by deformation, demands high precision in structural design and installation. Furthermore, as automobiles are long-cycle consumables, the handle material ages and is subject to impacts during use, significantly affecting switch detection. This solution fails to fully utilize the high sensitivity of the capacitive switch, requiring user contact with the handle, increasing detection time and preventing seamless unlocking. The reliance on physical pressure deformation for detection is easily replaceable; for example, a small microswitch can achieve a similar effect, rendering the technological advantages of this type of capacitive switch solution insignificant.
[0062] The control method for the capacitor switching device designed in this invention mainly solves the problems of complex product structure and low intelligence under related technical solutions. This invention has higher sensitivity and a better user experience.
[0063] To address at least one of the technical problems existing in the aforementioned related technologies, the present invention provides a control method for a capacitor switching device. Figure 2 This is a flowchart illustrating a control method for a capacitor switching device provided in an embodiment of the present invention.
[0064] As one embodiment of the present invention, such as Figure 2 As shown, the control method for the capacitor switching device includes:
[0065] Step S1: Power on and initialize the capacitor switching device, and read the stored value of the capacitor switching device;
[0066] Step S2: Determine the transmission period signal based on the stored value; wherein the transmission period signal includes a high-frequency drive signal and a low-frequency drive signal;
[0067] Step S3: When the trigger moment is reached, send the high-frequency drive signal and the low-frequency drive signal in sequence;
[0068] Step S4: Detect the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor;
[0069] Step S5: Analyze the trigger value to obtain the detection result, and execute the output strategy based on the detection result.
[0070] It should be noted that the execution subject in this embodiment can be an electronic device, which can be a computer device with data processing function, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, the execution subject is a computer device as an example for explanation.
[0071] For example, in order to more clearly illustrate the control method of the capacitive switch device provided in this embodiment, an example of the application scenario of the control method of the capacitive switch device provided in this embodiment is given. The control method of the capacitive switch device provided in this embodiment is applicable to the scenario where a user wants to be able to lock or unlock the vehicle by touching the capacitive switch when using the vehicle.
[0072] In some embodiments, the capacitor switching device is powered on and initialized, and the stored value of the capacitor switching device is read; a transmission period signal is determined based on the stored value; wherein the transmission period signal includes a high-frequency drive signal and a low-frequency drive signal.
[0073] In some embodiments, the stored values include: sampling period when not in sleep mode, sampling period when in sleep mode, wake-up threshold, touch threshold, effective number of consecutive detections required when the rain threshold is triggered, effective number of consecutive detections required when the rain threshold is not triggered, rain threshold, high frequency detection frequency, low frequency detection frequency, continuous output time when detection is effective, and basic threshold adjustment time.
[0074] Specifically, such as Figure 3 As shown, in step S10, after the device (capacitor switch device) is powered on and initialized, the transmission cycle signal in the stored value is read. When the trigger time is reached, a high-frequency drive signal and a low-frequency drive signal are sent sequentially. In this embodiment, the capacitor switch device is powered by a battery. When the component is powered on for the first time, the factory setting parameters are retrieved. The factory setting parameters include, but are not limited to, the sampling period when not in sleep mode, the sampling period when in sleep mode, the wake-up threshold, the touch threshold, the effective number of consecutive detections required when the rain threshold is triggered, the effective number of consecutive detections required when the rain threshold is not triggered, the rain threshold, the high-frequency detection frequency, the low-frequency detection frequency, the continuous output time when the detection is effective, and the basic threshold adjustment time. Each parameter can be calibrated and confirmed according to the actual vehicle requirements.
[0075] For example, T_ WAKE This indicates the sampling period when not in sleep mode. Faster sampling results in higher sensitivity but also higher power consumption; T_ Sleep This indicates the sampling period during sleep mode, introduced to reduce overall vehicle power consumption; Threshold_ wakeup This represents the wake-up threshold, which is matched with the sleep sampling period to reduce power consumption; Threshold_ work This represents the touch threshold, the threshold for determining effective human hand touch. It should cover scenarios such as bare hand touch, gloves (cloth rope, leather, rubber), surface water film, foam, thin ice layer, and dust. When the rain threshold is triggered, Counter_ needs to be continuously detected. rain This is the first effective time; if the rainwater threshold is not triggered, continuous detection of Counter_ will occur. normal Software technology identifier Counter_ NOW Threshold_ rain This represents the rainfall threshold, the threshold for determining rainfall impact; frequency_ H This indicates the high-frequency detection frequency, triggered by rainwater detection; frequency_ L Indicates a low-frequency detection frequency, triggered by a human hand; T_ OUT This indicates the duration for which the detection is valid, ensuring sufficient time for device recognition without exceeding the time required to trigger the next time; T_Threshold_ base The baseline threshold adjustment time is used to calculate the cumulative average detection value and update it to the current baseline value in real time. Specifically, Counter_ rain Indicates the valid number of consecutive checks required to trigger the rain threshold; Counter_ normal This indicates the effective number of consecutive checks required if the rainwater threshold is not triggered.
[0076] In some embodiments, when the triggering time is reached, a high-frequency drive signal and a low-frequency drive signal are sent sequentially.
[0077] Specifically, this embodiment uses a frequency division detection method to distinguish between the human body and rainwater. It utilizes the difference in response between the human body impedance (mainly capacitive and highly nonlinear) and the rainwater impedance (mainly resistive and highly linear) at different frequencies. Through hardware to quickly switch frequency points and software to quickly set parameters, high-frequency and low-frequency drive signals are detected and sampled respectively.
[0078] It can be understood that it is known that the rain impedance comes from ionic conduction, shows a high degree of linearity, and behaves resistively. The human body impedance mainly comes from the skin, is highly non-linear, and behaves capacitively. The human body and rain are screened according to the differences. High-frequency currents are more affected by capacitive impedance, and low-frequency currents are more affected by resistive impedance. During detection, the frequency points are quickly switched by hardware and the parameters are quickly set by software. Discharging and sampling are performed twice at two different frequencies, one high and one low, to collect the charge-discharge resonance impedance of different media.
[0079] Exemplarily, referring to Figure 4 , at high frequencies, the capacitive reactance Xc = 1 / (2πfc) is extremely small, Xc << R, and the total impedance of the RC charge-discharge circuit Z ≈ R. The circuit response is mainly affected by the resistor R, and the magnitude of the current is mainly determined by the resistor R (I ≈ V / R). The capacitor C is almost equivalent to a short circuit (Xc is extremely small). Changing the value of R will significantly affect the amplitude of the high-frequency signal and the magnitude of the charge-discharge current. At this time, the liquid attached to the surface changes the resistance (becomes smaller), the amplitude of the charge-discharge waveform rises, and the charge-discharge current increases. For the human body, which is mainly capacitive, the resistive change is small, and the change in the amplitude of the charge-discharge waveform and the current is relatively smaller than that of the water film.
[0080] Exemplarily, referring to Figure 4 , at low frequencies, the capacitive reactance Xc = 1 / (2πfc) >> R, and the total impedance Z ≈ Xc. The circuit response is mainly affected by the capacitor C. The change in the capacitance value of the induction electrode to the ground brought by the human body is larger than that brought by the liquid, and has a greater impact on the amplitude and current of the charge-discharge signal. The magnitude of the current is mainly determined by Xc (I ≈ V / Xc), and the influence of the resistor R is relatively small (can be approximately ignored). Changing the value of the capacitor C will significantly affect the amplitude of the low-frequency signal (attenuation) and the current passing through the circuit.
[0081] In some embodiments, detecting the trigger values of the high-frequency drive signal and the low-frequency drive signal at the induction capacitor includes: at the induction capacitor, respectively receiving and collecting the feedback signals of the high-frequency drive signal and the low-frequency drive signal after being affected by different media; using the feedback signals as the detection values.
[0082] Specifically, this embodiment adopts a frequency division detection method, and screens and distinguishes through the impedance line differences between the human body and water at different frequencies, avoiding problems such as false triggering by rain. As Figure 3As shown, in step S20, detection is performed at the induction capacitance. During high-frequency trigger detection, the capacitive reactance Xc = 1 / (2πfc) is extremely small, Xc << R, and the total impedance Z of the RC charge-discharge circuit is approximately Z ≈ R. The circuit response is mainly affected by the resistor R, and the magnitude of the current is mainly determined by R (I ≈ V / R). The capacitor C is almost equivalent to a short circuit (Xc is extremely small). Changing the value of R will significantly affect the amplitude of the high-frequency signal and the magnitude of the charge-discharge current. At this time, the liquid attached to the surface changes the resistance (becomes smaller), the amplitude of the charge-discharge waveform rises, and the charge-discharge current increases. The human body is mainly capacitive, and the resistive change is relatively small. The amplitude of the charge-discharge waveform and the change in current are relatively smaller compared to the water film. The detection value (trigger value) is used to determine whether there is rainwater triggering.
[0083] Exemplarily, at low frequencies, the capacitive reactance Xc = 1 / (2πfc) >> R, the total impedance Z ≈ Xc, and the circuit response is mainly affected by the capacitor C. The human body causes a greater change in the capacitance value of the induction electrode to the ground compared to the liquid, and has a greater impact on the amplitude and current of the charge-discharge signal. The magnitude of the current is mainly determined by Xc (I ≈ V / Xc), and the influence of the resistor R is relatively small (can be approximately ignored). Changing the value of C will significantly affect the amplitude (attenuation) of the low-frequency signal and the current passing through the circuit. The detection value (trigger value) is used to determine whether there is human hand triggering.
[0084] In some embodiments, the trigger value is analyzed to obtain a detection result, and an output strategy is executed according to the detection result, including: analyzing the trigger value respectively using the response characteristics of high-frequency signals and low-frequency signals to obtain a detection result; when the detection result reaches an output threshold, determining the continuous output time when the detection is valid according to the stored value, and outputting a control signal based on the continuous output time when the detection is valid.
[0085] Specifically, as Figure 3 shown, in step S30, the judgment and use of the detection value. Refer to Figure 5 , the low-frequency sampling value (the trigger value of the low-frequency drive signal) is used to determine whether to enter the wake-up mode, and the sampling period is updated in real time, which is used to determine whether the current human hand trigger value is reached. When it is reached, the count is incremented by 1, and when it is not reached, the count is cleared to 0; the high-frequency sampling value (the trigger value of the high-frequency drive signal) is used to determine whether the current is in the rainwater mode, that is: using different judgment times values, comparing the current count value with the mode count threshold, and triggering an effective output when it is reached; during the process of the human hand approaching the switch, the touch value is an increasing process, and increasing the detection frequency when reaching the wake-up value can effectively improve the detection efficiency. [[ID=?]]
[0086] Exemplarily, as Figure 3 shown, in step S40, when the output threshold is reached, an output is executed. Output T_ OUT It is necessary to satisfy the acquisition in various scenarios of the hand controller, such as the wake-up mode, the network sleep mode, the component sleep mode, etc.
[0087] In this embodiment, frequency division detection technology distinguishes between rainwater and the human body at the software algorithm level, eliminating the need for physical pressure sensors. This avoids the problems of complex mechanical structures, high installation accuracy requirements, and high failure rates due to aging and impacts. Simultaneously, it achieves contactless, seamless unlocking, simplifying the structure and improving reliability. Utilizing the difference in dielectric impedance characteristics at high and low frequencies, it can effectively distinguish between rainwater (resistive) and the human body (capacitive), significantly reducing false triggering caused by environmental factors such as rainwater, and providing excellent anti-false-touch performance.
[0088] In some embodiments, the response characteristics of high-frequency and low-frequency signals are used to analyze the trigger value to obtain a detection result, including: comparing the high-frequency detection value of the trigger value with the rain threshold of the stored value; if the high-frequency detection value exceeds the rain threshold, it is determined that the current mode is rainy, and the effective number of continuous detections is set when the rain threshold is triggered; otherwise, it is determined that the current mode is normal, and the effective number of continuous detections is set when the rain threshold is not triggered; comparing the low-frequency detection value of the trigger value with the wake-up threshold and touch threshold of the stored value to obtain a touch validity count and determination result; and obtaining a detection result based on the touch validity count and determination result.
[0089] In some embodiments, comparing the low-frequency detection value of the trigger value with the wake-up threshold and touch threshold of the stored value to obtain a touch validity count and determination result includes: comparing the low-frequency detection value of the trigger value with the wake-up threshold of the stored value; if the low-frequency detection value exceeds the wake-up threshold, it is determined that the system is in wake-up mode and the sampling period is updated to a fast period; otherwise, it is determined that the system is in sleep mode and the sampling period is maintained or updated to a slow period; determining whether the low-frequency detection value reaches the touch threshold; if the touch threshold is reached, the current count value is incremented by 1; otherwise, the current count value is cleared to zero; comparing the current count value with the effective number of consecutive detections required when the rain threshold is triggered and the effective number of consecutive detections required when the rain threshold is not triggered to obtain a touch validity count and determination result.
[0090] Specifically, such as Figure 5 As shown, this embodiment provides a wake-up threshold strategy. Different strategies are applied based on different current values. When the wake-up threshold is below the threshold, slow-cycle detection is performed to reduce component power consumption; when the threshold is above the threshold, fast-cycle detection is performed to improve detection sensitivity, achieving contactless triggering. When the current detected value is lower than the set wake-up threshold, the detection cycle is T. 慢 When the set wake-up threshold is exceeded, the detection period is T. 快 As a hand approaches the switch, the touch value tends to increase. When the wake-up value is reached, increasing the detection frequency can effectively improve detection efficiency and achieve seamless triggering.
[0091] For example, such as Figure 5 As shown, wake-up mode determination is performed using low-frequency sampling values to determine whether wake-up mode has been entered. When the detected value exceeds the wake-up threshold, the sampling period is updated to a fast period (T_). Wake To improve detection efficiency; when the detection value is below the wake-up threshold, maintain a slow cycle (T_ Sleep To reduce power consumption, a hand-triggered detection method is used. Low-frequency sampling values are used to determine whether the hand-triggered value reaches the touch threshold. work If the target is reached, then the counter (Counter_) will be activated. NOW Increment the counter by 1; if the threshold is not reached, clear the counter to 0. Perform rain mode determination using high-frequency sampling values to determine if the current mode is rainy, i.e., using different threshold number of determinations. Compare the current counter value with the mode count threshold (Counter_...). rain or Counter_ normal The system compares the results, and when a preset threshold is reached, it is determined that the trigger is valid.
[0092] Specifically, based on the collected detection values, the response characteristics of high-frequency and low-frequency signals are analyzed to determine the current environmental state (whether it is in rain mode) and the user state (whether the wake-up condition has been met). High-frequency analysis (rain judgment): High-frequency detection values are processed, and based on the principle that impedance at high frequencies is mainly affected by resistance R, the amplitude and current of the charging and discharging waveforms are detected to see if they have significantly increased. The high-frequency detection values are then compared with a preset rain threshold. rain Perform a comparison. If the high-frequency detection value exceeds Threshold_ rain The system is currently in rain mode. A threshold for the number of consecutive detections is set to Counter_. rain Otherwise, determine that the current mode is normal, and set the threshold for the number of consecutive checks to Counter_ normal .
[0093] For example, low-frequency analysis (wake-up and touch detection): Processing low-frequency detection values, based on the principle that impedance at low frequencies is mainly affected by capacitance C, detects the change in capacitance between the sensing electrode and ground. The low-frequency detection value is then compared with the wake-up threshold Threshold_. wakeup Perform a comparison. If the low-frequency detection value exceeds Threshold_ wakeup If the system determines that it has entered wake-up mode, the sampling period will be updated to T_ Wake (Fast cycle); If the low-frequency detection value is lower than Threshold_ wakeup If the system is in sleep mode, the sampling period will be maintained or updated to T_. Sleep (Slow cycle).
[0094] Specifically, touch validity counting and determination are based on a defined mode (rain mode or normal mode) and low-frequency detection values to determine the cumulative count of valid touches. It then determines whether the low-frequency detection value reaches the touch threshold (Threshold). work If the touch threshold (Threshold) is reached... work Then the current count value Counter_ NOW Add 1. If the touch threshold (Threshold) has not been reached. work Then the current count value Counter_ NOW Reset to zero. Set the current counter value to zero. NOW With a defined pattern counting threshold (Counter_ rain or Counter_ normal Compare them.
[0095] In this embodiment, a differentiated counting standard (with stricter counting requirements in rainy environments) is used to further filter out false triggers, and the output is only triggered when the count meets the conditions.
[0096] In some embodiments, the method further includes: executing a basic threshold update strategy during operation; determining a set basic threshold adjustment time based on the stored value; accumulating and averaging the detection values within the basic threshold adjustment time; and updating the basic threshold adjustment time in real time based on the average value.
[0097] Specifically, such as Figure 5 As shown, this embodiment continuously executes the basic threshold update strategy during operation. Based on the set T_Threshold_ base The system calculates the cumulative detection values over a period of time (e.g., the first 5 seconds, which can be adjusted according to calibration), takes the average value, and updates this average value to the current baseline value in real time. This baseline threshold update strategy is used to avoid sensitivity degradation caused by environmental factors such as component aging, impacts, and seasonal changes during use, while also avoiding vehicle power consumption caused by prolonged non-subjective touches.
[0098] For example, this embodiment provides a basic threshold strategy, where the threshold (T_Threshold_) is... base The baseline threshold adjustment time is calculated cumulatively from the current value to ensure the validity of the detected value. For example, by accumulating the detected values of the previous 5 seconds (adjusted according to calibration), the average value is taken and updated in real time to the current baseline value (T_Threshold_). base (Basic threshold adjustment time).
[0099] It should be noted that this embodiment provides a structural schematic diagram of a capacitor switch (anti-accidental touch capacitor switch device). For example... Figure 6As shown, the capacitive switch includes: a sensing module housing for installation and matching with the corresponding component, providing waterproof and dustproof protection; adhesive to fill the gap between the housing and the corresponding component, preventing rainwater retention from affecting sensitivity and effective judgment; a sensing PCB for arranging components and the sensing coil; a sensing module potting compound for waterproof and dustproof protection (potting is required as injection molding is prone to water seepage after durability aging, which must be avoided due to the sensitivity of touch sensing to water); and a clip to the component's built-in wires for securing the wiring harness, facilitating factory installation and preventing the wiring harness from shaking, scratching, and making abnormal noises after vehicle movement.
[0100] For example, the capacitive switch (capacitance detection mechanism) provided in this embodiment has the ability to collect touch information, and can recognize touches including but not limited to bare hands, gloves (cloth rope, leather, rubber), surface water film, foam, surface thin ice layer, and dust; it has the ability to be triggered without error by high-pressure washing and rain; it has the ability to quickly sense touch and detect without contact; it has the ability to eliminate touch blind spots; it has the ability to prevent playing with objects; and it has the ability to send valid touch signals. The touch threshold can be stored locally and adjusted.
[0101] It is understandable that the control method of the capacitive switch device provided in this embodiment effectively filters rainwater through high and low frequency frequency division detection, avoiding false triggering when rainwater impacts the device. By adding a wake-up threshold strategy, effective touch can be detected quickly while ensuring low vehicle power consumption, and sensitivity can be improved. Combined with rapid door lock unlocking, contactless locking and unlocking can be achieved. By adding a threshold real-time detection and update strategy, continuous vehicle power consumption can be avoided, reducing the risk of power depletion. With no precision structure, the function is unaffected even after structural damage or aging, ensuring effective continued use. The installation structure design is universal; one structure can be adapted to four door handle installations, reducing after-sales management and maintenance costs.
[0102] The control method for the capacitive switch device provided in this embodiment includes: powering on and initializing the capacitive switch device, reading the stored value of the capacitive switch device; determining a transmission periodic signal based on the stored value; wherein the transmission periodic signal includes a high-frequency drive signal and a low-frequency drive signal; sequentially transmitting the high-frequency drive signal and the low-frequency drive signal when a trigger moment is reached; detecting the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor; analyzing the trigger values to obtain a detection result, and executing an output strategy based on the detection result. This embodiment achieves higher sensitivity and a better user experience by using a frequency division detection method that sequentially transmits high-frequency drive signals and low-frequency drive signals, and by filtering based on the differences in impedance lines between the human body and water at different frequencies.
[0103] Reference Figure 7 , Figure 7 This is a structural block diagram of an embodiment of the control system of the capacitor switching device of the present invention. Figure 7 As shown, the control system of the capacitor switching device includes:
[0104] The power-on and read module 10 is used to power on and initialize the capacitor switching device and read the stored value of the capacitor switching device.
[0105] The signal determination module 20 is used to determine a transmission period signal based on the stored value; wherein the transmission period signal includes a high-frequency drive signal and a low-frequency drive signal;
[0106] The signal driving module 30 is used to sequentially send a high-frequency driving signal and a low-frequency driving signal when the triggering time is reached;
[0107] The signal detection module 40 is used to detect the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor.
[0108] The analysis output module 50 is used to analyze the trigger value to obtain the detection result, and execute the output strategy according to the detection result.
[0109] The control system of the capacitive switch device provided in this embodiment effectively filters rainwater through high and low frequency frequency division detection, avoiding accidental triggering when rainwater impacts the device. By adding a wake-up threshold strategy, it can quickly detect valid touches while ensuring low vehicle power consumption, and also improve sensitivity. Combined with rapid door lock unlocking, it can achieve contactless locking and unlocking. By adding a threshold real-time detection and update strategy, it can avoid continuous vehicle power consumption and reduce the risk of power depletion. With no precision structure, its function is unaffected even after structural damage or aging, thus ensuring effective continued use. The installation structure design is universal; one structure can be adapted to four door handle installations, reducing after-sales management and maintenance costs.
[0110] Furthermore, for technical details not described in detail in the control system embodiment of this capacitor switching device, please refer to the control method of the capacitor switching device provided in any embodiment of the present invention, which will not be repeated here.
[0111] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 8 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 8 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement a control method for any of the capacitor switching devices described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.
[0112] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).
[0113] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.
[0114] In some embodiments, the one or more processors 101 include a field-programmable gate array.
[0115] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps in the control method of any of the capacitive switching devices described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.
[0116] This invention also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in the processor of an electronic device, the processor in the electronic device executes the control method of the above-described capacitive switching device.
[0117] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).
[0118] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0119] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0120] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.
[0121] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0122] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0123] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0124] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0125] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0126] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.
Claims
1. A control method for a capacitor switching device, characterized in that, include: Power on and initialize the capacitor switching device, and read the stored value of the capacitor switching device; The transmission period signal is determined based on the stored value; wherein the transmission period signal includes a high-frequency drive signal and a low-frequency drive signal; When the trigger moment is reached, high-frequency drive signals and low-frequency drive signals are sent sequentially. The trigger values of the high-frequency drive signal and the low-frequency drive signal are detected at the sensing capacitor; The trigger value is analyzed to obtain the detection result, and the output strategy is executed based on the detection result.
2. The method according to claim 1, characterized in that, The stored values include: sampling period when not in sleep mode, sampling period when in sleep mode, wake-up threshold, touch threshold, effective number of consecutive detections required when the rain threshold is triggered, effective number of consecutive detections required when the rain threshold is not triggered, rain threshold, high frequency detection frequency, low frequency detection frequency, continuous output time when detection is effective, and basic threshold adjustment time.
3. The method according to claim 1, characterized in that, The step of detecting the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor includes: At the sensing capacitor, feedback signals of the high-frequency drive signal and the low-frequency drive signal after being affected by different media are received and collected respectively. The feedback signal is used as the detection value.
4. The method according to claim 1, characterized in that, The step of analyzing the trigger value to obtain a detection result and executing an output strategy based on the detection result includes: The trigger value is analyzed using the response characteristics of high-frequency and low-frequency signals respectively to obtain the detection results; When the detection result reaches the output threshold, the continuous output time when the detection is valid is determined according to the stored value, and a control signal is output based on the continuous output time when the detection is valid.
5. The method according to claim 4, characterized in that, The step of analyzing the trigger value using the response characteristics of high-frequency and low-frequency signals to obtain the detection result includes: The high-frequency detection value of the trigger value is compared with the rain threshold of the stored value; If the high-frequency detection value exceeds the rain threshold, it is determined that the current mode is rainy, and the effective number of continuous detections is set when the rain threshold is triggered. Otherwise, if the current mode is determined to be normal, the effective number of consecutive checks must be set if the rain threshold is not triggered. The low-frequency detection value of the trigger value is compared with the wake-up threshold and touch threshold of the stored value to obtain the touch validity count and judgment result; The detection result is obtained based on the touch validity count and the judgment result.
6. The method according to claim 5, characterized in that, The step of comparing the low-frequency detection value of the trigger value with the wake-up threshold and touch threshold of the stored value to obtain the touch validity count and determination result includes: The low-frequency detection value of the trigger value is compared with the wake-up threshold of the stored value; If the low-frequency detection value exceeds the wake-up threshold, it is determined that the system has entered wake-up mode and the sampling period has been updated to a fast period; otherwise, it is determined that the system is in sleep mode and the sampling period has been maintained or updated to a slow period. Determine whether the low-frequency detection value reaches the touch threshold; If the touch threshold is reached, the current count value is incremented by 1; otherwise, the current count value is reset to zero. The current count value is compared with the effective number of continuous detections required when the rain threshold is triggered and the effective number of continuous detections required when the rain threshold is not triggered to obtain the touch validity count and judgment result.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: During operation, a basic threshold update strategy is executed; The set basic threshold adjustment time is determined based on the stored value; The cumulative detection values within the basic threshold adjustment time are calculated and averaged. The base threshold adjustment time is updated in real time based on the average value.
8. A control system for a capacitor switching device, characterized in that, include: The power-on and read module is used to power on and initialize the capacitor switching device and read the stored value of the capacitor switching device. A signal determination module is used to determine a transmission period signal based on the stored value; wherein the transmission period signal includes a high-frequency drive signal and a low-frequency drive signal; The signal driving module is used to sequentially send a high-frequency driving signal and a low-frequency driving signal when the trigger time is reached; The signal detection module is used to detect the trigger values of the high-frequency drive signal and the low-frequency drive signal at the sensing capacitor. The analysis output module is used to analyze the trigger value to obtain the detection result, and execute the output strategy based on the detection result.
9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 7.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.