Server external interface test system and method

By designing a server external interface test system that utilizes upper computers, camera devices and programmable logic controllers, the problem of low testing efficiency in the prior art that requires manual cooperation is solved, and the interface is automated connection and testing is realized, and the production efficiency and quality are improved.

CN120196087APending Publication Date: 2025-06-24INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510307609.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The existing server external interface test process requires manual cooperation, resulting in low production efficiency, large labor occupancy, and increasing enterprise costs.

Method used

Design an external interface test system for servers, use the upper computer to obtain interface images collected by the camera device, determine the location of the test interface, and realize automatic connection and testing of the interface through a programmable logic controller and control module.

Benefits of technology

It realizes the automation of interface connections and testing, improves testing efficiency and quality, reduces manual intervention and reduces enterprise costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196087A_ABST
    Figure CN120196087A_ABST
Patent Text Reader

Abstract

The invention relates to the field of automatic testing, in particular to a server external interface testing system and method.The method comprises the steps that an upper computer obtains an interface image, collected by a camera device, of a server and a display interface image, tested by a diagnosis system, of a testing interface after the server and the upper computer are connected; determining the position of the test interface based on the interface image; determining an interface test result based on the content of the display interface image and the content of a configuration file corresponding to the test interface; if the test is passed, testing the next test interface; if the test is not passed, a non-passing signal is sent to the programmable logic controller; the programmable logic controller generates a first control instruction according to the position of the test interface sent by the upper computer; a blocking cylinder is controlled to descend according to the non-passing signal, so that the server flows into a pause position; and the control module connects the connecting line to the test interface according to the first control instruction, so that the server is connected with the upper computer. The external interface of the server can be automatically tested, and the testing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated testing, and in particular to a server external interface testing system and method. Background Art

[0002] With the continuous improvement of science and technology, automated production has become more and more popular. Before leaving the factory, the server needs to check whether the USB (Universal Serial Bus), audio, VGA (Video Graphics Array), HDMI (High-Definition Multimedia Interface), serial port, network port and other interfaces are normal.

[0003] Since there are many types of servers, the configurations of different server models are different, and the locations of various interfaces of servers with different U numbers are also different, it is necessary to use the host computer to call the management system interface to obtain the number of each interface of the server, control the electrical program module to perform connection tests on each interface in the test sequence, and realize automatic operation.

[0004] The current testing process requires manual cooperation. After the server is transported to the testing station along the assembly line, the operator needs to connect the all-in-one machine and the server to be tested, run the diagnostic test system, and connect each interface line to the corresponding interface according to the system prompts. After the diagnostic test system is running, it will detect whether each interface circuit is unobstructed. After each interface test is completed, a different window will pop up. After the operator confirms, the next interface test will be carried out. The production efficiency is low, labor is occupied, and enterprise costs are increased.

[0005] Therefore, how to improve the efficiency of server external interface testing is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0006] The purpose of this application is to provide a server external interface testing system and method, which can automatically test the server external interface and improve the testing efficiency.

[0007] In a first aspect, a server external interface testing system is provided, comprising:

[0008] The host computer is used to obtain the interface image of the server captured by the camera device, and obtain the display interface image of the diagnostic system testing the test interface after the external camera device is connected to the server and the host computer; determine the position of the test interface based on the interface image and feed it back to the programmable logic controller; determine the interface test result based on the content of the display interface image and the content of the configuration file corresponding to the test interface; if the test passes, perform the test of the next test interface; if the test fails, send a failure signal to the programmable logic controller;

[0009] A programmable logic controller is used to generate a first control instruction according to the position of the test interface sent by the host computer; control the blocking cylinder to lower according to the non-pass signal, so that the server inflow is suspended at the pause position;

[0010] A control module is used to connect the connecting wire to the test interface according to the first control instruction, so that the server and the host computer are connected.

[0011] In a preferred example of the present application, it can be further configured as follows: The programmable logic controller is also used to send a second control instruction for instructing the control module to move to a preset position;

[0012] The control module is also used to move to the preset position according to the second control instruction and send the in-place information to the host computer;

[0013] The host computer is used to control the imaging device to collect the interface image of the server according to the in-place information to obtain the interface image.

[0014] In a preferred example of the present application, it can be further configured as follows: The programmable logic controller is also used to receive the in-place information of the server carrier board; after obtaining the pass signal, generate a first control instruction according to the position of the test interface sent by the host computer;

[0015] The host computer is also used to send a scanning instruction to the barcode scanner after monitoring the in-place information of the server carrier board of the programmable logic controller, so that the barcode scanner obtains the server label data; obtain the server label data sent by the barcode scanner, verify the server label data, and when the verification passes, send a pass signal to the programmable logic controller; otherwise, send a non-pass signal to the programmable logic controller.

[0016] In a preferred example of the present application, it can be further configured as follows: The host computer is also used to call the management system interface for verification if the server label data is normal label data and the label data format is qualified;

[0017] The system further includes: a management system, which is used to determine whether the server label data matches the preset label set and determine whether the server is in the interface test process; if it matches and is in the interface test process, return the interface information to the host computer, and the interface information includes the interface type and the number of interfaces; otherwise, return a non-pass signal to the host computer, so that the host computer sends a non-pass signal to the programmable logic controller;

[0018] Correspondingly, the host computer is also used to match the interface information with the actual interface information determined according to the interface image; if they match, return a pass signal to the programmable logic controller; if they do not match, return a non-pass signal to the programmable logic controller.

[0019] In a preferred example, the present application can be further configured as follows: The control module is further configured to, if the connection line is successfully connected to the test interface, return a success message to the host computer; if the connection line is not successfully connected to the test interface, return a warning signal to the programmable logic controller so that the programmable logic controller performs a warning process.

[0020] The host computer is further configured to, according to the success message, control the external camera device to collect the display interface image of the diagnostic system testing the test interface.

[0021] In a preferred example, the present application can be further configured as follows: The host computer is further configured to, when the test passes, determine the next test interface information according to the configuration file; and trigger the diagnostic system to test the next test interface according to the next test interface information.

[0022] In a preferred example, the present application can be further configured as follows: The host computer is further configured to obtain the current display interface image of the next test interface test collected by the external camera device; if the current display interface image is the same as the display interface image, send a non-pass signal to the programmable logic controller; if the current display interface image is different from the display interface image, determine the interface test result based on the characteristics of the current display interface image and the standard characteristics corresponding to the next test interface.

[0023] In a preferred example, the present application can be further configured as follows: The host computer is configured to identify the content of the display interface image, match the content of the display interface image with the content of the configuration file corresponding to the test interface, and determine the interface test result. Wherein, when the match is successful, it is determined that the interface test result is a pass; otherwise, it is determined that the test fails.

[0024] In a preferred example, the present application can be further configured as follows: The host computer is further configured to upload the test results of each test interface to the management system so that the management system stores the test results.

[0025] In a second aspect, a method for testing a server external interface is provided, including:

[0026] The host computer obtains the interface image of the server collected by the camera device, determines the position of the test interface based on the interface image and feeds it back to the programmable logic controller;

[0027] The programmable logic controller generates a first control instruction according to the position of the test interface sent by the host computer;

[0028] The control module is configured to connect the connection line to the test interface according to the first control instruction so that the server is connected to the host computer;

[0029] The host computer acquires the display interface image of the external camera device for testing the test interface by the diagnostic system after the server and the host computer are connected; determines the interface test result based on the content of the display interface image and the content of the configuration file corresponding to the test interface; if the test passes, proceeds to test the next test interface; if the test fails, sends a failure signal to the programmable logic controller;

[0030] The programmable logic controller controls the blocking cylinder to lower according to the failure signal, so that the server flows into the pause position.

[0031] In summary, the server external interface test system provided by this application includes the following beneficial technical effects:

[0032] By acquiring and analyzing the image data captured by the camera device through the host computer to determine the position of the test interface, the programmable logic controller generates a control instruction according to the position of the test interface sent by the host computer to make the control module complete the connection operation, realizing the automatic control of the interface connection without manual connection; moreover, through the host computer based on the display interface image of the external camera device for testing the test interface by the diagnostic system after the server and the host computer are connected, automatically confirm the test result of the current interface. If the test passes, automatically proceed to test the next interface; if the test fails, the programmable logic controller can also control the blocking cylinder to lower according to the failure signal, so that the server flows into the pause position for troubleshooting and repair; through the above automatic test process, the test efficiency and quality are improved, and manual intervention is greatly reduced.

[0033] In addition, this application also provides a server external interface test method, which also has the above beneficial technical effects. Description of the Drawings

[0034] In order to more clearly illustrate the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0035] Figure 1 It is a schematic diagram of the overall structure diagram of a server external interface test provided by an embodiment of this application;

[0036] Figure 2 It is a schematic diagram of the structure of a server external interface test system provided by an embodiment of this application;

[0037] Figure 3 It is a schematic flowchart of a server external interface test method provided by an embodiment of this application;

[0038] Figure 4It is a schematic flowchart of another server external interface testing method provided by an embodiment of the present application. Detailed implementation manners

[0039] This specific embodiment is only an interpretation of the present application and does not limit the present application. After reading this specification, those skilled in the art can make modifications to this embodiment without creative contributions as needed, but as long as it is within the scope of the present application, it is protected by the patent law.

[0040] It should be noted that in the optional embodiments of the present application, for relevant data such as object information, when the embodiments in the present application are applied to specific products or technologies, object permission or consent is required, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. That is to say, if the embodiments in the present application involve data related to an object, it needs to be obtained under the authorization and consent of the object, the authorization and consent of relevant departments, and in compliance with the relevant laws, regulations, and standards of the country and region. If personal information is involved in the embodiments, the acquisition of all personal information requires the consent of the individual. If sensitive information is involved, the separate consent of the information subject needs to be obtained, and the embodiments also need to be implemented under the authorization and consent of the object.

[0041] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present application.

[0042] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after, unless otherwise specified.

[0043] In the related art, after the server is transported to the test station along the production line, the operator needs to connect the upper computer and the server to be tested. Then, the operator runs the diagnostic system on the server, that is, the Diag test system, through the upper computer. According to the system prompts, each interface line is connected to the corresponding interface. After the Diag test system runs, it detects whether each interface loop is unobstructed. After each interface test is completed, different windows will pop up. After the operator confirms, the next interface test is carried out. The entire test process requires manual participation, and the test efficiency is relatively low.

[0044] Based on this, the present invention relates to the field of automated production and manufacturing technology. Before leaving the factory, the server needs to detect whether interfaces such as the server's USB, audio, VGA, HDMI, serial port, and network port are normal through the Diag system. The host computer is connected to the server to be tested through a data cable. Specifically, refer to Figure 1 , Figure 1 which is a schematic diagram of a general structure provided by an embodiment of the present application; in the embodiment of the present application, the program running on the host computer is used to call an external camera to collect the content displayed on the host computer screen in real time, the image content is recognized through an intelligent image recognition interface, combined with the characteristics of each interface maintained in the configuration file and the actions to be executed, and the host computer program sends relevant instructions to the server to be tested through the control module, controls the mouse and keyboard to execute corresponding actions, so as to realize the automatic test of the test interface and reduce manual participation. And, the test results are uploaded to the MES system through the host computer calling the MES interface for storage, which is convenient for later traceability.

[0045] Specifically, refer to Figure 2 , Figure 2 which is a schematic diagram of the structure of a server external interface test system provided by an embodiment of the present application, including:

[0046] A host computer 100, which is used to obtain the interface image of the server collected by the imaging device, and obtain the display interface image of the diagnostic system for testing the test interface after the external imaging device is connected to the server and the host computer 100; determine the position of the test interface based on the interface image and feedback it to the programmable logic controller 200; determine the interface test result based on the content of the display interface image and the content of the configuration file corresponding to the test interface; if the test passes, perform the test on the next test interface; if the test fails, send a failure signal to the programmable logic controller 200;

[0047] A programmable logic controller 200, which is used to generate a first control instruction according to the position of the test interface sent by the host computer 100; control the blocking cylinder to lower according to the failure signal, so that the server flows into the pause position;

[0048] A control module 300, which is used to connect the connection line to the test interface according to the first control instruction, so that the server is connected to the host computer 100.

[0049] Among them, the imaging device can capture the interface image of the server. It can be set on the control module 300 and is used to capture the image of the interface of the server. The external imaging device is used to capture the display interface image of the host computer 100. The position where the external imaging device is set is not limited in this embodiment of the present application, as long as the purpose of this embodiment of the present application can be achieved. The PLC (Programmable Logic Controller) is an industrial control device. The host computer 100 determines the specific position of the test interface by analyzing the interface image and sends this information to the PLC so that the PLC can perform subsequent control operations. The host computer 100 is connected to the PLC through a communication interface and can process various status information of the monitored PLC in real time.

[0050] Specifically, the host computer 100 establishes a communication connection with the imaging device and the control module 300 to ensure that data and control instructions can be transmitted in real time. Secondly, the host computer 100 analyzes the interface image transmitted back by the imaging device, determines the position of the test interface, and generates corresponding control instructions to send to the PLC. After receiving the instructions, the PLC drives the connecting line to move to the specified position and complete the connection through the control module 300.

[0051] The control module 300 may include: a mobile platform, a robotic arm, and an end effector; among them, the mobile platform is used to move the control module 300 to the required position; the robotic arm is composed of multiple joints and linkages and is driven by a motor or a pneumatic device to achieve precise position control and motion trajectory planning; the end effector: installed at the end of the robotic arm and used to grasp and release the test line, which may include a clamping mechanism, a rotary joint, or a magnetic attraction device; the structure of the control module 300 is not limited in this embodiment of the present application, as long as the purpose of the present application can be achieved.

[0052] After the connection is successful, the host computer 100 obtains the display interface image of the test of the test interface by the diagnostic system after the server and the host computer 100 are connected, and compares it with the expected result in the configuration file to determine the test result. Among them, the diagnostic system is deployed on the server and is used to diagnose the interface of the server.

[0053] Specifically, during the test, the image recognition algorithm is used to process the display interface image to identify the interface elements related to the test interface. The status or display content of these elements is compared with the expected values in the configuration file. According to the comparison result, it is judged whether the test interface passes the test, and a corresponding test result report is generated.

[0054] Among them, the configuration file is used to determine the operations that should be performed on the acquired features and the corresponding features.

[0055] Exemplarily, the configuration file settings include: [02.59]

[0057] 1 = 1.down_arrow

[0058] 2 = 1,down_arrow

[0059] 3 = 1,enter

[0060] [Chipset Setup]

[0061] 1 = 1.down_arrow

[0062] 2 = 1,down_arrow

[0063] 3 = 1.down_arrow

[0064] 4 = 1,down_arrow

[0065] 5 = 1.down_arrow

[0066] 6 = 1,down_arrow

[0067] 7 = 1,enter

[0068] [Chip Features]

[0069] 1 = 1esc

[0070] 2 = 1,esc

[0071] Features: [02.59], [Chipset Setup], [Chip Features]

[0072] Execute operation 1 = 1, down arrow. The first "1" refers to the first step of the operation; the second "1" is intended to select the wireless mouse module protocol. "0" is the ASCII code protocol, "1" is the keyboard operation protocol, and "2" is the mouse operation protocol; the last "dowarrow" is the key to be pressed for the keyboard operation; (the specific wireless mouse module control operations are described in detail in the script).

[0073] In the embodiment of the present application, for the control module 300, all the connection lines can be connected to the test interface at one time, or the test sequence can be determined according to the configuration file. Furthermore, only the test interface corresponding to the current test is connected each time; the user can select according to actual needs, and the embodiment of the present application does not limit it further.

[0074] It can be seen that in the embodiment of the present application, the host computer 100 is used to obtain and analyze the image data captured by the imaging device to determine the position of the test interface. The programmable logic controller 200 generates a control instruction according to the position of the test interface sent by the host computer 100 to enable the control module 300 to complete the connection operation, realizing the automatic control of the interface connection and eliminating the need for manual connection. Moreover, based on the display interface image of the test of the test interface by the diagnostic system after the external imaging device is connected to the server and the host computer 100, the host computer 100 automatically confirms the test result of the current interface. If the test passes, the test of the next interface is automatically carried out; if the test fails, the programmable logic controller 200 can also control the blocking cylinder to lower according to the failure signal, so that the server flows into the pause position for troubleshooting and repair. Through the above automatic test process, the test efficiency and quality are improved, and manual intervention is greatly reduced.

[0075] Further, in order to collect the image of the server interface in a timely manner, the programmable logic controller 200 is further configured to send a second control instruction for instructing the control module 300 to move to a preset position; the control module 300 is further configured to move to the preset position according to the second control instruction and send the in-place information to the host computer 100; the host computer 100 is configured to control the imaging device to collect the interface image of the server according to the in-place information to obtain the interface image.

[0076] Wherein, an imaging device is provided on the control module 300 for collecting the interface image of the server. In the automatic detection process, when the PLC receives a start signal or meets a preset condition (such as the in-place information of the server), the PLC sends a second control instruction to the control module 300. After receiving the instruction, the control module 300 starts to perform the moving operation until it reaches the preset position. The preset position is a fixed position set in advance, and the image captured at this position can clearly show the interface image of the server. When it reaches the preset position, the control module 300 immediately sends the in-place information to the host computer 100. As the management center of the entire system, after receiving the in-place information from the control module 300, the host computer 100 can control the imaging device to collect the interface image of the server.

[0077] It can be seen that in the embodiment of the present application, by the programmable logic controller 200 sending control instructions, the control module 300 performing the movement and feeding back the in-place information, and the host computer 100 controlling the imaging device to collect images according to the information, it is ensured that the imaging device can collect the interface image of the server in a timely manner after the control module 300 accurately reaches the preset position, realizing an automatic and high-precision image collection process and reducing the error of manual operation.

[0078] Further, the programmable logic controller 200 is further configured to receive the information that the server carrier board is in place; after obtaining the passing signal, generate a first control instruction according to the position of the test interface sent by the host computer 100.

[0079] The host computer 100 is further configured to, after monitoring the information that the server carrier board of the programmable logic controller 200 is in place, send a scanning instruction to the barcode scanner gun so that the barcode scanner gun obtains the server label data; obtain the server label data sent by the barcode scanner gun, verify the server label data, and when the verification passes, send a passing signal to the programmable logic controller 200; otherwise, send a non-passing signal to the programmable logic controller 200.

[0080] Among them, the barcode scanner gun can be set near the test station of the server. When the server is in place, it can scan the label data of the server.

[0081] When the server carrier board is transported to the designated test or assembly position, the sensor detects this state and sends the in-place information to the PLC. After receiving this information, the PLC stores it. The host computer 100 is connected to the PLC through a communication interface and can monitor in real time the information that the server carrier board sent by the PLC is in place. Once this information is monitored, the host computer 100 will immediately trigger the sending mechanism of the scanning instruction and send the scanning instruction to the barcode scanner gun. After receiving the instruction, the barcode scanner gun will start scanning the bar code or two-dimensional code on the server carrier board and send the obtained server label data back to the host computer 100.

[0082] After receiving the server label data sent by the barcode scanner gun, the host computer 100 performs verification. The verification operations include but are not limited to checking the number of digits and format of the data. If the verification passes, that is, the data meets the preset requirements, the host computer 100 will send a passing signal to the PLC; if the verification fails, that is, there is an error in the data or no data is obtained within the preset time period (in order to reduce errors, the embodiments of the present application can repeat the preset number of times at least, and as long as there is one pass within the preset number of times), the host computer 100 will send a non-passing signal to the PLC. After receiving the signal from the host computer 100, the PLC controls the blocking cylinder to lower according to the non-passing signal, so that the server inflow is paused.

[0083] It can be seen that in the embodiments of the present application, by verifying the server label data, subsequent invalid processes are reduced, and the detection efficiency is further improved.

[0084] Furthermore, the embodiments of the present application can test various types of servers. Before the test, it can be determined whether this type of server is an automatable detection server based on the server label information to reduce ineffective operations. Specifically, the host computer 100 is further configured to, if the server label data is normal label data and the label data format is qualified, call the management system interface for verification; the system further includes: a management system, configured to determine whether the server label data matches a preset label set and determine whether the server is in the interface test process; if it matches and is in the interface test process, return interface information to the host computer 100, where the interface information includes the interface type and the number of interfaces; otherwise, return a non-pass signal to the host computer 100, so that the host computer 100 sends a non-pass signal to the programmable logic controller 200; correspondingly, the host computer 100 is further configured to match the interface information with the actual interface information determined according to the interface image; if they match, return a pass signal to the programmable logic controller 200; if they do not match, return a non-pass signal to the programmable logic controller 200.

[0085] When the host computer 100 confirms that the server has normal label data, the normal label data can be label data with the number of digits meeting the preset requirements, and the qualified label data format matches the format of the labels of multiple types of servers pre-stored in the database.

[0086] For the management system, i.e., the MES system, it can be a separate server, and the management system can be called for data processing by accessing the web page through the host computer 100.

[0087] The MES system determines whether the server label data matches the preset label set and determines whether the server is in the interface test process; for the sequence of the two determination processes, the embodiments of the present application do not limit further, and the user can set according to actual needs. If it matches and is in the interface test process, return interface information to the host computer 100, where the interface information includes the interface type and the number of interfaces; match the interface information with the actual interface information determined according to the interface image to verify the compliance of the server again; if they match, return a pass signal to the PLC; if they do not match, return a non-pass signal to the PLC, and the PLC controls the blocking cylinder to lower according to the non-pass signal, so that the server flows into the pause position; otherwise, return a non-pass signal to the host computer 100, so that the host computer 100 sends a non-pass signal to the PLC, and the PLC controls the blocking cylinder to lower according to the non-pass signal, so that the server flows into the pause position.

[0088] It can be seen that in the embodiments of the present application, the management system is used to verify the label data again, and in the case where the label and the test process are verified successfully, the theoretical interface information corresponding to the label and the actual interface information recognized from the actual interface image of the server corresponding to the label are matched again to verify the compliance of the server again.

[0089] Further, in order to ensure that the connection line can be successfully connected to the test interface, in the embodiment of the present application, the control module 300 is further configured to return a success message to the host computer 100 if the connection line is successfully connected to the test interface; if the connection line is not successfully connected to the test interface, a warning signal is returned to the programmable logic controller 200, so that the programmable logic controller 200 performs a warning process; the host computer 100 is further configured to control an external imaging device to collect an image of the display interface of the diagnostic system testing the test interface according to the success message.

[0090] Among them, the control module 300 feeds back a success message to the host computer 100 only after determining that it is successfully connected to the test interface, so that during diagnosis, the host computer 100 can control an external imaging device to collect an image of the display interface of the diagnostic system testing the test interface, ensuring the effectiveness of the interface detection.

[0091] Further, when the host computer 100 executes the test of the next test interface if the test passes, it is specifically configured to determine the information of the next test interface according to the configuration file when the test passes; and trigger the diagnostic system to test the next test interface according to the information of the next test interface.

[0092] The configuration file usually contains detailed information such as the order, type, and test parameters of all the interfaces that the server needs to test; when the current interface test passes, the information of the next interface to be tested is automatically searched and determined according to the configuration file, including the type of the interface and the physical location of the interface.

[0093] Further, the host computer 100 is further configured to obtain the current display interface image of the next test interface collected by the external imaging device; if the current display interface image is the same as the display interface image, a non-pass signal is sent to the programmable logic controller 200; if the current display interface image is different from the display interface image, the interface test result is determined based on the characteristics of the current display interface image and the standard characteristics corresponding to the next test interface.

[0094] If the display interface image of the next test interface is the same as the display interface image of the previous test interface, it means that the test link of the next interface has not been entered, and a non-pass signal is sent to the programmable logic controller 200, so that the programmable logic controller 200 controls the blocking cylinder to lower according to the non-pass signal, causing the server to flow into the pause position.

[0095] It can be seen that in the embodiment of the present application, before comparing the characteristics, the display interface image of the next test interface is matched with the display interface image of the previous test interface to determine whether the next test interface is successfully entered, avoiding the occurrence of an invalid interface test caused by the system error that has been unable to enter the next interface test.

[0096] Further, when determining the interface test result based on the content of the display interface image and the content of the configuration file corresponding to the test interface, the host computer 100 is specifically configured to identify the content of the display interface image, match the content of the display interface image with the content of the configuration file corresponding to the test interface, and determine the interface test result. Wherein, when the matching is successful, it is determined that the interface test result is passed; otherwise, it is determined that the test fails.

[0097] Further, the host computer 100 is further configured to upload the test results of each test interface to the management system so that the management system stores the test results.

[0098] In summary, the test system provided by the embodiment of the present application can test servers of different models. The positions of various interfaces such as USB, HDMI, VGA, serial port, and network port of server products of different models are different, but the test order of each interface is fixed. After one interface test is completed, the person needs to click the button in the pop-up window to confirm before the next interface test can be carried out, or the automatic system automatically clicks the button to confirm and proceed with the next interface test. During pipeline production, the positions of each interface of the server are identified through machine vision, the control module 300 connects each interface test line to the server, the camera is used to collect the picture in real time, and after being recognized by the host computer 100, the server mouse and keyboard are controlled to execute relevant actions to achieve automated testing. Further, through the real-time communication between the MES system, the host computer 100, the camera, and the PLC system, the test plan configuration of servers of different models recorded in the database is read and transmitted to the host computer 100. After the test is completed, the test results are uploaded to the database for storage by calling the MES interface through the host computer 100.

[0099] Further, for the server at the pause position, the interface test can also be continued, and each test interface is tested to facilitate determining the faulty test interface of the server.

[0100] For these servers, they are classified based on the faulty interfaces. The faulty interfaces of the servers in each category are exactly the same. Furthermore, it is determined whether they are servers of the same batch or the number of servers produced in the same batch reaches a preset threshold. Then, the servers of this batch do not need to be tested and directly go to the NG position, and a prompt message is sent to the host computer to prompt the technician of this fault situation.

[0101] The present invention provides servers of different models. By automatically identifying the positions of each interface, automatically connecting the host computer and the server, using the camera to collect the host computer screen in real time, reading the preset script through the host computer, and sending commands through the remote control module to control the operations of the server mouse and keyboard, automated testing is achieved, which relates to the field of automated production.

[0102] The following introduces a method for testing the external interface of a server provided by an embodiment of the present application. The method described below can be correspondingly referred to the system described above. Specifically, see Figure 3 , Figure 3 FIG. Figure 3 is a schematic flowchart of a method for testing the external interface of a server provided by an embodiment of the present application, including:

[0103] S101. The host computer acquires an interface image of the server collected by the imaging device, determines the position of the test interface based on the interface image, and feeds it back to the programmable logic controller;

[0104] S102. The programmable logic controller generates a first control instruction according to the position of the test interface sent by the host computer;

[0105] S103. The control module connects the connection line to the test interface according to the first control instruction, so that the server and the host computer are connected;

[0106] S104. The host computer acquires a display interface image of the test of the test interface by the diagnostic system after the server and the host computer are connected by the external imaging device; determines the interface test result based on the content of the display interface image and the content of the configuration file corresponding to the test interface; if the test passes, proceed to the test of the next test interface; if the test fails, send a non-pass signal to the programmable logic controller;

[0107] S105. The programmable logic controller controls the blocking cylinder to lower according to the non-pass signal, so that the server flows into the pause position.

[0108] Based on any of the above embodiments, an embodiment of the present application provides a specific test method. See Figure 4 , FIG. 4 is a schematic flowchart of another method for testing the external interface of a server provided by an embodiment of the present application, including:

[0109] 1. The server product arrives at the automated test station on the carrier board A along the assembly line. The PLC blocking cylinder rises. After the sensor senses that the carrier board A is in place, it will notify the PLC that the carrier board is in place. After the PLC receives the message, it will change the value of the corresponding data block A from false to true. The host computer program connects to the PLC program through the S7.NET library (a packaged class library for communicating with the PLC), and listens to the data stored in the data block A in real time. When the stored data in the data block A changes and is true, that is, after detecting the server in-place information, it sends a scanning command to the barcode scanner for scanning operation. After the host computer receives the scanning request, it sends a scanning command to the barcode scanner through serial communication. The barcode scanner starts the scanning operation, obtains the chassis SN, that is, the server label data, and returns it to the host computer.

[0110] 2. The host computer connects to the barcode scanner through the serial port class, sends the barcode scanning command to the scanner. After the scanner scans, it returns data through serial communication:

[0111] 1) If normal data can be returned, judge whether the data conforms to the encoding format of the chassis SN. If the format is correct, the host computer will call the MES interface to verify the obtained SN; if it is incorrect, follow the following process;

[0112] 2) If the returned scanned data is abnormal or the barcode scanning times out, the host computer continues to send the barcode scanning command to the barcode scanner. If correct data cannot be obtained after three times, it is determined as NG. The host computer sends the NG information, that is, the non-pass signal, to the PLC data block B. After the PLC detects that the value of the data block B has changed and the status is NG, it controls the blocking cylinder to lower. The server product flows to the NG position along the double-speed chain. The PLC controls the blocking cylinder at the NG sorting position to rise, and the pushing cylinder pushes the carrier board into the NG working position, that is, the pause position.

[0113] 3. The MES system receives the SN code sent by the host computer and performs the following verification:

[0114] 1) Judge whether the chassis SN code has been entered into the system. If the SN code does not exist in the system, return NG information to the host computer, prompting that the server SN does not exist. If it exists, proceed to the second verification.

[0115] 2) Verify whether the server is in the interface test process. If so, return true; if not, return false and the process where the server should currently be.

[0116] 3) After the process verification passes, obtain the information on the number of each interface to be tested by the server according to the chassis SN and return it to the host computer.

[0117] 4. The host computer obtains the data returned by the MES system through the interface, replies OK to the MES system, and notifies the MES system that the data has been received.

[0118] 1) If the result returned by the MES system is true, write the value True to the PLC data block C.

[0119] 2) If the result returned by the MES system is NG, write it to the PLC data block E. After the PLC detects the data in the data block E, it controls the blocking cylinder at the barcode scanning position to lower. Before the server flows into the NG position along the double-speed chain, the PLC controls the blocking cylinder to rise and push it into the NG working position. The host computer displays the reason for NG, and the NG server is processed manually.

[0120] 5. The host computer, based on the interface types and quantities returned by the MES system, starts to move the control module to the rear panel of the server to take an interface image, which is then returned to the host computer program. The host computer program identifies the types and quantities of each interface based on the photographed content and compares it with the data returned by the MES system.

[0121] 1) If the quantity and types of interfaces identified by photographing are consistent with those returned by the MES system, write true to the PLC data block F and start the interface test in the preset order according to the configuration file.

[0122] 2) If the quantity and types of interfaces identified by photographing are inconsistent with those returned by the MES system, write false to the PLC data block F. The module will control the camera to execute the fifth step again. If the address of the database F is still false, control the blocking cylinder to lower. The server will flow into the position in front of the NG position along the double-speed chain. The PLC controls the blocking cylinder to rise and push it into the NG station. The host computer displays the reason for NG, and the operator manually processes the NG server.

[0123] 6. After the PLC detects that the data in the data block F becomes True, it controls the module to move the industrial camera to the preset position and sends the in-place information to the host computer. After receiving the in-place signal, the host computer controls the industrial camera to start taking pictures, identify the position of the VGA interface (the first interface in the test sequence), convert the pixel coordinates identified by the camera into module coordinates by combining the matrix obtained by the prior calibration of the camera and the module, and then control the module to move the VGA connection line to the coordinate position through the PLC to connect the server and the host computer.

[0124] 1) If the VGA connection line is successfully inserted into the server VGA interface, return success to the host computer.

[0125] 2) If it cannot be inserted into the server VGA interface, write the value False to the PLC data block G, and the PLC controls the alarm light to turn on for manual processing.

[0126] 7. The production line employee operates the server to turn it on. The host computer displays the server interface, selects the Diag test system item to start, and automatically runs the diagnostic system for testing. At the same time, after the host computer program obtains the signal of successful connection, it controls the external camera to turn on and collect the host computer screen in real time through the Aforge library. The host computer calls the image recognition interface through the collected screen to identify the text content and background color of the picture.

[0127] 1) If the image recognition interface returns a failure, the PLC controls the alarm light to turn on for manual processing.

[0128] 2) If the image recognition interface returns successfully, compare the text content recognized from the picture with the content of the configuration file.

[0129] 8. The host computer determines whether the recognized text content is the same as the feature of the first interface test in the configuration file.

[0130] 1) If they are different, re-take pictures for recognition and verification. After three consecutive failures, the push cylinder is used to push the carrier plate into the NG station.

[0131] 2) If they are the same, the host computer obtains the next action to be executed according to the preset content in the configuration file, obtains the position where the keyboard and mouse are to move based on the collected pictures, sends a command to the server through the remote control module, controls the keyboard and mouse to move to the set position, and executes relevant actions to test the next test interface.

[0132] 9. After the command is sent, the host computer compares and determines whether the interface content collected by the camera is the same as the previous recognized content.

[0133] 1) If they are the same, it indicates that the action execution fails, and the host computer resends the command through the control module. After three consecutive failures, the push cylinder is used to push the carrier plate into the NG station.

[0134] 2) If they are different, it indicates that the action is successfully executed. The host computer collects the interface corresponding to the second interface through the camera.

[0135] 10. The camera collects the interface of the second interface, and repeats the operations in steps 8 and 9 until the preset actions of the last interface are completed.

[0136] 11. The host computer uploads the test data of each interface of the server to the MES system.

[0137] 12. After the MES system receives the test data, it stores the data in the Oralce database.

[0138] Through the above method, the embodiment of the present application can realize the automated test of the server interface, cancel most of the manual operation links. Previously, one person could support two or three machines in the test link. After applying the solution of the embodiment of the present application, at least six machines can be tested simultaneously, saving labor, improving production efficiency, and reducing enterprise costs.

[0139] It should be understood that although the steps in the flowchart of the accompanying drawings are shown sequentially in the direction of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this document, there is no strict order restriction for the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0140] The above are only some embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A server external interface testing system, characterized in that: include: The host computer is used to obtain the interface image of the server captured by the camera device, and obtain the display interface image of the diagnostic system testing the test interface after the external camera device is connected to the server and the host computer; Determine the position of the test interface based on the interface image and feed it back to the programmable logic controller; determine the interface test result based on the content of the display interface image and the content of the configuration file corresponding to the test interface; If the test passes, the next test interface will be tested; If the test fails, a fail signal is sent to the programmable logic controller; The programmable logic controller is used to generate a first control instruction according to the position of the test interface sent by the host computer; and control the blocking cylinder to be lowered according to the no-pass signal, so that the server flows into the pause position; The control module is used to connect the connection line to the test interface according to the first control instruction, so that the server and the host computer are connected.

2. The server external interface testing system according to claim 1, characterized in that: The programmable logic controller is further used to send a second control instruction for instructing the control module to move to a preset position; The control module is further used to move to a preset position according to a second control instruction and send in-position information to a host computer; The host computer is used to control the camera device to collect the interface image of the server according to the arrival information to obtain the interface image.

3. The server external interface testing system according to claim 2, characterized in that: The programmable logic controller is also used to receive the server carrier board arrival information; after receiving the passing signal, generate a first control instruction according to the position of the test interface sent by the host computer; The host computer is also used to send a scanning instruction to the barcode scanner after monitoring the server carrier board arrival information of the programmable logic controller, so that the barcode scanner obtains the server tag data; obtains the server tag data sent by the barcode scanner, verifies the server tag data, and sends a pass signal to the programmable logic controller when the verification is passed; otherwise, sends a fail signal to the programmable logic controller.

4. The server external interface testing system according to claim 3, characterized in that: The host computer is also used to call the management system interface for verification if the server tag data is normal tag data and the tag data format is qualified; The system further includes: a management system, which is used to determine whether the server tag data matches the preset tag set and whether the server is in the interface test process; if it matches and is in the interface test process, then return the interface information to the host computer, the interface information including the interface type and the interface quantity; otherwise, return a failure signal to the host computer, so that the host computer sends the failure signal to the programmable logic controller; Correspondingly, the host computer is also used to match the interface information with the actual interface information determined according to the interface image; if they match, a pass signal is returned to the programmable logic controller; if they do not match, a fail signal is returned to the programmable logic controller.

5. The server external interface testing system according to claim 1, characterized in that: The control module is also used to return a success message to the host computer if the connection line is successfully connected to the test interface; if the connection line is not successfully connected to the test interface, return a warning signal to the programmable logic controller so that the programmable logic controller performs a warning process; The host computer is also used to control the external camera device to collect the display interface image of the diagnostic system testing the test interface according to the success information.

6. The server external interface testing system according to claim 1, characterized in that: The host computer is also used to determine the next test interface information according to the configuration file when the test passes; and trigger the diagnostic system to test the next test interface according to the next test interface information.

7. The server external interface testing system according to claim 6, characterized in that: The host computer is also used to obtain the current display interface image of the next test interface test captured by the external camera device; if the current display interface image and the display interface image are consistent, a fail signal is sent to the programmable logic controller; if the current display interface image and the display interface image are inconsistent, the interface test result is determined based on the characteristics of the current display interface image and the standard characteristics corresponding to the next test interface.

8. The server external interface testing system according to claim 1, characterized in that: The host computer is used to identify the content of the display interface image, match the content of the display interface image with the content of the configuration file corresponding to the test interface, and determine the interface test result. When the match is successful, the interface test result is determined to be a passed test, otherwise, the test is determined to be a failed test.

9. The server external interface testing system according to claim 1, characterized in that: The host computer is also used to upload the test results of each test interface to the management system so that the management system stores the test results.

10. A server external interface testing method, characterized in that: include: The host computer obtains the interface image of the server collected by the camera device, determines the position of the test interface based on the interface image, and feeds back to the programmable logic controller; The programmable logic controller generates a first control instruction according to the position of the test interface sent by the host computer; A control module, used for connecting the connection line to the test interface according to the first control instruction, so that the server is connected to the host computer; The host computer obtains the display interface image of the diagnostic system testing the test interface after the external camera device is connected to the server and the host computer; Determine the interface test result based on the content of the display interface image and the content of the configuration file corresponding to the test interface; If the test passes, the next test interface will be tested; If the test fails, a fail signal is sent to the programmable logic controller; The programmable logic controller controls the blocking cylinder to descend according to the no-pass signal, so that the server flows into the pause position.

Citation Information

Cited By

  • Server interface test method, electronic equipment and readable storage medium

    CN122412234A