CN116400664A - Hardware-in-the-loop HIL test system and construction method thereof - Google Patents

Hardware-in-the-loop HIL test system and construction method thereof Download PDF

Info

Publication number
CN116400664A
CN116400664A CN202310194925.3A CN202310194925A CN116400664A CN 116400664 A CN116400664 A CN 116400664A CN 202310194925 A CN202310194925 A CN 202310194925A CN 116400664 A CN116400664 A CN 116400664A
Authority
CN
China
Prior art keywords
signal
test
module
model
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310194925.3A
Other languages
Chinese (zh)
Inventor
任勇
赵怿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Electric Vehicle Co Ltd
Original Assignee
Beijing Electric Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Electric Vehicle Co Ltd filed Critical Beijing Electric Vehicle Co Ltd
Priority to CN202310194925.3A priority Critical patent/CN116400664A/en
Publication of CN116400664A publication Critical patent/CN116400664A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses a hardware-in-the-loop HIL test system and a construction method thereof. The system comprises: the hybrid communication module comprises a plurality of model interfaces, the model interfaces correspond to a plurality of communication functions, the model interfaces are used for being connected with a tested controller, and the hybrid communication module is used for realizing transmission of a plurality of communication signals and interaction among the plurality of communication signals; the dynamic model module is used for generating a first test signal and sending the first test signal to the to-be-tested controller through a model interface corresponding to the first test signal by the mixed communication module; the input module is used for receiving the feedback signal sent by the tested controller through the model interface corresponding to the feedback signal by the mixed communication module and obtaining a test result according to the feedback signal, wherein the feedback signal is generated by the tested controller according to the first test signal. The system can realize high-performance HIL test.

Description

Hardware-in-the-loop HIL test system and construction method thereof
Technical Field
The invention relates to the technical field of HIL (high performance liquid chromatography) testing, in particular to a hardware-in-the-loop HIL testing system and a construction method thereof.
Background
In the process of performing HIL (Hardware in Loop) test on a controller, a certain number of HIL test cases are generally written to perform unfolding test on the controller, whether the functions of the controller meet design requirements is judged according to the results of the test cases, meanwhile, test case failure items are analyzed, and software is pertinently modified and tested in a regression mode until all HIL test cases pass through.
However, in the related art, the communication mode between the test system and the tested controller is single, and only CAN support CAN (Controller Area Network ) communication, which affects the test capability.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent. To this end, a first object of the present invention is to propose a hardware-in-loop HIL test system to achieve high performance HIL testing.
The second aim of the invention is to provide a hardware-in-loop HIL test system construction method.
To achieve the above object, an embodiment of a first aspect of the present invention provides a hardware-in-loop HIL test system, the system comprising: the hybrid communication module comprises a plurality of model interfaces, a plurality of model interfaces correspond to a plurality of communication functions, the model interfaces are used for being connected with a tested controller, and the hybrid communication module is used for realizing transmission of a plurality of communication signals and interaction among the plurality of communication signals; the dynamics model module is used for generating a first test signal and sending the first test signal to the tested controller through a model interface corresponding to the first test signal by the mixed communication module; and the input module is used for receiving the feedback signal sent by the controlled controller through the model interface corresponding to the feedback signal of the mixed communication module and obtaining a test result according to the feedback signal, wherein the feedback signal is generated by the controlled controller according to the first test signal.
According to the hardware-in-the-loop HIL test system, the mixed communication module supporting interaction among various communication signals and various communication signals is arranged, the dynamics model module is communicated with the tested controller by utilizing the mixed communication module, the first test signal is sent to the tested controller, and the feedback signal sent by the tested controller is received, so that high-performance HIL test is realized.
In order to achieve the above objective, an embodiment of a second aspect of the present invention provides a method for building a hardware-in-loop HIL test system, where the method includes: analyzing the Ethernet protocol to obtain the service used by the tested controller; constructing an Ethernet model interface according to the service, configuring and simulating a model interface of a CAN/CANFD signal to obtain the CAN/CANFD model interface; obtaining a hybrid communication module according to the Ethernet model interface and the CAN/CANFD model interface; building a whole vehicle dynamics model and a controlled object model to obtain a dynamics model module; and loading the dynamics model module to a hardware-in-loop HIL simulation platform, and carrying out interface configuration on the HIL simulation platform according to the mixed communication module to obtain the hardware-in-loop HIL test system.
According to the hardware-in-loop HIL test system construction method, the constructed hardware is used for setting the hybrid communication module supporting interaction among various communication signals and various communication signals in the loop HIL test system, the dynamic model module is communicated with the tested controller by using the hybrid communication module, the first test signal is sent to the tested controller, the feedback signal sent by the tested controller is received, and therefore high-performance HIL test can be achieved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a block diagram of a hardware-in-the-loop HIL test system according to one embodiment of the invention;
FIG. 2 is a schematic diagram of an exemplary hardware-in-loop HIL test system of the present invention;
FIG. 3 is a flowchart of a method for building a hardware-in-the-loop HIL test system according to an embodiment of the present invention;
FIG. 4 is a flow chart of an exemplary hardware-in-loop HIL test system construction method of the present invention.
Detailed Description
The hardware-in-loop HIL test system and the construction method thereof according to embodiments of the present invention are described below with reference to the accompanying drawings, in which the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described with reference to the drawings are exemplary and should not be construed as limiting the invention.
FIG. 1 is a block diagram of a hardware-in-the-loop HIL test system according to one embodiment of the invention.
As shown in fig. 1, the hardware-in-loop HIL test system 100 includes: the hybrid communication module 101 comprises a plurality of model interfaces, the model interfaces correspond to a plurality of communication functions, the model interfaces are used for being connected with a tested controller, and the hybrid communication module 101 is used for realizing transmission of a plurality of communication signals and interaction among the plurality of communication signals; the dynamics model module 102 is configured to generate a first test signal, and send the first test signal to the to-be-tested controller through a model interface corresponding to the first test signal by the hybrid communication module 101; the input module 103 is configured to receive, through a model interface corresponding to the feedback signal by the hybrid communication module 101, the feedback signal sent by the controlled controller, and obtain a test result according to the feedback signal, where the feedback signal is generated by the controlled controller according to the first test signal.
Specifically, the hybrid communication module 101 includes a plurality of different communication modules, and the different communication modules may support different communication signals, such as an ethernet network/IP (Scalable service-Oriented MiddlewarE over IP) signal, a CAN/CANFD signal, and the like. The dynamics model module 102 is configured to simulate the operation of the operability device on the vehicle by the driver and the influence factors of the external environment on the vehicle, generate a first test signal, and send the first test signal to the controlled controller through the hybrid communication module 101. The input module 103 receives the feedback signal generated by the controlled controller through the hybrid communication module 101 and processes the feedback signal so that a tester can judge whether the controlled controller meets the requirement according to the processed feedback signal.
Therefore, by arranging the hybrid communication module 101 supporting various communication signals and interactions among the various communication signals, the dynamics model module 102 communicates with the controlled controller by using the hybrid communication module 101, sends a first test signal to the controlled controller, and receives a feedback signal sent by the controlled controller, thereby realizing high-performance HIL test.
In one embodiment of the invention, the plurality of model interfaces includes an Ethernet model interface, a CAN/CANFD model interface. At this time, the hybrid communication module 101 includes an ethernet communication module and a CAN/CANFD communication module, and functions to transmit and receive ethernet SOME/IP signals and CAN/CANFD signals, and at the same time, the module CAN implement interaction between the ethernet SOME/IP signals and CAN/CANFD signals.
In one embodiment of the present invention, the input module 103 is specifically configured to: and when the feedback signal is received, performing format conversion on the feedback signal to obtain a test result.
Specifically, the input module 103 includes an interface with the hybrid communication module 101, and functions to receive a feedback signal output by the tested controller and convert the feedback signal into a readable format, so that a tester can determine whether the test passes according to the feedback information in the readable format.
In one embodiment of the present invention, the input module 103 is further configured to: obtaining an analog signal to be tested, and performing format conversion on the analog signal to be tested to obtain a test reference signal, wherein the test reference signal is a reference signal when a test result is obtained.
Specifically, the analog signal to be tested includes at least one of a signal simulating the operation of the vehicle operable device and a signal simulating the influence of the external environment on the vehicle, and after the analog signal to be tested is obtained, the input module 103 performs format conversion on the analog signal to be tested, and converts the simulated operation of the vehicle operable device and the simulated influence of the external environment on the vehicle into a readable format, so that a tester can determine whether the test passes by combining the feedback information of the readable format.
In one embodiment of the present invention, the operation modes of the system include a dynamics simulation mode and a manual setting mode, when the system is in the dynamics simulation mode, the dynamics model module 102 operates to send a first test signal to the to-be-tested controller to test the to-be-tested controller, and when the system is in the manual setting mode, the system sends a second test signal to the to-be-tested controller to test the to-be-tested controller, wherein the second test signal is a signal generated according to a manual setting instruction, and the hardware-in-loop HIL test system 100 further includes: the manual control module is connected with the to-be-tested controller and is used for working when the system is in a manual setting mode, obtaining a second test signal according to the manual setting instruction when the manual setting instruction is received, and sending the second test signal to the to-be-tested controller.
Specifically, the hardware-in-loop HIL test system 100 has two data flow modes, one is to simulate through a dynamics model, and the other is to set manually. The dynamics simulation mode transmits the output signal of the measured controller, the input signal of the driver (signals related to the driver, such as gear/brake/accelerator pedal, etc.), etc. to the hardware in the loop HIL test system 100 for processing, so as to form a closed loop of signals; the manual setting mode is to directly set the input of the controlled controller, and no signal closed loop is formed. By simulating the change of a certain signal, a series of influences of the signal on the related functions of the measured controller and other related parameters of the vehicle model can be verified; and signals are input to the tested controller through a manual setting mode, so that the direct correlation function of the tested controller can be conveniently and directly verified, and the problem can be conveniently verified by testers. The direct setting of the input of the measured controller can be completed through a manual setting automatic environment model system, namely, a manual setting instruction is issued by the manual setting automatic environment model system.
The manual control module is used for providing an interface used when the manual setting automatic environment model system sends the second test signal to the tested controller, and comprises an interface for manually setting any Output signal of the automatic environment model system, including an IO (Input/Output) signal, an Ethernet signal and a CAN/CANFD signal.
In one embodiment of the invention, the hardware-in-loop HIL test system 100 further comprises: the model and manual switching module is connected with the dynamics model module 102 and the manual control module and is used for switching the working modules in the dynamics model module 102 and the manual control module.
In one embodiment of the invention, the hardware-in-loop HIL test system 100 further comprises: the power supply control module is used for setting a control signal of a low-voltage programmable power switch of the power supply equipment, a protection current of the power supply equipment, remote operation permission of the power supply equipment and a low-voltage power supply voltage value of the power supply equipment, wherein the power supply equipment is equipment for supplying power to a controlled controller, and the power supply control module controls connection of an I/O hard wire (voltage and current) and the controlled controller.
The remote control signal of the low-voltage programmable power switch of the equipment is also the control signal of the low-voltage switch of the measured controller. The setting of the low-voltage power supply voltage value is determined by the input value of the power supply control module, when the value is 0, the low-voltage power supply voltage is set to 13V, and when the value is not 0, the low-voltage power supply voltage is set to the value.
In one embodiment of the invention, the dynamics model module 102 includes: the driver model submodule is used for generating a simulation signal to be tested, wherein the simulation signal to be tested comprises at least one of a signal simulating operation on vehicle-operable equipment and a signal simulating influence of external environment on a vehicle; the vehicle dynamics model submodule is used for obtaining a vehicle motion simulation signal according to the simulation signal to be detected; the first output module is respectively connected with the vehicle dynamics model submodule and the hybrid communication module 101 and is used for obtaining a first output signal according to the vehicle motion simulation signal; the second output module is respectively connected with the first output module and the mixed communication module 101, and is used for generating a second output signal according to the test target and the first output signal and sending the second output signal to the tested controller through the mixed communication module 101; wherein the first test signal comprises a first output signal and a second output signal.
As one example, the dynamics model includes four modules, a driver model sub-module, a vehicle dynamics model sub-module, an OUTPORT (i.e., the first output module described above), and a placemodeloutport (i.e., the second output module described above). 1) The function of the driver model submodule is to simulate the operation of some operable devices of the vehicle by a driver and the influence factors of external environment on the vehicle, and the factors are taken as necessary inputs of a vehicle dynamics model. 2) The vehicle dynamics model sub-module mainly comprises a battery module, a motor module, a transmission module, a vehicle module, a DCDC module, a vacuum pump module, an energy consumption calculation module and other sub-simulation modules. 3) The output function is mainly to decompose or convert the input signals in the driver model into the switch signals or analog signals of the IO channels of the related controllers. 4) The function of the playmodel port is to assign a value to a signal which is not simulated in the previous dynamics model sub-module, so that all external signals required by the controlled controller can be generated.
In one embodiment of the invention, the hardware-in-loop HIL test system 100 further comprises: the output module is respectively connected with the dynamics model module 102 and the hybrid communication module 101 and is used for sending a first test signal to the tested controller through the hybrid communication module 101.
Specifically, the output module includes interfaces of the dynamics model module 102 and the hybrid communication module 101, and functions to send an input signal required by the work of the controlled controller to the controlled controller through a corresponding hardware interface.
In one embodiment of the invention, see fig. 2, comprising: hybrid communication module 101 (Ethernet SOME/IP and CAN/CANFD), power control module, input module 103, dynamics model module 102, manual control module, model and manual switching module, output module. The main functions of the system are to provide various input signals (I/O hard wire signals, CAN/CANFD signals and Ethernet signals) required by the operation of the controller, read the output signals of the controller and verify the functions of the controller. Each individual output signal of the system (I/O hard-wired signal, CAN/CANFD signal, ethernet signal, etc.) has two data flow modes, one is simulated by a dynamics model, and the other is set manually.
By configuring a transmission mode UDP (User Datagram Protocol ) transmission mode or TCP (Transmission Control Protocol ) transmission mode in an Ethernet SOME/IP ARXML protocol, supporting protocols such as UDP, TCP, SOME/IP in the Ethernet protocol can be realized, and SOME/IP event notification and SOME/IP remote procedure call are configured in the ARXML protocol, so that complex software systems and use scenarios can be processed by utilizing the SOME/IP protocol, such as: SOME/IP event notification, SOME/IP remote procedure call, CAN/CANFD message transmission between different domains, etc.
In summary, in the hardware-in-the-loop HIL test system provided by the embodiment of the invention, by arranging the hybrid communication module supporting interaction among various communication signals and various communication signals, the dynamics model module communicates with the tested controller by using the hybrid communication module, sends a first test signal to the tested controller, and receives a feedback signal sent by the tested controller, so that high-performance HIL test is realized.
Furthermore, the invention provides a hardware-in-the-loop HIL test system construction method.
Fig. 3 is a flowchart of a method for constructing a hardware-in-loop HIL test system according to an embodiment of the present invention.
As shown in fig. 3, the hardware-in-loop HIL test system building method includes:
s31, analyzing the Ethernet protocol to obtain the service used by the controlled controller.
S32, constructing an Ethernet model interface according to the service, configuring and simulating the model interface of the CAN/CANFD signal, and obtaining the CAN/CANFD model interface.
S33, obtaining the hybrid communication module according to the Ethernet model interface and the CAN/CANFD model interface.
S34, building a whole vehicle dynamics model and a controlled object model to obtain a dynamics model module.
S35, loading the dynamics model module to a hardware-in-loop HIL simulation platform, and carrying out interface configuration on the HIL simulation platform according to the mixed communication module to obtain the hardware-in-loop HIL test system.
As an example, referring to fig. 4, first, an ethernet SOME/IP ARXML protocol is parsed, services between a measured controller and other nodes are selected, a code interface of ethernet services (method and event types) is generated using an ethernet configuration tool of DSPACE (digital space), and then the code is generated into an ethernet model interface through MATLAB simulink software; meanwhile, a CAN M module of DSPACE is utilized to configure and simulate a model interface of the CAN/CANFD signal, and an Ethernet service model interface and a model of the CAN/CANFD signal are put into the same module to form a hybrid communication module; secondly, building a whole vehicle dynamics model, a controlled object model and other control logic by utilizing MATLAB simulink software according to the function specification; and finally, loading the automation environment model to an HIL simulation platform, configuring the HIL simulation platform to carry out CAN/CANFD signal channels and I/O channel interfaces through the configuration desk software of the DSPACE, and configuring an Ethernet signal channel by utilizing the control desk software of the DEPACE to form an HIL test system with test Ethernet SOME/IP service.
In summary, according to the hardware-in-loop HIL test system construction method provided by the embodiment of the invention, the constructed hardware is used for setting a hybrid communication module supporting various communication signals and interactions among the various communication signals in the loop HIL test system, the dynamic model module is used for communicating with the tested controller by using the hybrid communication module, sending a first test signal to the tested controller and receiving a feedback signal sent by the tested controller, so that high-performance HIL test can be realized.
It should be noted that the logic and/or steps represented in the flow diagrams or otherwise described herein may be considered a ordered listing of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present specification, the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. refer to an orientation or positional relationship based on that shown in the drawings, and do not indicate or imply that the apparatus or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and should not be construed as limiting the invention.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
In the description of the present specification, unless otherwise indicated, the terms "mounted," "connected," "secured," and the like are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the present invention, unless expressly stated or limited otherwise, a first feature "up" or "down" a second feature may be the first and second features in direct contact, or the first and second features in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (10)

1. A hardware-in-the-loop HIL test system, the system comprising:
the hybrid communication module comprises a plurality of model interfaces, a plurality of model interfaces correspond to a plurality of communication functions, the model interfaces are used for being connected with a tested controller, and the hybrid communication module is used for realizing transmission of a plurality of communication signals and interaction among the plurality of communication signals;
the dynamics model module is used for generating a first test signal and sending the first test signal to the tested controller through a model interface corresponding to the first test signal by the mixed communication module;
and the input module is used for receiving the feedback signal sent by the controlled controller through the model interface corresponding to the feedback signal of the mixed communication module and obtaining a test result according to the feedback signal, wherein the feedback signal is generated by the controlled controller according to the first test signal.
2. The hardware-in-the-loop HIL test system of claim 1, wherein a plurality of said model interfaces comprise ethernet model interfaces, CAN/CANFD model interfaces.
3. The hardware-in-the-loop HIL test system according to claim 1, wherein said input module is specifically configured to:
and when the feedback signal is received, performing format conversion on the feedback signal to obtain a test result.
4. The hardware-in-the-loop HIL test system according to claim 1, wherein an operation mode of the system includes a dynamics simulation mode and a manual setting mode, the dynamics model module operates to send the first test signal to the controller under test to test the controller under test when the system is in the dynamics simulation mode, and send a second test signal to the controller under test to test the controller under test when the system is in the manual setting mode, wherein the second test signal is a signal generated according to a manual setting instruction, the system further comprising:
the manual control module is connected with the tested controller and is used for working when the system is in the manual setting mode, obtaining the second test signal according to the manual setting instruction when the manual setting instruction is received, and sending the second test signal to the tested controller.
5. The hardware-in-the-loop HIL testing system according to claim 4, wherein said system further comprises:
and the model and manual switching module is connected with the dynamics model module and the manual control module and is used for switching the working modules in the dynamics model module and the manual control module.
6. The hardware-in-the-loop HIL test system of claim 1, wherein the system further comprises:
the power supply control module is used for setting a control signal of a low-voltage programmable power switch of the power supply equipment, a protection current of the power supply equipment, remote operation permission of the power supply equipment and a low-voltage power supply voltage value of the power supply equipment, wherein the power supply equipment is equipment for supplying power to the controlled controller.
7. The hardware-in-the-loop HIL test system according to claim 1, wherein said dynamics model module comprises:
the driver model submodule is used for generating a simulation signal to be tested, wherein the simulation signal to be tested comprises at least one of a signal simulating operation on vehicle-operable equipment and a signal simulating influence of external environment on a vehicle;
the vehicle dynamics model submodule is used for obtaining a vehicle action simulation signal according to the simulation signal to be tested;
the first output module is respectively connected with the vehicle dynamics model submodule and the hybrid communication module and is used for obtaining a first output signal according to the vehicle motion simulation signal;
the second output module is respectively connected with the first output module and the mixed communication module, and is used for generating a second output signal according to a test target and the first output signal and sending the second output signal to the tested controller through the mixed communication module;
wherein the first test signal comprises the first output signal and the second output signal.
8. The hardware-in-the-loop HIL testing system according to claim 7, wherein said system further comprises:
the output module is respectively connected with the dynamic model module and the mixed communication module and is used for sending the first test signal to the controlled controller through the mixed communication module.
9. The hardware-in-the-loop HIL testing system according to claim 7, wherein said input module is further configured to:
and obtaining the analog signal to be tested, and performing format conversion on the analog signal to be tested to obtain a test reference signal, wherein the test reference signal is the reference signal when the test result is obtained.
10. A method for building a hardware-in-the-loop HIL test system, the method comprising:
analyzing the Ethernet protocol to obtain the service used by the tested controller;
constructing an Ethernet model interface according to the service, configuring and simulating a model interface of a CAN/CANFD signal to obtain the CAN/CANFD model interface;
obtaining a hybrid communication module according to the Ethernet model interface and the CAN/CANFD model interface;
building a whole vehicle dynamics model and a controlled object model to obtain a dynamics model module;
and loading the dynamics model module to a hardware-in-loop HIL simulation platform, and carrying out interface configuration on the HIL simulation platform according to the mixed communication module to obtain the hardware-in-loop HIL test system.
CN202310194925.3A 2023-02-27 2023-02-27 Hardware-in-the-loop HIL test system and construction method thereof Pending CN116400664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310194925.3A CN116400664A (en) 2023-02-27 2023-02-27 Hardware-in-the-loop HIL test system and construction method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310194925.3A CN116400664A (en) 2023-02-27 2023-02-27 Hardware-in-the-loop HIL test system and construction method thereof

Publications (1)

Publication Number Publication Date
CN116400664A true CN116400664A (en) 2023-07-07

Family

ID=87008218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310194925.3A Pending CN116400664A (en) 2023-02-27 2023-02-27 Hardware-in-the-loop HIL test system and construction method thereof

Country Status (1)

Country Link
CN (1) CN116400664A (en)

Similar Documents

Publication Publication Date Title
CN107145140B (en) Automatic test system and test method for CAN interface of vehicle-mounted electronic control unit
CN107562038B (en) Automatic test system for vehicle-mounted controller
CN107505520B (en) Scene type intelligent automatic test platform and method
CN104076806B (en) A kind of electric control gear to automobile carries out the method and apparatus of automatic test
JP2012118043A (en) Automatic evaluation system for vehicle device using vehicle simulator
CN113589787B (en) Hardware-in-loop test method, test device, test system and readable storage medium
CN104483959A (en) Fault simulation and test system
CN110609491B (en) Semi-physical simulation accident identification method and system for whole electric vehicle controller
CN107943008B (en) Automated diagnosis test method based on VT system
CN110501998B (en) BMS hardware in-loop test system and test method
CN112697455A (en) Automatic real vehicle testing system
CN111025046B (en) Test system, method for controlling matrix switch and storage medium
CN103455024A (en) System and method for testing ECU
CN116400664A (en) Hardware-in-the-loop HIL test system and construction method thereof
CN115951596A (en) Real vehicle signal simulation method and vehicle signal interaction system
CN213581846U (en) Vehicle electric control element test system
CN113886274A (en) Stability testing method, device, equipment and storage medium for Internet of vehicles terminal
CN211403232U (en) Hardware-in-loop test system of vehicle control unit
CN112398703B (en) Communication function testing apparatus, method, system, and computer-readable medium
CN114690741A (en) Controller test system and method for vehicle, electronic device and readable storage medium
CN112445198A (en) Vehicle-mounted controller testing method, device and system
CN207556879U (en) A kind of steering column test platform based on Vector tools
CN115134280B (en) Fault testing system and method for vehicle-mounted Ethernet
CN111077470B (en) Power supply gear function testing system and method
CN117851248A (en) Test equipment and test method for vehicle-mounted terminal application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination