Contact detection device and method
By using temperature sensing circuits and logic processing circuits in the contact detection equipment, the contact state between the contact detection equipment and the target object is determined based on the ambient temperature parameters, and the existing optical path reflection method is solved, and the problem of high detection errors is achieved, thereby achieving higher detection accuracy and cost reduction.
Patent Information
- Application Number
- CN202010278855.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-10
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2040-04-10
AI Technical Summary
The existing method of contact detection through the principle of optical path reflection is susceptible to ambient light interference, with large detection errors, and no effective solution has been proposed.
The contact detection device including a temperature sensing circuit and a logic processing circuit is adopted to obtain ambient temperature parameters through the temperature sensing circuit. The logic processing circuit extracts temperature characteristic parameters based on these parameters, and determines that the contact detection device and the target object are not in contact when these parameters are not within the preset range.
It improves the detection accuracy of the contact detection equipment, reduces costs, and solves the problem that the optical path reflection method is susceptible to ambient light interference and has large detection errors.
Smart Images

Figure CN111522398B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of sensor technology, and in particular to a contact detection device and method. Background Art
[0002] With the development of semiconductor technology, wearable devices are increasingly used in all aspects of life. In order to realize the interaction between wearable devices and users, it is necessary to detect whether the device is in contact with biological tissues, and on this basis, realize the power consumption control and adaptive signal accuracy of the device. In related technologies, contact detection is mainly based on photoelectric sensors, which use the principle of light path reflection. However, this method is relatively expensive, easily affected by ambient light, and has large detection errors.
[0003] In view of the problem in related technologies that contact detection based on the principle of light path reflection is easily disturbed by ambient light and has large detection errors, no effective solution has been proposed so far. Summary of the invention
[0004] In view of the problem in the related art that contact detection based on the principle of light path reflection is easily disturbed by ambient light and has large detection errors, the present invention provides a contact detection device and method to at least solve the above problems.
[0005] According to one aspect of the present invention, there is provided a contact detection device, the contact detection device comprising a temperature sensing circuit and a logic processing circuit, the temperature sensing circuit and the logic processing circuit being electrically connected;
[0006] The contact detection device obtains the ambient temperature parameter through the temperature sensing circuit;
[0007] The logic processing circuit extracts a temperature characteristic parameter according to the ambient temperature parameter, and determines that the contact detection device is not in contact with the target object when the temperature characteristic parameter is not within a preset range; or
[0008] When the ambient temperature parameter is not within a preset range, the logic processing circuit determines that the contact detection device is not in contact with the target object.
[0009] In one of the embodiments, the temperature sensing circuit includes a thermistor and a reference resistor;
[0010] The thermistor and the reference resistor are connected in series to form a series circuit, wherein one end of the series circuit is grounded, the other end of the series circuit is connected to a power supply, a common end of the thermistor and the reference resistor is connected to the logic processing circuit, the temperature sensing circuit outputs a target voltage, and the target voltage is input into the logic processing circuit as the ambient temperature parameter.
[0011] In one embodiment, the thermistor is a negative temperature coefficient thermistor, and the reference resistor is a positive temperature coefficient thermistor and / or a fixed resistor.
[0012] In one embodiment, the logic processing circuit includes a first switch circuit, a second switch circuit and a logic AND circuit;
[0013] The output end of the temperature sensing circuit is respectively connected to the negative end of the first switch circuit and the positive end of the second switch circuit, the positive end of the first switch circuit is set to a high voltage threshold, the negative end of the second switch circuit is set to a low voltage threshold, and the output end of the first switch circuit and the output end of the second switch circuit are connected to the logic AND circuit.
[0014] In one embodiment, the temperature sensing circuit includes a first temperature sensor, the logic processing circuit includes a signal processing unit, the first temperature sensor is located on a side of the contact detection device facing the target object, and the contact detection device obtains a first temperature sequence through the first temperature sensor.
[0015] In one embodiment, the signal processing unit obtains an average temperature according to the first temperature sequence, and when the average temperature is not within a preset temperature range, the signal processing unit determines that the contact detection device is not in contact with the target object; or
[0016] The signal processing unit obtains a temperature change parameter according to the first temperature sequence, and when the temperature change parameter satisfies a contact judgment condition, the signal processing unit determines that the contact detection device is in contact with the target object, wherein the contact judgment condition is that a preset proportion of the temperature change parameter is greater than a preset change threshold; or
[0017] The signal processing unit obtains a temperature fluctuation parameter of the first temperature sequence, and when the temperature fluctuation parameter of the first temperature sequence is greater than a first preset fluctuation threshold, the signal processing unit determines that the contact detection device contacts the target object.
[0018] In one of the embodiments, the signal processing unit obtains an average temperature according to the first temperature sequence, and when the average temperature is within a preset temperature range, the signal processing unit obtains a temperature change parameter according to the first temperature sequence;
[0019] When the temperature change parameter does not meet the contact judgment condition, the signal processing unit obtains the temperature fluctuation parameter of the first temperature sequence, and when the temperature fluctuation parameter of the first temperature sequence is greater than a first preset fluctuation threshold, the signal processing unit determines that the contact detection device contacts the target object, wherein the contact judgment condition is that a preset proportion of the temperature change parameters is greater than a preset change threshold.
[0020] In one of the embodiments, the contact detection device further comprises a heat source, the heat source and the first temperature sensor are located on the same side of the contact detection device, and the heat source generates heat according to a preset frequency;
[0021] The signal processing unit obtains thermal response parameters through the first temperature sensor, and determines whether the contact detection device is located in the air, on the surface of the target object, or in contact with the target object according to the thermal response parameters, wherein the thermal response parameters include thermal response time and thermal response amplitude.
[0022] In one embodiment, the temperature sensing circuit further includes a second temperature sensor, and the first temperature sensor and the second temperature sensor are located on different sides of the contact detection device:
[0023] The second temperature sensor acquires a second temperature sequence, and when the difference between an average temperature of the second temperature sequence and an average temperature of the first temperature sequence is less than a preset contact threshold, the signal processing unit acquires a temperature fluctuation parameter of the second temperature sequence;
[0024] In a case where a difference between the temperature fluctuation parameter of the second temperature sequence and the temperature fluctuation parameter of the first temperature sequence is greater than a second preset fluctuation threshold, the signal processing unit determines that the contact detection device contacts the target object.
[0025] In one of the embodiments, the first temperature sensor acquires a reference temperature sequence before acquiring the first temperature sequence, the signal processing unit extracts reference characteristic parameters according to the reference temperature sequence, and obtains the preset range according to the reference characteristic parameters.
[0026] According to another aspect of the present invention, there is provided a contact detection method, the method comprising:
[0027] Step S1: contacting the detection device to obtain ambient temperature parameters;
[0028] Step S2: obtaining a temperature characteristic parameter according to the ambient temperature parameter, and determining that the contact detection device is not in contact with the target object when the temperature characteristic parameter is not within a preset range; or
[0029] When the ambient temperature parameter is not within the preset range, it is determined that the contact detection device is not in contact with the target object.
[0030] In one embodiment, the step S1 comprises:
[0031] The contact detection device acquires a first temperature sequence through a first temperature sensor, and the first temperature sensor is located on a side of the contact detection device facing the target object.
[0032] In one embodiment, the step S2 comprises:
[0033] Obtaining an average temperature according to the first temperature sequence, and determining that the contact detection device is not in contact with the target object when the average temperature is not within a preset temperature range; or
[0034] obtaining a temperature change parameter according to the first temperature sequence, and determining that the contact detection device is in contact with the target object when the temperature change parameter satisfies a contact judgment condition, wherein the contact judgment condition is that a preset proportion of the temperature change parameter is greater than a preset change threshold; or
[0035] A temperature fluctuation parameter of the first temperature sequence is obtained, and when the temperature fluctuation parameter of the first temperature sequence is greater than a first preset fluctuation threshold, it is determined that the contact detection device is in contact with the target object.
[0036] In one embodiment, the step S2 comprises:
[0037] Obtaining an average temperature according to the first temperature sequence;
[0038] When the average temperature is within a preset temperature range, obtaining a temperature change parameter according to the first temperature sequence;
[0039] When the temperature change parameter does not meet the contact judgment condition, obtaining the temperature fluctuation parameter of the first temperature sequence, wherein the contact judgment condition is that a preset proportion of the temperature change parameters is greater than a preset change threshold;
[0040] When the temperature fluctuation parameter of the first temperature sequence is greater than a first preset fluctuation threshold, it is determined that the contact detection device is in contact with the target object.
[0041] In one embodiment, before determining whether the contact detection device is in contact with the target object, the method further includes:
[0042] A reference temperature sequence is acquired, a reference characteristic parameter is extracted according to the reference temperature sequence, and the preset range is obtained according to the reference characteristic parameter.
[0043] In one embodiment, the contact detection device further includes a heat source, the heat source and the first temperature sensor are located on the same side of the contact detection device, the heat source generates heat according to a preset frequency, and the step S2 includes:
[0044] A thermal response parameter is acquired by the first temperature sensor, and it is determined according to the thermal response parameter whether the contact detection device is located in the air, on the surface of the target object, or in contact with the target object, wherein the thermal response parameter includes a thermal response time and a thermal response amplitude.
[0045] In one embodiment, the step S2 comprises:
[0046] Obtaining an average temperature and a temperature fluctuation parameter of the first temperature sequence according to the first temperature sequence;
[0047] Acquire a second temperature sequence through a second temperature sensor, and obtain an average temperature of the second temperature sequence according to the second temperature sequence;
[0048] When the difference between the average temperature of the second temperature sequence and the average temperature of the first temperature sequence is less than a preset contact threshold, obtaining a temperature fluctuation parameter of the second temperature sequence;
[0049] When the difference between the temperature fluctuation parameter of the second temperature sequence and the temperature fluctuation parameter of the first temperature sequence is greater than a second preset fluctuation threshold, it is determined that the contact detection device contacts the target object.
[0050] Through the present invention, the contact detection device includes a temperature sensing circuit and a logic processing circuit, the temperature sensing circuit and the logic processing circuit are electrically connected, the contact detection device obtains the ambient temperature parameter through the temperature sensing circuit, the logic processing circuit extracts the temperature characteristic parameter according to the ambient temperature parameter, and when the temperature characteristic parameter is not within a preset range, it is determined that the contact detection device is not in contact with the target object, or when the ambient temperature parameter is not within the preset range, the logic processing circuit determines that the contact detection device is not in contact with the target object, thereby solving the problem that the contact detection based on the principle of light path reflection is easily disturbed by ambient light and has a large detection error, thereby improving the detection accuracy of the contact detection device and reducing the cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The drawings described herein are used to provide further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the invention.
[0052] In the attached picture:
[0053] Figure 1 is a schematic diagram of an application environment of a contact detection device according to an embodiment of the present invention;
[0054] Figure 2 is a structural block diagram of a contact detection device according to an embodiment of the present invention;
[0055] Figure 3 The principle of the temperature sensing circuit according to the embodiment of the present invention is Figure 1 ;
[0056] Figure 4 The principle of the temperature sensing circuit according to the embodiment of the present invention is Figure 2 ;
[0057] Figure 5 The principle of the temperature sensing circuit according to the embodiment of the present invention is Figure 3 ;
[0058] Figure 6 The principle of the temperature sensing circuit according to the embodiment of the present invention is Figure 4 ;
[0059] Figure 7 The principle of the temperature sensing circuit according to the embodiment of the present invention is Figure 5 ;
[0060] Figure 8 The principle of the temperature sensing circuit according to the embodiment of the present invention is Figure 6 ;
[0061] Fig. 9 is a circuit schematic diagram of a contact detection device according to an embodiment of the present invention;
[0062] Fig.10 is a schematic diagram of the structure of a contact detection device according to an embodiment of the present invention. Figure 1 ;
[0063] Fig.11 is a schematic diagram of the structure of a contact detection device according to an embodiment of the present invention. Figure 2 ;
[0064] Fig.12 is a schematic diagram of the structure of a contact detection device according to an embodiment of the present invention. Figure 3 ;
[0065] Fig.13 The process of the contact detection method according to the embodiment of the present invention is as follows Figure 1 ;
[0066] Fig.14 The process of the contact detection method according to the embodiment of the present invention is as follows Figure 2 ;
[0067] Fig.15 The process of the contact detection method according to the embodiment of the present invention is as follows Figure 3 ;
[0068] Fig.16 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0069] 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.
[0070] It should be noted that the terms "first", "second", and "third" involved in the embodiments of the present invention are merely used to distinguish similar objects and do not represent a specific ordering of the objects. "First", "second", and "third" can be interchanged with a specific order or sequence where permitted. It is understandable that the objects distinguished by "first", "second", and "third" can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance.
[0071] The contact detection device provided in this application can be applied to Figure 1 In the application environment shown, Figure 1 is a schematic diagram of an application environment of a contact detection device according to an embodiment of the present invention, such as Figure 1 As shown. The contact detection device 12 is used to determine whether it is in contact with the target object 14. The contact detection device 12 includes a temperature sensing circuit and a logic processing circuit. The contact detection device 12 obtains the ambient temperature parameter through the temperature sensing circuit, and extracts the temperature characteristic parameter according to the ambient temperature parameter through the logic processing circuit. When the temperature characteristic parameter is not within the preset range, it is determined that the contact detection device 12 is not in contact with the target object 14. Alternatively, when the ambient temperature parameter is not within the preset range, the logic processing circuit determines that the contact detection device 12 is not in contact with the target object 14. The preset range may be a preset temperature range, or a determination range determined by a preset change threshold, a preset fluctuation threshold, a preset contact threshold, or other numerical values.
[0072] In one embodiment, a contact detection device is provided. Figure 2 is a structural block diagram of a contact detection device according to an embodiment of the present invention. Figure 2As shown, the contact detection device 12 includes a temperature sensing circuit 22 and a logic processing circuit 24, and the temperature sensing circuit 22 and the logic processing circuit 24 are electrically connected; the contact detection device 12 obtains the ambient temperature parameter through the temperature sensing circuit 22, and the logic processing circuit 24 extracts the temperature characteristic parameter according to the ambient temperature parameter; when the temperature characteristic parameter is not within the preset range, it is determined that the contact detection device 12 is not in contact with the target object 14, or when the ambient temperature parameter is not within the preset range, the logic processing circuit 24 determines that the contact detection device 12 is not in contact with the target object 14. The logic processing circuit 24 calculates the rate, derivative, variance, etc. of temperature change according to the ambient temperature parameter, and the logic processing circuit 24 also determines the preset range according to historical data or empirical values, wherein the preset range can be a preset temperature range, or a determination range determined by numerical values such as a preset change threshold, a preset fluctuation threshold, and a preset contact threshold.
[0073] When the temperature sensing circuit 22 is in contact with the target object 14, heat conduction will occur. Among them, heat conduction is the most common phenomenon in nature. When two objects with different temperatures are in contact, heat conduction will definitely occur, and heat will be conducted from the high-temperature object to the low-temperature object. When the temperatures of the two objects are close, due to the differences in the heat sources and heat materials of the different objects themselves, the thermal fluctuations reflected on the surface will also be different. By statistically analyzing the temperature fluctuation characteristics, it can be distinguished whether the temperature sensing circuit 22 is in contact with the target object 14.
[0074] The contact detection device 12 provided in this embodiment determines the contact state through the temperature sensing circuit 22 and the logic processing circuit 24 based on the heat conduction phenomenon, thereby solving the problem that contact detection based on the principle of light path reflection is easily disturbed by ambient light and has large detection errors, thereby improving the detection accuracy of the contact detection device 12 and reducing costs.
[0075] In one embodiment, Figure 3 The principle of the temperature sensing circuit 22 according to the embodiment of the present invention is Figure 1 ,like Figure 3 As shown, the temperature sensing circuit 22 includes a thermistor 32 and a reference resistor 34, and the thermistor 32 and the reference resistor 34 are connected in series to form a series circuit, wherein one end of the series circuit is grounded, and the other end of the series circuit is connected to a reference power supply VCC, and a common end of the thermistor 32 and the reference resistor 34 is connected to the logic processing circuit 24, and the temperature sensing circuit 22 outputs a target voltage, and the target voltage is input into the logic processing circuit 24 as the ambient temperature parameter.
[0076] The reference resistor 34 is a resistor whose resistance characteristics are less affected by temperature, such as a fixed resistor, and its output terminal outputs a target voltage. When the temperature environment in which the temperature sensing circuit 22 is located changes, for example, when the temperature sensing circuit 22 is attached to a target object 14 at 40°C, the resistance value of the thermistor 32 changes. By selecting a suitable reference resistor 34, it can be ensured that when the thermistor 32 is at a specific temperature, the voltage value output by the output pin is greater than a specific threshold value, and the voltage greater than the specific threshold value is recognized as a high level in the logic processing circuit 24, indicating that the temperature sensing circuit 22 is in contact with the target object 14.
[0077] For example, when the thermistor 32 is a negative temperature coefficient (NTC) thermistor, and the specific model of the thermistor 32 is Murata thermistor 32NXRT15WF104, the resistance value of the thermistor 32 decreases exponentially as the temperature increases. In an environment of 10°C, the resistance value of the thermistor 32 is 209.71 kΩ, and in an environment of 40°C, the resistance value of the thermistor 32 is 50.677 kΩ.
[0078] The output voltage is obtained by the following formula 1:
[0079]
[0080] In Formula 1, R ntc is the resistance value of thermistor 32, R ref is the resistance value of the reference resistor 34, V out is the output voltage value, V vcc As the reference power supply voltage, take 5V.
[0081] From formula 1, we can get that as R ntc Increase, V out Decrease; with R ref Increase, V out Increase. When the temperature is 40℃, R ntc The resistance value is 50.677kΩ, at V out The value of is a specific threshold V th In the case of, the resistance calculation formula 2 of the reference resistor 34 can be obtained by formula 1:
[0082]
[0083] In Formula 2, V th If the value is 2.4V, we get R ref The value of R is 46.778kΩ. refWhen the value is 46.778kΩ, it can be guaranteed that the output voltage value is greater than 2.4V when the temperature is higher than 40℃; and the output voltage value is less than 2.4V when the temperature is lower than 40℃.
[0084] In another embodiment, Figure 4 The principle of the temperature sensing circuit 22 according to the embodiment of the present invention is Figure 2 ,like Figure 4 As shown, Figure 4 The thermistor 32 is grounded, and the reference resistor 34 is connected to the reference power supply. Figure 3 A similar circuit principle can be obtained by Figure 4 The temperature sensing circuit 22 performs contact detection judgment.
[0085] In another embodiment, the logic processing circuit may include a comparator or a switching transistor. Figure 5 The principle of the temperature sensing circuit 22 according to the embodiment of the present invention is Figure 3 ,like Figure 5 As shown, the output of the temperature sensing circuit 22 is connected to the comparator 52, and the reference voltage of the comparator 52 can be directly set. The comparator 52 outputs a high level or a low level to determine whether the temperature sensing circuit 22 is in contact with the target object 14. When the comparator 52 outputs a high level, it is determined that the temperature sensing circuit 22 is in contact with the target object 14. Figure 6 The principle of the temperature sensing circuit 22 according to the embodiment of the present invention is Figure 4 ,like Figure 6 As shown, the output of the temperature sensing circuit 22 can also be connected to the switching transistor 62. When the output voltage is greater than a specific threshold, the switching transistor 62 is turned on, and the corresponding high level output indicates that contact has occurred, thereby achieving more precise control.
[0086] The temperature sensing circuit 22 provided in this embodiment, when using a fixed resistor as the reference resistor 34, obtains the conclusion of whether the contact detection device 12 is in contact with the target object 14 through simple logical judgment based on the voltage change formed by the thermistor 32 due to the temperature, thereby simplifying the judgment process, improving the judgment accuracy, and reducing the cost of the contact detection device 12.
[0087] In one embodiment, Figure 7 The principle of the temperature sensing circuit 22 according to the embodiment of the present invention is Figure 5 ,like Figure 7 -A, the thermistor 32 is an NTC thermistor, and the reference resistor 34 is a positive temperature coefficient (Positive Temperature Coefficient, referred to as PTC) thermistor. Figure 7 -A, the output voltage value can be obtained by the following formula 3:
[0088]
[0089] In Formula 3, R ptc is the resistance value of the reference resistor 34. As the temperature increases, the resistance value of the PTC thermistor R ptc Increase, NTC thermistor resistance R ntc To achieve an output voltage greater than a certain threshold when the temperature is greater than a certain temperature, R ntc With R ptc The ratio satisfies formula 4:
[0090] R ntc / R ptc =V vcc / V th -1 Formula 4
[0091] In Formula 4, V th is a specific threshold.
[0092] exist Figure 7 -B, the thermistor 32 and the reference resistor 34 are swapped, the thermistor 32 is an NTC thermistor, and the reference resistor 34 is a PTC thermistor. It is also possible to determine whether the contact detection device 12 is in contact with the target object 14 by outputting a voltage value.
[0093] In another embodiment, Figure 8 The principle of the temperature sensing circuit 22 according to the embodiment of the present invention is Figure 6 ,like Figure 8 As shown, in Figure 8 -A, the temperature sensing circuit 22 can also be composed of a fixed resistor R1, a fixed resistor R2, an NTC thermistor and a PTC thermistor, and the output voltage value is obtained by the following formula 5:
[0094]
[0095] In Formula 5, R1 and R2 are the resistance values of the fixed resistors R1 and R2 respectively.
[0096] In order to achieve that the output voltage value is greater than a specific threshold when the ambient temperature is greater than a specific temperature, the ratio of the thermistor 32 and the reference resistor 34 needs to satisfy the following formula 6 at the specific temperature:
[0097] (R ptc +R1) / (R ntc +R2)=V vcc / V th -1 Formula 6
[0098] In Formula 6, V ccis the reference voltage, V th is a specific threshold.
[0099] In this embodiment, the thermistor 32 is an NTC thermistor and is connected in series with a fixed resistor R2. The reference resistor 34 includes a PTC thermistor and a fixed resistor R1 connected in series. By setting the reference resistor 34 in the temperature sensing circuit 22 to be a thermistor and a fixed resistor connected in series, the amplitude of the voltage change caused by the resistance value is different at the same temperature, thereby improving the signal-to-noise ratio and thereby improving the sensitivity of the contact detection device 12.
[0100] Figure 8 -B is in Figure 8 -A, omitting the resistor R2, in formula 5 and formula 6, let R2 be 0, and we can get Figure 8 -The calculation formula of output voltage value in B.
[0101] In one embodiment, the logic processing circuit includes a first switch circuit, a second switch circuit and a logic AND circuit; the output end of the temperature sensing circuit is respectively connected to the negative end of the first switch circuit and the positive end of the second switch circuit, the positive end of the first switch circuit is set to a high voltage threshold, the negative end of the second switch circuit is set to a low voltage threshold, and the output end of the first switch circuit and the output end of the second switch circuit are connected to the logic AND circuit. The first switch circuit and the second switch circuit can both be implemented by switch transistors or comparators.
[0102] Fig. 9 is a circuit diagram of a contact detection device 12 according to an embodiment of the present invention, such as Fig. 9 As shown, the temperature sensing circuit 22 includes a thermistor 32 and a reference resistor 34, and the logic processing circuit 24 includes a first comparator 92, a second comparator 94 and a logic AND circuit 96. The output of the temperature sensing circuit 22 is respectively connected to the negative end of the first comparator 92 and the positive end of the second comparator 94, the positive end of the first comparator 92 is set to a high voltage threshold, and the negative end of the second comparator 94 is set to a low voltage threshold, and the output end of the first comparator 92 and the output end of the second comparator 94 are connected to the logic AND circuit 96.
[0103] In this embodiment, the thermistor 32 is an NTC thermistor, and the reference resistor 34 is a fixed resistor. The higher the temperature, the higher the output voltage of the temperature sensor circuit 22. When the output voltage is less than the high voltage threshold V high In the case of the first comparator 92 outputting a high level, when the output voltage is greater than the low voltage threshold V low When the second comparator 94 outputs a high level, the signal output pin outputs a high level through the logic AND circuit 96, indicating that the current temperature is within the specified preset range. lowIndicates that the temperature is the low temperature threshold T low In the case of temperature sensing circuit 22, the voltage output value, V high Indicates that the temperature is the high temperature threshold T high When the temperature is less than T low In the case of, the first comparator 92 outputs a high level, the second comparator 94 outputs a low level, and through the logic AND circuit 96, the signal output pin outputs a low level; when the temperature is higher than T high In the case of, the first comparator 92 outputs a low level, the second comparator 94 outputs a high level, and the signal output pin outputs a low level through the logic AND circuit 96. The comparator of this embodiment can also be replaced by a switching transistor.
[0104] In this embodiment, the output signal of the temperature sensing circuit 22 is processed by the logic processing circuit 24 and converted into a general digital level signal. For example, when the temperature value of the contact detection device 12 is greater than T low , and is less than T high In this embodiment, when the circuit outputs a high level, it is determined that the contact detection device 12 is in contact with the target object 14. In addition, when it is necessary to perform temperature determination in other ranges, the switch transistor interface can be redesigned and other logic gate circuits can be selected.
[0105] In one embodiment, Fig.10 is a schematic diagram of the structure of the contact detection device 12 according to an embodiment of the present invention. Figure 1 ,like Fig.10 As shown, the temperature sensing circuit 22 of the contact detection device 12 includes a first temperature sensor 102 , and the logic processing circuit 24 includes a signal processing unit 104 . The first temperature sensor 102 is located on a side of the contact detection device 12 facing the target object 14 .
[0106] The contact detection device 12 obtains the first temperature sequence through the first temperature sensor 102, and the signal processing unit 104 obtains the average temperature according to the first temperature sequence. The average temperature of the first temperature sequence is calculated to prevent misjudgment. The first temperature sequence is temperature data within a preset time, for example, the sampling frequency is 1Hz, the window size is set to 60s, and the temperature sum of the first temperature sequence is obtained by formula 7:
[0107]
[0108] In Formula 7, is the average temperature, t iis the i-th temperature value in the first temperature sequence. When the average temperature is not within the preset temperature range, the signal processing unit 104 determines that the contact detection device 12 is not in contact with the target object 14, wherein the preset temperature range is pre-set according to historical records or empirical values. When the average temperature is not within the preset temperature range, the signal processing unit 104 determines that the contact detection device 12 is not in contact with the target object 14.
[0109] In scenarios where the test environment is relatively simple, the average temperature can be used alone for judgment. For example, in environments where the difference between room temperature and human body temperature is obvious, such as a difference of more than 10°C, the average temperature can be used independently as a judgment algorithm and can also achieve high accuracy.
[0110] In another embodiment, the signal processing unit 104 obtains a temperature change parameter according to the first temperature sequence, and when the temperature change parameter satisfies a contact judgment condition, the signal processing unit 104 determines that the contact detection device 12 is in contact with the target object 14, wherein the contact judgment condition is that a preset proportion of the temperature change parameter is greater than a preset change threshold. The temperature change parameter may be the absolute value of the derivative of the first temperature sequence, and different preset change thresholds may be set when detecting different ambient temperatures and target objects 14. The preset change threshold may be a derivative threshold. For example, when 80% of the data in the absolute value of the derivative is greater than the derivative threshold, it is determined that the contact detection device 12 is in contact with the target object 14, wherein 80% is the preset proportion of the temperature change parameter.
[0111] For environments where there is a significant difference between room temperature and human body temperature, such as a difference of more than 5°C between room temperature and human body temperature, and where temperature data can be collected continuously, the calculation of temperature change parameters can also be used independently as a judgment algorithm. When it is detected that the absolute value of the first-order derivative is greater than the derivative threshold for a period of time and has the same sign, it can be judged that contact has occurred and the contact interface has switched.
[0112] In another embodiment, the signal processing unit 104 obtains the temperature fluctuation parameters of the first temperature sequence. When the temperature fluctuation parameters of the first temperature sequence are greater than a first preset fluctuation threshold, the signal processing unit 104 determines that the contact detection device 12 contacts the target object 14, wherein the contact judgment condition is that a preset proportion of the temperature change parameters is greater than a preset change threshold.
[0113] The temperature fluctuation parameter can be the variance of the first temperature sequence, or the proportion of the low-frequency component and the high-frequency component. The analysis of the temperature fluctuation parameter includes variance calculation, Fourier transform or template matching, etc., wherein template matching is to store several characteristic curves in the program, and to perform similarity analysis between the temperature change curve collected in real time and the characteristic curve. The simplest method of similarity analysis is to calculate the Euclidean distance, and machine learning can be performed based on the combination of multiple features to achieve accurate contact state classification. The variance can be obtained by the following formula 8. For application scenarios where the temperature fluctuation of the target object 14 is large, when the variance is greater than the preset variance threshold, it can be considered that the contact detection device is in contact with the object to be contacted.
[0114]
[0115] In Formula 8, σ 2 is the variance, N is the number of temperature values in the temperature sequence, t i is the temperature value in the first temperature sequence.
[0116] The Fourier transform can be obtained by the following formula 9:
[0117]
[0118] In Formula 9, T(k) is the value of the kth frequency domain component. The value of k reflects the value of the frequency domain component corresponding to T(k), that is, the frequency of the signal. The smaller k is, the lower the frequency of the corresponding signal is. t(n) is the temperature value in the first temperature sequence.
[0119] Formula 10 gives a method to describe the proportion of low-frequency components, as shown in Formula 10:
[0120]
[0121] In formula 10, β is the proportion of the low-frequency component, M is usually an empirical value, generally, it can be taken as 1, and when β is greater than the preset fluctuation threshold, it can be considered that no contact has occurred.
[0122] By performing variance calculation or discrete Fourier transform, it is determined whether contact occurs based on the matching of the fluctuation situation with the target environment. For example, the skin temperature of the human body is affected by factors such as the human core temperature, blood flow velocity, pore contraction, and breathing. In a general indoor environment, the high-frequency component of the human skin temperature fluctuation is greater than that of the environment. Therefore, it is possible to determine whether the contact detection device 12 is in contact with the human skin based on the variance size and frequency domain distribution. For scenarios where the ambient temperature and the surface temperature of the target object 14 fluctuate in different forms, variance calculation or Fourier transform can also be used independently as a judgment algorithm without relying on the solution of temperature derivatives and average temperature.
[0123] Another typical algorithm in this embodiment is to perform state classification based on a deep learning algorithm. Deep learning generally includes two stages: training model and testing model.
[0124] During the training phase, a fixed number of temperature data points are intercepted according to a certain fixed window. For example, 120 temperature points are selected as a temperature sample, and the temperature sample is divided into three states for labeling: 1. Idle in the air; 2. Set on the surface of the target object 14; 3. Contact with the target object 14. Then, deep learning training is performed on the temperature sample, including three steps: reading labeled data, performing deep learning, and outputting a model. Among them, being set on the surface of the target object 14 means that the contact detection device 12 has been in contact with the target object 14 for a long time, and being in contact with the target object 14 means the instantaneous process of the contact detection device 12 contacting the target object 14. In the actual test process, the temperature data is cached in a fixed window, and then the sample is sent to the deep learning model for calculation to obtain the classification result. According to the classification result, it is determined whether the contact detection device 12 is in contact with the target object 14.
[0125] In another embodiment, the signal processing unit 104 obtains an average temperature according to the first temperature sequence, and when the average temperature is within a preset temperature range, the signal processing unit 104 obtains a temperature change parameter according to the first temperature sequence; when the temperature change parameter does not meet the contact judgment condition, the signal processing unit 104 obtains a temperature fluctuation parameter of the first temperature sequence, and when the temperature fluctuation parameter of the first temperature sequence is greater than a first preset fluctuation threshold, the signal processing unit 104 determines that the contact detection device 12 contacts the target object 14, wherein the contact judgment condition is that a preset proportion of the temperature change parameter is greater than a preset change threshold.
[0126] In this embodiment, the signal processing unit 104 can be implemented by software or by hardware circuit. When the temperature obtained by the contact detection device 12 is not equal to the temperature of the target object 14, the temperature characteristic parameters before and after the contact can be used to distinguish whether the contact occurs. The temperature characteristic parameters specifically include the rate of change, derivative, variance, etc.; when the temperature obtained by the contact detection device 12 is close to the temperature of the target object 14, the contact detection device 12 is mainly in a heat exchange state of convection heat exchange with the environment, and the temperature fluctuation reflects the temperature fluctuation of the environment. After contacting the target object 14, the contact detection device 12 and the target object 14 are mainly heat conduction, and the main temperature characteristics reflect the temperature fluctuation of the target object 14. The difference between the temperature fluctuation of the environment and the temperature fluctuation of the target object 14 is used to distinguish whether the contact detection device 12 and the target object 14 are in contact. By judging the detection of the temperature characteristic parameters, the detection accuracy of the contact detection device 12 is improved and the cost is reduced.
[0127] In one embodiment, Fig.11 is a schematic diagram of the structure of the contact detection device 12 according to an embodiment of the present invention. Figure 2 ,like Fig.11 As shown, the contact detection device 12 also includes a heat source 112, and the heat source 112 and the first temperature sensor 102 are located on the same side of the contact detection device 12. The heat source 112 generates heat according to a preset frequency. The first temperature sensor 102 collects temperature data under different conditions, and the signal processing unit 104 calculates the time required for the temperature to rise to a certain value, the temperature change in the total time, the variance, the derivative, and other characteristic quantities reflecting the temperature change process.
[0128] The signal processing unit 104 obtains the thermal response parameters affected by the heat source 112 through the first temperature sensor 102, and determines whether the contact detection device 12 is located in the air, on the surface of the target object 14, or in contact with the target object 14 according to the thermal response parameters, wherein the thermal response parameters include thermal response time and thermal response amplitude. The signal processing unit 104 uses the temperature data and the calculated feature quantity to construct a classification model by means of machine learning, or directly trains the original temperature data based on deep learning to obtain a classification model. In the actual classification process, the heat source 112 works regularly for a period of time, and the temperature change of the temperature sensor during this period is recorded, and the model calculation is imported to obtain the classification result.
[0129] In this embodiment, when the contact detection device 12 is exposed to the environment, the heat transfer mode between the heat source 112 and the first temperature sensor 102 is mainly heat conduction and heat convection; when the contact detection device 12 contacts the target object 14, heat conduction occurs between the heat source 112 and the temperature sensor through the target object 14; there are obvious differences in the heat transfer medium and mode between the two, which will be reflected in the obvious difference in the thermal response time and the thermal response amplitude. Whether contact occurs is determined by distinguishing the thermal response time and amplitude. By detecting the thermal response time and thermal response amplitude of the temperature sensing circuit 22 to distinguish whether contact occurs, the detection accuracy of the contact detection device 12 is improved and the cost is reduced.
[0130] In one embodiment, Fig.12 is a schematic diagram of the structure of the contact detection device 12 according to an embodiment of the present invention. Figure 3 ,like Fig.12As shown, the temperature sensing circuit 22 further includes a second temperature sensor 122, and the first temperature sensor 102 and the second temperature sensor 122 are located on different sides of the contact detection device 12, for example, the first temperature sensor 102 is located on the side of the contact detection device 12 facing the target object 14, and the second temperature sensor 122 is located on the side opposite to the first temperature sensor 102. The first temperature sensor 102 and the second temperature sensor 122 in this embodiment can be implemented by a temperature sensor array, and whether the contact detection device 12 is in contact with the target object 14 is determined based on whether the thermal boundary conditions of the multiple temperature sensors are consistent. In this embodiment, the thermal boundary condition refers to the situation of the contact object on each surface of the device, such as contact with the air, contact with human skin, or contact with other target objects 14. In the case of different contact objects, the temperature data measured by the temperature sensor is different, wherein the temperature change data measured by the temperature sensor includes the temperature fluctuation, change trend, and frequency domain characteristics after Fourier transformation. When the thermal contact conditions of all surfaces of the device are completely consistent, the characteristics of the temperature data measured on each surface should be consistent. If they are inconsistent, the signal processing unit determines that contact has occurred.
[0131] The second temperature sensor 122 obtains a second temperature sequence. When the difference between the average temperature of the second temperature sequence and the average temperature of the first temperature sequence is less than a preset contact threshold, the signal processing unit 104 obtains a temperature fluctuation parameter of the second temperature sequence. When the difference between the average temperatures is greater than or equal to the preset contact threshold, it is determined that the contact detection device 12 contacts the target object 14, wherein the first temperature sequence and the second temperature sequence are obtained within the same time range. When the contact detection device 12 is exposed to the environment, the first temperature sensor 102 and the second temperature sensor 122 both reflect the temperature of the environment, and the sizes and fluctuation forms of the two are consistent. When the first temperature sensor 102 of the contact detection device 12 contacts the target object 14 and the second temperature sensor 122 is exposed to the environment, the first temperature sensor 102 reflects the temperature of the target object 14, and the second temperature sensor 122 reflects the temperature of the environment. When the difference between the temperature fluctuation parameter of the second temperature sequence and the temperature fluctuation parameter of the first temperature sequence is greater than the second preset fluctuation threshold, the signal processing unit 104 determines that the contact detection device 12 contacts the target object 14.
[0132] In this embodiment, the first temperature sensor 102 and the second temperature sensor 122 simultaneously acquire temperature characteristic parameters, and the signal processing unit 104 analyzes and processes the temperature characteristic parameters acquired by different temperature sensors, thereby further improving the detection accuracy of the contact detection device 12 .
[0133] In one embodiment, the first temperature sensor 102 obtains a reference temperature sequence before obtaining the first temperature sequence. The signal processing unit 104 extracts reference characteristic parameters according to the reference temperature sequence, and obtains a preset range according to the reference characteristic parameters. The preset range may be a preset temperature range, or a determination range determined by a preset change threshold or a preset fluctuation threshold. The reference temperature sequence is the temperature data collected in real time by the first temperature sensor 102. In this embodiment, the preset range is obtained by the reference temperature sequence obtained in real time. On this basis, the temperature characteristic parameters of the first temperature sequence are compared with the preset range, which will obtain a more accurate result and improve the sensitivity of the contact detection device 12.
[0134] In one embodiment, a contact detection method is provided. Fig.13 The process of the contact detection method according to the embodiment of the present invention is as follows Figure 1 ,like Fig.13 As shown, the method comprises the following steps:
[0135] Step S1302: the contact detection device 12 obtains an ambient temperature parameter.
[0136] Step S1304, obtaining a temperature characteristic parameter according to the ambient temperature parameter, and determining that the contact detection device 12 is not in contact with the target object 14 when the temperature characteristic parameter is not within a preset range; or
[0137] When the ambient temperature parameter is not within the preset range, it is determined that the contact detection device 12 is not in contact with the target object 14 .
[0138] The temperature characteristic parameters include the rate of temperature change, derivative, variance, etc. The temperature parameters can be obtained by analyzing the signal processing unit 104 .
[0139] Through step S1302 and step S1304, the contact detection method provided in this embodiment mainly performs contact detection and judgment based on the temperature sensor. At the same time, the collected temperature information related to the contact can also be used as a reference noise for adaptive noise reduction to describe contact instability. Based on the phenomenon of heat conduction, the contact state is judged by the temperature sensing circuit 22 and the logic processing circuit 24, which solves the problem that the contact detection based on the principle of light path reflection is easily disturbed by ambient light and has a large detection error, thereby improving the detection accuracy of the contact detection device 12 and reducing the cost.
[0140] In one embodiment, step S1302 includes: the contact detection device 12 acquires a first temperature sequence through a first temperature sensor 102 , and the first temperature sensor 102 is on a side of the contact detection device 12 facing the target object.
[0141] In one embodiment, step S1304 includes: obtaining an average temperature according to the first temperature sequence, and determining that the contact detection device 12 is not in contact with the target object 14 when the average temperature is not within the preset temperature range; or, obtaining a temperature change parameter according to the first temperature sequence, and determining that the contact detection device 12 is in contact with the target object 14 when the temperature change parameter meets a contact judgment condition, wherein the contact judgment condition is that a preset proportion of the temperature change parameter is greater than a preset change threshold; or, obtaining a temperature fluctuation parameter of the first temperature sequence, and determining that the contact detection device 12 is in contact with the target object 14 when the temperature fluctuation parameter of the first temperature sequence is greater than a first preset fluctuation threshold.
[0142] In this embodiment, the average temperature is a temperature characteristic parameter, wherein the first temperature sensor 102 is located on the side of the contact detection device 12 facing the target object 14. In a scenario where the test environment is relatively simple, the average temperature can be used alone for judgment. For example, for an environment where the difference between room temperature and human body temperature is relatively obvious, such as a difference of more than 10°C, the average temperature can be used independently as a judgment algorithm, and a high accuracy can also be obtained. When the average temperature is not within the preset temperature range, the signal processing unit 104 determines that the contact detection device 12 is not in contact with the target object 14. The contact detection method provided in this embodiment simplifies the processing process of the temperature parameter and improves the efficiency of contact detection.
[0143] In one embodiment, an average temperature is obtained according to the first temperature sequence. When the average temperature is within a preset temperature range, a temperature change parameter is obtained according to the first temperature sequence. When the temperature change parameter meets a contact judgment condition, the signal processing unit 104 determines that the contact detection device 12 is in contact with the target object 14, wherein the contact judgment condition is that a preset proportion of the temperature change parameter is greater than a preset change threshold.
[0144] In another embodiment, when the temperature change parameter does not meet the contact judgment condition, the temperature fluctuation parameter of the first temperature sequence is obtained, and when the temperature fluctuation parameter of the first temperature sequence is greater than a first preset fluctuation threshold, it is determined that the contact detection device 12 contacts the target object 14, wherein the contact judgment condition is that a preset proportion of the temperature change parameter is greater than a preset change threshold. The temperature fluctuation parameter in this embodiment can be a heat exchange parameter and a heat conduction parameter between the contact detection device 12 and the environment, and the difference between the ambient temperature fluctuation and the temperature fluctuation of the target object 14 is used to distinguish whether the contact detection device 12 and the target object 14 are in contact, thereby improving the detection accuracy of the contact detection device 12 and reducing the cost.
[0145] In one embodiment, before determining whether the contact detection device 12 is in contact with the target object 14, the contact detection method further includes: obtaining a reference temperature sequence, extracting a reference characteristic parameter according to the reference temperature sequence, and obtaining the preset range according to the reference characteristic parameter. The preset range can be a preset temperature range, or a determination range determined by a preset change threshold or a preset fluctuation threshold. Among them, the reference temperature sequence is the temperature data collected in real time by the first temperature sensor 102. In this embodiment, the preset range is obtained by the reference temperature sequence obtained in real time, which can improve the sensitivity of the contact detection device 12.
[0146] In one embodiment, the contact detection device 12 further includes a heat source 112, the heat source 112 and the first temperature sensor 102 are located on the same side of the contact detection device 12, and the heat source 112 generates heat according to a preset frequency, and step S1304 includes: obtaining a thermal response parameter through the first temperature sensor 102, and judging whether the contact detection device 12 is located in the air, on the surface of the target object, or in contact with the target object according to the thermal response parameter, wherein the thermal response parameter includes a thermal response time and a thermal response amplitude. This embodiment distinguishes whether contact occurs by detecting the thermal response time and thermal response amplitude of the temperature sensing circuit 22, thereby improving the detection accuracy of the contact detection device 12 and reducing the cost.
[0147] In one embodiment, the temperature sensing circuit 22 further includes a second temperature sensor 122, and the first temperature sensor 102 and the second temperature sensor 122 are located at different sides of the contact detection device 12. Step S1304 includes: obtaining the average temperature and temperature fluctuation parameter of the first temperature sequence according to the first temperature sequence; obtaining the second temperature sequence through the second temperature sensor 122, and obtaining the average temperature of the second temperature sequence according to the second temperature sequence; obtaining the temperature fluctuation parameter of the second temperature sequence when the difference between the average temperature of the second temperature sequence and the average temperature of the first temperature sequence is less than a preset contact threshold; and determining that the contact detection device 12 contacts the target object 14 when the difference between the temperature fluctuation parameter of the second temperature sequence and the temperature fluctuation parameter of the first temperature sequence is greater than a second preset fluctuation threshold. In this embodiment, the first temperature sensor 102 and the second temperature sensor 122 simultaneously obtain the temperature, and the signal processing unit 104 analyzes and processes the temperature characteristic parameters obtained by different temperature sensors, thereby further improving the detection accuracy of the contact detection device 12.
[0148] In one embodiment, Fig.14 The process of the contact detection method according to the embodiment of the present invention is as follows Figure 2 ,like Fig.14 As shown, the method comprises the following steps:
[0149] Step S1402, according to the target scene, the contact detection device 12 caches the ambient temperature data within a preset time period, for example, when the sampling frequency is 1 Hz, the window size is set to 60s, and a preset temperature range is obtained according to the ambient temperature data.
[0150] Step S1404 , calculating the current average temperature, and if the average temperature is not within the preset temperature range, determining that the contact detection device 12 is not in contact with the target object 14 .
[0151] Step S1406, when the average temperature is within the preset temperature range, calculate the absolute value of the derivative of the temperature data change, and when the average of the absolute values of the derivatives or the absolute value of a certain proportion of the derivatives is greater than the derivative threshold, determine that the contact detection device 12 is in contact with the target object 14.
[0152] Step S1408, when the mean of the absolute values of the derivatives or the absolute values of a certain proportion of the derivatives are less than or equal to the derivative threshold, calculate the variance of the temperature data, perform discrete Fourier transform on the temperature data, or obtain the fluctuation situation based on the result of template matching, and determine whether contact occurs based on the fluctuation situation.
[0153] Through the above steps S1402 to S1408, this embodiment determines whether the contact detection device 12 and the target object 14 are in contact by measuring and calculating the temperature parameters, thereby improving the accuracy of contact detection.
[0154] In one embodiment, Fig.15 The process of the contact detection method according to the embodiment of the present invention is as follows Figure 3 ,like Fig.15 As shown, the method comprises the following steps:
[0155] In step S1502, the first temperature sensor 102 and the second temperature sensor 122 cache temperature data, and calculate the average values of the first temperature sensor 102 and the second temperature sensor 122 in the same historical time window. When the absolute value of the difference between the average value of the first temperature sensor 102 and the average value of the second temperature sensor 122 is greater than or equal to the preset contact threshold, it means that the thermal environments of the two are different, and it is determined that the contact detection device 12 is in contact with the target object 14.
[0156] Step S1504, when the absolute value of the difference between the average value of the first temperature sensor 102 and the average value of the second temperature sensor 122 is less than the preset contact threshold, the temperature characteristic parameters of the first temperature sensor 102 and the second temperature sensor 122 are analyzed, including statistical variance, first-order derivative, frequency domain characteristics, etc. When the difference in the temperature characteristic parameters between the first temperature sensor 102 and the second temperature sensor 122 is greater than the second preset fluctuation threshold, it can be considered that contact has occurred.
[0157] Through the above steps S1502 and S1504, this embodiment uses two temperature sensors to measure and calculate temperature parameters to determine whether the contact detection device 12 is in contact with the target object 14, further improving the accuracy of contact detection. In other embodiments, the number of temperature sensors can be 3 or other numbers.
[0158] It should be understood that although Figures 13 to 15 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, Figures 13 to 15 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.
[0159] In one embodiment, Fig.16 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present invention. Fig.16 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Fig.16 As shown. The electronic device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a contact detection method is implemented.
[0160] Those skilled in the art will understand that Fig.16The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0161] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the contact detection method provided in the above embodiments are implemented.
[0162] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the contact detection method provided in the above embodiments are implemented.
[0163] 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 may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may 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).
[0164] 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.
[0165] The above 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 contact detection device, characterized in that: The contact detection device comprises a temperature sensing circuit and a logic processing circuit, wherein the temperature sensing circuit and the logic processing circuit are electrically connected; The contact detection device obtains the ambient temperature parameter through the temperature sensing circuit; The logic processing circuit extracts a temperature characteristic parameter according to the ambient temperature parameter, and determines that the contact detection device is not in contact with the target object when the temperature characteristic parameter is not within a preset range; or, When the ambient temperature parameter is not within a preset range, the logic processing circuit determines that the contact detection device is not in contact with the target object; The temperature sensing circuit includes a first temperature sensor, the logic processing circuit includes a signal processing unit, the first temperature sensor is located on a side of the contact detection device facing the target object, and the contact detection device acquires a first temperature sequence through the first temperature sensor; The temperature sensing circuit further comprises a second temperature sensor, wherein the first temperature sensor and the second temperature sensor are located at different sides of the contact detection device; The second temperature sensor acquires a second temperature sequence, and when the difference between an average temperature of the second temperature sequence and an average temperature of the first temperature sequence is less than a preset contact threshold, the signal processing unit acquires a temperature fluctuation parameter of the second temperature sequence; In a case where a difference between the temperature fluctuation parameter of the second temperature sequence and the temperature fluctuation parameter of the first temperature sequence is greater than a second preset fluctuation threshold, the signal processing unit determines that the contact detection device contacts the target object.
2. The contact detection device according to claim 1, characterized in that: The temperature sensing circuit includes a thermistor and a reference resistor; The thermistor and the reference resistor are connected in series to form a series circuit, wherein one end of the series circuit is grounded, the other end of the series circuit is connected to a power supply, a common end of the thermistor and the reference resistor is connected to the logic processing circuit, the temperature sensing circuit outputs a target voltage, and the target voltage is input into the logic processing circuit as the ambient temperature parameter.
3. The contact detection device according to claim 2, characterized in that: The thermistor is a negative temperature coefficient thermistor, and the reference resistor is a positive temperature coefficient thermistor and / or a fixed resistor.
4. The contact detection device according to claim 1, characterized in that: The logic processing circuit includes a first switch circuit, a second switch circuit and a logic AND circuit; The output end of the temperature sensing circuit is respectively connected to the negative end of the first switch circuit and the positive end of the second switch circuit, the positive end of the first switch circuit is set to a high voltage threshold, the negative end of the second switch circuit is set to a low voltage threshold, and the output end of the first switch circuit and the output end of the second switch circuit are connected to the logic AND circuit.
5. The contact detection device according to claim 1, characterized in that: Before acquiring the first temperature sequence, the first temperature sensor acquires a reference temperature sequence, the signal processing unit extracts reference characteristic parameters according to the reference temperature sequence, and obtains the preset range according to the reference characteristic parameters; the preset range includes a second preset fluctuation threshold, a preset contact threshold and a preset temperature range.
6. A contact detection method according to any one of claims 1 to 5, characterized in that: The method comprises: Step S1: The contact detection device obtains the ambient temperature parameter; Step S2: obtaining a temperature characteristic parameter according to the ambient temperature parameter, and determining that the contact detection device is not in contact with the target object when the temperature characteristic parameter is not within a preset range; or When the ambient temperature parameter is not within the preset range, it is determined that the contact detection device is not in contact with the target object; the step S1 comprises: The contact detection device acquires a first temperature sequence through a first temperature sensor, wherein the first temperature sensor is on a side of the contact detection device facing the target object; The step S2 comprises: Obtaining an average temperature and a temperature fluctuation parameter of the first temperature sequence according to the first temperature sequence; Acquire a second temperature sequence through a second temperature sensor, and obtain an average temperature of the second temperature sequence according to the second temperature sequence; When the difference between the average temperature of the second temperature sequence and the average temperature of the first temperature sequence is less than a preset contact threshold, obtaining a temperature fluctuation parameter of the second temperature sequence; When the difference between the temperature fluctuation parameter of the second temperature sequence and the temperature fluctuation parameter of the first temperature sequence is greater than a second preset fluctuation threshold, it is determined that the contact detection device contacts the target object.
7. The method according to claim 6, characterized in that Before determining whether the contact detection device is in contact with the target object, the method further includes: A reference temperature sequence is acquired, reference characteristic parameters are extracted according to the reference temperature sequence, and the preset range is obtained according to the reference characteristic parameters; the preset range includes a second preset fluctuation threshold, a preset contact threshold and a preset temperature range.
Citation Information
Patent Citations
Temperature detection method and system
CN101430231A
Mobile terminal and screen awakening method
CN106873877A
Convenient call method and system for mobile terminal
CN107395867A
Human body induction detection apparatus
CN204115906U