Environmental pressure detection method and system for non-road gas engine and electronic equipment

By setting pressure sensors upstream and downstream of the throttle of the non-road gas engine, the ambient pressure is directly determined, which solves the problem of high cost of installing the ambient pressure sensor of the non-road gas engine, and achieves stable and accurate pressure detection.

CN120293526APending Publication Date: 2025-07-11WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510402742.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

Because the non-road gas engine is operated in one place, the ambient pressure remains unchanged, resulting in the high cost of installing the ambient pressure sensor.

Method used

Pressure sensors are set upstream and downstream of the throttle valve of the gas engine. By judging whether the pressure value of the upstream and downstream of the throttle valve meets the preset conditions, the ambient pressure of the engine is directly determined and the use of an ambient pressure sensor is avoided.

Benefits of technology

It reduces the cost of using the environmental pressure sensor, is simple and convenient to operate, and the obtained pressure value is stable and accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120293526A_ABST
    Figure CN120293526A_ABST
Patent Text Reader

Abstract

The invention discloses an environment pressure detection method and system for a non-road gas engine and electronic equipment, and relates to the technical field of gas engines, the environment pressure detection method comprises the steps that whether the gas engine is in a preset working condition or not is judged, and the preset working condition comprises that the gas engine is in a shutdown working condition and is in a T15 power-on state for a preset duration; if the gas engine is in the preset working condition, whether a gas valve is closed or not is judged; acquiring an upstream pressure value and a downstream pressure value of the throttle valve; whether the upstream pressure value and the downstream pressure value of the throttle valve meet preset conditions or not is judged; and if the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meets the preset condition, the current environment pressure of the gas engine is determined according to the pressure value meeting the preset condition in the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve. No environment pressure sensor is adopted, cost is reduced, and practicability of the engine is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gas engines, and more particularly to an environmental pressure detection method, system, and electronic device for off-road gas engines. Background Art

[0002] An off-road power generation gas engine is usually a gas engine with a fixed speed and fixed location for power generation. The engine is connected to a generator, which drives the generator rotor to rotate and cut magnetic lines of force to generate electric energy.

[0003] An off-road power generation gas engine is different from a vehicle engine. The environmental pressure of a vehicle engine is constantly changing as the vehicle moves and may frequently switch between high-altitude and plain environments. Therefore, it is necessary to install an environmental pressure sensor to monitor the environmental pressure changes in real time and correct relevant performance parameters. However, an off-road power generation gas engine is fixed in one place, and the environmental pressure is almost constant. Here, the environmental pressure can be the environmental pressure at a fixed location because in the engine room, during the operation of the engine, the environmental pressure in the engine room is constant. Therefore, installing an environmental pressure sensor for an off-road power generation engine has the problem of high cost. Summary of the Invention

[0004] The present application provides an environmental pressure detection method, system, and electronic device for off-road gas engines to solve at least one technical problem existing in the related art.

[0005] According to one aspect of an embodiment of the present application, an environmental pressure detection method for an off-road gas engine is provided. An upstream pressure sensor and a downstream pressure sensor are respectively arranged upstream and downstream of the throttle of the gas engine. The environmental pressure detection method includes: determining whether the gas engine is in a preset working condition, where the preset working condition includes: the gas engine is in a shutdown state and has been powered on at T15 for a preset duration; if the gas engine is in the preset working condition, determining whether the gas valve is closed; obtaining the upstream pressure value of the throttle and the downstream pressure value of the throttle; determining whether the upstream pressure value of the throttle and the downstream pressure value of the throttle meet a preset condition; if the gas valve is closed and at least one of the upstream pressure value of the throttle and the downstream pressure value of the throttle meets the preset condition, determining the current environmental pressure of the gas engine according to the pressure value that meets the preset condition among the upstream pressure value of the throttle and the downstream pressure value of the throttle.

[0006] As an optional implementation, the environmental pressure detection method further includes: if the gas engine is in a shutdown state and has not been powered on at T15 for a preset duration, setting the current environmental pressure of the gas engine to a calibrated pressure value.

[0007] As an alternative implementation, the environmental pressure detection method further includes: when the gas engine is in an idle condition, determining whether the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet a preset condition; if the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meets the preset condition, determining the current environmental pressure of the gas engine according to the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve.

[0008] As an alternative implementation, determining the current environmental pressure of the gas engine according to the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: if the upstream pressure value of the throttle valve meets the preset condition and the downstream pressure value of the throttle valve does not meet the preset condition, determining the current environmental pressure of the gas engine according to the upstream pressure value of the throttle valve.

[0009] As an alternative implementation, determining the current environmental pressure of the gas engine according to the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: if the upstream pressure value of the throttle valve does not meet the preset condition and the downstream pressure value of the throttle valve meets the preset condition, determining the current environmental pressure of the gas engine according to the downstream pressure value of the throttle valve.

[0010] As an alternative implementation, determining the current environmental pressure of the gas engine according to the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: if both the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet the preset condition, determining the current environmental pressure of the gas engine according to the upstream pressure value of the throttle valve and / or the downstream pressure value of the throttle valve.

[0011] As an alternative implementation, determining the current environmental pressure of the gas engine according to the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: within one sampling period, continuously obtaining multiple pressure values that meet the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve; calculating the average value of the pressure values obtained within one sampling period; continuously obtaining the average values of the pressure values within multiple sampling periods until the gas engine is no longer in the preset condition; setting the average value of the pressure values within the last sampling period as the current environmental pressure of the gas engine.

[0012] According to another aspect of the present application, an environmental pressure detection system for a non-road gas engine includes: a working condition judgment module for judging whether the gas engine is in a preset working condition, where the preset working condition includes: the gas engine is in a shutdown working condition and in a state of being powered on at T15 for a preset duration; a gas valve state judgment module for judging whether the gas valve is closed when the gas engine is in the preset working condition; a pressure value acquisition module for acquiring the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve; a condition judgment module for judging whether the upstream pressure value and the downstream pressure value of the throttle valve meet the preset conditions; and an environmental pressure determination module for determining the current environmental pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value and the downstream pressure value of the throttle valve when the gas valve is closed and at least one of the upstream pressure value and the downstream pressure value of the throttle valve meets the preset conditions.

[0013] According to another aspect of the present application, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus. The feature is that the memory is used to store a computer program; the processor is used to execute the steps of the environmental pressure detection method for the non-road gas engine by running the computer program stored on the memory.

[0014] According to still another aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. Among them, the computer program is set to execute the steps of the environmental pressure detection method for the non-road gas engine when running.

[0015] In an embodiment of the present application, a method, a system, and an electronic device for detecting the ambient pressure of a non-road gas engine are provided. The method for detecting the ambient pressure of the non-road gas engine includes: determining whether the gas engine is in a preset working condition, where the preset working condition includes: the gas engine is in a shutdown working condition and the state of being powered on at T15 reaches a preset duration; if the gas engine is in the preset working condition, determining whether the gas valve is closed; obtaining the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve; determining whether the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet preset conditions; if the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meets the preset conditions, determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve. Performing subsequent steps when the gas engine is in the preset working condition, at this time the engine is stable, and the obtained pressure value is more accurate and stable; when the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meets the preset conditions, determining the ambient pressure, no longer using an ambient pressure sensor, reducing costs; directly determining the engine ambient pressure according to the pressure values upstream and downstream of the throttle valve, which is simple and convenient to operate. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and, together with the specification, are used to explain the principles of the present invention.

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0018] Figure 1 It is a flowchart showing the method for detecting the ambient pressure of a non-road gas engine according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0019] In order to enable those skilled in the art to better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0020] It should be noted that in the description, claims and the above drawings of the present application, terms such as "first" and "second" are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0021] As Figure 1 shown, according to one aspect of the embodiments of the present application, a method for detecting the ambient pressure of a non-road gas engine is provided. An upstream pressure sensor and a downstream pressure sensor are respectively arranged upstream and downstream of the throttle of the gas engine; the ambient pressure detection method includes:

[0022] S1 Determine whether the gas engine is in a preset working condition, and the preset working condition includes: the gas engine is in a shutdown working condition and the state of being powered on at T15 reaches a preset duration;

[0023] S2 If the gas engine is in the preset working condition, determine whether the gas valve is closed;

[0024] S3 Obtain the upstream pressure value of the throttle and the downstream pressure value of the throttle;

[0025] S4 Determine whether the upstream pressure value of the throttle and the downstream pressure value of the throttle meet the preset conditions;

[0026] S5 If the gas valve is closed and at least one of the upstream pressure value of the throttle and the downstream pressure value of the throttle meets the preset conditions, determine the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle and the downstream pressure value of the throttle.

[0027] Perform subsequent steps when the gas engine is in the preset working condition. At this time, the engine state is stable, and the obtained pressure value is more accurate and stable; when the gas valve is closed and at least one of the upstream pressure value of the throttle and the downstream pressure value of the throttle meets the preset conditions, determine the ambient pressure, and no longer use the ambient pressure sensor, reducing costs; directly determine the engine ambient pressure according to the pressure values upstream and downstream of the throttle, which is simple and convenient to operate.

[0028] It should be noted that the preset condition may be a condition capable of characterizing the normal pressure values upstream and downstream of the throttle valve. That is, if the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve is normal and there is no fault, the current ambient pressure of the gas engine is determined according to the normal pressure value among the upstream pressure value and the downstream pressure value of the throttle valve. The present application does not make further limitations on this.

[0029] It should also be emphasized that the power-on of T15 in the present application refers to the power-on state of the engine electronic control unit, and at this time the engine speed is 0.

[0030] As an optional implementation manner, the ambient pressure detection method further includes: if the gas engine is in the shutdown condition and the power-on state of T15 has not reached the preset duration, setting the current ambient pressure of the gas engine as the calibrated pressure value.

[0031] Since the gas engine is in the shutdown condition and the power-on state of T15 has not reached the preset duration, it can be considered that the engine is in an unstable state. At this time, the current ambient pressure value can be determined according to experience and the ambient pressure at the location of the engine. The calibrated pressure value can be a fixed value determined by technicians according to the actual situation.

[0032] As an optional implementation manner, the ambient pressure detection method further includes: when the gas engine is in the idle condition, determining whether the upstream pressure value and the downstream pressure value of the throttle valve meet the preset conditions; if the gas valve is closed and at least one of the upstream pressure value and the downstream pressure value of the throttle valve meets the preset conditions, determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value and the downstream pressure value of the throttle valve.

[0033] When the gas engine is not in the preset condition but in the idle condition, the engine can still update the ambient pressure in real time, further improving the accuracy of ambient pressure determination.

[0034] As an optional implementation manner, determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value and the downstream pressure value of the throttle valve includes: if the upstream pressure value of the throttle valve meets the preset conditions and the downstream pressure value of the throttle valve does not meet the preset conditions, determining the current ambient pressure of the gas engine according to the upstream pressure value of the throttle valve.

[0035] As an alternative implementation, determining the current ambient pressure of the gas engine based on the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: if the upstream pressure value of the throttle valve does not meet the preset condition and the downstream pressure value of the throttle valve meets the preset condition, determining the current ambient pressure of the gas engine according to the downstream pressure value of the throttle valve.

[0036] As an alternative implementation, determining the current ambient pressure of the gas engine based on the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: if both the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet the preset condition, determining the current ambient pressure of the gas engine according to the upstream pressure value of the throttle valve and / or the downstream pressure value of the throttle valve.

[0037] Specifically, when both the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet the preset condition, that is, the pressures upstream and downstream of the throttle valve are both normal, the pressure upstream or downstream of the throttle valve can be selected respectively to determine the ambient pressure. At the same time, the pressure values upstream and downstream of the throttle valve can also be combined to determine the ambient pressure. For example, calculate the average value of the upstream and downstream pressure values or determine that the more accurate pressure among the upstream and downstream has a higher weight according to experiments to determine the ambient pressure.

[0038] As an alternative implementation, determining the current ambient pressure of the gas engine based on the pressure value that meets the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: within one sampling period, continuously obtaining multiple pressure values that meet the preset condition among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve; calculating the average value of the pressure values obtained within one sampling period; continuously obtaining the average values of the pressure values within multiple sampling periods until the gas engine is no longer in the preset working condition; setting the average value of the pressure values within the last sampling period as the current ambient pressure of the gas engine.

[0039] For example, set to uniformly and continuously sample 20 pressure values within one sampling period, calculate the average value of the 20 pressure values as the pressure value of the current sampling period. If the gas engine is still in the preset working condition after one sampling period, the average pressure values of consecutive multiple sampling periods can continue to be determined until the gas engine is no longer in the preset working condition, and then the average pressure value of the last sampling period is used as the ambient pressure value of the gas engine.

[0040] According to another aspect of the present application, an environmental pressure detection system for a non-road gas engine includes: a working condition judgment module for judging whether the gas engine is in a preset working condition, where the preset working condition includes: the gas engine is in a shutdown working condition and the state of being powered on at T15 reaches a preset duration; a gas valve state judgment module for judging whether the gas valve is closed when the gas engine is in the preset working condition; a pressure value acquisition module for acquiring the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve; a condition judgment module for judging whether the upstream pressure value and the downstream pressure value of the throttle valve meet preset conditions; and an environmental pressure determination module for determining the current environmental pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value and the downstream pressure value of the throttle valve when the gas valve is closed and at least one of the upstream pressure value and the downstream pressure value of the throttle valve meets the preset conditions.

[0041] According to another aspect of the present application, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus. The feature is that the memory is used to store a computer program; the processor is used to execute the steps of the environmental pressure detection method for the non-road gas engine by running the computer program stored on the memory.

[0042] According to still another aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. Among them, the computer program is set to execute the steps of the environmental pressure detection method for the non-road gas engine when running.

[0043] Those of ordinary skill in the art can understand that the device for implementing the above environmental pressure detection method for the non-road gas engine can be a terminal device, and this terminal device can be a smart phone (such as an Android phone, an IOS phone, etc.), a tablet computer, a palm computer, and a mobile Internet device (Mobile Internet Devices, MID), a PAD and other terminal devices. The present application does not limit the structure of the above electronic device.

[0044] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware of the terminal device through a program, and this program can be stored in a computer-readable storage medium. The storage medium can include: a flash drive, a ROM, a RAM, a magnetic disk, or an optical disc, etc.

[0045] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0046] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage media. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing one or more electronic devices (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.

[0047] In the above embodiments of this application, the descriptions of each embodiment have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0048] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.

[0049] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.

[0050] In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0051] In the above embodiments of this application, the descriptions of each embodiment have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0052] The above are only the preferred embodiments of this application. It should be noted that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of this application.

Claims

1. A method for detecting the ambient pressure of a non-road gas engine, characterized in that, An upstream pressure sensor and a downstream pressure sensor are respectively arranged upstream and downstream of the throttle valve of the gas engine; The ambient pressure detection method includes: Judging whether the gas engine is in a preset working condition, where the preset working condition includes: the gas engine is in a shutdown condition and the state of being powered on at T15 reaches a preset duration; If the gas engine is in the preset working condition, judging whether the gas valve is closed; Obtaining the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve; Judging whether the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet preset conditions; If the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meets the preset conditions, determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve.

2. The ambient pressure detection method for a non-road gas engine according to claim 1, characterized in that, The ambient pressure detection method further includes: If the gas engine is in a shutdown condition and the state of being powered on at T15 does not reach the preset duration, setting the current ambient pressure of the gas engine as the calibrated pressure value.

3. The environmental pressure detection method for the off-road gas engine according to claim 2, characterized in that, The ambient pressure detection method further includes: When the gas engine is in an idle working condition, judging whether the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet the preset conditions; If the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meets the preset conditions, determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve.

4. The environmental pressure detection method for a non-road gas engine according to claim 1, characterized in that, The determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: If the upstream pressure value of the throttle valve meets the preset conditions and the downstream pressure value of the throttle valve does not meet the preset conditions, determining the current ambient pressure of the gas engine according to the upstream pressure value of the throttle valve.

5. The environmental pressure detection method for a non-road gas engine according to claim 1, characterized in that, The determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: If the upstream pressure value of the throttle valve does not meet the preset conditions and the downstream pressure value of the throttle valve meets the preset conditions, determining the current ambient pressure of the gas engine according to the downstream pressure value of the throttle valve.

6. The environmental pressure detection method for a non-road gas engine according to claim 1, characterized in that The determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: If both the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet the preset conditions, determining the current ambient pressure of the gas engine according to the upstream pressure value of the throttle valve and / or the downstream pressure value of the throttle valve.

7. The ambient pressure detection method for a non-road gas engine according to claim 1, wherein, The determining the current ambient pressure of the gas engine according to the pressure value that meets the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve includes: During a sampling period, continuously obtain the pressure values that meet the preset conditions among the upstream pressure values of the throttle valve and the downstream pressure values of the throttle valve; Calculate the average value of the pressure values obtained within a sampling period; Continuously obtain the average values of the pressure values within multiple sampling periods until the gas engine is no longer in the preset operating condition; Set the average value of the pressure values within the last sampling period as the current ambient pressure of the gas engine.

8. An environmental pressure detection system for a non-road gas engine, characterized in that, It includes: A working condition judgment module for judging whether the gas engine is in a preset working condition, where the preset working condition includes: the gas engine is in a shutdown working condition and the state of power-on at T15 reaches a preset duration; A gas valve state judgment module for judging whether the gas valve is closed when the gas engine is in the preset working condition; A pressure value acquisition module for acquiring the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve; A condition judgment module for judging whether the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meet the preset conditions; An ambient pressure determination module for determining the current ambient pressure of the gas engine according to the pressure values that meet the preset conditions among the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve when the gas valve is closed and at least one of the upstream pressure value of the throttle valve and the downstream pressure value of the throttle valve meets the preset conditions.

9. An electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein, The processor, the communication interface, and the memory complete communication with each other through the communication bus, and it is characterized in that The memory is used for storing computer programs; The processor is used for executing the steps of the ambient pressure detection method of the non-road gas engine according to any one of claims 1 to 7 by running the computer program stored on the memory.

10. A computer-readable storage medium, characterized in that, A computer program is stored in the storage medium, where the computer program is set to execute the steps of the ambient pressure detection method of the non-road gas engine according to any one of claims 1 to 7 when running.