Hardware-in-loop test method and system
A test method and test system technology, applied in the direction of test/monitoring control system, transmission system, general control system, etc., can solve problems such as time-consuming and manpower-consuming, delayed test progress, and function errors, so as to improve test efficiency and improve Overall efficiency, the effect of ensuring integrity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] In this embodiment, a hardware-in-the-loop testing method is provided, and the flow chart is as follows figure 1 shown, including the following steps:
[0053]First, acquire several test signals and set switches for each test signal. The test signal here comes from the test system. For example, in the test system, the test signal comes from the virtual engine controller ECU, and the test signal is input into the running support environment RTI of the test system for testing. In this step, a switch is set for part or all of the signals from the engine controller ECU. The function of this switch is to turn off the signal. After the signal is turned off, it will not be able to be input into the running support environment RTI. However, However, the signal can be reassigned manually.
[0054] As other alternative implementation manners, the test signal for setting the switch here may be a CAN signal, an IO signal and any other signal that needs to be tested during the te...
Embodiment 2
[0059] On the basis of the foregoing embodiment 1, this embodiment provides a specific manner of acquiring several test signals and setting a switch for each test signal. The test signals selected here are selected according to the needs. For which signals you want to manually assign values, configure for which signals. In this embodiment, a configuration method for CAN signals and a configuration method for IO signals are provided. In other implementation manners, the CAN signal or the IO signal may be configured separately, or both may be configured simultaneously. Which signals are configured, which signals can be manually turned off and assigned later.
[0060] The process of configuring for CAN signals is as follows:
[0061] First, obtain the CAN protocol standard file, that is, the DBC file, which is the database file with the suffix DBC. The information in the DBC file includes the number of controllers in the CAN network, which controllers are there, which messages...
Embodiment 3
[0070] In this embodiment, a specific application example of the hardware-in-the-loop test method is provided. The test system is constructed by setting up an environment model. In the construction, an interface module needs to be set. The calls to automatically generate modules, which are then applied to the environment model.
[0071] In the interface module, the switch of the CAN signal and the switch of the IO signal can be automatically generated, the process is as follows figure 2 As shown, the automatic generation program writing includes the following steps:
[0072] 1) Implement dbc file parsing. Import the dbc file and extract the information in the DBC file, including the number of controllers in the CAN network, which controllers are there, which messages are there, which controllers each message belongs to, and which signals are in the messages. Use M language to write a program to extract dbc file information, find the length of dbc, filter useful information,...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com