Data acquisition method and device for engine injection HIL and medium
The start signal and injection mode are determined through the HIL control interface, and the injection sequence is automatically determined by combining the physical cylinder and acquisition angle, which solves the problem that the existing technology cannot meet the precise requirements of engine ECU injection control, and realizes efficient data acquisition and controllability in the test environment Improve testing efficiency and product quality.
Patent Information
- Application Number
- CN202411250099.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-09-06
AI Technical Summary
The existing fixed injection sequence acquisition methods and hardware boards cannot meet the current precise requirements of engine ECU injection control, resulting in poor closed-loop state of HIL or inability to close loop, affecting the smooth progress of engine HIL testing.
Determine the start signal and injection mode through the HIL control interface, determine the phase of the 0 cylinder and the pre-set acquisition angle, determine the injection mode and sequence according to the physical cylinder of the engine, and perform data acquisition, and use software cylinder number replacement and phase offset compensation to ensure data Accuracy of collection.
Improve the controllability and security of the test environment, realize the automation and intelligence of data acquisition, especially in complex modes, ensure the accuracy and completeness of data acquisition, improve the testing efficiency and reduce the Development costs ensure the reliability of product quality.
Smart Images

Figure CN119321373A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data acquisition method, device and medium for engine injection HIL. Background Art
[0002] With the development of engine electronic control unit (ECU) injection control technology, hardware-in-the-loop (HIL) faces new challenges. The original fixed injection sequence acquisition method and hardware board acquisition shortcomings can no longer meet the precise requirements of current engine ECU injection control. For example, MPI, CPI and X-valve N-injection acquisition cannot collect the correct injection advance angle and power-on time, resulting in poor HIL closed-loop status or failure to close the loop, which seriously affects the smooth progress of engine HIL testing. Summary of the invention
[0003] In order to solve the above problems, the present application proposes a data acquisition method for an engine injection HIL, comprising: determining a start signal through a control interface of the HIL to start the engine according to the start signal and determine the injection mode of the engine; determining the 0 cylinder phase through the HIL and determining a preset acquisition angle; determining the injection mode according to the physical cylinders of the engine, and determining the injection order according to the injection mode, so as to perform data acquisition according to the acquisition angle and the injection order.
[0004] In one example, determining the 0-cylinder phase through the HIL specifically includes: determining a low idle injection angle through the HIL, and performing a phase shift according to the low idle injection angle to determine the 0-cylinder phase.
[0005] In one example, the method further includes: determining the injection mode, the injection mode including a multi-point injection mode and a multi-injection multi-valve mode.
[0006] In one example, the method further includes: if the injection mode is a multi-point injection mode, determining the order of the physical cylinders, and complementing the software cylinder numbers of the physical cylinders according to the 0 cylinder phase and the order of the physical cylinders to determine the injection order.
[0007] In one example, the method further includes: if the injection mode is a multi-valve multi-injection mode, determining whether there is an injection signal in the physical cylinder; if there is no injection signal in the physical cylinder, determining whether the physical cylinder is included between the phase offsets; if the physical cylinder is included between the phase offsets, updating the phase deviation angle according to a preset angle increase.
[0008] In one example, after updating the phase deviation angle according to a preset angle increase, the method further includes: determining a physical cylinder number corresponding to the physical cylinder, and shifting cylinder 0 according to the physical cylinder number.
[0009] In one example, the method further includes: performing phase offset compensation according to the acquisition angle to perform data acquisition, thereby obtaining an advance angle corresponding to the physical cylinder and determining a corresponding power-on time during acquisition.
[0010] In one example, the method further includes: obtaining acquisition parameters, which include but are not limited to acquisition range, software 0 cylinder phase, phase offset compensation, and injection mode; and displaying the acquisition parameters through the control interface.
[0011] On the other hand, the present application also proposes a data acquisition device for an engine injection HIL, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the data acquisition device for an engine injection HIL can execute: determining a start signal through a control interface of the HIL to start the engine according to the start signal, and determining an injection mode of the engine; determining a 0 cylinder phase through the HIL, and determining a preset collection angle; determining an injection mode according to the physical cylinders of the engine, and determining an injection sequence according to the injection mode, so as to perform data collection according to the collection angle and the injection sequence.
[0012] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: determine a start signal through a control interface of the HIL to start the engine according to the start signal and determine the injection mode of the engine; determine the 0 cylinder phase through the HIL and determine a preset collection angle; determine the injection mode according to the physical cylinder of the engine and determine the injection order according to the injection mode to collect data according to the collection angle and the injection order.
[0013] This application directly starts the engine and determines the injection mode through the HIL control interface, which greatly improves the controllability and safety of the test environment. By accurately calculating the 0-cylinder phase and setting the acquisition angle, the injection order is automatically determined in combination with the physical cylinder and injection mode of the engine, realizing the automation and intelligence of data acquisition. Especially when dealing with complex multi-point injection modes and multi-injection multi-valve modes, it can respond flexibly and ensure the accuracy and completeness of data acquisition through methods such as software cylinder number replacement or phase offset compensation. In addition, this application also has powerful parameter configuration and display functions, which can flexibly set parameters such as the acquisition range and software 0-cylinder phase, and intuitively display them through the control interface, which is convenient for users to operate and monitor. This application shows extremely high application value in the development, testing and verification of the engine injection system, improves test efficiency, reduces development costs, and ensures the reliability of product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0015] Figure 1 This is a flow chart of a data collection method for an engine injection HIL in an embodiment of the present application;
[0016] Figure 2 It is a schematic diagram of a data acquisition device for engine injection HIL in an embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0018] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0019] like Figure 1 As shown, in order to solve the above problems, an embodiment of the present application provides a data collection method for engine injection HIL, the method comprising:
[0020] S101, determining a start signal through a control interface of the HIL, starting an engine according to the start signal, and determining an injection mode of the engine.
[0021] HIL technology simulates the real environment of engine operation, replaces the physical engine with a mathematical model, and connects it to a real controller to form a closed-loop test system. In this system, the control interface serves as a bridge for users to interact with the test system, allowing testers to input various instructions and parameters. The user first clicks the T50 button on the HIL interface to make the ECU output a start signal to make the starter work. The injection mode is one of the key factors in engine performance, which determines the injection timing, injection amount, and injection method of the fuel. For example, multi-point fixed injection mode (MPI), multi-point non-fixed injection mode (CPI) and X-valve N-spray mode.
[0022] S102, determining the phase of cylinder 0 through the HIL, and determining a preset acquisition angle.
[0023] According to the injection phase of cylinder 0 during synchronization, the HIL hardware can configure the injection acquisition range to 720 degrees.
[0024] S103, determining an injection mode according to the physical cylinder of the engine, and determining an injection sequence according to the injection mode, so as to collect data according to the collection angle and the injection sequence.
[0025] When the injection order of the physical cylinder is fixed, the HIL acquisition configuration needs to correspond to the physical cylinder injection order to correctly collect the advance angle and power-on time. In order to meet the needs of injection acquisition in each mode, the HIL acquisition configuration is configured as software 0 cylinder, and the injection angle range between low idle and high idle speeds of the application layer is determined. The injection angle at low idle is used to determine the software 0 cylinder position, that is, the software 0 cylinder position is determined by the falling edge of the 6-cylinder injection angle and then a fixed offset.
[0026] In engine control systems, especially when using HIL testing or simulation, it is often necessary to determine a reference cylinder, i.e., cylinder 0, as the starting point for the injection sequence, ignition sequence, or other control logic. However, in an actual physical engine, the arrangement order of the cylinders may not completely correspond to the software cylinder numbers in the software or control system. After a physical cylinder is determined as software cylinder 0, in order to maintain the consistency and accuracy of the control logic, the software cylinder numbers of the remaining physical cylinders need to be supplemented and matched. This process ensures that no matter how the actual arrangement of the physical cylinders is, the software can control and monitor each cylinder in a predetermined logical order. After determining cylinder 0, it is still supplemented and matched in sequence according to the order of physical cylinders 1-5-3-6-2-4. For example, if physical cylinder 3 is determined as software cylinder 0, the corresponding physical cylinder software cylinder number is 4-5-0-1-2-3.
[0027] After determining the software cylinder number, the phase offset compensation is performed according to the current acquisition angle, and the correct advance angle is determined without losing the advance angle characteristics of the real acquisition, and the power-on time acquisition is displayed. The current angle acquired is compared with the reference phase, and the phase difference between the two is calculated, that is, the phase offset. This offset may be caused by various factors such as the sensor installation position, mechanical clearance, electronic delay, etc. According to the calculated phase offset, the advance angle corresponding to the software cylinder number is compensated. After the phase offset compensation, the advance angle in the software will match the actual physical situation, thereby ensuring that the fuel injection or ignition is carried out at the correct crankshaft or camshaft position. After determining the correct advance angle, the acquisition and display of the power-on time also become direct and accurate. The control system will control the opening and closing of the injector according to the preset injection pulse width and the determined advance angle, and collect and display the power-on time data in real time.
[0028] In the X-valve N-injection mode, taking 5-valve 6-injection as an example, determine the position of the software cylinder 0, and then determine the physical cylinder number without injection signal. During the operation of the engine, due to certain reasons, such as failure, fuel saving strategy, requirements under specific working conditions, etc., some cylinders may temporarily not inject fuel. At this time, the control system needs to be able to identify these physical cylinder numbers without injection signals, which is usually achieved by monitoring the injection status or sensor signals of each cylinder. Then determine whether the physical cylinder is included between the phase offsets. Since the injection order of the engine is fixed and the injection phase of each cylinder is relative to the crankshaft position, the judgment is made by calculating the relationship between the current phase offset and the injection phase of the physical cylinder. If yes, that is, the injection phase of the physical cylinder is within the range covered by the current phase offset, then increase the phase deviation angle by 120 degrees to ensure that even if there is a phase offset, the injection of the physical cylinder can be carried out at the correct crankshaft position. In the next cycle, the software cylinder 0 can be shifted, and the next physical cylinder will take over its position.
[0029] like Figure 2 As shown, the embodiment of the present application also provides a data acquisition device for engine injection HIL, including:
[0030] at least one processor; and,
[0031] a memory communicatively connected to at least one processor; wherein,
[0032] The memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor to enable a data acquisition device for an engine injection HIL to perform:
[0033] Determine a start signal through a control interface of the HIL, start the engine according to the start signal, and determine an injection mode of the engine;
[0034] Determine the phase of cylinder 0 through the HIL, and determine a preset acquisition angle;
[0035] An injection mode is determined according to a physical cylinder of the engine, and an injection sequence is determined according to the injection mode, so as to perform data collection according to the collection angle and the injection sequence.
[0036] The embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0037] Determine a start signal through the control interface of the HIL, start the engine according to the start signal, and determine the injection mode of the engine;
[0038] Determine the phase of cylinder 0 through the HIL, and determine a preset acquisition angle;
[0039] An injection mode is determined according to a physical cylinder of the engine, and an injection sequence is determined according to the injection mode, so as to perform data collection according to the collection angle and the injection sequence.
[0040] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0041] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0042] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0043] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0044] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0045] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0046] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0047] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0048] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0049] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0050] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0051] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0052] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0053] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0054] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data acquisition method for engine injection HIL, characterized in that: include: Determine a start signal through a control interface of the HIL, start the engine according to the start signal, and determine an injection mode of the engine; Determine the phase of cylinder 0 through the HIL, and determine a preset acquisition angle; An injection mode is determined according to a physical cylinder of the engine, and an injection sequence is determined according to the injection mode, so as to perform data collection according to the collection angle and the injection sequence.
2. The method according to claim 1, characterized in that Determining the 0 cylinder phase by the HIL specifically includes: A low idle injection angle is determined by the HIL, and a phase shift is performed according to the low idle injection angle to determine the 0 cylinder phase.
3. The method according to claim 2, characterized in that The method further comprises: The injection mode is determined, and the injection mode includes a multi-point injection mode and a multi-spray multi-valve mode.
4. The method according to claim 3, characterized in that The method further comprises: If the injection mode is a multi-point injection mode, the order of the physical cylinders is determined, and the software cylinder numbers of the physical cylinders are complemented and matched according to the 0-cylinder phase and the order of the physical cylinders to determine the injection order.
5. The method according to claim 3, characterized in that: The method further comprises: If the injection mode is a multi-valve multi-injection mode, determining whether there is an injection signal for the physical cylinder; If there is no injection signal for the physical cylinder, determining whether the phase offset includes the physical cylinder; If the phase offset includes the physical cylinder, the phase deviation angle is updated according to a preset angle increment.
6. The method according to claim 5, characterized in that After the phase deviation angle is updated according to the preset angle increment, the method further includes: The physical cylinder number corresponding to the physical cylinder is determined, and cylinder 0 is shifted according to the physical cylinder number.
7. The method according to claim 1, characterized in that The method further comprises: Phase offset compensation is performed according to the acquisition angle to perform data acquisition, thereby obtaining the advance angle corresponding to the physical cylinder and determining the corresponding power-on time during acquisition.
8. The method according to claim 1, characterized in that The method further comprises: Acquire acquisition parameters, including but not limited to acquisition range, software 0 cylinder phase, phase offset compensation, and injection mode; The acquisition parameters are displayed through the control interface.
9. A data acquisition device for engine injection HIL, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the data acquisition device for the engine injection HIL to perform: Determine a start signal through a control interface of the HIL, start the engine according to the start signal, and determine an injection mode of the engine; Determine the phase of cylinder 0 through the HIL, and determine a preset acquisition angle; An injection mode is determined according to a physical cylinder of the engine, and an injection sequence is determined according to the injection mode, so as to perform data collection according to the collection angle and the injection sequence.
10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Determine a start signal through a control interface of the HIL, start the engine according to the start signal, and determine an injection mode of the engine; Determine the phase of cylinder 0 through the HIL, and determine a preset acquisition angle; An injection mode is determined according to a physical cylinder of the engine, and an injection sequence is determined according to the injection mode, so as to perform data collection according to the collection angle and the injection sequence.
Citation Information
Patent Citations
Diagnostic test method and diagnostic test system for synchronizing signal of engine crankshaft / cam shaft
CN111608804A
Current acquisition circuit and method
CN118566569A
Oil injector signal identification method suitable for hardware-in-the-loop engineering
CN118601759A
Electronic control unit timing emulation
EP4036780A1
Fuel injection controller
JP1990136543A