Pressure baseline updating processing method and apparatus
Patent Information
- Application Number
- CN202310027154.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-01-09
AI Technical Summary
[0004]本发明实施例提供了一种压力基线更新处理方法以及装置,以至少解决相关技术中存在压力设备预先受压的情况,导致压力基线更新异常,造成设备控制准确度低、异常运行概率高的技术问题
[0007]在本发明实施例中,通过获取待测压感设备在当前采样时刻对应的采样压力值和采样噪声值,其中,所述当前采样时刻为当前采样周期内的任意一个时刻;基于所述采样压力值,所述采样噪声值,以及上一状态计数,确定所述待测压感设备在所述当前采样时刻的当前状态计数,其中,所述上一状态计数为所述待测压感设备在所述当前采样时刻对应的上一采样时刻的状态计数;在所述当前状态计数大于预设的第一计数阈值的情况下,采用所述当前采样时刻对应的所述采样压力值,更新所述待测压感设备的当前压力基线。达到了基于实时采样的压力和噪声更新压力基线,进而提高压力基线准确度的目的,实现了提高压力基线准确率,提高压感型设备运行可靠性的技术效果,进而解决了相关技术中存在压力设备预先受压的情况,导致压力基线更新异常,造成压力基线漂移、控制准确度下降、设备异常运行概率高的技术问题。
Smart Images

Figure CN115993909B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of baseline adjustment, and more specifically, to a method and apparatus for updating pressure baselines. Background Technology
[0002] Currently, the normal operation of pressure-sensitive devices is closely related to the pressure baseline. An accurate pressure baseline is crucial for accurate control responses. However, current technologies often set the pressure baseline upon power-up, which can lead to abnormal responses or malfunctions. In practice, different users have different usage habits. If a user habitually applies pressure to the device before power-up, it's considered as if pressure has already been applied. This leads to abnormal baseline updates based on the applied pressure, causing the updated baseline to drift. This reduces the device's adaptability to user input and results in abnormal responses, ultimately decreasing control accuracy.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a pressure baseline update processing method and apparatus to at least solve the technical problem in the related art where pressure equipment is pre-pressurized, leading to abnormal pressure baseline updates, resulting in low equipment control accuracy and a high probability of abnormal operation.
[0005] According to one aspect of the present invention, a pressure baseline update processing method is provided, comprising: acquiring a sampled pressure value and a sampled noise value of a pressure sensing device under test at a current sampling time, wherein the current sampling time is any time within the current sampling period; determining a current state count of the pressure sensing device under test at the current sampling time based on the sampled pressure value, the sampled noise value, and a previous state count, wherein the previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time; and updating the current pressure baseline of the pressure sensing device under test using the sampled pressure value corresponding to the current sampling time when the current state count is greater than a preset first counting threshold.
[0006] According to another aspect of the present invention, a pressure baseline update processing apparatus is provided, comprising: a first acquisition module, configured to acquire a sampling pressure value and a sampling noise value corresponding to a pressure sensing device under test at a current sampling time, wherein the current sampling time is any time within the current sampling period; a determination module, configured to determine a current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and a previous state count, wherein the previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time; and an update module, configured to update the current pressure baseline of the pressure sensing device under test using the sampling pressure value corresponding to the current sampling time when the current state count is greater than a preset first count threshold.
[0007] In this embodiment of the invention, the sampling pressure value and sampling noise value of the pressure-sensitive device under test at the current sampling time are obtained, wherein the current sampling time is any time within the current sampling period; based on the sampling pressure value, the sampling noise value, and the previous state count, the current state count of the pressure-sensitive device under test at the current sampling time is determined, wherein the previous state count is the state count of the pressure-sensitive device under test at the previous sampling time corresponding to the current sampling time; if the current state count is greater than a preset first count threshold, the current pressure baseline of the pressure-sensitive device under test is updated using the sampling pressure value corresponding to the current sampling time. This achieves the goal of updating the pressure baseline based on real-time sampled pressure and noise, thereby improving the accuracy of the pressure baseline, realizing the technical effect of improving the accuracy of the pressure baseline and improving the operational reliability of pressure-sensitive devices, and thus solving the technical problem in related technologies where the pressure device is pre-pressurized, leading to abnormal pressure baseline updates, pressure baseline drift, decreased control accuracy, and a high probability of abnormal device operation. Attached Figure Description
[0008] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0009] Figure 1 A flowchart of an optional pressure baseline update processing method provided according to an embodiment of the present invention;
[0010] Figure 2 A schematic flowchart of an optional pressure baseline update processing method provided according to an embodiment of the present invention;
[0011] Figure 3 This is a schematic diagram of an optional pressure baseline update processing device provided according to an embodiment of the present invention. Detailed Implementation
[0012] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0013] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0014] According to an embodiment of the present invention, a method embodiment for stress baseline update processing is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0015] Figure 1 This is a flowchart of an optional pressure baseline update processing method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0016] Step S102: Obtain the sampling pressure value and sampling noise value of the pressure sensing device under test at the current sampling time, wherein the current sampling time is any time within the current sampling period.
[0017] Understandably, to improve the accuracy of the updated pressure baseline of the pressure-sensing device under test (PSDT), both the sampled pressure value and the sampled noise value are considered. It should be noted that the sampled noise value is relatively high when the PSDT is already under pressure. Each sampling cycle contains multiple sampling moments, during which the PSDT acquires its current pressure status in real time, i.e., it acquires the sampled pressure value and sampled noise value of the PSDT at the current sampling moment.
[0018] Optionally, the pressure-sensitive device to be tested can be of various types, such as electric toothbrushes, water flossers, hair dryers, etc., which require corresponding control based on pressure feedback.
[0019] Optionally, the above sampling noise value can be of various types, such as fluctuations in electrical signals. Specifically, after a press occurs, the sampling electrical signal obtained by the pressure-sensitive device will jitter due to the action trigger, which is regarded as the sampling noise value. It can be the noise value of voltage or the noise value of current.
[0020] Step S104: Based on the above-mentioned sampled pressure value, the above-mentioned sampled noise value, and the previous state count, determine the current state count of the pressure sensing device under test at the current sampling time, wherein the above-mentioned previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time.
[0021] It is understandable that the pressure sensing device under test may be subject to interference or sampling fluctuations. If the pressure baseline is updated solely based on the sampling pressure value and sampling noise value at a single sampling moment, it may lead to erroneous or frequent updates. Therefore, state counting is needed to continuously characterize the pressure status of the pressure sensing device under test. Based on the sampling pressure value, sampling noise value, and the state count of the previous sampling moment corresponding to the current sampling moment, the current state count of the pressure sensing device under test at the current sampling moment is determined. Through this process, the current state count can more accurately characterize the pressure status of the pressure sensing device under test, facilitating accurate subsequent pressure baseline updates.
[0022] It should be noted that the above-mentioned previous state count is used to represent the state accumulation of the pressure sensing device under test before the current sampling time, not just the state at the previous sampling time. Since the count can also reflect the state of the pressure sensing device under test over a period of time, it is beneficial to improve the accuracy of updating the pressure baseline.
[0023] In an optional embodiment, when the current sampling time is any sampling time in the current sampling period other than the last sampling time, determining the current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and the previous state count includes: determining the absolute difference between the sampling pressure value and the current pressure baseline of the pressure sensing device under test; and, if the absolute difference is not greater than a preset pressure difference threshold, determining the current state count corresponding to the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and the previous state count.
[0024] It is understandable that if the current sampling time is any sampling time in the current sampling period other than the last sampling time, it is considered that the sampling of the pressure sensing device under test has not reached a sampling period. Determining whether to update the current pressure baseline requires determining the current state count at the current sampling time. First, the absolute difference between the sampled pressure value and the current pressure baseline is determined. If the absolute difference is not greater than a preset pressure difference threshold, it is considered that the pressure sensing device under test may be under stress (external pressure or self-deformation), and the current state count needs to be obtained to determine whether to update the current pressure baseline. Therefore, based on the sampled pressure value and the sampled noise value, the current state count of the pressure sensing device under test at the current sampling time is obtained based on the previous state count.
[0025] It should be noted that the aforementioned current deformation count reflects the deformation state from the start of the current sampling period up to the current sampling moment. If the current sampling moment is the last sampling moment of the current sampling period, it represents the deformation state for the entire current sampling period. The difference between the current deformation period count and the current deformation count is that the current deformation count is the accumulated value reached at each sampling moment, while the current deformation period is a qualitative quantity obtained over the entire sampling period. The current deformation count, based on the current sampling moment at the last sampling moment of the current sampling period, represents the deformation state for the entire period. Therefore, the two have a qualitative and quantitative distinction.
[0026] In an optional embodiment, when the previous state count includes the previous static count and the previous deformation count of the pressure sensing device under test at the previous sampling time, determining the current state count corresponding to the pressure sensing device under test at the current sampling time based on the sampled pressure value, the sampled noise value, and the previous state count, when the absolute difference is not greater than a preset pressure difference threshold, includes: resetting the previous deformation count to zero when the absolute difference is not greater than the pressure difference threshold to obtain a zeroed previous deformation count; determining whether the sampled noise value is greater than a preset first noise threshold; if the sampled noise value is not greater than the first noise threshold, then using a preset second accumulation value to perform a second accumulation process on the previous static count to obtain a second accumulated previous static count; and using the second accumulated previous static count and the zeroed previous deformation count as the current state count.
[0027] It is understandable that if the absolute difference is not greater than the pressure difference threshold, the pressure sensing device under test is considered to be without force, and the previous deformation count is reset to zero, resulting in the zeroed previous deformation count. Since force will cause disturbance to the pressure sensing device under test, leading to unstable sampling noise and an increase in sampling noise, it is determined whether the sampling noise value is greater than a preset first noise threshold. If the sampling noise value is not greater than the first noise threshold, the pressure sensing device under test is considered not to be pressed, and a preset second accumulation value is used to perform a second accumulation process on the previous static count, resulting in the second accumulated previous static count. Through the above processing, based on the sampling pressure value and sampling noise value obtained at the current sampling time, the second accumulated previous static count is obtained on the basis of the previous state count. The zeroed previous deformation count is used as the current state count.
[0028] It should be noted that since state counts characterize the continuous state of the pressure sensing device under test, the previous deformation count reflects the duration of deformation of the device before the current sampling time. The previous static count reflects the duration of time the device was not under force before the current sampling time. Based on the previous state counts, comprehensively considering the sampling pressure value and sampling noise value at the current sampling time helps to obtain a more accurate current state count.
[0029] In an optional embodiment, where the previous state count includes the previous static count and the previous deformation count of the pressure sensing device under test at the previous sampling time, the method further includes: if the absolute difference is greater than the pressure difference threshold, resetting the previous static count to zero to obtain a zeroed previous static count; determining whether the sampling noise value is greater than a preset second noise threshold; if the sampling noise value is greater than the second noise threshold, resetting the previous deformation count to zero to obtain a zeroed previous deformation count; using the zeroed previous static count and the zeroed previous deformation count as the current state count; using the current state count as the second initial state count corresponding to the next sampling time of the current sampling time; maintaining the current pressure baseline, and controlling the pressure sensing device under test to skip a preset number of sampling periods, wherein the first sampling period in the preset number of sampling periods is the current sampling period.
[0030] It is understandable that there are situations where the pressure sensing device under test cannot be updated. When the absolute difference is greater than the pressure difference threshold, it is considered that the pressure sensing device under test may be under stress. Therefore, the previous static count is reset to zero, resulting in a zeroed previous static count. Since the stress may be external pressure or self-deformation, the sampling noise value is used for auxiliary judgment. It is determined whether the sampling noise value is greater than the preset second noise threshold. If the sampling noise value is greater than the second noise threshold, it is considered that the stress on the pressure sensing device under test is external pressure, rather than deformation of the pressure sensing device itself. In this case, the previous deformation count is reset to zero, resulting in a zeroed previous deformation count. Through the above processing, a zeroed previous static count is obtained based on the previous static count. The zeroed previous deformation count is used as the current state count. Since updating the current pressure baseline when the pressure sensing device under test is under pressure will cause the pressure baseline to drift, resulting in an inaccurate updated pressure baseline, it is an abnormal update. Furthermore, each sampling moment is very brief compared to a human pressing action, which typically lasts for multiple sampling cycles. To reduce the computational and power consumption of the pressure sensing device under test, the current state count is used as the second initial state count for the next sampling moment, for subsequent use. The current pressure baseline is maintained and not updated. The pressure sensing device under test is also controlled to skip a preset number of sampling cycles; that is, starting from the current sampling cycle, no updates are performed on the pressure sensing device within the subsequent preset number of sampling cycles.
[0031] In an optional embodiment, the method further includes: if the sampling noise value is greater than the first noise threshold, then the previous static count is zeroed to obtain a zeroed previous static count; the zeroed previous static count and the zeroed previous deformation count are used as the current state count; the current state count is used as the second initial state count corresponding to the next sampling time of the current sampling time, and the current pressure baseline is maintained.
[0032] It is understandable that there are multiple processing methods when the pressure sensing device cannot be updated. If the sampling noise value is greater than the first noise threshold, it is considered that the pressure sensing device is not under force. If the sampling noise is large, it may be under disturbance. In this case, the previous static count is reset to zero, resulting in a zeroed previous static count. Through the above processing, the zeroed previous static count and the zeroed previous deformation count are obtained and used as the current state count. The current state count is used as the second initial state count corresponding to the next sampling time after the current sampling time for subsequent use, while maintaining the current pressure baseline without processing it.
[0033] In an optional embodiment, the method further includes: if the previous static count after the second accumulation process is not greater than the first counting threshold, taking the previous static count and the previous deformation count after being reset to zero as the current state count; taking the current state count as the second initial state count corresponding to the next sampling time of the current sampling time, and maintaining the current pressure baseline.
[0034] It is understandable that there are multiple ways to handle situations where the pressure sensing device cannot be updated. If the previous static count after the second accumulation process is not greater than the first count threshold, it is considered that the pressure sensing device has not been under stress for a sufficient period of time. To prevent frequent pressure baseline updates from wasting resources, the current pressure baseline is not updated. The previous static count, after being reset to zero, is used as the previous deformation count as the current state count. The current state count is used as the second initial state count corresponding to the next sampling time after the current sampling time for subsequent use, while maintaining the current pressure baseline.
[0035] In an optional embodiment, the method further includes: if the sampled noise value is not greater than the second noise threshold, then using a preset third accumulation value to perform a third accumulation process on the previous deformation count to obtain the previous deformation count after the third accumulation process; taking the previous deformation count after the third accumulation process and the previous static count after being reset to zero as the current state count; taking the current state count as the second initial state count, and maintaining the current pressure baseline.
[0036] It is understandable that there are multiple processing methods when the pressure sensing device cannot be updated. If the sampled noise value is not greater than the second noise value, it is considered that the pressure sensing device is under force, but not due to external pressure, i.e., deformation has occurred. A preset third accumulation value is used to perform a third accumulation process on the previous deformation count, resulting in the third accumulated previous deformation count. Through the above processing, the previous static count after the third accumulated previous deformation count is set to zero and used as the current state count. The current state count is used as the second initial state count for subsequent use, and the current pressure baseline is maintained without updating the current pressure baseline.
[0037] Step S106: If the current state count is greater than the preset first count threshold, the current pressure baseline of the pressure sensing device under test is updated using the sampling pressure value corresponding to the current sampling time.
[0038] It is understandable that if the current state count is greater than the first count threshold, it is considered that the pressure sensing device under test has been pressed or disturbed. The update will not cause the pressure baseline to drift. The current pressure baseline of the pressure sensing device under test is updated by using the sampling pressure value corresponding to the current sampling time.
[0039] It should be noted that during the power-on operation of the aforementioned pressure-sensing device under test, a continuous sampling process is performed. There are multiple sampling moments within a single sampling cycle, and each sampling moment yields the corresponding sampling pressure value and sampling noise value. The pressure-sensing device under test has an initial pressure baseline. Updating the current pressure baseline using real-time sampling pressure values facilitates corresponding operations based on the real-time status of the pressure-sensing device under test, thereby improving control accuracy.
[0040] In an optional embodiment, when the current state count includes a current static count, updating the current pressure baseline of the pressure sensing device under test using the sampling pressure value corresponding to the current sampling time when the current state count is greater than a preset first counting threshold includes: resetting the current static count to zero to obtain a zeroed current static count; using the zeroed current static count as a second initial state count corresponding to the next sampling time of the current sampling time; and updating the current pressure baseline of the pressure sensing device under test using the sampling pressure value corresponding to the current sampling time.
[0041] It is understandable that, in order to avoid continuously recording the static load state, the current static count is reset to zero during the normal update of the current pressure baseline. The current static count after being reset is used as the second initial state count corresponding to the next sampling time of the current sampling time, which facilitates the processing of subsequent sampling cycles.
[0042] In an optional embodiment, when the current sampling time is the last sampling time in the current sampling period, and the current state count includes the current deformation count and the current deformation period count, after determining the current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and the previous state count, the method further includes: determining whether the current deformation count is greater than a preset deformation count threshold; if the current deformation count is greater than the deformation count threshold, then using a preset first accumulation value to perform a first accumulation process on the current deformation period count to obtain the current deformation count after the first accumulation process. Variable period counting; if the current deformation period count after the first accumulation process is greater than the preset deformation period threshold, the current deformation count is zeroed to obtain the zeroed current deformation count; the current deformation period count after the first accumulation process is zeroed to obtain the zeroed current deformation period count; the current pressure baseline of the pressure sensing device under test is updated using the sampling pressure value corresponding to the current sampling time; the zeroed current deformation count, the zeroed current deformation period count, and the current static count are used as the first initial state count corresponding to the first sampling time in the next sampling period of the current sampling period.
[0043] It can be understood that when the current sampling moment is the last sampling moment in the current sampling period, it is considered that the sampling of the pressure sensing device under test has reached one sampling period. Given that the current state count includes the current static count, the current deformation count, and the current deformation cycle count, based on the sampled pressure value, the sampled noise value, and the previous state count, after determining the current state count corresponding to the pressure sensing device under test at the current sampling moment, it is determined whether the current deformation count is greater than a preset deformation count threshold. If the current deformation count is greater than the deformation count threshold, it is considered that the deformation duration of the pressure sensing device under test has reached a certain level, and deformation may have occurred, requiring further judgment based on the deformation cycle count. A preset first accumulation value is used to perform a first accumulation process on the current deformation cycle count to obtain the current deformation cycle count after the first accumulation process. If the current deformation cycle count after the first accumulation process exceeds the preset deformation cycle threshold, the pressure sensing device under test is considered to have deformed. Deformation under temporary stress is recoverable, but deformation reaching a certain level leads to irreversible deformation. Therefore, to ensure the pressure sensing device under test can continue to function normally and extend its service life, the current deformation count is reset to zero. The current pressure baseline of the pressure sensing device under test is updated using the sampling pressure value corresponding to the current sampling moment. This process can be considered as updating the deformed state as a new initial state. The current deformation count, the current deformation cycle count, and the current static count are used as the first initial state count corresponding to the first sampling moment in the next sampling period of the current sampling period, facilitating use in subsequent periods.
[0044] It should be noted that when the current sampling time is the last sampling time in the current sampling period, it can be regarded as processing the overall situation of the current sampling period. Compared with the processing performed at each sampling time, it focuses on considering whether the pressure sensing device under test has undergone irreversible deformation, resulting in continuous stress. If the pressure baseline is not updated in this case, it will affect normal operation and shorten the life of the pressure sensing device under test.
[0045] In an optional embodiment, the method further includes: if the current deformation count is not greater than the deformation count threshold, then the current deformation cycle count is zeroed to obtain the zeroed current deformation cycle count; the zeroed current deformation cycle count is used as the first initial state count corresponding to the first sampling time in the next sampling period.
[0046] It is understandable that if the current deformation count is not greater than the deformation count threshold, it is considered that the deformation duration of the pressure sensing device under test is insufficient to determine that irreversible deformation has occurred. Therefore, the current deformation cycle count is reset to zero, resulting in a zeroed current deformation cycle count. This zeroed current deformation cycle count is used as the first initial state count corresponding to the first sampling moment in the next sampling period.
[0047] It should be noted that the deformation state of the pressure sensing device under test may be caused by occasional factors, such as external force disturbances or sampling deviations. In such cases, the pressure baseline will not be updated. Since the deformation of the device is a permanent change, in order to prevent temporary deformation from being identified as deformation, the current deformation cycle count will be reset to zero if the current deformation count is not greater than the deformation count threshold.
[0048] In an optional embodiment, the method further includes: if the current deformation period count after the first accumulation process is not greater than the deformation period threshold, the current deformation period count after the first accumulation process is used as the first initial state count corresponding to the first sampling time in the next sampling period.
[0049] It is understandable that if the current deformation cycle count after the first accumulation process is not greater than the deformation cycle threshold, it is considered that further determination of whether deformation is required is needed. The current deformation cycle count after the first accumulation process is used as the first initial state count for subsequent sampling cycles.
[0050] In an optional embodiment, where the current state count includes a skipped cycle count and a current static count, before determining whether the current deformation count is greater than a preset deformation count threshold, the method further includes: determining whether the skipped cycle count is zero; if the skipped cycle count is not zero, pausing the update process for the next sampling period of the current sampling period; performing a first subtraction on the skipped cycle count using a preset first subtraction value to obtain a skipped cycle count after the first subtraction; resetting the current static count to zero to obtain a current static count after zeroing; resetting the current deformation count to zero to obtain a current deformation count after zeroing; resetting the current deformation cycle count to zero to obtain a current deformation cycle count after zeroing; and using the skipped cycle count after the first subtraction, the current static count after zeroing, the current deformation count after zeroing, and the current deformation cycle count after zeroing as the first initial state count corresponding to the first sampling time in the next sampling period.
[0051] It can be understood that the current state count includes: in the case of a skipped cycle count, it is determined whether the skipped cycle count is zero. If the skipped cycle count is not zero, it is considered that more skipped cycles are needed, and the update process for the next sampling cycle of the current sampling cycle is paused. A preset first subtraction value is used to perform a first subtraction on the skipped cycle count, resulting in a skipped cycle count after the first subtraction, representing a completed skip. The current static count is reset to zero, resulting in a zeroed current static count. The current deformation count is also reset to zero, resulting in a zeroed current deformation count. The current deformation cycle count after the first accumulation is also reset to zero, resulting in a zeroed current deformation cycle count. Through the above processing, during the cycle skipping process, the existing state counts are cleared, and the skipped cycle count after the first subtraction, the zeroed current static count, the zeroed current deformation count, and the zeroed current deformation cycle count are used as the initial state count corresponding to the first sampling moment in the next sampling cycle for easy subsequent use.
[0052] It should be noted that the skipped cycle count mentioned above is used to indicate whether a cycle needs to be skipped and the number of cycles to be skipped. If the skipped cycle count at the current sampling time is 0, it is considered that no cycle skipping is required.
[0053] Through the above steps, the pressure baseline can be updated based on real-time sampling of pressure and noise, thereby improving the accuracy of the pressure baseline. This achieves the technical effect of improving the accuracy of the pressure baseline and the operational reliability of pressure-sensitive equipment. It also solves the technical problem in related technologies where pressure equipment is pre-pressurized, leading to abnormal pressure baseline updates, pressure baseline drift, decreased control accuracy, and a high probability of abnormal equipment operation.
[0054] Based on the above embodiments and optional embodiments, the present invention proposes an optional implementation method. For ease of understanding, a specific example is given, which updates the pressure baseline of a pressure-sensitive device to be tested (hereinafter referred to as pressure-sensitive device). Figure 2 A schematic flowchart of an optional pressure baseline update processing method provided according to an embodiment of the present invention is shown below. Figure 2 As shown, during the operation of the pressure-sensitive device, the controller is always used for sampling and the pressure baseline is updated in real time. The specific steps are as follows:
[0055] Step S1: Sample the pressure-sensitive device. Multiple sampling operations are performed within one sampling cycle. The controller of the device samples at a preset frequency, such as a sampling frequency of 100 Hz, a sampling duration of 10 milliseconds for each sampling moment, and a sampling cycle of 500 milliseconds. The current pressure value and current noise value of the pressure-sensitive device are obtained through sampling and used as the sampled pressure value and sampled noise value. A sampling cycle is considered complete after 50 sampling moments. If a sampling cycle is completed (i.e., the current sampling moment is the last sampling moment in the current sampling cycle), proceed to step S8. If a sampling cycle is not completed (i.e., the current sampling moment is any sampling moment in the current sampling cycle other than the last sampling moment), proceed to step S2.
[0056] Step S2: Calculate the absolute difference between the sampled pressure value and the current pressure baseline. Based on the absolute difference, determine whether the pressure-sensitive device has been pressed or deformed (which may be temporary or permanent). Set the pressure difference threshold to 100. If the absolute difference is not greater than 100, proceed to step S3. If the absolute difference is greater than 100, proceed to step S6.
[0057] Step S3: If the absolute difference is not greater than 100, the pressure-sensitive device under test is considered to be unloaded, and the previous deformation count is cleared, resulting in a current deformation count of 0. Since loading causes disturbance to the pressure-sensitive device, the sampling noise becomes unstable and increases. A first noise threshold of 50 is set, and the sampling noise value is checked against 50. If the sampling noise is greater than 50, step S4 is executed; if the sampling noise is not greater than 50, the pressure-sensitive device under test is considered unloaded and in a static state, and the previous static count is incremented by 1, resulting in a current static count of 0. In the above case, the current state count is: current deformation count is 0, and current static count is the previous static count plus 1. A first count threshold of 50 is set, and if the current static count is not greater than 50, step S5 is executed. If the current static count is greater than 50, it is considered that the pressure sensing device under test has not been pressed or disturbed. The update will not cause pressure baseline drift. The sampling pressure value corresponding to the current sampling time is used to update the current pressure baseline of the pressure sensing device under test and clear the current static count. The current state count after processing is: the current deformation count is 0 and the current state count is 0. The current state count and the updated current pressure baseline are kept and the next sampling time is processed.
[0058] Step S4: If the sampling noise is greater than 50, it is considered that the pressure sensing device under test is not under force. The high sampling noise indicates a possible disturbance, so the previous static count is reset to zero, resulting in a current static count of 0. The current state counts are: current deformation count is 0, current static count is 0. The current pressure baseline is not updated; the current state count and current pressure baseline are maintained until the next sampling time to continue processing.
[0059] Step S5: If the current static count is not greater than 50, it is considered that the static load state duration of the pressure sensing device under test is insufficient. To prevent frequent pressure baseline updates from wasting resources, the current pressure baseline is not updated. The current state count is maintained as follows: the current deformation count is 0, and the current static count is the previous static count plus 1. The current pressure baseline is not updated, and the current pressure baseline is maintained to continue processing at the next sampling time.
[0060] Step S6: If the absolute difference is greater than the pressure difference threshold, the pressure sensing device under test is considered to be under stress, and the pressure baseline cannot be updated. The previous static count is reset to zero, resulting in a current static count of 0. Since the stress may be external pressure or self-deformation, the sampling noise value is used for auxiliary judgment. A second noise threshold of 50 is set, and the sampling noise value is checked to see if it is greater than 50. If the sampling noise value is not greater than 50, step S7 is executed. If the sampling noise value is greater than 50, the pressure sensing device under test is considered to be under external pressure, rather than self-deformation. The previous deformation count is reset to zero, resulting in a current deformation count of 0. That is, the current state count is: current deformation count is 0, current static count is 0. Since updating the current pressure baseline when the pressure sensing device under test is under pressure will cause the pressure baseline to drift, resulting in an inaccurate updated pressure baseline, this is an abnormal update. Furthermore, each sampling moment is very brief compared to a human pressing action, and the action generally lasts for multiple sampling cycles. In order to reduce the occupation of computing and power resources of the pressure sensing device under test, under the above circumstances, the current state count is maintained, the current pressure baseline is not updated, the current pressure baseline is maintained, and the pressure sensing device under test is controlled to skip a preset number of sampling cycles. That is, starting from the current sampling cycle, the pressure sensing device under test is not updated in the subsequent preset number of sampling cycles.
[0061] Step S7: If the sampling noise value is no greater than 50, it is considered that the pressure sensing device under test is under force, but not due to external pressure, i.e., deformation has occurred. The previous deformation count is incremented by 1, and the current deformation count is the previous deformation count plus 1. Current state count: The current static count is 0, and the current deformation count is the previous deformation count plus 1. The current pressure baseline is not updated, and the current state count and the current pressure baseline are maintained for processing at the next sampling time.
[0062] Step S8: The current sampling time is the last sampling time in the current sampling period. After determining the current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, sampling noise value, and the previous state count, it is determined whether a skip cycle count with non-zero values is needed. If the skip cycle count is not zero, skip cycle processing is required, and step S9 is executed. If the skip cycle count is zero, skip cycle processing is not required. After determining that skip cycle processing is not required, the deformation count threshold is set to 30, and it is determined whether the current deformation count is greater than 30. If the current deformation count is not greater than 30, step S10 is executed. If the current deformation count is greater than 30, it is considered that the deformation duration of the pressure sensing device under test has reached a certain level, and deformation may have occurred. The current deformation cycle count is incremented by 1 to obtain the current deformation cycle count after incrementing by 1. The deformation cycle threshold is set to 2. If the current deformation cycle count after incrementing by 1 is not greater than 2, step S11 is executed. If the current deformation cycle count after incrementing by 1 is greater than 2, the pressure sensing device under test is considered to have deformed. Deformation under temporary stress is recoverable, but deformation reaching a certain level will lead to irreversible deformation. Therefore, in order to allow the pressure sensing device under test in a deformed state to continue to be used normally and extend its service life, the current pressure baseline is updated, and the current deformation count and the current deformation cycle count after incrementing by 1 are cleared. That is, the current deformation count is 0, the current deformation cycle count is 0, and the current static count is 0. This serves as the first initial state count corresponding to the first sampling moment in the next sampling period of the current sampling period. The above processing of the current state count can be regarded as treating the pressure sensing device under test in a deformed state as a new normal state, ignoring the pressure impact caused by deformation, thereby achieving the goal of still being able to operate normally in a deformed state, thus extending its service life.
[0063] Step S9: If the skipped cycle count is not 0, it is considered that more skipped cycles are needed, so the update process for the next sampling cycle of the current sampling cycle is paused. The skipped cycle count is decremented by 1, indicating that one skip has been completed. The current static count, the current deformation count, and the current deformation cycle count are cleared and used as the first initial state count corresponding to the first sampling moment in the next sampling cycle.
[0064] Step S10: If the current deformation count is not greater than 30, it is considered that the deformation duration of the pressure sensing device under test is insufficient to determine that irreversible deformation has occurred. Therefore, the current deformation cycle count is cleared, resulting in a current deformation cycle count of 0. The zeroed current deformation cycle count, the current static count, and the current deformation count are used as the first initial state count corresponding to the first sampling moment in the next sampling cycle.
[0065] In step S11, if the current deformation cycle count after adding 1 is not greater than 2, it is considered that the deformation duration of the pressure sensing device under test is insufficient to determine that irreversible deformation has occurred, and it is considered that further determination of whether deformation has occurred is required. The current deformation cycle count after the first accumulation process is used as the first initial state count for subsequent sampling cycles.
[0066] The update method for the pressure-sensitive device under test has been specifically explained through steps 1 to S11 above. The pressure-sensitive device under test can be various, such as an electric toothbrush, water flosser, or hair dryer. These devices may face problems such as being squeezed, dropped, or permanently deformed due to prolonged storage and aging during transportation. In related technologies, once deformed, the pressure-sensitive device will be continuously subjected to abnormal pressure, leading to abnormal operation and eventual malfunction, thus reducing its lifespan. However, the method described in step 10 effectively avoids the problem of unusability due to deformation, demonstrating stronger adaptability and operational stability compared to pressure-sensitive products in related technologies.
[0067] On the other hand, user preferences can also affect the updating of the pressure baseline. For example, if the pressure-sensing device being tested is an electric toothbrush, and the user is accustomed to putting the toothbrush in their mouth first, pressure is already applied before the device is turned on. If the pressure is updated directly upon powering on, the pressure baseline will be updated to an abnormal value, meaning that the abnormally updated pressure baseline will be greater than the actual required pressure baseline value. Steps 2 to 7 above can effectively avoid this abnormal update caused by applying force in advance, thus ensuring the accuracy of the pressure baseline update.
[0068] The above-described optional implementation methods achieve at least one of the following effects: When the pressure-sensitive device is considered to be in a static or deformed state, the pressure baseline value is updated in real time. This avoids situations where pressure-sensitive products are deformed due to compression during transportation, natural aging in storage, or accidents such as drops, rendering the pressure-sensitive products unusable. It also avoids situations where abnormal baseline values lead to malfunctions due to different user habits. By implementing sampling and updating the corresponding pressure baseline, the possibility of misjudgment is reduced, providing a reliable guarantee for the normal operation of the pressure-sensitive device.
[0069] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0070] This embodiment also provides a pressure baseline update processing device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module" and "device" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.
[0071] According to embodiments of the present invention, an apparatus embodiment for implementing the pressure baseline update processing method is also provided. Figure 3 This is a schematic diagram of a pressure baseline update processing device according to an embodiment of the present invention, as shown below. Figure 3 As shown, the pressure baseline update processing device includes: an acquisition module 302, a determination module 304, and an update module 306. The device will be described below.
[0072] The acquisition module 302 is used to acquire the sampling pressure value and sampling noise value of the pressure sensing device under test at the current sampling time, wherein the current sampling time is any time within the current sampling period;
[0073] The determination module 304, connected to the acquisition module 302, is used to determine the current state count of the pressure sensing device under test at the current sampling time based on the above-mentioned sampled pressure value, the above-mentioned sampled noise value, and the previous state count, wherein the above-mentioned previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time.
[0074] The update module 306, connected to the determination module 304, is used to update the current pressure baseline of the pressure sensing device under test by using the sampling pressure value corresponding to the current sampling time when the current state count is greater than the preset first counting threshold.
[0075] In a pressure baseline update processing device provided in this embodiment of the invention, an acquisition module 302 is set up to acquire the sampling pressure value and sampling noise value of the pressure sensing device under test at the current sampling time, wherein the current sampling time is any time within the current sampling period; a determination module 304, connected to the acquisition module 302, is used to determine the current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and the previous state count, wherein the previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time; and an update module 306, connected to the determination module 304, is used to update the current pressure baseline of the pressure sensing device under test using the sampling pressure value corresponding to the current sampling time when the current state count is greater than a preset first counting threshold. This technology achieves the goal of updating the pressure baseline based on real-time sampling of pressure and noise, thereby improving the accuracy of the pressure baseline. It also improves the accuracy of the pressure baseline and enhances the operational reliability of pressure-sensitive equipment. Furthermore, it solves the technical problem in related technologies where pressure equipment is pre-pressurized, leading to abnormal pressure baseline updates, pressure baseline drift, decreased control accuracy, and a high probability of abnormal equipment operation.
[0076] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0077] It should be noted that the acquisition module 302, determination module 304, and update module 306 mentioned above correspond to steps S102 to S106 in the embodiments. The instances and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a computer terminal.
[0078] It should be noted that the optional or preferred implementation methods of this embodiment can be found in the relevant descriptions in the embodiments, and will not be repeated here.
[0079] The aforementioned pressure baseline update processing device may also include a processor and a memory. The acquisition module 302, the determination module 304, the update module 306, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0080] The processor contains a core that retrieves the corresponding program unit from memory. One or more cores may be configured. Memory may include non-persistent memory in computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory includes at least one storage device.
[0081] This invention provides a non-volatile storage medium storing a program that, when executed by a processor, implements a pressure baseline update processing method.
[0082] This invention provides an electronic device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: acquiring the sampled pressure value and sampled noise value of the pressure-sensitive device under test at the current sampling time, wherein the current sampling time is any time within the current sampling period; determining the current state count of the pressure-sensitive device under test at the current sampling time based on the sampled pressure value, the sampled noise value, and the previous state count, wherein the previous state count is the state count of the pressure-sensitive device under test at the previous sampling time corresponding to the current sampling time; and updating the current pressure baseline of the pressure-sensitive device under test using the sampled pressure value corresponding to the current sampling time if the current state count is greater than a preset first counting threshold. The device in this document can be a server, PC, etc.
[0083] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: acquiring the sampling pressure value and sampling noise value of the pressure sensing device under test at the current sampling time, wherein the current sampling time is any time within the current sampling period; determining the current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and the previous state count, wherein the previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time; and updating the current pressure baseline of the pressure sensing device under test using the sampling pressure value corresponding to the current sampling time when the current state count is greater than a preset first counting threshold.
[0084] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0085] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0086] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0087] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0088] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0089] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0090] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0091] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0092] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0093] The above are merely embodiments of the present invention and are not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of the claims of the present invention.
Claims
1. A method for updating pressure baselines, characterized in that, include: The sampling pressure value and sampling noise value of the pressure-sensitive device under test are obtained at the current sampling time. The current sampling time is any time within the current sampling period. The sampling noise value is the fluctuation value of the sampling electrical signal during the pressure detection process of the pressure-sensitive device. The comparison result of the sampling noise value and the preset noise threshold is used to determine whether the pressure-sensitive device under test is being pressed. Based on the sampled pressure value, the sampled noise value, and the previous state count, the current state count of the pressure sensing device under test at the current sampling time is determined, wherein the previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time. If the current sampling time is not the last sampling time of the current sampling period, the current state count includes the current static count and the current deformation count. The current static count is used to characterize the duration during which the pressure sensing device under test is not subjected to force, and the current deformation count is used to reflect the deformation state from the beginning of the current sampling period until the current sampling time. When the current sampling moment is the last sampling moment of the current sampling period, the current state count includes the current deformation count and the current deformation period count. The current deformation count is the cumulative value reached at each sampling moment, and the current deformation period count is determined based on the current deformation count at the last sampling moment of the current sampling period. If the current sampling time is not the last sampling time of the current sampling period, and the current static count in the current state count is greater than a preset first count threshold, the current pressure baseline of the pressure sensing device under test is updated using the sampling pressure value corresponding to the current sampling time. If the current sampling time is the last sampling time of the current sampling period, and the current deformation period count in the current state count is greater than a preset deformation period threshold, the current pressure baseline of the pressure sensing device under test is updated using the sampling pressure value corresponding to the current sampling time.
2. The method according to claim 1, characterized in that, When the current sampling time is the last sampling time in the current sampling period, after determining the current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and the previous state count, the method further includes: Determine whether the current deformation count is greater than a preset deformation count threshold; If the current deformation count is greater than the deformation count threshold, then a preset first accumulation value is used to perform a first accumulation process on the current deformation cycle count to obtain the current deformation cycle count after the first accumulation process. If the current deformation cycle count after the first accumulation process is greater than the preset deformation cycle threshold, the current deformation count is reset to zero to obtain the current deformation count after being reset to zero. The current deformation cycle count after the first accumulation process is reset to zero to obtain the current deformation cycle count after being reset to zero. The current pressure baseline of the pressure sensing device under test is updated using the sampling pressure value corresponding to the current sampling time. The current deformation count after being reset to zero, and the current deformation period count after being reset to zero, are used as the first initial state count corresponding to the first sampling moment in the next sampling period of the current sampling period.
3. The method according to claim 2, characterized in that, The method further includes: If the current deformation count is not greater than the deformation count threshold, then the current deformation cycle count is reset to zero to obtain the current deformation cycle count after being reset to zero. The current deformation period count after being reset to zero is used as the first initial state count corresponding to the first sampling moment in the next sampling period.
4. The method according to claim 2, characterized in that, When the current sampling time is the last sampling time in the current sampling period, the current state count also includes: skipped period count and current static count; Before determining whether the current deformation count is greater than a preset deformation count threshold, the method further includes: Determine whether the skipped cycle count is zero; If the skipped period count is not zero, then the update process for the next sampling period of the current sampling period is paused. The skipped cycle count is subtracted by a preset first subtraction value to obtain the skipped cycle count after the first subtraction. The current static count is reset to zero to obtain the current static count after being reset to zero. The current deformation count is reset to zero to obtain the current deformation count after being reset to zero. The current deformation cycle count is reset to zero to obtain the current deformation cycle count after being reset to zero. The skipped cycle count after the first subtraction processing, the current static count after zeroing, the current deformation count after zeroing, and the current deformation cycle count after zeroing are used as the first initial state count corresponding to the first sampling moment in the next sampling period.
5. The method according to claim 1, characterized in that, If the current sampling time is not the last sampling time of the current sampling period, determining the current state count of the pressure sensing device under test at the current sampling time based on the sampling pressure value, the sampling noise value, and the previous state count includes: Determine the absolute difference between the sampled pressure value and the current pressure baseline of the pressure sensing device under test; If the absolute difference is not greater than a preset pressure difference threshold, the current state count corresponding to the pressure sensing device under test at the current sampling time is determined based on the sampled pressure value, the sampled noise value, and the previous state count.
6. The method according to claim 5, characterized in that, When the previous state count includes the previous static count and the previous deformation count of the pressure sensing device under test at the previous sampling time, the step of determining the current state count of the pressure sensing device under test at the current sampling time based on the sampled pressure value, the sampled noise value, and the previous state count, when the absolute difference is not greater than a preset pressure difference threshold, includes: If the absolute difference is not greater than the pressure difference threshold, the previous deformation count is zeroed to obtain the zeroed previous deformation count. Determine whether the sampled noise value is greater than a preset first noise threshold; If the sampled noise value is not greater than the first noise threshold, then a preset second accumulation value is used to perform a second accumulation process on the previous static count to obtain the previous static count after the second accumulation process. The previous static count after the second accumulation process and the previous deformation count after returning to zero are used as the current state count.
7. The method according to claim 5, characterized in that, If the previous state count includes the previous static count and the previous deformation count of the pressure sensing device under test at the previous sampling time, the method further includes: If the absolute difference is greater than the pressure difference threshold, the previous static count is reset to zero to obtain the previous static count after being reset to zero. Determine whether the sampled noise value is greater than a preset second noise threshold; If the sampled noise value is greater than the second noise threshold, the previous deformation count is reset to zero to obtain the previous deformation count after being reset to zero. The previous static count after being reset to zero and the previous deformation count after being reset to zero are used as the current state count; The current state count is used as the second initial state count corresponding to the next sampling time of the current sampling time; Maintain the current pressure baseline and control the pressure sensing device under test to skip a preset number of sampling periods without updating the pressure sensing device under test, wherein the first sampling period in the preset number of sampling periods is the current sampling period.
8. The method according to claim 7, characterized in that, The method further includes: If the sampled noise value is not greater than the second noise threshold, then a preset third accumulation value is used to perform a third accumulation process on the previous deformation count to obtain the previous deformation count after the third accumulation process. The previous deformation count after the third accumulation process and the previous static count after being reset to zero are used as the current state count; The current state count is used as the second initial state count, and the current pressure baseline is maintained.
9. The method according to claim 6, characterized in that, The method further includes: If the sampled noise value is greater than the first noise threshold, the previous static count is zeroed to obtain the previous static count after zeroing. The previous static count after being reset to zero and the previous deformation count after being reset to zero are used as the current state count; The current state count is used as the second initial state count corresponding to the next sampling time of the current sampling time, and the current pressure baseline is maintained.
10. The method according to claim 6, characterized in that, The method further includes: If the previous static count after the second accumulation process is not greater than the first counting threshold, the previous static count after the second accumulation process and the previous deformation count after being reset to zero shall be used as the current state count. The current state count is used as the second initial state count corresponding to the next sampling time of the current sampling time, and the current pressure baseline is maintained.
11. A pressure baseline update processing device, characterized in that, include: The acquisition module is used to acquire the sampling pressure value and sampling noise value of the pressure-sensitive device under test at the current sampling time. The current sampling time is any time within the current sampling period, and the sampling noise value is the fluctuation value of the sampling electrical signal during the pressure detection process of the pressure-sensitive device. The comparison result of the sampling noise value and the preset noise threshold is used to determine whether the pressure-sensitive device under test is being pressed. A determining module is configured to determine the current state count of the pressure sensing device under test at the current sampling time based on the sampled pressure value, the sampled noise value, and the previous state count, wherein the previous state count is the state count of the pressure sensing device under test at the previous sampling time corresponding to the current sampling time; when the current sampling time is not the last sampling time of the current sampling period, the current state count includes a current static count and a current deformation count, wherein the current static count is used to characterize the duration during which the pressure sensing device under test is not subjected to force, and the current deformation count is used to reflect the deformation state from the beginning of the current sampling period to the current sampling time; when the current sampling time is the last sampling time of the current sampling period, the current state count includes a current deformation count and a current deformation cycle count, wherein the current deformation count is the cumulative value reached at each sampling time, and the current deformation cycle count is determined based on the current deformation count at the last sampling time of the current sampling period; The update module is configured to update the current pressure baseline of the pressure sensing device under test using the sampling pressure value corresponding to the current sampling time when the current sampling time is not the last sampling time of the current sampling period and the current static count in the current state count is greater than a preset first count threshold; and to update the current pressure baseline of the pressure sensing device under test using the sampling pressure value corresponding to the current sampling time when the current sampling time is the last sampling time of the current sampling period and the current deformation period count in the current state count is greater than a preset deformation period threshold.
Citation Information
Patent Citations
Pressure detection method and device and electronic equipment
CN112099661A