A method, device, equipment and storage medium for calculating vehicle environmental pressure
By normalizing the voltage signal of the vehicle's environmental pressure and linear relationship calculation, combined with limit value processing and filtering, the problem of inaccurate calculation of the vehicle's environmental pressure under different air pressure environments is solved, and the calculation accuracy and vehicle performance are improved.
Patent Information
- Application Number
- CN202210863234.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2042-07-20
AI Technical Summary
When a vehicle is driving under different air pressure environments, inaccurate calculation of environmental pressure leads to a deviation in intake volume, which in turn affects the normal operation of the engine and reduces the power, driving and safety of the vehicle.
By obtaining the voltage signal of the ambient pressure and the current reference voltage value, normalizing the original voltage signal proportional value is calculated, combining the linear relationship between voltage and pressure, and limiting the calculation results are processed and filtered to ensure the accuracy and stability of the calculation results.
It improves the accuracy of environmental pressure calculation and ensures the power, driving and safety of the vehicle under different air pressure environments.
Smart Images

Figure CN115310023B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to automobile electronic control, and in particular to a method, device, equipment and storage medium for calculating vehicle environmental pressure. Background Art
[0002] The intake volume is one of the engine operation control parameters. The size of the vehicle's intake volume affects the normal operation of the engine. The ambient pressure is an important factor in calculating the intake volume. If the vehicle is traveling in the western region with high air pressure, the air is thin and the intake volume is small, which will cause the vehicle to be underpowered. Therefore, inaccurate calculation of the ambient pressure will cause deviations in the intake volume, which will cause the engine to fail to operate normally, reducing the vehicle's power and safety. Summary of the invention
[0003] The main purpose of the present invention is to provide a method, device, equipment and storage medium for calculating vehicle environmental pressure, which can improve the accuracy of environmental pressure calculation and ensure the power, drivability and safety of the vehicle.
[0004] In a first aspect, the present application provides a method for calculating vehicle environmental pressure, the method for calculating vehicle environmental pressure comprising the steps of:
[0005] Obtain the voltage signal of the ambient pressure and the current reference voltage value;
[0006] Normalizing the voltage signal of the ambient pressure based on the current reference voltage value to obtain a proportional value of the original voltage signal of the ambient pressure;
[0007] The original ambient pressure is calculated according to the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure.
[0008] In a possible implementation, the original voltage signal ratio value of the ambient pressure is calculated by the formula R=Uin÷Uref, where Uin is the voltage signal analog value of the ambient pressure, Uref is the current reference voltage value, and R is the original voltage signal ratio value of the ambient pressure;
[0009] According to the linear relationship between voltage and pressure: Vin = (c1×P+c0)×Vref and R = Uin÷Uref, the original ambient pressure is obtained: P = R / c1-c0 / c1 = R×1 / k1+k2 / k1, where Vin is the initial voltage signal of the ambient pressure sensor, Vref is the sensor signal processing power supply voltage, P is the absolute ambient pressure, c0 and c1 are constants, 1 / k1 is the gain, and k2 / k1 is the offset.
[0010] In a possible implementation, an upper limit and a lower limit of the original ambient pressure are set;
[0011] When the original ambient pressure is higher than the upper limit value, the upper limit value is used as the original ambient pressure after limiting;
[0012] When the original ambient pressure is lower than the lower limit, the lower limit is used as the original ambient pressure after limiting;
[0013] When the original ambient pressure is between the lower limit and the upper limit, the actual value of the original ambient pressure is used as the original ambient pressure after limiting.
[0014] In a possible implementation manner, a step of filtering the original ambient pressure is performed.
[0015] In a possible implementation, according to formula y out =x z ×k+x z-1 ×(1-k) performs low-pass filtering on the original ambient pressure, where y out is the filtered ambient pressure signal, x z is the calculated ambient pressure at the current moment, x z-1 is the calculated ambient pressure at the previous moment, and k is the filter coefficient.
[0016] In a possible implementation manner, a reset condition is set so that the original ambient pressure is maintained at a set initial value within a preset time after the engine controller is powered on.
[0017] In a possible implementation manner, when the engine controller is powered on for the first time, a fixed learning value is added to the set initial value for correction.
[0018] In a second aspect, the present application provides a vehicle environment pressure calculation device, the vehicle environment pressure calculation device comprising:
[0019] An acquisition module is used to obtain a voltage signal of an ambient pressure and a current reference voltage value;
[0020] A processing module, used for normalizing the voltage signal of the ambient pressure based on the current reference voltage value to obtain a proportional value of the original voltage signal of the ambient pressure;
[0021] The calculation module is used to calculate the original ambient pressure according to the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure.
[0022] In a third aspect, the present application further provides an electronic device, comprising: a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method described in any one of the first aspects is implemented.
[0023] In a fourth aspect, the present application further provides a computer-readable storage medium storing computer program instructions, which, when executed by a computer, enables the computer to execute any of the methods described in the first aspect.
[0024] The present application provides a method, device, equipment and storage medium for calculating vehicle ambient pressure, which obtains a voltage signal of ambient pressure and a current reference voltage value; normalizes the voltage signal of ambient pressure based on the current reference voltage value to obtain a ratio value of the original voltage signal of ambient pressure; calculates the original ambient pressure based on the ratio value of the original voltage signal of ambient pressure and the linear relationship between voltage and pressure, thereby improving the accuracy of ambient pressure calculation and ensuring the power, drivability and safety of the vehicle.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] 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.
[0027] Figure 1 A flow chart of a method for calculating vehicle environmental pressure provided in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of a vehicle environment pressure calculation device provided in an embodiment of the present application;
[0029] Figure 3 A vehicle environment pressure signal filtering calculation flow chart provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application;
[0031] Figure 5 This is a schematic diagram of a computer-readable program medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0033] Furthermore, the drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. Some of the blocks shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities.
[0034] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for calculating vehicle environmental pressure provided by the present invention, as shown in FIG. Figure 1 As shown, a flow chart of a method for calculating vehicle environmental pressure includes:
[0035] Step S101: Acquire the voltage signal of the ambient pressure and the current reference voltage value.
[0036] Specifically, the voltage signal of the ambient pressure and the current reference voltage value are obtained through the engine controller, wherein the voltage signal of the ambient pressure collected by the engine controller is an analog quantity of 0 to 5V. It can be understood that Uin represents the analog quantity of the voltage signal of the ambient pressure, and Uref represents the current reference voltage value.
[0037] Step S102: normalizing the voltage signal of the ambient pressure based on the current reference voltage value to obtain a proportional value of the original voltage signal of the ambient pressure.
[0038] Specifically, the voltage signal of the ambient pressure and the current reference voltage value are acquired through the engine controller, and the voltage signal of the ambient pressure is normalized using the reference voltage value to obtain the original voltage signal ratio value of the ambient pressure.
[0039] In one embodiment, the engine controller collects the voltage signal analog quantity Uin of the ambient pressure, and simultaneously obtains the current reference voltage value Uref, and corrects the voltage signal of the ambient pressure by the reference voltage value to obtain the corrected original voltage signal proportional value of the ambient pressure. It should be noted that correcting the voltage signal of the ambient pressure by the reference voltage value means normalizing the voltage signal of the ambient pressure by using the reference voltage value.
[0040] Optionally, the corrected original voltage signal ratio value of the ambient pressure can be expressed by the formula R=Uin÷Uref, where R is the original voltage signal ratio value of the ambient pressure, Uin is the analog value of the voltage signal of the ambient pressure, and Uref is the current reference voltage value.
[0041] Step S103: Calculate the original ambient pressure according to the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure.
[0042] Specifically, the voltage signal analog quantity Uin of the ambient pressure is collected by the engine controller, and the current reference voltage value Uref is obtained at the same time. The voltage signal of the ambient pressure is corrected by the reference voltage value to obtain the corrected original voltage signal ratio value of the ambient pressure, wherein the original voltage signal ratio value of the ambient pressure is R=Uin÷Uref.
[0043] According to the linear relationship between voltage and pressure, it should be noted that there is a linear relationship between voltage and pressure, and the linear parameters are determined by the sensor characteristics. It can be understood that the sensor characteristics are the component characteristics.
[0044] Optionally, the linear relationship between the absolute pressure and voltage of the ambient pressure sensor is expressed as Vin = (c1 × P + c0) × Vref, where Vin is the initial voltage signal of the ambient pressure sensor, Vref is the sensor signal processing power supply voltage (i.e., 5V standard reference voltage), P is the absolute ambient pressure, c0 and c1 are constants, c0 = -0.095, c1 = 0.009kPa-1. It should be noted that the 5V reference voltage is used to process the input of the sensor pressure signal. It can be understood that the 5V reference voltage is the total voltage, and the sensor pressure signal is obtained by calculating the voltage division. When the 5V reference voltage is jittery or inaccurate, the original voltage signal of the sensor is also calculated inaccurately.
[0045] The original ambient pressure is calculated according to the linear relationship between voltage and pressure and the proportional value of the original voltage signal of the ambient pressure. The calculation formula of the original ambient pressure is P=R / c1-c0 / c1=R×1 / k1+k2 / k1, where Vin is the initial voltage signal of the ambient pressure sensor, Vref is the sensor signal processing power supply voltage, P is the absolute ambient pressure, c0 and c1 are constants, 1 / k1 is the gain, and k2 / k1 is the offset.
[0046] Furthermore, in one embodiment, after calculating the original ambient pressure based on the ratio value of the original voltage signal of the ambient pressure and the linear relationship between voltage and pressure, it is also necessary to perform limit calculation on the original ambient pressure. Specifically, an upper limit value and a lower limit value of the original ambient pressure are set. When the original ambient pressure is higher than the upper limit value, the upper limit value is used as the original ambient pressure after limiting. When the original ambient pressure is lower than the lower limit value, the lower limit value is used as the original ambient pressure after limiting. When the original ambient pressure is between the lower limit value and the upper limit value, the actual size of the original ambient pressure is used as the original ambient pressure after limiting.
[0047] Optionally, the original ambient pressure is limited to a reasonable range to prevent fluctuations in the original voltage signal of the ambient pressure and the 5V reference pressure signal from affecting the calculation of the original ambient pressure.
[0048] In one embodiment, when the calculated original ambient pressure value exceeds the calibration threshold 1, the ambient pressure value after limiting is threshold 1; when the calculated original ambient pressure value is lower than the calibration threshold 2, the ambient pressure value after limiting is threshold 2; when the calculated ambient pressure value is between threshold 1 and threshold 2, the ambient pressure value after limiting is the original ambient pressure value.
[0049] Further, in one embodiment, after the original ambient pressure is limited, the ambient pressure after the limit is filtered, specifically, according to the formula y out =x z ×k+x z-1 ×(1-k) performs low-pass filtering on the original ambient pressure, where y out is the filtered ambient pressure signal, x z is the calculated ambient pressure at the current moment, x z-1 is the calculated ambient pressure at the previous moment, and k is the filter coefficient.
[0050] Optionally, in order to eliminate large jitters of the ambient pressure signal, the ambient pressure after the limit is low-pass filtered. Before the ambient pressure after the limit is low-pass filtered, it is necessary to determine whether the low-pass filtering conditions are met. Specifically, a reset condition is set so that the original ambient pressure is maintained at the set initial value within a preset time after the engine controller is powered on. It can be understood that the condition for low-pass filtering the ambient pressure after the limit is to determine whether the reset condition is met, wherein the reset condition is whether the power-on time of the engine controller exceeds the preset time. When the power-on time of the engine controller does not exceed the preset time, the reset condition is met, and the current ambient pressure is set to the initial value, wherein the original value of the initial value is the current ambient pressure stored in the EPROM before the last engine controller was powered off.
[0051] In one embodiment, the filtered ambient pressure is stored in the EPROM. Considering that when the engine is powered on for the first time, the filtered ambient pressure stored when the controller was powered off last time is 0, a fixed learning value is added to the set initial value for correction.
[0052] Optionally, the ambient pressure immediately before the engine controller is powered off is stored in the EPROM, which can be understood as subtracting a fixed learning value from the filtered ambient pressure for power-off storage.
[0053] Optionally, when the reset condition is not met, that is, the power-on time of the engine controller exceeds a preset time, the ambient pressure after the limit is low-pass filtered, and the filtered ambient pressure is stored in the EPROM before the engine controller is powered off.
[0054] Optionally, within a preset time after the engine controller is powered on, the ambient pressure is a set initial value within the preset time, thereby avoiding pressure calculation errors caused by incomplete initialization of the ambient pressure sensor.
[0055] The present application provides a method, device, equipment and storage medium for calculating vehicle ambient pressure, which obtains a voltage signal of ambient pressure and a current reference voltage value; normalizes the voltage signal of ambient pressure based on the current reference voltage value to obtain a ratio value of the original voltage signal of ambient pressure; calculates the original ambient pressure based on the ratio value of the original voltage signal of ambient pressure and the linear relationship between voltage and pressure, thereby improving the accuracy of ambient pressure calculation and ensuring the power, drivability and safety of the vehicle.
[0056] Reference Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a method and device for calculating vehicle environmental pressure provided by the present invention, such as Figure 2 As shown, a method and device for calculating vehicle environmental pressure includes:
[0057] An acquisition module 201 is used to acquire a voltage signal of an ambient pressure and a current reference voltage value;
[0058] The processing module 202 is used to perform normalization processing on the voltage signal of the ambient pressure based on the current reference voltage value to obtain a proportional value of the original voltage signal of the ambient pressure;
[0059] The calculation module 203 is used to calculate the original ambient pressure according to the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure.
[0060] Further, in one embodiment, the calculation module is also used to calculate the original voltage signal ratio value of the ambient pressure by the formula R=Uin÷Uref, where Uin is the voltage signal analog value of the ambient pressure, Uref is the current reference voltage value, and R is the original voltage signal ratio value of the ambient pressure;
[0061] According to the linear relationship between voltage and pressure: Vin = (c1×P+c0)×Vref and R = Uin÷Uref, the original ambient pressure is obtained: P = R / c1-c0 / c1 = R×1 / k1+k2 / k1, where Vin is the initial voltage signal of the ambient pressure sensor, Vref is the sensor signal processing power supply voltage, P is the absolute ambient pressure, c0 and c1 are constants, 1 / k1 is the gain, and k2 / k1 is the offset.
[0062] Furthermore, in one embodiment, the calculation module is also used to set an upper limit value and a lower limit value of the original ambient pressure;
[0063] When the original ambient pressure is higher than the upper limit value, the upper limit value is used as the original ambient pressure after limiting;
[0064] When the original ambient pressure is lower than the lower limit, the lower limit is used as the original ambient pressure after limiting;
[0065] When the original ambient pressure is between the lower limit and the upper limit, the actual value of the original ambient pressure is used as the original ambient pressure after limiting.
[0066] Furthermore, in one embodiment, the calculation module is also used to calculate the value of out =x z ×k+x z-1 ×(1-k) performs low-pass filtering on the original ambient pressure, where y out is the filtered ambient pressure signal, x z is the calculated ambient pressure at the current moment, x z-1 is the calculated ambient pressure at the previous moment, and k is the filter coefficient.
[0067] Furthermore, in one embodiment, the calculation module is also used to set a reset condition so that the original ambient pressure is maintained at a set initial value within a preset time after the engine controller is powered on.
[0068] Reference Figure 3 , Figure 3 FIG. 1 is a flow chart of a vehicle environment pressure signal filtering calculation provided by the present invention. Figure 3 As shown, a vehicle environment pressure signal filtering calculation flow chart includes:
[0069] Step S301: Determine whether the ambient pressure after the limit meets the reset condition.
[0070] Specifically, after determining that the calculated original ambient pressure limit is within the preset range, determine whether the start-up time of the engine controller meets the preset time. It should be noted that the reset condition is a period of time after the engine controller is powered on. It should be noted that a period of time refers to the preset time.
[0071] Step S302: When the condition is satisfied, the ambient pressure after the limit is set as the initial value; when the condition is not satisfied, a low-pass filter is performed on the ambient pressure after the limit, and the filtered ambient pressure is stored.
[0072] Specifically, when the engine controller startup time does not exceed the preset time, the ambient pressure after the set limit is the initial value. When the engine controller startup time exceeds the preset time, according to formula y out =xz×k+x z-1×(1-k) performs low-pass filtering on the ambient pressure after limiting the value, and stores the filtered ambient pressure.
[0073] Refer to the following Figure 4 An electronic device 400 according to this embodiment of the present invention will be described. Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0074] like Figure 4 As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include but are not limited to: at least one processing unit 410, at least one storage unit 420, and a bus 430 connecting different system components (including the storage unit 420 and the processing unit 410).
[0075] The storage unit stores program codes, which can be executed by the processing unit 410, so that the processing unit 410 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.
[0076] The storage unit 420 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .
[0077] The storage unit 420 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0078] Bus 430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0079] The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 400, and / or communicate with any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 450. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 460. As shown, the network adapter 460 communicates with other modules of the electronic device 400 via a bus 430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0080] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0081] According to the solution of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present invention described in the above "Exemplary Method" section of the present specification.
[0082] refer to Figure 5 As shown, a program product 500 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0083] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0084] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0085] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0086] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0087] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0088] In summary, the present application provides a method, device, equipment and storage medium for calculating vehicle ambient pressure, which obtains the voltage signal of the ambient pressure and the current reference voltage value; normalizes the voltage signal of the ambient pressure based on the current reference voltage value to obtain the original voltage signal ratio value of the ambient pressure; calculates the original ambient pressure based on the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure, which can improve the accuracy of ambient pressure calculation while ensuring the vehicle's power, drivability and safety.
[0089] The above is only an embodiment of the present application. The common sense such as the known specific structure and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field of the invention before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the protection scope of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The protection scope required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to explain the content of the claims.
Claims
1. A method for calculating vehicle environmental pressure, characterized in that: include: Obtain the voltage signal of the ambient pressure and the current reference voltage value; Normalizing the voltage signal of the ambient pressure based on the current reference voltage value to obtain a proportional value of the original voltage signal of the ambient pressure; Calculating the original ambient pressure according to the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure; The original voltage signal ratio value of the ambient pressure is calculated by the formula R=Vin÷Vref, where Vin is the initial voltage signal of the ambient pressure sensor and Vref is the sensor signal processing power supply voltage; According to the linear relationship between voltage and pressure: Vin = (c1×P+c0)×Vref and R = Vin÷Vref, the original ambient pressure is obtained: P = R / c1-c0 / c1 = (R×1 / k1)+(k2 / k1), where c0 and c1 are constants, 1 / k1 is the gain, and k2 / k1 is the offset.
2. The method according to claim 1, characterized in that After calculating the original ambient pressure according to the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure, the method further includes limiting the original ambient pressure, which includes: Set the upper and lower limits of the original ambient pressure; When the original ambient pressure is higher than the upper limit value, the upper limit value is used as the original ambient pressure after limiting; When the original ambient pressure is lower than the lower limit, the lower limit is used as the original ambient pressure after limiting; When the original ambient pressure is between the lower limit and the upper limit, the actual value of the original ambient pressure is used as the original ambient pressure after limiting.
3. The method according to claim 2, characterized in that After the step of limiting the original ambient pressure, the method further includes: a step of filtering the original ambient pressure.
4. The method according to claim 3, characterized in that The filtering of the original ambient pressure comprises: According to the formula y out =x z ×k+x z-1 ×(1-k) performs low-pass filtering on the original ambient pressure, where y out is the filtered ambient pressure signal, x z is the calculated ambient pressure at the current moment, x z-1 is the calculated ambient pressure at the previous moment, and k is the filter coefficient.
5. The method according to claim 3, characterized in that: Also includes: The reset condition is set so that the original ambient pressure is kept at the set initial value within a preset time after the engine controller is powered on.
6. The method according to claim 5, characterized in that: When the engine controller is powered on for the first time, a fixed learning value is added to the set initial value for correction.
7. A device for calculating vehicle environmental pressure, characterized in that: include: An acquisition module is used to obtain a voltage signal of an ambient pressure and a current reference voltage value; A processing module, used for normalizing the voltage signal of the ambient pressure based on the current reference voltage value to obtain a proportional value of the original voltage signal of the ambient pressure; A calculation module, used for calculating the original ambient pressure according to the original voltage signal ratio value of the ambient pressure and the linear relationship between voltage and pressure; The original voltage signal ratio value of the ambient pressure is calculated by the formula R=Vin÷Vref, where Vin is the initial voltage signal of the ambient pressure sensor and Vref is the sensor signal processing power supply voltage; According to the linear relationship between voltage and pressure: Vin = (c1×P+c0)×Vref and R = Vin÷Vref, the original ambient pressure is obtained: P = R / c1-c0 / c1 = (R×1 / k1)+(k2 / k1), where c0 and c1 are constants, 1 / k1 is the gain, and k2 / k1 is the offset.
8. An electronic device, characterized in that: The electronic device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer program instructions are stored therein, and when the computer program instructions are executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle environment pressure sensor fault diagnosis method and fault protection method
CN112000077A
Device and method for detecting collision of vehicle
US20060276965A1