Pressure detection method, detection device, chip and electronic equipment

By using capacitive sensors for pressure detection, the existing pressure sensors have solved the problems of high cost and high resource utilization, and achieved low-cost and efficient pressure detection results.

CN119718107APending Publication Date: 2025-03-28SHANGHAI AWINIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411869659.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing pressure sensors have high manufacturing costs and occupy a large number of pins and ports on the main control chip, resulting in high hardware costs and excessive resource utilization.

Method used

By performing pressure detection using a capacitance sensor, capacitance data of the first capacitance sensor and the second capacitance sensor are obtained, the capacitance change amount is calculated, and the detection result is determined based on a preset threshold value, thereby achieving pressure detection.

Benefits of technology

It reduces hardware costs and reduces the use of detection chip resources, and is also suitable for various pressure detection scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718107A_ABST
    Figure CN119718107A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of pressure detection, in particular to a pressure detection method and device, a chip and electronic equipment. The method comprises the following steps: acquiring first capacitance data of a first capacitance sensor and second capacitance data of a second capacitance sensor; determining a first capacitance variable quantity of the first capacitance sensor based on capacitance data at a first moment and capacitance data at a second moment in the first capacitance data; based on the first capacitance variable quantity and a preset first capacitance variable quantity threshold value, determining a first detection result of the first capacitance sensor; determining a second capacitance variable quantity of the second capacitance sensor based on capacitance data at a third moment and capacitance data at a fourth moment in the second capacitance data; based on the second capacitance variable quantity and a preset second capacitance variable quantity threshold value, determining a second detection result of the second capacitance sensor; and determining a pressure detection result according to the first detection result and the second detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of pressure detection technology, and in particular to a pressure detection method, a detection device, a chip and an electronic device. Background Art

[0002] At present, pressure sensing devices are widely used in electronic devices such as smart glasses, TWS headphones, watches, bracelets, game consoles, etc., and their purpose is to detect user operations such as pressing or touching. For example, a user presses a specific area of ​​a game console to activate a corresponding function. In general, pressure sensors can be used to detect user operations such as pressing or touching. Among them, the working principle of the pressure sensor is: when external pressure is applied, the internal resistance value will change, and then the changed resistance value will be converted into a voltage signal, and then the voltage signal is used to determine whether there is a pressing operation or the pressure is calculated according to the voltage value. However, the manufacturing cost of existing pressure sensors is relatively high, and they occupy a large number of pins and ports of the main control chip. As Figure 1 As shown in , the pressure sensor needs to occupy the power supply voltage VCC terminal, P pin and N pin of the pressure detection chip, resulting in occupying more resources of the pressure detection chip. Summary of the invention

[0003] The embodiments of the present application provide a pressure detection method, a detection device, a chip and an electronic device, which determine the pressure detection result by analyzing the capacitance data of the capacitive sensor.

[0004] In the first aspect, the embodiment of the present application provides a pressure detection method, which is applied to electronic devices. The method obtains first capacitance data of a first capacitance sensor and second capacitance data of a second capacitance sensor; determines a first capacitance change of the first capacitance sensor based on capacitance data at a first moment and capacitance data at a second moment in the first capacitance data; determines a first detection result of the first capacitance sensor based on the first capacitance change and a preset first capacitance change threshold; determines a second capacitance change of the second capacitance sensor based on capacitance data at a third moment and capacitance data at a fourth moment in the second capacitance data; determines a second detection result of the second capacitance sensor based on the second capacitance change and a preset second capacitance change threshold; determines a pressure detection result according to the first detection result and the second detection result.

[0005] It is understood that the first capacitance data and the second capacitance data obtained above can be stored in a preset storage method. In some embodiments, the first moment and the second moment can be determined according to the first storage amount, and the third moment and the third moment can be determined according to the second storage amount. Among them, the first storage amount and the second storage amount can be the same or different, and the specific first storage amount and the second storage amount can be reasonably set according to actual needs, and are not limited here.

[0006] It can be understood that compared with pressure sensors, capacitive sensors occupy fewer pins and ports and are low in cost. That is, when pressure detection is performed based on capacitive sensors, not only can the hardware cost be reduced, but also the resources of the pressure detection chip are occupied less.

[0007] In a possible implementation of the first aspect above, obtaining first capacitance data of the first capacitance sensor and second capacitance data of the second capacitance sensor includes: detecting that the amount of stored first capacitance data satisfies a first storage amount, deleting capacitance data at an earliest time in the first capacitance data, and sequentially filling and adjusting capacitance data after the capacitance data at the earliest time in the first capacitance data; detecting that the amount of stored second capacitance data satisfies a second storage amount, deleting capacitance data at an earliest time in the second capacitance data, and sequentially filling and adjusting capacitance data after the capacitance data at the earliest time in the second capacitance data.

[0008] In a possible implementation of the first aspect above, the method also includes: determining a first capacitance change of the first capacitance sensor based on capacitance data at a first moment and capacitance data at a second moment in the first capacitance data, including: determining the first moment and the second moment according to a first storage amount of the stored first capacitance data, and the first moment and the second moment are non-continuous moments; determining a first difference between the capacitance data at a first moment and the capacitance data at a second moment in the first capacitance data, and using the first difference as the first capacitance change.

[0009] In a possible implementation of the first aspect above, the method also includes: determining a first detection result of the first capacitance sensor based on the first capacitance change and a preset first capacitance change threshold, including: when the first capacitance change is greater than or equal to the first capacitance change threshold, determining that the first detection result of the first capacitance sensor is that pressure is detected; when the first capacitance change is less than the first capacitance change threshold, determining that the first detection result of the first capacitance sensor is that no pressure is detected.

[0010] In a possible implementation of the first aspect above, the method also includes: determining a second capacitance change of the second capacitance sensor based on capacitance data at a third moment and capacitance data at a fourth moment in the second capacitance data, including: determining the third moment and the fourth moment according to a second storage amount of the stored second capacitance data, and the third moment and the fourth moment are non-continuous moments; determining a second difference between the capacitance data at the third moment and the capacitance data at the fourth moment in the second capacitance data, and using the second difference as the second capacitance change.

[0011] In a possible implementation of the first aspect above, the method also includes: determining a second detection result of the second capacitance sensor based on a second capacitance change and a preset second capacitance change threshold, including: when the second capacitance change is greater than or equal to the second capacitance change threshold, determining that the second detection result of the second capacitance sensor is that pressure is detected; when the second capacitance change is less than the second capacitance change threshold, determining that the second detection result of the second capacitance sensor is that no pressure is detected.

[0012] In a possible implementation of the first aspect above, the method also includes: determining a pressure detection result based on the first detection result and the second detection result, including: when the first detection result and the second detection result are both pressure detected, determining that the pressure detection result is a pressure event; when the first detection result is pressure detected and the second detection result is no pressure detected, determining that the pressure detection result is no pressure event; when the first detection result is no pressure detected and the second detection result is pressure detected, determining that the pressure detection result is no pressure event.

[0013] In a possible implementation of the first aspect above, the method also includes: determining a second detection result of the second capacitance sensor based on a second capacitance change and a preset second capacitance change threshold, including: when the first detection result is detection of pressure, within a first preset time length, determining the second detection result of the second capacitance sensor based on the second capacitance change and a preset second capacitance change threshold.

[0014] In a possible implementation of the first aspect above, the method also includes: when the first detection result is pressure detection, within a first preset time length, based on the second capacitance change and a preset second capacitance change threshold, determining a second detection result of the second capacitance sensor, including: the first detection result is pressure detection, within the first preset time length, when the second capacitance change is greater than or equal to the second capacitance change threshold, determining that the second detection result of the second capacitance sensor is pressure detection; the first detection result is pressure detection, within the first preset time length, when the second capacitance change is less than the second capacitance change threshold, determining that the second detection result of the second capacitance sensor is no pressure detection.

[0015] In a second aspect, an embodiment of the present application provides a pressure detection device, which includes: a controller, a first capacitance sensor and a second capacitance sensor, the controller includes: an acquisition module, a calculation module, and a detection module, wherein the acquisition module is used to acquire first capacitance data of the first capacitance sensor and second capacitance data of the second capacitance sensor; the calculation module is used to determine a first capacitance change of the first capacitance sensor based on capacitance data at a first moment and capacitance data at a second moment in the first capacitance data, and is used to determine a second capacitance change of the second capacitance sensor based on capacitance data at a third moment and capacitance data at a fourth moment in the second capacitance data; the detection module is used to determine a first detection result of the first capacitance sensor based on the first capacitance change and a preset first capacitance change threshold, and is used to determine a second detection result of the second capacitance sensor based on the second capacitance change and a preset second capacitance change threshold; and determine the pressure detection result according to the first detection result and the second detection result.

[0016] In a possible implementation of the first aspect above, the pressure detection device also includes an outer shell structure, a U-shaped groove is formed on the outer shell structure, the first capacitive sensor is arranged on the first inner wall of the U-shaped groove, and the second capacitive sensor is arranged on the second inner wall of the U-shaped groove, wherein the first inner wall and the second inner wall are arranged opposite to each other.

[0017] In a third aspect, the present application provides a chip, which includes the above-mentioned pressure detection device.

[0018] In a fourth aspect, the present application provides an electronic device comprising the above-mentioned chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 According to an embodiment of the present application, a schematic diagram of connecting a pressure sensor and a detection chip is shown;

[0020] Figure 2 According to an embodiment of the present application, a schematic diagram of connecting a capacitive sensor and a detection chip is shown;

[0021] Figure 3 According to an embodiment of the present application, a schematic diagram of a capacitive data storage method of a first capacitive sensor is shown;

[0022] Figure 4 According to an embodiment of the present application, a flow chart of a pressure detection method is shown;

[0023] Figure 5a According to an embodiment of the present application, a schematic diagram of a housing structure is shown;

[0024] Figure 5b According to an embodiment of the present application, a schematic diagram of another housing structure is shown;

[0025] Figure 6 According to an embodiment of the present application, a schematic diagram of capacitance data of applying a slow force to a capacitance sensor is shown;

[0026] Figure 7 According to an embodiment of the present application, a schematic diagram of capacitance change when a slow force is applied to a capacitive sensor is shown;

[0027] Figure 8 According to an embodiment of the present application, a schematic diagram of capacitance data when a rapid force is applied to a capacitance sensor is shown;

[0028] Fig. 9 According to an embodiment of the present application, a schematic diagram of the capacitance change when a rapid force is applied to a capacitive sensor is shown;

[0029] Fig.10 According to an embodiment of the present application, a flow chart of another pressure detection method is shown;

[0030] Fig.11 According to an embodiment of the present application, a module schematic diagram of a detection device is shown;

[0031] Fig.12 According to an embodiment of the present application, a structural schematic diagram of an electronic device 10 is provided. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0033] As mentioned above, in the existing pressure detection scheme, the manufacturing cost of the pressure sensor used to detect the user's pressing or touching operation is high, and it occupies a large number of pins and channels of the main control chip. Therefore, how to provide a method of using a capacitive sensor to simulate a pressure sensor for pressure detection is an urgent problem to be solved.

[0034] In order to solve the above problems, the present application provides a pressure detection method, which is applied to electronic devices. Specifically, the method obtains the first capacitance data of the first capacitance sensor and the second capacitance data of the second capacitance sensor, and determines the first capacitance change of the first capacitance sensor based on the capacitance data at the first moment and the capacitance data at the second moment in the first capacitance data. Further, based on the first capacitance change and the preset first capacitance change threshold, the first detection result of the first capacitance sensor is determined. Then, based on the capacitance data at the third moment and the capacitance data at the fourth moment in the second capacitance data, the second capacitance change of the second capacitance sensor is determined. Further, based on the second capacitance change and the preset second capacitance change threshold, the second detection result of the second capacitance sensor is determined. Finally, the pressure detection result is determined based on the first detection result and the second detection result.

[0035] It can be understood that compared with pressure sensors, capacitive sensors occupy fewer pins and ports and are less expensive. Figure 2 As shown, the capacitive sensor only needs to occupy the CS end of the pressure detection chip. When performing pressure detection based on the above method, not only can the hardware cost be reduced, but also the resources of the pressure detection chip are occupied less. At the same time, this method is also applicable to various pressure detection scenarios.

[0036] In some embodiments, the first capacitance data of the first capacitance sensor can be stored in the electronic device in the following storage method: the electronic device detects that the number corresponding to the stored first capacitance data satisfies the first storage capacity, deletes the capacitance data at the earliest moment in the first capacitance data, and stores the capacitance data at the Nth moment in the storage position corresponding to the capacitance data at the N-1th moment, shifts the capacitance data at the N-1th moment and stores it in the storage position corresponding to the capacitance data at the N-2th moment, shifts the capacitance data at the N-2th moment and stores it in the storage position corresponding to the capacitance data at the N-3th moment, and so on, that is, the capacitance data after the capacitance data at the earliest moment in the first capacitance data are filled and adjusted in sequence.

[0037] For example, Figure 3 As shown, taking the first capacitance sensor as an example, when the number of the first capacitance data collected meets the first storage capacity, that is, when eight capacitance data are collected and stored, the first capacitance data C0 is deleted, and the eighth to second capacitance data after the first capacitance data C0 are sequentially supplemented and adjusted, such as C7 is shifted to the original position of C6, and finally the newly collected ninth capacitance data C8 is stored in the original position of C7. It can be understood that the above-mentioned first storage capacity can be reasonably set according to actual needs and is not limited here.

[0038] In some embodiments, the second capacitance data of the second capacitance sensor can be stored in the electronic device in the following storage method: the electronic device detects that the number corresponding to the stored second capacitance data satisfies the second storage capacity, deletes the capacitance data at the earliest moment in the second capacitance data, and stores the capacitance data at the Nth moment in the storage position corresponding to the capacitance data at the N-1th moment, shifts the capacitance data at the N-1th moment and stores it in the storage position corresponding to the capacitance data at the N-2th moment, shifts the capacitance data at the N-2th moment and stores it in the storage position corresponding to the capacitance data at the N-3th moment, and so on, that is, the capacitance data after the capacitance data at the earliest moment in the second capacitance data are filled and adjusted in sequence.

[0039] In some embodiments, the first moment and the second moment are non-consecutive moments. Figure 3 As shown, taking the first capacitance sensor as an example, when the first moment is T1 and the second moment is T8, the first capacitance change is C7-C0; or, when the first moment is T n-8 The second moment is T n When the first capacitance changes, C (n-1) -C (n-8) In other embodiments, the first capacitance change may also be C (n-1) -C (n-7) , C (n-1) -C (n-6) Etc., or other settings may be made based on the first storage amount, which are not limited here.

[0040] In some embodiments, the third moment and the fourth moment are non-continuous moments. For details, please refer to the description of the first moment and the second moment, which will not be repeated here.

[0041] Combine the following Figure 4 The specific implementation process of the pressure detection method provided in the embodiment of the present application is described in detail.

[0042] Figure 4 According to an embodiment of the present application, a flow chart of a pressure detection method is shown. It can be understood that Figure 4 Each step of the process shown in the figure is performed by an electronic device. Figure 4 The execution entities of each step will not be described repeatedly in the steps of the process shown. Figure 4 As shown, the process includes but is not limited to the following steps:

[0043] 401: Acquire first capacitance data of a first capacitance sensor and second capacitance data of a second capacitance sensor.

[0044] For example, the first capacitive sensor and the second capacitive sensor may be Figure 5aThe electronic device is mounted on the housing structure (such as a key housing) of the electronic device. Figure 5a As shown, the outer shell structure is formed with a U-shaped groove. For example, the outer shell structure may be a U-shaped structure, the first capacitive sensor is adhered to the first inner wall of the U-shaped groove in the outer shell structure, the second capacitive sensor is adhered to the second inner wall of the U-shaped groove in the outer shell structure, and the first inner wall and the second inner wall are arranged opposite to each other, that is, the first capacitive sensor and the second capacitive sensor are respectively arranged on the two opposite inner walls of the U-shaped groove. Further, as Figure 5b As shown, the first capacitive sensor and the second capacitive sensor can be pressured by force A and force B at the same time or at different times. The first capacitance data and the second capacitance data of the first capacitive sensor and the second capacitive sensor are changed by applying pressure. In some embodiments, in order to facilitate the pressing operation, the material of the above-mentioned shell structure can be plastic or other non-metallic materials, and the structure of the above-mentioned shell structure can be a planar structure or other structure, and at least one capacitive sensor is included on the shell structure.

[0045] In some embodiments, Figure 3 As shown, taking the first capacitance sensor as an example, the first capacitance data can be stored in the electronic device in the following manner: when the number of the collected first capacitance data meets the first storage capacity, that is, when eight capacitance data are collected and stored, the first capacitance data C0 is deleted, and the eighth to second capacitance data after the first capacitance data C0 are adjusted in sequence, such as C7 is shifted to the original position of C6, and finally the ninth capacitance data C8 is stored in the original position of C7, that is, the capacitance data after the earliest capacitance data C0 in the first capacitance data are adjusted in sequence. It can be understood that the storage method of the second capacitance data is the same as that of the first capacitance data, and it will not be repeated here.

[0046] 402: Determine a first capacitance change of a first capacitance sensor based on capacitance data at a first moment and capacitance data at a second moment in the first capacitance data.

[0047] For example, Figure 5b As shown, when the applied force A acts slowly on the first capacitance sensor, the corresponding change of the first capacitance data can be seen in Figure 6 As shown. Figure 6 As shown, the vertical axis is capacitance value and the horizontal axis is time. Figure 6 The middle dotted line C1 is the variation trend of the first capacitance data under the slow action of force A. It can be understood that when pressure acts on the capacitance sensor, the capacitance value of the first capacitance sensor will increase. When the pressure acting on the capacitance sensor is withdrawn, the increased capacitance value gradually decreases until it returns to the capacitance value corresponding to the pressure-free state. Figure 6As shown, when the applied force A acts slowly on the first capacitive sensor, the first capacitive data (ie, the capacitance value of the first capacitive sensor) first increases slowly and then decreases slowly.

[0048] In some embodiments, a first difference between the capacitance data at the second moment and the capacitance data at the first moment in the first capacitance data is calculated, and the first difference is used as the first capacitance change amount. The first moment and the second moment are non-continuous moments. Specifically, the first moment and the second capacitance moment can be determined based on the first storage amount, referring to the above Figure 3 As shown, when the first storage amount is data of 8 moments, the first moment is T1, the second moment is T8, and the corresponding first capacitance change is C7-C0; when the first moment is T n-8 The second moment is T n When the first capacitance change is C (n-1) -C (n-8) In other embodiments, the above difference calculation method can also be that when the first storage amount is data at 7 moments, the corresponding first capacitance change C (n-1) -C (n-7) When the first storage amount is data of 6 moments, the corresponding first capacitance change C (n-1) -C (n-6) , which is not limited here. When the applied force A acts slowly on the first capacitive sensor, the corresponding change in the first capacitance change can be seen in Figure 7 As shown. Figure 7 As shown, the vertical axis is the capacitance change and the horizontal axis is time. Figure 7 The middle dotted line deltal1 is the change trend of the first capacitance change under the slow action of force A. The first capacitance change first increases slowly and then decreases slowly.

[0049] For example, Figure 5b As shown, when force A acts quickly on the first capacitance sensor, the corresponding change of the first capacitance data can be as follows: Figure 8 As shown, the corresponding change in the first capacitance change can be seen in Fig. 9 As shown. Figure 8 As shown, the vertical axis is capacitance value and the horizontal axis is time. Figure 8 The middle dashed line C1 is the change trend of the first capacitance data under the rapid action of force A. The first capacitance data (the capacitance value of the first capacitance sensor) first increases rapidly and then decreases rapidly. Fig. 9 As shown, the vertical axis is the capacitance change and the horizontal axis is time. Fig. 9 The middle dotted line deltal1 is the change trend of the first capacitance change under the rapid action of force A. The first capacitance change first increases rapidly and then decreases rapidly.

[0050] 403: Determine a first detection result of the first capacitance sensor based on the first capacitance change and a preset first capacitance change threshold.

[0051] It can be understood that the first capacitance change is calculated according to step 402. When the first capacitance change is greater than or equal to the first capacitance change threshold, it is determined that the first detection result of the first capacitance sensor is that pressure is detected; when the first capacitance sensor is less than the first capacitance change threshold, it is determined that the first detection result of the first capacitance sensor is that no pressure is detected. The above-mentioned preset first capacitance change threshold can be reasonably set according to an empirical value and is not limited here.

[0052] 404: Determine a second capacitance change of the second capacitance sensor based on the capacitance data at the third moment and the capacitance data at the fourth moment in the second capacitance data.

[0053] For example, Figure 5b As shown, when the applied force B acts slowly on the first capacitance sensor, the corresponding change of the second capacitance data is shown in FIG. Figure 6 As shown. Figure 6 As shown, the vertical axis is capacitance value and the horizontal axis is time. Figure 6 The solid line C2 is the variation trend of the capacitance data of the second capacitance sensor under the slow action of force B. It can be understood that when pressure acts on the second capacitance sensor, the capacitance value of the second capacitance sensor will increase. When the pressure acting on the second capacitance sensor is withdrawn, the increased capacitance value gradually decreases until it returns to the capacitance value corresponding to the pressure-free state. Figure 6 As shown, when the applied force B acts slowly on the second capacitive sensor, the second capacitive data (capacitance value of the second capacitive sensor) first increases slowly and then decreases slowly.

[0054] In some embodiments, the second difference between the capacitance data at the third moment and the capacitance data at the fourth moment in the second capacitance data is calculated, and the second difference is used as the second capacitance change. The third moment and the fourth moment are discontinuous moments. The preset difference calculation method can be the same as the difference calculation method corresponding to the first capacitance change described in step 402, or can be other reasonable settings, which are not limited here. When the applied force B acts slowly on the second capacitance sensor, the corresponding change in the second capacitance change can be seen in Figure 7 As shown. Figure 7 As shown, the vertical axis is the capacitance change and the horizontal axis is time. Figure 7 The solid line deltal2 is the variation trend of the second capacitance variation under the slow action of force B. The second capacitance variation first increases slowly and then decreases slowly.

[0055] For example, Figure 5bAs shown, when force B acts quickly on the second capacitance sensor, the corresponding change of the second capacitance data can be as follows: Figure 8 As shown, the corresponding change in the second capacitance change can be seen in Fig. 9 As shown. Figure 8 As shown, the vertical axis is capacitance value and the horizontal axis is time. Figure 8 The solid line C2 is the change trend of the second capacitance data under the rapid action of force B. The second capacitance data (the numerical capacitance value of the capacitance data of the second capacitance sensor) first increases rapidly and then decreases rapidly. Fig. 9 As shown, the vertical axis is the capacitance change and the horizontal axis is time. Fig. 9 The solid line deltal2 is the variation trend of the second capacitance variation under the rapid action of force B, and the second capacitance variation first increases rapidly and then decreases rapidly.

[0056] 405: Determine a second detection result of the second capacitance sensor based on the second capacitance change and a preset second capacitance change threshold.

[0057] It can be understood that the second capacitance change is calculated according to step 404. When the second capacitance change is greater than or equal to the second capacitance change threshold, the second detection result of the second capacitance sensor is determined to be pressure detection; when the second capacitance sensor is less than the second capacitance change threshold, the second detection result of the second capacitance sensor is determined to be no pressure detection. The above-mentioned preset second capacitance change threshold can be reasonably set according to an empirical value.

[0058] In other embodiments, when the first detection result is that pressure is detected, the timing starts, and within the first preset time, based on the second capacitance change and the preset second capacitance change threshold, the second detection result of the second capacitance sensor is determined. Specifically, when the first detection result is that pressure is detected, within the first preset time, when the second capacitance change is greater than or equal to the second capacitance change threshold, the second detection result of the second capacitance sensor is determined to be that pressure is detected. Alternatively, when the first detection result is that pressure is detected, within the first preset time, when the second capacitance sensor is less than the second capacitance change threshold, the second detection result of the second capacitance sensor is determined to be that no pressure is detected.

[0059] In other embodiments, when the second detection result is that pressure is detected, the timing may be started, and within the first preset time period, based on the first capacitance change and the preset first capacitance change threshold, the first detection result of the first capacitance sensor may be determined. Specifically, when the second detection result is that pressure is detected, within the first preset time period, when the first capacitance change is greater than or equal to the first capacitance change threshold, the first detection result of the first capacitance sensor may be determined to be that pressure is detected. Alternatively, when the second detection result is that pressure is detected, within the first preset time period, when the first capacitance sensor is less than the first capacitance change threshold, the first detection result of a capacitance sensor may be determined to be that no pressure is detected.

[0060] Exemplarily, the first preset time length may be 0 or any other time length. That is, when the first detection result or the second detection result is a detection pressure, the second detection result or the first detection result may be determined at the same time or within a certain time T, where T is greater than zero.

[0061] 406: Determine a pressure detection result according to the first detection result and the second detection result.

[0062] It can be understood that when both the first detection result and the second detection result are pressure detection, the pressure detection result is determined to be a pressure event; when the first detection result is pressure detection and the second detection result is no pressure detection, the pressure detection result is determined to be no pressure event; when the first detection result is no pressure detection and the second detection result is pressure detection, the pressure detection result is determined to be no pressure event.

[0063] In some embodiments, the above-mentioned pressure detection method can also be applied to a single capacitive sensor, that is, judging whether there is pressure on the capacitive sensor based on the capacitance change of the capacitive sensor, for example, step 403 and step 403 respectively determine the first detection result and the second detection result of the first capacitive sensor and the second capacitive sensor, etc.

[0064] It can be understood that based on the above method, one or more capacitive sensors are used to simulate the pressure detection method, and the capacitance change of one or more capacitive sensors within a period of time is used to determine whether there is pressure on the capacitive sensor, thereby comprehensively determining whether there is a pressing action (pressure event). In addition, compared with pressure sensors, capacitive sensors occupy fewer pins and ports and are low in cost, which reduces the requirements of pressure sensors on product housing structures and reduces the occupation of pin resources of detection chips. At the same time, it also greatly reduces the hardware cost and technical implementation cost of realizing pressure sensor detection, thereby reducing the cost of end-customer products.

[0065] Fig.10 According to an embodiment of the present application, a flow chart of another pressure detection method is shown. It can be understood that Fig.10 Each step of the process shown in the figure is performed by an electronic device. Fig.10 The execution entities of each step will not be described repeatedly in the steps of the process shown. Fig.10 As shown, the process includes but is not limited to the following steps:

[0066] 1001: Collect capacitance data of a first capacitance sensor and a second capacitance sensor.

[0067] Exemplarily, the specific method of collecting the capacitance data of the first capacitance sensor and the second capacitance sensor can refer to the relevant description in the above step 401, which will not be described in detail here.

[0068] 1002: Calculate a first capacitance change deltal1 and a second capacitance change deltal2.

[0069] Exemplarily, the corresponding capacitance variation deltal is calculated according to the capacitance data of the first capacitance sensor and the second capacitance sensor acquired in step 1001 .

[0070] It can be understood that the preset difference calculation method calculates the first capacitance change deltal1 and the second capacitance change deltal2. The preset difference calculation method can refer to the relevant descriptions in step 402 and step 404, which will not be described in detail here.

[0071] 1003: Determine whether the first capacitance variation deltal1 is greater than or equal to a first capacitance variation threshold TH1.

[0072] It can be understood that when the first capacitance change deltal1 is greater than or equal to the first capacitance change threshold TH1, step 1004 is executed to output the corresponding first detection result; when the first capacitance change deltal1 is less than the first capacitance change threshold TH1, step 1005 is executed to output the corresponding first detection result.

[0073] 1004: The first capacitive sensor detects pressure and outputs a first detection result P1=1.

[0074] It can be understood that when the first capacitance variation deltal1 is greater than or equal to the first capacitance variation threshold TH1, the first capacitance sensor detects pressure and outputs a first detection result P1 = 1. In other examples, the first detection result P1 can be any set data or other special signs, which is not limited here.

[0075] 1005: The first capacitive sensor does not detect pressure and outputs a first detection result P1=0

[0076] Exemplarily, when the first capacitance variation deltal1 is less than the first capacitance variation threshold TH1, the first capacitance sensor detects pressure and outputs a first detection result P1=0.

[0077] 1006: Determine whether the second capacitance variation deltal2 is greater than or equal to a second capacitance variation threshold TH2.

[0078] It can be understood that when the second capacitance change deltal2 is greater than or equal to the second capacitance change threshold TH2, step 1007 is executed to output the corresponding second detection result; when the second capacitance change deltal2 is less than the second capacitance change threshold TH2, step 1008 is executed to output the corresponding second detection result.

[0079] 1007: The second capacitive sensor detects pressure and outputs a second detection result P2=1.

[0080] It can be understood that when the second capacitance variation deltal2 is greater than or equal to the second capacitance variation threshold TH2, the second capacitance sensor detects pressure and outputs a second detection result P2 = 1. In other examples, the second detection result P2 can be any set data or other special signs, which are not limited here.

[0081] 1008: The second capacitive sensor does not detect pressure and outputs a second detection result P2=0

[0082] Exemplarily, when the second capacitance variation deltal2 is less than the second capacitance variation threshold TH2, the second capacitance sensor detects pressure and outputs a second detection result P2=0.

[0083] 1009: Determine whether the detection result satisfies the first detection result P1=1 and the second detection result P2=1.

[0084] It can be understood that when the detection result does not satisfy the first detection result P1=1 and the second detection result P2=1, step 1010 is executed to further judge the detection result; when the detection result satisfies the first detection result P1=1 and the second detection result P2=1, step 1011 is executed to determine that there is a press event.

[0085] 1010: Determine whether the detection result satisfies the first detection result P1=1 or the second detection result P2=1.

[0086] It can be understood that when the detection result does not satisfy the first detection result P1=1 and the second detection result P2=1, it is further determined whether the detection result satisfies the first detection result P1=1 or the second detection result P2=1. When the detection result satisfies the first detection result P1=1 or the second detection result P2=1, step 1012 is executed to determine whether the timing duration is less than the first preset duration T; when the detection result does not satisfy the first detection result P1=1 or the second detection result P2=1, steps 1001 to 1009 are executed. 1011: Determine whether a press or touch operation is detected, and report the press or touch event.

[0087] It can be understood that when the detection result satisfies the first detection result P1=1 and the second detection result P2=1, it is determined that a press or touch operation is detected, and the press or touch event is reported. In other embodiments, the operation mode corresponding to the above pressure can be further determined by adjusting the values ​​of the first capacitance change threshold TH1 and the second capacitance change threshold TH2, such as a long press operation, a touch operation, etc., which is not limited here.

[0088] 1012: Determine whether the first preset duration is less than the duration T.

[0089] It can be understood that when the detection result satisfies the first detection result P1=1 or the second detection result P2=1, it is determined whether the timing duration is less than the first preset duration T.

[0090] When the timing duration is less than the first preset duration, execute step 1001 to continue detecting the pressure; when the timing duration is greater than or equal to the first preset duration, execute step 1013 to reset the detection results and timing duration of the first capacitive sensor and the second capacitive sensor.

[0091] 1013: Reset the detection results and timing duration of the first capacitive sensor and the second capacitive sensor.

[0092] It can be understood that when the timing duration is greater than or equal to the first preset duration, the detection results of the first capacitive sensor and the second capacitive sensor and the timing duration are reset. At this time, the electronic device executes step 1001 to re-perform pressure detection.

[0093] In some embodiments, the above steps 401 to 406 and steps 1001 to 1013 may be performed by: Fig.11 Each module in the detection device is implemented. Fig.11 According to an embodiment of the present application, a module schematic diagram of a detection device is shown.

[0094] like Fig.11As shown, the detection device includes a controller, a first capacitive sensor and a second capacitive sensor, wherein the controller includes an acquisition module 1101 , a calculation module 1102 and a detection module 1103 .

[0095] The acquisition module 1101 is used to acquire the first capacitance data of the first capacitance sensor and the second capacitance data of the second capacitance sensor. For details, please refer to the description of the above-mentioned step 401 and step 1001, which will not be repeated here.

[0096] The calculation module 1102 is used to determine the first capacitance change of the first capacitance sensor based on the capacitance data at the first moment and the capacitance data at the second moment in the first capacitance data, and to determine the second capacitance change of the second capacitance sensor based on the capacitance data at the third moment and the capacitance data at the fourth moment in the second capacitance data. For details, please refer to the description of the aforementioned steps 402, 404 and step 1002, which will not be repeated here.

[0097] The detection module 1103 is used to determine the first detection result of the first capacitance sensor based on the first capacitance change and the preset first capacitance change threshold, and to determine the second detection result of the second capacitance sensor based on the second capacitance change and the preset second capacitance change threshold, and to determine the pressure detection result according to the first detection result and the second detection result. For details, please refer to the description of the aforementioned steps 403, 405, 406 and steps 1003 to 1013, which will not be repeated here.

[0098] In some embodiments, the detection device further comprises a housing structure. Figure 5a As shown, a U-shaped groove is formed on the outer shell structure, the first capacitive sensor is arranged on the first inner side wall of the U-shaped groove, the second capacitive sensor is adhered to the second inner side wall of the U-shaped groove in the outer shell structure, and the first inner side wall and the second inner side wall are arranged opposite to each other, that is, the first capacitive sensor and the second capacitive sensor are respectively arranged on the two opposite inner side walls of the U-shaped groove. It can be understood that the material of the outer shell structure can be plastic or other non-metallic materials; the structure of the outer shell structure can also be a planar structure or other structures; the outer shell structure can also be individually provided with one capacitive sensor or more than three capacitive sensors, without specific limitation.

[0099] The present application embodiment also provides an electronic device 10 for performing the above Figure 1 The pressure detection method shown. Fig.12 According to an embodiment of the present application, a structural schematic diagram of an electronic device 10 is provided.

[0100] like Fig.12As shown, the electronic device 10 includes one or more processors 101, a system memory 102, a non-volatile memory (NVM) 103, an input / output (I / O) device 104, a communication interface 105, and a system control logic 106 for coupling the processor 101, the system memory 102, the non-volatile memory 103, the communication interface 105 and the input / output (I / O) device 104. Among them:

[0101] The processor 101 may include one or more processing units, for example, a central processing unit CPU (central processing unit), an image processor GPU (graphics processing unit), a digital signal processor DSP (digital signal processor), a microprocessor MCU (micro-programmed control unit), artificial intelligence (artificial intelligence, AI), a processor or a programmable logic device FPGA (fieldprogrammable gate array), a neural network processor (Neural-network Processing Unit, NPU), etc. The data processing unit or processing circuit may include one or more single-core or multi-core processors.

[0102] The system memory 102 is a volatile memory, such as a random-access memory (RAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), etc. The system memory is used to temporarily store data and / or instructions. For example, in some embodiments, the system memory 102 can be used to store capacitor data.

[0103] The non-volatile memory 103 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, the non-volatile memory 103 may include any suitable non-volatile memory such as a flash memory and / or any suitable non-volatile storage device, such as a hard disk drive (HDD), a compact disc (CD), a digital versatile disc (DVD), a solid-state drive (SSD), etc. In some embodiments, the non-volatile memory 103 may also be a removable storage medium, such as a secure digital (SD) memory card, etc.

[0104] In particular, the system memory 102 and the non-volatile memory 103 may respectively include: a temporary copy and a permanent copy of the instruction 107. The instruction 107 may include: when executed by at least one of the processors 101, the electronic device 10 implements the pressure detection method provided in each embodiment of the present application.

[0105] The communication interface 105 may include a transceiver for providing a wired or wireless communication interface for the electronic device 10, and then communicating with any other suitable device through one or more networks. In some embodiments, the communication interface 105 may be integrated into other components of the electronic device 10, for example, the communication interface 105 may be integrated into the processor 101. In some embodiments, the electronic device 10 can communicate with other devices through the communication interface 105.

[0106] The input / output (I / O) device 104 may include input devices such as a keyboard, a mouse, etc., and output devices such as a display, etc. A user may interact with the electronic device 10 via the input / output (I / O) device 104 .

[0107] System control logic 106 may include any suitable interface controller to provide any suitable interface with other modules of electronic device 10. For example, in some embodiments, system control logic 106 may include one or more memory controllers to provide interfaces to system memory 102 and non-volatile memory 103.

[0108] In some embodiments, at least one of the processors 101 may be packaged together with the logic of one or more controllers for the system control logic 106 to form a system in package (SiP). In other embodiments, at least one of the processors 101 may also be integrated with the logic of one or more controllers for the system control logic 106 on the same chip to form a system-on-chip (SOC).

[0109] Understandably, Fig.12 The structure of the electronic device 10 shown is only an example. In other embodiments, the electronic device 10 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware, which is not limited here.

[0110] The embodiment of the present application further provides a chip, the chip includes a pressure detection device. In some embodiments, the electronic device 10 includes the chip.

[0111] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer module or module code executed on a programmable system, and the programmable system includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0112] The module code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0113] Module code can be implemented with high-level modular language or object-oriented programming language to communicate with the processing system. When necessary, module code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0114] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0115] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a specific figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features. Reference to "one embodiment" or "embodiment" in the specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one exemplary embodiment or technology disclosed according to the embodiment of the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.

[0116] The disclosure of the embodiment of the present application also relates to an operating device for executing the text. The device can be specially constructed for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.

[0117] It should also be stated that the steps in the methods and processes in the embodiments of the present application are numbered for ease of reference, rather than to limit the order of precedence. If there is an order between the steps, the text description shall prevail.

[0118] In addition, the language used in this specification has been primarily selected for readability and instructional purposes and may not be selected to describe or limit the disclosed subject matter. Therefore, the present application embodiment disclosure is intended to illustrate rather than limit the scope of the concepts discussed herein.

Claims

1. A pressure detection method, applied to electronic equipment, characterized in that: The method comprises: Acquire first capacitance data of the first capacitance sensor and second capacitance data of the second capacitance sensor; determining a first capacitance change of the first capacitance sensor based on capacitance data at a first moment and capacitance data at a second moment in the first capacitance data; Determining a first detection result of the first capacitance sensor based on the first capacitance change and a preset first capacitance change threshold; determining a second capacitance change of the second capacitance sensor based on capacitance data at a third moment and capacitance data at a fourth moment in the second capacitance data; Determining a second detection result of the second capacitance sensor based on the second capacitance change and a preset second capacitance change threshold; A pressure detection result is determined according to the first detection result and the second detection result.

2. The method according to claim 1, characterized in that The acquiring first capacitance data of the first capacitance sensor and second capacitance data of the second capacitance sensor comprises: It is detected that the amount of the first capacitance data stored satisfies the first storage amount, the capacitance data at the earliest time in the first capacitance data is deleted, and the capacitance data after the capacitance data at the earliest time in the first capacitance data are sequentially supplemented and adjusted; It is detected that the amount of the stored second capacitance data meets the second storage capacity, the capacitance data at the earliest time in the second capacitance data is deleted, and the capacitance data after the capacitance data at the earliest time in the second capacitance data is sequentially supplemented and adjusted.

3. The method according to claim 1, characterized in that The determining the first capacitance change of the first capacitance sensor based on the capacitance data at the first moment and the capacitance data at the second moment in the first capacitance data includes: Determine the first moment and the second moment according to a first storage amount of the first capacitance data stored, and the first moment and the second moment are non-continuous moments; A first difference between the capacitance data at the first moment and the capacitance data at the second moment in the first capacitance data is determined, and the first difference is used as a first capacitance variation.

4. The method according to claim 3, characterized in that The determining, based on the first capacitance change and a preset first capacitance change threshold, a first detection result of the first capacitance sensor includes: When the first capacitance change is greater than or equal to the first capacitance change threshold, determining that the first detection result is detection of pressure; When the first capacitance change is less than the first capacitance change threshold, it is determined that the first detection result is that no pressure is detected.

5. The method according to claim 1, characterized in that The determining the second capacitance change of the second capacitance sensor based on the capacitance data at the third moment and the capacitance data at the fourth moment in the second capacitance data includes: Determine the third moment and the fourth moment according to the second storage amount of the stored second capacitance data, wherein the third moment and the fourth moment are non-continuous moments; A second difference between the capacitance data at the third moment and the capacitance data at the fourth moment in the second capacitance data is determined, and the second difference is used as the second capacitance variation.

6. The method according to claim 5, characterized in that The determining, based on the second capacitance change and a preset second capacitance change threshold, a second detection result of the second capacitance sensor includes: When the second capacitance change is greater than or equal to a second capacitance change threshold, determining that the second detection result is pressure detection; When the second capacitance change is less than a second capacitance change threshold, it is determined that the second detection result is that no pressure is detected.

7. The method according to any one of claims 1 to 6, characterized in that: The determining the pressure detection result according to the first detection result and the second detection result includes: When both the first detection result and the second detection result detect pressure, determining that the pressure detection result is a pressure event; When the first detection result is that pressure is detected and the second detection result is that pressure is not detected, determining that the pressure detection result is that there is no pressure event; When the first detection result is that no pressure is detected and the second detection result is that pressure is detected, it is determined that the pressure detection result is that there is no pressure event.

8. The method according to claim 1, characterized in that: The determining, based on the second capacitance change and a preset second capacitance change threshold, a second detection result of the second capacitance sensor includes: When the first detection result is that pressure is detected, within a first preset time period, a second detection result of the second capacitance sensor is determined based on the second capacitance change and a preset second capacitance change threshold.

9. The method according to claim 8, characterized in that When the first detection result is that pressure is detected, determining a second detection result of the second capacitance sensor based on the second capacitance change and a preset second capacitance change threshold within a first preset time period includes: The first detection result is detection of pressure, and within the first preset time period, when the second capacitance change is greater than or equal to a second capacitance change threshold, it is determined that the second detection result of the second capacitance sensor is detection of pressure; The first detection result is that pressure is detected. Within the first preset time period, when the second capacitance change is less than a second capacitance change threshold, it is determined that the second detection result of the second capacitance sensing is that no pressure is detected.

10. A pressure detection device, characterized in that: The device comprises: a controller, a first capacitive sensor and a second capacitive sensor, wherein the controller comprises: an acquisition module, a calculation module and a detection module, wherein: The acquisition module is used to acquire first capacitance data of the first capacitance sensor and second capacitance data of the second capacitance sensor; The calculation module is used to determine a first capacitance change of the first capacitance sensor based on capacitance data at a first moment and capacitance data at a second moment in the first capacitance data, and is used to determine a second capacitance change of the second capacitance sensor based on capacitance data at a third moment and capacitance data at a fourth moment in the second capacitance data; The detection module is used to determine a first detection result of the first capacitance sensor based on the first capacitance change and a preset first capacitance change threshold, and to determine a second detection result of the second capacitance sensor based on the second capacitance change and a preset second capacitance change threshold, and to determine a pressure detection result based on the first detection result and the second detection result.

11. The device according to claim 10, characterized in that The pressure detection device also includes an outer shell structure, a U-shaped groove is formed on the outer shell structure, the first capacitive sensor is arranged on the first inner wall of the U-shaped groove, and the second capacitive sensor is arranged on the second inner wall of the U-shaped groove, wherein the first inner wall and the second inner wall are arranged opposite to each other.

12. A chip, characterized in that: The chip includes the pressure detection device as claimed in claim 10.

13. An electronic device, characterized in that: A chip comprising the chip described in claim 12.