Automobile glass lifting switch circuit, control method and storage medium thereof

By using the signal processing of the key module and the data processing module in the automotive glass lift switch, the transistor is cancelled, and the accurate judgment of the key is achieved, the transistor damage probability and maintenance cost are reduced, and the utilization rate of circuits and chips is improved.

CN120454702AActive Publication Date: 2025-08-08WENZHOU KAIRUI ELECTRONIC TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202510568181.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-08-08
Estimated Expiration
2045-04-30

AI Technical Summary

Technical Problem

The transistors in the automotive glass lift switch of Hummer cars are easily overloaded and damaged during use, and the maintenance costs are high.

Method used

The key module and the data processing module are used to cross the multiple ROW lines and the COL lines to determine, cancel the transistor, and use the signal processing of the data processing module to determine whether the key is pressed, and the user is prompted through the lamp module to see if the chip is processed correctly after the key is pressed.

Benefits of technology

It greatly reduces the probability of transistor damage, reduces maintenance costs, realizes the utilization of fewer circuits and chip ports, improves the utilization rate of circuits and chips, has good scalability, and reduces the cost of circuits and chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120454702A_ABST
    Figure CN120454702A_ABST
Patent Text Reader

Abstract

The invention relates to the field of automobile systems, in particular to an automobile glass lifting switch circuit, a control method and a storage medium, and the automobile glass lifting switch circuit comprises a key module which is used for being pressed by a user, generating a corresponding key signal and outputting the key signal; and the data processing module is used for receiving the key signal, carrying out data processing and then outputting a corresponding control signal to control the automobile glass. The device has the effects of reducing the damage probability and reducing the maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile systems, and in particular to an automobile window lift switch circuit, a control method, and a storage medium thereof. Background Art

[0002] As automobile technology becomes increasingly mature, people not only pay attention to the transportation performance of the car, but also the comfort of the car. The car glass has evolved from manual lifting to electric lifting for greater comfort. However, the transistors in the Hummer car's car window lifting switch are prone to overload and damage during use, and repair after damage is particularly troublesome and costly. Summary of the Invention

[0003] In order to improve the problem that transistors in a Hummer automobile window lift switch are easily burned out, the present application provides an automobile window lift switch circuit, a control method and a storage medium thereof.

[0004] This application provides a car window lift switch circuit, which adopts the following technical solution: An automobile window lift switch circuit, comprising: The button module is used for the user to press, generate corresponding button signals and output; The data processing module receives the key signal, processes the data, and then outputs a corresponding control signal to control the automobile glass.

[0005] By adopting the above technical solution, transistors are eliminated, and the judgment of whether a key is pressed is realized through signal processing of the data processing module, which greatly reduces the probability of transistor damage and reduces maintenance costs.

[0006] Optionally, the button module includes multiple ROW lines, multiple COL lines and multiple buttons SW, the multiple ROW lines and the multiple COL lines receive power from the same 3V terminal, the button signal includes a ROW signal and a COL signal, the button SW is electrically connected to at least one ROW line and at least one COL line, different ROW lines output different ROW signals, and different COL lines output different COL signals.

[0007] By adopting the above technical solution, cross judgment is achieved through multiple ROW lines and multiple COL lines, which requires fewer circuits and fewer chip ports to determine whether more keys are pressed, thereby improving the utilization rate of circuits and chips and reducing the cost of circuits and chips.

[0008] Optionally, the data processing module includes a chip U1, the control signal includes an RXD signal and a TXD signal, the fifth pin, the sixth pin, the thirteenth pin and the fourteenth pin of the chip U1 receive different ROW signals, the sixteenth pin, the seventeenth pin, the eighteenth pin, the nineteenth pin and the twentieth pin of the chip U1 receive different COL signals, and the tenth pin and the twelfth pin of the chip U1 transmit the TXD signal and the RXD signal for control.

[0009] By adopting the above technical solution, the judgment of whether a button is pressed can be achieved through the arrangement and combination of high and low levels of different pins, which is convenient, fast and efficient. It also makes expansion more convenient. If it is adapted to different numbers of buttons on different car models, it can be directly increased and expanded in a certain way without redesigning the circuit.

[0010] Optionally, a light module is further included, the light module including a socket J1, a transistor Q1, a transistor Q2, a transistor Q3, a light emitting diode D1, a light emitting diode D5 and a light emitting diode D6, the third pin and the fourth pin of the socket J1 transmit the RXD signal and the TXD signal, the tenth pin of the socket J1 outputs a J6_10 signal, the eleventh pin of the socket J1 outputs a J6_11 signal, the twelfth pin of the socket J1 outputs a J6_12 signal, the collector of the transistor Q1 is connected to the light emitting diode D6. The transistor D1 receives power from the LED+ end, the base of the transistor Q1 receives the J6_10 signal, the collector of the transistor Q2 receives power from the LED+ end through the light-emitting diode D5, the base of the transistor Q2 receives the J6_11 signal, the collector of the transistor Q3 receives power from the LED+ end through the light-emitting diode D6, the base of the transistor Q3 receives the J6_12 signal, and the emitter of the transistor Q1, the emitter of the transistor Q2, and the emitter of the transistor Q3 are grounded.

[0011] By adopting the above technical solution, the light module is used to prompt the user whether the chip has processed the button correctly after pressing it. For example, pressing the button SW1 should cause the main driver's car window to rise and the light of the button SW1 to light up. However, if the chip U1 misjudges, the output is not the control signal corresponding to the button SW1, and the light of the button SW1 will not light up.

[0012] This application provides a control method for a car window lift switch, which adopts the following technical solution: A method for controlling a vehicle window lift switch, comprising: Acquire the ROW signal and the COL signal; Determine trigger key data through the ROW signal and the COL signal; The control signal is determined and outputted based on the trigger button data and a preset control threshold.

[0013] By adopting the above technical solution, software control is used to replace the original hardware circuit, which reduces the probability of transistor burnout and reduces maintenance costs and maintenance probability.

[0014] Optional, including: Acquire timing data, and determine a judgment signal according to the timing data, a preset misjudgment time threshold, a plurality of the ROW signals, and a plurality of the COL signals; Determine and output test waveform data based on the judgment signal and a preset test threshold; Repeatedly acquiring the ROW signal and the COL signal; Determine row variable data and column variable data by using the test waveform data, the timing data, a plurality of the ROW signals, and a plurality of the COL signals; Determine group data by using the timing data, the row variable data, and the column variable data; A plurality of trigger button data are determined according to the group data, a plurality of the ROW signals, and a plurality of the COL signals.

[0015] By adopting the above technical solution, automatic judgment is made more accurate and the probability of misjudgment is reduced.

[0016] Optional, including: Determine current glass state data through all the control signals; Determine triggering all possible data by using a plurality of the ROW signals and a plurality of the COL signals; Determine the state change priority data by using the current glass state data and the trigger all-possible data; Determining priority test data by using the change state priority data and the test threshold; The test waveform data is determined and outputted by using the priority test data instead of the test threshold and the judgment signal; After calculating and determining the trigger button data, determining the screening data by using the trigger all-possible data and the change state priority data, wherein the priority of the screening data is lower than that of the judgment signal and the trigger button data; Determine the troubleshooting test data by using the troubleshooting data and the test threshold; The test waveform data is determined and outputted by replacing the test threshold with the screening test data to obtain the remaining trigger button data.

[0017] By adopting the above technical solution, automatic judgment is made faster.

[0018] This application provides a computer-readable storage medium that uses the following technical solution: A computer-readable storage medium stores a computer program capable of being loaded by a processor and executed by a method for controlling a vehicle window lift switch.

[0019] By adopting the above technical solution, the computer program is stored in a computer-readable storage medium.

[0020] In summary, this application includes at least one of the following beneficial technical effects: 1. Eliminating transistors greatly reduces the probability of transistor damage and reduces maintenance costs.

[0021] 2. Automatically determine more accurately and quickly which button in the button module is pressed by the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a module schematic diagram of a car window lift switch circuit in Example 1 of the present application.

[0023] Figure 2 It is a circuit diagram of the highlighted button module.

[0024] Figure 3 It is a circuit diagram highlighting the data processing module.

[0025] Figure 4 This is a circuit diagram of the highlight light module.

[0026] Figure 5 This is a flow chart of a method for controlling a car window lift switch circuit in Example 1 of the present application.

[0027] Figure 6 This is a flow chart of a control method for a car window lift switch circuit in Example 2 of the present application.

[0028] Figure 7 It is a flowchart of step S3 to step S37.

[0029] Description of the accompanying drawings: 1. key module; 2. data processing module; 3. light module. DETAILED DESCRIPTION

[0030] The following is combined with Figure 1-7 This application is described in further detail.

[0031] Example 1 of the present application discloses a car window lift switch circuit. Figure 1The automobile window lift switch circuit includes a button module 1, a data processing module 2 and a light module 3. The button module 1 is used for the user to press, generate a corresponding button signal and output it to the data processing module 2. The data processing module 2 is used to process and calculate the data signal of the received button signal, output the corresponding control signal, and perform corresponding control on different automobile glass drives to control the corresponding automobile glass to perform corresponding actions.

[0032] Reference Figure 2 The key module 1 includes multiple ROW lines, multiple COL lines, and multiple keys SW. The key signals include ROW signals and COL signals. In this embodiment, the ROW signals include ROW0, ROW1, ROW2, and ROW3 signals. The COL signals include COL0, COL1, COL2, COL3, and COL4 signals. There are four ROW lines, namely ROW0, ROW1, ROW2, and ROW3, and each corresponds to outputting the ROW0, ROW1, ROW2, and ROW3 signals. There are five COL lines, namely COL0, COL1, COL2, COL3, and COL4, and each corresponds to outputting the COL0, COL1, COL2, COL3, and COL4 signals. All ROW lines are connected in parallel to the same 3V terminal to receive power. Each key SW is electrically connected to at least one ROW line and at least one COL line.

[0033] Reference Figure 2, the key SW includes key SW1, key SW2, key SW3, key SW4, key SW5, key SW6, key SW7, key SW8, key SW9, key SW10, key SW11, key SW12, key SW13, key SW14, key SW15, key SW16, key SW17, key SW18, key SW19, nine diodes D1 and eight diodes D2. The key SWs all adopt the KEY_2 model specification, and the diodes D1 and D2 all adopt the SS14 model; the key SW13, key SW12, One end of the button SW18, button SW19 and button SW6 are respectively electrically connected to the cathode of a diode D1, and the anodes of these five diodes D1 are all connected in parallel to the ROW0 line. The other end of the button SW13 is connected in parallel to the CLO0 line, the other end of the button SW12 is connected in parallel to the CLO1 line, the other end of the button SW18 is connected in parallel to the CLO2 line, the other end of the button SW19 is connected in parallel to the CLO3 line, and the other end of the button SW6 is connected in parallel to the CLO4 line. One end of the button SW11, button SW10, button SW7 and button SW3 are respectively electrically connected to a diode The cathode of D1, and the anodes of these four diodes D1 are connected in parallel to the ROW1 line, the other end of button SW11 is connected in parallel to the CLO0 line, the other end of button SW10 is connected in parallel to the CLO1 line, the other end of button SW7 is connected in parallel to the CLO2 line, and the other end of button SW3 is connected in parallel to the CLO3 line; one end of button SW9, button SW8, button SW16 and button SW5 are respectively electrically connected to the cathode of a diode D2, and the anodes of these four diodes D2 are connected in parallel to the ROW2 line, the other end of button SW9 is connected in parallel to the CLO0 line, the anode of button SW8 is connected in parallel to the CLO3 line. The other end of button SW15 is connected in parallel to the CLO0 line, the other end of button SW17 is connected in parallel to the CLO1 line, the other end of button SW14 is connected in parallel to the CLO2 line, and the other end of button SW4 is connected in parallel to the CLO3 line; one end of button SW15, button SW17, button SW14 and button SW4 are respectively electrically connected to the cathode of a diode D2, and the anodes of these four diodes D2 are all connected in parallel to the ROW3 line, the other end of button SW15 is connected in parallel to the CLO0 line, the other end of button SW17 is connected in parallel to the CLO1 line, the other end of button SW14 is connected in parallel to the CLO2 line, and the other end of button SW4 is connected in parallel to the CLO3 line.

[0034] The data processing module 2 includes a chip U1. The chip U1 can adopt the HK32F030MF4P6 model. Compared with the currently used TCA8418RTWR model, it has a lower price and lower cost. The control signal includes an RXD signal and a TXD signal. The fifth pin of the chip U1 receives the ROW0 signal, the sixth pin of the chip U1 receives the ROW1 signal, the thirteenth pin of the chip U1 receives the ROW2 signal, the fourteenth pin of the chip U1 receives the ROW3 signal, the sixteenth pin of the chip U1 receives the COL4 signal, the seventeenth pin of the chip U1 receives the COL1 signal, the eighteenth pin of the chip U1 receives the COL2 signal, the nineteenth pin of the chip U1 receives the COL3 signal, the twentieth pin of the chip U1 receives the COL0 signal, and the tenth and twelfth pins of the chip U1 transmit the TXD signal and the RXD signal for control.

[0035] The data processing module 2 also includes a socket J10, a resistor R4, a resistor R20, a resistor R19, a resistor R6, a capacitor C1, a capacitor C2, a capacitor C3, a capacitor C4, a capacitor C5 and a capacitor C6. The first pin of the chip U1 receives the INT signal, one end of the resistor R4 is connected in parallel to the first pin of the chip U1, and the other end of the resistor R4 is electrically connected to the 3V end. One end of the button SW2 is electrically connected to the third pin of the chip U1, and the other end of the button SW2 is grounded. One end of the resistor R20 is connected in parallel between the button SW2 and the third pin of the chip U1, and the other end of the resistor R20 is electrically connected to the 3V end. One end of the button SW1 is electrically connected to the fifteenth pin of the chip U1, and the other end of the button SW1 is grounded. One end of the resistor R19 is connected in parallel between the button SW1 and the fifteenth pin of the chip U1, and the other end of the resistor R19 is electrically connected. Connected to the 3V end; the ninth pin of the chip U1 is electrically connected to the 3V end, the resistor R6 is connected in parallel between the ninth pin and the fourth pin of the chip U1, the capacitor C1 is connected in parallel between the fourth pin and the seventh pin of the chip U1, the capacitor C2 is connected in parallel between the seventh pin and the eighth pin of the chip U1, the seventh pin of the chip U1 is grounded, the first pin of the socket J10 is electrically connected to the 3.3V end, the second pin of the socket J10 and the second pin of the chip U1 transmit the SWDIO signal, the third pin of the socket J10 and the eleventh pin of the chip U1 transmit the SWLCK signal, the fourth pin of the socket J10 is grounded, one end of the capacitor C3, one end of the capacitor C4, one end of the capacitor C5 and one end of the capacitor C6 are connected in parallel to the 3V end, the other end of the capacitor C3, the other end of the capacitor C4, the other end of the capacitor C5 and the other end of the capacitor C6 are connected in parallel to ground.

[0036] Lamp module 3 includes resistor R1, resistor R14, resistor R8, resistor R9, resistor R10, resistor R11, resistor R2, resistor R15, resistor R12, resistor R3, resistor R16, resistor R13, diode D9, diode D10, diode D8, diode D7, light-emitting diode D2, light-emitting diode D3, light-emitting diode D4, socket J1, transistor Q1, transistor Q2, transistor Q3, light-emitting diode D1, light-emitting diode D5 and light-emitting diode D6. Diode D8, diode D7, diode D9 and diode D10 can use SS14FL model. Transistor Q1, transistor Q2 and transistor Q3 can use SMMBT2222ALT1G model. Socket J1 uses HEADER 6X2 model specifications; the third and fourth pins of the socket J1 transmit RXD and TXD signals, and realize signal communication with the chip U1. The socket J1 is externally connected to a CPU, MCU or single-chip microcomputer with processing capabilities. The first pin of the socket J1 is electrically connected to the 12V end, the second pin of the socket J1 is electrically connected to the 3V end, the fifth pin of the socket J1 receives the REST signal, the sixth pin of the socket J1 receives the INT signal, the tenth pin of the socket J1 outputs the J6_10 signal, the eleventh pin of the socket J1 outputs the J6_11 signal, and the socket J1 The twelfth pin outputs the J6_12 signal; one end of the resistor R1 receives the J6_10 signal, the other end of the resistor R1 is electrically connected to the base of the transistor Q1, the emitter of the transistor Q1 is grounded, the two ends of the resistor R14 are connected in parallel between the base and emitter of the transistor Q1, the anode of the diode D8 is connected in parallel to the emitter of the transistor Q1, the cathode of the diode D8 is connected in parallel to the collector of the transistor Q1, one end of the resistor R8, one end of the resistor R9, one end of the resistor R10 and one end of the resistor R11 are connected in parallel to the collector of the transistor Q1, and the resistors The other end of resistor R8 is electrically connected to the cathode of light-emitting diode D1, the other end of resistor R9 is electrically connected to the cathode of light-emitting diode D2, the other end of resistor R10 is electrically connected to the cathode of light-emitting diode D3, the other end of resistor R11 is electrically connected to the cathode of light-emitting diode D4, the anodes of light-emitting diode D1, D2, D3, and D4 are connected in parallel to the LED+ terminal, the cathode of diode D7 is connected in parallel to the LED+ terminal, and the anode of diode D7 is electrically connected to the +12V terminal; One end of resistor R2 receives the J6_11 signal, the other end of resistor R2 is electrically connected to the base of transistor Q2, the emitter of transistor Q2 is grounded, two ends of resistor R15 are connected in parallel between the base and emitter of transistor Q2, the anode of diode D9 is connected in parallel to the emitter of transistor Q2, the cathode of diode D9 is connected in parallel to the collector of transistor Q2, one end of resistor R12 is electrically connected to the collector of transistor Q2, the other end of resistor R12 is electrically connected to the cathode of diode D5, and the anode of diode D5 is electrically connected to the LED+ terminal;One end of resistor R3 receives the J6_10 signal. The other end of resistor R3 is electrically connected to the base of transistor Q3. The emitter of transistor Q3 is grounded. Both ends of resistor R16 are connected in parallel between the base and emitter of transistor Q3. The anode of diode D10 is connected in parallel to the emitter of transistor Q3. The cathode of diode D10 is connected in parallel to the collector of transistor Q3. One end of resistor R13 is electrically connected to the collector of transistor Q3. The other end of resistor R13 is electrically connected to the cathode of diode D66. The anode of diode D6 is electrically connected to the LED+ terminal.

[0037] The implementation principle of a car window lift switch circuit in an embodiment of the present application is as follows: after the user presses the button SW, one of the ROW lines will be connected to a COL line, and a high-level ROW signal and COL signal will be output to the chip U1 under the power supply of the 3V end. The chip U1 calculates and determines which button SW is pressed, thereby executing the corresponding action and outputting a signal of the corresponding waveform through the RXD signal and the TXD signal to control the lifting and lowering of the car window.

[0038] Example 1 of the present application discloses a control method for a car window lift switch. Figure 5 , the control method of the automobile window lifting switch includes the following steps: S1. Get ROW signal and COL signal; S11, determine the trigger button data through the ROW signal and the COL signal; S12. Determine and output a control signal based on the trigger button data and a preset control threshold.

[0039] In detail: Chip U1 determines whether the ROW signal and COL signal are connected and received through the high and low levels of the corresponding pins. Assuming that the ROW0 signal is high, the ROW1 signal is low, the COL0 signal is high, and the COL1 signal is low, it means that the ROW0 signal and the COL0 signal are in a high-level conductive state. At this time, the trigger button data is (ROW0 signal, COL0 signal). Assuming the control threshold is (ROW0 signal, COL0 signal, A), (ROW0 signal, COL1 signal, B), it means that action A is executed when the ROW0 signal and the COL0 signal are in a high-level conductive state, and action B is executed when the ROW0 signal and the COL1 signal are in a high-level conductive state. At this time, the trigger button data is (ROW0 signal, COL0 signal), thereby outputting a control signal for executing action A. In this embodiment, the trigger button data is to obtain the control signal by looking up the table within the control threshold. In other embodiments, the control signal can also be obtained by other methods, such as a relational expression.

[0040] Example 1 of the present application discloses a computer-readable storage medium. Figure 1The computer-readable storage medium stores a computer program that can be loaded and executed by a processor to control a method for controlling a vehicle window lift switch.

[0041] Computer-readable storage media include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0042] Example 2: Different from the embodiment 1, the embodiment 2 of the present application discloses a control method for a car window lifting switch. Figure 2 and Figure 6 The control method of the automobile window lift switch further includes the following steps: S2. Obtain timing data, and determine a judgment signal based on the timing data, a preset misjudgment time threshold, multiple ROW signals, and multiple COL signals; S21, determining the test waveform data by judging the signal and the preset test threshold and outputting it; S22, repeatedly obtain the ROW signal and the COL signal; S23, determining row variable data and column variable data by testing waveform data, timing data, multiple ROW signals, and multiple COL signals; S24, determining group data based on the timing data, the row variable data, and the column variable data; S25 , determining a plurality of trigger button data according to the group data, a plurality of ROW signals, and a plurality of COL signals.

[0043] Detailed: Assume that the false positive time threshold is 0.01s, and each received ROW signal or COL signal will record the receiving time. For example, if the ROW1 signal is high and the timing data is 1min0.1s, it means that the high-level ROW1 signal is received at 0.1 seconds of the first minute. If the difference between the timing data corresponding to multiple adjacent ROW signals and COL signals is less than the false positive time threshold, for example, when the timing data is 1min0.1s and 1min0.During the 11s period, if the ROW0 signal, ROW1 signal, COL0 signal and COL1 signal are received at a high level, it means that multiple ROW signals or COL signals are received at the same time. At this time, a problem will arise. For ease of understanding, for example, if the button SW13 and the button SW10 are pressed at the same time, the ROW0 signal, ROW1 signal, COL0 signal and COL1 signal will all be at a high level. If the button SW11 and the button SW12 are pressed at the same time, the ROW0 signal, ROW1 signal, COL0 signal and COL1 signal will also be at a high level. Even if the buttons SW13, SW10, SW11 and SW12 are pressed at the same time, the ROW0 signal, ROW1 signal, COL0 signal and COL1 signal will be at a high level. Pressing will also make the ROW0 signal, ROW1 signal, COL0 signal and COL1 signal at a high level. If there is a sequence, it is easy to judge, and the false judgment time threshold is used to judge whether they are received at the same time. At this time, it is limited by the calculation frequency of the chip U1, and it will be impossible to calculate which button SW is pressed. Therefore, step S21 is entered, and the test threshold is a sequential combination test. If the judgment signal is that the ROW0 signal, ROW1 signal, COL0 signal and COL1 signal are at a high level, then according to the test threshold, it is necessary to first actively reduce the chip U1 pin corresponding to the ROW0 signal and the COL0 signal to a low level, and then restore it, and then the ROW0 signal and the COL1 signal are at a high level. The corresponding chip U1 pin is actively reduced to a low level and then restored. Then the chip U1 pin corresponding to the ROW1 signal and the COL0 signal is actively reduced to a low level and then restored. Then the chip U1 pin corresponding to the ROW1 signal and the COL1 signal is actively reduced to a low level. This process is the test waveform data. The waveform here refers to the high and low level changes of the pin of the chip U1. During this change process, the ROW signal and the COL signal of other pins are repeatedly obtained. Since the ROW signal and the COL signal obtained at this time only retain a high level, accurate trigger button data can be obtained. For example, when the chip U1 pin corresponding to the ROW0 signal and the COL0 signal is actively reduced to a low level, If both the ROW1 and COL1 signals remain high, the group data is (ROW1 signal, COL1 signal), indicating that key SW10 has been pressed. The change in the ROW1 signal is the row variable data, and the change in the COL1 signal is the column variable data. If the ROW1 signal remains high but the COL0 signal changes to a low level, it means that SW12, not SW10, has been pressed. However, since the ROW0 signal is forced to a low level, the COL1 signal is pulled down to a low level. The group data is now (ROW0 signal and COL1 signal). By changing in this order, accurate trigger key data can be obtained while eliminating interference from simultaneous triggering.

[0044] Reference Figure 2 and Figure 7, further comprising the following steps: S3. Determine the current glass state data through all control signals; S31, determining triggering all possible data through multiple ROW signals and multiple COL signals; S32, determining the priority data for changing the state through the current glass state data and the trigger all possible data; S33, determining priority test data by changing the state priority data and the test threshold; S34, replacing the test threshold with the priority test data to determine the test waveform data with the judgment signal and output it; S35. After calculating and determining the trigger button data, determine the troubleshooting data by triggering all possible data and the change state priority data. The troubleshooting data has a lower priority than the judgment signal and the trigger button data. S36. Determine the troubleshooting test data based on the troubleshooting data and the test threshold; S37. The test waveform data is determined and outputted by checking the test data instead of the test threshold value with the judgment signal to obtain the remaining trigger button data.

[0045] In detail: each time a control signal is output, it is recorded, and then the current state of the car glass can be obtained, such as closed, fully open, half open, etc., which is the glass state data. Before entering step S21, step S31 is entered first. At this time, all possible possibilities of triggering buttons SW are calculated by all ROW signals and COL signals triggered simultaneously. For example, if ROW0 signal, ROW1 signal, COL0 signal and COL1 signal are at a high level, then all possibilities include buttons SW13, SW12, SW11 and SW10 being pressed and triggered, which is the triggering of all possible data. Combined with the state of the car glass at this time, for example, button SW13 is for the main driver's car glass to rise, button SW12 is for the co-driver's car glass to rise, button SW11 is for the main driver's car glass to fall, and button SW10 is for the co-driver's car glass to fall, if the current state data of the glass is that the main driver's car glass is closed and the co-driver's car glass is fully open, then the main driver's car glass is falling at this time. It will change the current state of the main driver's car glass. The rising of the co-driver's car glass will change the current state of the co-driver's car glass, that is, buttons SW12 and SW11 will change the current glass state, which is the priority data for changing the state, and then combined with the test threshold, give priority to testing whether buttons SW12 and SW11 are pressed, that is, the original sequential test, at this time, the ROW1 signal and the COL0 signal will be changed to a low level to test the button SW12, and the ROW0 signal and the COL1 signal will be changed to a low level to test the button SW11, which is the test waveform data. If buttons SW12 and SW11 are indeed pressed and triggered, the corresponding trigger button data is obtained for output control, and the troubleshooting data is obtained. The remaining previously untested items are tested again in sequence through the troubleshooting data and the test threshold. If a new button signal is received when the troubleshooting data is being checked and calculated, the new button signal will be processed first, and then the calculation of the troubleshooting data will continue. If the chip U1 used can be processed in parallel, it will be processed simultaneously.

[0046] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A car window lift switch circuit, characterized in that: include: A key module (1) is used for a user to press a key, generate a corresponding key signal and output it; A data processing module (2) receives the key signal, processes the data, and then outputs a corresponding control signal to control the automobile glass; The key module (1) comprises a plurality of ROW lines, a plurality of COL lines and a plurality of key SWs, the plurality of ROW lines and the plurality of COL lines receive power from the same 3V terminal, the key signal comprises a ROW signal and a COL signal, the key SW is electrically connected to at least one of the ROW lines and at least one of the COL lines, different ROW lines output different ROW signals, and different COL lines output different COL signals; The data processing module (2) includes a chip U1, the control signal includes an RXD signal and a TXD signal, the fifth pin, the sixth pin, the thirteenth pin and the fourteenth pin of the chip U1 receive different ROW signals, the sixteenth pin, the seventeenth pin, the eighteenth pin, the nineteenth pin and the twentieth pin of the chip U1 receive different COL signals, and the tenth pin and the twelfth pin of the chip U1 transmit the TXD signal and the RXD signal for control.

2. The automobile window lift switch circuit according to claim 1, characterized in that: The light module (3) further comprises a socket J1, a transistor Q1, a transistor Q2, a transistor Q3, a light emitting diode D1, a light emitting diode D5 and a light emitting diode D6, the third pin and the fourth pin of the socket J1 transmit the RXD signal and the TXD signal, the tenth pin of the socket J1 outputs a J6_10 signal, the eleventh pin of the socket J1 outputs a J6_11 signal, the twelfth pin of the socket J1 outputs a J6_12 signal, and the collector of the transistor Q1 is connected to the light emitting diode D6. The diode D1 receives power from the LED+ end, the base of the transistor Q1 receives the J6_10 signal, the collector of the transistor Q2 receives power from the LED+ end through the light-emitting diode D5, the base of the transistor Q2 receives the J6_11 signal, the collector of the transistor Q3 receives power from the LED+ end through the light-emitting diode D6, the base of the transistor Q3 receives the J6_12 signal, and the emitter of the transistor Q1, the emitter of the transistor Q2, and the emitter of the transistor Q3 are grounded.

3. A method for controlling an automobile window lift switch, using the automobile window lift switch circuit according to claim 1, characterized in that: include: Acquire the ROW signal and the COL signal; Determine trigger key data through the ROW signal and the COL signal; The control signal is determined and outputted based on the trigger button data and a preset control threshold.

4. The control method of a car window lift switch according to claim 3, characterized in that: include: Acquire timing data, and determine a judgment signal according to the timing data, a preset misjudgment time threshold, a plurality of the ROW signals, and a plurality of the COL signals; Determine and output test waveform data based on the judgment signal and a preset test threshold; Repeatedly acquiring the ROW signal and the COL signal; Determine row variable data and column variable data by using the test waveform data, the timing data, a plurality of the ROW signals, and a plurality of the COL signals; Determine group data by using the timing data, the row variable data, and the column variable data; A plurality of trigger button data are determined according to the group data, a plurality of the ROW signals, and a plurality of the COL signals.

5. The control method of a vehicle window lift switch according to claim 4, characterized in that: include: Determine current glass state data through all the control signals; Determine triggering all possible data by using a plurality of the ROW signals and a plurality of the COL signals; Determine the state change priority data by using the current glass state data and the trigger all-possible data; Determining priority test data by using the change state priority data and the test threshold; The test waveform data is determined and outputted by using the priority test data instead of the test threshold and the judgment signal; After calculating and determining the trigger button data, determining the screening data by using the trigger all-possible data and the change state priority data, wherein the priority of the screening data is lower than that of the judgment signal and the trigger button data; Determine the troubleshooting test data by using the troubleshooting data and the test threshold; The test waveform data is determined and outputted by replacing the test threshold with the screening test data to obtain the remaining trigger button data.

6. A computer-readable storage medium, characterized in that The device stores a computer program that can be loaded by a processor and execute the control method of the automobile window lifting switch according to any one of claims 3 to 5.

Citation Information

Patent Citations

  • Automobile intelligent window switch based on LIN bus port

    CN103216170A

  • Control method and device of vehicle-mounted key assembly, vehicle and storage medium

    CN115503624A

  • Automobile glass direction switch circuit with locked-rotor protection and control method thereof

    CN117878839A

  • Self-reset switch control LED normally-on circuit and control method thereof

    CN117939733A

  • Automobile glass lifting anti-pinch system and method and storage medium thereof

    CN119393025A