Test method and system based on XCP Ethernet

The XCP Ethernet-based test system solves the problems of high upgrade costs and slow update speed of hardware-in-the-loop test systems, and achieves versatility and scalability to quickly respond to customer needs, supporting the testing of various controlled object models.

CN121764740AInactive Publication Date: 2026-03-31WUXI STAR CLOUD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511957304.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-23
Publication Date
2026-03-31
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing hardware-in-the-loop testing systems suffer from high upgrade costs, slow update speeds, and an inability to quickly respond to customer needs.

Method used

The test system based on XCP Ethernet includes a test module, a host computer module, and a module under test. The test module integrates the XCP protocol stack and realizes communication between the host computer and the processor chip through the Ethernet module. It supports any host computer software on the market that supports the XCP protocol. The model parameters can be modified by connecting the programmable chip and the internal system bus of the processor chip.

Benefits of technology

It reduces the development cost and cycle of host computer software, improves the versatility and update speed of the testing device, makes the functions easy to expand, and supports multiple controlled object models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121764740A_ABST
    Figure CN121764740A_ABST
Patent Text Reader

Abstract

The invention discloses a test method and system based on an XCP Ethernet, and belongs to the technical field of hardware-in-the-loop testing, the system comprises a test module, an upper computer module and a tested module, the test module and the tested module are in bidirectional electrical connection, the test module and the upper computer module are in bidirectional electrical connection, and the upper computer module is in bidirectional electrical connection with the tested module. The test module comprises a core board, a driving circuit, a processor chip and a programmable chip, the core board is bidirectionally and electrically connected with the driving circuit, the processor chip and the programmable chip are arranged on the core board, and the processor chip and the programmable chip can be bidirectionally connected through an internal system bus. The tested module comprises a controlled power supply module and a vehicle controller module. The XCP protocol stack is integrated in the test module, so that any upper computer software supporting the XCP protocol in the market can be communicated with the test device, on one hand, the development cost of the upper computer software is saved, the development period of the upper computer software is shortened, and on the other hand, the universality of the test device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of hardware-in-the-loop testing technology, and particularly relates to a testing method and system based on XCP Ethernet. Background Technology

[0002] Hardware-in-the-Loop (HIL) testing technology: A HIL system uses a real-time processor to run a simulation model to simulate the operating state of the controlled object. It connects to the ECU under test via I / O interfaces to perform comprehensive and systematic testing. Considering safety, feasibility, and reasonable cost, HIL testing has become a crucial part of the ECU development process. It reduces the number of real-vehicle road tests, shortens development time, reduces costs, improves ECU software quality, and reduces risks for automakers. FPGA technology: FPGA is a further development based on devices such as Programmable Array Logic (PAL), General Purpose Array Logic (GAL), and Erasable Programmable Logic Device (EPLD). It is a programmable logic chip capable of performing general-purpose functions; that is, it can be programmed to implement specific logic processing functions. FPGA emerged as a semi-custom circuit in the field of application-specific integrated circuits (ASICs), solving the shortcomings of custom circuits and overcoming the limited gate count of traditional programmable devices. FPGAs offer higher integration, stronger logic capabilities, and greater flexibility, and have become one of the preferred devices for designing digital circuits or systems. XCP Protocol: XCP stands for Universal Calibration Protocol. It is a new calibration protocol proposed by the ASAM (Association for Standardization of Automation and Measuring Systems) organization in 2003. It can be used for calibration on different communication buses. Here, X represents different transmission layers (CAN, Ethernet, FlexRay, SCI, SPI, USB).

[0003] A typical Hardware-in-the-Loop (HIL) test system consists of a hardware platform, experiment management software, and real-time model software. The hardware platform includes a series of signal boards (such as analog sensor boards, processor boards, and driver control boards). The experiment management software includes software for configuring real-time hardware, automating tests, and managing various digital instruments and automated tests. The real-time software model includes physical object models (such as engines, motors, transmissions, and complete vehicles) and sensor models (such as sensor simulation models). In this technical solution, the hardware and software are usually bundled together, and the communication protocols are often proprietary to the vendors. Driver configuration for the hardware platform, test case writing, and automated test execution are all vendor-specific solutions, especially the data management and collaboration software for automated controller testing, which varies significantly. Therefore, vendors often need to collaborate on customized development to meet customer needs. Existing hardware-in-the-loop testing systems often require dedicated host computer software for hardware signal boards. The software and hardware are forcibly bound together, and any change in functionality requires modification of the host computer software or even the hardware. This greatly increases the development cost and cycle of the system, resulting in high upgrade costs, slow update speed, and an inability to quickly respond to customer needs. Summary of the Invention

[0004] The purpose of this invention is to address the problems of high upgrade costs, slow update speeds, and inability to quickly respond to customer needs by proposing a testing method and system based on XCP Ethernet.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: A test system based on XCP Ethernet includes a test module, a host computer module, and a module under test (DUT). The test module and the DUT are bidirectionally electrically connected, and the test module and the host computer module are also bidirectionally electrically connected. The test module includes a core board, a driver circuit, a processor chip, and a programmable chip. The core board and the driver circuit are bidirectionally electrically connected. The core board is equipped with the processor chip and the programmable chip, which are bidirectionally connected via an internal system bus. The DUT includes a controlled power supply module and a vehicle controller module, which are bidirectionally electrically connected.

[0006] As a further description of the above technical solution: The test module also includes an RS485 / 422 bus interface module, a CAN bus interface module, and various analog and digital I / O interface modules.

[0007] As a further description of the above technical solution: The drive circuit is bidirectionally connected to the controlled power supply module via an RS485 / 422 bus interface module. The drive circuit is also bidirectionally connected via a CAN bus interface module and various analog and digital I / O interface modules, so that the controlled power supply is controlled by the test module and used to power the vehicle controller module.

[0008] As a further description of the above technical solution: The test module also includes an Ethernet module, a USB module, and a UART module. The drive circuit is bidirectionally electrically connected to the host computer module through the Ethernet module, USB module, and UART module, respectively.

[0009] As a further description of the above technical solution: The Ethernet module enables communication between the host computer module and the test module, the USB module is used for software upgrades of the test module, and the UART module is a reserved interface for debugging the test module.

[0010] A testing method for a test system based on XCP Ethernet specifically includes the following steps: S1. The application software runs in the processor chip, and the application software integrates the XCP protocol stack. S2. The controlled object model runs in the programmable chip, and the logic and parameters of the model are stored in the corresponding registers; S3. The registers of the programmable chip are mapped into the system memory of the processor chip; S4. Applications running on the processor chip can indirectly access these registers; S5. Programming can integrate the XCP protocol stack into the application of the processor chip; S6. The host computer can communicate with the processor chip via Ethernet using the XCP protocol to modify the model parameters.

[0011] As a further description of the above technical solution: In S1, the application software integrates the XCP protocol stack.

[0012] As a further description of the above technical solution: In S2, the controlled object model includes an engine, motor, gearbox, or battery, etc.

[0013] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: 1. The test module of this invention integrates the XCP protocol stack, so any host computer software that supports the XCP protocol on the market can communicate with this test device, which saves the development cost and cycle of host computer software and improves the versatility of the test device.

[0014] 2. The test module of this invention is developed based on the standard XCP protocol and is configured with a programmable logic chip, which has the advantages of high hardware versatility, easy function expansion and fast update speed. Attached Figure Description

[0015] Figure 1 This is a schematic diagram of the system modules of a test method and system based on XCP Ethernet proposed in this invention. Detailed Implementation

[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0017] Please see Figure 1 This invention provides a technical solution: a test system based on XCP Ethernet, comprising a test module, a host computer module, and a module under test (DUT). The test module and the DUT are bidirectionally electrically connected, and the test module and the host computer module are also bidirectionally electrically connected. The test module includes a core board, a driver circuit, a processor chip, and a programmable chip. The core board and the driver circuit are bidirectionally electrically connected. The core board is equipped with a processor chip and a programmable chip, which are bidirectionally connected via an internal system bus. The DUT includes a controlled power supply module and a vehicle controller module, which are bidirectionally electrically connected.

[0018] The test module also includes an RS485 / 422 bus interface module, a CAN bus interface module, and various analog and digital I / O interface modules. The drive circuit is bidirectionally connected to the controlled power supply module through the RS485 / 422 bus interface module and bidirectionally connected to the CAN bus interface module and various analog and digital I / O interface modules, so that the controlled power supply is controlled by the test module to supply power to the vehicle controller module.

[0019] The test module also includes an Ethernet module, a USB module, and a UART module. The drive circuit is bidirectionally electrically connected to the host computer module through the Ethernet module, USB module, and UART module, respectively. The Ethernet module enables communication between the host computer module and the test module, the USB module is used for software upgrades of the test module, and the UART module is a reserved interface for debugging the test module.

[0020] A testing method for a test system based on XCP Ethernet specifically includes the following steps: S1. The application software runs in the processor chip, and the application software integrates the XCP protocol stack. S2. A controlled object model runs in the programmable chip. The logic and parameters of the model are stored in the corresponding registers. The controlled object model includes engines, motors, gearboxes or batteries, etc. S3. The registers of the programmable chip are mapped into the system memory of the processor chip; S4. Applications running on the processor chip can indirectly access these registers; S5. Programming can integrate the XCP protocol stack into the application of the processor chip; S6. The host computer can communicate with the processor chip via Ethernet using the XCP protocol to modify the model parameters.

[0021] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. An XCP Ethernet-based test system comprising a test module, a host computer module and a module under test, the test module being in bidirectional electrical connection with the module under test, and the test module being in bidirectional electrical connection with the host computer module, characterized in that, The test module comprises a core board, a driving circuit, a processor chip and a programmable chip, the core board is bidirectionally electrically connected with the driving circuit, the processor chip and the programmable chip are arranged on the core board, the processor chip and the programmable chip are bidirectionally connected through an internal system bus, and the tested module comprises a controlled power module and a vehicle controller module.

2. The XCP Ethernet based test system of claim 1, wherein, The test module further comprises an RS485 / 422 bus interface module, a CAN bus interface module and various analog-digital IO interface modules.

3. The XCP Ethernet based test system of claim 2, wherein, The driving circuit is bidirectionally connected with the controlled power module through the RS485 / 422 bus interface module, and the driving circuit is bidirectionally connected with the vehicle controller module through the CAN bus interface module and various analog-digital IO interface modules, so that the controlled power is controlled by the test module and is used for supplying power to the vehicle controller module.

4. The XCP Ethernet based test system of claim 1, wherein, The test module further comprises an Ethernet module, a USB module and a UART module, and the driving circuit is bidirectionally electrically connected with an upper computer module through the Ethernet module, the USB module and the UART module.

5. The XCP Ethernet based test system of claim 4, wherein, The Ethernet module completes communication between the upper computer module and the test module, the USB module is used for software upgrading of the test module, and the UART module is a reserved interface for debugging of the test module.

6. The test method of the XCP Ethernet-based test system according to any one of claims 1-5, wherein, Specifically, the following steps are included: S1, an application software is run in the processor chip; S2, a controlled object model is run in the programmable chip, and logic and parameters of the model are stored in corresponding registers; S3, the registers of the programmable chip are mapped to system memory of the processor chip; S4, the application program run in the processor chip can indirectly access the registers; S5, programming can realize integration of a protocol stack of XCP into the application program of the processor chip; S6, an upper computer can perform data communication of XCP protocol with the processor chip through Ethernet, so as to achieve the purpose of modifying model parameters.

7. The test method of the XCP Ethernet based test system according to claim 1, wherein, In S1, the application software integrates a protocol stack of XCP.

8. The test method of the XCP Ethernet based test system according to claim 1, wherein, In S2, the controlled object model comprises an engine, a motor, a gearbox or a battery, etc.