Monitoring system and control method and control device thereof
By designing a monitoring system with multiple network ports communicating with the equipment under test in the experimental monitoring system, the problems of complex IP address management and easy interference in traditional systems are solved, and the efficient and anti-interference of independent communication and data transmission between the equipment under test are achieved.
Patent Information
- Application Number
- CN202411823548.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-28
AI Technical Summary
In traditional experimental monitoring systems, multiple devices under test share the same network switch, resulting in complex IP address management and easy interference in data transmission, and may lead to experiment failure under network failure or special experimental conditions.
A monitoring system is designed to communicate with the device under test through multiple network ports, and the test device is used to receive the test data of the device under test, including data frame data and index frame data. The system sends index frame trigger instructions through preset time intervals to ensure real-time transmission of data frame data and periodic update of index frame data.
It realizes independent communication between the devices under test without manually configuring the IP address, which reduces the workload of the experimenter and improves the anti-interference ability and efficiency of data transmission.
Smart Images

Figure CN119729253A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to a monitoring system and a control method and a control device thereof. Background Art
[0002] Traditional experimental monitoring systems usually adopt a networking method that connects the same network port of an industrial computer to multiple devices under test to the same network switch. Under this architecture, each device under test needs to be assigned an independent IP address in the same network segment to facilitate unique identification and communication in the network. However, this method has many limitations and potential problems. For example, since all devices under test share the same network switch, experimenters must carefully distinguish and manage the IP address of each device to avoid data transmission errors or interruptions caused by IP conflicts. This manual configuration not only increases the workload, but is also prone to errors, affecting the smooth progress of the experiment. In addition, once the network switch fails or is affected by special experimental conditions (such as electromagnetic interference, high load, etc.), it may cause data anomalies of multiple devices under test, or even cause batch experiments to fail. This not only wastes a lot of manpower and material resources, but also significantly increases the difficulty of troubleshooting and analysis. Summary of the invention
[0003] The main purpose of the present invention is to provide a monitoring system and a control method and a control device thereof, aiming to improve the anti-interference capability and transmission efficiency of data transmission of the monitoring system.
[0004] To achieve the above object, the present invention provides a monitoring system, which includes:
[0005] A plurality of network ports, each of which is used to access a device under test;
[0006] The test device is electrically connected to the multiple network ports to communicate with the device under test through the multiple network ports; the test device is used to receive test data of the device under test through the network port, and the test data includes data frame data and index frame data for parsing the data frame data.
[0007] In one embodiment, the test device is specifically used to send an index frame trigger instruction to the device under test at a preset time interval during the process of sending data frame data to the test device, so that the device under test that receives the index frame trigger instruction sends the index frame data to the test device.
[0008] In one embodiment, the test device is further used to send an enable reporting instruction to the device under test via the network port when powered on, so that the device under test that receives the enable reporting instruction sends data frame data and index frame data to the test device.
[0009] In one embodiment, the test device includes a mainboard, the monitoring system also includes a network card, the network card includes multiple network ports, and the network card is arranged on the mainboard; or, the monitoring system also includes multiple network cards, each of the network cards includes at least one network port, and at least one network port of each network card is connected to a device under test, so that the test device is communicatively connected with multiple devices under test through multiple network cards.
[0010] In one embodiment, the monitoring system further comprises at least one of a power supply, an on-board Ethernet converter, a communication module, and a switch;
[0011] The power supply is electrically connected to the device under test, and is used to output a power supply signal to the test device when receiving a power-on control signal sent by the test device, so as to supply power to the device under test;
[0012] The vehicle-mounted Ethernet converter is electrically connected to the device under test and is used to convert the vehicle-mounted Ethernet signal output by the device under test into a network signal received by the test device;
[0013] The communication module is electrically connected to the device under test, and the communication module is used to establish a communication connection between the test device and the device under test;
[0014] Multiple switches, each of the switches includes an input end and multiple output ends, the input ends of the multiple switches are connected to the multiple network ports in a one-to-one correspondence, and the output end of each switch is used to connect to any one or a combination of the power supply, the vehicle-mounted Ethernet converter, and the communication module.
[0015] The present invention provides a control method for a monitoring system, wherein the monitoring system comprises a test device and a plurality of network ports, wherein the test device is electrically connected to the plurality of network ports so as to be communicatively connected to a device under test through the plurality of network ports; the test device is used to receive test data of the device under test through the network ports, wherein the test data comprises data frame data and index frame data for parsing the data frame data, and the control method for the monitoring system comprises:
[0016] The test device sends an enable reporting command to the device under test, and waits to receive data frame data and index frame data sent by the device under test;
[0017] The testing device receives the data frame data and the index frame data sent by the device under test, and parses the data frame data according to the index frame data.
[0018] In one embodiment, after the test device sends an enable reporting instruction to the device under test and waits for receiving data frame data and index frame data sent by the device under test, the control method of the monitoring system includes:
[0019] In the process of sending the data frame data to the test device, an index frame trigger instruction is sent to the device under test at a preset time interval, and the index frame data sent by the device under test is received.
[0020] In one embodiment, the device under test includes a forwarding node and a plurality of target nodes, and the test device sends an enable reporting instruction to the device under test, and waits for receiving data frame data and index frame data sent by the device under test. Specifically, the steps include:
[0021] The test device sends an enable reporting instruction to the forwarding node when powered on, and waits for the intermediate data frame data sent by the forwarding node;
[0022] When the intermediate data frame data is received, a data frame sending instruction is sent to the forwarding node, so that the forwarding node sends the received data frame sending instruction to the corresponding target node, and waits to receive the data frame data and index frame data sent by the target node.
[0023] In one embodiment, in the process of sending the data frame data to the test device, the steps of sending the index frame trigger instruction to the device under test at a preset time interval and receiving the index frame data sent by the device under test specifically include:
[0024] In the process of sending the data frame data to the test device, an index frame trigger instruction is sent to the forwarding node at a preset time interval, so that the forwarding node outputs the received index frame trigger instruction to the corresponding target node, and receives the target index frame data sent by the target node;
[0025] The target index frame data of the target node sent by the forwarding node is received to receive the index frame data sent by the device under test.
[0026] In one embodiment, after the step of sending an index frame trigger instruction to the device under test at a preset time interval and receiving the index frame data sent by the device under test during the process of sending the data frame data to the test device, the control method of the monitoring system further includes:
[0027] The testing device sends a reporting shutdown instruction to the device under test, so that the device under test stops sending data frame data and / or index frame data.
[0028] In one embodiment, the shutdown reporting instruction includes a shutdown target node reporting instruction and a shutdown forwarding node reporting instruction, the device under test includes a forwarding node and multiple target nodes, and the step of the test device sending the shutdown reporting instruction to the device under test so that the device under test stops sending data frame data and / or index frame data specifically includes:
[0029] When the monitoring system reaches the experiment completion condition, the test device sends a target node shutdown reporting instruction to the forwarding node, so that the forwarding node sends the target node shutdown reporting instruction to the corresponding target node, and stops the target node from sending data frame data and / or index frame data;
[0030] After sending the target node shutdown reporting instruction, the test device sends a forwarding node shutdown reporting instruction to the forwarding node, so that the forwarding node stops sending data frame data and / or index frame data.
[0031] The present invention also proposes a control device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method of the monitoring system described in any one of the above items.
[0032] The present invention proposes a monitoring system, which includes multiple network ports and a test device, each of which is used to access a device under test; the test device is electrically connected to the multiple network ports to communicate with the device under test through the multiple network ports; the test device is used to receive test data of the device under test through the network port, and the test data includes data frame data and index frame data for parsing the data frame data.
[0033] In actual applications, the test equipment communicates with multiple devices under test one by one through multiple network ports. The test equipment can communicate with each device under test independently, without the need to assign an independent IP address of the same network segment to each device under test. This reduces the workload of the experimenter and can also reduce the impact of special experimental conditions on network communication interference, making it easier to troubleshoot and locate problems. In addition, the setting of multiple network ports allows the transmission of test data for each device under test to be carried out independently, improving the anti-interference ability of data transmission. Compared with the networking method of using the same network port to connect multiple devices under test to the same network switch, each device under test has an independent physical network port, which means that the data stream of each device under test has its own dedicated transmission path, improving the problem of shared bandwidth, thereby improving the transmission efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0035] Figure 1A schematic diagram of a module of an embodiment of a monitoring system of the present invention;
[0036] Figure 2 A schematic diagram of modules of another embodiment of the monitoring system of the present invention;
[0037] Figure 3 A schematic diagram of a module of another embodiment of the monitoring system of the present invention;
[0038] Figure 4 A schematic diagram of a module of another embodiment of the monitoring system of the present invention;
[0039] Figure 5 A schematic diagram of a module of another embodiment of the monitoring system of the present invention;
[0040] Figure 6 A schematic diagram of a flow chart of an embodiment of a control method of a monitoring system of the present invention;
[0041] Figure 7 A schematic flow chart of another embodiment of a control method of a monitoring system of the present invention;
[0042] Figure 8 A flow chart of another embodiment of a control method of a monitoring system of the present invention;
[0043] Fig. 9 A flow chart of another embodiment of a control method of a monitoring system of the present invention;
[0044] Fig.10 A system block diagram of an embodiment of a monitoring system of the present invention;
[0045] Fig.11 This is a diagram of the Xlog protocol frame structure of the present invention;
[0046] Fig.12 It is the Xlog protocol frame transmission sequence diagram of the present invention;
[0047] Fig.13 A flow chart of an embodiment of a monitoring system of the present invention;
[0048] Fig.14 FIG. 4 is a flow chart of another embodiment of the monitoring system of the present invention.
[0049] Description of Figure Numbers:
[0050] 10. Network port; 20. Test equipment; 30. Network card; 40. Power supply; 50. Vehicle Ethernet converter; 60. Communication module; 11. Network port 1; 12. Network port 2; 13. Network port 3; 31. Network card 1; 32. Network card 2.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] It should be noted that, in this article, step codes such as S100, S200, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute S200 first and then S100, etc., but these should all be within the scope of protection of this application.
[0054] Traditional experimental monitoring systems usually adopt a networking method that connects the same network port of an industrial computer to multiple devices under test to the same network switch. Under this architecture, each device under test needs to be assigned an independent IP address in the same network segment to facilitate unique identification and communication in the network. However, this method has many limitations and potential problems. For example, since all devices under test share the same network switch, experimenters must carefully distinguish and manage the IP address of each device to avoid data transmission errors or interruptions caused by IP conflicts. This manual configuration not only increases the workload, but is also prone to errors, affecting the smooth progress of the experiment. In addition, once the network switch fails or is affected by special experimental conditions (such as electromagnetic interference, high load, etc.), it may cause data anomalies of multiple devices under test, or even cause batch experiments to fail. This not only wastes a lot of manpower and material resources, but also significantly increases the difficulty of troubleshooting and analysis.
[0055] For this purpose, refer to Figure 1 The present invention provides a monitoring system, the monitoring system comprising:
[0056] A plurality of network ports 10, each of the network ports 10 is used to access a device under test;
[0057] The test device 20 is electrically connected to the multiple network ports 10 so as to communicate with the device under test through the multiple network ports 10; the test device 20 is used to receive test data of the device under test through the network port 10, and the test data includes data frame data and index frame data for parsing the data frame data.
[0058] In this embodiment, the network port 10 can be implemented by one or more Ethernet interfaces, PCI / PCIF independent network cards, USB interfaces, etc. integrated in an industrial computer. The test device 20 can be an industrial computer, which establishes communication connections with various devices under test through multiple network ports 10, and receives and processes test data from these devices under test.
[0059] Specifically, the test device 20 is connected to a plurality of devices under test via each network port 10 in a one-to-one correspondence. For example, when there are three devices under test (device under test 1, device under test 2, and device under test 3), at least three network ports 10 need to be set to connect the test device 20 to the three devices under test in a communication manner. Figure 1 As shown, the device under test 1 is connected to the test device 20 via the network port 11, the device under test 2 is connected to the test device 20 via the network port 12, and the device under test 3 is connected to the test device 20 via the network port 13. Each network port 10 corresponds to a unique network path to ensure that the data transmission between different devices under test does not interfere with each other. It should be noted that the test data includes data frame data and index frame data. The test device 20 can receive the data frame data of the corresponding connected device under test in real time via the network port 10, and these data are organized into data frames according to a predefined format. For example, temperature values, pressure values, status information, etc. In order to help parse the data frame, the test device 20 will also receive the index frame data sent by the test device 20. The index frame is used to explain the table to which the data carried by the data frame belongs and each column in this table, so that the data frame can carry and express data very concisely and efficiently, and can be correctly understood and used. If the test device 20 does not receive the index frame data, it cannot parse the data frame data, that is, the test device 20 parses the data frame data according to the received index frame data, and the index frame is combined with the data frame to ensure the accuracy and integrity of the data.
[0060] The test data generated by the device under test is often continuously and frequently updated. In order to ensure that the host computer (test device 20) can obtain the latest experimental data of the device under test in real time and analyze it, the data frame must be transmitted in real time. In contrast, the index frame contains metadata about the data structure, which is relatively stable and will not change frequently. It does not need to be sent together with the data frame every time, but can be updated once within a certain time interval to reduce the burden on the monitoring system. Therefore, in the present embodiment, in the process of the device under test sending data frame data to the test device 20, the test device 20 sends an index frame trigger instruction to the device under test at a preset time interval, so that the device under test will send its own index frame data once each time it receives an index frame trigger instruction, so that the test device 20 is convenient for parsing the data frame data according to the index frame data. In this way, the real-time transmission of the data frame data meets the requirements for real-time performance, and the interval output of the index frame data effectively manages resources and ensures the stability and reliability of the system.
[0061] It is understandable that a physical network card 30 can be used to increase the number of network ports 10 for the test device 20, thereby achieving one-to-one communication with the device under test. An independent network card 30 can be installed through a standard slot such as PCI, PCIe, etc. of the test device 20. These network cards 30 can select different speeds (such as 1Gbps, 10Gbps) and port numbers (single port or multiple ports) according to demand. For example, if a four-port network card 30 is selected to configure, four test devices 20 can be connected at the same time. When eight devices under test need to be tested at the same time, two four-port network cards 30 can be configured. In this way, it is possible to achieve networking using independent network ports 10 on the same industrial computer, that is, one device under test corresponds to one network port 10, to achieve monitoring of the same or different experimental requirements of the same or different devices under test.
[0062] In actual applications, the test device 20 is connected to multiple devices under test one by one through multiple network ports 10. The test device 20 can communicate with each device under test independently, without the need to allocate an independent IP address of the same network segment to each device under test. This reduces the workload of the experimenter and can also reduce the impact of special experimental conditions on network communication interference, making it easier to troubleshoot and locate problems. In addition, the setting of multiple network ports 10 allows the transmission of test data for each device under test to be carried out independently, improving the anti-interference ability of data transmission. Compared to the networking method of using the same network port 10 to connect multiple devices under test to the same network switch, each device under test has an independent physical network port 10, which means that the data stream of each device under test has its own dedicated transmission path, improving the problem of shared bandwidth, thereby improving the transmission efficiency of data transmission.
[0063] Understandably, reference Fig.11 , the Xlog protocol of the present invention is based on UDP protocol transmission; the original structure of the data is a plurality of data tables, and the frame types are divided into index frames and data frames. The index frame is used to explain the table to which the data carried by the data frame belongs and each column in this table, so that the data frame can carry and express data very concisely and efficiently, but it also means that the data frame cannot be parsed if the index frame is not captured. It should be noted that the experimental monitoring system can be developed using a host computer program developed based on the python language or other programming languages. The Xlog communication protocol can be replaced by other protocols. In this embodiment, the Xlog protocol is used to encapsulate and process the test data to obtain data frame data and index frame data, and transmit them to the test device 20 via the UDP protocol. In this way, the custom Xlog protocol realizes data compression of the device under test and encrypts and transmits it to the test device 20, thereby improving the efficiency and security of data transmission. It provides a guarantee for experiments with long-term and high-speed monitoring requirements.
[0064] In one embodiment, the test device 20 is specifically used to send an index frame trigger instruction to the device under test at a preset time interval during the process of sending data frame data to the test device 20, so that the device under test that receives the index frame trigger instruction sends the index frame data to the test device 20.
[0065] In this embodiment, the data frame only contains specific numerical data and does not carry any redundant metadata (such as field names, data types, etc.), which enables it to transmit as much valid information as possible with the smallest volume. Due to the lack of metadata, the test device 20 cannot directly interpret its internal structure or meaning through the data frame itself, and must rely on the index frame to provide the necessary parsing basis. That is, the index frame contains metadata about the data frame structure, that is, it describes the data table to which the data belongs and the column information in each table. The index frame provides the specific meaning of each field in the data frame, such as field name, data type, unit, etc. This is crucial for correctly parsing the data frame. If the data table structure changes (such as adding or deleting fields), the index frame can be updated to reflect the latest structural information to ensure that the data frame received subsequently can still be correctly parsed. By separating the metadata from the actual data, the index frame makes the data frame more compact, reduces unnecessary duplicate information, and improves data transmission efficiency.
[0066] It should be noted that the data generated by the device under test is often continuously and frequently updated. In order to ensure that the host computer (test device 20) can obtain the latest experimental data of the device under test in real time and analyze it, the data frame must be transmitted in real time. In contrast, the index frame contains metadata about the data structure, which is relatively stable and does not change frequently. Therefore, it does not need to be sent together with the data frame every time, but can be updated once within a certain time interval to reduce the burden on the monitoring system.
[0067] Optionally, the test device 20 is further used to send an enable reporting instruction to the device under test via the network port 10 when powered on, so that the device under test that receives the enable reporting instruction sends data frame data and index frame data to the test device 20. In this embodiment, after the test device 20 is restarted or powered on, it sends an enable reporting instruction to the corresponding device under test via the network port 10 when powered on. When the device under test receives the enable reporting instruction, it responds and sends data frame data and index frame data to the test device 20, so that the test device 20 parses the data frame data according to the received index frame data.
[0068] In this embodiment, after the enable reporting instruction is sent, the data frame data and the index frame data will be reported to the test device 20 together. Since the Xlog protocol will transmit each data frame as much as possible, and transmit the index frame in a relatively long period, that is, the data frame data is reported in real time, and the index frame data is reported periodically and the period is relatively long. When the device under test receives the enable reporting instruction, the index frame will be reported once, and then enter the period to wait for the next report. This property will reduce the real-time performance of the test data, and at the same time make the short-cycle experimental data unreliable. Therefore, an interface that can trigger the device under test to actively report the index frame can be added to the test device 20; the test device 20 sends the index frame trigger instruction to the corresponding device under test through the interface. In this way, in the process of sending the data frame data to the test device 20, the test device 20 sends the index frame trigger instruction to the device under test at a preset time interval, so that the device under test that receives the index frame trigger instruction sends the index frame data to the test device 20. Among them, the preset actual interval is set in advance by the research and development personnel. In this way, by setting the preset time interval, the cycle of index frame data reporting can be shortened, and the real-time performance and efficiency of data transmission can be improved.
[0069] In practical applications, the test data is divided into index frame data and data frame data through the Xlog protocol, which not only improves the efficiency of data transmission, but also ensures the accuracy and flexibility of data parsing. In addition, although the index frame data is relatively small, it will still accumulate into a large amount of network traffic if it is sent frequently. By setting a reasonable time interval for sending index frames, unnecessary data transmission can be significantly reduced, thereby saving network bandwidth and improving the transmission efficiency of other important data (such as real-time data frames). In this way, the real-time transmission of data frame data meets the requirements for real-time performance, while the interval output of index frame data effectively manages resources and ensures the stability and reliability of the system.
[0070] Optionally, the test device 20 is further configured to send a shutdown reporting instruction to the device under test via the network port 10 when the monitoring system reaches an experiment completion condition, so that the device under test stops sending data frame data and / or index frame data.
[0071] In this embodiment, when performing a standard experimental test, the corresponding start button can be manually clicked / pressed to start the test monitoring system. The test device 20 will send an enable reporting instruction to the corresponding test device 20 when it is powered on. The test device 20 reports data frame data and index frame data, and in the process of sending data frame data to the test device 20, the test device 20 sends an index frame trigger instruction at a preset time interval, so that the device under test reports index frame data at a preset time interval, so that the test device 20 parses the data frame data according to the index frame data, and obtains the test content and related test data of the device under test to complete the test of the device under test. When the experiment is completed, the experimenter can click the "End" button again. The host computer then sends a shutdown reporting instruction to all devices under test to notify them to stop sending data frame data and index frame data.
[0072] Optionally, when developing the test, the R&D personnel set the specific conditions for the completion of the experiment through the host computer (test device 20) interface. These conditions may include but are not limited to a preset time, a preset data threshold (such as a temperature exceeding a preset temperature threshold), or the occurrence of a certain event (such as the need to terminate the test when the sensor detects an abnormality). During the experiment, the host computer continuously monitors the data frame data from each device under test, and parses it according to the index frame data reported at a preset time interval, and monitors and records the test data of the device under test in real time. Assuming that the experimental completion condition is a time condition, the R&D personnel set a fixed time length in advance, such as 5 hours, then the host computer will determine that the experimental completion condition is met when the test duration reaches five hours, and immediately send a close reporting instruction to the device under test, notifying them to stop sending data frame data and index frame data. In this way, the Xlog reporting function is turned off after the experiment to avoid occupying network bandwidth and recording redundant test data, and performing unnecessary analysis and processing.
[0073] In practical applications, by manually clicking the "Start / End" button, the experimenter can intuitively control the start and stop of the experiment. This method is simple and easy to use, and is suitable for standard experiments with fixed processes. In addition, by triggering the end of the experiment function under preset conditions, the host computer can automatically send a shutdown report instruction when the monitoring system reaches the conditions for the completion of the experiment, reducing manual intervention, improving the degree of automation, and being suitable for complex and unpredictable R&D test environments. In this way, the adaptability and flexibility of the monitoring system of the present invention are improved.
[0074] In one embodiment, the test device 20 includes a mainboard, the monitoring system also includes a network card 30, the network card 30 includes multiple network ports 10, and the network card 30 is arranged on the mainboard; or, the monitoring system also includes multiple network cards 30, each of the network cards 30 includes at least one network port 10, and at least one network port 10 of each network card 30 is connected to a device under test, so that the test device 20 is communicatively connected with multiple devices under test through multiple network cards 30.
[0075] In this embodiment, the core component of the test device 20 is a high-performance industrial computer, whose mainboard integrates the necessary computing resources (such as CPU, memory, etc.). Optionally, when the number of devices under test is small, a physical network card 30 can be used, wherein the physical network card 30 is used for the industrial computer to implement the expansion of the physical network port 10, usually PCI or PCIE communication. Figure 3 , the device under test 1 is connected to the test device 20 through the network port 11, the device under test 2 is connected to the test device 20 through the network port 12, and the device under test 3 is connected to the test device 20 through the network port 13, that is, the network port 11 and the network port 12 and the network port 13 can be different ports of the same network card 30. Optionally, when the number of devices under test is large, multiple physical network cards 30 can be used, refer to Figure 2 , the device under test 1 is connected to the test device 20 through the network port 10 of the network card 31, the device under test 2 is connected to the test device 20 through the network port 11 of the network card 32, and the device under test 3 is connected to the test device 20 through the network port 12 of the network card 32. It can be understood that the network card 30 can also be implemented by a virtual network card 30, such as a USB interface of an industrial computer.
[0076] In practical applications, when the number of devices under test is small, one physical network card 30 can meet the demand. This method simplifies the hardware configuration, reduces the number of slots on the motherboard, reduces costs and improves the integration of the monitoring system. When the number of devices under test is large or higher network performance is required, multiple physical network cards 30 can be used, and each network card 30 is responsible for the communication connection of a part of the devices under test. This method not only provides more independent network ports 10, but also enhances the scalability and redundancy of the monitoring system. Whether it is a single network card 30 or a combination of multiple network cards 30, it is necessary to provide an independent communication link for each device under test so that the data transmission between the device under test and the test device 20 does not interfere with each other, thereby improving the anti-interference and transmission efficiency of the monitoring system.
[0077] Traditional monitoring data is often collected based on functional needs using different communication methods, such as CAN communication, DAQ acquisition, etc. Ethernet is just one of them. Therefore, the experimental monitoring system lacks some considerations in terms of information transmission rate and information security. In certain specific scenarios, such as long-term experiments with large amounts of data, high-speed experiments, and experiments with information confidentiality requirements, it cannot fully meet the needs, which not only increases the workload of experimental personnel, but also puts higher requirements on management.
[0078] To this end, in one embodiment of the present invention, reference Figure 4 , the monitoring system further includes at least one of a power supply 40 , a vehicle Ethernet converter 50 , and a communication module 60 ;
[0079] The power supply 40 is electrically connected to the device under test, and the power supply 40 is used to output a power supply signal to the test device 20 when receiving a power-on control signal sent by the test device 20, so as to power the device under test;
[0080] The vehicle Ethernet converter 50 is electrically connected to the device under test and is used to convert the vehicle Ethernet signal output by the device under test into a network signal received by the test device 20;
[0081] The communication module 60 is electrically connected to the device under test, and the communication module 60 is used to connect the test device 20 to the device under test in communication;
[0082] Multiple switches, each of the switches includes an input end and multiple output ends, the input ends of the multiple switches are connected one-to-one with the multiple network ports 10, and the output end of each switch is used to connect to any one or more of the power supply 40, the vehicle Ethernet converter 50, and the communication module 60.
[0083] In this embodiment, the communication module 60 can be implemented by a CAN communication module 60 or an RS-485 communication module 60. The power supply 40 can be a program-controlled power supply 40, which can program-control the power supply 40 based on the communication protocol and power on the device under test. The vehicle Ethernet converter 50 is used to convert the vehicle Ethernet into a network signal of the RJ45 interface. The switch is used to realize data transmission between multiple port pairs at the same time.
[0084] refer to Fig.10, each device under test is connected to a programmable power supply 40, a CAN box (communication module 60) and an on-board Ethernet converter 50, wherein the programmable power supply 40, the CAN box and the on-board Ethernet converter 50 configured for each device under test are electrically connected to the independent network port 10 of the test equipment 20 via a switch, and the ETH on-board Ethernet signal. The device under test X1 / N is an embedded device under test, 1 represents device No. 1, N represents device No. N, and the size of N depends on the performance of the industrial computer and the experimental monitoring system. The device under test Y1 / N is an embedded device under test that is different from X, 1 represents device No. 1, N represents device No. N, and the size of N depends on the performance of the industrial computer and the experimental monitoring system. Combined with the content of the above embodiment, on the same industrial computer, an independent network port 10 is used for networking, that is, one device under test corresponds to one network port 10, to achieve monitoring of the same or different experimental requirements of the same or different devices under test.
[0085] Assume that in an automobile R&D test environment, there are three devices under test (such as sensor A, controller B, and actuator C). The test equipment 20 starts each program-controlled power supply 40 through a power-on control signal, and each program-controlled power supply 40 outputs a power supply signal to the sensor A, controller B, and actuator C to ensure that they work normally. A three-port Gigabit Ethernet card 30 is installed on the main board of the test equipment 20, and each port corresponds to a device under test (network port 11 is connected to sensor A, network port 12 is connected to controller B, and network port 13 is connected to actuator C). The vehicle Ethernet converter 50 is used to convert the vehicle Ethernet signal of controller B into a standard Ethernet signal. The input end of each switch is connected to a network port 10 of the network card 30, and the output end is respectively connected to the program-controlled power supply 40, the vehicle Ethernet converter 50, and the communication module 60 to ensure flexible network topology configuration. Specifically, when the test equipment 20 sends a startup instruction to the program-controlled power supply 40 through a preset power-on control signal (such as a GPIO pin or a network command). After receiving the instruction, the programmable power supply 40 outputs a power supply signal to the corresponding connected device under test to ensure that the device under test is powered on normally and starts working. After the device under test is started, a communication connection is established with the test device 20 through its respective communication module 60. The test device 20 sends an enable reporting instruction to the sensor A, controller B and actuator C, and receives the data frame data and index frame data reported by the sensor A, controller B and actuator C. In the process of receiving the data frame data, the test device 20 sends an index frame trigger instruction to the sensor A, controller B and actuator C at a preset time interval, so that the sensor A, controller B and actuator C report the index frame data at a preset time interval, so that the test device 20 can parse the received data frame according to the index frame data to ensure the correctness of the data transmission. Among them, the device under test may not have a standard Ethernet interface and cannot be connected to the test device 20. Therefore, an on-board Ethernet converter 50 is used to establish a connection between the device under test and the test device 20, which is responsible for converting the on-board Ethernet signal into a standard Ethernet signal to ensure that the data can be correctly received and processed by the test device 20. In combination with the above embodiments, when the test device 20 determines that the monitoring system meets the conditions for completing the experiment (for example, manually clicking the "End" button or conditional triggering), a shutdown reporting instruction is sent to all devices under test. After receiving the instruction, the device under test stops sending data frames and index frame data, and the Xlog reporting function is turned off to avoid occupying network bandwidth and recording redundant test data.
[0086] Through the above configuration, the monitoring system not only realizes efficient data transmission and processing, but also provides flexible network expansion capabilities and reliable power supply 40 management, which is suitable for various complex experimental scenarios. The experimental monitoring system in this embodiment significantly improves the flexibility, reliability and management efficiency of the system through the power supply 40, the vehicle Ethernet converter 50 and the communication module 60, combined with the flexible configuration of multiple switches.
[0087] The present invention also provides a control method for a monitoring system, referring to Figure 6 The monitoring system includes a test device 20 and a plurality of network ports 10, wherein the test device 20 is electrically connected to the plurality of network ports 10 so as to be communicatively connected with the device under test through the plurality of network ports 10; the test device 20 is used to receive test data of the device under test through the network port 10, wherein the test data includes data frame data and index frame data for parsing the data frame data, and the control method of the monitoring system includes:
[0088] Step S100: the test device sends an enable reporting instruction to the device under test, and waits to receive data frame data and index frame data sent by the device under test;
[0089] Step S200: The testing device receives data frame data and index frame data sent by the device under test, and parses the data frame data according to the index frame data.
[0090] In this embodiment, the control method of the monitoring system of the present invention can be applied to the control device of the test equipment 20, for example, the control device is integrated with a memory for storing the control program of the monitoring system, and a processor for executing the control program of the monitoring system. Among them, the control device can be implemented by a main controller, such as MCU, DSP (Digital Signal Process, digital signal processing chip), FPGA (Field Programmable Gate Array, programmable logic gate array chip), PLC, SOC (System On Chip, system-on-chip), etc.
[0091] In combination with the contents of the above embodiments, after the test device 20 is restarted or powered on, it sends an enable reporting instruction to the corresponding device under test through the network port 10 when it is powered on, and waits to receive the data frame data and index frame data sent by the device under test. When the device under test receives the enable reporting instruction, it will respond and send the data frame data and index frame data to the test device 20, and the test device 20 will parse the data frame data according to the received index frame data. For example, when the test device 20 is a sensor, it can be based on the continuous change value of physical quantities such as temperature, pressure, and humidity. By comparing the actual environmental conditions with the sensor readings, its measurement accuracy can be evaluated. When the test device 20 is a controller, it can receive control commands from the host computer or other systems through the network port 10, such as starting, stopping, adjusting parameters, etc. The controller generates feedback information based on the current state, such as actuator position, motor speed, etc. And send the corresponding data frame data and index frame data to the test device 20,
[0092] The test device 20 parses the data frame data according to the index frame data to test the performance indicators of the controller, such as CPU utilization, memory occupancy, processing delay and other system performance parameters.
[0093] Optionally, after the test device sends an enable reporting instruction to the device under test and waits for receiving data frame data and index frame data sent by the device under test, the control method of the monitoring system includes:
[0094] In the process of sending the data frame data to the test device, an index frame trigger instruction is sent to the device under test at a preset time interval, and the index frame data sent by the device under test is received.
[0095] In combination with the content of the above embodiment, after the test device 20 sends the enable reporting instruction, the data frame data and the index frame data will be reported to the test device 20 together. Since the Xlog protocol will transmit each data frame as much as possible, and transmit the index frame in a relatively long period, that is, the data frame data is reported in real time, and the index frame data is reported periodically and the period is relatively long. When the device under test receives the enable reporting instruction, the index frame will be reported once, and then enter the cycle to wait for the next report. This property will reduce the real-time performance of the test data and make the short-cycle experimental data unreliable. Therefore, an interface that can trigger the device under test to actively report the index frame can be added to the test device 20; the test device 20 sends the index frame trigger instruction to the corresponding device under test through the interface. In this way, in the process of sending data frame data to the test device 20, the test device 20 sends the index frame trigger instruction to the device under test at a preset time interval, so that the device under test that receives the index frame trigger instruction sends the index frame data to the test device 20. Among them, the preset actual interval is set in advance by the R&D personnel. Reference Fig.12 , the data frame data is transmitted in real time, and the index frame data is reported according to the index frame trigger instruction. In this way, by setting the preset time interval, the reporting cycle of the index frame data can be shortened, and the real-time performance and efficiency of data transmission can be improved.
[0096] Optionally, the device under test includes a forwarding node and multiple target nodes, and step S100 specifically includes:
[0097] Step S110, the test device 20 sends an enable reporting instruction to the forwarding node when powered on, and waits for the intermediate data frame data sent by the forwarding node;
[0098] Step S120, when receiving the intermediate data frame data, sending a data frame sending instruction to the forwarding node, so that the forwarding node sends the received data frame sending instruction to the corresponding target node, and waits to receive the data frame data and index frame data sent by the target node.
[0099] Among them, reference Figure 8 In the process of sending the data frame data to the test device, the steps of sending the index frame trigger instruction to the device under test at a preset time interval and receiving the index frame data sent by the device under test specifically include:
[0100] Step 310: in the process of sending the data frame data to the test device, sending the index frame trigger instruction to the forwarding node at a preset time interval, so that the forwarding node outputs the received index frame trigger instruction to the corresponding target node, and receives the target index frame data sent by the target node;
[0101] Step 320: Receive the target index frame data of the target node sent by the forwarding node, so as to receive the index frame data sent by the device under test.
[0102] refer to Fig.13 , the device under test includes a device forwarding node and multiple device target nodes. The forwarding node is equivalent to a transfer station, which is used to transmit data with multiple target nodes of the same device under test, and upload the test data of the target node to the test device 20. Specifically, after the test device 20 is started, it sends an enable reporting instruction (enable Xlog data real-time reporting instruction) to the forwarding node to notify it to start data transmission. After receiving the enable reporting instruction, the forwarding node sends the intermediate data frame data to the test device 20 to confirm that it is ready. After receiving the intermediate data frame, the test device 20 sends a data frame sending instruction (target node reporting enable instruction) to the forwarding node. The forwarding node distributes the data frame sending instruction to the corresponding target node so that each target node sends its own data frame data and index frame data. In the process of the target node of the device under test sending the data frame data through the forwarding node, the test device 20 sends the index frame trigger instruction to the forwarding node at a preset time interval to trigger the index frame to be sent, and the forwarding node sends it to the corresponding target node, so that the target node receiving the index frame trigger instruction sends the index frame data to the test device 20. In this way, it is convenient for the test device 20 to parse the data frame according to the index frame. In this way, the data stream from each target node can be continuously monitored, the test data can be recorded and analyzed in real time, and the functional characteristics of each device under test can be evaluated. For example, the measurement accuracy of the sensor (device under test A) can be verified based on the index frame data and data frame data reported by the device under test A, and the logical correctness of the controller B (device under test B) can be verified based on the index frame data and data frame data reported by the device under test B.
[0103] In practical applications, the monitoring system in this embodiment introduces a forwarding node (as part of the device under test) and a plurality of target nodes, centrally manages instructions and data transmission through the forwarding node, simplifies the direct communication between the test device 20 and the plurality of target nodes, and reduces the network complexity. Even if a problem occurs in a target node, it will not affect the data transmission of other nodes, thereby enhancing the fault tolerance and reliability of the system.
[0104] In one embodiment, after the step of sending an index frame trigger instruction to the device under test at a preset time interval and receiving the index frame data sent by the device under test during the process of sending the data frame data to the test device 20, the control method of the monitoring system further includes:
[0105] The testing device sends a reporting shutdown instruction to the device under test, so that the device under test stops sending data frame data and / or index frame data.
[0106] Among them, reference Fig. 9 The shutdown reporting instruction includes a shutdown target node reporting instruction and a shutdown forwarding node reporting instruction, the device under test includes a forwarding node and multiple target nodes, and the test device 20 sends a shutdown reporting instruction to the device under test to stop the device under test from sending data frame data and / or index frame data. The steps specifically include:
[0107] Step S410: When the monitoring system reaches the experiment completion condition, the test device sends a target node shutdown reporting instruction to the forwarding node, so that the forwarding node sends the target node shutdown reporting instruction to the corresponding target node, and stops the target node from sending data frame data and / or index frame data;
[0108] Step S420: After sending the target node shutdown reporting instruction, the test device sends a forwarding node shutdown reporting instruction to the forwarding node, so that the forwarding node stops sending data frame data and / or index frame data.
[0109] In this embodiment, when performing a standard experimental test, the corresponding start button can be manually clicked / pressed to start the test monitoring system. The test device 20 will send an enable reporting instruction to the corresponding test device 20 when it is powered on. The test device 20 reports data frame data and index frame data, and in the process of sending data frame data to the test device 20, the test device 20 sends an index frame trigger instruction at a preset time interval, so that the device under test reports index frame data at a preset time interval, so that the test device 20 parses the data frame data according to the index frame data, and obtains the test content and related test data of the device under test to complete the test of the device under test. When the experiment is completed, the experimenter can click the "End" button again. The host computer then sends a shutdown reporting instruction to all devices under test to notify them to stop sending data frame data and index frame data.
[0110] Optionally, when developing the test, the R&D personnel set the specific conditions for the completion of the experiment through the host computer (test device 20) interface. These conditions may include but are not limited to a preset time, a preset data threshold (such as a temperature exceeding a preset temperature threshold), or the occurrence of a certain event (such as the need to terminate the test when the sensor detects an abnormality). During the experiment, the host computer continuously monitors the data frame data from each device under test, and parses it according to the index frame data reported at a preset time interval, and monitors and records the test data of the device under test in real time. Assuming that the experimental completion condition is a time condition, the R&D personnel set a fixed time length in advance, such as 5 hours, then the host computer will determine that the experimental completion condition is met when the test duration reaches five hours, and immediately send a close reporting instruction to the device under test, notifying them to stop sending data frame data and index frame data. In this way, the Xlog reporting function is turned off after the experiment to avoid occupying network bandwidth and recording redundant test data, and performing unnecessary analysis and processing.
[0111] refer to Fig.14, when the test device 20 determines that the monitoring system has reached the experimental completion condition according to the above trigger button or trigger condition, the test device 20 sends a target node closing reporting instruction (target node closing Xlog reporting instruction) to the forwarding node, so that the forwarding node sends the target node closing reporting instruction to the corresponding target node and stops the target node from sending data frame data and / or index frame data; after sending the target node closing reporting instruction, the test device 20 sends a forwarding node closing reporting instruction (forwarding node closing Xlog reporting instruction) to the forwarding node, so that the forwarding node stops sending data frame data and / or index frame data. It should be noted that in order to ensure that the device forwarding node can transmit the target node closing Xlog reporting instruction sent by the test device 20 to the corresponding target node, in this embodiment, the target node closing reporting instruction and the forwarding node closing reporting instruction can be sent in time-sharing, for example, the forwarding node closing reporting instruction is sent after a preset time after the target node closing reporting instruction is sent to ensure that the target node can be successfully closed. Within the preset time, if a signal that the target node is successfully closed is received from the forwarding node, the forwarding node closing reporting instruction can be sent immediately. That is, after the experiment is over, turn off the Xlog reporting function to avoid occupying network bandwidth and recording redundant data;
[0112] In actual application, when the experiment completion conditions are met, the test device 20 can immediately send a shutdown reporting instruction to notify the device under test to stop sending data frames and index frame data. This avoids unnecessary data transmission and reduces the waste of network bandwidth. By closing the Xlog reporting function in time, it prevents the continued recording of redundant experimental data after the experiment is completed, simplifies subsequent data analysis and processing, and improves resource utilization efficiency.
[0113] The present invention also proposes a control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method of the above-mentioned monitoring system.
[0114] It is worth noting that since the control device of the present invention is based on the control method of the above-mentioned monitoring system, the embodiments of the control device of the present invention include all technical solutions of all embodiments of the control method of the above-mentioned monitoring system, and the technical effects achieved are also exactly the same, which will not be repeated here.
[0115] The present invention also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the control method of the monitoring system described above are implemented.
[0116] It is worth noting that since the storage medium of the present invention is based on the control method of the above-mentioned monitoring system, the embodiments of the storage medium of the present invention include all technical solutions of all embodiments of the control method of the above-mentioned monitoring system, and the technical effects achieved are exactly the same, which will not be repeated here.
[0117] The present invention also proposes a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the control method of the monitoring system described above are implemented.
[0118] It is worth noting that since the computer program product of the present invention is based on the above-mentioned control method of the monitoring system, the embodiments of the computer program product of the present invention include all technical solutions of all embodiments of the above-mentioned control method of the monitoring system, and the technical effects achieved are also exactly the same, which will not be repeated here.
[0119] The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or direct / indirect applications in other related technical fields, under the inventive concept of the present invention are included in the patent protection scope of the present invention.
Claims
1. A monitoring system, characterized in that: The monitoring system comprises: A plurality of network ports, each of which is used to access a device under test; The test device is electrically connected to the multiple network ports to communicate with the device under test through the multiple network ports; the test device is used to receive test data of the device under test through the network port, and the test data includes data frame data and index frame data for parsing the data frame data.
2. The monitoring system according to claim 1, characterized in that: The test device is specifically used to send an index frame trigger instruction to the device under test at a preset time interval during the process of sending data frame data to the test device, so that the device under test that receives the index frame trigger instruction sends the index frame data to the test device.
3. The monitoring system according to claim 1, characterized in that: The test device is also used to send an enable reporting instruction to the device under test via the network port when powered on, so that the device under test that receives the enable reporting instruction sends data frame data and index frame data to the test device.
4. The monitoring system according to claim 1, characterized in that: The test device includes a mainboard, and the monitoring system also includes a network card, the network card includes multiple network ports, and the network card is arranged on the mainboard; or, the monitoring system also includes multiple network cards, each of the network cards includes at least one network port, and at least one network port of each network card is connected to a device under test, so that the test device can communicate with multiple devices under test through multiple network cards.
5. The monitoring system according to claim 1, characterized in that: The monitoring system further includes at least one of a power supply, an on-board Ethernet converter, a communication module, and a switch; The power supply is electrically connected to the device under test, and is used to output a power supply signal to the test device when receiving a power-on control signal sent by the test device, so as to supply power to the device under test; The vehicle-mounted Ethernet converter is electrically connected to the device under test and is used to convert the vehicle-mounted Ethernet signal output by the device under test into a network signal received by the test device; The communication module is electrically connected to the device under test, and the communication module is used to establish a communication connection between the test device and the device under test; Multiple switches, each of the switches includes an input end and multiple output ends, the input ends of the multiple switches are connected to the multiple network ports in a one-to-one correspondence, and the output end of each switch is used to connect to any one or a combination of the power supply, the vehicle-mounted Ethernet converter, and the communication module.
6. A control method for a monitoring system, characterized in that: The monitoring system includes a test device and a plurality of network ports, wherein the test device is electrically connected to the plurality of network ports so as to be communicatively connected to the device under test through the plurality of network ports; the test device is used to receive test data of the device under test through the network port, wherein the test data includes data frame data and index frame data for parsing the data frame data, and the control method of the monitoring system includes: The test device sends an enable reporting command to the device under test, and waits to receive data frame data and index frame data sent by the device under test; The testing device receives the data frame data and the index frame data sent by the device under test, and parses the data frame data according to the index frame data.
7. The control method of the monitoring system according to claim 6, characterized in that: After the test device sends an enable reporting instruction to the device under test and waits for receiving data frame data and index frame data sent by the device under test, the control method of the monitoring system includes: In the process of sending the data frame data to the test device, an index frame trigger instruction is sent to the device under test at a preset time interval, and the index frame data sent by the device under test is received.
8. The control method of the monitoring system according to claim 6, characterized in that: The device under test includes a forwarding node and a plurality of target nodes. The test device sends an enable reporting instruction to the device under test, and waits for receiving data frame data and index frame data sent by the device under test. Specifically, the steps include: The test device sends an enable reporting instruction to the forwarding node when powered on, and waits for the intermediate data frame data sent by the forwarding node; When the intermediate data frame data is received, a data frame sending instruction is sent to the forwarding node, so that the forwarding node sends the received data frame sending instruction to the corresponding target node, and waits to receive the data frame data and index frame data sent by the target node.
9. The control method of the monitoring system according to claim 8, characterized in that: In the process of sending the data frame data to the test device, the steps of sending the index frame trigger instruction to the device under test at a preset time interval and receiving the index frame data sent by the device under test specifically include: In the process of sending the data frame data to the test device, an index frame trigger instruction is sent to the forwarding node at a preset time interval, so that the forwarding node outputs the received index frame trigger instruction to the corresponding target node, and receives the target index frame data sent by the target node; The target index frame data of the target node sent by the forwarding node is received to receive the index frame data sent by the device under test.
10. The control method of the monitoring system according to claim 7, characterized in that: After the step of sending an index frame trigger instruction to the device under test at a preset time interval and receiving the index frame data sent by the device under test during the process of sending the data frame data to the test device, the control method of the monitoring system further includes: The testing device sends a reporting shutdown instruction to the device under test, so that the device under test stops sending data frame data and / or index frame data.
11. The control method of the monitoring system according to claim 10, characterized in that: The shutdown reporting instruction includes a shutdown target node reporting instruction and a shutdown forwarding node reporting instruction, the device under test includes a forwarding node and multiple target nodes, and the test device sends a shutdown reporting instruction to the device under test so that the device under test stops sending data frame data and / or index frame data. The step specifically includes: When the monitoring system reaches the experiment completion condition, the test device sends a target node shutdown reporting instruction to the forwarding node, so that the forwarding node sends the target node shutdown reporting instruction to the corresponding target node, and stops the target node from sending data frame data and / or index frame data; After sending the target node shutdown reporting instruction, the test device sends a forwarding node shutdown reporting instruction to the forwarding node, so that the forwarding node stops sending data frame data and / or index frame data.
12. A control device, characterized in that: The control device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method of the monitoring system according to any one of claims 1 to 11.