A simulation device and a test system
By designing a simulation device with integrated signal detection and control functions, the problem of single functions of existing simulation boards is solved, and a single device is realized to simulate the master and slave nodes at the same time, improving the simulation efficiency and possibility.
Patent Information
- Application Number
- CN202311734737.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2043-12-15
Smart Images

Figure CN117724449B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of simulation technology, and in particular to a simulation device and a test system. Background Art
[0002] In a vehicle, the Electronic Control Unit (ECU) and on-board sensors (such as lidar, cameras, etc.) must all be tested and simulated. For example, in the process of developing the ECU and its algorithms, it is usually necessary to use a simulation board to simulate the analog sensor. When the simulation board communicates with the ECU, it can simulate the communication between the real sensor and the ECU, thereby verifying, testing or training the ECU and its algorithms.
[0003] However, existing simulation boards can only simulate analog sensors to test ECUs, and require the cooperation of multiple devices to build a simulation debugging environment, with single functions. Summary of the invention
[0004] The purpose of the present invention is to provide a simulation device and a test system, in which a single data transmission channel in the simulation device can complete the detection of two electrical parameters, and the single data transmission channel can also control the two electrical parameters on the bus to produce corresponding changes. Therefore, the simulation of the simulation device is no longer limited to simulating sensors as slave device nodes, which helps to enrich more simulation possibilities, thereby enriching the functions of the simulation device.
[0005] To achieve the above-mentioned purpose, the present invention provides a simulation device, comprising: a control module and at least one data transmission channel, each of the data transmission channel comprising: a signal detection circuit and a signal output circuit for connecting to a bus; the signal detection circuit is used to: detect the electrical parameters of the electrical signal on the bus, and feed back the detected electrical parameters to the control module; the control module is used to: based on the node type of the target data transmission channel in the at least one data transmission channel on the bus, obtain the first type of electrical parameter or the second type of electrical parameter fed back by the signal detection circuit of the target data transmission channel as the current received signal; generate a target signal representing the information to be sent, and send the target signal to the signal output circuit of a designated data transmission channel in the at least one data transmission channel; the signal output circuit of the designated data transmission channel is used to: based on the target signal, control a designated electrical parameter of the electrical signal on the bus, so as to send the information to be sent through the change of the designated electrical parameter, and the type of the designated electrical parameter is associated with the node type of the designated data transmission channel on the bus.
[0006] The present invention also provides a test system, comprising: the above-mentioned simulation device, and a bus connected to the simulation device; the simulation device is used to: detect the electrical parameters of the electrical signal on the bus through the signal detection circuit in at least one data transmission channel included in the simulation device; based on the node type of the target data transmission channel on the bus, selectively obtain the first type of electrical parameter or the second type of electrical parameter on the bus detected by the signal detection circuit of the target data transmission channel in the at least one data transmission channel as the current received signal; use the signal output circuit of the designated data transmission channel in the at least one data transmission channel to control a designated electrical parameter of the electrical signal on the bus based on generating a target signal representing the information to be sent, so as to send the information to be sent through the change of the designated electrical parameter, and the type of the designated electrical parameter is associated with the node type of the designated data transmission channel on the bus.
[0007] In one embodiment, when the control module selectively obtains the first type of electrical parameter or the second type of electrical parameter fed back by the signal detection circuit of the target data transmission channel in the at least one data transmission channel as the current received signal based on the node type of the target data transmission channel in the bus, it is specifically used to:
[0008] If the target data transmission channel is used as a first type of node on the bus, determining a current received signal based on a first type of electrical parameter detected by a signal detection circuit of the target data transmission channel;
[0009] If the target data transmission channel is used as a second type of node on the bus, determining a current received signal based on a second type of electrical parameter detected by a signal detection circuit of the target data transmission channel;
[0010] Among them, the first type of nodes include master device nodes, and the second type of nodes include slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
[0011] In one embodiment, when the control module selectively obtains the first type of electrical parameter or the second type of electrical parameter fed back by the signal detection circuit of the target data transmission channel in the at least one data transmission channel as the current received signal based on the node type of the target data transmission channel in the bus, it is specifically used to:
[0012] If the target data transmission channel is used as a third type of node on the bus, then:
[0013] Determine a current received signal representing information sent from a slave device node on the bus to a master device node based on a first type of electrical parameter detected by a signal detection circuit of the target data transmission channel; determine a current received signal representing information sent from a master device node on the bus to a slave device node based on a second type of electrical parameter detected by a signal detection circuit of the target data transmission channel;
[0014] The third type of nodes include monitoring nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
[0015] In one embodiment, the signal output circuit of the designated data transmission channel controls a designated electrical parameter of the electrical signal on the bus based on the target signal so as to send the information to be sent through the change of the designated electrical parameter, specifically for:
[0016] If the designated data transmission channel is used as the fourth type of node, then based on the target signal, the second type of electrical parameter of the electrical signal on the bus is controlled to send the information to be sent through the change of the second type of electrical parameter;
[0017] If the designated data transmission channel is used as the fifth type of node, then based on the target signal, controlling the first type of electrical parameters of the electrical signal on the bus, so as to send the information to be sent through the change of the first type of electrical parameters;
[0018] Among them, the fourth type of nodes include master device nodes, and the fifth type of nodes include slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
[0019] In one embodiment, the fourth type of node further includes a first debugging node, and the fifth type of node further includes a second debugging node;
[0020] When the designated data transmission channel is used as the first debugging node, the information to be sent is information to be sent to one or more slave device nodes on the bus;
[0021] When the designated data transmission channel is used as the second debugging node, the information to be sent is information to be sent to one or more master device nodes on the bus.
[0022] In one embodiment, when the target data transmission channel is used as the master device node, the current received signal represents information sent from the slave device node on the bus to the master device node;
[0023] When the designated data transmission channel is used as the master device node, the information to be sent is information sent from the master device node on the bus to the slave device node;
[0024] When the target data transmission channel is used as the slave device node, the current received signal represents information sent from the master device node on the bus to the slave device node;
[0025] When the designated data transmission channel is used as the slave device node, the information to be sent is information sent from the slave device node on the bus to the master device node.
[0026] In one embodiment, the bus is a DSI3 bus.
[0027] In one embodiment, the signal detection circuit includes: an analog-to-digital converter, a current detection circuit, and a voltage detection circuit;
[0028] The current detection circuit is used to detect the current signal in the bus, and send the detected first current signal to the analog-to-digital converter;
[0029] The analog-to-digital converter is used to perform analog-to-digital conversion on the first current signal, and feed back the obtained first type of electrical parameters to the control module;
[0030] The voltage detection circuit is used to detect the voltage signal in the bus, and send the detected first voltage signal to the analog-to-digital converter;
[0031] The analog-to-digital converter is used to perform analog-to-digital conversion on the first voltage signal, and feed back the obtained second-type electrical parameters to the control module.
[0032] In one embodiment, the signal output circuit in the designated data transmission channel includes: a digital-to-analog converter, a voltage output circuit, and a current control circuit;
[0033] The digital-to-analog converter is used for:
[0034] Convert the target signal representing the information sent from the master device node to the slave device node on the bus into a first analog signal and send it to the voltage output circuit;
[0035] Convert the target signal representing the information sent from the slave device node on the bus to the master device node to obtain a second analog signal and send it to the current control circuit;
[0036] The voltage output circuit is used to control the second type of electrical parameters of the electrical signal on the bus based on the first analog signal, so as to send the information to be sent through the change of the second type of electrical parameters;
[0037] The current control circuit is used to control a first type of electrical parameter of the electrical signal on the bus based on the second analog signal, so as to send the information to be sent through the change of the first type of electrical parameter;
[0038] The first type of electrical parameter is current, and the second type of electrical parameter is voltage. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a schematic diagram of a simulation device according to a first embodiment of the present invention;
[0040] Figure 2 is a schematic diagram showing that different data transmission channels of the simulation device according to the first embodiment of the present invention are respectively connected to a master device node and a slave device node;
[0041] Figure 3 is a specific structural diagram of a data transmission channel of a simulation device according to a first embodiment of the present invention;
[0042] Figure 4 yes Figure 3 A schematic diagram of the simulation device in the example connecting to the slave device node when simulating the master device node;
[0043] Figure 5 yes Figure 3 A schematic diagram of the simulation device in the example connecting to the master device node when simulating a slave device node;
[0044] Figure 6 4 is a schematic diagram of modules of a simulation device according to a second embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be described in detail with reference to the accompanying drawings to provide a clearer understanding of the purpose, features and advantages of the present invention. It should be understood that the embodiments shown in the accompanying drawings are not intended to limit the scope of the present invention, but are only intended to illustrate the essential spirit of the technical solution of the present invention.
[0046] In the following description, certain specific details are set forth for the purpose of illustrating various disclosed embodiments 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 the present application may not be shown or described in detail to avoid unnecessarily obscuring the description of the embodiments.
[0047] 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, ie, should be interpreted as "including, but not limited to."
[0048] References throughout the specification to "one embodiment" or "an embodiment" indicate 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 the 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.
[0049] 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.
[0050] In the following description, in order to clearly show the structure and working mode of the present invention, many directional words will be used for description, but the words "front", "back", "left", "right", "outside", "inside", "outward", "inward", "up", "down", etc. should be understood as convenient terms and should not be understood as restrictive terms.
[0051] The first embodiment of the present invention relates to a simulation device, which can simulate a slave device node communicating with a master device node through a bus, or simulate a master device node communicating with a slave device node through a bus, or connect to a communication bus between a master device node and a slave device node to monitor data, or be used to debug a master device node or a slave device node. The simulation device can be a device based on the DIS3 protocol or the PSI5 protocol, and can be in the form of a board, a circuit board, a device, etc., and the bus to which it is connected is a DIS3 bus or a PSI5 bus.
[0052] Please refer to Figure 1 The simulation device includes: a control module 1 and at least one data transmission channel 2, each data transmission channel 2 includes: a signal detection circuit 21 and a signal output circuit 22 respectively connected to the control module 1, and the signal detection circuit 21 and the signal output circuit 22 are both connected to the bus. The control module 1 and the data transmission channel 2 can be respectively arranged on different circuit boards, or arranged on the same circuit board; Figure 1 The simulation device in the embodiment includes N data transmission channels 2, namely CH1 to CHN, where N is an integer greater than or equal to 1.
[0053] In the data transmission channel 2, the signal detection circuit 21 is used to detect the electrical parameters of the electrical signal on the bus, and feed back the detected electrical parameters to the control module 1. The electrical parameters fed back to the control module 1 by the signal detection circuit 21 include: current and voltage.
[0054] The control module 1 is used for:
[0055] Based on the node type of the target data transmission channel in at least one data transmission channel 2 on the bus, the first type of electrical parameter or the second type of electrical parameter fed back by the signal detection circuit 21 of the target data transmission channel is acquired as the current receiving signal.
[0056] A signal output circuit 22 generates a target signal representing information to be sent, and sends the target signal to a designated data transmission channel among at least one data transmission channel.
[0057] The signal output circuit of the specified data transmission channel is used to:
[0058] Based on the target signal, a specified electrical parameter of the electrical signal on the bus is controlled to send out the required information through the change of the specified electrical parameter, and the type of the specified electrical parameter is associated with the node type of the specified data transmission channel on the bus.
[0059] Specifically, the target data transmission channel is a data transmission channel that is currently configured to perform electrical parameter detection of electrical signals on the bus, and the detected first-type electrical parameters and / or second-type electrical parameters are fed back to the control module 1. When the control module 1 receives the first-type electrical parameters or the second-type electrical parameters fed back by the target data transmission channel, it will select the first-type electrical parameters or the second-type electrical parameters as the current received signal based on the node type on the bus where the target data transmission channel is configured.
[0060] For example, if the target data transmission channel is used as a first type of node on the bus, the current received signal is determined based on the first type of electrical parameter detected by the signal detection circuit of the target data transmission channel; wherein the first type of node includes a master device node, and the first type of electrical parameter is current, that is, when the target data transmission channel is configured to be used as a simulated master device node, the control module 1 selects the current fed back by the signal detection circuit in the target data transmission channel as the current received signal.
[0061] If the target data transmission channel is used as a second type of node on the bus, the current received signal is determined based on the second type of electrical parameters detected by the signal detection circuit of the target data transmission channel; wherein the second type of nodes include slave device nodes, and the second type of electrical parameters are voltages, that is, when the target data transmission channel is configured to simulate a slave device node, the control module 1 selects the signal detection circuit feedback voltage in the target data transmission channel as the current received signal.
[0062] If the target data transmission channel is used as a third type of node on the bus, the current received signal representing the information sent from the slave device node on the bus to the master device node is determined based on the first type of electrical parameters detected by the signal detection circuit of the target data transmission channel; if the target data transmission channel is used as a third type of node on the bus, the current received signal representing the information sent from the master device node on the bus to the slave device node is determined based on the second type of electrical parameters detected by the signal detection circuit of the target data transmission channel; the third type of node includes a monitoring node; the first type of electrical parameter is current, and the second type of electrical parameter is voltage. That is, when the target data transmission channel is configured as a monitoring node, the bus connected to the signal detection circuit of the target data transmission channel is respectively connected to the master device node and the slave device node, and the master device node and the slave device node exchange information based on the bus; the target data transmission channel simultaneously detects the current and voltage on the bus and feeds them back to the control module 1, and the control module 1 uses the current on the bus as the information sent from the slave device node on the bus to the master device node; and uses the voltage on the bus as the information sent from the master device node on the bus to the slave device node, and then these information can be stored and used for display or analysis, etc., to achieve the bus data monitoring function.
[0063] The designated data transmission channel is the data transmission channel currently configured for sending information to be sent to the bus. After generating a target signal representing the information to be sent, the control module 1 sends the target signal to the signal output circuit of the designated data transmission channel. The node type of the designated data transmission channel on the bus determines the designated electrical parameters of the bus electrical signal controlled by the signal output circuit of the designated data transmission channel. The signal output circuit of the designated data transmission channel controls the designated electrical parameters of the electrical signal on the bus based on the target signal, so that the designated electrical parameters of the electrical signal on the bus change, thereby sending the information to be sent.
[0064] For example, if the designated data transmission channel is used as a fourth type of node, then based on the target signal, the second type of electrical parameter of the electrical signal on the bus is controlled to send out the information to be sent through the change of the second type of electrical parameter. Among them, the fourth type of node includes a master device node, and the second type of electrical parameter is voltage; that is, the designated data transmission channel is configured to be used as a simulated master device node, and the information to be sent represented by the target signal generated by the control module 1 is the information that the simulated master device node needs to send to the real slave device node, and its signal output circuit is used to control the voltage on the bus based on the target signal, so that the real slave device node (or other simulated slave device node) can obtain the information sent by the simulated master device node based on the detected change in the voltage on the bus.
[0065] If the designated data transmission channel is used as a fifth type of node, then based on the target signal, the first type of electrical parameter of the electrical signal on the bus is controlled to send out the information to be sent out through the change of the first type of electrical parameter. Among them, the fifth type of node includes a slave device node, and the first type of electrical parameter is current; that is, the designated data transmission channel is configured to be used as a simulated slave device node, and the information to be sent represented by the target signal generated by the control module 1 is the information that the simulated slave device node needs to send to the real master device node, and its signal output circuit is used to control the current on the bus based on the target signal, so that the real master device node (or other simulated master device node) can obtain the information sent by the simulated slave device node based on the detected change of the current on the bus.
[0066] Furthermore, the fourth category of nodes also includes a first debugging node, and the fifth category of nodes also includes a second debugging node; when the designated data transmission channel is used as a first debugging node, the information to be sent is information to be sent to one or more slave device nodes on the bus (for example, instructions for debugging); when the designated data transmission channel is used as a second debugging node, the information to be sent is information to be sent to one or more master device nodes on the bus (for example, instructions for debugging).
[0067] It should be noted that the above-mentioned target data transmission channel and the designated data transmission channel may be the same data transmission channel or different data transmission channels.
[0068] In a single data transmission channel of the simulation device of this embodiment, a signal detection circuit for detecting the electrical parameters of the electrical signal in the bus and a signal output circuit for controlling the electrical parameters of the electrical signal in the bus are integrated, that is, a single data transmission channel can complete the electrical parameter detection of both voltage and current electrical signals, and a single data transmission channel can also control the electrical parameters of both current and voltage electrical signals on the bus to produce corresponding changes. Therefore, the simulation device can be used to simulate master device nodes and slave device nodes at the same time, and the number of master device nodes and slave device nodes that can be simulated simultaneously by the simulation device can be controlled by setting the number of data transmission channels. Therefore, a single simulation device can be used to build multiple simulation environments at the same time, greatly improving the simulation efficiency.
[0069] Please refer to Figure 2 , the simulation device can be used to realize four functions, which are described below:
[0070] Function one, the simulation device is used to simulate a slave device node. Taking the above-mentioned target data transmission channel and the specified data transmission channel as the same data transmission channel CHx as an example, that is, the node type of the data transmission channel CHx on the bus is a slave device node, and the signal detection circuit and signal output circuit of the data transmission channel CHx are both connected to the bus, and signal interaction is performed with the real master device node (or other simulated master device node) through the bus. The real master device node (or other simulated master device node) controls the voltage change on the bus to send the information needed to be sent to the slave device node. This information, for example, is a control instruction of the master device node to the slave device node, or it can be a request instruction of the master device node requesting the slave device node to report information; the simulation device is used to simulate the slave device node, and the control module 1 selects the voltage fed back by the signal detection circuit of the data transmission channel CHx as the current received signal, and the current received signal represents the information sent by the master device node on the bus to the slave device node; the target signal generated by the control module 1 represents the information to be sent, which is the information sent by the slave device node on the bus to the master device node. This information can be feedback information generated by the slave device node based on the information sent by the master device node, or it can be information that the slave device node needs to report to the master device node. The signal output circuit of the data transmission channel CHx controls the current on the bus based on the target signal, and the master device node detects the current on the bus to obtain the information sent by the simulated slave device node.
[0071] For example, the simulation device is used as a simulation sensor, and the sensor is connected to an external ECU through bus communication. The sensor can inject the stored or generated sensor data information back into the ECU through the bus to test the ECU or verify the algorithm, or test the bus after sending it to the bus. Furthermore, the simulation device can also be used as an I / O board in the HIL test system, which is used to directly or indirectly connect between the RTPC and the device under test (such as the ECU) to perform signal interaction between the RTPC and the device under test and complete the test of the device under test.
[0072] Function two, the simulation device is used as a simulated master device node. Taking the above-mentioned target data transmission channel and the specified data transmission channel as the same data transmission channel CHy as an example, that is, the node type of the data transmission channel CHy on the bus is a master device node, and the signal detection circuit and signal output circuit of the data transmission channel CHy are both connected to the bus, and signal interaction is carried out with the real slave device node (or other simulated slave device node) through the bus. When the simulation device is used as the simulated master device node, the target signal generated by the control module 1 represents the information to be sent, which is the information sent from the master device node on the bus to the slave device node. This information can be, for example, a control instruction of the master device node to the slave device node, or a request instruction of the master device node requesting the slave device node to report information. The signal output circuit of the data transmission channel Chy controls the voltage change on the bus based on the target signal to send the information required to be sent to the slave device node, and the slave device node detects the voltage on the bus to obtain the information sent by the master device node; the signal detection circuit of the data transmission channel Chy detects the current on the bus as the current receiving signal, and the current receiving signal represents the information sent from the slave device node on the bus to the master device node. This information can be feedback information generated by the slave device node based on the information sent by the master device node, or it can be information that the slave device node needs to report to the master device node.
[0073] For example, the simulation device is used as a simulation ECU and is connected to an external sensor through a bus. The external sensor reports the collected data information to the simulation device of the simulation ECU through the bus. The simulation device of the simulation ECU can collect the data information collected by the sensor. The collected sensor data can be stored on a disk for use in other scenarios (for example, for injection back into the ECU). Furthermore, the simulation device can be connected between a PC used for data collection and the sensor, and the simulation device can directly upload the collected sensor data to the PC.
[0074] Function three, the simulation device is used as a monitoring node. For example, a signal detection circuit of a data transmission channel CHz of the simulation device is connected to the bus between the master device node and the slave device node. The node type of the data transmission channel CHz on the bus is a monitoring node. The master device node can control the voltage on the bus to send the information to be sent to the slave device node. This information can be, for example, a control instruction of the master device node to the slave device node, or a request instruction of the master device node requesting the slave device node to report information; the signal detection circuit of the data transmission channel CHz detects the voltage on the bus and obtains the information sent by the master device node to the slave device node as the current receiving signal; the slave device node can control the current on the bus to send the information to be sent to the master device node. This information can be feedback information generated by the slave device node based on the information sent by the master device node, or it can be information that the slave device node needs to report to the master device node. The signal detection circuit of the data transmission channel CHz detects the current on the bus and obtains the information sent by the slave device node to the master device node as the current receiving signal. From the above, the simulation device can detect the information interacting between the master device node and the slave device node on the bus, and realize the data monitoring function; further, the monitored information can be bypassed to other devices, such as the PC connected to the simulation device, for storage, display or analysis.
[0075] Function four, the simulation device is used to debug the master device node or the slave device node. Specifically, the simulation device can also be used as a debugging node to debug one or more real slave device nodes (or other simulated slave device nodes) on the bus, one of which is a data transmission channel configured as a node type on the bus as a first debugging node, and the target signal generated by the control module 1 represents the information to be sent as a debugging instruction for debugging the one or more real slave device nodes (or other simulated slave device nodes); the simulation device can also be used as a slave device node to debug one or more real master device nodes (or other simulated master device nodes) on the bus, one of which is a data transmission channel configured as a node type on the bus as a second debugging node, and the target signal generated by the control module 1 represents the information to be sent as a debugging instruction for debugging the one or more real master device nodes (or other simulated master device nodes).
[0076] For example, in one debugging scenario, the data transmission channel configured as a debugging node in the simulation device is connected between the master device node and the slave device node as an intermediate device for debugging, and is used to exchange various debugging information between the master device node and the slave device node. For example, the data transmission channel is connected between the ECU and the sensor as an intermediate device for debugging. The data transmission channel can be connected to one or more sensors. When developing sensors, the ECU issues various debugging commands to the specified sensors through the data transmission channel and observes the responses of the sensors. In another debugging scenario, the control module in the simulation device is connected to the PC, and the data transmission channel configured as a debugging node is connected to the master device node and / or the slave device node, such as the ECU and / or the sensor. Under the control of the PC, various debugging commands can be issued to the ECU and / or the sensor to debug the ECU and / or the sensor under development.
[0077] In addition, the simulation device in this embodiment can also realize the fault injection function during the test process, that is, when simulating the master device node or the slave device node, it can simulate possible faults, such as resistance-capacitance faults, electrical faults, etc.
[0078] Combine the following Figure 3 , the simulation device of this embodiment is further described in detail, wherein only any data transmission channel 2 in the simulation device is schematically taken as an example.
[0079] The control module 1 may include at least one of the following: a processor, a microcontroller, and an FPGA circuit; Figure 2 The control module 1 includes an FPGA circuit, which includes: a CAN bus or a CANFD bus, an Ethernet module, a protocol implementation module, an EEPROM memory, and a protocol encoding module. The FPGA circuit can be connected to a PC and an RTPC via the CAN bus or the CANFD bus and the Ethernet module. The FPGA circuit is also connected to a signal detection circuit 21 and a signal output circuit 22 in each data transmission channel 2. Figure 3 In the subsequent figures, the control module 1 is taken as an FPGA circuit as an example, but the present invention is not limited thereto.
[0080] The signal detection circuit 21 includes: an analog-to-digital converter 211 connected to the control module 1, and a current detection circuit 212 and a voltage detection circuit 213 connected to the analog-to-digital converter 211. It should be noted that any existing circuit capable of realizing current detection and voltage detection can be used in the present application to realize the detection of current signals and voltage signals.
[0081] The current detection circuit 212 is used to detect a current signal in the bus, and send the detected first current signal to the analog-to-digital converter 211 .
[0082] The analog-to-digital converter 211 is used to perform analog-to-digital conversion on the first current signal, and feed back the obtained first type of electrical parameters to the control module 1. The first type of electrical parameters is current.
[0083] The voltage detection circuit 213 is used to detect a voltage signal in the bus, and send the detected first voltage signal to the analog-to-digital converter 211 .
[0084] The analog-to-digital converter 211 is used to perform analog-to-digital conversion on the first voltage signal, and feed back the obtained second type of electrical parameters to the control module 1. The second type of electrical parameters is voltage.
[0085] The voltage signal detected and fed back by the voltage detection circuit 213 is detected by the analog-to-digital converter 211, which can automatically adapt to the bus voltage values of different master device nodes, and then decoded by the control module 1, thereby realizing the analysis of different bus voltage signals.
[0086] In one example, the current detection circuit 212 includes: a first amplifying module 2121 and a current detection module 2122 , wherein the input end of the first amplifying module 2121 is connected to the output end of the current detection module 2122 , and the output end of the first amplifying module 2121 is connected to an input end of the analog-to-digital converter 211 .
[0087] The current detection module 2122 is used to detect the current signal in the bus, and feed back the detected second current signal or information representing the second current signal to the first amplification module 2121 .
[0088] The first amplifying module 2121 is used to amplify the second current signal to obtain a first current signal and output it to the analog-to-digital converter 211 .
[0089] In one example, the voltage detection circuit 213 includes: a voltage detection module 2131 and a voltage divider module 2132 , the output end of the voltage detection module 2131 is connected to the voltage divider module, and the output end of the voltage divider module 2132 is connected to another input end of the analog-to-digital converter 211 .
[0090] The voltage detection module 2131 is used to detect the voltage signal of the bus, and send the detected second voltage signal to the voltage division module 2132 .
[0091] The voltage dividing module 2132 is used to divide the second voltage signal to obtain a first voltage signal and output the first voltage signal to the analog-to-digital converter 1 .
[0092] exist Figure 3In the signal detection circuit 21, two detection paths are formed, one is a current detection path, including an analog-to-digital converter 211, a first amplification module 2121 and a current detection module 2122; the other is a voltage detection path, including an analog-to-digital converter 211, a voltage divider module 2132 and a voltage detection module 2131.
[0093] In one example, the signal output circuit 22 includes: a digital-to-analog converter 221 connected to the control module, and a voltage output circuit 222 and a current control circuit 223 respectively connected to the digital-to-analog converter 221. It should be noted that any existing circuit capable of realizing current control and voltage output can be used in the present application to realize signal output.
[0094] The digital-to-analog converter 221 is used for:
[0095] The target signal representing the information sent from the master device node to the slave device node on the bus is converted into a first analog signal and sent to the voltage output circuit 222 .
[0096] The target signal representing the information sent from the slave device node to the master device node on the bus is converted into a second analog signal and sent to the current control circuit 223 .
[0097] The voltage output circuit 222 is used to control the second type of electrical parameter of the electrical signal on the bus based on the first analog signal, so as to send out the information to be sent through the change of the second type of electrical parameter; wherein the second type of electrical parameter is voltage.
[0098] The current control circuit 223 is used to control the first type of electrical parameter of the electrical signal on the bus based on the second analog signal, so as to send out the information to be sent out through the change of the first type of electrical parameter, wherein the first type of electrical parameter is current.
[0099] In an example, the voltage output circuit 222 includes: a second amplification module 2221 and a voltage output module 2222 , the input end of the second amplification module 2221 is connected to the first output end of the digital-to-analog converter 221 , and the output end of the second amplification module 2221 is connected to the voltage output module 2222 .
[0100] The second amplification module 2221 is used to amplify the received first analog signal and output the amplified signal to the voltage output module 2222 .
[0101] The voltage output module 2222 is used to control the second type of electrical parameters of the electrical signal on the bus based on the amplified first analog signal.
[0102] In one example, the current control circuit 223 includes: a third amplifying module 2231 and a current control module 2232 . The input end of the third amplifying module 2231 is connected to the second output end of the digital-to-analog converter 221 , and the output end of the third amplifying module 2231 is connected to the current control module 2232 .
[0103] The third amplifying module 2231 is used to amplify the received second analog signal and output the amplified signal to the current control module 2232 .
[0104] The current control module 2232 is used to control the first type of electrical parameters of the electrical signal on the bus based on the amplified second analog signal.
[0105] Two output paths are formed in the signal output circuit 22. One is a current control path, including a digital-to-analog converter 221, a third amplifying module 2231 and a current control module 2232; the other is a voltage output path, including a digital-to-analog converter 221, a second amplifying module 2221 and a voltage output module 2222.
[0106] Please refer to Figure 4 The simulation device is used as a simulation master device node, in which the node type of the data transmission channel on the bus is a master device node, and the current detection module 2122 and the voltage output module 2222 in the data transmission channel are both connected to the slave device node through the bus.
[0107] The simulation device uses the above-mentioned voltage output path to control the voltage on the bus. The specific process is: the control module 1 generates a corresponding target signal based on the required information to be sent. The target signal is a digital signal. The target signal is sent to the digital-to-analog converter 221. The digital-to-analog converter 221 converts the target signal from a digital signal into a first analog signal, and then transmits it to the second amplification module 2221. After being amplified by a set multiple by the second amplification module 2221, it is transmitted to the voltage output module 2222. The voltage output module 2222 controls the voltage on the bus based on the amplified first analog signal. The slave device node can detect the voltage on the bus, and obtain the information sent by the master device node simulated by the simulation device through the detected voltage changes.
[0108] The simulation device can use the above-mentioned current detection path to detect the current in the bus. The specific process is: the current detection module 2122 detects the current signal on the bus to obtain a second current signal sent from the device node. The second current signal is transmitted to the first amplification module 2121 and amplified to obtain a first current signal. The first current signal is transmitted to the analog-to-digital converter 211. The first current signal is an analog signal. The analog-to-digital converter 211 converts it into a corresponding digital signal and feeds it back to the control module 1. The control module 1 can obtain the information sent from the device node on the bus based on the digital signal sent by the analog-to-digital converter 211.
[0109] Please refer to Figure 5 The simulation device is used to simulate a slave device node, in which the node type of the data transmission channel on the bus is a slave device node, and the voltage detection module 2131 and the current control module 2232 in the data transmission channel are both connected to the master device node through the bus.
[0110] The simulation device uses the above-mentioned current control path to control the current on the bus to send the required information to the slave device node; the specific process is: the control module 1 generates a corresponding target signal based on the information to be sent, and the target signal is a digital signal. The target signal is sent to the digital-to-analog converter 221, and the digital-to-analog converter 221 converts the target signal from a digital signal into a second analog signal and sends it to the third amplification module 2231. After amplification by the third amplification module 2231, it is input into the current control module 2232. The current control module 2232 controls the current on the bus based on the second analog signal. The master device node can detect the current from the bus, and obtain the information sent by the slave device node simulated by the simulation device based on the detected current changes on the bus.
[0111] The simulation device uses the above-mentioned voltage detection path to detect the voltage in the bus. The specific process is: the voltage detection module 2131 detects the voltage signal on the bus, obtains the second voltage signal sent by the master device node and transmits it to the voltage divider module 2132. After voltage division by the voltage divider module 2132, a first voltage signal suitable for inputting the analog-to-digital converter 211 is obtained and input into the analog-to-digital converter 211. The first voltage signal is an analog signal. The analog-to-digital converter 211 converts it into a corresponding digital signal and feeds it back to the control module 1. The control module 1 can obtain the information sent by the master device node on the bus based on the digital signal sent by the analog-to-digital converter 211.
[0112] The second embodiment of the present invention relates to a simulation device. Compared with the first embodiment, the main improvement of this embodiment is that the simulation device can simulate the signal interaction between one or more slave device nodes and the master device node.
[0113] Among all the data transmission channels included in the simulation device, one or more first data transmission channels are connected to the bus, the first data transmission channels are configured as a node type of a slave device node on the bus, the first data transmission channels are connected to a master device node through the bus, and the simulation device simulates a set number of slave device nodes through the first data transmission channels, wherein different first data transmission channels can be connected to different master device nodes, respectively, and testing of multiple master device nodes can be achieved; any first data transmission channel will be used as an example for explanation later.
[0114] In the simulation device, the control module 1 can receive a simulation configuration signal from a connected host computer or PC, parse the simulation configuration information and then store it. Taking the control module 1 as the FPGA circuit in the first embodiment as an example, the parsed simulation configuration information is stored in the EEPROM. The simulation configuration information includes the number of slave device nodes simulated by the first data transmission channel, the type of each slave device node and the wiring method of each slave device node.
[0115] As described above, the control module 1 is used to simulate a set number of slave device nodes to perform signal interaction with the master device nodes connected to the bus based on the received simulation configuration signal and the first data transmission channel.
[0116] The signal interaction between the master device node and the simulation device simulating the slave device node can be mainly divided into the following three categories:
[0117] First, the master device node discovers the slave device nodes.
[0118] The control module 1 is used to obtain a first digital signal representing a current waveform corresponding to a set number of slave device nodes when receiving a third voltage signal representing a discovery command from a signal detection circuit in a first data transmission channel, and send the first digital signal to a signal output circuit;
[0119] The signal output circuit 22 is used to control the bus to generate a current with a current waveform corresponding to a set number of slave device nodes based on the first digital signal.
[0120] In the existing technology, for a master device node, it can be connected to one or more slave device nodes through a bus (multiple slave device nodes can be connected in series or in parallel). When determining the information of the connected slave device node, it first performs device discovery. The master device node sends a voltage signal representing the discovery command to the bus. After receiving the voltage signal representing the discovery command, each slave device node will increase the current in the bus to a set threshold. If it is detected that the bus current reaches the set threshold during the process of increasing the bus current, the current will stop increasing and return the current to the initial current. If there are multiple slave device nodes, slave device nodes of different orders will stop increasing the current at different times, thereby superimposing corresponding current waveforms on the bus. The waveforms adjusted by each slave device node will be superimposed on the bus to form a final current waveform. The master device node can determine the number of currently connected slave device nodes based on the detected current waveform.
[0121] In this embodiment, the simulation device can preset the current waveform obtained by superimposing the required number of slave device nodes for simulation, or can preset multiple current waveforms obtained by superimposing different numbers of slave device nodes, and then select the required current waveform based on the number of slave device nodes configured for simulation. Subsequently, the simulation device sends the signal of the current waveform obtained by superimposing the required number of slave device nodes for simulation to the signal output circuit in the first data transmission channel, and the signal output circuit controls the current on the bus to generate the current waveform corresponding to the set number of slave device nodes, so that the master device node can determine the number of slave device nodes simulated by the simulation device according to the detected current waveform, for example, based on the slope of the current rise and the number of current inflection points in the current waveform to determine the number of slave device nodes simulated. Based on the above process, a single first data transmission channel can be used to form a current waveform after superimposing a set number of slave device nodes on the bus without simulating the entire superposition process, that is, without using multiple data transmission channels, the response results of multiple slave device nodes to the device discovery command can be achieved, that is, multiple slave device nodes are simulated using a single first data transmission channel.
[0122] In addition, the simulation configuration information stored in the simulation device includes a list of slave device nodes to be simulated, thereby configuring the response order of each slave device node in the list; the response order of each slave device node also determines the address of each slave device node on the bus (which can also be understood as the identification of the slave device node), that is, it can also be understood that the address of each slave device node on the bus can be preset in advance, and the preset information can be recorded in the slave device node list, or each slave device node can be bound to the corresponding preset information, and the slave device nodes with different addresses also determine the response order.
[0123] Second, the master device node exchanges commands with the slave device node simulated by the simulation device.
[0124] The control module 1 is used for obtaining a second digital signal representing a response of the designated slave device node to the control command and sending it to the signal output circuit when receiving a control command representing the control command to the designated slave device node from the signal detection circuit in the first data transmission channel. The designated slave device node may be one or more of the slave device nodes simulated by the simulation device.
[0125] The signal output circuit 22 is used to control the bus to generate a current in response to the control command based on the second digital signal.
[0126] There are two types of command interactions between the master device node and the slave device node. One is that the master device node sends a preset instruction, and the slave device node gives a fixed response. At this time, the simulation configuration signal received by the simulation device contains the responses of each simulated slave device node corresponding to different preset instructions. When the control module 1 receives a control command for a specified slave device node, it obtains the response corresponding to the control command, generates a second digital signal representing the response, and sends the second digital signal to the signal output circuit 22. The signal output circuit 22 controls the bus current to produce a change corresponding to the response, so that the master device node obtains the response of the specified slave device node based on the current signal obtained by detection. For example, the designated device is slave device node A, and the simulation device receives instruction x sent by the master device node to open function 1 of slave device node A. The simulation device does not need to execute instruction x, but directly obtains the response y corresponding to instruction x and sends it to the master device node through the bus. Response y can be the success or failure of opening function 1, or the state of function 1.
[0127] The other is a control command that can be executed by the simulation device sent by the master device node. The simulation device directly executes the control command, and the execution result can be the state of the designated slave device node after executing the control command, and the execution result of the control command is used as a response, a second digital signal representing the response is generated, and the second digital signal is sent to the signal output circuit 22, and the signal output circuit 22 controls the bus current to produce a change corresponding to the response, thereby the master device node obtains the execution result of the designated slave device node executing the control command based on the current signal detected. For example, the designated device is slave device node B, and the slave device node B simulated by the simulation device currently reports data in a first state (the state limits the frequency and period of the reported data, etc.), the master device node sends a control command for controlling the slave device node B to report data in a second state, the control module 1 adjusts the state of the simulated slave device node B reporting data to the second state, and reports data in accordance with the adjusted second state, then the response can be the state of the slave device node B currently reporting data, i.e., the second state.
[0128] Third, the simulation device simulates reporting data from the device node to the master device node.
[0129] The control module 1 is further configured to send a third digital signal representing data to be reported by each slave device node to the signal output circuit 22 based on the reporting time information of each slave device node.
[0130] The signal output circuit 22 is used to control the bus to generate a current representing the data to be reported by each slave device node based on the third digital signal.
[0131] The simulation device receives a data source sent from a host computer, and the data source includes data that needs to be reported by each slave device node simulated by the simulation device; each slave device node simulated by the simulation device has corresponding reporting time information, and the reporting time information defines at what point in time and within what time period the corresponding data is reported; the reporting time information can be the time when the data is collected, or it can be the time interval for data reporting, such as the time interval between two adjacent data packets in the process of a slave device node reporting data; thus, for each slave device node simulated, the control module 1 can send a third digital signal representing the required reported data to the signal output circuit 22 at a specified time point according to the reporting time information of the slave device node, and the signal output circuit 22 controls the bus current to produce changes corresponding to the required reported data, thereby the master device node obtains the data reported by the slave device node based on the current signal detected.
[0132] The above-mentioned reporting time information may be preset by the host computer when sending the data source of each slave device node, that is, the reporting time information of each data is configured in advance by the host computer and then sent to the simulation device together with the data.
[0133] Alternatively, the simulation device only stores the data that needs to be reported by each simulated slave device node, and the master device node sends the reporting time information of each slave device node to each simulation device through the bus. The reporting time information is, for example, the time interval for reporting data. The simulation device can simulate each slave device node to report data according to the corresponding time interval. The data reporting here can be understood as data injection, which can be used for injection systems, HIL systems, etc.
[0134] Among them, the data source of each slave device node sent by the upper computer to the simulation device can be the data actually collected by multiple real slave device nodes during the test process. At this time, the slave device node simulated by the simulation device can be the same or similar to the real slave device node used in the test.
[0135] In some embodiments, the data reported by the slave device node is the data collected by the target slave device node corresponding to the slave device node among the set number of target slave device nodes connected to the same bus, and the reporting time information of each slave device node is the time when the corresponding target slave device node collects data. That is, multiple real target slave device nodes are connected to the same bus (for example, DSI3 bus) for data collection, so that the reporting time information of each slave device node can be obtained at the same time, and the simulation device can simulate the slave device node to report data based on this reporting time information to avoid conflicts in the time information of the data reported by each slave device node; however, it is not limited to this, and each real slave device node can also be connected to different buses, and the reporting time information of each slave device node is subsequently allocated and configured.
[0136] The following is a schematic diagram of a module of a simulation device in this application, which is as follows:
[0137] Please refer to Figure 6 The simulation device receives data and control streams of its own protocol based on Ethernet (e.g., a low-speed IO card interface communication protocol of a HIL platform) sent by the host computer through the PHY chip, so that the simulation device can realize the functions of simulating master device nodes, simulating slave device nodes, and monitoring bus data based on the configuration of the host computer; wherein, Figure 6 Take the simulation device in the monitoring mode as an example, which is connected to the bus between the master device node and the slave device node.
[0138] The proprietary protocol module is used to parse data and control flow to obtain proprietary protocol data. The proprietary protocol data is transmitted from the recorder output module REC to the proprietary protocol parsing module. The proprietary protocol parsing module parses the proprietary protocol data to distinguish data flow and control flow. The data flow is distributed to the data distinction module DATA_DISTRI. The data flow is stored in the EEPROM memory by the EEPROM control module EEPROM CTR; the control flow is sent to the mode control module MODE_CTR to enable the system control module SYSTEM_CTR. The MODE_CTR module can perform three mode judgments: simulating master device nodes, simulating slave device nodes, and monitoring bus data. By changing the initial setting of the SYSTEM_CTR module, the SYSTEM_CTR module acts as a controller to send control signals to control modules related to data flow to collect or output, thereby realizing the functions of simulating master device nodes, simulating slave device nodes, and monitoring bus data; the discovery mode module DISC_MODE is used when the simulation device simulates slave device nodes. When receiving the discover command sent by the master device node, according to the simulated slave device node list (configured by the host computer), it simulates the response in sequence, so that the master device node believes that the slave device node configured by the host computer has been mounted on the bus; the data path module DATA_PATH is used to arrange corresponding paths for different input data; the SYS_PT module is used to receive register commands, enable the EEPROM to perform basic data initialization, or directly control the lower-level modules to output the bus, collect and report.
[0139] The simulation device can be used to implement at least the following two functions.
[0140] First, generate a data source, which can be generated by using a software algorithm or collecting a real data source. The following is an example of collecting a real data source of a vehicle. The simulation device is connected to the bus between the master device node (such as an ECU) and the slave device node (such as a sensor, including but not limited to a camera, a lidar sensor, etc.) to monitor data. During the driving process of the vehicle, the signal on the bus is converted by ADC and DAC, and then decoded by the TRI character decoding module TRI_SYMBL_REC and the Manchester decoding module MACNCHEST_REC to generate a data stream and pre-process it with the data management module DATA_TR and transmit it to the encoding module TR, and save the environmental data on the simulation device, or transmit it to the host computer through the PHY chip for storage.
[0141] Second, data is injected back to realize simulation restoration. The host computer configures the master device node or slave device node simulation, and transmits the data source to the REC module through the PHY chip. After being parsed by the proprietary protocol _ANLY module, the data stream is transmitted by the DATA_DISTRI module to the Manchester decoding and encoding module MANCHEST_TR and the TRI character encoding module TRI_SYMBL_TR for signal encoding. The DAC is controlled to output the simulated bus signal and transmit it to the bus to simulate the operation of a real vehicle.
[0142] A third embodiment of the present invention relates to a test system, comprising the simulation device in the first or second embodiment, and a bus connected to the simulation device; the simulation device is used for:
[0143] Detecting electrical parameters of an electrical signal on the bus by a signal detection circuit in at least one data transmission channel included in the simulation device;
[0144] Based on the node type of the target data transmission channel on the bus, selectively obtaining a first type of electrical parameter or a second type of electrical parameter on the bus detected by a signal detection circuit of the target data transmission channel in at least one data transmission channel as a current receiving signal;
[0145] A signal output circuit of a designated data transmission channel in at least one data transmission channel is used to generate a target signal representing the information to be sent, and a designated electrical parameter of the electrical signal on the bus is controlled to send the information to be sent through the change of the designated electrical parameter, and the type of the designated electrical parameter is associated with the node type of the designated data transmission channel on the bus.
[0146] In one example, a target slave device node among the slave device nodes connected to the bus can control the bus to generate an electrical signal corresponding to the first type of electrical parameter;
[0147] The target master device node among the master device nodes connected to the bus can control the bus to generate an electrical signal corresponding to the second type of electrical parameters;
[0148] The simulation device is specifically used for:
[0149] When the target data transmission channel is used as a first type of node on the bus, determining the current received signal based on the first type of electrical parameter detected by the signal detection circuit of the target data transmission channel;
[0150] When the target data transmission channel is used as a second type of node on the bus, the current receiving signal is determined based on the second type of electrical parameter detected by the signal detection circuit of the target data transmission channel;
[0151] Among them, the first type of nodes include master device nodes, and the second type of nodes include slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
[0152] In another example, the simulation device is specifically used to:
[0153] When the target data transmission channel is used as a third type of node on the bus, a current receiving signal representing information sent from a slave device node connected to the bus to a master device node is determined based on the first type of electrical parameter detected by a signal detection circuit of the target data transmission channel;
[0154] When the target data transmission channel is used as a third type of node on the bus, a current receiving signal representing information sent from a master device node connected to the bus to a slave device node is determined based on the second type of electrical parameter detected by a signal detection circuit of the target data transmission channel;
[0155] The third type of nodes includes monitoring nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
[0156] In yet another example, the simulation device is specifically configured to:
[0157] When the designated data transmission channel is used as a fourth type of node, based on the target signal, the second type of electrical parameter of the electrical signal on the bus is controlled to send information to at least one designated slave device node among the slave device nodes connected to the bus through the change of the second type of electrical parameter;
[0158] When the designated data transmission channel is used as a fifth type of node, based on the target signal, the first type of electrical parameter of the electrical signal on the bus is controlled to send information to at least one designated master device node among the master device nodes connected to the bus through the change of the first type of electrical parameter;
[0159] The fourth type of nodes includes master device nodes, and the fifth type of nodes includes slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
[0160] Furthermore, the fourth type of node also includes a first debugging node, and the fifth type of node also includes a second debugging node;
[0161] In the emulator:
[0162] When the designated data transmission channel is used as the first debugging node, the information to be sent is information to be sent to one or more slave device nodes on the bus;
[0163] When the designated data transmission channel is used as the second debugging node, the information to be sent is information to be sent to one or more master device nodes on the bus.
[0164] Since the first and second embodiments correspond to this embodiment, this embodiment can be implemented in conjunction with the first and second embodiments. The relevant technical details mentioned in the first and second embodiments are still valid in this embodiment, and the technical effects that can be achieved in the first and second embodiments can also be achieved in this embodiment. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the first and second embodiments.
[0165] Preferred embodiments of the present invention have been described above in detail, 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.
[0166] 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 considered limited to the specific embodiments disclosed in the specification and the 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 simulation device, characterized in that: include: A control module and at least one data transmission channel, each of the data transmission channels comprising: a signal detection circuit and a signal output circuit for connecting to a bus; The signal detection circuit is used for: Detecting electrical parameters of the electrical signal on the bus, and feeding back the detected electrical parameters to the control module; The control module is used for: Based on the node type of the target data transmission channel in the at least one data transmission channel on the bus, obtaining a first type of electrical parameter or a second type of electrical parameter fed back by a signal detection circuit of the target data transmission channel as a current receiving signal; wherein the node type is a master device node or a slave device node, if the first type of electrical parameter is current, then the second type of electrical parameter is voltage, and if the first type of electrical parameter is voltage, then the second type of electrical parameter is current; generating a target signal representing information to be sent, and sending the target signal to a signal output circuit of a designated data transmission channel among the at least one data transmission channel; The signal output circuit of the designated data transmission channel is used for: Based on the target signal, a designated electrical parameter of the electrical signal on the bus is controlled to send out the information to be sent out by changing the designated electrical parameter, and the type of the designated electrical parameter is associated with the node type of the designated data transmission channel on the bus.
2. The simulation device according to claim 1, characterized in that: When the control module selectively obtains the first type of electrical parameter or the second type of electrical parameter fed back by the signal detection circuit of the target data transmission channel in the at least one data transmission channel as the current received signal based on the node type of the target data transmission channel in the bus, the control module is specifically used to: If the target data transmission channel is used as a first type of node on the bus, determining a current received signal based on a first type of electrical parameter detected by a signal detection circuit of the target data transmission channel; If the target data transmission channel is used as a second type of node on the bus, determining a current received signal based on a second type of electrical parameter detected by a signal detection circuit of the target data transmission channel; Among them, the first type of nodes include master device nodes, and the second type of nodes include slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
3. The simulation device according to claim 1, characterized in that: When the control module selectively obtains the first type of electrical parameter or the second type of electrical parameter fed back by the signal detection circuit of the target data transmission channel in the at least one data transmission channel as the current received signal based on the node type of the target data transmission channel in the bus, the control module is specifically used to: If the target data transmission channel is used as a third type of node on the bus, then: Determine a current received signal representing information sent from a slave device node on the bus to a master device node based on a first type of electrical parameter detected by a signal detection circuit of the target data transmission channel; If the target data transmission channel is used as a third type of node on the bus, determining a current received signal representing information sent from a master device node to a slave device node on the bus based on a second type of electrical parameter detected by a signal detection circuit of the target data transmission channel; The third type of nodes include monitoring nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
4. The simulation device according to claim 1, characterized in that: The signal output circuit of the designated data transmission channel controls a designated electrical parameter of the electrical signal on the bus based on the target signal so as to send the information to be sent through the change of the designated electrical parameter, specifically for: If the designated data transmission channel is used as a fourth type of node, then based on the target signal, the second type of electrical parameter of the electrical signal on the bus is controlled to send the information to be sent through the change of the second type of electrical parameter; If the designated data transmission channel is used as a fifth type of node, then based on the target signal, a first type of electrical parameter of the electrical signal on the bus is controlled to send the information to be sent through a change of the first type of electrical parameter; Among them, the fourth type of nodes include master device nodes, and the fifth type of nodes include slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
5. The simulation device according to claim 4, characterized in that: The fourth type of node also includes a first debugging node, and the fifth type of node also includes a second debugging node; When the designated data transmission channel is used as the first debugging node, the information to be sent is information to be sent to one or more slave device nodes on the bus; When the designated data transmission channel is used as the second debugging node, the information to be sent is information to be sent to one or more master device nodes on the bus.
6. The simulation device according to any one of claims 2 to 5, characterized in that: When the target data transmission channel is used as the master device node, the current received signal represents information sent from the slave device node on the bus to the master device node; When the designated data transmission channel is used as the master device node, the information to be sent is information sent from the master device node on the bus to the slave device node; When the target data transmission channel is used as the slave device node, the current received signal represents information sent from the master device node on the bus to the slave device node; When the designated data transmission channel is used as the slave device node, the information to be sent is information sent from the slave device node on the bus to the master device node.
7. The simulation device according to any one of claims 1 to 5, characterized in that: The bus is a DSI3 bus.
8. A testing system, characterized in that: include: The simulation device according to any one of claims 1 to 7, and a bus connected to the simulation device; The simulation device is used for: Detecting electrical parameters of the electrical signal on the bus through a signal detection circuit in at least one data transmission channel included in the simulation device; Based on the node type of the target data transmission channel on the bus, selectively acquiring a first type of electrical parameter or a second type of electrical parameter on the bus detected by a signal detection circuit of the target data transmission channel in the at least one data transmission channel as a current receiving signal; A signal output circuit of a designated data transmission channel among the at least one data transmission channel is used to control a designated electrical parameter of the electrical signal on the bus based on generating a target signal representing the information to be sent, so as to send the information to be sent by changing the designated electrical parameter, and the type of the designated electrical parameter is associated with the node type of the designated data transmission channel on the bus.
9. The test system according to claim 8, characterized in that: The simulation device is specifically used for: When the target data transmission channel is used as a first type of node on the bus, a current received signal is determined based on a first type of electrical parameter detected by a signal detection circuit of the target data transmission channel, wherein a target slave device node among slave device nodes connected to the bus controls the bus to generate an electrical signal corresponding to the first type of electrical parameter; When the target data transmission channel is used as a second type of node on the bus, the current received signal is determined based on the second type of electrical parameters detected by the signal detection circuit of the target data transmission channel, wherein the target master device node among the master device nodes connected to the bus controls the bus to generate an electrical signal corresponding to the second type of electrical parameters; Among them, the first type of nodes include master device nodes, and the second type of nodes include slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
10. The test system according to claim 8, characterized in that: The simulation device is specifically used for: When the target data transmission channel is used as a third type of node on the bus, a current receiving signal representing information sent from a slave device node connected to the bus to a master device node is determined based on the first type of electrical parameter detected by a signal detection circuit of the target data transmission channel; When the target data transmission channel is used as a third type of node on the bus, a current receiving signal representing information sent from a master device node connected to the bus to a slave device node is determined based on the second type of electrical parameter detected by a signal detection circuit of the target data transmission channel; The third type of nodes include monitoring nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
11. The test system according to claim 8, characterized in that: The simulation device is specifically used for: When the designated data transmission channel is used as a fourth type of node, based on the target signal, the second type of electrical parameter of the electrical signal on the bus is controlled, so as to send the information to be sent to at least one designated slave device node among the slave device nodes connected to the bus through the change of the second type of electrical parameter; When the designated data transmission channel is used as a fifth type of node, based on the target signal, a first type of electrical parameter of the electrical signal on the bus is controlled, so as to send the information to be sent to at least one designated master device node among the master device nodes connected to the bus through the change of the first type of electrical parameter; The fourth type of nodes include master device nodes, and the fifth type of nodes include slave device nodes; the first type of electrical parameter is current, and the second type of electrical parameter is voltage.
12. The test system according to claim 11, characterized in that: The fourth type of node also includes a first debugging node, and the fifth type of node also includes a second debugging node; In the simulation device: When the designated data transmission channel is used as the first debugging node, the information to be sent is information to be sent to one or more slave device nodes on the bus; When the designated data transmission channel is used as the second debugging node, the information to be sent is information to be sent to one or more master device nodes on the bus.
Citation Information
Patent Citations
Signal simulation device and signal board card
CN103577243A
Detecting system and method for virtual synchronous generator grid connection based on hardware-in-the-loop simulation
CN106650072A
Automatic simulation system and method
CN107367956A
Simulation machine and simulation test method
CN113032306A
Construction method of industrial simulation role, simulation system and industrial production line
CN115563745A
