Fan board testing system and method

By designing a fan board testing system including a host computer, a serial port server and a tooling socket, the problem of expansion difficulty caused by the dependence of fan board testing on the back plate in the prior art is solved, and batch testing and efficient expansion of multi-fan boards are achieved.

CN115507050BActive Publication Date: 2025-03-28TRAFFIC CONTROL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210987161.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2025-03-28
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

In the prior art, the test of fan plates is entirely based on the test back plate, resulting in limited area of ​​the test back plate and fixed plug slots. The number of fan plates that can be tested at one time is small, making it difficult to expand.

Method used

A fan board testing system is designed, including a host computer, a serial port server and at least one tool box. Each tool box is hard-wired to at least one fan board to be tested, and a test control instruction is sent to the virtualization register of each fan board to be tested through the serial port server, and switching quantity data and/or analog quantity data are collected to realize batch testing of multi-fan boards.

Benefits of technology

Automatic batch testing of multi-fan boards is realized, which improves the scalability of fan board testing, avoids the limitation of relying on test backplanes, and simplifies the expansion process of fan boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115507050B_ABST
    Figure CN115507050B_ABST
Patent Text Reader

Abstract

The present invention provides a fan board test system and method, which relates to the field of automated testing technology. The system comprises: a host computer, a serial port server and at least one tooling plug-in box; the host computer is connected to the serial port server, and the serial port server is connected to at least one tooling plug-in box; each tooling plug-in box is hard-wired to at least one fan board to be tested; each tooling plug-in box comprises a virtualization register corresponding to each fan board to be tested; the host computer sends a test control instruction to the virtualization register corresponding to each fan board to be tested through the serial port server; the virtualization register performs test control on each fan board to be tested according to the test control instruction, and collects switch quantity data and / or analog quantity data generated by each fan board to be tested during the test control process; the host computer obtains the test result of the fan board to be tested according to the switch quantity data and / or analog quantity data. The present invention realizes automated batch testing of multiple fan boards to be tested, and has strong scalability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, and in particular to a fan board testing system and method. Background Art

[0002] In the prior art, in order to reduce the temperature inside the server and ensure the stable operation of the server, a fan is usually used to control the temperature inside the server. Specifically, a fan board monitors the temperature inside the server and then controls the fan according to the temperature, thereby achieving the effect of controlling the temperature inside the server. In order to ensure the normal operation of the fan board, the fan board needs to be tested before it is connected to the server.

[0003] In the prior art, the fan board needs to be installed on a test backplane, and the test unit on the test backplane tests the fan board. Therefore, the test of the fan board is completely dependent on the test backplane, and the test backplane has a limited area and fixed backplane plug-in slots, resulting in a small number of fan boards that can be tested at one time, and great difficulty in expansion. Summary of the invention

[0004] The present invention provides a fan board testing system and method, which are used to solve the problems in the prior art that the testing of fan boards is completely dependent on a testing backplane, while the testing backplane has a limited area and the backplane plug-in slots are fixed, resulting in a small number of fan boards that can be tested at one time and great difficulty in expansion, thereby realizing batch testing of multiple fan boards and improving the scalability of fan board testing.

[0005] The present invention provides a fan board testing system, comprising: a host computer, a serial port server and at least one tooling plug-in box;

[0006] The host computer is connected to the serial port server, and the serial port server is connected to the at least one tooling plug-in box; each tooling plug-in box is hard-wired to at least one fan board to be tested;

[0007] Each tooling plug-in box includes a virtualized register corresponding to each fan board to be tested;

[0008] The host computer is used to send a test control instruction to the virtualized register corresponding to each fan board to be tested through the serial port server;

[0009] The virtualized register is used to perform test control on each fan board to be tested according to the test control instruction, and collect switch quantity data and / or analog quantity data generated by each fan board to be tested during the test control process;

[0010] The host computer is also used to obtain the switch quantity data and / or analog quantity data collected by the virtualized register, and obtain the test result of each fan board to be tested according to the switch quantity data and / or the analog quantity data.

[0011] According to a fan board testing system provided by the present invention, the host computer includes a testing module and a host module;

[0012] The test module includes a test component for each fan board to be tested;

[0013] The test component is configured in a tab corresponding to each fan board to be tested in the host module;

[0014] The test components are used to:

[0015] Under the control of the host module, according to the test items and preset test logic of each fan board to be tested, a test control instruction is sent to the virtualized register corresponding to each fan board to be tested;

[0016] The switch quantity data and / or analog quantity data collected by the virtualized register are obtained, and the test result of each fan board to be tested is obtained according to the switch quantity data and / or the analog quantity data, and the test result is displayed on the visual interface of the host computer.

[0017] According to a fan board testing system provided by the present invention, each test component performs asynchronous and simultaneous testing on the fan board to be tested corresponding to each test component through a thread corresponding to each test component.

[0018] According to a fan board testing system provided by the present invention, the testing component is also used for:

[0019] When receiving an aging test instruction, obtaining a total number of tests according to the aging test instruction;

[0020] Under the control of the host module, according to the test items of each fan board to be tested and the preset test logic, the fan board to be tested is tested for multiple rounds until the cumulative number of tests reaches the total number of tests;

[0021] And according to the results of multiple rounds of tests, the aging test results of the fan board to be tested are obtained.

[0022] According to a fan board testing system provided by the present invention, the host computer further includes an expansion module;

[0023] The host module is connected to the expansion module;

[0024] The expansion module is used to provide a fan board expansion interface, and upon receiving a fan board expansion instruction, parse the fan board expansion instruction to obtain a first identifier of the fan board to be expanded, and send the first identifier to the host module;

[0025] The host module is further used to, according to the first identifier, create a test component of the fan board to be expanded in the test module, and establish a connection with the tooling plug-in box connected to the fan board to be expanded through the serial port server.

[0026] According to a fan board testing system provided by the present invention, the host computer further includes a fan board selection module, a log module and a report module;

[0027] The host module is connected to the fan board selection module, the log module and the report module respectively;

[0028] The fan board selection module is used to provide a fan board selection interface, and upon receiving a fan board selection instruction, parse the fan board selection instruction to obtain a second identifier of at least one fan board to be tested, and send the second identifier to the host module;

[0029] The host module is also used to perform asynchronous batch testing on the at least one fan board to be tested according to the second identifier, and when the test of any fan board to be tested is completed, trigger the log module to output the test log of any fan board to be tested according to the second identifier, and / or trigger the report module to output the test report of any fan board to be tested according to the second identifier.

[0030] According to a fan board testing system provided by the present invention, the host computer further includes an event subscription module;

[0031] The host module is connected to the event subscription module;

[0032] The host module is further configured to, when a test result of any fan board to be tested is obtained, trigger the event subscription module to send the test result of any fan board to be tested to an event subscriber corresponding to the fan board to be tested.

[0033] According to a fan board testing system provided by the present invention, the host computer is further used to obtain the switch quantity data and / or analog quantity data collected by the virtualized register from the serial port server by adopting an event triggering method.

[0034] According to a fan board testing system provided by the present invention, the fan board to be tested includes a plurality of control channels;

[0035] The multiple control channels are connected to the same fan;

[0036] The multiple control channels are tested based on the same fan.

[0037] The present invention also provides a fan board testing method based on the fan board testing system, comprising:

[0038] When a fan board selection instruction is received, the fan board selection instruction is parsed to obtain a second identifier of at least one fan board to be tested;

[0039] According to the second identifier, synchronously send a test control instruction to the virtualized register corresponding to each fan board to be tested, so that the virtualized register performs asynchronous test control on each fan board to be tested according to the test control instruction, and collects switch quantity data and / or analog quantity data generated by each fan board to be tested during the test control process;

[0040] The switch quantity data and / or analog quantity data collected by the virtualization register are obtained, and the test result of the at least one fan board to be tested is obtained according to the switch quantity data and / or the analog quantity data.

[0041] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned fan board testing methods is implemented.

[0042] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the fan board testing method described in any one of the above methods is implemented.

[0043] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the fan board testing method described above is implemented.

[0044] The fan board testing system and method provided by the present invention has a host computer connected to at least one tooling plug-in box through a serial port server, and each tooling plug-in box is hard-wired to at least one fan board to be tested, so as to realize direct communication between the host computer and multiple fan boards to be tested, and a test control instruction can be sent to a virtualization register corresponding to each fan board to be tested through the serial port server to perform test control on each fan board to be tested, and the test result of each fan board to be tested is obtained according to the switch quantity data and / or analog quantity data collected by the virtualization register, so as to realize automated batch testing of multiple fan boards to be tested, and when the fan board needs to be expanded, it does not rely on the test backplane, and only needs to connect the fan board to be expanded with the tooling plug-in box by hard wire, so as to realize the expansion of the fan board conveniently and efficiently, and has strong scalability, and effectively solves the problem of dependence on the test backplane and high expansion difficulty. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 It is a structural schematic diagram of a fan board testing system provided by the present invention;

[0047] Figure 2 It is a schematic flow chart of the fan board testing method provided by the present invention;

[0048] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention.

[0049] Reference numerals:

[0050] 101: host computer; 102: serial port server; 103: tooling plug-in box; 104: fan board to be tested; 105: fan. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] In the description of this embodiment, it should be noted that the terms “first”, “second” and “third” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0053] In the description of this embodiment, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this embodiment can be understood according to specific circumstances.

[0054] Combine the following Figure 1 The fan board testing system of the present invention is described, which is used to realize automatic testing of fan boards in electronic devices such as computers and servers. Figure 1As shown, the system includes a host computer 101, a serial port server 102 and at least one tooling plug-in box 103;

[0055] The host computer 101 is connected to the serial port server 102, and the serial port server 102 is connected to the at least one tooling plug-in box 103; each tooling plug-in box 103 is hard-wired to at least one fan board 104 to be tested;

[0056] Each tooling plug-in box 103 includes a virtualized register corresponding to each fan board 104 to be tested;

[0057] The host computer 101 is used to send a test control instruction to the virtualized register corresponding to each fan board 104 to be tested through the serial port server 102;

[0058] The virtualized register is used to perform test control on each of the fan boards 104 to be tested according to the test control instruction, and to collect switch quantity data and / or analog quantity data generated by each of the fan boards 104 to be tested during the test control process;

[0059] The host computer 101 is further used to obtain the switch quantity data and / or analog quantity data collected by the virtualized register, and obtain the test result of each fan board 104 to be tested according to the switch quantity data and / or the analog quantity data.

[0060] Among them, the host computer 101 can adopt winform (a client application running on the user's computer that can display information, request user input, and communicate with a remote computer through a network) technology and .netframework4.5 (a cross-platform all-purpose repair tool) framework, and can run on any PC (Personal Computer) with .netframework4.5 and above Windows operating system. It has a friendly interface and is easy to understand.

[0061] Among them, the host computer 101 runs on a PC and can provide a user with a visual interface for the user to perform various test operations and display the test process and results; and the host computer 101 separately instantiates a test component for each fan board, which is responsible for processing the relevant test content of each fan board, and can extract the public test content of the fan board to form a public test logic, so that when the public test items of the fan board are tested, the public test logic can be used to test it, thereby reducing code complexity and reducing redundant code.

[0062] The serial port server 102 includes a serial port interface corresponding to each fan board 104 to be tested, so as to establish a connection path between the host computer 101 and the fan board 104 to be tested, that is, each fan board 104 to be tested communicates with the host computer 101 through the corresponding serial port interface.

[0063] As an abstract chip, the tooling plug-in box 103 can virtualize each fan board 104 to be tested into multiple 32-bit virtual registers through an interface protocol with each fan board 104 to be tested, so as to execute the test control instructions issued by the host computer 101, thereby triggering the fan board 104 to be tested to take action or reply the data in the corresponding address (the switch quantity / analog quantity generated by each fan board 104 to be tested during the test) to the host computer 101, so that the host computer 101 can analyze the replied data and realize the test of each fan board 104 to be tested.

[0064] The virtual register corresponding to each fan board 104 to be tested is equivalent to the lower computer of each fan board 104 to be tested.

[0065] Among them, the number of fan boards 104 to be tested that can be connected to each tooling box 103 can be set according to actual needs, such as 16, and can be expanded according to actual needs. During the expansion process, it is only necessary to increase the hard connection between the tooling box 103 and the fan board 104 to be tested, so as to achieve rapid and effective expansion of the fan board 104 to be tested.

[0066] The fan board to be tested 104 is a fan board to be tested, including a general term for various types of fan boards to be tested for availability or reliability in electronic devices such as computers and servers.

[0067] Optionally, the host computer 101 is connected to the serial port server 102 via the Ethernet port of the Ethernet cable, and the serial port server 102 is connected to the tooling box 103, and the tooling box 103 is hard-wired to the fan board 104 to be tested, so as to be connected to the tooling box 103 through the serial port server 102, and then connected to the fan board 104 to be tested, so that the host computer 101 can use 422 serial port communication to perform read and write operations with the register simulated by the tooling box 103, that is, to interact with the tooling box 103, thereby realizing automated testing of the fan board 104 to be tested.

[0068] Among them, the serial port server 102 includes multiple serial port interfaces, each serial port interface corresponds to each fan board 104 to be tested, so that when the host computer 101 is connected to the tooling plug-in box 103, only one Ethernet cable is used to realize one-to-multiple serial port communication, reduce the use of serial port lines, and thus save test costs.

[0069] Optionally, during the test process, the user may select a corresponding fan board for testing through the visual interface of the host computer 101 to generate a test request.

[0070] When the host computer 101 detects a test request, it generates a corresponding test control instruction according to the test request; and sends the test control instruction to the virtualized register corresponding to each fan board 104 to be tested in the tooling plug-in box 103 through the serial port server 102 according to the preset protocol frame; wherein the test control instruction includes analog control data and / or switch control data.

[0071] When receiving the test control instruction, the virtualized register performs corresponding actions according to the test control instruction to trigger the corresponding fan board 104 to be tested to perform the test action, realize the test control of the corresponding fan board 104 to be tested, and collect the switch quantity data and / or analog quantity data generated by the fan board 104 to be tested during the test control process;

[0072] The host computer 101 reads the register device through a preset interface protocol to obtain the switch quantity data and / or analog quantity data generated during the test control process of the fan board 104 to be tested. After the switch quantity data and / or analog quantity data are obtained, the expected switch quantity data and / or expected analog quantity data are compared, and the test result of the fan board 104 to be tested is determined according to the comparison result.

[0073] The fan board testing system provided by the present invention has a host computer connected to at least one tooling plug-in box through a serial port server, and each tooling plug-in box is hard-wired to at least one fan board to be tested, so as to realize direct communication between the host computer and multiple fan boards to be tested, and can send test control instructions to the virtualization register corresponding to each fan board to be tested through the serial port server, so as to test and control each fan board to be tested, and obtain the test result of each fan board to be tested according to the switching data and / or analog data collected by the virtualization register, so as to realize automated batch testing of multiple fan boards to be tested, and when the fan board needs to be expanded, it does not rely on the test backplane, and only needs to connect the fan board to be expanded with the tooling plug-in box by hard wire, so as to realize the expansion of the fan board conveniently and efficiently, and has strong scalability, and effectively solves the problem of dependence on the test backplane and high expansion difficulty.

[0074] In some embodiments, the host computer 101 includes a test module and a host module;

[0075] The test module includes a test component for each fan board 104 to be tested;

[0076] The test component is configured in a tab corresponding to each fan board 104 to be tested in the host module;

[0077] The test components are used to:

[0078] Under the control of the host module, according to the test items and preset test logic of each fan board 104 to be tested, a test control instruction is sent to the virtualized register corresponding to each fan board 104 to be tested;

[0079] The switch data and / or analog data collected by the virtualized register are obtained, and the test result of each fan board 104 to be tested is obtained according to the switch data and / or the analog data, and the test result is displayed on the visual interface of the host computer 101.

[0080] The host computer 101 provides a module for providing fan board testing, which provides all the test logics for the fan board and a UI (User Interface) interface, and is managed by the host module of the host computer 101 .

[0081] Among them, according to different functions to be implemented, multiple modules are integrated in the host computer 101, including but not limited to a test module and a host module; according to the actual application scenario, a user login module and a fan board selection module may also be included. Each module is connected to the host module and controlled by the host module to realize the fan board test function. In other words, the functional modules of the host computer 101 in this embodiment can be set according to the test requirements, and this embodiment does not specifically limit this. Testing services are performed between different modules through interfaces, which can effectively reduce the code coupling between modules and improve the test performance of the host computer 101. The functional modules cooperate with each other to realize the automated testing of the fan board.

[0082] The test module is used to provide fan board test logic and UI interface, and adopts component programming to instantiate a test component for each fan board 104 to be tested, and display each component in the tab corresponding to the fan board 104 to be tested.

[0083] Optionally, the user login module is used to implement functions such as user registration, user login and user information management, so as to verify the user identity when the user enters the user name and password in the visual interface of the host computer 101, and jump to the test front-end interface after the user logs in successfully.

[0084] After the user successfully logs in, the fan board selection module can provide the user with a fan board selection interface in the test front-end interface, so that the user can pull down the fan board selection interface to select the corresponding fan board for testing, and input the fan board selection instruction into the host computer 101.

[0085] When receiving the fan board selection instruction, the fan board selection module parses the fan board selection instruction to obtain the identifier of the fan board 104 to be tested, and transmits the identifier to the host module in real time.

[0086] The host module can automatically filter out the test items of the fan board 104 to be tested that are pre-set in the database according to the identification of the fan board 104 to be tested, and control the test components corresponding to the fan board 104 to be tested, and use 422 serial port communication to asynchronously perform read and write operations on the virtual registers corresponding to each fan board 104 to be tested in the tooling box 103 according to the preset test logic and test items, so as to test the fan board 104 to be tested, and display the test results and the test process in real time on the respective test interfaces.

[0087] In this embodiment, different fan boards to be tested are tested based on different test components, which can not only realize the separate test and separate display of each fan board to be tested, so that the fan boards to be tested do not interfere with each other during the test process, thereby improving the reliability of the test; it can also realize asynchronous batch testing of multiple fan boards to be tested, thereby improving the test efficiency. Therefore, the test system in this embodiment has extremely low test delay in the entire test process, and the test results obtained are also highly reliable.

[0088] In some embodiments, each test component performs asynchronous and simultaneous testing on the to-be-tested fan board 104 corresponding to each test component through a thread corresponding to each test component.

[0089] Each test component corresponds to each thread one by one.

[0090] It should be noted that, in this embodiment, except for each component management thread, no new threads are introduced as much as possible to improve resource utilization.

[0091] Optionally, during the test process, different test components use asynchronous thread control to asynchronously and simultaneously test their corresponding fan boards 104 to be tested through their corresponding threads, so as to achieve batch testing of multiple fan boards 104 to be tested, thereby improving test efficiency.

[0092] In some embodiments, the test component is further configured to:

[0093] When receiving an aging test instruction, obtaining a total number of tests according to the aging test instruction;

[0094] Under the control of the host module, according to the test items of each fan board 104 to be tested and the preset test logic, the fan board 104 to be tested is tested for multiple rounds until the cumulative number of tests reaches the total number of tests;

[0095] And according to the results of multiple rounds of tests, the aging test results of the fan board 104 to be tested are obtained.

[0096] The aging test instruction is an instruction input by the user in the visual interface of the host computer 101 for performing aging test on the fan board 104 to be tested. The aging test instruction carries the total number of tests, the interval between each test round, and the identification of the fan board 104 to be tested.

[0097] Optionally, when the user needs to perform an aging test on the fan board 104 to be tested, the user may input the identifier of the fan board 104 to be tested, the interval duration of each test round, and the total number of tests into the host computer 101 to generate an aging test instruction;

[0098] When the upper computer 101 obtains the aging test instruction, it parses the aging test instruction, obtains the total number of tests, the interval duration of each test round and the identification of the fan board 104 to be tested, and according to the total number of tests, according to the preset safety test logic and the interval duration of each test round, performs multiple rounds of tests on the fan board 104 to be tested corresponding to the identification, and in each aging test process, adds one to the cumulative number of tests until the cumulative number of tests reaches the total number of tests, then stops the test; and generates an aging test curve of the fan board 104 to be tested based on the results of multiple rounds of tests to obtain the aging test results of the fan board 104 to be tested.

[0099] It should be noted that, when the total number of tests is 1, a single round of testing is performed on the fan board 104 to be tested; and when the total number of tests is greater than a preset number of times, an aging test is performed.

[0100] In this embodiment, the visual interface is friendly and allows users to input various test instructions. By adjusting the total number of tests, the function of batch inspection and aging test of fan boards can be realized. It is not only simple and easy to understand and easy to operate, but also can realize multi-faceted testing of the fan board 104 to be tested, effectively improving the comprehensiveness of the test.

[0101] In some embodiments, the host computer 101 further includes an expansion module;

[0102] The host module is connected to the expansion module;

[0103] The expansion module is used to provide a fan board expansion interface, and upon receiving a fan board expansion instruction, parse the fan board expansion instruction to obtain a first identifier of the fan board to be expanded, and send the first identifier to the host module;

[0104] The host module is further used to create a test component of the fan board to be expanded in the test module according to the first identifier, and to establish a connection with the tooling plug-in box 103 connected to the fan board to be expanded through the serial port server 102.

[0105] The host computer 101 is also integrated with an expansion module, and the expansion module is connected to the host module.

[0106] The expansion module is used to expand the fan board to be expanded into the fan board to be tested 104 under the control of the host module, so as to realize the automated test of the fan board to be expanded.

[0107] Optionally, the expansion module may provide a fan board expansion interface for the user in the test front-end interface, so that the user can select a corresponding fan board for testing by pulling down the fan board expansion interface, and input the expansion module in the form of a fan board expansion instruction.

[0108] When the expansion module obtains the fan board expansion instruction, it parses the fan board expansion instruction to obtain the first identifier of the fan board to be expanded, and sends the first identifier to the host module. The first identifier may be a serial number or a name.

[0109] The host module can create a new test component of the fan board to be expanded in the test module based on the first identifier of the fan board to be expanded, and establish a connection based on the serial port server 102 and the tooling box 103 connected to the fan board to be expanded, and then establish a connection path between the host computer 101 and the fan board to be expanded, so as to realize the test of the fan board to be expanded through the path.

[0110] The fan board expansion in this embodiment does not rely on the test backplane. The fan board to be expanded only needs to establish a hard-wired connection with the tooling plug-in box, and then the fan board expansion command is input in the fan board expansion interface of the expansion module of the host computer to achieve the expansion of the fan board. It is not only simple to operate, but also has strong scalability.

[0111] In some embodiments, the host computer 101 further includes a fan board selection module, a log module and a report module;

[0112] The host module is connected to the fan board selection module, the log module and the report module respectively;

[0113] The fan board selection module is used to provide a fan board selection interface, and upon receiving a fan board selection instruction, parse the fan board selection instruction to obtain a second identifier of at least one fan board 104 to be tested, and send the second identifier to the host module;

[0114] The host module is also used to perform asynchronous batch testing on at least one fan board 104 to be tested according to the second identifier, and when the test of any fan board 104 to be tested is completed, trigger the log module to output the test log of any fan board 104 to be tested according to the second identifier, and / or trigger the report module to output the test report of any fan board 104 to be tested according to the second identifier.

[0115] Optionally, the user may select the fan board 104 to be tested in the fan board selection interface in the test front-end interface, and input the second identifier of the fan board 104 to be tested, etc., to form a fan board selection instruction.

[0116] It should be noted that the fan board selection instruction may include, in addition to the second identifier, decision information on whether to print logs and reports, and test rounds, etc., which are not specifically limited in this embodiment.

[0117] After obtaining the fan board selection instruction, the fan board selection module parses the fan board selection instruction to obtain a second identifier of at least one fan board 104 to be tested, and transmits the second identifier to the host module in real time, so that the host module can control the test component of each fan board 104 to be tested according to the second identifier, and perform asynchronous batch testing on each fan board 104 to be tested according to the test rounds.

[0118] During the test, if it is determined that the test of any fan board 104 to be tested is completed, the host module can determine whether the user makes a decision to pull down or check to automatically produce the test log or test report of the fan board to be tested based on the decision information of whether to print the log and report in the fan board selection instruction. In the case where it is determined that the user makes a decision to pull down or check to automatically produce the test log or test report of the fan board to be tested, the log module and / or report module is triggered, and the target report template or target log template is called according to the second identifier of the fan board to be tested, and the test log and / or test report of the fan board to be tested is automatically produced, so as to print out the test log and / or test report of the fan board to be tested, thereby reducing the work of the tester, effectively improving the test efficiency, saving manpower, avoiding human errors, and ensuring the quality of the fan board.

[0119] In summary, the fan board testing system in this embodiment can conveniently perform batch testing on fan boards, and can generate a test report for each fan board after the test is completed. It has the characteristics of strong scalability and high degree of automation, and can effectively save labor and improve the efficiency of fan board detection. The entire test process and report output are fully automated, and the test results, test reports and test logs of each test item can assist testers in quickly locating fan board problems, effectively improving the efficiency of fan board testing and maintenance.

[0120] In some embodiments, the host computer 101 further includes an event subscription module;

[0121] The host module is connected to the event subscription module;

[0122] The host module is also used to, when obtaining the test result of any fan board 104 to be tested, trigger the event subscription module to send the test result of any fan board 104 to be tested to the event subscriber corresponding to the fan board 104 to be tested.

[0123] Optionally, the host computer 101 is also integrated with an event subscription module.

[0124] Among them, the event subscription module is used to push corresponding subscription information to event subscribers under the control of the host module.

[0125] Optionally, after obtaining the test result of any fan board 104 to be tested, the host module may trigger the event subscription module to push the test result of the fan board to be tested to the event subscriber who has subscribed to the test result of the fan board to be tested in advance.

[0126] It should be noted that the event subscription module can also provide an unsubscribe function so that users can unsubscribe at any time, and when a user submits an unsubscribe request, the user will be deleted from the event subscriber list and the test results will no longer be sent to the user.

[0127] In this embodiment, the event subscription module is triggered by event notification to send the test results to the event subscriber in the form of a serial port message. In this way, multiple event subscribers are triggered in sequence, thereby reducing the number of communication threads, optimizing software memory and computing resource usage, and saving test system resources; and through event triggering, event subscription and unsubscription, low-latency and highly reliable communication management can be achieved, which greatly improves the operating stability and ultimately achieves millisecond-level test speeds, effectively improving test efficiency.

[0128] In some embodiments, the host computer 101 is further configured to obtain the switch quantity data and / or analog quantity data collected by the virtualized register from the serial port server 102 by adopting an event triggering method.

[0129] Optionally, when the upper computer 101 receives the switch data and / or analog data collected by the virtualized register from the serial port server 102, the trigger method of the serial port receive data trigger event serialPort_DataReceived in the serial port serialPort can be adopted to receive the serial port data in the serial port server 102 (i.e., the switch data and / or analog data collected by the virtualized register), so that in the process of receiving the serial port data, a delay is added to ensure that an indefinite number of serial port data can be fully received in the buffer before reading the buffered serial port data, and the problem of truncation of the data received by the serial port receive event is solved through logic, so as to ensure that the switch data and / or analog data collected by the virtualized register are obtained accurately and completely, realize low-latency serial port data processing, and reduce the memory usage of the test system.

[0130] In some embodiments, the fan plate to be tested 104 includes a plurality of control channels;

[0131] The multiple control channels are connected to the same fan 105;

[0132] The multiple control channels are tested based on the same fan 105 .

[0133] Each fan board 104 to be tested includes a plurality of control channels, and the specific number can be set according to actual needs, such as 6. Different control channels are used to control different fans 105.

[0134] During the testing process, multiple control channels of each fan board 104 to be tested can be connected to a fan 105, so that the same fan 105 can be controlled by using multiple control channels, thereby realizing testing of multiple control channels of each fan board to be tested, and effectively saving the number of fans required during the fan board testing process, thereby effectively saving testing costs.

[0135] The fan board testing method provided by the present invention is described below. The fan board testing method described below and the fan board testing system described above can be referenced to each other.

[0136] like Figure 2 As shown, this embodiment provides a fan board testing method based on a fan board testing system, the method comprising:

[0137] Step 201, when a fan board selection instruction is received, the fan board selection instruction is parsed to obtain a second identifier of at least one fan board to be tested;

[0138] The fan board selection instruction is an instruction input by a user in the upper computer to select and test the fan board to be tested, and the fan board selection instruction includes the second identifier of the fan board to be tested.

[0139] Optionally, when a fan board test is required, the user inputs a fan board selection instruction for selecting a fan board to be tested in the host computer; when the host computer receives the fan board selection instruction, it parses the fan board selection instruction to obtain a second identifier of the fan board to be tested. The second identifier may be a serial number or a name, etc.

[0140] Step 202: synchronously send a test control instruction to a virtualized register corresponding to each fan board to be tested according to the second identifier, so that the virtualized register performs asynchronous test control on each fan board to be tested according to the test control instruction, and collects switch quantity data and / or analog quantity data generated by each fan board to be tested during the test control process;

[0141] Optionally, after parsing and obtaining the second identifier of the fan board to be tested, the upper computer can automatically filter out the test items of the fan board to be tested that are pre-set in the database; and determine the virtualization register corresponding to each fan board to be tested based on the second identifier, so as to send a test control instruction to the virtualization register corresponding to each fan board to be tested according to the preset test logic and test items, so that when the virtualization register receives the test control instruction, it performs a corresponding action according to the test control instruction to trigger the corresponding fan board to be tested to perform a test action, thereby realizing the test control of the corresponding fan board to be tested, and collecting the switch quantity data and / or analog quantity data generated by the fan board to be tested during the test control process.

[0142] Step 203: Obtain the switch quantity data and / or analog quantity data collected by the virtualized register, and obtain the test result of the at least one fan board to be tested according to the switch quantity data and / or the analog quantity data.

[0143] Optionally, the host computer reads the register device through a preset interface protocol to obtain the switch quantity data and / or analog quantity data generated by the fan board to be tested during the test control process. After the switch quantity data and / or analog quantity data are obtained, the expected switch quantity data and / or expected analog quantity data are compared, and the test result of the fan board to be tested is determined according to the comparison result.

[0144] The fan board testing method provided by the present invention comprises the following steps: a host computer is connected to at least one tooling plug-in box through a serial port server, and each tooling plug-in box is hard-wired to at least one fan board to be tested, so as to realize direct communication between the host computer and multiple fan boards to be tested, and a test control instruction can be sent to a virtualization register corresponding to each fan board to be tested through the serial port server, so as to perform test control on each fan board to be tested, and a test result of each fan board to be tested is obtained according to the switch quantity data and / or analog quantity data collected by the virtualization register, so as to realize automated batch testing of multiple fan boards to be tested, and when the fan board needs to be expanded, it does not rely on a test backplane, and only needs to connect the fan board to be expanded to the tooling plug-in box by hard wire, so as to realize the expansion of the fan board conveniently and efficiently, and the scalability is strong, which effectively solves the problem of dependence on the test backplane and great expansion difficulty.

[0145] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302 and the memory 303 complete mutual communication through the communication bus 304. The processor 301 may call the logic instructions in the memory 303 to execute the fan board test method, the method comprising: in the case of receiving a fan board selection instruction, parsing the fan board selection instruction to obtain a second identification of at least one fan board to be tested; according to the second identification, synchronously sending a test control instruction to the virtualization register corresponding to each fan board to be tested, so that the virtualization register performs asynchronous test control on each fan board to be tested according to the test control instruction, and collects the switch quantity data and / or analog quantity data generated by each fan board to be tested during the test control process; obtaining the switch quantity data and / or analog quantity data collected by the virtualization register, and obtaining the test result of the at least one fan board to be tested according to the switch quantity data and / or the analog quantity data.

[0146] In addition, the logic instructions in the above-mentioned memory 303 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0147] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fan board testing method provided by the above methods, the method including: when a fan board selection instruction is received, parsing the fan board selection instruction to obtain a second identifier of at least one fan board to be tested; according to the second identifier, synchronously sending a test control instruction to a virtualization register corresponding to each fan board to be tested, so that the virtualization register performs asynchronous test control on each fan board to be tested according to the test control instruction, and collects the switch data and / or analog data generated by each fan board to be tested during the test control process; obtaining the switch data and / or analog data collected by the virtualization register, and obtaining the test result of the at least one fan board to be tested according to the switch data and / or the analog data.

[0148] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the fan board testing method provided by the above-mentioned methods, the method comprising: upon receiving a fan board selection instruction, parsing the fan board selection instruction to obtain a second identifier of at least one fan board to be tested; according to the second identifier, synchronously sending a test control instruction to a virtualization register corresponding to each fan board to be tested, so that the virtualization register performs asynchronous test control on each fan board to be tested according to the test control instruction, and collects switch data and / or analog data generated by each fan board to be tested during the test control process; obtaining the switch data and / or analog data collected by the virtualization register, and obtaining the test result of the at least one fan board to be tested according to the switch data and / or the analog data.

[0149] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A fan board testing system, characterized in that: include: Host computer, serial port server and at least one tooling box; The host computer is connected to the serial port server, and the serial port server is connected to the at least one tooling plug-in box; Each tooling plug-in box is hard-wired to at least one fan board to be tested; Each tooling plug-in box includes a virtualized register corresponding to each fan board to be tested; The host computer is used to send a test control instruction to the virtualized register corresponding to each fan board to be tested through the serial port server; The virtualized register is used to perform test control on each fan board to be tested according to the test control instruction, and collect switch quantity data and / or analog quantity data generated by each fan board to be tested during the test control process; The host computer is also used to obtain the switch quantity data and / or analog quantity data collected by the virtualized register, and obtain the test result of each fan board to be tested according to the switch quantity data and / or the analog quantity data; The host computer includes a test module and a host module; The test module includes a test component for each fan board to be tested; The test component is configured in a tab corresponding to each fan board to be tested in the host module; The test components are used to: Under the control of the host module, according to the test items and preset test logic of each fan board to be tested, a test control instruction is sent to the virtualized register corresponding to each fan board to be tested; Acquire the switch quantity data and / or analog quantity data collected by the virtualized register, acquire the test result of each fan board to be tested according to the switch quantity data and / or the analog quantity data, and display the test result on the visual interface of the host computer; The test component is also used to: When receiving an aging test instruction, obtaining a total number of tests according to the aging test instruction; Under the control of the host module, according to the test items of each fan board to be tested and the preset test logic, the fan board to be tested is tested for multiple rounds until the cumulative number of tests reaches the total number of tests; And according to the results of multiple rounds of tests, the aging test results of the fan board to be tested are obtained.

2. The fan board testing system according to claim 1, characterized in that: Each test component performs asynchronous and simultaneous testing on the fan board to be tested corresponding to each test component through the thread corresponding to each test component.

3. The fan board testing system according to claim 1, characterized in that: The host computer also includes an expansion module; The host module is connected to the expansion module; The expansion module is used to provide a fan board expansion interface, and upon receiving a fan board expansion instruction, parse the fan board expansion instruction to obtain a first identifier of the fan board to be expanded, and send the first identifier to the host module; The host module is further used to, according to the first identifier, create a test component of the fan board to be expanded in the test module, and establish a connection with the tooling plug-in box connected to the fan board to be expanded through the serial port server.

4. The fan board testing system according to claim 1, characterized in that: The host computer also includes a fan board selection module, a log module and a report module; The host module is connected to the fan board selection module, the log module and the report module respectively; The fan board selection module is used to provide a fan board selection interface, and upon receiving a fan board selection instruction, parse the fan board selection instruction to obtain a second identifier of at least one fan board to be tested, and send the second identifier to the host module; The host module is also used to perform asynchronous batch testing on the at least one fan board to be tested according to the second identifier, and when the test of any fan board to be tested is completed, trigger the log module to output the test log of any fan board to be tested according to the second identifier, and / or trigger the report module to output the test report of any fan board to be tested according to the second identifier.

5. The fan board testing system according to claim 1, characterized in that: The host computer also includes an event subscription module; The host module is connected to the event subscription module; The host module is further configured to, when a test result of any fan board to be tested is obtained, trigger the event subscription module to send the test result of any fan board to be tested to an event subscriber corresponding to the fan board to be tested.

6. The fan board testing system according to any one of claims 1 to 5, characterized in that: The host computer is also used to obtain the switch quantity data and / or analog quantity data collected by the virtualized register from the serial port server by adopting an event triggering method.

7. The fan board testing system according to any one of claims 1 to 5, characterized in that: The fan board to be tested includes a plurality of control channels; The multiple control channels are connected to the same fan; The multiple control channels are tested based on the same fan.

8. A fan board testing method based on the fan board testing system according to any one of claims 1 to 7, characterized in that: include: When a fan board selection instruction is received, the fan board selection instruction is parsed to obtain a second identifier of at least one fan board to be tested; According to the second identifier, synchronously send a test control instruction to the virtualized register corresponding to each fan board to be tested, so that the virtualized register performs asynchronous test control on each fan board to be tested according to the test control instruction, and collects switch quantity data and / or analog quantity data generated by each fan board to be tested during the test control process; The switch quantity data and / or analog quantity data collected by the virtualization register are obtained, and the test result of the at least one fan board to be tested is obtained according to the switch quantity data and / or the analog quantity data.

Citation Information

Patent Citations

  • Fan control board testing system and method

    CN107966975A