EMC experiment multichannel parallel monitoring system and application method thereof
By designing EMC experimental equipment and host computers with multiple bus interfaces, parallel monitoring of multiple CAN, LIN and Ethernet is realized, solving the problems of tight resources and long test cycles in the existing technology, and improving the utilization of laboratory resources rate and test efficiency.
Patent Information
- Application Number
- CN202411241982.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-06
AI Technical Summary
When existing EMC experimental equipment faces monitoring of multiple CAN, multiple LIN and multiple Ethernet, the resources are tight and the test cycle is long. In particular, old equipment can only support testing of all CAN, LIN and Ethernet at the same time. This results in the test cycle of the controller under test that is too long and occupies laboratory resources.
An EMC experimental multi-channel parallel monitoring system is designed, using a control chip and a computer with multiple bus interfaces, and is connected to the measured controller through multiple CAN, LIN and Ethernet buses to realize parallel monitoring of the multi-bus. Supports the upper computer to configure experimental equipment to meet different experimental requirements.
It realizes parallel monitoring of multiple CAN, multiple LIN and multiple Ethernet, improves system flexibility, shortens test cycles, reduces laboratory resources, and effectively shortens tests when laboratory resources are insufficient time.
Smart Images

Figure CN119087874A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of automobile electronic testing, and in particular relates to an EMC experiment multi-channel parallel monitoring system and an application method thereof. Background Art
[0002] EMC refers to electromagnetic compatibility, which refers to the ability of electronic equipment to work normally in an electromagnetic environment without causing adverse effects on the surrounding environment. EMC testing is to evaluate the electromagnetic interference (EMI) and electromagnetic susceptibility (EMS) generated by electronic equipment when working in an electromagnetic environment, and is one of the most important indicators of product quality.
[0003] With the development of the automotive electronics industry, the number of electronic controllers on a vehicle is increasing, and the number of CAN, LIN and Ethernet integrated on a controller is also increasing. When conducting EMC experiments, the number of buses that need to be monitored by the device under test is also increasing. For example, the reference document (CN203909580U) discloses a multi-channel DC acquisition device, which is connected to the distribution automation terminal for communication. The multi-channel DC acquisition device includes a plurality of DC acquisition units for collecting DC data and a main processing unit for sending the read DC data to the distribution automation terminal through a CAN bus, an RS485 bus or a GPRS. The above reference document uses a CAN bus, an RS485 bus or a GPRS, and these buses need to be monitored during EMC experiments. However, the existing monitoring method still has defects in monitoring multiple buses: in the context of more and more buses that need to be monitored, the problem of resource shortage in the laboratory is particularly prominent, especially some laboratory equipment is relatively old and may only support one CAN, LIN and Ethernet test experiments at the same time. If the controller under test is a node such as a gateway, the required test cycle is really too long, and it also takes up laboratory resources. Summary of the invention
[0004] The present invention aims to overcome the deficiencies of the prior art and proposes an EMC experiment multi-channel parallel monitoring system and an application method thereof to achieve the following objectives: through the system and method of the present application, parallel monitoring of multiple CANs, multiple LINs and multiple Ethernets can be achieved, the system flexibility can be improved, the test cycle can be shortened, and the laboratory resource usage can be reduced.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is:
[0006] An EMC experiment multi-channel parallel monitoring system, the system includes a controller under test, an experimental device, and a host computer, wherein the experimental device is configured as a control chip with multiple bus interfaces, supporting the experimental device to be connected to the controller under test through multiple and different types of buses; the host computer is connected to the experimental device and the controller under test respectively.
[0007] Preferably, the control chip is an MCU having multiple bus interfaces.
[0008] Preferably, the bus interface includes a CAN bus interface, a LIN bus interface, and an Ethernet bus interface.
[0009] Preferably, the host computer is connected to the experimental equipment via a CAN bus, and at the same time, the controller under test is also connected to the host computer via a CAN bus.
[0010] Preferably, the controller under test includes a gateway.
[0011] Preferably, each CAN bus interface of the experimental equipment is connected to the controller under test via only one CAN bus.
[0012] Preferably, the present application also proposes an application method of an EMC experimental multi-channel parallel monitoring system according to the above system, and the method is applied to test the CAN nodes of the controller under test to determine the CAN message ID, message type and baud rate sent by each CAN node, including:
[0013] Before the controller under test communicates with the experimental device through the multi-channel CAN bus, the host computer configures the CAN bus interface of the experimental device to determine the CAN message ID, message type and baud rate supported by each CAN bus interface of the experimental device for transmission;
[0014] When the controller under test uploads CAN messages to the experimental device through the multi-channel CAN bus, the experimental device receives the corresponding CAN messages through the configured CAN bus interface, and supports the setting of CAN message ID, message type and baud rate of the received CAN messages before forwarding them to the host computer;
[0015] When the controller under test does not upload CAN messages to the experimental equipment through the multi-channel CAN bus, the host computer sets the experimental equipment to the active message sending mode, that is, the experimental equipment selects the configured CAN bus interface and controls it to send the corresponding CAN message to the controller under test, and then the host computer queries whether the controller under test has received the corresponding CAN message through the bus connected to the controller under test.
[0016] Preferably, the present application also proposes an application method of an EMC test multi-channel parallel monitoring system according to the above system, the method being applied to test the LIN nodes of the controller under test to determine whether each LIN node is a master node or a slave node, comprising:
[0017] When a LIN node of the controller under test is a master node, the host computer first configures the LIN bus interface of the experimental equipment connected to the master node as a slave node, and sets the LIN baud rate, message ID, length and content of the slave node; then the host computer reads whether the controller under test has received the reply message through the bus connected to the controller under test;
[0018] When a LIN node of the controller under test is a slave node, the LIN bus interface of the experimental equipment connected to the slave node is first configured as a master node through the host computer, and the LIN baud rate of the master node, the message ID, length and content to be replied are set; then the host computer reads whether the experimental equipment has received the reply message through the bus connected to the experimental equipment.
[0019] Preferably, the present application also proposes an application method of an EMC experimental multi-channel parallel monitoring system based on the above-mentioned system, and the method is applied to test the Ethernet node of the controller under test to determine the Ethernet connection status of the controller under test or the experimental equipment, including: setting the Ethernet master-slave mode between the experimental equipment and the controller under test, and the communication rate of the corresponding Ethernet interface through the host computer, and establishing the LINKUP status between the experimental equipment and the controller under test to read the Ethernet connection status of the controller under test or the experimental equipment.
[0020] The technical effects of the present invention are:
[0021] (1) The system and method of the present application is a parallel monitoring technology that can monitor multiple CAN channels, multiple LIN channels, and multiple Ethernet channels. Its flexibility is that the experimental equipment can be configured through the host computer to meet different experimental requirements.
[0022] (2) The experimental equipment selected for this application can support multi-channel CAN, LIN and Ethernet, and is therefore compatible with most controllers on the market.
[0023] (3) When using the system of the present application, it is only necessary to connect the CAN, LIN or Ethernet interface of the experimental equipment to the controller under test in sequence, and then configure the experimental equipment according to the actual situation of the controller under test. In this way, the laboratory only needs to connect one CAN to the host computer to perform EMC testing, which is equivalent to a 1:n expansion of laboratory resources, that is, it can save n times of time for the experiment. In the face of insufficient laboratory resources and tight development time required by OEMs, it can effectively shorten the test cycle and save laboratory resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 The present invention is a structural diagram of a multi-channel parallel monitoring system for EMC experiments. DETAILED DESCRIPTION
[0025] The following is a further detailed description of the specific implementation of the present invention by describing the embodiments with reference to the accompanying drawings, with the purpose of helping those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solution of the present invention and to facilitate its implementation. In order to make the technical solution of the present invention clearer, the present invention is explained by the following embodiments.
[0026] An EMC experiment multi-channel parallel monitoring system, such as Figure 1 As shown, the system includes a controller under test, an experimental device, and a host computer, wherein the experimental device is configured as a control chip with multiple bus interfaces, supporting the experimental device to be connected to the controller under test through multiple and different types of buses; the host computer is connected to the experimental device and the controller under test respectively. In this embodiment, the controller under test includes a gateway, and the gateway has multiple bus interfaces (nodes). In actual implementation, the controller under test may not have so many bus interfaces, so the gateway can be used as a typical controller under test for testing.
[0027] In this embodiment, the control chip is an MCU with multiple bus interfaces, including CAN bus interface, LIN bus interface, Ethernet bus interface, etc. The experimental equipment thus constructed can support up to 12 CAN, 12 LIN and 6 Ethernet monitoring, and can be compatible with the experimental requirements of most controllers on the market on a large scale.
[0028] The present application is a parallel monitoring technology that can monitor multiple CANs, multiple LINs, and multiple Ethernets. Its flexibility is that the experimental equipment can be configured through the host computer to meet different experimental requirements. When using, it is only necessary to connect the CAN, LIN, or Ethernet port of the experimental equipment to the controller under test in turn, and then configure the experimental equipment according to the actual situation of the controller under test. In this way, the laboratory only needs the host computer to connect one CAN to test, that is, the host computer is connected to the experimental equipment through one CAN bus, and at the same time, the controller under test is also connected to the host computer through one CAN bus.
[0029] It should be noted that each CAN bus interface of the experimental equipment of this embodiment is connected to the controller under test through only one CAN bus. For example, a CAN bus interface of the experimental equipment is connected to a CAN node on the controller under test through only one CAN bus. Because different CANs may have the same ID, and the type of each CAN may be ordinary CAN or CANFD, errors may occur when connected together.
[0030] Based on the above system, the present application also proposes three application methods of the EMC test multi-channel parallel monitoring system. Different application methods can test different bus nodes of the controller under test. At the same time, these application methods can operate in parallel to speed up the test efficiency.
[0031] Application method 1:
[0032] Method 1 is applied to test the CAN nodes of the controller under test to determine the CAN message ID, message type and baud rate sent by each CAN node, including:
[0033] Before the controller under test communicates with the experimental device through the multi-channel CAN bus, the host computer configures the CAN bus interface of the experimental device to determine the CAN message ID, message type and baud rate supported by each CAN bus interface of the experimental device for transmission;
[0034] When the controller under test uploads CAN messages to the experimental device through the multi-channel CAN bus, the experimental device receives the corresponding CAN messages through the configured CAN bus interface, and supports the setting of CAN message ID, message type and baud rate of the received CAN messages before forwarding them to the host computer;
[0035] When the controller under test does not upload CAN messages to the experimental equipment through the multi-channel CAN bus, the host computer sets the experimental equipment to the active message sending mode, that is, the experimental equipment selects the configured CAN bus interface and controls it to send the corresponding CAN message to the controller under test, and then the host computer queries whether the controller under test has received the corresponding CAN message through the bus connected to the controller under test.
[0036] Application method 2:
[0037] Method 2 is applied to test the LIN nodes of the controller under test to determine whether each LIN node is a master node or a slave node, including:
[0038] When a LIN node of the controller under test is a master node, the host computer first configures the LIN bus interface of the experimental equipment connected to the master node as a slave node, and sets the LIN baud rate, message ID, length and content of the slave node; then the host computer reads whether the controller under test has received the reply message through the bus connected to the controller under test;
[0039] When a LIN node of the controller under test is a slave node, the LIN bus interface of the experimental equipment connected to the slave node is first configured as a master node through the host computer, and the LIN baud rate of the master node, the message ID, length and content to be replied are set; then the host computer reads whether the experimental equipment has received the reply message through the bus connected to the experimental equipment.
[0040] Application method three:
[0041] Method three is applied to test the Ethernet node of the controller under test to determine the Ethernet connection status of the controller under test or the experimental equipment, including: setting the Ethernet master-slave mode between the experimental equipment and the controller under test, and the communication rate of the corresponding Ethernet interface through the host computer, and establishing the LINKUP status between the experimental equipment and the controller under test to read the Ethernet connection status of the controller under test or the experimental equipment, thereby realizing real-time monitoring of the controller under test to monitor whether the working status of Ethernet is normal in the EMC experiment.
[0042] This application can configure the experimental equipment through the host computer, which is highly flexible. At the same time, the configuration of the experimental equipment through the host computer can achieve a 1:n expansion of laboratory resources, which means that the time for the experiment can be saved n times. In the face of insufficient laboratory resources and tight development time required by OEM, it can effectively shorten the test cycle and save laboratory resources. Furthermore, the application method proposed in this application can meet the EMC test requirements of most controllers and has a wide range of applications.
[0043] The present invention is described above by way of example in conjunction with the accompanying drawings. Obviously, the specific implementation of the present invention is not limited to the above-mentioned methods. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention; or the above concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.
Claims
1. An EMC experiment multi-channel parallel monitoring system, characterized by: The system includes a controller under test, an experimental device, and a host computer, wherein the experimental device is configured as a control chip with multiple bus interfaces, supporting the experimental device to be connected to the controller under test through multiple and different types of buses; the host computer is connected to the experimental device and the controller under test respectively.
2. The EMC test multi-channel parallel monitoring system according to claim 1, characterized in that: The control chip is an MCU with multiple bus interfaces.
3. An EMC experiment multi-channel parallel monitoring system according to claim 1 or 2, characterized in that: The bus interface includes a CAN bus interface, a LIN bus interface, and an Ethernet bus interface.
4. The EMC test multi-channel parallel monitoring system according to claim 1, characterized in that: The host computer is connected to the experimental equipment via a CAN bus, and at the same time, the controller under test is also connected to the host computer via a CAN bus.
5. The EMC test multi-channel parallel monitoring system according to claim 1, characterized in that: The controller under test includes a gateway.
6. The EMC test multi-channel parallel monitoring system according to claim 3, characterized in that: Each CAN bus interface of the experimental equipment is connected to the controller under test via only one CAN bus.
7. An application method of the EMC experiment multi-channel parallel monitoring system according to any one of claims 1 to 6, characterized in that: The method is applied to test the CAN nodes of the controller under test to determine the CAN message ID, message type and baud rate sent by each CAN node, including: Before the controller under test communicates with the experimental device through the multi-channel CAN bus, the host computer configures the CAN bus interface of the experimental device to determine the CAN message ID, message type and baud rate supported by each CAN bus interface of the experimental device for transmission; When the controller under test uploads CAN messages to the experimental device through the multi-channel CAN bus, the experimental device receives the corresponding CAN messages through the configured CAN bus interface, and supports the setting of CAN message ID, message type and baud rate of the received CAN messages before forwarding them to the host computer; When the controller under test does not upload CAN messages to the experimental equipment through the multi-channel CAN bus, the host computer sets the experimental equipment to the active message sending mode, that is, the experimental equipment selects the configured CAN bus interface and controls it to send the corresponding CAN message to the controller under test, and then the host computer queries whether the controller under test has received the corresponding CAN message through the bus connected to the controller under test.
8. An application method of the EMC experiment multi-channel parallel monitoring system according to any one of claims 1 to 6, characterized in that: The method is applied to test the LIN nodes of the controller under test to determine whether each LIN node is a master node or a slave node, comprising: When a LIN node of the controller under test is a master node, the host computer first configures the LIN bus interface of the experimental equipment connected to the master node as a slave node, and sets the LIN baud rate, message ID, length and content of the slave node; then the host computer reads whether the controller under test has received the reply message through the bus connected to the controller under test; When a LIN node of the controller under test is a slave node, the LIN bus interface of the experimental equipment connected to the slave node is first configured as a master node through the host computer, and the LIN baud rate of the master node, the message ID, length and content to be replied are set; then the host computer reads whether the experimental equipment has received the reply message through the bus connected to the experimental equipment.
9. An application method of the EMC experiment multi-channel parallel monitoring system according to any one of claims 1 to 6, characterized in that: The method is applied to test the Ethernet node of the tested controller to determine the Ethernet connection status of the tested controller or the experimental equipment, including: setting the Ethernet master-slave mode between the experimental equipment and the tested controller by the host computer, and the corresponding Ethernet The communication rate of the network interface and the LINKUP status between the experimental equipment and the controller under test are established. To read the Ethernet connection status of the controller or experimental equipment under test.
