Key sensor open and short circuit detection system, method and device, chip and medium

By using the touch detection module and the reference button sensor in the button sensor detection system, efficient and accurate short-circuit detection is achieved, and the problems of low efficiency and poor accuracy of manual detection in the prior art are solved.

CN119471473APending Publication Date: 2025-02-18SHENZHEN AIXIESHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411674350.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, the open short circuit detection of the button sensor relies on manual testing, and there are problems of misjudgment, missed detection and low efficiency.

Method used

A button sensor open short circuit detection system is provided, including a touch detection module, a button sensor to be detected and a button sensor. By switching the channel of the reference button sensor to the connection GND mode, the capacitance voltage sampling of the button sensor to be detected, it is determined whether the sampling value is in the preset range, and if it is not present, it is determined to be a short circuit.

Benefits of technology

It realizes efficient, accurate and objective short-circuit detection of key sensors, improves detection efficiency and accuracy, and reduces manual misjudgment and missed detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119471473A_ABST
    Figure CN119471473A_ABST
Patent Text Reader

Abstract

The invention relates to a key sensor open and short circuit detection method and system, a detection chip and a storage medium. The method comprises the following steps: switching a channel of a reference key sensor to a GND connection mode; carrying out capacitor voltage sampling on the to-be-detected key sensor to obtain a first sampling value S1; whether the first sampling value S1 is in a preset sampling value range or not is judged, if the first sampling value S1 is in the preset sampling value range, the to-be-detected key sensor is not short-circuited, and if the first sampling value S1 is smaller than the preset sampling value range, the to-be-detected key sensor is short-circuited. By adopting the method, the open and short circuit detection of the to-be-detected key sensor can be efficiently, accurately and objectively completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of touch sensing technology, and in particular to a key sensor open-circuit and short-circuit detection system, method, device, detection chip and storage medium. Background Art

[0002] Touch buttons are commonly used in home appliances, and touch is usually sensed by corresponding capacitive sensors. Capacitive sensor open and short circuit detection during production is the key to ensuring the quality of touch buttons. Currently, manual testing is used during production and assembly to test whether the buttons are working properly. Due to the subjectivity of manual testing, misjudgment and missed tests may occur, and the efficiency is not high.

[0003] In summary, there is an urgent need for a key sensor open-short circuit detection method that can effectively improve detection efficiency and accuracy and is objective in detection. Summary of the invention

[0004] Based on this, it is necessary to provide a key sensor open and short circuit detection system, method, device, detection chip and storage medium that can effectively improve detection efficiency and accuracy and detect objectively in order to solve the above technical problems.

[0005] A key sensor open-short circuit detection system, the system comprises: a touch detection module, a key sensor to be detected and a reference key sensor, the key sensor to be detected and the reference key sensor are both electrically connected to the touch detection module, and the reference key sensor extends and is placed near the key sensor to be detected or surrounds the key sensor to be detected.

[0006] In one embodiment, the sensing area of ​​the reference key sensor is no larger than 1 / 2 of the sensing area of ​​the key sensor to be detected.

[0007] A method for detecting an open or short circuit of a key sensor, the method comprising:

[0008] Switch the channel of the reference button sensor to the GND connection mode;

[0009] Sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1;

[0010] It is determined whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

[0011] In one embodiment, the method further comprises:

[0012] Switching the channel of the reference button sensor to a floating mode;

[0013] Sampling the capacitance voltage of the key sensor to be detected to obtain a second sampling value S2;

[0014] Switch the channel of the reference button sensor to the GND connection mode;

[0015] Sampling the capacitance voltage of the key sensor to be detected to obtain a third sampling value S3;

[0016] Obtaining an absolute difference D1 according to the second sampling value S2 and the third sampling value S3;

[0017] It is determined whether the absolute difference D1 is greater than a preset threshold value T1. If the absolute difference D1 is greater than the preset threshold value T1, the key sensor to be detected is in a non-open circuit state; otherwise, the key sensor to be detected is in an open circuit state.

[0018] In one of the embodiments, the preset threshold T1 is set according to the actual designed module test situation.

[0019] In one embodiment, the method further comprises:

[0020] After the reference key sensor is swapped with the key sensor to be detected, the above method is executed to complete the open-short circuit detection of the reference key sensor.

[0021] A key sensor open-short circuit detection device, the device comprising:

[0022] A first switching module, used for switching the channel of the reference button sensor to a GND connection mode;

[0023] A first sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1;

[0024] The first judgment module is used to judge whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited. In one embodiment, the device further includes:

[0025] A second switching module, used for switching the channel of the reference button sensor to a floating mode;

[0026] A second sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a second sampling value S2;

[0027] A third switching module, used to switch the channel of the reference button sensor to a GND connection mode;

[0028] A third sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a third sampling value S3;

[0029] A difference calculation module, used for obtaining an absolute difference D1 according to the second sampling value S2 and the third sampling value S3;

[0030] The second judgment module is used to judge whether the absolute difference D1 is greater than a preset threshold T1. If the absolute difference D1 is greater than the preset threshold T1, the key sensor to be detected is in a non-open circuit state; otherwise, the key sensor to be detected is in an open circuit state.

[0031] A detection chip includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] Switch the channel of the reference button sensor to the GND connection mode;

[0033] Sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1;

[0034] It is determined whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

[0035] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0036] Switch the channel of the reference button sensor to the GND connection mode;

[0037] Sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1;

[0038] It is determined whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

[0039] The above-mentioned key sensor open-short circuit detection system, method, device, detection chip and storage medium can efficiently, accurately and objectively complete the open-short circuit detection of the key sensor to be detected by switching the channel of the reference key sensor to the GND connection mode; sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1; judging whether the first sampling value S1 is within a preset sampling value range, if the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited, and if the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a structural schematic diagram of a key sensor open and short circuit detection system in one embodiment.

[0041] Figure 2 FIG. 1 is a schematic diagram of an extension of a reference button sensor in an embodiment.

[0042] Figure 3 It is a schematic diagram of extending a reference button sensor in another embodiment.

[0043] Figure 4 The figure is a flow chart of a key sensor open-short circuit detection method in one embodiment.

[0044] Figure 5 It is a flowchart of a key sensor open-short circuit detection method in another embodiment.

[0045] Figure 6 It is a structural block diagram of a key sensor open-short circuit detection device in one embodiment.

[0046] Figure 7 FIG. 4 is a diagram showing the internal structure of a detection chip in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] In one embodiment, Figure 1 As shown, a key sensor open-short circuit detection system is provided, which can be applied to Figure 1In the application environment shown. Wherein, the system includes: a touch detection module 1, a key sensor 2 to be detected and a reference key sensor 3, wherein the key sensor 2 to be detected and the reference key sensor 3 are both electrically connected to the touch detection module 1, and the reference key sensor 3 is extended and placed near the key sensor 2 to be detected or surrounds the key sensor 2 to be detected. Specifically, the touch detection module 1 includes an ADC conversion circuit, a floating circuit and a grounding circuit, and is led to two external interfaces through an internal switch, and the two external interfaces are respectively connected to the key sensor 2 to be detected and the reference key sensor 3 through wires. Wherein, the reference key sensor 3 functions as a normal button and is a carrier for changing the environmental changes of the key sensor 2 to be detected, that is, when the reference key sensor 3 is in a grounded state or a floating state, the capacitance of the key sensor 2 to be detected to the ground changes. Conversely, after the swap, the key sensor 2 to be detected can also be used as a carrier for environmental changes of the reference key sensor 3. The extended sensing area of ​​the reference key sensor 3 is not greater than 1 / 2 of the sensing area of ​​the key sensor 2 to be detected. Wherein, as Figure 2 As shown, the blank box on the left is the capacitive sensor of the key sensor 2 to be detected, and the shaded box on the right is the capacitive sensor of the reference key sensor extension 3, and the extended part of the reference key sensor extension 3 is placed near the key sensor 2 to be detected, and the extended sensing area is not greater than 1 / 2 of the sensing area of ​​the reference key sensor extension 3 itself; Figure 3 As shown, the blank box on the left is the capacitive sensor of the key sensor 2 to be detected, and the shaded box on the right is the capacitive sensor of the reference key sensor extension 3, and the extended sensor of the reference key sensor extension 3 surrounds the key sensor 2 to be detected, and the extended sensing area is not greater than 1 / 2 of the sensing area of ​​the reference key sensor extension 3 itself.

[0049] In one embodiment, Figure 4 As shown, a key sensor open-short circuit detection method is provided, and the method is applied to Figure 1 The touch detection module in FIG. 1 is taken as an example to illustrate the method, which includes the following steps:

[0050] Step S401, switching the channel of the reference button sensor to a GND connection mode.

[0051] In this embodiment, the touch detection module switches the channel of the reference key sensor to the GND connection mode. GND represents the ground line or zero line, which is usually used as a common reference point in the circuit to provide a stable potential reference.

[0052] Step S402: sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1.

[0053] In this embodiment, the first sampling value is a capacitance voltage sampling value of the key sensor to be detected when the key sensor is connected to GND. The touch detection module samples the capacitance voltage of the key sensor to be detected to obtain the first sampling value S1.

[0054] Step S403, determining whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

[0055] In this embodiment, the preset sampling value range is a preset sampling value range, which can be set according to experience or experimental data. The touch detection module determines whether the first sampling value S1 is within the preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited. Since the reference key sensor is in a state of being connected to GND, if the key sensor to be detected is short-circuited with it, the capacitor is not fully charged, and most of it flows away through GND. Therefore, the first sampling value S1 will be significantly lower than the normal value, and it can be determined whether there is a short circuit.

[0056] It should be noted that by swapping the key sensor to be detected with the reference key sensor and executing steps S401 to S403 , it is possible to detect whether the reference key sensor has a short circuit.

[0057] In the above-mentioned button sensor open-short circuit detection method, by switching the channel of the reference button sensor to the GND connection mode; sampling the capacitance voltage of the button sensor to be detected to obtain a first sampling value S1; judging whether the first sampling value S1 is in a preset sampling value range, if the first sampling value S1 is in the preset sampling value range, the button sensor to be detected is not short-circuited, and if the first sampling value S1 is less than the preset sampling value range, the button sensor to be detected is short-circuited, thereby efficiently, accurately and objectively completing the open-short circuit detection of the button sensor to be detected.

[0058] In another embodiment, Figure 5 As shown, a key sensor open-short circuit detection method is provided, and the method is applied to Figure 1 The touch detection module in FIG. 1 is taken as an example to illustrate the method, which includes the following steps:

[0059] Step S501, switching the channel of the reference button sensor to a floating mode.

[0060] In this embodiment, the floating input mode is an input mode used for the GPIO (general purpose input and output) port of the chip. In this mode, the pull-up and pull-down resistors of the GPIO pin are turned off, the pin is in a high impedance state, and the input signal is completely determined by the outside without the influence of the internal resistor. The touch detection module switches the channel of the reference key sensor to the floating mode.

[0061] Step S502, sampling the capacitance voltage of the key sensor to be detected to obtain a second sampling value S2.

[0062] In this embodiment, the second sampling value S2 is the capacitance voltage sampling value of the key sensor to be detected when the channel of the reference key sensor is switched to the floating mode. The touch detection module samples the capacitance voltage of the key sensor to be detected to obtain the second sampling value S2

[0063] Step S503, switching the channel of the reference button sensor to a GND connection mode.

[0064] In this embodiment, the touch detection module switches the channel of the reference button sensor to the GND connection mode again.

[0065] Step S504: sampling the capacitance voltage of the key sensor to be detected to obtain a third sampling value S3.

[0066] In this embodiment, the third sampling value is a capacitance voltage sampling value of the key sensor to be detected when the key sensor is connected to GND. The touch detection module performs capacitance voltage sampling on the key sensor to be detected to obtain a third sampling value S3. Step S505, obtain an absolute difference D1 according to the second sampling value S2 and the third sampling value S3.

[0067] In this embodiment, the absolute difference D1 reflects the change of the sampling value of the key sensor to be detected under different conditions of the reference key sensor, and is obtained by subtracting the second sampling value S2 from the third sampling value S3 and taking the absolute value. The touch detection module obtains the absolute difference D1 according to the second sampling value S2 and the third sampling value S3.

[0068] Step S506, determining whether the absolute difference D1 is greater than a preset threshold value T1, if the absolute difference D1 is greater than the preset threshold value T1, the key sensor to be detected is in a non-open circuit state, otherwise the key sensor to be detected is in an open circuit state.

[0069] In this embodiment, the preset threshold value T1 is a threshold value pre-set according to the actual design of the module test situation. When the reference button sensor is in a floating state, it is assumed that the capacitance of the button sensor to be detected to the ground is C1; when the reference button sensor is in a GND state, the capacitance of the button sensor to be detected to the ground increases to C2; when the button sensor to be detected is connected normally, the capacitance of the button sensor to the ground changes, and the capacitance voltage sampling value will also change accordingly, and the two sampling values ​​will change; when the button sensor to be detected has an open circuit (the capacitance sensor of the button sensor to be detected is not connected to the detection chip pin), the reference button sensor is in a floating or GND state, which has no effect on the button sensor to be detected, and the two sampling values ​​are almost unchanged; thereby identifying whether the button sensor to be detected has an open circuit.

[0070] It should be noted that by swapping the key sensor to be detected with the reference key sensor and executing steps S501 to S506, it is possible to detect whether the reference key sensor has an open circuit.

[0071] It should be understood that although Figure 4-5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 4-5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0072] In one embodiment, Figure 6 As shown, a key sensor open-short circuit detection device is provided, comprising: a first switching module 61, a first sampling module 62 and a first judgment module 63, wherein:

[0073] A first switching module 61, used to switch the channel of the reference button sensor to a GND connection mode;

[0074] A first sampling module 62, used for sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1;

[0075] The first judgment module 63 is used to judge whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited; if the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

[0076] Furthermore, the device also includes:

[0077] A second switching module, used for switching the channel of the reference button sensor to a floating mode;

[0078] A second sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a second sampling value S2;

[0079] A third switching module, used to switch the channel of the reference button sensor to a GND connection mode;

[0080] A third sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a third sampling value S3;

[0081] A difference calculation module, used for obtaining an absolute difference D1 according to the second sampling value S2 and the third sampling value S3;

[0082] The second judgment module is used to judge whether the absolute difference D1 is greater than a preset threshold T1. If the absolute difference D1 is greater than the preset threshold T1, the key sensor to be detected is in a non-open circuit state; otherwise, the key sensor to be detected is in an open circuit state.

[0083] Furthermore, the preset threshold T1 is set according to the actual designed module test situation.

[0084] Furthermore, after the reference key sensor is swapped with the key sensor to be detected, the open-short circuit detection of the reference key sensor can be completed.

[0085] For the specific definition of the key sensor open-short circuit detection device, please refer to the definition of the key sensor open-short circuit detection method above, which will not be repeated here. Each module in the above-mentioned key sensor open-short circuit detection device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the detection chip in the form of hardware, or can be stored in the memory in the detection chip in the form of software, so that the processor can call and execute the corresponding operations of the above modules.

[0086] In one embodiment, a detection chip is provided, and its internal structure diagram can be as follows: Figure 7As shown. The detection chip includes a processor and a memory connected through a system bus. The processor of the detection chip is used to provide computing and control capabilities. The memory of the detection chip includes a non-volatile storage medium. The non-volatile storage medium stores a computer program. The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a key sensor open-short circuit detection method is implemented.

[0087] Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the detection chip to which the scheme of the present application is applied. The specific detection chip may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0088] In one embodiment, a detection chip is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0089] Switch the channel of the reference button sensor to the GND connection mode;

[0090] Sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1;

[0091] It is determined whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

[0092] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0093] Switch the channel of the reference button sensor to the GND connection mode;

[0094] Sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1;

[0095] It is determined whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0097] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0098] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A key sensor open-short circuit detection system, characterized in that: The system includes: a touch detection module, a key sensor to be detected and a reference key sensor, wherein the key sensor to be detected and the reference key sensor are both electrically connected to the touch detection module, and the reference key sensor is extended and placed near the key sensor to be detected or surrounds the key sensor to be detected.

2. The system according to claim 1, characterized in that The sensing area of ​​the reference key sensor is no greater than 1 / 2 of the sensing area of ​​the key sensor to be detected.

3. A key sensor open-short circuit detection method, applicable to the above touch detection module, characterized in that: The method comprises: Switch the channel of the reference button sensor to the GND connection mode; Sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1; It is determined whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited. If the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

4. The method according to claim 3, characterized in that The method further comprises: Switching the channel of the reference button sensor to a floating mode; Sampling the capacitance voltage of the key sensor to be detected to obtain a second sampling value S2; Switch the channel of the reference button sensor to the GND connection mode; Sampling the capacitance voltage of the key sensor to be detected to obtain a third sampling value S3; Obtaining an absolute difference D1 according to the second sampling value S2 and the third sampling value S3; It is determined whether the absolute difference D1 is greater than a preset threshold value T1. If the absolute difference D1 is greater than the preset threshold value T1, the key sensor to be detected is in a non-open circuit state; otherwise, the key sensor to be detected is in an open circuit state.

5. The method according to claim 4, characterized in that The preset threshold T1 is set according to the actual module test situation.

6. The method according to any one of claims 3 to 5, characterized in that: The method further comprises: After the reference key sensor is swapped with the key sensor to be detected, the method according to any one of claims 3 to 5 is performed to complete the open-short circuit detection of the reference key sensor.

7. A key sensor open-short circuit detection device, characterized in that: The device comprises: A first switching module, used for switching the channel of the reference button sensor to a GND connection mode; A first sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a first sampling value S1; The first judgment module is used to judge whether the first sampling value S1 is within a preset sampling value range. If the first sampling value S1 is within the preset sampling value range, the key sensor to be detected is not short-circuited; if the first sampling value S1 is less than the preset sampling value range, the key sensor to be detected is short-circuited.

8. The device according to claim 7, characterized in that The device also includes: A second switching module, used for switching the channel of the reference button sensor to a floating mode; A second sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a second sampling value S2; A third switching module, used to switch the channel of the reference button sensor to a GND connection mode; A third sampling module, used for sampling the capacitance voltage of the key sensor to be detected to obtain a third sampling value S3; A difference calculation module, used for obtaining an absolute difference D1 according to the second sampling value S2 and the third sampling value S3; The second judgment module is used to judge whether the absolute difference D1 is greater than a preset threshold T1. If the absolute difference D1 is greater than the preset threshold T1, the key sensor to be detected is in a non-open circuit state; otherwise, the key sensor to be detected is in an open circuit state.

9. A detection chip, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 3 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 3 to 6 are implemented.