Multifunctional automatic testing method and system for industrial personal computer port

Through the collaborative work of automated test fixtures and upper computer modules, the problems of low efficiency and poor accuracy of industrial control ports are solved, efficient and accurate serial and network port testing are achieved, and the reliability of industrial control machines and collaborative testing capabilities under PoE load are improved.

CN120583012AActive Publication Date: 2025-09-02DONGGUAN TUOLANG IND CONTROL EQUIP CO LTD

Patent Information

Application Number
CN202510789936.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-02
Estimated Expiration
2045-06-13

AI Technical Summary

Technical Problem

In the prior art, the test efficiency of industrial control machine ports is low and the accuracy is poor, making it difficult to meet the needs of large-scale production, and lacks the ability to collaboratively test serial ports and network ports under PoE loads.

Method used

Through the test fixture, the serial port and network port of the industrial control machine are connected separately, the PoE load is provided, the data frames in preset format are sent, the upper computer test module is activated, the data content is identified and monitored, the data content is compared and consistency judgment is performed, and the IP address is automatically identified and configured, and the automatic testing of the serial port and network port is realized.

Benefits of technology

It realizes automated testing of industrial control machine ports, improves testing efficiency and accuracy, improves port reliability and collaborative testing capabilities under PoE load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120583012A_ABST
    Figure CN120583012A_ABST
Patent Text Reader

Abstract

The invention discloses a multifunctional automatic test method and system for an industrial personal computer port, and relates to the technical field of industrial personal computers, and the method comprises the steps: connecting a serial port and a network port of a to-be-tested industrial personal computer through a test fixture, and starting a power supply module to provide a PoE load; controlling the test fixture to send a data frame in a preset format to each serial port, activating an upper computer test module at the same time, and identifying and monitoring data content; comparing with a preset data template, judging whether serial port receiving is correct or not, and performing consistency judgment to obtain a serial port communication test result; and judging whether network communication is normal or not, and obtaining a network port test result. The technical problems that in the prior art, manual testing is low in efficiency and poor in accuracy, the large-scale production requirement is difficult to meet, and the collaborative testing capacity of the serial port and the network port under the PoE load is lacked are solved, and the technical effects that automatic testing is achieved, the testing efficiency and accuracy are improved, and the reliability of the industrial personal computer port is improved are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field related to industrial computers, and in particular to a multifunctional automated testing method and system for an industrial computer port. Background Art

[0002] Industrial computers (IPCs) undertake critical tasks such as data processing, equipment control, and information exchange in fields such as industrial automation and intelligent manufacturing. Their serial and network ports serve as crucial interfaces for data transmission and communication between the IPC and external devices and systems. The stability and accuracy of these ports directly impact the operational efficiency and reliability of the entire industrial control system. Communication failures or data transmission anomalies at these ports can lead to equipment interruptions, production data loss, and even serious safety incidents. However, traditional IPC port testing involves manually connecting test equipment, sending test data, and recording and comparing test results. This approach is inefficient, has long test cycles, and is difficult to meet the demands of large-scale production and rapid delivery. It is also prone to errors, making it difficult to ensure the accuracy and consistency of test results. Furthermore, under PoE (Power over Ethernet) load conditions, the coordinated testing of serial and network ports is even more complex, and existing tests are unable to comprehensively and efficiently detect port performance under complex operating conditions.

[0003] Therefore, in the current related technologies, there are technical problems such as low efficiency and poor accuracy of manual testing, which is difficult to meet the needs of large-scale production, and lacks the ability to collaboratively test serial ports and network ports under PoE load. Summary of the Invention

[0004] This application provides a multifunctional automated testing method and system for industrial computer ports, which solves the technical problems in the existing technology of low efficiency and poor accuracy of manual testing, difficulty in meeting large-scale production needs, and lack of collaborative testing capabilities for serial ports and network ports under PoE load. It achieves the technical effect of realizing automated testing, improving test efficiency and accuracy, and improving the reliability of industrial computer ports.

[0005] The present application provides a multifunctional automated testing method for an industrial computer port, the method comprising: connecting a serial port and a network port of an industrial computer to be tested respectively through a test fixture, and turning on a power supply module of the test fixture to provide a PoE load; under PoE load conditions, controlling the test fixture to send a data frame in a preset format to each serial port, and simultaneously activating a host computer test module of the industrial computer to identify and monitor data content received by the local serial port; the host computer compares the received data content with a preset data template to determine whether the serial port reception is correct, and simultaneously sends confirmation data back to the test fixture, which performs a consistency check after receiving the data to obtain a serial port communication test result; the host computer test module automatically identifies the network port in the connection state, configures a fixed IP address, and determines whether the network communication is normal by sending a test message to the test fixture and receiving a response from the test fixture, thereby obtaining a network port test result.

[0006] In a possible implementation, the multifunctional automated testing method for an industrial computer port further performs the following processing: restoring the IP address configured for the network port to a DHCP dynamic mode, and saving the test record.

[0007] In a possible implementation, the multifunctional automated testing method for an industrial computer port also performs the following processing: setting a target power; gradually increasing the load from low power to the target power in stages according to a preset power loading window to simulate an actual power supply scenario; pausing for a preset time based on the power loading reaching the target power condition, monitoring the power absorbed by the load circuit in the test fixture in real time, and sampling voltage and current data; judging whether the power supply parameter volatility meets the target requirements based on the sampled voltage and current data, and obtaining the PoE load test results, including current, voltage, power curves and stability evaluation.

[0008] In a possible implementation, the multifunctional automated testing method for an industrial computer port further performs the following processing: dividing the stages according to the target power and configuring the dynamic window step of each stage; loading in stages according to the mapping relationship between the dynamic window step of the stage and the stage power, and continuously monitoring the fluctuation of the power supply parameters, wherein each stage is maintained for no less than 5 seconds; performing feature aggregation according to the fluctuation of each stage to obtain the PoE load test result.

[0009] In a possible implementation, the multifunctional automated testing method for an industrial computer port further performs the following processing: comparing the response data length, field structure and CRC check result, and marking the serial port communication abnormality when any judgment result is abnormal.

[0010] In a possible implementation, the multifunctional automated testing method for an industrial computer port further performs the following processing: feeding back the serial port communication test results, network port test results, and PoE load test results to a host computer for interface visualization conversion; the test fixture includes multiple parallel test ports. When multiple serial ports and multiple network ports are tested in parallel, a mapping relationship between the multiple parallel test ports and the serial port communication test results, network port test results, and PoE load test results is established, and a visual integrated list is generated and sent to the host computer for interface visualization conversion.

[0011] In a possible implementation, the multifunctional automated testing method for an industrial computer port also performs the following processing: collecting historical test samples and constructing a communication status sample library; using the status identification features in the communication status sample library as training features, including at least CRC error rate, communication delay, and abnormal fluctuation value, to establish a historical model for identifying bit error rate, response delay, and PoE power supply stability indicators; matching and analyzing the current test data with the historical model through a boundary recognition module to identify whether there is an abnormal pattern or potential fault state; and sending the abnormal pattern or potential fault state to the host computer interface for re-inspection reminder.

[0012] In a possible implementation, the multifunctional automated testing method for an industrial computer port also performs the following processing: each sample in the communication status sample library includes CRC error rate, response delay, PoE voltage drop, power fluctuation, number of voltage drops, port connection establishment time dimension characteristics, and test result labels, and a clustering algorithm is used to perform unsupervised clustering on the samples based on the communication status sample library to divide multiple communication status clusters; based on the multiple communication status clusters, transition samples located between two or more communication status clusters are identified as transition state data; using the transition state data as a training set and combining the communication status cluster boundary characteristics, a boundary anomaly detector is trained to identify abnormal communication patterns or boundary anomaly points existing in the current test data, and to construct the boundary recognition module.

[0013] In a possible implementation, the multifunctional automated testing method for an industrial computer port also performs the following processing: identifying whether the current test data falls within the boundaries of multiple communication status clusters or is determined to be an isolated abnormal point; when the current test data falls within the boundaries of multiple communication status clusters or is determined to be an isolated abnormal point, outputting a potential fault state; generating a re-inspection reminder based on the potential fault state and sending it to the host computer interface.

[0014] The present application also provides a multifunctional automated testing system for industrial computer ports, the system comprising: a port connection unit, used to connect the serial port and network port of the industrial computer to be tested respectively through a test fixture, and turn on the power supply module of the test fixture to provide PoE load; a data content identification unit, used to control the test fixture to send a data frame in a preset format to each serial port under PoE load conditions, and at the same time activate the host computer test module of the industrial computer to identify and monitor the data content received by the local serial port; a data comparison unit, used for the host computer to compare the received data content with a preset data template to determine whether the serial port reception is correct, and at the same time send confirmation data back to the test fixture, which performs consistency judgment after receiving it to obtain a serial port communication test result; a port test result acquisition unit, used for the host computer test module to automatically identify the network port in the connection state, configure a fixed IP address, and determine whether the network communication is normal by sending a test message to the test fixture and receiving its response, thereby obtaining a network port test result.

[0015] This application proposes a multifunctional automated testing method and system for industrial computer ports. The system connects the serial port and network port of the industrial computer to be tested to a test fixture, activates the power supply module to provide PoE load, controls the test fixture to send data frames in a preset format to each serial port, and simultaneously activates the host computer test module to identify and monitor the data content. The system compares the data with the preset data template to determine whether the serial port reception is correct, performs a consistency check, and obtains the serial communication test result. The system also determines whether the network communication is normal and obtains the network port test result. This method solves the technical problems of low efficiency and poor accuracy of manual testing in the prior art, making it difficult to meet large-scale production needs, and lacks the ability to collaboratively test serial and network ports under PoE load. It achieves the technical effect of realizing automated testing, improving test efficiency and accuracy, and enhancing the reliability of industrial computer ports. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the accompanying drawings of the embodiments of the present disclosure are briefly introduced below. Flowcharts are used in this application to illustrate the operations performed by the systems according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in precise order. Instead, various steps may be processed in reverse order or simultaneously as needed. Furthermore, other operations may be added to these processes, or one or more operations may be removed from these processes.

[0017] Figure 1 A flowchart of a multifunctional automated testing method for an industrial computer port provided in an embodiment of the present application.

[0018] Figure 2A schematic diagram of the structure of a multifunctional automated testing system for an industrial computer port provided in an embodiment of the present application.

[0019] Description of reference numerals: port connection unit 10 , data content identification unit 20 , data comparison unit 30 , port test result acquisition unit 40 . DETAILED DESCRIPTION

[0020] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.

[0021] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0022] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict, and the terms “first\second” involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. The terms “including” and “having” and any variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or modules that are not clearly listed or that are inherent to these processes, methods, products or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application only.

[0023] The present application embodiment provides a multifunctional automated testing method for an industrial computer port, such as Figure 1 As shown, the method includes:

[0024] In step S100 , the serial port and the network port of the industrial computer to be tested are connected to each other through a test fixture, and the power supply module of the test fixture is turned on to provide a PoE load.

[0025] Preferably, the serial port (such as RS-232 / 485, etc., for serial data transmission) and the network port (such as RJ45 network port, for Ethernet communication) of the industrial computer to be tested are respectively connected through a test fixture to establish a physical connection channel, and the test fixture is used as an intermediate medium to realize automated test control of the port function, wherein the test fixture is equipped with an interface (such as a serial cable, a network cable, etc.) that matches the port of the industrial computer, and an electrical connection is achieved through a standardized interface to ensure the stability of data transmission. Then, the power supply module of the test fixture is turned on to provide a PoE load, that is, to provide a PoE load condition for the port of the industrial computer, simulating the working environment of the port in a live state in an actual industrial scenario, wherein PoE transmits data and power simultaneously through the network cable, allowing network equipment to obtain power supply while communicating. Industrial computers often receive power through PoE (such as powering external cameras, sensors, etc.). Providing a PoE load can verify the stability of the port when power transmission and data communication are in parallel, the ability of the power supply module and the data transmission module to work together, and the anti-interference and reliability of the port in a live state.

[0026] Furthermore, step S100 also includes step S110, setting the target power; step S120, gradually increasing the load from low power to the target power in stages according to a preset power loading window, simulating an actual power supply scenario; step S130, based on the power loading reaching the target power condition, pausing for a preset time, monitoring the power absorbed by the load circuit in the test fixture in real time, and sampling voltage and current data; step S140, judging whether the power supply parameter volatility meets the target requirements based on the sampled voltage and current data, and obtaining the PoE load test results, including current, voltage, power curves and stability evaluation.

[0027] Preferably, the target power is set according to the industrial computer port specifications or industry standards, that is, the rated power supply power (such as the common PoE standard power is 15.4W, etc.), which is used to simulate the power supply requirements of the port under real load to ensure that the test conditions are consistent with the actual working conditions. Then, according to the preset power loading window (such as increasing the total power by 5% every 100ms), the load is gradually increased from low power to the target power in stages, that is, by increasing the load in a step-by-step manner (from low power → target power), to avoid instantaneous high-power shocks that cause equipment damage or test errors. Among them, the power demand of the PoE load changes dynamically with the working status (such as the power suddenly rises when the camera is started). The staged loading can simulate the load gradient process and test the dynamic response capability of the port; after loading to the target power, it stays for a preset time (such as 30 minutes) to ensure that the port operates under stable power, exposing potential heat loss, component aging and other problems.

[0028] Preferably, the power absorbed by the load circuit in the test fixture is monitored in real time, and the voltage and current data are sampled. Specifically, the test fixture has a built-in power monitoring module (such as a Hall current sensor and a voltage sampling circuit) to obtain the power absorbed by the load circuit, that is, the actual power consumption, for verifying the power supply efficiency; the sampled voltage and current data are collected in real time by a high-precision sensor; then the voltage / current fluctuation range is calculated based on the sampled data (such as allowing voltage fluctuation ≤±5% of the rated value), and compared with the design requirements to determine whether it meets the standards. For example, if the target voltage is 48V and the actual fluctuation range is between 45.6V and 50.4V, it is considered qualified, and then the PoE load test results are obtained, including current, voltage, and power curves, with the horizontal axis being time and the vertical axis being parameter value, which intuitively presents dynamic changes and is used to analyze the dynamic characteristics of the port under load (such as transient response time and steady-state error); and stability evaluation, such as "power fluctuation ≤1%, in compliance with the IEEE 802.3at standard", is helpful in evaluating the reliability of industrial computers, such as screening out unqualified power modules.

[0029] Furthermore, step S120 also includes step S121, dividing the stages according to the target power and configuring the dynamic window step of each stage; step S122, loading in stages according to the mapping relationship between the dynamic window step of the stage and the stage power, and continuously monitoring the fluctuation of the power supply parameters, wherein each stage is maintained for no less than 5 seconds; step S123, performing feature aggregation according to the volatility of each stage to obtain the PoE load test result.

[0030] Preferably, the power loading window is to increase the load once every 100ms, that is, to load 10 times per second. It is a high-frequency dynamic test that can capture fast fluctuation signals. The total power is increased by 5% each time. Assuming that the target power is 30W, each loading is increased by 1.5W (30W×5%). Starting from 0W and gradually increasing to 30W, a total of 20 loadings are required (100% / 5%=20), and the total loading time is 20×100ms=2 seconds; and the measured values ​​of voltage / current / power are allowed to deviate from the target values ​​within ±5%, which is better than For example, when the target power is 30W, the power fluctuation is allowed to be ≤1.5W. Then, the stage is divided according to the target power, and the dynamic window step of each stage is configured. The loading is carried out in stages according to the mapping relationship between the stage dynamic window step and the stage power. Among them, the low power stage adopts a large step size (5% / 4%) to quickly cover the basic load; the high power stage adopts a small step size (3% / 2%) to avoid the protection circuit being triggered due to excessive loading when approaching the rated power. Taking the 30W target power as an example, the stage division is shown in Table 1:

[0031] Table 1 Target power stage division and dynamic step configuration data table

[0032]

[0033] Preferably, the fluctuation of power supply parameters is continuously monitored, and each stage is maintained for no less than 5 seconds. Specifically, the instantaneous fluctuation of voltage / current during the loading process of each stage (such as the amplitude of voltage drop during loading) and the steady-state fluctuation of parameters during the holding period (such as whether the voltage remains stable within ±5% within 5 seconds) are monitored. Then, feature aggregation is performed based on the volatility of each stage, including analysis of time domain features and frequency domain features. Among them, the time domain features include the maximum and minimum values, mean and variance of voltage / current and the number of times exceeding the threshold. The frequency domain features are analyzed through FFT to analyze the main frequency of the fluctuation signal and the proportion of harmonic components. Finally, the PoE load test results are obtained by integration, and the current mean, fluctuation amplitude and abnormal frequency of each stage are comprehensively analyzed to determine whether the performance of the industrial computer meets the standards.

[0034] Step S200: Based on the PoE load condition, the test fixture is controlled to send a data frame of a preset format to each serial port, and the host computer test module of the industrial computer is activated to identify and monitor the data content received by the local serial port.

[0035] Preferably, a single-chip microcomputer module is embedded in the test fixture, a standard command frame format is pre-written, and under PoE load conditions, a fixed-period data frame is sent to the industrial computer through the RS232 / RS485 port. That is, the data frame is sent to the serial port at a preset time interval (e.g., 10ms / frame), and the sending timestamp and data content are recorded, and multi-channel parallel transmission is supported. The data frame includes standard fields such as the start bit, device address, function code, data area, check code (e.g., CRC16), and end bit. The host computer test module of the industrial computer is activated to identify and monitor the data content received by the local serial port. That is, the host computer software of the industrial computer captures the data frame received by the local serial port in real time, extracts key information (e.g., data area content, check result), and performs field-level comparison, including byte-level matching between the received data and the transmitted data, and calculating the bit error rate. At the same time, receipt data is sent to the test fixture, and the fixture completes the secondary reception and comparison, forming a closed-loop two-way communication verification mechanism, which effectively identifies data anomalies, format errors, frame loss, and other problems.

[0036] In step S300, the host computer compares the received data content with the preset data template to determine whether the serial port reception is correct, and sends confirmation data back to the test fixture. After receiving the data, the test fixture performs consistency judgment and obtains the serial port communication test result.

[0037] Preferably, the preset data template includes a standard data frame structure (such as the address segment, function code segment, data segment, and check segment of the Modbus protocol frame), a legal value range (such as the upper and lower limits of the register value), and timing rules (such as the response timeout threshold is 50ms), and the template presets normal data (such as the real-time temperature value of the sensor), abnormal data (such as the error value out of range), and boundary data (such as the maximum value of the register) to verify the processing capability of the serial port under different working conditions; the upper computer matches each frame of data received with the preset data template at the byte level to determine whether the serial port is received correctly, that is, checks whether the content of the data segment conforms to the preset format (such as the temperature data must be a 16-bit signed integer), and records the time interval for data reception to determine whether there is frame loss (such as an interval of more than 20ms between two consecutive frames is considered abnormal) or disorder.

[0038] Preferably, the host computer encapsulates the verification result as confirmation data (such as a "received correctly / incorrectly" status code, an error type identifier, and a summary of the original data) and sends it back to the test fixture. For example, if the received data completely conforms to the template, an ACK confirmation frame is sent; if an error is found (such as a CRC check failure), a NAK error frame is sent. The test fixture compares the original sent data with the confirmation data returned by the host computer to verify the bidirectional consistency of the communication link. If an inconsistency is found, the test fixture locates the specific link where the error occurred (such as a serial port hardware failure or a software parsing error) through the timestamp and frame sequence number, and obtains the serial communication test results, thereby achieving full-link reliability verification of serial communication under PoE load.

[0039] Furthermore, step S300 also includes that the test fixture performs consistency judgment after receiving the response, including comparing the response data length, field structure and CRC check result. When any judgment result is abnormal, the serial port communication is marked as abnormal.

[0040] Preferably, the test fixture performs consistency judgment after receiving the data, including comparing the response data length, field structure and CRC check result. Specifically, the response data length comparison check refers to comparing the data frame length sent by the test fixture with the confirmation frame length returned by the host computer to ensure that there is no data loss or redundancy. For example, the test fixture sends a 10-byte data frame. If the host computer returns 9 bytes or 11 bytes, it is determined that the length is abnormal (possibly due to serial port buffer overflow or poor cable contact causing byte loss); the field structure comparison check includes checking whether the confirmation frame contains the required fields specified in the protocol (such as the start character, address segment, function code segment), whether the order is correct, and verifying whether the values ​​of each field are within the legal range; the CRC check result comparison check refers to the test fixture calculating the CRC check value of the sent data and comparing it with the check value in the frame returned by the host computer. If the CRC check fails, it indicates that the data is bit flipped during transmission, and the position of the wrong byte can be located by XOR operation. When any judgment result is abnormal, the serial communication abnormality is marked and written into the test log. Among them, the abnormality priority is CRC check failure (directly judged that the data is unreliable) > field structure error (protocol parsing failure) > data length abnormality (partial data may be valid). If there is both length abnormality and CRC error, the CRC error is recorded first, and finally the serial communication fault can be quickly located and classified to facilitate the reliability verification of the industrial computer.

[0041] In step S400, the host computer test module automatically identifies the network port in the connection state and configures a fixed IP address. By sending a test message to the test fixture and receiving its response, it determines whether the network communication is normal and obtains the network port test result.

[0042] Preferably, the host computer determines whether the network port is physically connected (Link light is on) and the data transmission status (Act light flashes) by reading the link status register of the industrial computer network card, and then the host computer test software automatically scans and identifies the available network adapters through the network interface API, allocates a fixed IP (such as configuring a 192.168.1.x segment address) and connects the test fixture. If the port is originally configured to dynamically obtain an IP address through DHCP, the host computer test module will temporarily overwrite it with a fixed IP to avoid test failure due to unavailability of the DHCP server. During the test phase, a test message is sent and the response content is monitored. The test message includes ICMP protocol (Ping test), TCP protocol test, UDP protocol test and application layer protocol (such as HTTP) test. ICMP protocol (Ping test) is to send a 32-byte Echo Request message, after receiving EchoReply, calculate the round-trip delay (RTT) and packet loss rate (requires packet loss rate of 0% and delay ≤10ms); TCP protocol testing initiates a three-way handshake to the designated port of the test fixture (such as 8080) to verify the port listening status; UDP protocol testing sends UDP packets containing random data (such as destination port 9999), and the fixture returns the same data to verify no packet loss; application layer protocol (such as HTTP) testing involves sending GET requests and analyzing the response status code (200 indicates normal) and data content.

[0043] Preferably, the communication capability of the network port is determined by checking the content, response delay and connection status. For example, a response timeout threshold (such as 500ms) is set, and if the timeout exceeds, the communication is determined to be interrupted; the byte-level consistency of the sent message and the received response is compared (such as the UDP return data must be exactly the same as the sent data); the network communication status test evaluation data of the example is shown in Table 2:

[0044] Table 2 Network communication status test evaluation data table

[0045]

[0046] Finally, the network port test results are obtained, and the test report file can be exported, including the test time of each port, network communication status (such as packet loss rate, throughput, and delay jitter value), such as the type of network communication anomaly and possible causes, thereby achieving comprehensive reliability verification of industrial network ports under complex working conditions and ensuring test efficiency and accuracy.

[0047] Furthermore, step S400 also includes restoring the IP address configured on the network port to a DHCP dynamic mode and saving a test record.

[0048] Preferably, in order to ensure stable communication during the test phase, the host computer configures the network port as a fixed IP. After the test is completed, the IP address configured on the network port is restored to the DHCP dynamic mode, that is, the current fixed IP configuration program is stopped, the DHCP client service is enabled, a Discover message is sent to the DHCP server to request an IP address, the dynamic IP assigned by the server is received, the DNS server and other network parameters are automatically obtained, and the test records are saved, including the test environment parameters (industrial computer model, firmware version, test fixture model, test time), port test results and exception records (such as boundary exception type, characteristic value and re-inspection suggestion).

[0049] Furthermore, step S400 also includes feeding back the serial port communication test results, network port test results, and PoE load test results to the host computer for interface visualization conversion; the test fixture includes multiple parallel test ports. When multiple serial ports and multiple network ports are tested in parallel, a mapping relationship between multiple parallel test ports and serial port communication test results, network port test results, and PoE load test results is established, and a visualization integration list is generated and sent to the host computer for interface visualization conversion.

[0050] Preferably, the test fixture includes multiple parallel test ports, that is, it is equipped with multiple groups of independent serial ports and network ports, supporting simultaneous testing of more than 8 ports. The test fixture has a built-in FPGA / MCU chip, and realizes multi-port synchronous testing through time division multiplexing or hardware parallel channels to avoid mutual interference. When multiple serial ports and multiple network ports are tested in parallel, a mapping relationship between multiple parallel test ports and serial port communication test results, network port test results, and PoE load test results is established, including assigning a unique ID to each test port and carrying a port ID tag in the result. At the same time, the parallel test data is aligned by timestamp to ensure that the results are not confused. An example mapping relationship is shown in Table 3:

[0051] Table 3 Mapping relationship between parallel test ports and test results

[0052] Test port ID Corresponding industrial computer port Test Type Test results COM1_TP Industrial computer COM1 Serial communication Bit error rate 0.00%, delay 15ms ETH0_TP Industrial computer network port 1 Network port Throughput 980Mbps, packet loss 0 POE1_TP Power supply port 1 PoE load Power fluctuation ±2.7%, stable and up to standard

[0053] Then, a visual integrated list is generated, and abnormal ports are quickly located using green, yellow, and red markings based on their status (qualified, critical, or failed), as shown in Table 4:

[0054] Table 4 Visual integration list

[0055] Port Type Test items Key Metrics state Serial Port Communication test <![CDATA[Bit error rate 0.5×10 -6 > qualified Network port Throughput test 965Mbps (target ≥950Mbps) qualified PoE load Stability testing Voltage fluctuation +4.8% critical

[0056] Finally, the visual integrated list generated by the serial communication test results, network port test results, and PoE load test results is transmitted and fed back to the host computer through USB connection or Ethernet for interface visualization conversion, thereby achieving efficient management of multi-port parallel testing and intuitive display of results, ensuring the digitization and visualization of industrial computer quality control.

[0057] Furthermore, the multifunctional automated testing method for the industrial computer port also includes step S410, collecting historical test samples and constructing a communication status sample library; step S420, using the status identification features in the communication status sample library as training features, including at least CRC error rate, communication delay, and abnormal fluctuation value, to establish a historical model for identifying bit error rate, response delay, and PoE power supply stability indicators; step S430, matching and analyzing the current test data with the historical model through the boundary recognition module to identify whether there is an abnormal pattern or potential fault state; step S440, sending the abnormal pattern or potential fault state to the host computer interface for re-inspection reminder.

[0058] Preferably, at least 1,000 sets of historical test data (including normal, critical, and fault states) are collected to construct a communication status sample library. Each set of data may include serial port communication data, such as the number of CRC errors, data frame transmission delay, and bit error rate, network port data, such as throughput, packet loss rate, and delay jitter, and PoE load data, such as voltage / current fluctuation values ​​at each stage and power stability rating. The sample states are marked as "normal", "potential fault", and "serious fault". The state identification features in the communication status sample library are used as training features, including at least CRC error rate (number of CRC errors per unit time / total number of frames), communication delay (such as the serial port response delay with an average of 5ms and a standard deviation of 1ms), and fluctuation value anomalies (the main frequency component of PoE voltage fluctuations and the frequency distribution of network delay jitter).

[0059] Preferably, a historical model for identifying bit error rate, response delay, and PoE power supply stability indicators is established, that is, based on random forest (suitable for multi-feature classification, such as distinguishing "cable fault" from "protocol error") or LSTM neural network (capturing the delay change trend in time series data, such as predicting whether the delay in the next 5 minutes will exceed the threshold), by establishing a historical model (abnormal recognition model) of bit error rate, response delay, PoE unstable power supply and other states for a large amount of test data; then, the boundary recognition module is used to match and analyze the current test data with the historical model, and intelligent judgment is made in the gray state where the communication state is not completely abnormal, and probabilistic intelligent prompts are given for possible potential fault risks. Specifically, the system calculates the CRC error rate, delay mean and other features of the current test data in real time to generate a feature vector. The feature vector is compared with the abnormal pattern in the historical model through Euclidean distance or cosine similarity, and a matching threshold is set (for example, a similarity > 0.8 is determined to be an abnormal pattern). The system identifies whether there is an abnormal pattern or potential fault state and issues an early warning. For example, if the delay fluctuation exceeds the historical average by +20%, a yellow early warning (potential fault) is issued, and the upper computer interface displays "Communication delay increased, attention is recommended"; if the CRC error rate is >0.1%, a red early warning (emergency fault) is issued, the interface flashes and a voice prompt is given "Serious data error detected, the port is immediately subject to manual re-inspection".

[0060] Furthermore, step S430 also includes step S431, where each sample in the communication status sample library includes CRC error rate, response delay, PoE voltage drop, power fluctuation, number of voltage drops, port connection establishment time dimension features, and test result labels, and unsupervised clustering is performed on the samples based on the communication status sample library using a clustering algorithm to divide multiple communication status clusters; step S432, based on the multiple communication status clusters, identifying transition samples located between two or more communication status clusters as transition state data; step S433, using the transition state data as a training set, combined with the communication status cluster boundary features, training a boundary anomaly detector for identifying abnormal communication patterns or boundary anomaly points existing in the current test data, and constructing the boundary recognition module.

[0061] Preferably, each sample in the communication status sample library includes CRC error rate (the proportion of frames that fail CRC check per unit time), response delay (round-trip time of communication message), PoE voltage drop (the amplitude of voltage deviation from the rated value during PoE power supply), power fluctuation (the deviation between the actual power value and the target value under PoE load), voltage sag number (the number of times the voltage drops by more than 5% per unit time), port connection establishment time (the time taken for the network port / serial port to establish a communication link) and test result label (such as stable, unstable, abnormal, potential abnormality, etc.); then, based on the communication status sample library, a clustering algorithm (such as K-means++ clustering) is used to perform unsupervised clustering on the samples, and the cluster center is initialized to avoid local optimality, that is, the Euclidean distance between features is calculated, and the point with the farthest distance is selected as the first center. Subsequent centers are selected according to the principle that the farther the distance from the center, the higher the probability, until K (K=4~6), and then multiple communication status clusters are divided, such as ideal stable cluster, marginal stable cluster, critical unstable cluster and fault cluster.

[0062] Preferably, transition samples located between two or more communication state clusters are identified based on multiple communication state clusters, that is, the distance from the sample to the center of each cluster is calculated. If the distance to the two communication state clusters is less than the set feature space distance at the same time, then it is close to the boundary of the two cluster clusters at the same time, that is, it belongs to the neighborhood intersection area of ​​the two clusters, and is used as transition state data. The mean and variance of the transition sample in each dimension are then calculated. The transition state data is used as a training set, combined with the boundary characteristics of the communication state cluster, that is, the transition state data (normal transition samples and potential abnormal samples near the boundary) are used as positive samples, and the standard samples in the stable cluster are used as negative samples. The boundary anomaly detector is trained based on a single-class support vector machine to obtain a boundary recognition module for identifying abnormal points that deviate from the normal cluster boundary, that is, identifying abnormal communication patterns or boundary anomalies in the current test data, and then realizing accurate identification of communication state boundary anomalies, thereby facilitating predictive maintenance of industrial computers.

[0063] Furthermore, step S433 also includes step a, identifying whether the current test data falls into the boundaries of multiple communication status clusters or is judged to be an isolated abnormal point; step b, when the current test data falls into the boundaries of multiple communication status clusters or is judged to be an isolated abnormal point, outputting a potential fault state; step c, generating a re-inspection reminder based on the potential fault state and sending it to the upper computer interface.

[0064] Preferably, the distance between the current test data feature vector and the center of each cluster is calculated. If the distance to ≥2 cluster centers is less than 1.5 times the cluster radius, for example, it is close to the "stable cluster" and "unstable cluster" at the same time, it is determined to fall within the boundaries of multiple communication state clusters; if the number of samples within a certain distance (such as Euclidean distance 0.5) around the data point of the current test data is less than a threshold (such as less than 3), it is regarded as an outlier and is determined to be an isolated anomaly; then the transition state similar to the current boundary feature in the historical sample library is queried, and the corresponding fault type is associated, or the most likely fault state when the current test data is an isolated anomaly is found through association rule mining, and it is output as a potential fault state, and a re-inspection reminder is generated (if there is a potential fault risk for the port, please manually re-inspect) and sent to the host computer interface.

[0065] In the above, refer to Figure 1 A multifunctional automated testing method for an industrial computer port according to an embodiment of the present invention is described in detail. Figure 2 A multifunctional automatic testing system for an industrial computer port according to an embodiment of the present invention is described.

[0066] According to an embodiment of the present invention, a multifunctional automated testing system for industrial computer ports is used to solve the technical problems of low efficiency and poor accuracy of manual testing in the prior art, which makes it difficult to meet the needs of large-scale production and lacks the ability to collaboratively test serial ports and network ports under PoE load. This system achieves the technical effect of realizing automated testing, improving test efficiency and accuracy, and enhancing the reliability of industrial computer ports. Figure 2 As shown, a multifunctional automatic testing system for an industrial computer port includes: a port connection unit 10 , a data content identification unit 20 , a data comparison unit 30 , and a port test result acquisition unit 40 .

[0067] The port connection unit 10 is used to connect the serial port and network port of the industrial computer to be tested respectively through the test fixture, and turn on the power supply module of the test fixture to provide PoE load; the data content identification unit 20 is used to control the test fixture to send a data frame in a preset format to each serial port under the PoE load condition, and at the same time activate the host computer test module of the industrial computer to identify and monitor the data content received by the local serial port; the data comparison unit 30 is used for the host computer to compare the received data content with the preset data template to determine whether the serial port reception is correct, and at the same time send the confirmation data back to the test fixture. After receiving it, the test fixture performs consistency judgment and obtains the serial port communication test result; the port test result acquisition unit 40 is used for the host computer test module to automatically identify the network port in the connection state and configure a fixed IP address. By sending a test message to the test fixture and receiving its response, it is determined whether the network communication is normal and obtains the network port test result.

[0068] The specific configuration of the port test result obtaining unit 40 will be described in detail below. The port test result obtaining unit 40 further includes: restoring the IP address configured on the network port to the DHCP dynamic mode and saving the test record.

[0069] The specific configuration of the port connection unit 10 will be described in detail below. The port connection unit 10 further includes: setting a target power; gradually increasing the load from low power to the target power in stages according to a preset power loading window to simulate an actual power supply scenario; pausing for a preset time based on the power loading reaching the target power condition, monitoring the power absorbed by the load circuit in the test fixture in real time, and sampling voltage and current data; judging whether the power supply parameter fluctuation meets the target requirements based on the sampled voltage and current data, and obtaining the PoE load test results, including current, voltage, power curves and stability evaluation.

[0070] The specific configuration of the port connection unit 10 will be described in detail below. The port connection unit 10 further includes: dividing the power supply into stages according to the target power and configuring the dynamic window step size for each stage; performing phased loading according to the mapping relationship between the dynamic window step size and the power supply in each stage, and continuously monitoring the fluctuation of the power supply parameters, wherein each stage is maintained for no less than 5 seconds; and performing feature aggregation based on the fluctuation of each stage to obtain the PoE load test results.

[0071] The specific configuration of the data comparison unit 30 will be described in detail below. The data comparison unit 30 further includes: comparing the response data length, field structure and CRC check result, and marking the serial communication abnormality when any judgment result is abnormal.

[0072] The specific configuration of the port test result acquisition unit 40 will be described in detail below. The port test result acquisition unit 40 further includes: feeding back the serial port communication test results, network port test results, and PoE load test results to the host computer for interface visualization conversion; when the test fixture includes multiple parallel test ports, when multiple serial ports and multiple network ports are tested in parallel, establishing a mapping relationship between the multiple parallel test ports and the serial port communication test results, network port test results, and PoE load test results, generating a visual integration list, and sending it to the host computer for interface visualization conversion.

[0073] The following describes the specific configuration of the multifunctional automated testing system for industrial computer ports. The system also includes: collecting historical test samples to construct a communication status sample library; using the status identification features in the communication status sample library as training features, including at least CRC error rate, communication delay, and abnormal fluctuation values, to establish a historical model for identifying bit error rate, response delay, and PoE power supply stability indicators; using a boundary identification module to match and analyze current test data with the historical model to identify abnormal patterns or potential fault conditions; and transmitting these abnormal patterns or potential fault conditions to the host computer interface for re-inspection reminders.

[0074] The specific configuration of the multifunctional automated testing system for industrial computer ports will be described in detail below. The multifunctional automated testing system for industrial computer ports further includes: each sample in the communication status sample library includes dimensional features such as CRC error rate, response delay, PoE voltage drop, power fluctuation, number of voltage dips, port connection establishment time, and test result labels; based on the communication status sample library, a clustering algorithm is used to perform unsupervised clustering on the samples to divide multiple communication status clusters; based on the multiple communication status clusters, transition samples between two or more communication status clusters are identified as transition status data; using the transition status data as a training set and combining the communication status cluster boundary features, a boundary anomaly detector is trained to identify abnormal communication patterns or boundary anomalies in the current test data, thereby constructing the boundary identification module.

[0075] The specific configuration of the multifunctional automated testing system for industrial computer ports will be described in detail below. The multifunctional automated testing system for industrial computer ports further includes: identifying whether current test data falls within the boundaries of multiple communication status clusters or is determined to be an isolated anomaly; outputting a potential fault status when the current test data falls within the boundaries of multiple communication status clusters or is determined to be an isolated anomaly; and generating a retest reminder based on the potential fault status and sending it to the host computer interface.

[0076] The multifunctional automated testing system for an industrial computer port provided by an embodiment of the present invention can execute the multifunctional automated testing method for an industrial computer port provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0077] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules may be used and run on the user terminal and / or server, and the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present invention.

[0078] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.

Claims

1. A multifunctional automated testing method for an industrial computer port, characterized in that: include: Connect the serial port and network port of the industrial computer to be tested through the test fixture, and turn on the power supply module of the test fixture to provide PoE load; Based on the PoE load condition, the test fixture is controlled to send data frames of a preset format to each serial port, and the host computer test module of the industrial computer is activated to identify and monitor the data content received by the local serial port; The host computer compares the received data content with the preset data template to determine whether the serial port reception is correct, and sends the confirmation data back to the test fixture. After receiving the data, the test fixture performs consistency judgment and obtains the serial port communication test result; The host computer test module automatically identifies the network port in the connection state and configures a fixed IP address. By sending a test message to the test fixture and receiving its response, it determines whether the network communication is normal and obtains the network port test result.

2. The multifunctional automated testing method for an industrial computer port according to claim 1, characterized in that: Get network port test results, followed by: Restore the IP address configured on the network port to DHCP dynamic mode and save the test records.

3. The multifunctional automated testing method for an industrial computer port according to claim 1, characterized in that: Turn on the test fixture's power module to provide PoE loads, including: Set target power; According to the preset power loading window, the load is gradually increased from low power to the target power in stages to simulate the actual power supply scenario; Based on the power loading reaching the target power condition, the device stops for a preset time, monitors the power absorbed by the load circuit in the test fixture in real time, and samples voltage and current data; Based on the sampled voltage and current data, determine whether the power supply parameter fluctuation meets the target requirements and obtain the PoE load test results, including current, voltage, power curves and stability evaluation.

4. The multifunctional automated testing method for an industrial computer port according to claim 3, characterized in that: According to the preset power loading window, the load is gradually increased from low power to the target power in stages, including: Divide the power into stages according to the target power and configure the dynamic window step size of each stage; Loading is performed in stages according to the mapping relationship between the dynamic window step size and the stage power, and the power supply parameter fluctuation is continuously monitored, wherein each stage is maintained for no less than 5 seconds; Feature aggregation is performed according to the volatility of each stage to obtain the PoE load test result.

5. The multifunctional automated testing method for an industrial computer port according to claim 1, characterized in that: The test fixture performs consistency judgment after receiving the response, including comparing the response data length, field structure and CRC check result. When any judgment result is abnormal, the serial port communication is marked as abnormal.

6. The multifunctional automated testing method for an industrial computer port according to claim 4, characterized in that: Also includes: Feedback the serial communication test results, network port test results, and PoE load test results to the host computer for interface visualization conversion; The test fixture includes multiple parallel test ports. When multiple serial ports and multiple network ports are tested in parallel, a mapping relationship between the multiple parallel test ports and the serial port communication test results, network port test results, and PoE load test results is established, and a visual integrated list is generated and sent to the host computer for interface visualization conversion.

7. The multifunctional automated testing method for an industrial computer port according to claim 1, characterized in that: Also includes: Collect historical test samples and build a communication status sample library; Using the state identification features in the communication state sample library as training features, including at least CRC error rate, communication delay, and abnormal fluctuation value, to establish a historical model for identifying bit error rate, response delay, and PoE power supply stability indicators; The boundary identification module matches the current test data with the historical model to identify whether there are abnormal patterns or potential fault conditions; The abnormal mode or potential fault status is sent to the host computer interface for re-inspection reminder.

8. The multifunctional automated testing method for an industrial computer port according to claim 7, characterized in that: The boundary recognition module is used to match the current test data with the historical model. The previous examples include: Each sample in the communication status sample library includes dimensional features such as CRC error rate, response delay, PoE voltage drop, power fluctuation, number of voltage drops, port connection establishment time, and test result labels. Based on the communication status sample library, a clustering algorithm is used to perform unsupervised clustering on the samples to divide them into multiple communication status clusters; identifying, based on the plurality of communication state clusters, transition samples between two or more communication state clusters as transition state data; The transition state data is used as a training set, and the boundary anomaly detector is trained in combination with the communication state cluster boundary features to identify abnormal communication patterns or boundary anomaly points in the current test data, thereby constructing the boundary recognition module.

9. The multifunctional automated testing method for an industrial computer port according to claim 8, characterized in that: Constructing the boundary recognition module, then including: Identify whether the current test data falls within the boundaries of multiple communication state clusters or is determined to be an isolated abnormal point; When the current test data falls within the boundaries of multiple communication state clusters or is determined to be an isolated abnormal point, outputting a potential fault state; Generate a re-inspection reminder based on the potential fault status and send it to the host computer interface.

10. A multifunctional automatic testing system for industrial computer ports, characterized in that: The system is used to implement the multifunctional automated testing method for an industrial computer port according to any one of claims 1 to 9, and the system comprises: The port connection unit is used to connect the serial port and network port of the industrial computer under test through the test fixture, and turn on the power supply module of the test fixture to provide PoE load; A data content identification unit is used to control the test fixture to send data frames in a preset format to each serial port under PoE load conditions, and at the same time activate the host computer test module of the industrial computer to identify and monitor the data content received by the local serial port; The data comparison unit is used for the host computer to compare the received data content with the preset data template to determine whether the serial port reception is correct, and at the same time send the confirmation data back to the test fixture. After receiving the data, the test fixture performs consistency judgment and obtains the serial port communication test result; The port test result obtaining unit is used for the host computer test module to automatically identify the network port in the connection status and configure a fixed IP address. By sending a test message to the test fixture and receiving its response, it determines whether the network communication is normal and obtains the network port test result.

Citation Information

Patent Citations

  • Load simulating device and power over ethernet power supply port test system and method thereof

    CN102984024A

  • Automatic testing method and system for serial port of equipment to be tested

    CN105119779A

  • Special detection platform and method for wireless reconnection broadband data transmission equipment

    CN114414914A

  • Production measurement system and production measurement method for communication equipment with PoE (Power over Ethernet) function

    CN114614916A

  • SPTN equipment automatic test system and method

    CN114629833A

Cited By

  • Intelligent monitoring method for butt joint state of communication equipment connector

    CN121309391A