Bellows-based height difference measurement stability improvement method and apparatus
By using the expansion characteristics and data screening technology of bellows in the height difference measurement device, the problem of pressure sensors being susceptible to interference is solved, and the measurement stability and accuracy are improved.
Patent Information
- Application Number
- PCT/CN2024/092112
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-25
- Filing Date
- 2024-05-10
- Publication Date
- 2024-11-28
AI Technical Summary
In current measurement height difference products, pressure sensors are susceptible to external interference, resulting in insufficient measurement stability, affecting the accuracy of pressure reading values.
By using a preset corrugated tube to improve the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor, collect and screen pressure data, calculate the pressure average value, detect the pressure accuracy, and update the pressure value To reduce interference effects and ensure measurement stability.
Improves the stability of the measurement height difference product when measuring pressure, improves the accuracy of pressure reading values, and reduces inaccurate data caused by interference.
Smart Images

Figure CN2024092112_28112024_PF_FP_ABST
Abstract
Description
Method and device for improving stability of height difference measurement based on bellows Technical Field
[0001] The present invention relates to the field of height measurement, and in particular to a method and device for improving the stability of height difference measurement based on a bellows. Background Art
[0002] Improving the stability of height difference measurement of bellows refers to the process of compensating for the pressure measurement deviation of the pressure sensor through the expansion and contraction transformation characteristics of the bellows, and then screening the measured pressure to ensure the accuracy of the height difference finally obtained through pressure calculation.
[0003] Current products for measuring height difference include two pressure sensors: a first pressure sensor and a second pressure sensor. The first pressure sensor is mounted on a circuit board, close to the board and therefore less susceptible to interference. The second pressure sensor reads data via the I²C bus and transmits it to the host computer via I²C communication. Because the I²C bus is used for long-distance communication, harmonics from external motors can easily be transmitted through the wires to the I²C bus. Spatial radiation and harmonics can cause pressure readings to fail at long distances, leading to interface failure. Consequently, due to the lack of stability in pressure measurement, current products for measuring height difference have low accuracy in pressure readings. Summary of the Invention
[0004] In order to solve the above problems, the present invention provides a method and device for improving the stability of height difference measurement based on a bellows, which can ensure the stability of the height difference measuring product when measuring pressure, thereby improving the accuracy of the pressure reading values of the current height difference measuring product.
[0005] In a first aspect, the present invention provides a method for improving the stability of height difference measurement based on a bellows, comprising:
[0006] Using a preset bellows, the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor is improved to obtain a structural stability improvement result;
[0007] collecting a first pressure of the first pressure sensor, detecting whether the first pressure is subject to external interference, and when the first pressure is not subject to external interference, performing pressure screening on the first pressure to obtain a screening pressure, and calculating a first pressure average value of the screening pressure;
[0008] collecting a second pressure from the second pressure sensor, calculating a second average pressure value of the second pressure, detecting a pressure accuracy of the second average pressure value based on a historical average pressure value of the second pressure sensor, and if the pressure accuracy is accurate, updating the second pressure using the second average pressure value to obtain an updated pressure;
[0009] calculating a dynamic height difference of the height difference measuring device based on the first pressure average value and the updated pressure, and determining a dynamic stability improvement result of the height difference measuring device using the dynamic height difference;
[0010] The final stability improvement result of the height difference measuring device is determined by combining the structural stability improvement result and the dynamic stability improvement result.
[0011] In a possible implementation of the first aspect, using a preset bellows to improve the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor to obtain a structural stability improvement result includes:
[0012] Determining the outer metal of the height difference measuring device, wherein the outer metal includes a metal cover and a metal braided mesh tube;
[0013] The metal braided mesh tube is arranged between the first pressure sensor and the second pressure sensor, and the metal cover is arranged at the first pressure sensor and the second pressure sensor respectively, to obtain a height difference measuring device equipped with the outer metal cover;
[0014] When the second pressure sensor is subject to external interference, the second pressure sensor is used as an interference-susceptible sensor;
[0015] The bellows and the interference-susceptible sensor are combined in the height difference measuring device configured with the outer metal to obtain a structure stability improvement device, and the structure stability improvement device is used as the structure stability improvement result.
[0016] In a possible implementation of the first aspect, collecting the first pressure of the first pressure sensor includes:
[0017] collecting the pressure of the first pressure sensor through a serial bus of a height difference measuring device corresponding to the first pressure sensor until the number of pressure collections meets a preset number, thereby obtaining a first pressure sequence;
[0018] Perform bubble sorting on the first pressure sequence to obtain the first pressure.
[0019] In a possible implementation of the first aspect, detecting whether the first pressure is subject to external interference includes:
[0020] querying whether each of the first pressures is zero;
[0021] When each of the first pressures is zero, the first pressure is disturbed by external factors;
[0022] When each of the first pressures is not zero, the first pressures are not disturbed by the outside world.
[0023] In a possible implementation of the first aspect, performing pressure screening on the first pressure to obtain a screening pressure includes:
[0024] detecting whether there is an invalid pressure in the first pressure;
[0025] When the invalid pressure exists in the first pressure, removing the invalid pressure in the first pressure to obtain an initial screening pressure;
[0026] Eliminating the head and tail pressures from the initial screening pressure to obtain a first screening pressure;
[0027] When the invalid pressure does not exist in the first pressure, the middle pressure in the first pressure is intercepted to obtain the second screening pressure.
[0028] In a possible implementation of the first aspect, calculating the first pressure average of the screening pressure includes:
[0029] The pressure sum of the screening pressure is calculated using the following formula:
[0030]
[0031] in, represents the pressure and, represents the screening pressure, i represents the sequence number of each pressure in the screening pressure, and n represents the total number of all pressures in the screening pressure;
[0032] The first pressure average value is calculated based on the pressure sum using the following formula:
[0033]
[0034] in, represents the first pressure average value, represents the sum of the pressures, and n represents the total number of all pressures in the screening pressure.
[0035] In a possible implementation of the first aspect, detecting the pressure accuracy of the second average pressure value based on a historical average pressure value of the second pressure sensor includes:
[0036] Calculating a pressure difference between the historical pressure average and the second pressure average;
[0037] When the pressure difference exceeds a preset difference range, the inaccuracy is used as the pressure accuracy of the second pressure average value;
[0038] When the pressure difference does not exceed a preset difference range, the accuracy is used as the pressure accuracy of the second pressure average value.
[0039] In a possible implementation of the first aspect, calculating the dynamic height difference of the height difference measuring device based on the first pressure average value and the updated pressure includes:
[0040] collecting the gravitational acceleration of the height difference measuring device;
[0041] Based on the first pressure average, the updated pressure, and the gravitational acceleration, the dynamic height difference of the height difference measuring device is calculated using the following formula:
[0042]
[0043] in, represents the dynamic height difference, represents the first pressure average value, represents the update pressure, Indicates pressure density, with a value of 0.93g / cm³. Represents the acceleration due to gravity, which has a value of 9.8 m / s².
[0044] In a possible implementation of the first aspect, determining a dynamic stability improvement result of the height difference measurement device by using the dynamic height difference includes:
[0045] Collecting the current acceleration of the sensor corresponding to the dynamic height difference;
[0046] Calculating the three-dimensional angle value of the height difference measuring device using the current acceleration of the sensor;
[0047] Based on the three-dimensional angle value, the pressure sensor of the height difference measuring device is angle-corrected to obtain a pressure sensor with a corrected angle, and the pressure sensor with the corrected angle is used as the dynamic stability improvement result.
[0048] In a second aspect, the present invention provides a device for improving the stability of height difference measurement based on a bellows, the device comprising:
[0049] a structure improvement module, configured to improve the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor using a preset bellows, and obtain a structural stability improvement result;
[0050] an average value calculation module, configured to collect a first pressure of the first pressure sensor, detect whether the first pressure is subject to external interference, and when the first pressure is not subject to external interference, perform pressure screening on the first pressure to obtain a screening pressure, and calculate a first pressure average value of the screening pressure;
[0051] a pressure updating module, configured to collect a second pressure from the second pressure sensor, calculate a second average pressure value of the second pressure, detect a pressure accuracy of the second average pressure value based on a historical average pressure value of the second pressure sensor, and, if the pressure accuracy is accurate, update the second pressure using the second average pressure value to obtain an updated pressure;
[0052] an altitude calculation module, configured to calculate a dynamic altitude difference of the altitude difference measuring device based on the first pressure average value and the updated pressure, and determine a dynamic stability improvement result of the altitude difference measuring device using the dynamic altitude difference;
[0053] A result determination module is used to combine the structural stability improvement result and the dynamic stability improvement result to determine a final stability improvement result of the height difference measurement device.
[0054] Compared with the existing technology, the technical principle and beneficial effects of this solution are:
[0055] The embodiment of the present invention first improves the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor by utilizing a preset bellows, so as to utilize the telescopic length characteristic of the bellows to reduce the pressure variation amplitude of the pressure sensor, thereby ensuring that the pressure measurement can be carried out stably. The embodiment of the present invention collects the first pressure of the first pressure sensor to perform data screening on the first pressure, thereby eliminating inaccurate data caused by unstable measurement. Furthermore, the embodiment of the present invention detects whether the first pressure is subject to external interference, thereby performing stability detection on the pressure data collected from the pressure sensor by the I²C bus, and detecting whether the collected pressure data is incorrect data collected when subject to interference. Furthermore, the embodiment of the present invention calculates the first pressure average value of the screened pressures, thereby averaging the collected multiple pressures. The sequence of force data is classified into a final pressure value. Furthermore, an embodiment of the present invention collects the second pressure of the second pressure sensor to filter the pressure data collected in a stable scenario from the second pressure. Furthermore, an embodiment of the present invention detects the pressure accuracy of the second pressure average value based on the historical pressure average value of the second pressure sensor to detect whether the measured pressure average value has changed too much compared with the historical average value, thereby detecting whether the pressure measurement is interfered with, thereby removing the influence of external interference and ensuring the accuracy of the measured average value. Furthermore, an embodiment of the present invention updates the second pressure using the second pressure average value according to the pressure accuracy to obtain an updated pressure, which is used to replace the originally collected pressure data with the filtered average value data that has eliminated instability, thereby ensuring the stability of the pressure measurement data. Therefore, the embodiment of the present invention proposes a method and device for improving the stability of height difference measurement based on a bellows, which can ensure the stability of the height difference measurement product when measuring pressure, thereby improving the accuracy of the pressure reading value of the current height difference measurement product. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0058] FIG1 is a schematic flow chart of a method for improving the stability of height difference measurement based on a bellows according to an embodiment of the present invention;
[0059] FIG2 is a schematic diagram of a height difference measurement device according to a method for improving the stability of height difference measurement based on a bellows provided in FIG1 in one embodiment of the present invention;
[0060] FIG3 is another schematic diagram of a height difference measurement device according to a method for improving the stability of height difference measurement based on a bellows provided in FIG1 in one embodiment of the present invention;
[0061] FIG4 is a flow chart of another step of a method for improving the stability of height difference measurement based on a bellows provided in FIG1 according to one embodiment of the present invention;
[0062] FIG5 is a schematic diagram of a module of a device for improving the stability of height difference measurement based on a bellows according to an embodiment of the present invention;
[0063] FIG6 is a schematic diagram of the internal structure of an electronic device for implementing a method for improving the stability of height difference measurement based on a bellows according to an embodiment of the present invention. DETAILED DESCRIPTION
[0064] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0065] An embodiment of the present invention provides a method for improving the stability of height difference measurement based on a bellows, and the execution subject of the method for improving the stability of height difference measurement based on a bellows includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the method for improving the stability of height difference measurement based on a bellows can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0066] 1 is a flow chart of a method for improving the stability of height difference measurement based on a bellows according to an embodiment of the present invention. The method for improving the stability of height difference measurement based on a bellows described in FIG1 includes:
[0067] S1. Using a preset bellows, the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor is improved to obtain a structural stability improvement result.
[0068] The embodiment of the present invention improves the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor by utilizing a preset bellows, so as to utilize the telescopic length characteristics of the bellows to reduce the pressure variation amplitude of the pressure sensor, thereby ensuring that the pressure measurement can be carried out stably.
[0069] Among them, the bellows has the characteristic of expanding and contracting its own length, which can buffer the change in pressure and reduce the change in pressure. For example, in the process of the pressure sensor raising or lowering the height, the bellows can be extended or contracted to offset the change in pressure. If the bellows at this end does not exist, the value of the pressure sensor will change too much during dynamic measurement, indicating that the pressure sensor is subject to external interference, thereby causing inaccurate height calculation results when using pressure to calculate height; the first pressure sensor and the second pressure sensor are the same sensor, but they are placed in different positions, one high and the other low. The current height difference can be detected by the pressure difference between the high and low pressure sensors, thereby forming the height difference measuring device.
[0070] In one embodiment of the present invention, the use of a preset bellows to improve the structural stability of a height difference measuring device between a first pressure sensor and a second pressure sensor to obtain a structural stability improvement result includes: determining the outer metal of the height difference measuring device, wherein the outer metal includes a metal cover and a metal braided mesh tube; configuring the metal braided mesh tube between the first pressure sensor and the second pressure sensor, and configuring the metal cover at the first pressure sensor and the second pressure sensor respectively, to obtain a height difference measuring device configured with the outer metal; when the second pressure sensor is subject to external interference, using the second pressure sensor as a sensor susceptible to interference; combining the bellows and the susceptible interference sensor in the height difference measuring device configured with the outer metal to obtain a structural stability improvement device, and using the structural stability improvement device as the structural stability improvement result.
[0071] For example, the entire height difference measurement product is surrounded by metal (i.e., the metal covers at both ends and the metal braided mesh tube in the middle), forming a shield that can effectively prevent space radiation from entering the circuit board; since the bellows has a buffering property, the bellows end offsets the pressure change by stretching or contracting during the process of raising or lowering the height. If the bellows at this end does not exist, the value of the second pressure sensor will change too much during dynamic measurement, resulting in inaccurate height calculation results. Therefore, the bellows and the second pressure sensor need to be combined and spliced.
[0072] Refer to Figure 2, which is a schematic diagram of a height difference measurement device according to a method for improving the stability of height difference measurement based on a bellows according to an embodiment of the present invention. In Figure 2, 202 represents a metal cover, and 203 represents a metal braided mesh tube.
[0073] Refer to Figure 3, which is another schematic diagram of a height difference measurement device based on a bellows-based height difference measurement stability improvement method provided in Figure 1 in one embodiment of the present invention. In Figure 3, 201 represents a first pressure sensor, 204 represents a second pressure sensor, and 205 represents a bellows. The first pressure sensor and the second pressure sensor are connected by a metal braided mesh tube. Metal covers are wrapped around the first pressure sensor and the second pressure sensor respectively to prevent external interference with the pressure sensors. Since the middle pipe will vibrate during dynamic pressure measurement, thereby affecting the second pressure sensor, but having little effect on the first pressure sensor, a bellows is added in front of the second pressure sensor to reduce the error caused by swinging during the lifting and lowering of the product.
[0074] S2. Collect the first pressure of the first pressure sensor and detect whether the first pressure is subject to external interference. When the first pressure is not subject to external interference, perform pressure screening on the first pressure to obtain a screening pressure, and calculate a first pressure average value of the screening pressure.
[0075] In one embodiment of the present invention, the collecting of the first pressure of the first pressure sensor also includes: powering on and starting the height difference measuring device corresponding to the first pressure sensor to obtain a power-on starting device; initializing the microcontroller and peripherals in the power-on starting device to obtain an initialized height difference measuring device.
[0076] In the embodiment of the present invention, the first pressure of the first pressure sensor is collected to perform data screening on the first pressure, thereby eliminating inaccurate data caused by unstable measurement.
[0077] In one embodiment of the present invention, referring to FIG4 , the collecting the first pressure of the first pressure sensor includes:
[0078] S301, collecting pressure of the first pressure sensor through a serial bus of a height difference measuring device corresponding to the first pressure sensor until the number of pressure collections meets a preset number, thereby obtaining a first pressure sequence;
[0079] S302: Perform bubble sorting on the first pressure sequence to obtain the first pressure.
[0080] Optionally, the process of collecting the pressure of the first pressure sensor through the serial bus of the height difference measuring device corresponding to the first pressure sensor can be implemented through I²C bus collection.
[0081] Furthermore, the embodiment of the present invention detects whether the first pressure is subject to external interference, thereby performing stability detection on the pressure data collected from the pressure sensor via the I²C bus, and detecting whether the collected pressure data is incorrect data when subject to interference.
[0082] In one embodiment of the present invention, detecting whether the first pressure is subject to external interference includes: querying whether each first pressure in the first pressure is zero; when each first pressure in the first pressure is zero, the first pressure is subject to external interference; when each first pressure in the first pressure is not zero, the first pressure is not subject to external interference.
[0083] Optionally, when the first pressure is disturbed by external factors, the pressure data collected through the I²C bus has no reference value, and therefore, the collected data does not need to be used to update the historical pressure data stored in the system.
[0084] In one embodiment of the present invention, the pressure screening of the first pressure to obtain the screening pressure includes: detecting whether there is invalid pressure in the first pressure; when the invalid pressure exists in the first pressure, removing the invalid pressure in the first pressure to obtain an initial screening pressure; eliminating the head and tail pressures in the initial screening pressure to obtain a first screening pressure; when the invalid pressure does not exist in the first pressure, intercepting the middle pressure in the first pressure to obtain a second screening pressure.
[0085] The invalid pressure refers to a pressure with a zero value. For example, the process of eliminating the first and last pressures from the initial screening pressure to obtain the first screening pressure is to remove the first and last two data points. The process of intercepting the intermediate pressure from the first pressure is similar to the process of eliminating the first and last pressures from the initial screening pressure to obtain the first screening pressure, and will not be further elaborated here.
[0086] Furthermore, the embodiment of the present invention calculates a first pressure average value of the screening pressure to classify the sequences of the plurality of collected pressure data into a final pressure value.
[0087] In one embodiment of the present invention, the calculating of the first average pressure of the screening pressure includes: calculating the pressure sum of the screening pressure using the following formula:
[0088]
[0089] in, represents the pressure and, represents the screening pressure, i represents the sequence number of each pressure in the screening pressure, and n represents the total number of all pressures in the screening pressure;
[0090] The first pressure average value is calculated based on the pressure sum using the following formula:
[0091]
[0092] in, represents the first pressure average value, represents the sum of the pressures, and n represents the total number of all pressures in the screening pressure.
[0093] S3. Collect the second pressure of the second pressure sensor, calculate a second pressure average value of the second pressure, detect the pressure accuracy of the second pressure average value based on a historical pressure average value of the second pressure sensor, and when the pressure accuracy is accurate, update the second pressure using the second pressure average value to obtain an updated pressure.
[0094] In this embodiment of the present invention, the second pressure of the second pressure sensor is collected to filter the pressure data collected in a stable scenario from the second pressure.
[0095] In one embodiment of the present invention, the principle of collecting the second pressure of the second pressure sensor is similar to the principle of collecting the first pressure of the first pressure sensor, and no further screening is performed here.
[0096] In one embodiment of the present invention, the principle of calculating the second pressure average value of the second pressure is similar to the above-mentioned detection of whether the first pressure is subject to external interference. When the first pressure is not subject to external interference, the first pressure is pressure screened to obtain the screening pressure, and the first pressure average value of the screening pressure is calculated, and no further details are given here.
[0097] Furthermore, an embodiment of the present invention detects the pressure accuracy of the second pressure average value based on the historical pressure average value of the second pressure sensor, so as to detect whether the measured pressure average value varies too much compared with the historical average value, thereby detecting whether the pressure measurement is interfered with, thereby subsequently removing the influence of external interference and ensuring the accuracy of the measured average value.
[0098] In one embodiment of the present invention, the detection of the pressure accuracy of the second pressure average value based on the historical pressure average value of the second pressure sensor includes: calculating the pressure difference between the historical pressure average value and the second pressure average value; when the pressure difference exceeds a preset difference range, using the inaccuracy as the pressure accuracy of the second pressure average value; when the pressure difference does not exceed the preset difference range, using the accuracy as the pressure accuracy of the second pressure average value.
[0099] The preset difference range may be set to ±0.1 KPa, or may be set according to actual scenarios.
[0100] Furthermore, the embodiment of the present invention updates the second pressure using the second pressure average value when the pressure accuracy is accurate, so as to replace the originally collected pressure data with the filtered average value data with instability eliminated, thereby ensuring the stability of the pressure measurement data.
[0101] In one embodiment of the present invention, when the pressure accuracy is accurate, updating the second pressure using the second pressure average value to obtain the updated pressure includes: replacing the second pressure with the second pressure average value.
[0102] S4. Calculate the dynamic height difference of the height difference measuring device based on the first pressure average value and the updated pressure, and determine a dynamic stability improvement result of the height difference measuring device using the dynamic height difference.
[0103] In one embodiment of the present invention, calculating the dynamic altitude difference of the altitude difference measuring device based on the first pressure average value and the updated pressure includes: collecting the gravitational acceleration of the altitude difference measuring device; and calculating the dynamic altitude difference of the altitude difference measuring device based on the first pressure average value, the updated pressure, and the gravitational acceleration using the following formula:
[0104]
[0105] in, represents the dynamic height difference, represents the first pressure average value, represents the update pressure, Indicates pressure density, with a value of 0.93g / cm³. Represents the acceleration due to gravity, which has a value of 9.8 m / s².
[0106] In one embodiment of the present invention, the use of the dynamic height difference to determine the dynamic stability improvement result of the height difference measuring device includes: collecting the current acceleration of the sensor corresponding to the dynamic height difference; calculating the three-dimensional angle value of the height difference measuring device using the current acceleration of the sensor; based on the three-dimensional angle value, performing angle correction on the pressure sensor of the height difference measuring device to obtain a pressure sensor with a corrected angle, and using the pressure sensor with the corrected angle as the dynamic stability improvement result.
[0107] S5. Determine a final stability improvement result of the height difference measurement device by combining the structural stability improvement result and the dynamic stability improvement result.
[0108] It can be seen that the embodiment of the present invention first improves the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor by utilizing a preset bellows, so as to utilize the characteristics of the telescopic length of the bellows to reduce the pressure variation amplitude of the pressure sensor, thereby ensuring that the pressure measurement can be carried out stably. The embodiment of the present invention collects the first pressure of the first pressure sensor to perform data screening on the first pressure and eliminate inaccurate data caused by unstable measurement. Furthermore, the embodiment of the present invention detects whether the first pressure is subject to external interference to perform stability detection on the pressure data collected from the pressure sensor by the I²C bus, and detects whether the collected pressure data is incorrect data collected when subject to interference. Furthermore, the embodiment of the present invention calculates the first pressure average value of the screened pressure to average the collected multiple pressures. The sequence of pressure data is classified into a final pressure value. Furthermore, the embodiment of the present invention collects the second pressure of the second pressure sensor to filter the pressure data collected in a stable scenario from the second pressure. Furthermore, the embodiment of the present invention detects the pressure accuracy of the second pressure average value based on the historical pressure average value of the second pressure sensor to detect whether the measured pressure average value has changed too much compared with the historical average value, thereby detecting whether the pressure measurement is interfered with, thereby removing the influence of external interference in the subsequent process and ensuring the accuracy of the measured average value. Furthermore, the embodiment of the present invention updates the second pressure using the second pressure average value according to the pressure accuracy to obtain an updated pressure, which is used to replace the originally collected pressure data with the filtered average value data that has eliminated instability, thereby ensuring the stability of the pressure measurement data. Therefore, the method for improving the stability of height difference measurement based on bellows proposed in the embodiment of the present invention can ensure the stability of the height difference measurement product when measuring pressure, thereby improving the accuracy of the pressure reading value of the current height difference measurement product.
[0109] As shown in FIG5 , it is a functional module diagram of the device for improving the stability of height difference measurement based on a bellows according to the present invention.
[0110] The bellows-based height difference measurement stability improvement device 400 described in the present invention can be installed in an electronic device. Depending on the functionality to be implemented, the bellows-based height difference measurement stability improvement device can include a structure improvement module 401, a mean value calculation module 402, a pressure update module 403, a height calculation module 404, and a result determination module 405. A module, also referred to as a unit, is a series of computer program segments that can be executed by an electronic device processor and perform a fixed function, and is stored in the electronic device's memory.
[0111] In the embodiment of the present invention, the functions of each module / unit are as follows:
[0112] The structure improvement module 401 is used to improve the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor using a preset bellows, and obtain a structural stability improvement result;
[0113] The mean value calculation module 402 is configured to collect the first pressure of the first pressure sensor, detect whether the first pressure is subject to external interference, and if the first pressure is not subject to external interference, perform pressure screening on the first pressure to obtain a screening pressure, and calculate a first pressure mean value of the screening pressure;
[0114] The pressure updating module 403 is configured to collect the second pressure of the second pressure sensor, calculate a second average pressure value of the second pressure, detect the pressure accuracy of the second average pressure value based on the historical average pressure value of the second pressure sensor, and update the second pressure using the second average pressure value to obtain an updated pressure when the pressure accuracy is accurate;
[0115] The altitude calculation module 404 is configured to calculate a dynamic altitude difference of the altitude difference measuring device based on the first pressure average value and the updated pressure, and determine a dynamic stability improvement result of the altitude difference measuring device using the dynamic altitude difference;
[0116] The result determination module 405 is configured to combine the structural stability improvement result and the dynamic stability improvement result to determine a final stability improvement result of the height difference measurement device.
[0117] In detail, the modules in the device 400 for improving the stability of height difference measurement based on bellows described in the embodiment of the present invention adopt the same technical means as the method for improving the stability of height difference measurement based on bellows described in Figures 1 to 4 above when in use, and can produce the same technical effects, which will not be repeated here.
[0118] FIG6 is a schematic diagram showing the structure of an electronic device for implementing a method for improving the stability of height difference measurement based on a bellows according to the present invention.
[0119] The electronic device may include a processor 50, a memory 51, a communication bus 52 and a communication interface 53, and may also include a computer program stored in the memory 51 and executable on the processor 50, such as a stability improvement program based on height difference measurement of a bellows.
[0120] In some embodiments, the processor 50 may be comprised of an integrated circuit, such as a single packaged integrated circuit or a plurality of packaged integrated circuits with the same or different functions, including a combination of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 50 is the control core (control unit) of the electronic device, connecting the various components of the electronic device using various interfaces and circuits. It executes programs or modules stored in the memory 51 (e.g., a program for improving the stability of height difference measurements based on a bellows) and accesses data stored in the memory 51 to perform various functions of the electronic device and process data.
[0121] The memory 51 includes at least one type of readable storage medium, including flash memory, a removable hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 51 may be an internal storage unit of the electronic device, such as a removable hard disk of the electronic device. In other embodiments, the memory 51 may also be an external storage device of the electronic device, such as a plug-in removable hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory 51 may include both an internal storage unit and an external storage device of the electronic device. The memory 51 can be used not only to store application software installed in the electronic device and various types of data, such as code for database configuration and connection programs, but also to temporarily store data that has been output or is about to be output.
[0122] The communication bus 52 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. This bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable communication between the memory 51 and at least one processor 50, etc.
[0123] The communication interface 53 is used for communication between the above-mentioned electronic device 5 and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0124] FIG6 only shows an electronic device with components. Those skilled in the art will understand that the structure shown in FIG6 does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0125] For example, although not shown, the electronic device may further include a power source (e.g., a battery) to power various components. Preferably, the power source may be logically connected to the at least one processor 50 via a power management device, thereby enabling functions such as charge management, discharge management, and power consumption management via the power management device. The power source may further include any of one or more DC or AC power sources, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like. The electronic device may also include various sensors, Bluetooth modules, Wi-Fi modules, and the like, which are not further detailed here.
[0126] It should be understood that the embodiment is for illustrative purposes only and the scope of the patent invention is not limited to this structure.
[0127] The database configuration connection program stored in the memory 51 of the electronic device is a combination of multiple computer programs. When running in the processor 50, it can achieve the following:
[0128] Using a preset bellows, the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor is improved to obtain a structural stability improvement result;
[0129] collecting a first pressure of the first pressure sensor, detecting whether the first pressure is subject to external interference, and when the first pressure is not subject to external interference, performing pressure screening on the first pressure to obtain a screening pressure, and calculating a first pressure average value of the screening pressure;
[0130] collecting a second pressure from the second pressure sensor, calculating a second average pressure value of the second pressure, detecting a pressure accuracy of the second average pressure value based on a historical average pressure value of the second pressure sensor, and if the pressure accuracy is accurate, updating the second pressure using the second average pressure value to obtain an updated pressure;
[0131] calculating a dynamic height difference of the height difference measuring device based on the first pressure average value and the updated pressure, and determining a dynamic stability improvement result of the height difference measuring device using the dynamic height difference;
[0132] The final stability improvement result of the height difference measuring device is determined by combining the structural stability improvement result and the dynamic stability improvement result.
[0133] Specifically, the specific implementation method of the processor 50 for the above-mentioned computer program can refer to the description of the relevant steps in the corresponding embodiment of Figure 1, which will not be repeated here.
[0134] Furthermore, if the module / unit integrated into the electronic device is implemented as a software functional unit and sold or used as a standalone product, it may be stored in a non-volatile computer-readable storage medium. The storage medium may be volatile or non-volatile. For example, the computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0135] The present invention further provides a storage medium, wherein the readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0136] Using a preset bellows, the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor is improved to obtain a structural stability improvement result;
[0137] collecting a first pressure of the first pressure sensor, detecting whether the first pressure is subject to external interference, and when the first pressure is not subject to external interference, performing pressure screening on the first pressure to obtain a screening pressure, and calculating a first pressure average value of the screening pressure;
[0138] collecting a second pressure from the second pressure sensor, calculating a second average pressure value of the second pressure, detecting a pressure accuracy of the second average pressure value based on a historical average pressure value of the second pressure sensor, and if the pressure accuracy is accurate, updating the second pressure using the second average pressure value to obtain an updated pressure;
[0139] calculating a dynamic height difference of the height difference measuring device based on the first pressure average value and the updated pressure, and determining a dynamic stability improvement result of the height difference measuring device using the dynamic height difference;
[0140] The final stability improvement result of the height difference measuring device is determined by combining the structural stability improvement result and the dynamic stability improvement result.
[0141] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical function division, and other division methods may be used in actual implementation.
[0142] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0143] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.
[0144] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0145] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.
[0146] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0147] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is to be construed in the widest possible manner consistent with the principles and novel features disclosed herein.
Claims
1. A method for improving the stability of height difference measurement based on a bellows, characterized in that: The method comprises: Using a preset bellows to improve the structural stability of a height difference measuring device between a first pressure sensor and a second pressure sensor, and obtaining a structural stability improvement result; collecting a first pressure of the first pressure sensor, detecting whether the first pressure is disturbed by external factors, and when the first pressure is not disturbed by external factors, performing pressure screening on the first pressure to obtain a screening pressure, and calculating a first pressure average value of the screening pressure; collecting a second pressure of the second pressure sensor, calculating a second pressure average of the second pressure, detecting a pressure accuracy of the second pressure average based on a historical pressure average of the second pressure sensor, and when the pressure accuracy is accurate, updating the second pressure using the second pressure average to obtain an updated pressure; Calculating a dynamic height difference of the height difference measuring device based on the first pressure average value and the updated pressure, and determining a dynamic stability improvement result of the height difference measuring device using the dynamic height difference; Determine a final stability improvement result of the height difference measuring device by combining the structural stability improvement result and the dynamic stability improvement result; The step of calculating the dynamic height difference of the height difference measuring device based on the first pressure average value and the updated pressure includes: collecting the gravitational acceleration of the height difference measuring device; Based on the first pressure average value, the updated pressure and the gravitational acceleration, the dynamic height difference of the height difference measuring device is calculated using the following formula: in, represents the dynamic height difference, represents the first pressure average value, represents the update pressure, Indicates pressure density, the value is 0.93g / cm³, Represents the acceleration due to gravity, and its value is 9.8m / s².
2. The method according to claim 1, characterized in that The method of improving the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor by using a preset bellows to obtain a structural stability improvement result includes: Determining the outer metal of the height difference measuring device, wherein the outer metal includes a metal cover and a metal braided mesh tube; The metal braided mesh tube is arranged between the first pressure sensor and the second pressure sensor, and the metal cover is arranged at the first pressure sensor and the second pressure sensor respectively, so as to obtain a height difference measuring device equipped with the outer metal cover; When the second pressure sensor is disturbed by external interference, the second pressure sensor is used as a sensor susceptible to interference; The bellows and the interference-susceptible sensor are combined in the height difference measuring device configured with the outer metal to obtain a structural stability improvement device, and the structural stability improvement device is used as the structural stability improvement result.
3. The method according to claim 1, characterized in that The collecting the first pressure of the first pressure sensor includes: The pressure of the first pressure sensor is collected through a serial bus of a height difference measuring device corresponding to the first pressure sensor until the number of times of collecting the pressure meets a preset number, thereby obtaining a first pressure sequence; The first pressure sequence is bubble sorted to obtain the first pressure.
4. The method according to claim 2, characterized in that: The detecting whether the first pressure is disturbed by external factors includes: querying whether each of the first pressures is a zero value; When each of the first pressures is zero, the first pressure is disturbed by external factors; When each of the first pressures is not zero, the first pressure is not disturbed by the outside world.
5. The method according to any one of claims 1 to 4, characterized in that: The step of performing pressure screening on the first pressure to obtain a screening pressure includes: detecting whether there is an invalid pressure in the first pressure; When the invalid pressure exists in the first pressure, removing the invalid pressure in the first pressure to obtain an initial screening pressure; Eliminate the head and tail pressures in the initial screening pressure to obtain a first screening pressure; When the invalid pressure does not exist in the first pressure, the middle pressure in the first pressure is intercepted to obtain the second screening pressure.
6. The method according to claim 1, characterized in that The calculating the first pressure average value of the screening pressure comprises: The pressure sum of the screening pressure is calculated using the following formula: in, represents the pressure and, represents the screening pressure, i represents the sequence number of each pressure in the screening pressure, and n represents the total number of all pressures in the screening pressure; According to the pressure sum, the first pressure average value is calculated using the following formula: in, represents the first pressure average value, represents the sum of the pressures, and n represents the total number of all pressures in the screening pressure.
7. The method according to claim 6, characterized in that The detecting the pressure accuracy of the second pressure average value based on the historical pressure average value of the second pressure sensor includes: Calculating a pressure difference between the historical pressure average and the second pressure average; When the pressure difference exceeds a preset difference range, using inaccuracy as the pressure accuracy of the second pressure average value; When the pressure difference does not exceed a preset difference range, the accuracy is taken as the pressure accuracy of the second pressure average value.
8. The method according to claim 1, characterized in that The method of using the dynamic height difference to determine the dynamic stability improvement result of the height difference measuring device includes: Collecting the current acceleration of the sensor corresponding to the dynamic height difference; Calculating the three-dimensional angle value of the height difference measuring device using the current acceleration of the sensor; Based on the three-dimensional angle value, an angle correction is performed on the pressure sensor of the height difference measuring device to obtain a pressure sensor with a corrected angle, and the pressure sensor with the corrected angle is used as the dynamic stability improvement result.
9. A device for improving the stability of height difference measurement based on a bellows, characterized in that: The device comprises: A structure improvement module, used to improve the structural stability of the height difference measuring device between the first pressure sensor and the second pressure sensor by using a preset bellows, and obtain a structural stability improvement result; an average value calculation module, used for collecting the first pressure of the first pressure sensor, detecting whether the first pressure is disturbed by the outside world, and when the first pressure is not disturbed by the outside world, performing pressure screening on the first pressure to obtain a screening pressure, and calculating a first pressure average value of the screening pressure; a pressure updating module, configured to collect a second pressure of the second pressure sensor, calculate a second pressure average value of the second pressure, detect a pressure accuracy of the second pressure average value based on a historical pressure average value of the second pressure sensor, and when the pressure accuracy is accurate, update the second pressure using the second pressure average value to obtain an updated pressure; an altitude calculation module, configured to calculate a dynamic altitude difference of the altitude difference measuring device based on the first pressure average value and the updated pressure, and determine a dynamic stability improvement result of the altitude difference measuring device using the dynamic altitude difference; The result determination module is used to combine the structural stability improvement result and the dynamic stability improvement result to determine the final stability improvement result of the height difference measurement device.
Citation Information
Patent Citations
Fully-mechanized coal face integrated sensor
CN107907078A
Height difference measurement stability improving method and device based on corrugated pipe
CN116337006A
Liquid flow simulation device
CN211926939U
Height measurement rod, e.g. for checking motor vehicle clearance, comprises a liquid filled sealed tube, the density of the liquid being known, with a pressure sensor so that liquid height can be determined from the pressure
FR2842900A1
