A METHOD AND A SYSTEM FOR ADAPTING ENGINE CONTROL OF A GAS ENGINE IN A VEHICLE
20190101068 · 2019-04-04
Assignee
Inventors
Cpc classification
Y02T10/30
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
F02D2200/0406
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D2200/0602
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D41/0027
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D19/022
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D2200/0414
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D19/024
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D19/027
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D41/182
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D19/029
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D2200/0612
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
International classification
F02D19/02
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D41/18
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D41/14
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
Abstract
The present invention relates to a method for adapting engine control of a gas engine in a vehicle. The method comprises determining, during operation of the gas engine, the specific gas constant of a fuel gas for the gas engine. The method further comprises determining the stoichiometric air fuel ratio of the fuel gas for the gas engine. The control of the gas engine is adapted based on the determined specific gas constant and the determined stoichiometric air fuel ratio. The present invention also relates to a system for adapting engine control of a gas engine in a vehicle, to a vehicle, and to a computer program product.
Claims
1. A method for adapting engine control of a gas engine in a vehicle, the method comprising: determining, during operation of the gas engine, a specific gas constant of a fuel gas for the gas engine; determining a stoichiometric air fuel ratio of the fuel gas for the gas engine; and adapting a control of the gas engine based on the determined specific gas constant and the determined stoichiometric air fuel ratio.
2. The method according to claim 1, wherein said determining of the specific gas constant and/or the stoichiometric air fuel ratio is based on a determined time period of gas injection.
3. The method according to claim 1, further comprising performing measurements in the vehicle, wherein said determining of the specific gas constant and/or said determining of the stoichiometric air fuel ratio is based on a result of said performed measurements.
4. The method according to claim 3, wherein said performed measurements comprise measuring a pressure value and a temperature value in the inlet.
5. The method according to claim 3, wherein said performed measurements comprise measuring a temperature value and/or a pressure value of the fuel gas upstream of a gas injector.
6. The method according to anyone of claim 3, wherein said performed measurements comprise measuring a value by means of a lambda sensor being provided downstream said gas engine.
7. The method according to claim 1, further comprising the step of determining a flow of air into the gas engine and/or determining a mass of air in a cylinder of the gas engine, wherein said determining of the specific gas constant and/or the stoichiometric air fuel ratio is based on said determined flow of air into the gas engine and/or said determined mass of air in the cylinder of the gas engine.
8. A system for adapting engine control of a gas engine in a vehicle, the system comprising: means for determining, during operation of the gas engine, a specific gas constant of a fuel gas for the gas engine; means for determining a stoichiometric air fuel ratio of the fuel gas for the gas engine; and means for adapting a control of the gas engine based on the determined specific gas constant and the determined stoichiometric air fuel ratio.
9. The system according to claim 8, further comprising means for determining a time period of gas injection, wherein said means for determining the stoichiometric air fuel ratio of the fuel gas for the gas engine and/or said means for determining, during operation of the gas engine, the specific gas constant of a fuel gas for the gas engine are arranged for basing said determining of the stoichiometric air fuel ratio and/or said specific gas constant on said determined time period of gas injection.
10. The system according to claim 8, further comprising means for performing measurements in the vehicle, wherein said means for determining the specific gas constant and/or said means for determining the stoichiometric air fuel ratio are arranged to base the determining on a result of said performed measurements.
11. The system according to claim 10, wherein said means for performing measurements comprise means for measuring a pressure value and a temperature value in the inlet manifold.
12. The system according to claim 10, wherein said means for performing measurements comprise means for measuring a temperature value and/or a pressure value of the fuel gas upstream of a gas injector.
13. The system according to claim 10, wherein said means for performing measurements comprise a lambda sensor arranged downstream said gas engine, wherein the lambda sensor is arranged for measuring a value.
14. The system according to claim 8, further comprising further means for determining a flow of air into the gas engine and/or means for determining a mass of air in a cylinder of the gas engine, wherein said means for determining the specific gas constant and/or said means for determining the stoichiometric air fuel ratio are arranged for basing said determining of the specific gas constant and/or the stoichiometric air fuel ratio on said determined flow of air into the gas engine and/or said determined mass of air in the cylinder of the gas engine.
15. A vehicle, comprising a system for adapting engine control of a gas engine in a vehicle, the system comprising: means for determining, during operation of the gas engine, a specific gas constant of a fuel gas for the gas engine; means for determining a stoichiometric air fuel ratio of the fuel gas for the gas engine; and means for adapting a control of the gas engine based on the determined specific gas constant and the determined stoichiometric air fuel ratio.
16. A computer program product stored on a non-transitory computer-readable medium, said computer program product for adapting engine control of a gas engine in a vehicle, wherein said computer program product comprises computer instructions to cause said at least one control unit to perform the following operations: determining, during operation of the gas engine, a specific gas constant of a fuel gas for the gas engine; determining a stoichiometric air fuel ratio of the fuel gas for the gas engine; and adapting a control of the gas engine based on the determined specific gas constant and the determined stoichiometric air fuel ratio.
17. (canceled)
18. The computer program product according to claim 16, wherein said determining of the specific gas constant and/or the stoichiometric air fuel ratio is based on a determined time period of gas injection.
19. The computer program product according to claim 16, further comprising computer instructions to cause said at least one control unit to perform the following operation of performing measurements in the vehicle, wherein said determining of the specific gas constant and/or said determining of the stoichiometric air fuel ratio is based on a result of said performed measurements.
20. The computer program product according to claim 19, wherein said performed measurements comprise measuring a pressure value and a temperature value in the inlet.
21. The computer program product according to claim 19, wherein said performed measurements comprise measuring a temperature value and/or a pressure value of the fuel gas upstream of a gas injector.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0033] For a more detailed understanding of the present invention and its objects and advantages, reference is made to the following detailed description which should be read together with the accompanying drawings. Same reference numbers refer to same components in the different figures. In the following,
[0034]
[0035]
[0036]
[0037]
DETAILED DESCRIPTION OF THE INVENTION
[0038]
[0039] In one example, the vehicle 100 is a bus. The vehicle 100 can be any kind of vehicle comprising a gas engine. Other examples of vehicles comprising a gas engine are boats, passenger cars, construction vehicles, and locomotives. The present invention can also be used in connection with any other platform than vehicles, as long as such a platform comprises a gas engine.
[0040] The innovative method and the innovative system according to one aspect of the invention are also well suited to, for example, systems which comprise industrial engines and/or engine-powered industrial robots.
[0041] The term link refers herein to a communication link which may be a physical connection such as an optical, electrical, or opto-electronic communication line, or a non-physical connection such as a wireless connection, e.g. a radio link or microwave link.
[0042]
[0043] Said first control unit 200 is arranged to control operation of said gas engine 210. Said first control unit 200 is arranged for communication with said gas engine 210 via a link L210. Said first control unit 200 is arranged to receive information from said gas engine 210.
[0044] Said system 299 comprises an air inlet 241. The possible flowing direction of air into the air inlet is indicated by the white arrow. The air then passes a throttle 260 before entering an inlet manifold 230. Said throttle 260 is arranged for controlling the flow of air into said inlet manifold 230. Said throttle 260 is, for example, controlled by said first control unit 200 and/or by a pedal (not shown) of the vehicle.
[0045] Said system 299 further comprises a tank 220. Said tank 220 is arranged for storing the fuel gas of the vehicle. The fuel gas can, for example, be compressed natural gas, CNG. It should, however, be noted that the invention is not limited to CNG but could use any suitable gas which can act as a fuel gas for the gas engine 210. The tank 220 is connected via connecting means 243 to a fuel rail 242. Said connecting means 243 can comprise pipes, tubes, or the like. Said connecting means 243 are arranged for transporting the fuel gas from the tank 220 to the fuel rail 242.
[0046] The system 299 further comprises a gas injector 270. Said gas injector 270 is arranged for injecting gas from the fuel rail 242 into the inlet manifold 230. The gas is injected during a time period t.sub.inj for each working cycle. Said gas injector 270 has an effective cross-sectional area, A.sub.CD, of its injector nozzle.
[0047] Said first control unit 200 is arranged to control operation of said gas injector 270. Said first control unit 200 is arranged for communication with said gas injector 270 via a link L270. Said first control unit 200 can be arranged to receive information from said gas injector 270.
[0048] Said first control unit 200 can, for example, be arranged to control t.sub.inj. In one example, t.sub.inj is calculated by said first control unit 200. In one example, t.sub.inj is measured at the gas injector 270. A.sub.CD can be stored in said first control unit 200.
[0049] Said system 299 further comprises an exhaust pipe 240. Said exhaust pipe 240 is connected to the gas engine 210 and arranged to transport exhausts from the gas engine 210 into the environment as indicated by the white arrow. It should be understood that means for treating the exhaust (not shown) can be arranged along the exhaust pipe. Such means are for example catalytic means for exhaust treatment.
[0050] Said system 299 further comprises a lambda sensor 250. Said lambda sensor 250 is provided downstream said gas engine 210. Said lambda sensor 250 is provided at said exhaust pipe 240. Said lambda sensor 250 is arranged to perform a measurement of , i.e. the ratio between actual air-fuel ratio, AFR, and stoichiometric air-fuel ratio, AFR.sub.s.
[0051] Said first control unit 200 is arranged to control operation of said lambda sensor 250. Said first control unit 200 is arranged for communication with said lambda sensor 250 via a link L250. Said first control unit 200 can be arranged to receive information from said lambda sensor 250.
[0052] Said system 299 further comprises first means for measuring a temperature value. Said first means for measuring a temperature value can be a first temperature sensor 254. Said first temperature sensor is arranged upstream said gas injector 270. Here, the term upstream should be understood in the sense that said first temperature sensor 254 is arranged for measuring the temperature T.sub.rail of the fuel gas before it passes the gas injector 270. In the shown example, said first temperature sensor 254 is arranged at the fuel rail 242.
[0053] Said first control unit 200 is arranged to control operation of said first temperature sensor 254. Said first control unit 200 is arranged for communication with said first temperature sensor 254 via a link L254. Said first control unit 200 can be arranged to receive information, for example T.sub.rail, from said first temperature sensor 254.
[0054] Said system 299 further comprises first means for measuring a pressure value. Said first means for measuring a pressure value can be a first pressure sensor 255. Said first pressure sensor is arranged upstream said gas injector 270. Here, the term upstream should be understood in the sense that said first pressure sensor 255 is arranged for measuring the pressure p.sub.rail of the fuel gas before it passes the gas injector 270. In the shown example, said first pressure sensor 255 is arranged at the fuel rail 242.
[0055] Said first control unit 200 is arranged to control operation of said first pressure sensor 255. Said first control unit 200 is arranged for communication with said first pressure sensor 255 via a link L255. Said first control unit 200 can be arranged to receive information, for example p.sub.rail, from said first pressure sensor 255.
[0056] Said system 299 further comprises second means for measuring a temperature value. Said second means for measuring a temperature value can be a second temperature sensor 252. Said second temperature sensor 252 is arranged at the inlet manifold 230. Said second temperature sensor 252 is arranged to measure the temperature T.sub.in in the inlet manifold 230.
[0057] Said first control unit 200 is arranged to control operation of said second temperature sensor 252. Said first control unit 200 is arranged for communication with said second temperature sensor 252 via a link L252. Said first control unit 200 can be arranged to receive information, for example T.sub.in, from said second temperature sensor 252.
[0058] Said system 299 further comprises second means for measuring a pressure value. Said second means for measuring a pressure value can be a second pressure sensor 253. Said second pressure sensor 253 is arranged at the inlet manifold 230. Said second pressure sensor 253 is arranged to measure the pressure p.sub.in in the inlet manifold 230.
[0059] Said first control unit 200 is arranged to control operation of said second pressure sensor 253. Said first control unit 200 is arranged for communication with said second pressure sensor 253 via a link L253. Said first control unit 200 can be arranged to receive information, for example p.sub.in, from said second pressure sensor 253.
[0060] Said system 299 further comprises means for determining a flow of air into the gas engine 210 and/or means for determining a mass of air in a cylinder of the gas engine 210.
[0061] In one example, said means for determining a flow of air into the gas engine 210 and/or means for determining a mass of air in a cylinder of the gas engine 210 comprise a mass air flow sensor, MAF-sensor, 251. Said MAF-sensor 251 can be a hot film air mass sensor, HFM-sensor. Said MAF-sensor 251 is arranged for measuring an air mass flow in the air inlet 241.
[0062] Said first control unit 200 is arranged to control operation of MAF-sensor 251. Said first control unit 200 is arranged for communication with said MAF-sensor 251 via a link L251. Said first control unit 200 can be arranged to receive information from said MAF-sensor 251.
[0063] In one example, said means for determining a flow of air into the gas engine and/or means for determining a mass of air in a cylinder of the gas engine comprise means for determining a flow through the throttle 260. Said means for determining a flow through the throttle 260 can, for example, comprise a third pressure sensor at the air inlet 241 and a third temperature sensor at the air inlet 241 (not shown). Said means for determining a flow through the throttle 260 can also comprise means for determining an effective area of the throttle. Said effective area relates to an effective area through which the air can flow from the air inlet 241 through the throttle. Said means for determining an effective area of the throttle can comprise a sensor for determining an angle of a throttle flap. The first control unit 200 can then be arranged to calculate the flow of air mass through the throttle based on the measurement results of at least one of said third temperature sensor, said third pressure sensor and said sensor for determining an angle of a throttle flap.
[0064] In one example, the mass of air in a cylinder of the gas engine can be determined by said first control unit 200. This can, for example, be done based on a volumetric efficiency, VE, of the cylinder and the ideal gas law. The VE is defined as the ratio of air in the cylinder when no fuel is present in relation to V.sub.cyl. The VE is generally less than one since also exhaust gas residuals might be present in the volume of the cylinder. Values for the VE might be stored in said first control unit 200. In one example, said values for the VE depend on p.sub.in and/or T.sub.in.
[0065] Said first control unit 200 is arranged for determining, during operation of the gas engine 210, the specific gas constant of a fuel gas for the gas engine 210. A way of doing this is described in relation to
[0066] Said first control unit 200 is arranged for determining the stoichiometric air fuel ratio of the fuel gas for the gas engine 210. A way of doing this is described in relation to
[0067] Said first control unit 200 is arranged for adapting the control of the gas engine 210 based on the determined specific gas constant and the determined stoichiometric air fuel ratio. Said adapting the control of the gas engine 210 can comprise adapting the amount of fuel injected into the gas engine 210. This is in one example done by adapting t.sub.inj. Said adapting the control of the gas engine 210 can comprise adapting the amount of air injected into the gas engine 210. This is in one example done by adapting the amount of air which can pass the throttle 260. This is in one example done by controlling the throttle flap. Said adapting the control of the gas engine 210 can comprise adapting the control of an exhaust gas recirculation, EGR (not shown). Said adapting the control of the gas engine 210 can comprise adapting a time of ignition in a cylinder of the gas engine 210. A person skilled in the art will realize that the control of a gas engine can relate to other parameters then those named here.
[0068] Adapting the control of the gas engine 210 based on the stoichiometric air fuel ratio and the specific gas constant of the fuel gas allows minimizing fuel consumption and emissions. It also allows increasing drivability of the gas engine 210. A further advantage of system 299 is that most or all of its components are present in nowadays vehicles. The present invention can thus be applied to present vehicles via software updates, without the need of any new hardware arrangements.
[0069] It should also be understood that one or more of the measured parameters which are described in this application can instead be estimated or pre-determined. This is especially useful when the component of the system 299 which corresponds to measuring the parameter is not present at a present vehicle. Said estimation can, for example, be performed by said first control unit 200. Said estimation can, for example, be based on measurement results from the remaining sensors and/or a model of the fuel/air/engine system in the corresponding vehicle.
[0070] A second control unit 205 is arranged for communication with the first control unit 200 via a link L205 and may be detachably connected to it. It may be a control unit external to the vehicle 100. It may be adapted to conducting the innovative method steps according to the invention. The second control unit 205 may be arranged to perform the inventive method steps according to the invention. It may be used to cross-load software to the first control unit 200, particularly software for conducting the innovative method. It may alternatively be arranged for communication with the first control unit 200 via an internal network on board the vehicle. It may be adapted to performing substantially the same functions as the first control unit 200, such as adapting engine control of a gas engine in a vehicle. The innovative method may be conducted by the first control unit 200 or the second control unit 205, or by both of them.
[0071] In
[0072] In the optional step 310 measurements are performed in the vehicle 100. In one example, a measurement of p.sub.rail is performed by said first pressure sensor 255. In one example, a measurement of T.sub.rail is by said first temperature sensor 254. In one example, a performed measurement of p.sub.in is performed by said second pressure sensor 253. In one example, a measurement of T.sub.in is performed by said second temperature sensor 252. In one example, a measurement of is performed by said lambda sensor 250. In one example, a mass air flow is measured by said MAF-sensor 251. In one example the angle of a throttle flap of the throttle 260 is measured. In one example t.sub.inj of said gas injector 270 is measured.
[0073] In relation to step 330 and to step 340 several alternatives will be described how the specific gas constant and/or AFR.sub.s can be determined. The measurements which are performed in step 310 are preferably adapted to which parameters are needed in the respective chosen way for determining the specific gas constant and/or AFR.sub.s. It should, however, also be understood that one or several of the needed parameters which will be described in relation to step 330 and step 340 can be pre-determined and, for example, stored in control unit. Alternatively, one or several of the needed parameters which will be described in relation to step 330 and step 340 can be determined based on one or several of the other measured parameters which are described here.
[0074] One such example is that a mass air flow measured by the MAF-sensor 251 can be replaced by determining the effective area of the throttle 260 and a measurement of the pressure and the temperature in the air inlet. This can be done via said third pressure sensor and said third temperature sensor. Determining the effective area of the throttle 260 comprises in one example measuring an angle of a throttle flap. In another example no measurement is performed for determining the effective area of the throttle 260. This can be achieved by sending a control signal to the throttle flap, where a specific control signal corresponds to a specific angle of the throttle flap. By knowing the control signal the angle of the throttle flap and thus the effective area can be derived without an additional measurement, see step 325.
[0075] Even the measurement of other of the parameters described in step 330 and step 340 can be replaced by assumptions and/or by deriving them from the measurement results of other measurements. After step 320 an optional step 320 is performed.
[0076] In the optional step 320 a time period of gas injection t.sub.inj is determined. This is in one example done by measuring the time period of gas injection. In one example the time period of gas injection depends on a control signal which is sent from the first control unit 200 to the gas injector 270. The first control unit 200 can then derive t.sub.inj from the control signal without the need of performing a measurement. The method continues with the optional step 325.
[0077] In the optional step 325 a flow of air into the gas engine is determined and/or a mass of air in a cylinder of the gas engine is determined. In one example this is done based on measuring the mass air flow with the MAF-sensor 251. In one example this is done via determining the effective area of the throttle. This has been described in more detail above, for example in relation to step 310. The method continues with step 330.
[0078] In step 330, during operation of the gas engine, the specific gas constant, R.sub.FG, of the fuel gas for the gas engine is determined. This can be done based on the determined time period of gas injection in step 320. This can be done based on the result of one or more performed measurements, for example those described in relation to step 310. This can be done based on the determined flow of air into the gas engine and/or the determined mass of air in the cylinder of the gas engine as described in step 325.
[0079] In one example, the specific gas constant R.sub.FG can be determined via the following relation:
[0080] In one example equality is used in the above relation. In one example, one or several additional conversion constants are used in the above relation.
[0081] is a nozzle flow factor, which in one example is a constant value. This is especially the case in a so-called sonic velocity regime where the pressure ratio p.sub.r over the nozzle of the gas injector 270 is below a certain critical value p.sub.c, wherein p.sub.r=p.sub.in/p.sub.rail. In one example depends on the pressure ratio over the nozzle p.sub.r. This is especially the case in a so-called subsonic velocity regime where the pressure ratio p.sub.r over the nozzle of the gas injector 270 is above the critical value p.sub.c. Values for , either constant values and/or values depending on p.sub.r can be stored in the first control unit 200.
[0082] V.sub.FG.sub.
[0083] In one example, V.sub.FG.sub.
[0084] It should be understood that the above examples of how R.sub.FG, V.sub.FG.sub.
[0085] In step 340 the stoichiometric air fuel ratio AFR.sub.s of the fuel gas for the gas engine is determined. This can be done based on the determined time period of gas injection in step 320. This can be done based on the result of one or more performed measurements, for example those described in relation to step 310. This can be done based on the determined flow of air into the gas engine and/or the determined mass of air in the cylinder of the gas engine as described in step 325.
[0086] In the following, some examples are presented how AFR.sub.s can be determined:
[0087] Some vehicles assume a reference fuel gas for a gas engine. This reference fuel gas has then an assumed reference stoichiometric air-fuel ratio AFR.sub.s.sub.
[0088] The above equations show that AFR.sub.s can be determined in a number of different ways. The above examples are not limiting and a person skilled in the art will realize that yet other equations can be used for determining AFR.sub.s. A suitable equation is preferably chosen based on which sensors are present in the vehicle and/or which values can be easily determined by a control unit in the vehicle. The method continues with step 350.
[0089] In step 350 the control of the gas engine is adapted based on the determined specific gas constant and based on the determined stoichiometric air fuel ratio.
[0090] Said adaption of the control of the gas engine comprises in one example adapting the amount of fuel injected into the gas engine. Said adapting of the control of the gas engine comprises in one example adapting t.sub.inj. Said adapting of the control of the gas engine comprises in one example adapting the amount of air injected into the gas engine. This is in one example done by controlling the throttle flap. Said adapting of the control of the gas engine can comprise adapting the control of an exhaust gas recirculation, EGR. Said adapting the control of the gas engine can comprise adapting a time of ignition in a cylinder of the gas engine. Depending on the design of the gas engine there are other parameters as well which can be adapted. A person skilled in the art will be aware of which other parameters are present at a specific gas engine. Some advantages of the adaptions based on AFR.sub.s and R.sub.FG are lower fuel consumption and/or lower amount of certain exhausts from the gas engine.
[0091] After step 350 the method ends.
[0092] The method or parts of the method can be performed repeatedly. As an example, none of the steps 300-340 does affect driveability of the vehicle. These steps can thus be performed at pre-determined time intervals or continuously. Even step 350 can be performed at pre-determined time intervals or continuously. An adaption in step 350 can be made dependent on that a determined AFR.sub.S and/or a determined R.sub.FG differs from a previously assumed or determined AFR.sub.S and/or R.sub.FG with more than a predetermined threshold. In one example, an average of AFR.sub.S and/or a R.sub.FG is taken over different runs of the steps 310-340 before step 350 is performed. In one example the method is performed when a refuelling of the gas tank 220 is detected. In one example, AFR.sub.S and/or R.sub.FG are determined by different equations and an average value of AFR.sub.S and/or R.sub.FG is taken before step 350 is performed.
[0093]
[0094] The computer program comprises routines for adapting engine control of a gas engine in a vehicle.
[0095] The computer program P may comprise routines for determining, during operation of the gas engine, the specific gas constant of a fuel gas for the gas engine. This may at least partly be performed by means of said first control unit 200 controlling operation of any of the sensors 250-255, and/or the throttle 260, and/or the gas injector 270. Said specific gas constant may be stored in said non-volatile memory 520.
[0096] The computer program P may comprise routines for determining the stoichiometric air fuel ratio of the fuel gas for the gas engine. This may at least partly be performed by means of said first control unit 200 controlling operation of any of the sensors 250-255, and/or the throttle 260, and/or the gas injector 270. Said stoichiometric air fuel ratio of the fuel gas for the gas engine may be stored in said non-volatile memory 520.
[0097] The computer program P may comprise routines for adapting the control of the gas engine based on the determined specific gas constant and the determined stoichiometric air fuel ratio.
[0098] The computer program P may comprise routines for determining a time period of gas injection.
[0099] The computer program P may comprise routines for performing at least one measurement in the vehicle. Said at least one measurement can comprise at least one temperature measurement and/or at least one measurement of temperature. Said at least one measurement can comprise a measurement of a value. This may at least partly be performed by means of said first control unit 200 controlling operation of any of the sensors 250-255, and/or the throttle 260, and/or the gas injector 270. The result of said performed at least one measurement may be stored in said non-volatile memory 520.
[0100] The computer program P may comprise routines for determining a flow of air into the gas engine 210 and/or for determining a mass of air in a cylinder of the gas engine 210.
[0101] The program P may be stored in an executable form or in compressed form in a memory 560 and/or in a read/write memory 550.
[0102] Where it is stated that the data processing unit 510 performs a certain function, it means that it conducts a certain part of the program which is stored in the memory 560 or a certain part of the program which is stored in the read/write memory 550.
[0103] The data processing device 510 can communicate with a data port 599 via a data bus 515. The non-volatile memory 520 is intended for communication with the data processing unit 510 via a data bus 512. The separate memory 560 is intended to communicate with the data processing unit via a data bus 511. The read/write memory 550 is arranged to communicate with the data processing unit 510 via a data bus 514. The links L205, L210, L250-255, and L270, for example, may be connected to the data port 599 (see
[0104] When data are received on the data port 599, they can be stored temporarily in the second memory element 540. When input data received have been temporarily stored, the data processing unit 510 can be prepared to conduct code execution as described above.
[0105] Parts of the methods herein described may be conducted by the device 500 by means of the data processing unit 510 which runs the program stored in the memory 560 or the read/write memory 550. When the device 500 runs the program, methods herein described are executed.
[0106] The foregoing description of the preferred embodiments of the present invention is provided for illustrative and descriptive purposes. It is neither intended to be exhaustive, nor to limit the invention to the variants described. Many modifications and variations will obviously suggest themselves to one skilled in the art. The embodiments have been chosen and described in order to best explain the principles of the invention and their practical applications and thereby make it possible for one skilled in the art to understand the invention for different embodiments and with the various modifications appropriate to the intended use.