Testing system

Through the pooling of industrial computers and I/O units, combined with the cluster control module, the problem of a single industrial computer being difficult to meet complex test requirements is solved, efficient utilization of resources and low latency of data transmission are achieved, and test efficiency and accuracy are improved. sex.

WO2024183093A1PCT designated stage expired Publication Date: 2024-09-12KUNYI ELECTRONICS TECHNOLOGY (SHANGHAI) CO LTD

Patent Information

Application Number
PCT/CN2023/082188
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-06
Filing Date
2023-03-17
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In the existing hardware-in-the-loop testing system, a single industrial computer is difficult to meet complex and diverse testing requirements, resulting in resource bottlenecks and low testing efficiency.

Method used

Through the pooling of industrial computers and I/O units, multiple industrial computers and I/O units are used to realize the combination of industrial computer pools and I/O pools, and cluster control modules are used for data transmission to ensure that the industrial computers and the devices under test are The data interaction between them is accurate and efficient.

Benefits of technology

Effectively cover complex test requirements, solve resource bottlenecks, improve test efficiency and accuracy, and ensure low latency and high efficiency of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023082188_12092024_PF_FP_ABST
    Figure CN2023082188_12092024_PF_FP_ABST
Patent Text Reader

Abstract

A testing system, which relates to the technical field of testing. The testing system comprises: an industrial-personal-computer pool, at least one I / O control module, and an I / O pool, wherein the industrial-personal-computer pool comprises a plurality of industrial personal computers; the I / O pool comprises at least one I / O unit; the I / O control module is used for transmitting target data between K industrial personal computers in the industrial-personal-computer pool and L I / O units in the I / O pool, K and L each being any integer greater than or equal to 1; and the I / O unit is used for transmitting, between the I / O control module and a piece under test, the target data or data which is obtained on the basis of the target data. The industrial personal computers in the industrial-personal-computer pool and the I / O unit in the I / O pool can be scaled out according to requirements, such that the full utilization of resources, such as the industrial personal computers and the I / O unit, can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Test system Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a testing system. Background Art

[0002] In automobiles, new energy vehicles and other vehicles, the electronic and electrical architecture of the entire vehicle is becoming more and more complex. The number of electronic control units (ECUs), data bandwidth, and the processing power of CPUs and GPUs have all changed by an order of magnitude compared to before.

[0003] Hardware-in-the-Loop (HIL) testing can verify the functions of various controllers in the vehicle, such as domain controllers, ECUs, and CPUs, in advance, thereby shortening the controller development cycle.

[0004] In existing HIL test systems, an industrial computer (i.e., a real-time parameter control, or RTPC) and I / O cards are used to execute test tasks and complete the testing of the device under test. Typically, there is only one industrial computer, and all I / O cards need to communicate with it. However, as testing requirements become increasingly diverse and complex, a single industrial computer can no longer meet these requirements. Based on the aforementioned technical issues, the applicant has proposed the technical solution of this application.

[0005] Summary of the Invention

[0006] The purpose of this application is to provide a test system that uses multiple industrial computers through pooling of industrial computers and I / O units. Compared with the method of using only a single industrial computer, this application can effectively cover more diverse and complex testing requirements. On this basis, this application also realizes the interaction of target data based on the data transmission relationship between the industrial computer and the I / O unit through the control module. When using multiple industrial computers, it ensures the effective and accurate interaction of data between the industrial computer and the tested device.

[0007] To achieve the above-mentioned objectives, the present application provides a test system, comprising: an industrial computer pool, at least one I / O control module and an I / O pool; the industrial computer pool includes multiple industrial computers, and the I / O pool includes at least one I / O unit; the I / O control module is used to transmit target data between K industrial computers in the industrial computer pool and L I / O units in the I / O pool; K and L are both arbitrary integers greater than or equal to 1; the I / O unit is used to transmit the target data or data obtained based on the target data between the I / O control module and the device under test. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] FIG1 is a block diagram of a test system according to a first embodiment of the present application, wherein the test system includes a cluster control module;

[0009] FIG2 is a block diagram of a test system according to a first embodiment of the present application, wherein any one of the industrial computers is configured to include a cluster control module;

[0010] 3 is a schematic diagram of a test system according to a second embodiment of the present application, which is a HIL system. There are multiple I / O control modules, and each I / O control module is connected to a corresponding I / O unit in a cascade manner.

[0011] 4 is a schematic diagram of a test system according to a second embodiment of the present application, which is a HIL system. There are multiple I / O control modules, and each I / O control module is directly connected to a corresponding I / O unit.

[0012] FIG5 is a block diagram of a test system according to a third embodiment of the present application;

[0013] 6 is a schematic diagram of a star connection between an industrial computer and an I / O control module according to a third embodiment of the present application;

[0014] 7 is a schematic diagram of a test system according to a third embodiment of the present application, wherein the memory operation unit includes: at least one shared memory unit and a memory control unit;

[0015] FIG8 is a schematic diagram of a star connection between an industrial computer and an I / O control module according to a third embodiment of the present application, wherein the memory control unit includes: at least one first signal transceiver, an instruction encoding and decoding logic module, an access arbitration module, and a storage controller, and the shared memory unit includes: an interface controller and two second signal transceivers;

[0016] 9 is a schematic diagram of a test system according to a third embodiment of the present application, which is a HIL system. There are multiple I / O control modules, and each I / O control module is connected to a corresponding I / O unit in a cascade manner.

[0017] 10 is a schematic diagram of a test system according to a third embodiment of the present application, which is a HIL system. There are multiple I / O control modules, and each I / O control module is directly connected to a corresponding I / O unit.

[0018] FIG11 is a block diagram of a test system according to a fourth embodiment of the present application;

[0019] FIG12 is a block diagram of a test system according to a fourth embodiment of the present application, where each distributed memory unit includes a target memory and a memory synchronization unit;

[0020] 13 is a schematic diagram of three industrial computers and I / O control modules cascaded through four distributed memory units according to a fourth embodiment of the present application;

[0021] FIG14 is a schematic diagram of data synchronization between multiple cascaded distributed memory units in FIG13;

[0022] FIG15 is a block diagram of a distributed memory unit according to a fourth embodiment of the present application;

[0023] 16 is a schematic diagram of a test system according to a fourth embodiment of the present application, which is a HIL system. There are multiple I / O control modules, and each I / O control module is connected to a corresponding I / O unit in a cascade manner.

[0024] FIG17 is a schematic diagram of a test system according to the fourth embodiment of the present application, which is a HIL system. There are multiple I / O control modules, and each I / O control module is directly connected to corresponding I / O units. Specific embodiments

[0025] The following will describe in detail the various embodiments of the present application in conjunction with the accompanying drawings to provide a clearer understanding of the purpose, features, and advantages of the present application. It should be understood that the embodiments shown in the accompanying drawings are not intended to limit the scope of the present application, but are only intended to illustrate the essential spirit of the technical solution of the present application.

[0026] In the following description, for the purpose of illustrating the various disclosed embodiments, certain specific details are set forth in order to provide a thorough understanding of the various disclosed embodiments. However, those skilled in the relevant art will recognize that the embodiments may be practiced without one or more of these specific details. In other cases, well-known devices, structures, and techniques associated with this application may not be shown or described in detail to avoid unnecessarily obscuring the description of the embodiments.

[0027] Unless the context requires otherwise, throughout the specification and claims, the word "comprise" and variations such as "include" and "have" should be construed in an open, inclusive sense, that is, should be interpreted to mean "including, but not limited to."

[0028] Reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any manner in one or more embodiments.

[0029] As used in this specification and the appended claims, the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. It should be noted that the term "or" is generally employed in its sense including "or / and" unless the context clearly dictates otherwise.

[0030] In the following description, in order to clearly demonstrate the structure and working method of this application, many directional words will be used for description, but words such as "front", "back", "left", "right", "outside", "inside", "outward", "inward", "up", and "down" should be understood as convenient terms and should not be understood as restrictive terms.

[0031] The first embodiment of the present application relates to a test system, which is a HIL hardware-in-the-loop test system, which can be used to test ECUs, domain controllers and other DUTs in vehicles (including but not limited to new energy vehicles, fuel vehicles, etc.). Common DUTs for vehicles include vehicle controllers, battery management system controllers, electric drive controllers, body controllers, chassis suspension controllers, assisted driving controllers, etc. Test items include but are not limited to operation stability tests and control algorithm tests in various scenarios.

[0032] Please refer to Figures 1 and 2. The test system includes: an industrial computer pool 1, an I / O control module 2, and an I / O pool 3. Among them, the industrial computer pool 1 and the I / O pool 3 can be set in the same cabinet or in different cabinets. Specifically, the industrial computer pool 1 can include multiple industrial computers 11, the number of which can be fixed or expandable. The industrial computers 11 in the industrial computer pool 1 can be set in the same cabinet or in different cabinets. The I / O pool 3 can include at least one I / O unit 31, the number of which can be fixed or expandable. The I / O units 31 in the I / O pool 3 can be set in the same cabinet or in different cabinets.

[0033] In one example, the industrial computer pool 1 includes a configurable number of at least one industrial computer 11 (Real-time Parameter Controls, RTPC), that is, the number of industrial computers 11 in the industrial computer pool 1 is expandable and can be configured according to demand. For example, an industrial computer cabinet for setting up the industrial computers 1 has a set number of interfaces, and the industrial computers 11 are detachably installed and connected to the interfaces in the industrial computer cabinet, so that the number of industrial computers 11 in the industrial computer cabinet can be configured according to demand. The industrial computers 11 connected to the industrial computer cabinet interfaces form the industrial computer pool 1. The industrial computers 11 in the industrial computer pool 1 are communicatively connected to each other, and each industrial computer 11 includes one or more CPUs.

[0034] As automotive functions become increasingly complex and data bandwidths increase (cameras, lidar), CPU processing power has exceeded 50,000 DMIPS, and AI computing power has even reached 1,000 TOPS. Traditional, isolated, single industrial computers can no longer meet this testing requirement. Only through clustering, by pooling more computing power, CPU resources, and bus bandwidth, can the simulation resource bottleneck be resolved. The use of an industrial computer pool in the above solution can effectively resolve the resource bottleneck problem, and the solution in this manual can be applied to this problem, while ensuring efficient and effective test operation.

[0035] In one example, the I / O pool 3 includes a configurable number of at least one I / O unit 31, that is, the number of I / O units 31 in the I / O pool 3 is expandable, and the number can be configured according to demand, site, cost, etc. For example, there are a set number of interfaces in the I / O cabinet used to set the I / O unit 31, and the I / O unit 31 is detachably installed and connected to the interface in the I / O cabinet, so that the number of I / O units 31 in the I / O cabinet can be configured according to demand, site, cost, etc. The I / O units 31 connected to the I / O cabinet interface form the I / O pool 3; in one example, the I / O unit 31 is an I / O board, which can be directly plugged into the interface in the I / O cabinet.

[0036] The I / O control module 2 is communicatively connected to the industrial computer 11 in the industrial computer pool 1, and the I / O control module 2 is also communicatively connected to each I / O unit 31 in the I / O pool 3. For example, the control module 2 and each I / O unit 31 are connected to the same EtherCAT network, wherein the I / O unit 31 is connected to the control module 2 in a cascade manner and communicates based on EtherCAT. The use of EtherCAT can basically meet the low latency requirement. In addition, the I / O unit 31 can also be plugged into the I / O control module 2, for example, the I / O unit 31 is connected to the I / O control module 2 via the data bus (such as PCIe bus) of the I / O control module 2. Among them, the I / O control module 2 can be a computer including an I / O controller.

[0037] The number of I / O control modules 2 can be one, and the I / O control module 2 can be directly connected to all I / O units 31, or cascaded with all I / O units 31. The number of I / O control modules 2 can also be multiple, and each I / O control module 2 is connected to the corresponding multiple I / O units 31. Each I / O control module 2 can also be connected to the same Ethernet network as the cluster control module, and then interact with the cluster control module (for example, feedback data transmission relationship).

[0038] In this embodiment, each I / O unit 31 is connected to a corresponding device under test 4, and the number of devices under test 4 can be one or more. Specifically, each I / O unit 31 can be directly connected to a corresponding device under test 4, that is, the device under test 4 is directly connected to a port of each I / O unit 31 via a connector to achieve signal transmission. Different I / O units 31 can be connected to different pins of the device under test 4 to transmit different information. If cluster testing is performed on multiple devices under test 4 simultaneously, each I / O unit 31 is connected to the same pin of each device under test 4 to transmit the same information.

[0039] In one example, the test system further includes a switching matrix 5 connected between the I / O units 31 and the DUT 4, such that each I / O unit 31 is indirectly connected to the corresponding DUT 4 via the switching matrix 5. The switching matrix 5 includes at least one first port and at least one second port; each first port is connected to each I / O unit 31, and each second port is connected to each DUT 4. Switchable connection channels are provided within the switching matrix 5, connecting the first and second ports on either side of the switching matrix 5. Thus, each I / O unit 31 can be connected to the corresponding DUT 4 by configuring the connection channels within the switching matrix 5. Different connection channels within the switching matrix 5 can be used to transmit different signals, and an Ethernet module can also be provided within the switching matrix 5 to enable digital signal exchange. As can be seen, in order to achieve corresponding communication between the industrial computer 11, the I / O units 31, and the DUT 4, and to transmit target data, both the switching matrix and the data transmission relationship of the I / O control module 2 must be configured, provided that the switching matrix is ​​provided. The data transmission required for the test is then achieved between the industrial computer 11 and the device under test 4, for example, data transmission between the port of the simulation model in the industrial computer 11 and the port of the device under test 4. In this manner, the connection method for the device under test 4 is more flexible and free, and only the switching matrix 5 needs to be configured according to the actual connection situation. For example, after configuring the I / O control module 2, if the switching matrix is ​​not set up in the test system, it is necessary to determine which I / O units 31 the device under test 4 should be connected to and how to connect them based on the configuration results. If the switching matrix 5 is set up in the test system, the device under test 4 can be connected to the switching matrix 5 more freely, and then only the switching matrix 5 needs to be configured to achieve the data transmission required for the test.

[0040] The industrial computer 11 can be understood as part or all of the real-time simulator RTPC in the HIL system.

[0041] The I / O unit 31 can be understood as an input / output unit. Specifically, the I / O unit 31 satisfies the following requirements: it can input and / or output data relative to the device under test 4, and / or it can input and / or output data relative to the industrial computer 11;

[0042] The data A input and / or output by the I / O unit 31 to the device under test 4 and the data B input and / or output by the I / O unit to the industrial computer 11 may be related or unrelated. Specifically, data A and data B may be data with the same content but in different formats. For example, a digital signal with a certain content may be received from the industrial computer 11, and an analog signal with the same content may be sent to the device under test 4. Alternatively, for example, a signal before a fault is injected may be received from the industrial computer 11, and a signal after the fault is injected by the I / O unit 31 may be sent to the device under test 4.

[0043] Data A and data B may also be data with the same content and format;

[0044] Data A and data B can also be data with different contents. For example, data A and data B are respectively the trigger signal and the Sign1 signal that trigger the I / O unit 31 to generate a Sign1 signal. For another example, the I / O unit 31 needs to obtain a certain conditional signal from the industrial computer 11 in order to simulate the Sing2 signal that needs to be sent to the device under test 4. At this time, the conditional signal and the Sign2 signal are respectively data A and data B.

[0045] In addition, the I / O unit 31 may refer to a circuit, a circuit board, or a device including a circuit board and other assemblies.

[0046] In one example, the I / O unit 31 can interact with the industrial computer 11 via the control module 4, and can also interact with the device under test 4 (e.g., a vehicle controller) directly or via the switching matrix 5. The interaction can be unidirectional or bidirectional.

[0047] The I / O unit 31 may only implement input and / or output functions. In some examples, it may also process transmitted signals during the input and output process, such as performing signal conversion, fault simulation, information emulation, signal generation, on / off control, etc. Therefore, any method that can implement signal exchange between the industrial computer 11 and the device under test 4, regardless of whether other functions are integrated, can be considered an implementation of the I / O unit 31.

[0048] The I / O unit 31 can be an I / O board, for example, one that supports at least one of the following functions: digital signal input, analog signal input, digital signal output, analog signal output, PWM signal input, PWM signal output, high-side power output, and low-side power output. This can further enable high-speed signal acquisition and output, and flexible configuration of board resources based on demand. This technology achieves industry-leading board accuracy and sampling frequency.

[0049] The I / O boards include at least one of the following: AD PWM-IN board, DAC board, FIU board, PWM-OUT board, RELAY-IO board, RC board, PSI5&DSI3&SENT board, multi-bus board (Flexray / CANFD / LIN), Eth (vehicle-mounted Ethernet) board, etc.

[0050] The I / O board may also be, for example, at least one of the following dedicated boards: a current output board, a thermocouple board, a battery simulator, a temperature simulator, a motor board, and an IO_HUB board.

[0051] In this embodiment, the I / O control module 2 is used to transmit target data between the K industrial computers 11 in the industrial computer pool 1 and the L I / O units 31 in the I / O pool 3; K and L are both arbitrary integers greater than or equal to 1.

[0052] Any data that can be transmitted between the industrial computer 11 and the I / O unit 31 can be understood as target data.

[0053] In a specific example, corresponding to the above I / O board, the target data may include at least one of the following: the downlink information generated by the industrial computer 11 to be sent to the device under test 4; and the uplink information from the device under test 4 to be sent to the industrial computer.

[0054] Furthermore, based on the diversity of I / O board functions, the target data may also include at least one of the following: downlink information generated by the industrial computer 11 that needs to be sent to the I / O unit 31 for processing; and uplink information generated by the I / O unit 31 that needs to be sent to the industrial computer 11.

[0055] Furthermore, the I / O control module 2 is used to transmit target data between the K industrial computers 11 in the industrial computer pool 1 and the L I / O units 31 in the I / O pool 3 based on the data transmission relationship between the K industrial computers 11 in the industrial computer pool 1 and the L I / O units 31 in the I / O pool 3; K and L are both arbitrary integers greater than or equal to 1.

[0056] The data transmission relationship can be understood as: at least indicating a relationship between one or more industrial computers 11 and one or more I / O units 31 that allows data transmission, that is, at least determining the range of industrial computers 11 and I / O units 31 that allow data transmission.

[0057] In one example, the data transmission relationship can further determine to which I / O unit 31 the data transmitted from the industrial computer 11 should be synchronized, and to which industrial computer 11 the data transmitted from the I / O unit 31 should be synchronized, that is, the mapping relationship between the industrial computer 11 and the I / O unit 31 is defined in detail. Furthermore, the mapping relationship between the port in the industrial computer 11 and the port of the I / O unit 31 can also be defined in detail; then, the I / O control module 2 can transmit the transmitted data based on this mapping relationship; further, when the mapping relationship is described, it can also indicate the industrial computer 11 and I / O unit 31 that are allowed to be transmitted.

[0058] In another example, the data transmission relationship is primarily used to define the range of industrial computers 11 and I / O units 31 permitted to transmit data. As for which I / O unit 31, device under test 4, or port (I / O unit 31 or port of device under test 4) the industrial computer 11 is to transmit data to during each data transmission, and which industrial computer 11 or port within the industrial computer 11 is to transmit data from the I / O unit 31, these can be determined by other means. For example, a corresponding identifier can be carried during the transmission process, and the I / O control module 2 can determine whether the data transmission relationship is satisfied based on the carried identifier. If so, the transmission proceeds.

[0059] Furthermore, if there are multiple I / O control modules 2, and different control modules 2 are connected to different I / O units 31, then in one example, the data transmission relationship obtained and used by the I / O control module 2 may be a partial data transmission relationship, i.e., a secondary data transmission relationship corresponding to the I / O unit 31 to which the I / O control module 2 is connected. Furthermore, the secondary data transmission relationship can be understood as being used to at least determine the range of the industrial computer 11 and the I / O unit 31 to which data transmission is permitted. In a further example, the mapped ports can be determined in the industrial computer 22 and the I / O unit 31 to which the I / O control module 2 is connected.

[0060] The data transmission relationships received by different I / O control modules 2 can be partial data transmission relationships, that is, secondary data transmission relationships, and they are different secondary data transmission relationships. Of course, all data transmission relationships can also be sent to all I / O control modules 2, that is: the data transmission relationships received by different I / O control modules 2 can also be the same.

[0061] The ports involved may refer to hardware ports, or software ports, port addresses, etc. (eg, an output port or an input port of a model running in the industrial computer 11).

[0062] The I / O control module 2 may obtain part or all of the data transmission relationship, or other information used to determine the data transmission relationship, from the cluster control module. This process may be obtained via Ethernet, for example.

[0063] In addition, at the same time, the I / O units 31 connected to a single I / O control module 2 may all be used for the same test task, or may be partially used for one test task and partially used for other test tasks. The I / O control module 2 can obtain the required data transmission relationship separately or together.

[0064] Among them, the downlink information generated by the industrial computer 11 that needs to be sent to the device under test 4 includes but is not limited to: test instructions that need to be run in the device under test 4, test signals generated by the simulation model of the industrial computer 11 running the test, or test signals generated by the simulation board connected to the industrial computer 11 (the test signals are related to the device under test 4 and the test scenario, such as signals of the vehicle's current environmental scenario, in-vehicle environmental signals, simulated traffic flow, pedestrian flow image signals, etc.); the reporting information sent by the device under test 4 to the industrial computer 11 includes but is not limited to: feedback signals generated by the device under test 4 based on the downlink information sent by the industrial computer 11, and the device under test 4's own operating status information during the test process (such as clock signals, power supply voltage, temperature signals, load rates, etc.).

[0065] The I / O unit 31 is used to transmit target data between the I / O control module 2 and the device under test 4 , and may also be used to process the target data.

[0066] Specifically, the K industrial computers 11 in the industrial computer pool 1 and the L I / O units 31 in the I / O pool 3 are used to test the device under test 4, and the L I / O units 31 are connected to the device under test 4; for example, the data transmission relationship defines the flow direction of the target data between the industrial computer 11 and the I / O unit 31, that is, after the report information from the device under test 4 or the I / O unit to be sent to the industrial computer 11 is transmitted to the I / O unit 31, each I / O unit 31 sends the report information to the I / O control module 2, and the data The transmission relationship determines that the I / O control module 2 will send the reported information from each I / O unit 31 to the industrial computer 11 (or its port); and after the downlink information generated by the industrial computer 11 and required to be sent to the device under test 4 or the I / O unit 31 is transmitted to the I / O control module 2, the data transmission relationship determines that the I / O control module 2 will send the downlink information from each industrial computer 11 to the device under test 4 or the I / O unit 31, wherein the device under test 4 can receive different information through different pins.

[0067] When testing the device under test 4, each industrial computer 11 can perform a complete test on the device under test 4 separately, or K industrial computers 11 can cooperate to implement the test of the device under test 4. Each test part can be implemented by one or more industrial computers 11. For example, different simulation models are running in each industrial computer 11. Each industrial computer 11 can receive reporting information from the device under test 4 or the I / O unit 31; and / or, test signals generated by other industrial computers 11 when running corresponding simulation models, and generate test signals to be sent to other industrial computers 11 and / or downlink information to be sent to the device under test 4 or the I / O unit 31.

[0068] In an example, the computers where each industrial computer 11 is located and the computers where the I / O control module 2 is located can be connected via Ethernet communication. A network protocol implemented by software is set in the industrial computer 11 and the I / O control module 2. The computer sending data encapsulates the data into the network protocol through software and transmits it to other computers. The software of the computer receiving data receives the network message, extracts the data from the network message and reuses it. In this way, the I / O control module 2 can exchange and share target data between K industrial computers 11 and L I / O units 31 based on Ethernet, which has the advantages of low cost and easy implementation.

[0069] In this embodiment, a cluster control module in the test system can determine the data transmission relationship between the K industrial computers 11 in the industrial computer pool 1 and the L I / O units 31 in the I / O pool 3 that are executing the current first test task. There can be one or more cluster control modules, and each test task can test one or more DUTs of the same type. The first DUT tested in the first test task is DUT 4 in Figure 1 , and there can be one or more first DUTs.

[0070] Specifically, for the first test task currently to be executed, the cluster control module can first allocate K industrial computers 11 from industrial computer pool 1 for executing the first test task, and allocate L I / O units 31 from I / O pool 3 for executing the first test task, thereby obtaining K industrial computers 11 and L I / O units 31 for executing the first test task, and then establish a data transmission relationship between the K industrial computers 11 and the L I / O units 31. If the industrial computers 11 in industrial computer pool 1 and / or the I / O units 31 in I / O pool 3 are insufficient in resources, horizontal expansion can be performed accordingly.

[0071] After determining the data transmission relationship between K industrial computers 11 and L I / O units 31, the cluster control module can send this data transmission relationship to each of the K industrial computers 11. When each industrial computer 11 needs to send downlink information to the first device under test, it designates the I / O unit 31 to receive each downlink information based on this data transmission relationship. The I / O control module 2 then transmits each downlink information to the first device under test via the designated I / O unit 31. Furthermore, when the first device under test needs to send reporting information to the industrial computer 11, the I / O control module 2 receives the reporting information via the L I / O units 31. The I / O units 31 can then mark the I / O unit 31 that sent each reporting information. As a result, each industrial computer 11 receives the reporting information from the designated I / O unit 31 based on the aforementioned data transmission relationship.

[0072] or,

[0073] After determining the data transmission relationship between K industrial computers 11 and L I / O units 31, the cluster control module can feed this data transmission relationship back to the I / O control module 2 (this will be used as an example for subsequent explanation, but is not limited to this example). When each industrial computer 11 needs to send downlink information to the first device under test, it directly sends the downlink information to the I / O control module 2. Based on this data transmission relationship, the I / O control module 2 sends each downlink information to the first device under test through the designated I / O unit 31. Similarly, when the first device under test needs to send reporting information to the industrial computer 11, the I / O control module 2 receives the reporting information through the L I / O units 31. Based on the aforementioned data transmission relationship, the I / O control module 2 sends the reporting information from each I / O unit 31 to the designated industrial computer 11.

[0074] In addition, the L divided I / O units 31 are configured to communicate with the first device under test. For example, after the L I / O units 31 are divided, the L I / O units 31 are directly connected to each first device under test, or a switching matrix 5 is connected between the I / O units 31 and the first device under test, and the cluster control module configures the switching matrix 5 to form a connection channel between a first port connected to the L I / O units and a second port connected to the first device under test, thereby establishing a communication connection between the L I / O units 31 and the first device under test, so that the switching matrix 5 can transmit target data between the L I / O units 31 and the first device under test through the configured connection channel.

[0075] The cluster control module is further configured to send task information for the first test task to the K industrial computers 11, so that the industrial computers 11 can generate information to be sent to the first device under test based on the task information for the first test task. The task information for the first test task includes the simulation model, test parameters, and test cases required for the test.

[0076] In this embodiment, the cluster control module can be set in the test system in the following two ways:

[0077] Method 1: Referring to Figure 1, the test system further includes: a cluster control module 6; the cluster control module 6 is respectively connected to each industrial computer 11. The cluster control module 6 can be a computer including a cluster controller, which is respectively connected to each industrial computer 11 via wired or wireless communication.

[0078] In addition, the cluster control module 6 can be connected to the host computer 7 via wired or wireless communication. The host computer 7 can generate a first test task based on the user's configuration and distribute the task information of the generated first test task to the corresponding K industrial computers 11.

[0079] In one example, the cluster control module 6, the industrial computer 11 and the I / O control module 2 are connected via Ethernet communication, that is, the computer where the cluster control module 6 is located, each industrial computer 11 and the computer where the I / O control module 2 is located are connected via Ethernet communication, which can meet the communication needs of the three parties. For example, the cluster control module 6 can send the above-mentioned data transmission relationship to the industrial computer 11 and / or the I / O control module 2 via Ethernet.

[0080] Method 2: Referring to Figure 2 , any one of the industrial computers 11 included in the test system is configured as a cluster control module. The industrial computer 11 configured as a cluster control module can be connected to the host computer 7. The host computer 7 can generate a first test task based on the user's configuration and send the generated first test task to the industrial computer 11 configured as the cluster control module. The industrial computer 11 then distributes the task information of the first test task to the corresponding K industrial computers 11. The module configured as a cluster control module can be used solely to implement the functions of a cluster controller, but is not limited to this. It can also function as a cluster controller and test the device under test simultaneously.

[0081] It should be noted that only one host computer 7 is schematically shown in FIG1 and FIG2 , and there may be multiple host computers 7 .

[0082] In this embodiment, the scalability of industrial computers and I / O units is achieved through pooling of industrial computers and I / O units. As a result, the industrial computers in the industrial computer pool and the I / O units in the I / O pool can be horizontally expanded according to demand, which can ensure the full utilization of resources such as industrial computers and I / O units and avoid waste of test resources.

[0083] The second embodiment of the present application relates to a test system. Compared with the first embodiment, the main improvement of this embodiment is that: this embodiment can divide the K industrial computers 11 and L I / O units 31 required to execute the first test task based on the test requirements of the first test task.

[0084] Cluster control module 6 is also configured to determine test requirement information for the first test task. This test requirement information is used to indicate at least the number of CPUs and I / O units 31 required to execute the first test task. The number information may be a numerical value or a range of numbers. Furthermore, the test requirement information may also include the memory and storage space required for the test. Specifically, the selection of CPUs and I / O units 31 also requires consideration of whether their available memory and storage space meet the test requirements.

[0085] In a specific example, the test requirement information can also be used to characterize information such as the quantity and / or type of required memory, GPU, bus interface, sensor interface, simulation board, etc.

[0086] In another specific example, the test requirement information can also be used to characterize various information such as various parameters of the CPU, GPU, memory, etc., model, brand, attributes, etc.

[0087] The cluster control module 6 determines the test requirement information of the first test task in the following ways, including but not limited to:

[0088] In one example, the cluster control module 6 is used to determine the number of CPUs and I / O units required to execute the first test task based on the task information of the first test task, thereby obtaining test requirement information; for example, the resource consumption of executing the first test task is calculated based on the task information of the first test task, thereby determining the test requirement information of the first test task; or, based on the task information of the first test task, the test history data is queried, and the test requirement information of the previously executed identical first test task is retrieved from the test history data as the test requirement information of the first test task. The task information includes at least one of the following or any combination thereof: a test case, a simulation model of the test, and test parameters.

[0089] In one example, the cluster control module 6 is configured to obtain the number N of CPUs and the number L of I / O units required to execute the first test task from the received setting parameters of the first test task, wherein the setting parameters include information on the number of CPUs and the number of I / O units required to execute the first test task. For example, the cluster control module 6 is connected to the host computer 7, and the user can configure the setting parameters for each first test task in the host computer 7, and send the setting parameters for configuring the first test task to the cluster control module 6. Thus, the cluster control module 6 can obtain the test requirement information of the first test task from the setting parameters, that is, the setting parameters can be specified by the user.

[0090] In one example, the cluster control module 6 performs a pre-test based on the task information of the received first test task, and determines the test requirement information of the first test task based on the test situation of the pre-test process. For example, one or more simulation models for the test are selected from the task information of the first test task, the pre-test is to test the simulation model, an industrial computer 11 is selected from the industrial computer pool 1 to run the simulation model, and an I / O unit 31 is selected from the I / O pool 3 to perform a pre-test together with the selected industrial computer 11, the test information in the pre-test process is obtained, and the test requirement information of the first test task is determined based on the test information, and the test information includes any one or any combination of the following: test time, operating status of the industrial computer 11, operating status of the I / O unit 31, etc., wherein the operating status includes but is not limited to: CPU occupancy rate, memory occupancy rate, etc. Alternatively, the pre-test is to use all or a specified number of industrial computers 11 that are currently in an idle state and all or a specified number of I / O units 31 that are currently in an idle state to execute the first test task within a certain period of time, then obtain test information during the test process, and determine the test requirement information of the first test task based on the test information.

[0091] The cluster control module 6 is configured to select N CPUs from the currently idle CPUs and L I / O units 31 from the currently idle I / O units 31 based on the test requirement information, where N is any integer greater than or equal to 1. The idle state refers to a state where no first test task is currently being executed or pending. Furthermore, the cluster control module 6 also determines that the newly expanded industrial computer 11 in the industrial computer pool 1 and the newly expanded I / O unit 31 in the I / O pool 3 are both in an idle state.

[0092] Taking the selection of N CPUs from the CPUs currently in the idle state as an example, the cluster control module 6 can read the number information of CPUs required to execute the first test task from the test requirement information of the first test task. If the number information is a quantity value, then the CPUs of the quantity value can be directly selected from the CPUs in the idle state, or N CPUs greater than the quantity value can be selected from the CPUs in the idle state; if the quantity information is a quantity range, the number of CPUs in the idle state can be obtained first. If the number of CPUs in the idle state is greater than or equal to the lower limit value of the quantity range value, then a quantity value can be selected within the quantity range, and the selected quantity value is less than or equal to the number of CPUs in the idle state, and then the CPUs of the quantity value can be selected from the CPUs in the idle state; for example, on the premise of ensuring that the quantity value selected from the quantity range is less than or equal to the number of CPUs in the idle state, the largest quantity value is preferentially selected, thereby enabling the selection of more CPUs to execute the first test task, providing a certain degree of redundant processing capability.

[0093] Each of the K industrial computers 11 includes at least one of the N CPUs. In one example, when selecting N CPUs from the currently idle CPUs, a CPU may be preferentially selected from one industrial computer 11. If no idle CPUs exist in the single industrial computer 11, and N CPUs are still not selected, a CPU may be selected from the next industrial computer 11 until N CPUs are selected.

[0094] The specific method of selecting L I / O units 31 from the I / O units 31 that are currently in an idle state is similar to the aforementioned method of selecting the CPU, and will not be repeated here.

[0095] In addition, if the test requirement information can also include the memory and storage space required for the test, then when selecting the CPU and I / O unit 31, you can also refer to the memory and storage space required for the test, that is, you need to ensure that the selected CPU and I / O unit 31 meet the requirements such as the memory and storage space.

[0096] After determining the test requirement information of the first test task, the cluster control module 6 is equivalent to determining the test container for executing the first test task. The test container represents the number information of CPUs required to execute the first test task, as well as the number information of I / O units 31, and can also represent other contents of the test requirement information mentioned above.

[0097] After selecting N CPUs and L I / O units 31 based on the above process, at least one first target industrial computer and L I / O units 31 corresponding to the test container can be determined. The first target industrial computer is the industrial computer 11 containing the selected CPU, and there are K of them. The test container is used to execute the above-mentioned first test task to test the first device under test, so that the first device under test interacts with the N CPUs through the L I / O units 31. Subsequently, the cluster control module 6 can determine the data transmission relationship between the selected CPUs and the L I / O units 31 in the K first target industrial computers in the test container and feedback this data transmission relationship to the I / O control module 2.

[0098] The cluster control module 6 is also used to use N CPUs and L I / O units 31 to execute the first test task to test the first device under test, and after the first test task is completed, release the N CPUs and L I / O units 31 that execute the first test task, so that the released CPUs and I / O units 31 re-enter the idle state.

[0099] Specifically, the cluster control module 6 uses the N CPUs and L I / O units 31 selected from the K first target industrial computers corresponding to the test container to execute the first test task to test the first device under test. During the test, each industrial computer 11 uses the selected CPUs contained therein to execute the corresponding test portion. The CPU used for testing in each first target industrial computer can generate downlink information to be sent to the first device under test and send the downlink information to the I / O control module 2. The I / O control module 2, based on the data transmission relationship, sends the downlink information from each CPU to the first device under test through the designated I / O unit 31. During the test, the first device under test can generate reporting information to be sent to the first target industrial computer. The I / O control module 2 receives the reporting information through the L I / O units 31. Based on the above data transmission relationship, the I / O control module 2 sends the reporting information from each I / O unit 31 to the CPU of the designated first target industrial computer.

[0100] When the execution of the first test task using the test container is completed, for example, after reaching the set test time or satisfying the set number of cycles, the cluster control module 6 releases the N CPUs and L I / O units 31 in the K first target industrial computers corresponding to the test container that executes the first test task, and the released CPUs and I / O units 31 all re-enter the idle state.

[0101] In this embodiment, the cluster control module 6 is also used to: before the first test task is completed, based on the test requirement information of another second test task, use J CPUs among the CPUs of multiple industrial computers 11 and M I / O units 31 among the multiple I / O units 31 to execute the second test task to test another second device under test, so that the second device under test interacts with the J CPUs through the M I / O units 31; J and M are both arbitrary integers greater than or equal to 1; wherein the J CPUs and the N CPUs are different CPUs among the CPUs of multiple industrial computers, and the L I / O units 31 and the M I / O units 31 are different I / O units among the multiple I / O units 31.

[0102] and / or:

[0103] After releasing the N CPUs and L I / O units 31 that execute the first test task, based on the test requirement information of another third test task, Z CPUs are selected from the CPUs that are currently in an idle state, and T I / O units 31 are selected from the I / O units 31 that are currently in an idle state, and the Z CPUs and T I / O units 31 are used to execute the third test task to test the third device under test, so that the third device under test interacts with the Z CPUs through the T I / O units 31; Z and T are both arbitrary integers greater than or equal to 1; wherein the Z CPUs and the N CPUs have overlapping CPUs, and / or: the L I / O units 31 and the T I / O units 31 have overlapping I / O units 31.

[0104] The second device under test tested by the second test task and the third device under test tested by the third test task are both the device under test 4 in FIG. 1 .

[0105] Specifically, there are multiple test tasks to be executed, and the multiple test tasks can test the same type of test device 4 or different types of test devices 4. The multiple test tasks are arranged in the task queue in sequence. The cluster control module 6 configures the corresponding test containers in sequence based on the order of the test tasks to be executed in the task queue. After the cluster control module 6 determines the N CPUs and L I / O units 31 corresponding to the test container corresponding to the current first test task based on the above process, it can immediately use the N CPUs and L I / O units 31 to execute the first test task to test the first test device.

[0106] In one example, if during the execution of the first test task, there are still test tasks to be executed in the task queue, another test task in the task queue, namely the second test task, is obtained. If the CPU currently in an idle state and the I / O unit 31 currently in an idle state meet the test requirements of the second test task, the J CPUs corresponding to the test container of the second test task and the M I / O units 31 in the multiple I / O units 31 are determined based on the test requirement information of the second test task, and the J CPUs and the M I / O units 31 are used to execute the second test task to test another second device under test, so that the second device under test interacts with the J CPUs through the M I / O units 31; J and M are both arbitrary integers greater than or equal to 1. The J CPUs and the N CPUs are different CPUs from the multiple industrial computers 11, and the L I / O units 31 and the M I / O units 31 are different I / O units 31 from the multiple I / O units 31. This means that during the execution of a first test task, CPUs and I / O units 31 that did not participate in the first test task can be selected to execute another second test task, thereby enabling the parallel execution of multiple test tasks. The multiple CPUs contained in a single industrial computer 11 can be simultaneously divided into multiple test containers for the parallel execution of different test tasks.

[0107] The second test task is a test task different from the first test task, and the second device under test is a device under test different from the first test task. The first and second test tasks can be for the same user or different users. The process for determining the CPU and I / O unit 31 and performing the test for the second test task can be understood by referring to the relevant descriptions of other embodiments in this specification and will not be repeated here.

[0108] It can be seen that during the execution of the first test task, other test tasks can also be executed in parallel, effectively ensuring the efficient execution of the test.

[0109] In another example, after the first test task is completed and the N CPUs and L I / O units executing the first test task are released, there are still test tasks to be executed in the task queue, and another test task in the task queue, namely the third test task, is obtained. Based on the test requirement information of the other third test task, Z CPUs are selected from the CPUs that are currently in an idle state, and T I / O units 31 are selected from the I / O units 31 that are currently in an idle state. The Z CPUs and T I / O units 31 are used to execute the third test task to test the third device under test, so that the third device under test interacts with the Z CPUs through the T I / O units 31; Z and T are both arbitrary integers greater than or equal to 1; wherein the Z CPUs and the N CPUs have overlapping CPUs, and / or: the L I / O units 31 and the T I / O units have overlapping I / O units 31; that is, the released CPUs and I / O units 31 can be used to execute other test tasks.

[0110] The third test task is a test task distinct from the first test task. The third device under test can be the first device under test or a device under test distinct from the first. The first and third test tasks can be for the same user or different users. The process for determining the CPU, I / O unit, and performing the test for the third test task can be understood by referring to the relevant descriptions of other embodiments in this specification and will not be repeated here.

[0111] It can be seen that after the first test task is completed, the CPU, I / O unit 31, etc. used therein can still be used to execute other test tasks, effectively ensuring full and efficient utilization of resources.

[0112] The cluster control module 6 may also determine the data transmission relationship between the selected CPU and the I / O unit in the industrial computer corresponding to each test container, and feed back the data transmission relationship of each test container to the I / O control module 2 .

[0113] As can be seen from the above, after each test container configuration for the current test task is completed, the cluster control module 6 can immediately use the selected CPU and I / O unit 31 in the industrial computer 11 corresponding to the test container to execute the current test task to test the device under test 4. If the currently idle CPU and the currently idle I / O unit 31 can meet the test requirements of another test task in the task queue, the above process is repeated, and the CPU and I / O unit 31 are selected to execute the test task whose test requirements are met. If the currently idle CPU and the currently idle I / O unit 31 cannot meet the test requirements of the remaining test tasks in the task queue, after any test task in the execution state is completed and the corresponding CPU and I / O unit 31 are released, the CPU and I / O unit 31 are again selected to execute the test task whose test requirements are met, until there are no more test tasks to be executed in the task queue. That is, after the CPU and I / O unit 31 are released, they can be quickly used to execute another test task, thereby ensuring that the CPU and I / O unit 31 can be fully and efficiently utilized.

[0114] It should be noted that, in each embodiment, the number of I / O control modules 2 is mainly used as an example, but it is not limited to this. The number of I / O control modules 2 can also be multiple, and each I / O control module 2 corresponds to and is communicatively connected to one or more of the I / O units 31, that is, each I / O control module 2 corresponds to one or more I / O units 31, each I / O unit 31 corresponds to only one I / O control module 2, and each I / O control module 2 is connected to the corresponding I / O unit 31. Each I / O control module 2 and the corresponding I / O unit 31 can be connected in a cascade manner, as shown in FIG3 , taking each I / O control module 2 corresponding to three I / O units 31 as an example; or each I / O control module 2 can be directly connected to each corresponding I / O unit 31, as shown in FIG4 , taking each I / O control module 2 corresponding to multiple I / O units 31 as an example.

[0115] The I / O control module 2 is used to transmit target data between the second target industrial computer among the K industrial computers 11 and the target I / O unit among the L I / O units 31, based on the secondary data transmission relationship between the second target industrial computer among the K industrial computers 11 and the target I / O unit 31; wherein, the target I / O unit is the I / O unit corresponding to the I / O control module 2, and the second target industrial computer is the industrial computer 11 with which data transmission exists.

[0116] For the current first test task, if the L I / O units 31 selected by the cluster control module 6 correspond to multiple I / O control modules 2, that is, during the process of executing the first test task to test the first device under test, the multiple I / O control modules 2 complete the data exchange between the N CPUs and the L I / O units 31. At this time, each I / O control module 2 has a secondary data transmission relationship corresponding to itself. The specific methods for determining the secondary data transmission relationship corresponding to each I / O control module 2 are, for example (but not limited to), the following two:

[0117] First, the cluster control module 6 presets the correspondence between the I / O control modules 2 and the I / O units 31. After selecting N CPUs and L I / O units 31 and determining the data transmission relationship between the K first target industrial computers including the selected N CPUs and the L I / O units, that is, determining the data transmission relationship between the K first target industrial computers corresponding to the test container and the L I / O units 31, the cluster control module 6 determines that the selected L I / O units 31 correspond to multiple I / O control modules 2 based on the correspondence between the I / O control modules 2 and the I / O units 31. Taking any one of the multiple I / O control modules 2 as an example, for all target I / O units (which may be one or more) corresponding to the I / O control module 2 in the L I / O units 31, based on the data transmission relationship between the target industrial computer to which the N CPUs belong and the L I / O units 31, at least one target CPU that has data transmission with the target I / O unit is selected from the N CPUs, and each second target industrial computer contains at least one target CPU. Subsequently, a secondary data transmission relationship is established between the target industrial computer to which the target CPU belongs and the target I / O unit. This secondary data transmission relationship is the data transmission relationship corresponding to the I / O control module 2. Based on the above process, the cluster control module 6 can determine the secondary data transmission relationship corresponding to each I / O control module 2 in the multiple I / O control modules 2, and send each secondary data transmission relationship to the corresponding I / O control module 2. Thus, during the test process, each I / O control module 2 can perform data transmission between the target CPU contained in the second target industrial computer and the corresponding target I / O unit based on the corresponding secondary data transmission relationship.

[0118] Second, after selecting K first target industrial computers each containing N CPUs and L I / O units 31 and determining the data transmission relationship between the K first target industrial computers and the L I / O units 31 (i.e., determining the data transmission relationship between the K first target industrial computers corresponding to the test container and the L I / O units 31), the cluster control module 6 determines that the selected L I / O units 31 correspond to multiple I / O control modules 2 based on the corresponding relationship between the I / O control modules 2 and the I / O units 31. The cluster control module 6 then sends the determined data transmission relationship to each of the multiple I / O control modules 2. Each I / O control module 2 presets the identification information of the I / O unit 31 corresponding to itself, that is, each I / O control module 2 is set with the target I / O unit of interest; taking any I / O control module 2 as an example, after receiving the data transmission relationship sent by the cluster control module 6, the I / O control module 2 determines the target I / O unit of interest from the L I / O units 31, and based on the data transmission relationship between the K first target industrial computers and the L I / O units 31, selects at least one target CPU from the N CPUs that has data transmission with the target I / O unit; then establishes a secondary data transmission relationship between the second target industrial computer including at least one target CPU and the target I / O unit, and the secondary data transmission relationship is the data transmission relationship corresponding to the I / O control module 2. Based on the above process, each I / O control module 2 can determine its own corresponding secondary data transmission relationship based on the data transmission relationship sent by the cluster control module 6. Therefore, during the test process, each I / O control module 2 can perform data transmission between the target CPU included in the second target industrial computer and the corresponding target I / O unit based on the corresponding secondary data transmission relationship.

[0119] In this embodiment, based on the test requirement information of the test task, the CPU and I / O units of the industrial computer that executes the test task are configured, and after the test, the corresponding CPU and I / O units are determined to be in an idle state to avoid occupying them and affecting the progress of other test tasks. In this way, on the basis of completing the test task, the resources of the industrial computer and I / O units in the test system can be fully utilized, thereby achieving flexible configuration and improving test efficiency.

[0120] Furthermore, before, during, or after determining the test requirement information, the host computer may also configure at least one of the following information as reference information: the number of input and output ports generated by the simulation model executed by the industrial computer 11 in the first test task; the ports of the types of I / O units 31 required; and the connection relationship between the I / O units 31 and the device under test 4. Furthermore, the data transmission relationship may be determined based on this reference information and the quantity indicated by the test requirement information.

[0121] The third embodiment of the present application relates to a test system. Compared with the first embodiment, the main improvement of this embodiment is that: this embodiment provides a star connection method between the industrial computer 11 and the I / O control module 2, which is used to synchronize the target data of each industrial computer 11 to the I / O control module 2, and synchronize the target data received by the I / O control module 2 from the device under test 4 to each industrial computer 11, wherein the industrial computer 11 referred to is the K industrial computers 11 that perform the test task, and the target data is the target data generated by the K industrial computers 11 or the device under test 4 during the test process of performing the test task.

[0122] Please refer to Figures 5 and 6. The test system also includes: a shared memory unit 8. Each industrial computer 11 is connected to the shared memory unit 8 via a PCIe bus. The shared memory unit 8 includes: a shared memory 81 and a memory operation unit 82. The shared memory 81 can be a single DDR memory or a storage pool including multiple DDR memories. Some or all of the DDR memories can be set in one cabinet. The DDR memory can also be cross-cabinet, for example, distributed in different cabinets.

[0123] Each industrial computer 11 is directly or indirectly connected to the memory operation unit 82 . The memory operation unit 82 is in communication with the I / O control module 2 . The memory operation unit 82 is also connected to the shared memory 81 .

[0124] The memory operation unit 82 is configured to, upon receiving an operation instruction for operating the shared memory 81 from any designated device in the industrial computer 11 or the I / O control module 2, execute the received operation instruction to write at least a portion of the target data to the shared memory 81; or alternatively, read at least a portion of the target data from the shared memory 81 and feed the read target data back to the designated device. Specifically, the memory operation unit 82 is capable of exchanging target data corresponding to the operation instruction with the shared memory 81. The target data corresponds to the operation instruction, specifically, the data to be written or read by the operation instruction.

[0125] In this embodiment, each industrial computer 11 and each I / O control module 2 is connected to the shared memory unit 8 , thereby establishing a star connection between each industrial computer 11 and each I / O control module 2 through the shared memory unit 8 .

[0126] During the test process, the memory operation unit 82 receives an operation instruction from any designated device in the industrial computer 11 and the I / O control module 2. The operation instruction is used to write target data to the shared memory 81 or read at least part of the target data in the shared memory 81. The memory operation unit 82 executes the operation instruction sent by the designated device. If the operation instruction is used to write at least part of the target data to the shared memory 81, the operation instruction contains the target data to be written. The memory operation unit 82 executes the operation instruction and writes the target data contained in the operation instruction to the shared memory 81; if the operation instruction is used to read at least part of the target data in the shared memory 81, the operation instruction contains identification information of the target data to be read. The identification information represents the industrial computer 11 or I / O unit 31 from which the target data originates. The memory operation unit 82 executes the operation instruction, reads the target data corresponding to the identification information in the operation instruction, and feeds the target data back to the designated device that sent the operation instruction.

[0127] Among them, the memory operation unit 82 can receive multiple operation instructions, determine the execution order of the multiple operation instructions received, and execute the operation instructions one by one based on the execution order; among them, the execution order can be the time order in which the memory operation unit 82 receives the operation instructions, or the execution order of the operation instructions can be set according to the set rules (for example, read first and then write, or write and then read, etc.).

[0128] In one embodiment, the memory operation unit 82 may be implemented using FPGA.

[0129] In another embodiment, the memory operation unit 82 can also be implemented using a memory expansion controller MXC. The memory expansion controller MXC is a memory controller that supports the Compute Express Link (CXL) protocol. The memory expansion controller MXC supports and complies with the JEDEC standards for DDR4 and DDR5, conforms to the CXL2.0 and CXL3.0 specifications, and supports PCIE5.0 transmission speeds. The memory expansion controller MXC can achieve high-bandwidth, low-latency communication interconnection between the industrial computer 11, the I / O control module 2, and the CXL device, allowing the industrial computer 11 and the I / O control module 2 to achieve higher data sharing performance through shared memory. Specifically, when using the memory expansion controller MXC to implement the memory operation unit 82, the memory expansion controller MXC can be customized based on the star-connected data sharing method between each industrial computer 11 and the I / O control module 2 in this embodiment to better facilitate data sharing.

[0130] Specifically, the memory operation unit 82 includes a CXL submodule and a memory connection submodule. The CXL submodule is provided with an interconnected MXC controller and a CXL controller; the memory connection submodule is provided with a memory DDR4 / 5 memory controller and a DDR4 / 5 slot; the CXL controller is connected to the industrial computer 11 and the I / O control module 2 via a PCIE interface; the CXL controller is also connected to the shared memory 81 via the memory connection submodule; it should be noted that the memory operation unit 82 also includes: GPIO interface, JTAG interface, clock / reset interface, SPI interface and other peripheral circuits, which will not be repeated here.

[0131] In another example, referring to FIG7 , the memory operation unit 82 includes at least one memory access unit 821 and a memory control unit 822. The industrial computers 11 correspond one-to-one with the memory access units 821 and are communicatively connected thereto. Each memory access unit 821 is connected to the memory control unit 822, i.e., each industrial computer 11 is connected to the memory control unit 822 via a corresponding memory access unit 821. The memory control unit 822 is also communicatively connected to the I / O control module 2, and the memory control unit 822 is also connected to the shared memory 81. In one example, the I / O control module 2 corresponds to and is communicatively connected to one memory access unit 821, and this memory access unit 821 is also connected to the memory control unit 822.

[0132] Each IPC 11 is connected to a corresponding memory access unit 821 via a PCIe bus. Specifically, one end of the memory access unit 821 is plugged into the corresponding IPC 11 via PCIe, and the other end of the memory access unit 821 is connected to a memory control unit 822 via a high-speed serial bus. The memory access unit 821 is connected to each IPC 11 in the IPC pool 1. The memory access unit 821 and the memory control unit 822 are disposed in the IPC cabinet where the IPC pool 1 is located. The I / O control module 2 can be connected to the corresponding memory access unit 821 via a PCIe bus.

[0133] In this embodiment, taking the test system including four industrial computers 11 and three I / O units 31 as an example, the three I / O units 31 are cascaded in sequence, and the I / O control module 2 is connected to one of the I / O units 31 .

[0134] The memory control unit 822 is configured to receive an operation instruction sent by a designated device through the memory access unit 821 and execute the received operation instruction. That is, the designated device can send the operation instruction to the memory control unit 822 through the corresponding memory access unit 821, and the memory control unit 822 executes the received operation instruction to write at least part of the target data to the shared memory 81; or read at least part of the target data from the shared memory 81 and feed the read target data back to the designated device. The memory control unit 822 can receive multiple operation instructions, determine the execution order of the multiple received operation instructions, and execute the operation instructions one by one based on the execution order. The execution order can be the time order in which the memory control unit 822 receives the operation instructions, or can be set according to a set rule (such as read first and then write, or write then read, etc.).

[0135] In this embodiment, each industrial computer 11 or I / O control module 2 maps the target data to be shared to an address space in the shared memory 81 through the PCIe memory mapping technology. The software on the industrial computer 11 and the I / O control module 2 can read data and instructions from the shared memory 81 by accessing local memory data, thereby enabling each industrial computer 11 and the I / O control module 2 to read and write access to the same memory data, and realizing the sharing of target data between the industrial computer 11 and the I / O control module 2.

[0136] In this embodiment, the memory access unit 821 is used as a standard PCIe device, which can convert the operation instructions of any specified device in the future industrial computer 11 and the I / O control module 2 into high-speed serial signals, and transmit the high-speed serial signals representing the operation instructions to the memory control unit 822 through the high-speed serial bus. The memory control unit 822 executes the operation instructions to perform read and write operations on the target data of the shared memory 81.

[0137] In one example, referring to FIG8 , the memory control unit 822 includes: at least one first signal transceiver 8221, and an instruction encoding and decoding logic module 8222, an access arbitration module 8223, and a storage controller 8224, which are communicatively connected in sequence. The at least one first signal transceiver 8221, the instruction encoding and decoding logic module 8222, the access arbitration module 8223, and the storage controller 8224 can be implemented based on an FPGA.

[0138] The first signal transceivers 8221 correspond to the memory access units 821 one by one and are in communication connection with each other. Each first signal transceiver 8221 is also connected to the instruction encoding and decoding logic module 8222 , and the storage controller 8224 is also connected to the shared memory 81 .

[0139] Each memory access unit 821 includes: an interface controller 8211 and two second signal transceivers 8212, one second signal transceiver 8212 is connected between the interface controller 8211 and the industrial computer 11 or I / O control module 2 corresponding to the memory access unit 821, and the other second signal transceiver 8212 is connected between the interface controller 8211 and the memory control unit 822.

[0140] The industrial computer 11 and each device in the I / O control module 2 are connected to a second signal transceiver 8212 of the corresponding memory access unit 821 , and another second signal transceiver 8212 of each memory access unit 821 is connected to the corresponding first signal transceiver 8221 .

[0141] In this embodiment, the second signal transceiver 8212 in the memory access unit 821 and / or the first signal transceiver 8221 in the memory control unit 822 may be a serializer / deserializer (SERDES).

[0142] The interface controller 8211 in each memory access unit 821 is connected to a corresponding device. The interface controller 8211 is configured to receive an operation instruction from the corresponding device via the second signal transceiver 8212 and transmit a high-speed serial signal representing the operation instruction to the memory control unit 822. Specifically, each memory access unit 821 receives an operation instruction from the connected device, converts the operation instruction into a high-speed serial signal, and then transmits the high-speed serial signal representing the operation instruction to the instruction encoding and decoding logic module 8222 of the memory control unit 822 via the first signal transceiver 8221 connected to the second signal transceiver 8212 of the memory access unit 821.

[0143] The instruction encoding and decoding logic module 8222 is configured to decode the signals transmitted by the designated device and received by each first signal transceiver 8221 to obtain an operation instruction, and then send the operation instruction to the access arbitration module 8223. Specifically, upon receiving the high-speed serial signal transmitted by each first signal transceiver 8221, the instruction encoding and decoding logic module 8222 decodes the high-speed serial signal to obtain the operation instruction from the designated device, and then sends the decoded operation instruction to the access arbitration module 8223.

[0144] In one example, the instruction encoding and decoding logic module 8222 is provided with at least one decoding channel, and the first signal transceivers 8221 are in one-to-one correspondence and connected to the decoding channel. The instruction encoding and decoding logic module 8222 is configured to decode the signals received from the at least one first signal transceiver 8221 in parallel through the at least one decoding channel. That is, the instruction encoding and decoding logic module 8222 is provided with a corresponding decoding channel for each first signal transceiver 8221, and the signal received from each first signal transceiver 8221 is decoded through the corresponding decoding channel. In this way, the signals transmitted from the at least one first signal transceiver 8221 to the instruction encoding and decoding logic module 8222 can be decoded in parallel, and the obtained operation instructions can be sent to the access arbitration module 8223.

[0145] In another example, the instruction encoding and decoding logic module 8222 is provided with a decoding channel, and each first signal transceiver 8221 is respectively connected to the decoding channel. The decoding channel is also connected to the access arbitration module 8223. The instruction encoding and decoding logic module 8222 is used to decode the signals received from each first signal transceiver 8221 through the decoding channel. That is, the instruction encoding and decoding logic module 8222 is provided with only one decoding channel. All signals received by the first signal transceivers 8221 are decoded through the decoding channel, and the obtained operation instructions are sent to the access arbitration module 8223. For example, the decoding channel decodes the signals in the order in which they were sent to the instruction encoding and decoding logic module 8222.

[0146] The access arbitration module 8223 is configured to send received operation instructions to the storage controller 8224. Specifically, upon receiving operation instructions sent by the instruction encoding and decoding logic module 8222, the access arbitration module 8223 sends each operation instruction to the storage controller 8224. For example, the access arbitration module 8223 queues the received operation instructions in the order of receipt time or any other arbitrary order, and sequentially sends the operation instructions in the queue to the storage controller 8224. For another example, the access arbitration module 8223 may also execute some or all of the operation instructions simultaneously. For another example, the access arbitration module 8223 may determine the priority of each operation instruction based on other preset logic, and then execute each operation instruction based on the priority to operate the shared memory 81. The access arbitration module 8223 may also adjust the execution order of the operation instructions, the number of operation instructions to be executed simultaneously, and so on, based on the execution efficiency of the operation instructions and its own load.

[0147] The storage controller 8224 is used to execute the received operation instruction to write at least part of the target data into the shared memory 81; or, read at least part of the target data from the shared memory 81 and feed back the read target data to the designated device.

[0148] In this embodiment, a star connection is adopted between the industrial computer and the I / O control module. The industrial computer and the I / O control module can synchronize the target data that needs to be shared to the shared memory 81 of the shared memory unit 8, thereby realizing the read and write operations of multiple devices (including the industrial computer and the I / O control module) on the same physical memory data, ensuring data consistency between multiple devices, and having the advantages of high sharing efficiency, good accuracy and low latency.

[0149] It should be noted that this embodiment can also be applied to scenarios where there are multiple I / O control modules 2, wherein each I / O control module 2 and the corresponding I / O unit 31 can be connected in a cascade manner, as shown in Figure 9, taking the example of two I / O control modules 2 and each I / O control module 2 corresponding to three I / O units 31; or each I / O control module 2 is directly connected to the corresponding I / O units 31, as shown in Figure 10, taking the example of two I / O control modules 2 and each I / O control module 2 corresponding to multiple I / O units 31.

[0150] The fourth embodiment of the present application relates to a test system. Compared with the first embodiment, the main improvement of this embodiment is that: this embodiment provides a cascade connection method between the industrial computer 11 and the I / O control module 2, which is used to synchronize the target data of each industrial computer 11 to the I / O control module 2, and synchronize the target data received by the I / O control module 2 from the device under test 4 to each industrial computer 11, where the industrial computers 11 referred to are K industrial computers 11 that perform the test task, and the target data can be the target data generated by the K industrial computers 11 or the device under test 4 during the test process of executing the test task, but is not limited to this.

[0151] 11 , the test system further includes: multiple distributed memory units 9. The industrial computer 11 corresponds to and is connected to each of the distributed memory units 9. The I / O control module 2 corresponds to and is connected to one of the distributed memory units 9. The multiple distributed memory units 9 are cascaded in sequence.

[0152] Thus, a cascade connection is achieved between the industrial computers 11 and the I / O control modules 2 through the cascaded multiple distributed memory units 9. The distributed memory units 9 can be plugged into the corresponding industrial computers 11 or I / O control modules 2 via the PCIe bus. The distributed memory units 9 are connected to each other via a high-speed serial bus. The distributed memory units 9 connected to each industrial computer 11 can be directly plugged into the corresponding industrial computer 11 in the industrial computer pool 1.

[0153] It should be noted that this embodiment uses the I / O control module 2 as the last level of the cascade, that is, the I / O control module 2 is connected to the last level of distributed memory unit 9 in the multiple distributed memory units 9 of the cascade for illustration, but it is not limited to the order, and the I / O control module 2 can also be any level of the cascade, and this embodiment does not impose any restrictions on this.

[0154] Please refer to Figure 12, each distributed memory unit 9 includes a target memory 91 and a memory synchronization unit 92; the industrial computer 11 is connected to the memory synchronization unit 92 in the corresponding distributed memory unit 9, and the I / O control module 2 is connected to the memory synchronization unit 92 in the corresponding distributed memory unit 9.

[0155] The target memory 91 , built-in or external devices, chips, circuits, devices containing devices, chips, circuits, etc. can all be used as examples of the target memory 91 .

[0156] Furthermore, the device (e.g., the industrial computer 11 or the I / O control module 2) may have only one type of memory, namely, the target memory 91, connected externally or internally. Alternatively, the device may have multiple types of memory, of which the target memory 91 may be one. Furthermore, the target memory 91 may also be understood as a memory used to share data between devices (particularly between the industrial computer 11 and the I / O control module 2).

[0157] The speed of interaction between target memory 91 and the device's CPU (e.g., data writing and reading speeds) is higher than that of traditional communication networks such as Ethernet. This can be achieved using at least one of a high-speed serial bus and optical fiber. Furthermore, unlike traditional communication networks such as Ethernet, this provides a high-speed data sharing concept. The device's CPU can directly access target memory 91 as if it were local memory, effectively improving synchronization efficiency. Testing has shown that data synchronization bandwidth in specific embodiments can reach 10 Gbps.

[0158] The target memory 91 can be a single memory (eg, DDR) or a cluster of multiple memories.

[0159] The target data transmitted between the I / O unit 31 and the industrial computer 11 is transmitted based on the operation result of the memory synchronization unit 92 on the target memory 91, and all the data in the target memory 91 are kept synchronized.

[0160] In this embodiment, the data synchronization mode after the cascade connection between at least one industrial computer 11 and the I / O control module 2 can be, for example (but not limited to), the following two modes:

[0161] Method 1: When multiple cascaded distributed memory units 9 are connected in a closed loop, the distributed memory unit 9 that can generate and issue an operation request can be understood as the first distributed memory unit 9. The first distributed memory unit 9 is directly connected to the last distributed memory unit 9. The operation request transmitted by the first distributed memory unit 9 is directly transmitted to the first distributed memory unit 9 by the last distributed memory unit 9 after completing the first transmission process; the second transmission process is the process in which the operation request returns to the first distributed memory unit 9 and is then transmitted from the first distributed memory unit 9 to the last distributed memory unit 9 again. In the second transmission process, the operation request is transmitted from the first distributed memory unit 9 to the last distributed memory unit 9 in sequence. Memory unit 9, for each distributed memory unit 9, when receiving an operation request, the distributed memory unit 9 obtains all operation instructions contained in the operation request, executes all the obtained operation instructions, operates on the target memory 91, and transmits the operation request to the distributed memory unit 9 of the next level until it is transmitted to the last distributed memory unit 9. When the last distributed memory unit 9 receives the operation request, it also executes all the operation instructions contained in the operation request and operates on the target memory 91. At this point, the second transmission process ends, and all distributed memory units 9 have executed all the operation instructions contained in the operation request and performed the same operation on their own target memory 91. It should be noted that in the second transmission process of the operation request, all distributed memory units 9 must execute all the operation instructions contained in the operation request in the same order to ensure that the data between the target memories 91 in multiple distributed memory units 9 remains synchronized. This data synchronization method is simple and can also ensure the reliability of data synchronization.

[0162] Method 2: Data synchronization is achieved by performing a round trip transmission of an operation request in a plurality of cascaded distributed memory units 9, as follows:

[0163] The memory synchronization unit 92 is used to write the operation instructions of the target operation into the operation request when receiving an operation request in the first transmission process, and transmit the operation request to the next level distributed memory unit 9 if the distributed memory unit 9 to which it belongs needs to perform a target operation on the target memory 91; the first transmission process refers to the process of transmitting the operation request from the first distributed memory unit 9 cascaded among multiple distributed memory units 9 to the last distributed memory unit 9 in sequence.

[0164] In some embodiments, for each distributed memory unit 9, when the memory synchronization unit 92 of the distributed memory unit 9 receives an operation request in the first transmission process and the distributed memory unit 9 needs to perform a target operation on its own target memory 91, it is also necessary to determine whether the preset conditions of the target operation are met. If the preset conditions of the target operation are met, the memory synchronization unit 92 writes the operation instructions of the target operation into the operation request and transmits the operation request to the next level of distributed memory unit 9; if the preset conditions of the target operation are not met, the memory synchronization unit 92 prohibits writing the operation instructions of the target operation into the operation request and directly transmits the operation request to the next level of distributed memory unit 9 until the operation request is transmitted to the last distributed memory unit 9, and the last distributed memory unit 9 also performs the above-mentioned judgment processing process.

[0165] Among them, for each distributed memory unit 9, the preset condition can be whether the distributed memory unit 9 has the authority to operate the first target storage area in the target memory 91. The first target storage area is the storage area in the target memory 91 required for the distributed memory unit 9 to perform the target operation. Therefore, the distributed memory unit 9 only writes the operation instruction of the target operation into the operation request when it has the authority to operate the first target storage area in the target memory 91. It can configure the authority of different distributed memory units 9 to modify the data in the target memory 91, thereby avoiding data errors and other problems caused by the distributed memory unit 9 that does not have the authority to operate the first target storage area in the target memory 91. Or,

[0166] The memory synchronization unit 92 is used to determine whether the target operation is used to operate the second target storage area in the target memory 91 of the target distributed memory unit; when the target operation is used to operate the second target storage area in the target memory 91 of the target distributed memory unit, it is determined that the preset conditions of the target operation are met; when the target operation is not used to operate the second target storage area in the target memory 91 of the target distributed memory unit, it is determined that the target distributed memory unit does not meet the preset conditions of the target operation.

[0167] That is, the preset condition is that the preset condition is that the target operation is used to operate on the second target storage area in the target memory 91, that is, the memory synchronization unit 92 of each distributed memory unit 9 only executes the operation instructions for operating on the second target storage area in the target memory 91, and then each distributed memory unit 9 can be configured to perform a write operation on the second target storage area in the target memory 91, so as to facilitate subsequent target data reading operations.

[0168] The memory synchronization unit 92 is configured to, upon receiving an operation request in the second transmission process, perform operations on the target memory 91 of the corresponding distributed memory unit 9 based on all operation instructions contained in the operation request, and transmit the operation request to the distributed memory unit 9 at the next higher level. The second transmission process refers to the process by which the operation request is sequentially transmitted from the last distributed memory unit 9 to the first distributed memory unit 9 after the first transmission process. In one example, the memory synchronization unit 92 sequentially operates on the target memory 91 in the order in which all operation instructions in the operation request are written into the operation request, that is, sequentially writes at least a portion of the target data required to be written to the target memory by each operation instruction into the target memory 91.

[0169] After the second transmission process is completed, the target memories 91 in the multiple distributed memory units 9 maintain data synchronization, so that at least part of the target data is synchronously written into the target memory 91 of each distributed memory unit 9 .

[0170] In some other embodiments, a ring-shaped reflective memory synchronization method may also be used to achieve synchronization between distributed memory units 9. However, in this method, it is necessary to wait for the data write operation of one distributed memory unit 9 to be synchronized before the data write operation of the next distributed memory unit 9 can be synchronized. The synchronization of the data write operations of multiple distributed memory units 9 requires repeating the above process multiple times, resulting in a long synchronization time to complete all data write operations, low data synchronization efficiency, and difficulty in meeting the requirements of HIL systems with high data synchronization requirements.

[0171] During the first and second transmission processes, only two rounds of operation requests need to be transmitted between the cascaded distributed memory units 9 to complete data synchronization between the target memories in all distributed memory units 9. This ensures data consistency between the target memories 91 of the multiple distributed memory units 9, saves data synchronization cycles, and offers the advantages of high sharing efficiency, good accuracy, and low latency. Specifically, this prevents operation instructions generated at similar times from being executed with significant delays.

[0172] In addition, during the second transmission process of the operation request, the transmission of the operation request by each distributed memory unit 9 and the execution of the operation instructions in the operation request by each distributed memory unit 9 can be parallel, that is, while executing the operation instruction, the operation request is transmitted to the next distributed memory unit 9 to be transmitted. In some data synchronization schemes, the operation instruction needs to be executed first and then transmitted. In comparison, the parallel method can improve the synchronization of the execution of the operation instructions by each distributed memory unit 9.

[0173] As can be seen from the above, in this embodiment, data synchronization between the target memories 91 of the multiple distributed memory units 9 is divided into two processes, which are as follows:

[0174] The first is the first transmission process of the operation request. In the first transmission process, the operation request is transmitted from the first distributed memory unit 9 to the last distributed memory unit 9 in sequence. For each distributed memory unit 9, if the memory synchronization unit 92 of the distributed memory unit 9 has not yet executed an operation instruction that needs to perform a target operation on the target memory 91 when receiving the operation request, the memory synchronization unit 92 writes the operation instruction into the operation request and transmits the operation request to the memory synchronization unit 92 of the next-level distributed memory unit 9; until it is transmitted to the last distributed memory unit 9, the last distributed memory unit 9 also performs the above processing when receiving the operation request. At this time, the first transmission process of the operation request ends. The operation request contains the operation instructions that each distributed memory unit 9 needs to perform a target operation on the target memory 91, and then the second transmission process of the operation request is started.

[0175] The operation instruction for performing a target operation on the target memory 91 in the distributed memory unit 9 is derived from the industrial computer 11 or the I / O control module 2 to which the distributed memory unit 9 is connected.

[0176] The second is the second transmission process of the operation request. The second transmission process is the return process of the operation request. In the second transmission process, the operation request is sequentially transmitted from the last distributed memory unit 9 to the first distributed memory unit 9. For each distributed memory unit 9, the memory synchronization unit 92 of the distributed memory unit 9, upon receiving the operation request, obtains all operation instructions contained in the operation request and executes all obtained operation instructions to operate the target memory 91. At the same time, the operation request is transmitted to the memory synchronization unit 92 of the distributed memory unit 9 at the next level until it is transmitted to the first distributed memory unit 9. The memory synchronization unit 92 in the first distributed memory unit 9, upon receiving the operation request, also executes all operation instructions contained in the operation request to operate the target memory 91. At this point, the second transmission process ends. All distributed memory units 9 have executed all operation instructions contained in the operation request and performed the same operation on their own target memory 91. It should be noted that in the second transmission process of the operation request, all distributed memory units 9 must execute all operation instructions contained in the operation request in the same order to ensure that the data between the target memories 91 in multiple distributed memory units 9 remains synchronized.

[0177] The first distributed memory unit 9 can be understood as the distributed memory unit of the industrial computer 11 or I / O control module 2 that generates the operation request. It can be a fixed distributed memory unit of the industrial computer 11 or I / O control module 2, or it can be changed automatically or manually according to actual needs.

[0178] In one example, in each distributed memory unit 9, the memory synchronization unit 92 is configured to sequentially operate on the target memory 91 of the corresponding distributed memory unit 9 in the order in which all the operation instructions in the operation request are written into the operation request. In another example, the target memory 91 of the current distributed memory unit 9 may be operated on sequentially in the reverse order of the order in which all the operation instructions in the operation request are written into the operation request. In yet another example, the order of all the operation instructions in the operation request may be reset (for example, by the last distributed memory unit 9 resetting the order after the first transmission process is completed), and then each distributed memory unit 9 sequentially operates on the target memory 91 of the current distributed memory unit 9 in the same reset order.

[0179] In addition, if the areas, objects, etc. operated by each operation instruction usually do not overlap or can be confirmed not to overlap, then, in a specific example, some or all different devices can also execute each operation instruction in a different order, and still ensure that the data between the target memories 91 in multiple devices remains synchronized.

[0180] In one example, in the first distributed memory unit cascaded among multiple distributed memory units 9, the memory synchronization unit 92 is used to generate a new operation request when a preset event occurs (for example, when the distributed memory unit, the corresponding device, or other devices connected to the corresponding device detect the occurrence of a preset event), that is, the memory synchronization unit 92 generates a new operation request each time a preset event occurs, and repeats the first transmission process and the second transmission process of the above-mentioned operation request.

[0181] The preset event is any one or any combination of the following: the first distributed memory unit 9 completes the operation on the target memory of the first distributed memory unit 9 based on all operation instructions included in the operation request, the first distributed memory unit 9 reaches a set time period, and the first distributed memory unit 9 responds to a triggered interrupt. The specific description is as follows:

[0182] After receiving the operation request in the second transmission process and executing all operation instructions contained in the operation request, the first distributed memory unit 9 generates a new operation request; thus, the first distributed memory unit 9 can cyclically generate operation requests, and each time after completing data synchronization between multiple distributed memory units 9, it starts the next round of data synchronization, thereby ensuring the timeliness of data synchronization between the target memories 91 of multiple distributed memory units 9; wherein, a certain time interval can also be set between two adjacent data synchronizations.

[0183] A timer is set in the first distributed memory unit 9. When the timer reaches a preset time length (i.e., a set time period), the first distributed memory unit 9 generates a new operation request to synchronize data between the target memories 91 of multiple distributed memory units 9, and reset the timer at the same time. The timer starts timing again, and the first distributed memory unit 9 repeats the above process when the timer reaches a preset time length (i.e., a set time period) next time.

[0184] One or more interrupt flags are set in the target memory 91 of the first distributed memory unit 9. When data is written into the interrupt flag, the first distributed memory unit 9 determines that an interrupt is triggered, generates a new operation request, and performs data synchronization between multiple distributed memory units 9.

[0185] It should be noted that this embodiment mainly focuses on the synchronization of operation instructions that can cause changes to the data in the target memory 91 (such as writing or deleting target data) to ensure the synchronization of data in the target memory 91 in multiple distributed memory units 9; the writing includes adding from scratch, as well as overwriting, replacing, and modifying data.

[0186] For an operation instruction to read target data, in each distributed memory unit 9, the memory synchronization unit 92 of the distributed memory unit 9 reads corresponding at least part of the target data from the connected target memory 91 when obtaining an operation instruction for reading at least part of the target data.

[0187] It can be seen that the target operation refers to an operation that can change the data in the target memory 91.

[0188] Please refer to Figures 13 and 14. Taking the test system including three industrial computers 11, an I / O control module 2 and four distributed memory units 9 as an example, the four distributed memory units 9 are cascaded in sequence, the industrial computers 11 and the I / O control modules 2 are respectively connected to the corresponding distributed memory units 9, and the I / O control module 2 is connected to the distributed memory unit 9 of the last level.

[0189] When detecting the occurrence of a preset event, the memory synchronization unit 92 in the first distributed memory unit 9 (ie, the first-level distributed memory unit 9 ) generates an operation request and subsequently performs a first transmission process of the operation request.

[0190] The first-level distributed memory unit 9 also needs to perform a target operation on the target memory 91 . The memory synchronization unit 92 adds the operation instruction a of the target operation to the operation request and sends the operation request to the second-level distributed memory unit 9 .

[0191] The memory synchronization unit 92 of the second-level distributed memory unit 9 receives an operation request containing operation instruction a. The second-level distributed memory unit 9 does not need to perform target operation on the target memory 91. The memory synchronization unit 92 sends the operation request containing operation instruction a to the third-level distributed memory unit 9.

[0192] The memory synchronization unit 92 of the third-level distributed memory unit 9 receives an operation request containing operation instruction a. The third-level distributed memory unit 9 also needs to perform a target operation on the target memory 91. The third-level distributed memory unit 9 adds the operation instruction b of the target operation to the operation request and sends the operation request containing operation instruction a and operation instruction b to the last distributed memory unit 9 (that is, the fourth-level distributed memory unit 9).

[0193] The memory synchronization unit 92 of the fourth-level distributed memory unit 9 receives an operation request containing operation instruction a and operation instruction b. The fourth-level distributed memory unit 9 also needs to perform a target operation on the target memory 91. The fourth-level distributed memory unit 9 adds the operation instruction c of the target operation to the operation request. At this time, the operation request includes: operation instruction a, operation instruction b and operation instruction c.

[0194] The first transmission process of the operation request ends, and the second transmission process of the operation request starts.

[0195] The memory synchronization unit 92 of the fourth-level distributed memory unit 9 executes all operation instructions contained in the operation request, which includes operation instruction a, operation instruction b and operation instruction c, operates its own target memory 91, and returns the operation request to the third-level distributed memory unit 9.

[0196] The memory synchronization unit 92 of the third-level distributed memory unit 9 receives the returned operation request including operation instruction a, operation instruction b and operation instruction c, executes all operation instructions contained in the operation request, operates on its own target memory 91; and returns the operation request to the second-level distributed memory unit 9.

[0197] The memory synchronization unit 92 of the second-level distributed memory unit 9 receives the returned operation request including operation instruction a, operation instruction b and operation instruction c, executes all operation instructions contained in the operation request, operates on its own target memory 91; and returns the operation request to the first-level distributed memory unit 9.

[0198] The memory synchronization unit 92 of the first-level distributed memory unit 9 receives the returned operation request including operation instruction a, operation instruction b and operation instruction c, executes all operation instructions included in the operation request, and operates its own target memory 91.

[0199] After the second transmission process is completed, the target memories 91 in the four distributed memory units 9 maintain data synchronization, so that at least part of the target data is synchronously written into the target memory 91 of each distributed memory unit 9 .

[0200] It should be noted that when the distributed memory units 9 at each level execute the operation instructions contained in the operation request, it is necessary to ensure that the distributed memory units 9 at each level execute the operation instructions in the same order, for example, they are executed in the order in which the operation instructions are added to the operation request, that is, the execution order is operation instruction a, operation instruction b, and operation instruction c; or the last level of distributed memory unit 9 sets the execution order of the operation instructions, for example, the execution order is operation instruction c, operation instruction a, and operation instruction b, and all distributed memory units 9 execute the operation instructions in this order.

[0201] Based on the above process, data synchronization between the industrial computer 11 and the I / O control module 2 is achieved through the distributed memory data synchronization in the cascaded multiple distributed memory units 9, which can ensure the efficiency of data sharing between the industrial computer 11 and the I / O control module 2 and meet the requirements of the hardware-in-the-loop testing process.

[0202] It should be noted that when there are multiple industrial computers 11, multiple industrial computers 11 usually need to cooperate with each other to complete the hardware-in-the-loop test processing, and this cooperation requires a high degree of synchronization between different industrial computers 11 and the I / O control module 2. At this time, the synchronization of data transmission between different industrial computers 11 and the device under test 4 will significantly affect the test effect and / or test efficiency.

[0203] For example, different industrial computers 11 often need to use different models to run tests, and different models often need to cooperate with each other. A certain information calculated by one industrial computer 11 and a certain information calculated by another industrial computer 11 at the same time need to be given to the device under test 4 (i.e., the controller) at the same time. For another example, two industrial computers 11 need to obtain the information they need from the device under test 4 at the same time. For another example, after an industrial computer 11 sends information to the device under test 4, the other industrial computer 11 needs to immediately use the corresponding processing result of the device under test 4 as input, combine it with the processing result of its own model, and then perform subsequent processing.

[0204] At this time, if data sharing is implemented using the reflective memory method in the prior art, it will make it difficult for different industrial computers 11 to provide the required information to the device under test 4 at the same time (or with a low delay), and it will be difficult for the device under test 4 to provide the required information to different industrial computers 11 at the same time (or with a low delay), and information cannot be provided to the device under test 4 (or industrial computer 11) in a timely manner, thereby affecting the test effect and test efficiency. After using the technical solution of the embodiment of the application, it can help improve the synchronization of information sharing between different industrial computers 11 and the I / O control module 2.

[0205] Furthermore, in response to the above requirements in the HIL scenario, the data synchronization technology solution of this specification can effectively meet the higher synchronization requirements between devices.

[0206] In one example, referring to FIG15 , in each distributed memory unit 9, the memory synchronization unit 92 includes three third signal transceivers, and an interface controller 921, a data synchronization module 922, an access arbitration module 923, and a storage controller 924, which are communicatively connected in sequence. The three third signal transceivers include an interface signal transceiver 9201, an upper-level signal transceiver 9202, and a lower-level signal transceiver 9203. The three high-speed signal transceivers, the interface controller 921, the data synchronization module 922, the access arbitration module 923, and the storage controller 924 can be implemented based on an FPGA.

[0207] It should be noted that, in this embodiment, the access arbitration module 923 is connected between the data synchronization module 922 and the storage controller 924 as an example. However, the present invention is not limited thereto. The access arbitration module 923 may also be connected between the interface controller 921 and the data synchronization module 922 .

[0208] In addition, the interface controller 921 (eg, a PCIE controller) and the target memory 91 (eg, a DDR) may also be directly connected, and data reading or even writing may also be achieved based on this connection method.

[0209] In the memory synchronization unit 92 of each distributed memory unit, the interface signal transceiver 9201 is connected to the device corresponding to the distributed memory unit (which can be the industrial computer 11 or the I / O control module 2), the upper-level signal transceiver 9202 is connected to the lower-level signal transceiver 9203 of the upper-level distributed memory unit 9, and the lower-level signal transceiver 9203 is connected to the upper-level signal transceiver 9202 of the lower-level distributed memory unit.

[0210] In the memory synchronization unit 92 of each distributed memory unit 9:

[0211] The interface controller 921 is configured to send an operation instruction to the data synchronization module 922 upon receiving an operation instruction to perform a target operation on the target memory 91 .

[0212] The data synchronization module 922 is used to write the operation instruction into the operation request when receiving an operation request in the first transmission process, and transmit the operation request to the next level distributed memory unit 9 if an operation instruction for performing a target operation on the target memory 91 is received.

[0213] The data synchronization module 922 is configured to send all operation instructions in the operation request to the access arbitration module 923 when receiving the operation request in the second transmission process.

[0214] The access arbitration module 923 is used to send all operation instructions in the operation request to the storage controller 924 in sequence.

[0215] The storage controller 924 is used to execute the received operation instructions in sequence and perform operations in the target memory 91.

[0216] In one example, the interface controller 921 is further connected to the access arbitration module 923 or the storage controller 924 within the same distributed memory unit 9 to directly or indirectly feed back an operation instruction for reading target data from the target memory 91 to the storage controller 924. For example, the read operation instruction can be sent by the interface controller 921 to the access arbitration module 923, and then sent to the storage controller 924 via the access arbitration module 923; for another example, the read operation instruction can be sent directly from the interface controller 921 to the storage controller 924.

[0217] In another example, the operation instruction for reading the target data from the target memory 91 may also be transferred to the access arbitration module 923 via the data synchronization module 922 , and then finally given to the storage controller 924 .

[0218] Furthermore, when the storage controller 924 is also connected to the interface controller 921 within the same distributed memory unit 9, it can also be used to receive the target data corresponding to the read operation instruction and send the target data corresponding to the read operation instruction to the corresponding device. In other examples, the target data corresponding to the read operation instruction can also be fed back from the storage controller 924 to the interface controller 921 via the access arbitration module 923 and / or the data synchronization module 922, and the target data is then sent to the corresponding device by the interface controller 921.

[0219] The data synchronization between target memories in the multiple distributed memory units 9 in this embodiment will be described below with reference to FIG. 13 to FIG. 15 .

[0220] In the memory synchronization unit 92 of the first-level distributed memory unit 9, the interface signal transceiver 9201 is connected to the industrial computer 11, the upper-level signal transceiver 9202 is suspended, and the lower-level signal transceiver 9203 is connected to the upper-level signal transceiver 9202 of the second-level distributed memory unit 9.

[0221] When detecting the occurrence of a preset event, the interface controller 921 generates an operation request and sends the operation request to the data synchronization module 922 , and then performs a first transmission process of the operation request.

[0222] The interface controller 921 receives the operation instruction a sent by the industrial computer 11 and sends the operation instruction a to the data synchronization module 922 .

[0223] When receiving an operation request, the data synchronization module 922 writes the operation instruction a into the operation request, and then sends the operation request to the second-level distributed memory unit 9.

[0224] In the memory synchronization unit 92 of the second-level distributed memory unit 9, the interface signal transceiver 9201 is connected to the industrial computer 11, the upper-level signal transceiver 9202 is connected to the first-level distributed memory unit 9, and the lower-level signal transceiver 9203 is connected to the upper-level signal transceiver 9202 of the third-level distributed memory unit 9.

[0225] The data synchronization module 922 receives an operation request sent by the data synchronization module 922 in the first-level distributed memory unit 9. At this time, there is no operation instruction in the data synchronization module 922. The data synchronization module 922 directly sends the operation request to the third-level distributed memory unit 9.

[0226] In the third-level distributed memory unit 9, the interface signal transceiver 9201 is connected to the industrial computer 11, the upper-level signal transceiver 9202 is connected to the second-level distributed memory unit 9, and the lower-level signal transceiver 9203 is connected to the upper-level signal transceiver 9202 of the fourth-level distributed memory unit 9.

[0227] The interface controller 921 receives the operation instruction b sent by the industrial computer 11 and sends the operation instruction b to the data synchronization module 922 .

[0228] The data synchronization module 922 receives the operation request sent by the data synchronization module 922 in the second-level distributed memory unit 9. At this time, the data synchronization module 922 writes the operation instruction b into the operation request (at this time the operation request contains operation instruction a and operation instruction b), and then sends the operation request to the fourth-level distributed memory unit 9.

[0229] In the fourth-level distributed memory unit 9, the interface signal transceiver 9201 is connected to the I / O control module 2, the upper-level signal transceiver 9202 is connected to the third-level distributed memory unit 9, and the lower-level signal transceiver 9203 is suspended.

[0230] The interface controller 921 receives the operation instruction c sent by the I / O control module 2 and sends the operation instruction c to the data synchronization module 922 .

[0231] The data synchronization module 922 receives the operation request sent by the data synchronization module 922 in the third-level distributed memory unit 9, and the data synchronization module 922 writes the operation instruction c into the operation request (at this time, the operation request includes operation instruction a, operation instruction b and operation instruction c).

[0232] The first transmission process of the operation request ends, and the second transmission process of the operation request starts.

[0233] In the fourth-level distributed memory unit 9, the data synchronization module 922 sends the operation request to the storage controller 924 through the access arbitration module 923. The storage controller 924 executes all operation instructions contained in the operation request, including operation instruction a, operation instruction b and operation instruction c, to operate the target memory 91.

[0234] The data synchronization module 922 also transmits the operation request back to the third-level distributed memory unit 9.

[0235] In the third-level distributed memory unit 9, the data synchronization module 922 receives the operation request returned by the fourth-level distributed memory unit 9, and sends the operation request to the storage controller 924 through the access arbitration module 923. The storage controller 924 executes all operation instructions contained in the operation request, including operation instruction a, operation instruction b and operation instruction c, and operates the target memory 91.

[0236] The data synchronization module 922 also transmits the operation request back to the second-level distributed memory unit 9.

[0237] In the second-level distributed memory unit 9, the data synchronization module 922 receives the operation request returned by the third-level distributed memory unit 9, and sends the operation request to the storage controller 924 through the access arbitration module 923. The storage controller 924 executes all operation instructions contained in the operation request, including operation instruction a, operation instruction b and operation instruction c, and operates the target memory 91.

[0238] The data synchronization module 922 also transmits the operation request back to the first-level distributed memory unit 9.

[0239] In the first-level distributed memory unit 9, the data synchronization module 922 receives the operation request returned by the second-level distributed memory unit 9, and sends the operation request to the storage controller 924 through the access arbitration module 923. The storage controller 924 executes all operation instructions contained in the operation request, including operation instruction a, operation instruction b and operation instruction c, and operates the target memory 91.

[0240] At this point, the second transmission process of the operation request is completed, and the target memories 91 in the four distributed memory units 9 maintain data synchronization.

[0241] In this embodiment, multiple devices are cascaded by using multiple cascaded distributed memory units, and data synchronization of target data in the target memory of all devices is achieved in a cascade manner; that is, the industrial computer and the I / O control module are cascaded by using multiple cascaded distributed memory units, and only one round of operation requests needs to be transmitted back and forth between the multiple distributed memory units to synchronize the target data in all devices (including the industrial computer 11 and the I / O control module 2), which can ensure the consistency of data between devices, save the data synchronization cycle, and has the advantages of high sharing efficiency, good accuracy and low latency.

[0242] It should be noted that this embodiment can also be applied to scenarios where there are multiple I / O control modules 2, wherein each I / O control module 2 and the corresponding I / O unit 31 can be connected in a cascade manner, as shown in Figure 16, taking the example of two I / O control modules 2 and each I / O control module 2 corresponding to three I / O units 31; or each I / O control module 2 is directly connected to the corresponding I / O units 31, as shown in Figure 17, taking the example of two I / O control modules 2 and each I / O control module 2 corresponding to multiple I / O units 31.

[0243] The fifth embodiment of the present application relates to a test system. The main difference between this embodiment and the first embodiment is that this embodiment provides an implementation method for distributed interruption.

[0244] In this embodiment, the industrial computer 11 and the I / O control module 2 are both used as target devices, and multiple target devices are connected to the same storage, that is, a star connection is adopted between multiple target devices. For the specific method of star connection of multiple target devices, please refer to the third embodiment and will not be repeated here.

[0245] Alternatively, each target device is configured with a corresponding memory and connected, and the data between the multiple memories corresponding to the multiple target devices is kept synchronized. For example, the multiple target devices are cascaded and connected, and the memory of each target device can be directly configured in the target device or externally connected to the target device; please refer to the fourth embodiment for the cascade connection method between the multiple target devices, which will not be repeated here. In addition, the method of keeping data synchronized between the memories corresponding to the multiple target devices can also refer to the fourth embodiment, which will not be repeated here, but is not limited to this. The memories corresponding to the multiple target devices can also achieve data synchronization through the Ethernet connected between the multiple target devices, or achieve data synchronization in the form of reflective memory.

[0246] It should be noted that the multiple target devices used in the distributed interrupt implementation method of this embodiment may include only multiple industrial computers 11 executing the same test task, or may include the industrial computers 11 and I / O control modules 2 used in executing the same test task.

[0247] At least one flag is set in the memory connected to the target device. When multiple devices are connected to the same memory, at least one flag is set in the memory; when multiple devices are connected to multiple memories respectively, the same flag is set in the multiple memories.

[0248] The target device is used to modify the data of the first flag bit in at least one flag bit to the first preset data during a test process in which the same device under test is tested based on multiple target devices, if a first preset event occurs in the target device, so that at least one first device among the multiple target devices responds to the first preset data in the first flag bit and performs the first specified processing corresponding to the first preset event.

[0249] Specifically, during a test process in which multiple target devices are testing the same device under test 4, for any one of the multiple target devices, upon occurrence of a first preset event, the target device modifies the data of a first flag bit in the at least one flag bit to a first preset data. The first device among the multiple target devices can trigger an interrupt in response to the first preset data in the first flag bit and execute a first designated process corresponding to the first preset event. That is, during the test process, by modifying the data in the first flag bit, all first devices can execute the first designated process at the same pace. For example, if the first device includes all industrial computers 11 among the multiple target devices, then by writing the first preset data in the first flag bit, the occurrence of the first preset event can be synchronized in all industrial computers 11, causing all industrial computers 11 to execute the first designated process synchronously, thereby achieving horizontal linkage between the industrial computers 11, for example, maintaining consistency in the working pace of the multiple industrial computers 11. The number of first devices can be one or more, or all target devices can be first devices.

[0250] and / or:

[0251] The target device is configured to, during a test, execute a second specified process corresponding to the second preset data in the second flag bit in response to second preset data in a second flag bit of at least one flag bit, wherein the data in the second flag bit is modified to the second preset data by any second device among the plurality of target devices when a second preset event occurs. For example, the target device is configured to execute the second specified process corresponding to the second preset data in the second flag bit in response to triggering an interrupt in response to the second preset data in the second flag bit.

[0252] Specifically, during a test process in which multiple target devices are testing the same device under test 4, any second device among the multiple target devices modifies the data of a second flag in at least one flag to second preset data when a second preset event occurs. For any one of the multiple target devices, the target device detects the data of the second flag. When the second preset data is detected to be written into the second flag, the target device triggers an interrupt in response to the second preset data in the second flag, and executes a second designated process corresponding to the second preset data in the second flag. That is, any one of the multiple target devices can execute the second designated process in response to the second preset data written into the second flag by the second device. The target device that responds to the second preset data written into the second flag by the second device can be pre-configured so that the configured target device can synchronously execute the second designated process in response to the second preset data written into the second flag by the second device. For example, the operating rhythm of the configured device can be adjusted to ensure consistency in the operating rhythm of all configured devices.

[0253] In one example, the target device is further configured to restore the data in the second flag to preset initial data after executing a second specified process corresponding to the second preset data in the second flag, where the preset initial data is the data in the second flag before being modified to the second preset data. For example, if the preset initial data in the second flag is 0, and the second device modifies the data in the second flag from 0 to the second preset data 1 when a second preset event occurs, the current target device can respond to the second preset data 1 being written to the second flag by executing the second specified process and restoring the data in the second flag to the preset initial data 0.

[0254] In one example, different preset events correspond to different flags in at least one flag. In the above content, the target device is configured to modify the data of a first flag corresponding to the first preset event in at least one flag to the first preset data when the first preset event occurs; and the second flag is a flag corresponding to the second preset event. For example, if the multiple devices are multiple industrial computers 11, each industrial computer 11 runs a different simulation model during the test process, and each industrial computer 11 can trigger a different preset event when running a different simulation model, each industrial computer 11 can write data in the flag corresponding to the preset event when triggering the preset event, so that other industrial computers 11 can respond to the data written in the flag, synchronize the occurrence of the preset event, and perform specified processing.

[0255] In one example, the target device is also used to modify the data of the first flag bit in at least one flag bit to the first preset data each time the end of the specified time period is detected during the test process, so that each industrial computer in multiple target devices tests the device under test based on the beat corresponding to the specified time period.

[0256] Specifically, the target device is configured with a specified time period during which the data in the first flag bit needs to be modified. For example, each time period is a specified time period, or starting from the first specified time period, another time period separated by a preset number of time periods from the previous specified time period is the next specified time period. Each time the target device detects the end of a specified time period, it modifies the data in the first flag bit to the first preset data. As a result, each industrial computer in multiple target devices tests the device under test based on the same specified time period, that is, the industrial computers test the device under test at the same beat, maintaining beat and pace consistency among the multiple industrial computers. The length of each time period can be 1ms, 2ms, etc., without any limitation.

[0257] For example, during the test process, each industrial computer 11 needs to call the solution function of the simulation object at a fixed pace, for example, calling the solution function once every 1ms. A target device can be pre-configured to write the first preset data in the first flag bit every 1ms. Each industrial computer 11 can detect the first preset data in the first flag bit and trigger an interrupt. Therefore, all industrial computers 11 can be set to trigger an interrupt every 1ms in the above manner. In response to the triggered interrupt, each industrial computer 11 preferentially calls the solution function of the simulation object. Therefore, each industrial computer 11 can call the solution function of the same simulation object at the same pace, that is, all industrial computers 11 can synchronously call the solution function of the same simulation object in response to the triggered interrupt.

[0258] The target device is an industrial computer. The target device is also used to test the device under test based on the beat corresponding to the specified time period in response to the second preset data in the second flag bit in at least one flag bit during the test process. The data of the second flag bit is modified to the second preset data by any second device among the multiple devices when the end of the specified time period is detected.

[0259] Specifically, the second device is configured with a specified time period for which the data of the second flag bit needs to be modified. For example, each time period is a specified time period, or starting from the first specified time period, another time period separated from the adjacent previous specified time period by a preset number of time periods is the next specified time period. Each time the second device detects the end of the specified time period, it modifies the data in the second flag bit to the second preset data. The current device is an industrial computer. The industrial computer responds to the second preset data in the second flag bit and tests the device under test based on the beat corresponding to the specified time period. Thus, each industrial computer in multiple target devices tests the device under test based on the beat corresponding to the same specified time period.

[0260] In one example, for the simulation models of two industrial computers 11, take the simulation model M1 and the simulation model M2 of the vehicle to be simulated as examples, if it is necessary to output simulation signals at different frequencies, for example, the simulation model M1 outputs a signal of simulated vehicle speed and the simulation model M2 outputs a signal of simulated battery power, the frequency of the simulated vehicle speed is to output a signal of simulated vehicle speed once every 1ms, and the frequency of the simulated battery power is to output a signal of simulated battery power once every 10ms, then any industrial computer 11 or I / O control module 2 can modify the data of the corresponding flag bit once after detecting a time period of 1ms each time, and then the simulation model M1 can trigger an interrupt each time the corresponding modification of the corresponding flag bit is detected, and output a signal of simulated vehicle speed, and the simulation model M2 can trigger an interrupt each time the corresponding modification of the corresponding flag bit is detected, and perform an accumulation, and output a signal of battery power when the accumulation reaches 10 times.

[0261] In another example, for the simulation models of two industrial computers 11, taking the simulation model M4 and the simulation model M5 of the vehicle to be simulated as examples, the simulation model M4 needs to obtain the brake control instruction (indicating whether the brake is triggered) signal fed back by the test piece 4 at a frequency of once every 1ms, and at the same time, the simulation model M5 needs to output the simulated vehicle speed signal at a frequency of once every 2ms; then any industrial computer 11 or I / O control module 2 can modify the data of the corresponding flag bit once after detecting a time period of 1ms each time, and then the simulation model M4 can trigger an interrupt after detecting a corresponding modification of the corresponding flag bit each time, and obtain a brake control instruction signal once, and the simulation model M5 can trigger an interrupt after detecting a corresponding modification of the corresponding flag bit each time, and do an accumulation. When the accumulation reaches 2 times, the simulated vehicle speed signal is output.

[0262] Furthermore, through the above method, the beat and pace can be synchronized and coordinated to ensure that each simulation model completes the test reliably and effectively. In comparison, in the prior art, the beats between the industrial computers are independent of each other, and the effect of synchronization and coordination depends on whether the clocks between the industrial computers 11 are synchronized, and how effective the clock synchronization is. In the above scheme, the data of the memories of multiple devices can be kept synchronized or the same memory can be used. Through horizontal linkage, the accurate synchronization and coordination of the beat and pace can be ensured, so that the test process can more accurately serve the processing of the device under test and meet the test requirements. At the same time, the embodiment of the present application does not exclude the introduction of a clock synchronization scheme.

[0263] In another example, when the target device, the first device, and the second device are all industrial computers, the industrial computer is used to run a simulation model for the test, and the preset event is that the simulation model for the test running in the industrial computer generates specified data (such as first specified data and second specified data).

[0264] The target device is used to modify the data of the first flag bit in at least one flag bit to the first preset data during the test process if the first simulation model running in the target device generates the first specified data, so that the second simulation model running in the first device performs processing associated with the specified data to test the device under test; the first specified data includes: first data indicating that the first simulation model enters a specified state, and / or: second data calculated by the first simulation model to be sent to the device under test.

[0265] For example, industrial computer A is used to run a test simulation model X, and industrial computer B is used to run a test simulation model Y. During the test process, when industrial computer A outputs specified data D while running test model X, it determines that a predetermined run time has been reached and modifies the data of a first flag in at least one flag to a first preset data. In response to the first preset data in the first flag, industrial computer B triggers an interrupt and runs test simulation model Y to test the device under test.

[0266] The target device is further configured to, in response to second preset data in a second flag bit of at least one flag bit, trigger a running third simulation model to execute processing associated with second specified data, thereby testing the device under test. The data in the second flag bit is modified to the second preset data when a fourth simulation model in the second device generates the second specified data. The second specified data includes: third data indicating that the fourth simulation model has entered a specified state, and / or: fourth data calculated by the fourth simulation model and to be sent to the device under test. That is, during a test, when any industrial computer among the multiple target devices outputs specified data while running the simulation model under test, the data in the second flag bit is modified to the second preset data. The target device, in response to the second preset data in the second flag bit, runs the simulation model under test to test the device under test.

[0267] In the above examples, the specified state may refer to, for example, the state in which the corresponding simulation model starts to operate, the state in which it stops operating, the state in which it processes to a certain step of the test case, the state in which it starts to calculate a certain parameter, the state in which a certain parameter is calculated, the state in which a certain calculation target is completed, and so on.

[0268] In one example, a target device is used to detect data in a target flag associated with the target device in at least one flag during a test, and if it is detected that a second flag in the target flag is modified to a second preset data, execute a second designated process corresponding to the second preset data in the second flag. That is, each target device is concerned with a different target flag, and each target device may be associated with one or more target flags. For each target device, it will detect whether the second preset data is written in the target flag associated with itself, and if it is detected that the second preset data is written in the second flag in the target flag associated with itself, execute the second designated process, delete the second preset data written in the second flag, and restore the data in the second flag to the preset initial data.

[0269] In this way, each target device in multiple target devices can be configured to be associated with a different target flag bit, that is, each target device can be configured to only respond to data modifications in the associated target flag bit, thereby facilitating the setting of a target device cluster that performs different test tasks and works at different beats and paces.

[0270] In this embodiment, a flag bit is set in the memory, and any one of the multiple target devices can write data in the flag bit when a preset event occurs, so that the multiple target devices respond to the data written in the flag bit. Furthermore, on the basis of keeping the data in the memories of the multiple target devices synchronized or using the same memory, this application uses the data written in the flag bit as a medium for interaction and association between target devices in the HIL system, thereby realizing horizontal linkage between multiple target devices.

[0271] Preferred embodiments of the present application have been described in detail above, but it should be understood that aspects of the embodiments can be modified, if necessary, to employ aspects, features and concepts of the various patents, applications and publications to provide further embodiments.

[0272] These and other changes can be made to the embodiments in light of the above detailed description.In general, in the claims, the terms used should not be construed as limited to the specific embodiments disclosed in the specification and claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which these claims are entitled.

Claims

1. A testing system, characterized in that: The test system is a HIL system, comprising: an industrial computer pool, at least one I / O control module and an I / O pool; the industrial computer pool comprises a plurality of industrial computers, and the I / O pool comprises at least one I / O unit; The I / O control module is used to transmit target data between K industrial computers in the industrial computer pool and L I / O units in the I / O pool; K and L are both any integers greater than or equal to 1; The I / O unit is used to transmit the target data or data obtained based on the target data between the I / O control module and the device under test.

2. The test system according to claim 1, characterized in that: Any one of the industrial computers serves as a cluster control module, or the test system further includes: a cluster control module; The cluster control module is used to determine the data transmission relationship between the K industrial computers in the industrial computer pool that execute the current first test task and the L I / O units in the I / O pool; The I / O control module is used to transmit target data between the K industrial computers and the L I / O units based on the data transmission relationship between the K industrial computers in the industrial computer pool and the L I / O units in the I / O pool; The cluster control module is also used to send the task information of the first test task to the K industrial computers; The industrial computer is used to generate the sending information to be sent to the first device under test based on the task information of the first test task.

3. The test system according to claim 2, characterized in that: Each of the industrial computers is equipped with at least one CPU; The cluster control module is further used to determine the test requirement information of the first test task, wherein the test requirement information is used to characterize at least the quantity information of the CPUs and the quantity information of the I / O units required to execute the first test task; The cluster control module is used to select N CPUs from the CPUs currently in an idle state and select L I / O units from the I / O units currently in an idle state based on the test requirement information, where N is any integer greater than or equal to 1; Each of the K industrial computers includes at least one CPU among the N CPUs.

4. The test system according to claim 2, characterized in that: The test system further comprises: a switching matrix connected between the I / O unit and the first device under test; the switching matrix comprises: at least one first port and at least one second port; each of the first ports is respectively connected to each of the I / O units, and each of the second ports is respectively connected to each of the first devices under test; The cluster control module is further used to configure the first port connected to the L I / O units in the switching matrix to form a connection channel with the second port connected to the first device under test, so as to establish a communication connection between the L I / O units and the first device under test; The switching matrix is ​​used to transmit the target data between the L I / O units and the first device under test through the connection channels.

5. The test system according to claim 3, characterized in that: The cluster control module is also used for: Before the first test task is completed, based on the test requirement information of another second test task, J CPUs among the CPUs of the multiple industrial computers and M I / O units among the multiple I / O units are used to execute the second test task to test another second device under test, so that the second device under test interacts with the J CPUs through the M I / O units; J and M are both any integer greater than or equal to 1; wherein the J CPUs and the N CPUs are different CPUs among the CPUs of the multiple industrial computers, and the L I / O units and the M I / O units are different I / O units among the multiple I / O units; and / or: After releasing the N CPUs and the L I / O units executing the first test task, based on the test requirement information of another third test task, select Z CPUs from the CPUs that are currently in an idle state, select T I / O units from the I / O units that are currently in an idle state, and use the Z CPUs and the T I / O units to execute the third test task to test the third device under test, so that the third device under test interacts with the Z CPUs through the T I / O units; Z and T are both arbitrary integers greater than or equal to 1; wherein the Z CPUs have overlapping CPUs with the N CPUs, and / or: the L I / O units have overlapping I / O units with the T I / O units.

6. The test system according to claim 1, characterized in that: The test system further comprises: a shared memory unit; the shared memory unit comprises a shared memory and a memory operation unit, each of the industrial computers is directly or indirectly connected to the memory operation unit, the memory operation unit is communicatively connected to the I / O control module, and the memory operation unit is also connected to the shared memory; The memory operation unit is used to execute the received operation instruction for operating the shared memory when it receives the operation instruction for operating the shared memory from any designated device among the industrial computer and the I / O control module, so as to write at least part of the target data into the shared memory; or, read at least part of the target data from the shared memory and feed back the read target data to the designated device.

7. The test system according to claim 1, characterized in that: The test system further includes: a plurality of distributed memory units, each of which includes a target memory and a memory synchronization unit; the industrial computer corresponds to the distributed memory unit one by one, the industrial computer is connected to the memory synchronization unit in the corresponding distributed memory unit, the I / O control module corresponds to one of the distributed memory units, the I / O control module is connected to the memory synchronization unit in the corresponding distributed memory unit, and the plurality of distributed memory units are cascaded in sequence; The target data transmitted between the I / O unit and the industrial computer is transmitted based on the operation result of the memory synchronization unit on the target memory, and all the data in the target memory are kept synchronized.

8. The test system according to claim 7, characterized in that: The memory synchronization unit is used for, when receiving an operation request in a first transmission process, if the distributed memory unit to which it belongs needs to perform a target operation on the target memory, writing the operation instruction of the target operation into the operation request, and transmitting the operation request to the distributed memory unit of the next level; the first transmission process refers to the process in which the operation request is transmitted from the first distributed memory unit cascaded among the multiple distributed memory units to the last distributed memory unit in sequence; The target operation is an operation of writing at least part of the target data in the target memory; The memory synchronization unit is used to operate the target memory of the distributed memory unit to which it belongs based on all operation instructions contained in the operation request when receiving the operation request in the second transmission process, and transmit the operation request to the distributed memory unit at the previous level; the second transmission process refers to the process in which the operation request is transmitted from the last distributed memory unit to the first distributed memory unit in sequence after the first transmission process, or: when the multiple distributed memory units are connected in a closed loop, the operation request is again transmitted from the first distributed memory unit to the last distributed memory unit in sequence; After the second transmission process is completed, the target memories in the plurality of distributed memory units maintain data synchronization, so that at least a portion of the target data is synchronously written into the target memory of each of the distributed memory units.

9. The test system according to claim 1, characterized in that: The industrial computer and the I / O control module are both used as target devices, and multiple target devices are connected to the same memory; or, each target device is configured with a corresponding memory and connected, and data between multiple memories corresponding to the multiple target devices are kept synchronized; At least one flag bit is provided in the memory; The target device is used for modifying data of a first flag bit among the at least one flag bit to first preset data during a test process in which the same device under test is tested based on multiple target devices, if a first preset event occurs in the target device, so that at least one first device among the multiple target devices performs a first specified process corresponding to the first preset event in response to the first preset data in the first flag bit; and / or: The target device is used to execute a second specified processing corresponding to the second preset data in the second flag bit in response to the second preset data of the second flag bit in the at least one flag bit during the test process, and the data of the second flag bit is modified to the second preset data by any second device among the multiple target devices when a second preset event occurs.

10. The test system according to claim 9, characterized in that: The target device is also used to modify the data of the first flag bit in the at least one flag bit to the first preset data each time the end of the specified time period is detected during the test process, so that each industrial computer in the multiple target devices tests the device under test based on the beat corresponding to the specified time period; The target device is an industrial computer. The target device is also used to test the device under test based on the beat corresponding to the specified time period in response to the second preset data in the second flag bit of the at least one flag bit during the test process. The data of the second flag bit is modified to the second preset data by any second device among the multiple devices when the end of the specified time period is detected.

11. The test system according to claim 9, characterized in that: The target device, the first device, and the second device are all the industrial computer, and the industrial computer is used to run the simulation model of the test; The target device is used for modifying the data of a first flag bit in the at least one flag bit to a first preset data during the test if the first simulation model running in the target device generates the first specified data, so that the second simulation model running in the first device performs the processing associated with the specified data to test the device under test; The first designated data includes: first data indicating that the first simulation model enters a designated state, and / or: second data calculated by the first simulation model and to be sent to the device under test; The target device is also used to trigger the running third simulation model to execute processing associated with second specified data in response to the second preset data in the second flag bit of the at least one flag bit, so as to test the device under test; the data of the second flag bit is modified to the second preset data when the fourth simulation model in the second device generates the second specified data, and the second specified data includes: third data indicating that the fourth simulation model enters a specified state, and / or: fourth data calculated by the fourth simulation model and to be sent to the device under test.

12. The test system according to claim 9, characterized in that: The target device is used for modifying data of a first flag bit in the at least one flag bit to first preset data during a test process in which the same device under test is tested based on multiple target devices, if a first preset event occurs in the target device, so that at least one first device in the multiple target devices triggers an interrupt in response to the first preset data in the first flag bit, and executes a first specified process corresponding to the first preset event; The target device is used for triggering an interrupt in response to the second preset data in the second flag bit, and executing a second designated process corresponding to the second preset data in the second flag bit.

Citation Information

Patent Citations

  • Simulation testboard for network control system of multiple unit train

    CN104977884A

  • Testing method and system of distributed cluster

    CN107608897A

  • Test system and method for engine control unit

    CN110794803A

  • Vehicle-mounted controller testing method, device and equipment and storage medium

    CN115269396A

  • HIL bench joint test system

    CN218512576U

Cited By

  • Communication method of chip testing machine based on PCIE (Peripheral Component Interface Express) multi-machine cascading and routing

    CN119270036A

  • Board card test system and board card test method

    CN120446718A

  • Data interaction method, device, system and equipment for multi-node equipment transmission

    CN120675835A

  • Distributed control system and time synchronization method

    CN121050390A