CN115507050A - Fan board testing system and method - Google Patents
Fan board testing system and method Download PDFInfo
- Publication number
- CN115507050A CN115507050A CN202210987161.9A CN202210987161A CN115507050A CN 115507050 A CN115507050 A CN 115507050A CN 202210987161 A CN202210987161 A CN 202210987161A CN 115507050 A CN115507050 A CN 115507050A
- Authority
- CN
- China
- Prior art keywords
- fan board
- test
- tested
- fan
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 389
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000008569 process Effects 0.000 claims abstract description 21
- 230000032683 aging Effects 0.000 claims description 14
- 230000000007 visual effect Effects 0.000 claims description 7
- 230000000875 corresponding effect Effects 0.000 description 45
- 238000004891 communication Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 6
- 230000001186 cumulative effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000011076 safety test Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F04—POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
- F04D—NON-POSITIVE-DISPLACEMENT PUMPS
- F04D25/00—Pumping installations or systems
- F04D25/02—Units comprising pumps and their driving means
- F04D25/08—Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F04—POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
- F04D—NON-POSITIVE-DISPLACEMENT PUMPS
- F04D27/00—Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
- F04D27/001—Testing thereof; Determination or simulation of flow characteristics; Stall or surge detection, e.g. condition monitoring
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F04—POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
- F04D—NON-POSITIVE-DISPLACEMENT PUMPS
- F04D29/00—Details, component parts, or accessories
- F04D29/002—Details, component parts, or accessories especially adapted for elastic fluid pumps
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及自动化测试技术领域,尤其涉及一种风扇板测试系统及方法。The invention relates to the technical field of automatic testing, in particular to a fan board testing system and method.
背景技术Background technique
现有技术中,为了降低服务器内部的温度,保证服务器的稳定运行,通常采用使用风扇来控制服务器内的温度,具体是由风扇板监测服务器内的温度,然后根据温度对风扇进行控制,进而达到控制服务器内的温度的效果。而为了确保风扇板的正常运行,在将风扇板接入服务器内部之前,需要对风扇板进行测试。In the prior art, in order to reduce the temperature inside the server and ensure the stable operation of the server, fans are usually used to control the temperature inside the server. Specifically, the 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, it is necessary to test the fan board before connecting the fan board into the server.
现有技术中,需要将风扇板安装在测试背板上,由测试背板上的测试单元对风扇板进行测试。因此,风扇板的测试完全依托于测试背板,而测试背板面积受限,且背板插接槽位固定,导致一次可测试风扇板的数量较少,扩展难度大。In the prior art, the fan board needs to be installed on the test backboard, and the fan board is tested by the test unit on the test backboard. Therefore, the test of the fan board depends entirely on the test backplane, and the area of the test backplane is limited, and the slots of the backplane are fixed, resulting in a small number of fan boards that can be tested at one time, making expansion difficult.
发明内容Contents of the invention
本发明提供一种风扇板测试系统及方法,用以解决现有技术中风扇板的测试完全依托于测试背板,而测试背板面积受限,且背板插接槽位固定,导致一次可测试风扇板的数量较少,扩展难度大的缺陷,实现对多风扇板的批量测试,提高风扇板测试的可扩展性。The present invention provides a fan board testing system and method, which is used to solve the problem that the fan board testing in the prior art relies entirely on the test backboard, and the area of the test backboard is limited, and the insertion slots of the backboard are fixed, resulting in one-time testing. The number of test fan boards is small, and it is difficult to expand the defects, realize batch testing of multi-fan boards, and improve the scalability of fan board testing.
本发明提供一种风扇板测试系统,包括:上位机、串口服务器和至少一个工装插箱;The present invention provides a fan board testing system, including: a host computer, a serial port server and at least one tooling box;
所述上位机与所述串口服务器连接,所述串口服务器与所述至少一个工装插箱连接;每一工装插箱与至少一个待测试风扇板硬线连接;The upper computer is connected to the serial port server, and the serial port server is connected to the at least one tooling box; each tooling box is hard-wired to at least one fan board to be tested;
所述每一工装插箱包括每一待测试风扇板对应的虚拟化寄存器;Each of the tooling sub-boxes includes a virtualization register corresponding to each fan board to be tested;
所述上位机用于,通过所述串口服务器向所述每一待测试风扇板对应的虚拟化寄存器发送测试控制指令;The upper computer is used to send a test control instruction to the virtualization register corresponding to each fan board to be tested through the serial port server;
所述虚拟化寄存器用于,根据所述测试控制指令对所述每一待测试风扇板进行测试控制,并采集所述每一待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据;The virtualization register is used to perform test control on each fan board to be tested according to the test control instruction, and collect switching data and/or Analog data;
所述上位机还用于,获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述每一待测试风扇板的测试结果。The host computer is also used to obtain the switching data and/or analog data collected by the virtualization register, and obtain each of the fan boards to be tested according to the switching data and/or the analog data. test results.
根据本发明提供的一种风扇板测试系统,所述上位机包括测试模块和主机模块;According to a fan board testing system provided by the present invention, the host computer includes a testing 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 the tab corresponding to each fan board to be tested in the host module;
所述测试组件用于:The test components are used for:
在所述主机模块的控制下,根据所述每一待测试风扇板的测试项目和预设测试逻辑,向所述每一待测试风扇板对应的虚拟化寄存器发送测试控制指令;Under the control of the host module, according to the test items and preset test logic of each fan board to be tested, send a test control command to the virtualization register corresponding to each fan board to be tested;
获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述每一待测试风扇板的测试结果,并将所述测试结果显示在所述上位机的可视化界面上。Obtain the switching data and/or analog data collected by the virtualization register, obtain the test result of each fan board to be tested according to the switching data and/or the analog data, and store the The test results are displayed on the visual interface of the host computer.
根据本发明提供的一种风扇板测试系统,每一测试组件,通过所述每一测试组件对应的线程,对所述每一测试组件对应的待测试风扇板进行异步同时测试。According to a fan board testing system provided by the present invention, each test component performs an asynchronous and simultaneous test on the fan board to be tested corresponding to each test component through the thread corresponding to each test component.
根据本发明提供的一种风扇板测试系统,所述测试组件还用于:According to a fan board testing system provided by the present invention, the testing assembly is also used for:
在接收到老化测试指令的情况下,根据所述老化测试指令,获取测试总次数;In the case of receiving the burn-in test instruction, according to the burn-in test instruction, obtain the total number of tests;
在所述主机模块的控制下,根据所述每一待测试风扇板的测试项目和预设测试逻辑,对所述待测试风扇板进行多轮次测试,直到累计测试次数达到所述测试总次数;Under the control of the host module, according to the test items and preset test logic of each fan board to be tested, multiple rounds of tests are performed on the fan board to be tested until the cumulative number of tests reaches the total number of tests ;
并根据多轮次测试结果,获取所述待测试风扇板的老化测试结果。And according to the test results of multiple rounds, the aging test result of the fan board to be tested is obtained.
根据本发明提供的一种风扇板测试系统,所述上位机还包括扩充模块;According to a fan board testing system provided by the present invention, the host computer further 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 when receiving a fan board expansion command, analyze the fan board expansion command to obtain a first identification of the fan board expansion to be expanded, and send the sending the first identification to the host module;
所述主机模块还用于,根据所述第一标识,在所述测试模块中新建所述待扩展风扇板的测试组件,并通过所述串口服务器与所述待扩展风扇板连接的工装插箱建立连接。The host module is also used to, according to the first identification, create a new test component of the fan board to be expanded in the test module, and connect the tooling box with the fan board to be expanded through the serial port server establish connection.
根据本发明提供的一种风扇板测试系统,所述上位机还包括风扇板选择模块、日志模块和报告模块;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 reporting module;
所述主机模块分别与所述风扇板选择模块、日志模块和报告模块连接;The host module is respectively connected to the fan board selection module, log module and report module;
所述风扇板选择模块用于,提供风扇板选择界面,并在接收到风扇板选择指令的情况下,对所述风扇板选择指令进行解析,得到至少一个待测试风扇板的第二标识,并将所述第二标识发送至所述主机模块;The fan board selection module is configured to provide a fan board selection interface, and when receiving a fan board selection instruction, analyze the fan board selection instruction to obtain a second identification of at least one fan board to be tested, and sending the second identification to the host module;
所述主机模块还用于,根据所述第二标识,对所述至少一个待测试风扇板进行异步批量测试,在任一待测试风扇板测试完成的情况下,触发所述日志模块根据所述第二标识,输出所述任一待测试风扇板的测试日志,和/或触发所述报告模块根据所述第二标识,输出所述任一待测试风扇板的测试报告。The host module is further configured to, according to the second identifier, perform an asynchronous batch test on the at least one fan board to be tested, and trigger the log module to perform an asynchronous batch test on the at least one fan board to be tested when the test of any fan board to be tested is completed. Two identifications, outputting a test log of any fan board to be tested, and/or triggering the reporting module to output a test report of any fan board to be tested according to the second identification.
根据本发明提供的一种风扇板测试系统,所述上位机还包括事件订阅模块;According to a fan board testing system provided by the present invention, the host computer further includes an event subscription module;
所述主机模块与所述事件订阅模块连接;The host module is connected to the event subscription module;
所述主机模块还用于,在获取到任一待测试风扇板的测试结果的情况下,触发所述事件订阅模块向所述任一待测试风扇板对应的事件订阅者,发送所述任一待测试风扇板的测试结果。The host module is further configured to trigger the event subscription module to send any The test result of the fan board to be tested.
根据本发明提供的一种风扇板测试系统,所述上位机还用于,采用事件触发方法,从所述串口服务器中获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据。According to a fan board testing system provided by the present invention, the host computer is further configured to acquire the switching data and/or analog data collected by the virtualization register from the serial port server by adopting an event trigger method.
根据本发明提供的一种风扇板测试系统,所述待测试风扇板包括多个控制通道;According to a fan board testing system provided by the present invention, 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.
本发明还提供一种基于风扇板测试系统的风扇板测试方法,包括:The present invention also provides a fan board testing method based on the fan board testing system, including:
在接收到风扇板选择指令的情况下,对所述风扇板选择指令进行解析,获取至少一个待测试风扇板的第二标识;When the fan board selection instruction is received, the fan board selection instruction is parsed to obtain a second identification of at least one fan board to be tested;
根据所述第二标识,同步向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以供所述虚拟化寄存器根据所述测试控制指令对所述每一待测试风扇板进行异步测试控制,并采集所述每一待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据;According to the second identification, synchronously send a test control instruction to the virtualization register corresponding to each fan board to be tested, so that the virtualization register can perform an asynchronous test on each fan board to be tested according to the test control instruction Control, and collect the switching data and/or analog data generated by each fan board to be tested during the test control process;
获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述至少一个待测试风扇板的测试结果。Acquiring switch quantity data and/or analog quantity data collected by the virtualization register, and acquiring a test result of the at least one fan board to be tested according to the switch quantity data and/or the analog quantity data.
本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述风扇板测试方法。The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, the fan board test described above can be implemented. method.
本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述风扇板测试方法。The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the fan board testing method described in any one of the above-mentioned methods is realized.
本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述风扇板测试方法。The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, any one of the fan board testing methods described above is implemented.
本发明提供的风扇板测试系统及方法,上位机通过串口服务器与至少一个工装插箱连接,每一工装插箱与至少一个待测试风扇板硬线连接,以实现上位机与多个待测试风扇板之间的直连通信,且可通过串口服务器向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以对每一待测试风扇板进行测试控制,并根据虚拟化寄存器采集的开关量数据和/或模拟量数据,获取每一待测试风扇板的测试结果,以实现对多种待测试风扇板的自动化批量测试,并且在需要对风扇板进行扩展时,不依托于测试背板,只需要将待扩展风扇板与工装插箱硬线连接,即可便捷高效地实现风扇板的扩展,可扩展性强,有效解决依赖测试背板,扩展难度大的问题。In the fan board testing system and method provided by the present invention, the host computer is connected to at least one tooling box through a serial port server, and each tooling box is hard-wired connected to at least one fan board to be tested, so as to realize the host computer and multiple fans to be tested Direct communication between boards, and can send test control commands to the 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 according to the switch collected by the virtualization register Quantitative data and/or analog data, to obtain the test results of each fan board to be tested, so as to realize the automatic batch testing of various fan boards to be tested, and when the fan board needs to be expanded, it does not rely on the test backplane , only need to connect the fan board to be expanded with the hard wire of the tooling sub-box, the expansion of the fan board can be realized conveniently and efficiently, the scalability is strong, and the problem of relying on the test backplane and difficult expansion is effectively solved.
附图说明Description of drawings
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.
图1是本发明提供的风扇板测试系统的结构示意图;Fig. 1 is the structural representation of the fan board test system provided by the present invention;
图2是本发明提供的风扇板测试方法的流程示意图;Fig. 2 is a schematic flow chart of the fan plate testing method provided by the present invention;
图3是本发明提供的电子设备的结构示意图。Fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
附图标记:Reference signs:
101:上位机;102:串口服务器;103:工装插箱;104:待测试风扇板;105:风扇。101: host computer; 102: serial port server; 103: tooling box; 104: fan board to be tested; 105: fan.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在本实施例的描述中,需要说明的是,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of this embodiment, it should be noted that the terms "first", "second", and "third" are used for description purposes only, and should not be understood as indicating or implying relative importance.
在本实施例的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本实施例中的具体含义。In the description of this embodiment, it should be noted that unless otherwise specified and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection, or Integral connection; it can be mechanical connection or electrical connection; it can be direct connection or indirect connection through an intermediary. Those of ordinary skill in the art can understand the specific meanings of the above terms in this embodiment in specific situations.
下面结合图1描述本发明的风扇板测试系统,该系统用于实现对计算机和服务器等电子设备中的风扇板进行自动化测试。如图1所示,该系统包括上位机101、串口服务器102和至少一个工装插箱103;The fan board testing system of the present invention is described below with reference to FIG. 1 , and the system is used to realize automatic testing of fan boards in electronic equipment such as computers and servers. As shown in Figure 1, the system includes a
所述上位机101与所述串口服务器102连接,所述串口服务器102与所述至少一个工装插箱103连接;每一工装插箱103与至少一个待测试风扇板104硬线连接;The
所述每一工装插箱103包括每一待测试风扇板104对应的虚拟化寄存器;Each of the
所述上位机101用于,通过所述串口服务器102向所述每一待测试风扇板104对应的虚拟化寄存器发送测试控制指令;The
所述虚拟化寄存器用于,根据所述测试控制指令对所述每一待测试风扇板104进行测试控制,并采集所述每一待测试风扇板104在测试控制过程中产生的开关量数据和/或模拟量数据;The virtualization register is used to perform test control on each
所述上位机101还用于,获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述每一待测试风扇板104的测试结果。The
其中,上位机101可以是采用winform(一种用户计算机上运行的客户端应用程序,可显示信息、请求用户输入以及通过网络与远程计算机进行通信)技术和.netframework4.5(一款跨平台全能修复工具)框架,可以运行在任何一台装有.netframework4.5及以上的Windows操作系统的PC(Personal Computer,个人计算机)中,界面友好,操作起来容易理解。Wherein, the
其中,上位机101运行在PC机上,可提供给用户可视化界面,以供用户进行各种测试操作,并显示测试过程和结果;且上位机101对每个风扇板都单独实例化一个测试组件,负责处理每个风扇板的相关测试内容,并可将风扇板的公共测试内容提取出来,形成公共测试逻辑,以在对风扇板的公共测试项进行测试时,使用公共测试逻辑对其进行测试,进而降低代码复杂度,减少冗余代码。Wherein, the
串口服务器102包括每一待测试风扇板104对应的串口接口,以建立上位机101与待测试风扇板104对应的之间的连接通路,即每一待测试风扇板104通过对应的串口接口与上位机101进行通信连接。The
工装插箱103作为抽象的芯片,可通过与每一待测试风扇板104的接口协议,针对每一待测试风扇板104虚拟成多个32位的虚拟寄存器,以执行上位机101下发的测试控制指令,进而触发待测试风扇板104进行动作或回复相应地址中(各待测试风扇板104在测试过程中产生的开关量/模拟量)的数据至上位机101,以供上位机101分析回复的数据,实现对每一待测试风扇板104的测试。As an abstract chip, the
其中,每一待测试风扇板104对应的虚拟寄存器相当于每一待测试风扇板104的下位机。Wherein, the virtual register corresponding to each
其中,每一工装插箱103可连接待测试风扇板104的数量可以根据实际需求进行设置,如16个,且可根据实际需求进行扩展,在扩展过程中只需增加工装插箱103与待测试风扇板104之间的硬性连接,即可实现待测试风扇板104的快速有效扩展。Among them, the number of
其中,待测试风扇板104为待进行测试的风扇板,包括计算机、服务器等电子设备中关联的各种类型的待进行可用性或可靠性测试的风扇板的总称。Wherein, the fan board to be tested 104 is a fan board to be tested, including various types of fan boards associated with electronic devices such as computers and servers to be tested for usability or reliability.
可选地,上位机101通过以太网线的以太网口连接到串口服务器102,由串口服务器102连接工装插箱103,工装插箱103与待测试风扇板104硬线连接,以通过串口服务器102与工装插箱103相连接,进而与待测试风扇板104连接,以使得上位机101可使用422串口通信与工装插箱103模拟的寄存机进行读写操作,即与工装插箱103进行信息交互,进而实现对待测试风扇板104的自动化测试。Optionally, the
其中,串口服务器102包括多个串口接口,每一串口接口与每一待测试风扇板104对应,以在上位机101与工装插箱103连接时,仅使用一根以太网线,即可实现一对多个串口的通信,减少串口线的使用,进而节约测试成本。Wherein, the
可选地,在测试过程中,用户可通过上位机101的可视化界面选择相应的风扇板进行测试,以生成测试请求。Optionally, during the test process, the user may select a corresponding fan board to be tested through the visual interface of the
上位机101在监测到测试请求的情况下,根据测试请求,生成相应的测试控制指令;并按照预设协议帧,将测试控制指令通过串口服务器102发送至工装插箱103中每一待测试风扇板104对应的虚拟化寄存器;其中,测试控制指令包含模拟量控制数据和/或开关量控制数据。When the
虚拟化寄存器在接收到测试控制指令的情况下,根据测试控制指令进行相应的动作,以触发相应的待测试风扇板104进行测试动作,实现对相应的待测试风扇板104的测试控制,并采集待测试风扇板104在测试控制过程中产生的开关量数据和/或模拟量数据;When the virtualization register receives the test control instruction, it performs corresponding actions according to the test control instruction to trigger the
上位机101通过预设接口协议读取寄存器设备,以获取待测试风扇板104在测试控制过程中产生的开关量数据和/或模拟量数据。在获取到开关量数据和/或模拟量数据后,将期望开关量数据和/或期望模拟量数据进行比较,根据比较结果,确定待测试风扇板104的测试结果。The
本发明提供的风扇板测试系统,上位机通过串口服务器与至少一个工装插箱连接,每一工装插箱与至少一个待测试风扇板硬线连接,以实现上位机与多个待测试风扇板之间的直连通信,且可通过串口服务器向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以对每一待测试风扇板进行测试控制,并根据虚拟化寄存器采集的开关量数据和/或模拟量数据,获取每一待测试风扇板的测试结果,以实现对多种待测试风扇板的自动化批量测试,并且在需要对风扇板进行扩展时,不依托于测试背板,只需要将待扩展风扇板与工装插箱硬线连接,即可便捷高效地实现风扇板的扩展,可扩展性强,有效解决依赖测试背板,扩展难度大的问题。In the fan board testing system provided by the present invention, the upper computer is connected to at least one tooling box through a serial port server, and each tooling box is hard-wired connected to at least one fan board to be tested, so as to realize the connection between the upper computer and a plurality of fan boards to be tested. The direct communication between each fan board can be directly connected, and the test control command can be sent 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 according to the switch data collected by the virtualization register And/or analog data, to obtain the test results of each fan board to be tested, so as to realize the automatic batch testing of various fan boards to be tested, and when the fan board needs to be expanded, it does not rely on the test backplane, only It is necessary to hard-wire the fan board to be expanded to the tooling sub-box, so that the expansion of the fan board can be realized conveniently and efficiently. The scalability is strong, and the problem of relying on the test backplane and difficult expansion is effectively solved.
在一些实施例中,所述上位机101包括测试模块和主机模块;In some embodiments, the
所述测试模块包括所述每一待测试风扇板104的测试组件;The test module includes a test component for each
所述测试组件配置在所述主机模块中所述每一待测试风扇板104对应的页签中;The test component is configured in the tab corresponding to each
所述测试组件用于:The test components are used for:
在所述主机模块的控制下,根据所述每一待测试风扇板104的测试项目和预设测试逻辑,向所述每一待测试风扇板104对应的虚拟化寄存器发送测试控制指令;Under the control of the host module, according to the test items and preset test logic of each
获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述每一待测试风扇板104的测试结果,并将所述测试结果显示在所述上位机101的可视化界面上。Obtain the switching data and/or analog data collected by the virtualization register, obtain the test result of each
其中,上位机101提供一个用于提供风扇板测试的模块,该模块既提供所有对风扇板的测试逻辑,又提供UI(User Interface,人机交互)界面,由上位机101的主机模块进行管理。Wherein, the
其中,根据实现功能不同,上位机101中集成有多个模块,包括但不限于测试模块和主机模块;据实际应用场景,还可包括用户登录模块和风扇板选择模块。各模块均与主机模块连接,由主机模块对其进行控制,以实现风扇板测试功能。也就是说,本实施例中的上位机101的功能模块,可根据测试需求进行设置,本实施例对此并不作具体限定。不同模块之间通过接口进行测试服务,可有效降低各模块之间的代码耦合,进行提高上位机101的测试性能。各功能模块之间相互配合以实现对风扇板的自动化测试。Wherein, according to different functions, the
其中,测试模块用于提供风扇板测试逻辑和UI界面。并采用组件编程的方式,针对每一待测试风扇板104实例化一个测试组件,并将每一组件显示在各自对应的待测试风扇板104对应的页签中。Among them, the test module is used to provide the fan board test logic and UI interface. A component programming method is used to instantiate a test component for each
可选地,用户登录模块用于实现用户注册、用户登录和用户信息管理等功能,以在用户在上位机101的可视化界面输入用户名和密码的时候,对用户身份进行验证,并在用户登录成功后跳转至测试前端界面。Optionally, the user login module is used to implement functions such as user registration, user login, and user information management, so that when the user enters the user name and password on the visual interface of the
在用户登录成功后,风扇板选择模块可在测试前端界面中为用户提供风扇板选择界面,以供用户在风扇板选择界面下拉选择相应的风扇板进行测试,并以风扇板选择指令的形式输入上位机101。After the user logs in successfully, 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 select the corresponding fan board from the drop-down list on the fan board selection interface for testing, and input in the form of a fan board selection command PC101.
风扇板选择模块在接收到风扇板选择指令的情况下,从风扇板选择指令中解析出待测试风扇板104的标识,并将标识实时传输至主机模块。When the fan board selection module receives the fan board selection instruction, it parses out the identification of the
主机模块可以根据待测试风扇板104的标识,自动筛选出预先设置在数据库中的待测试风扇板104的测试项,并控制待测试风扇板104对应的测试组件,使用422串口通信,依据预设测试逻辑与测试项目,异步对工装插箱103中每一待测试风扇板104对应的虚拟寄存器进行读写操作,以测试待测试风扇板104,并将测试结果和测试过程实时显示到各自的测试界面中。According to the identification of the
本实施例中,不同待测试风扇板基于不同测试组件进行测试,不仅可以实现每一待测试风扇板的单独测试与单独显示,以使各待测试风扇板在测试过程中相互之间不受干扰,进而提高测试的可靠性;还可以实现多个待测试风扇板的异步批量测试,提高测试效率。因此,本实施例中的测试系统,使得整测试过程中具有极低的测试延迟,且获得的测试结果也具有高度可靠性。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 display of each fan board to be tested, so that the fan boards to be tested will not interfere with each other during the test , so as to improve the reliability of the test; it can also realize the asynchronous batch test of multiple fan boards to be tested, and improve the test efficiency. Therefore, the test system in this embodiment has extremely low test delay in the whole test process, and the obtained test results are also highly reliable.
在一些实施例中,每一测试组件,通过所述每一测试组件对应的线程,对所述每一测试组件对应的待测试风扇板104进行异步同时测试。In some embodiments, each test component performs an asynchronous and simultaneous test on the
其中,每一测试组件与每一线程一一对应。Wherein, each test component corresponds to each thread one by one.
需要说明的是,本实施例中,除了各个组件管理线程外,尽量不再引入新线程,以提高资源利用率。It should be noted that, in this embodiment, except for each component management thread, no new threads are introduced as far as possible, so as to improve resource utilization.
可选地,在测试过程中,不同测试组件采用异步线程控制,以通过各自对应的线程,对各自对应的待测试风扇板104进行异步同时测试,以实现对多个待测试风扇板104的批量化测试,进而提高测试效率。Optionally, in the test process, different test components adopt asynchronous thread control, so as to carry out asynchronous and simultaneous testing on the respective
在一些实施例中,所述测试组件还用于:In some embodiments, the test component is also used to:
在接收到老化测试指令的情况下,根据所述老化测试指令,获取测试总次数;In the case of receiving the burn-in test instruction, according to the burn-in test instruction, obtain the total number of tests;
在所述主机模块的控制下,根据所述每一待测试风扇板104的测试项目和预设测试逻辑,对所述待测试风扇板104进行多轮次测试,直到累计测试次数达到所述测试总次数;Under the control of the host module, according to the test items and preset test logic of each
并根据多轮次测试结果,获取所述待测试风扇板104的老化测试结果。And according to the results of multiple rounds of tests, the aging test results of the
其中,老化测试指令为用户在上位机101的可视化界面输入的用于待测试风扇板104进行老化测试的指令。老化测试指令中携带有测试总次数、每次测试轮次的间隔时长和待测试风扇板104的标识等。Wherein, the aging test instruction is an instruction input by the user on the visual interface of the
可选地,用户需要对待测试风扇板104进行老化测试时,可将待测试风扇板104的标识、每次测试轮次的间隔时长以及测试总次数输入至上位机101,以生成老化测试指令;Optionally, when the user needs to perform an aging test on the
上位机101在获取到老化测试指令的情况下,对老化测试指令进行解析,获取测试总次数、每次测试轮次的间隔时长和待测试风扇板104的标识,并根据测试总次数,按照预设安全测试逻辑以及每次测试轮次的间隔时长,对标识对应的待测试风扇板104进行多轮次测试,并在每次老化测试过程中,对累计测试次数累计加一,直到累计测试次数达到测试总次数,则停止测试;并根据多轮次测试结果,生成待测试风扇板104的老化测试曲线,以获取待测试风扇板104的老化测试结果。When the
需要说明的是,在测试总次数为1次,则对待测试风扇板104进行的是单轮测试;在测试总次数大于预设次数,则进行老化测试。It should be noted that, when the total number of tests is 1, the
本实施例中,可视化界面友好,可供用户输入各种测试指令,且通过调整测试总次数可实现批量对风扇板进行单检和老化测试的功能,不仅简单易懂,且操作方便,且可实现对待测试风扇板104的多方位测试,有效提高测试的全面性。In this embodiment, the visualized interface is friendly, allowing users to input various test instructions, and by adjusting the total number of tests, the function of performing single inspection and aging test on fan boards in batches can be realized, which is not only easy to understand, but also convenient to operate, and can The multi-directional test of the
在一些实施例中,所述上位机101还包括扩充模块;In some embodiments, the
所述主机模块与所述扩充模块连接;The host module is connected to the expansion module;
所述扩充模块用于,提供风扇板扩展界面,并在接收到风扇板扩展指令的情况下,对所述风扇板扩展指令进行解析,得到待扩展风扇板扩展的第一标识,并将所述第一标识发送至所述主机模块;The expansion module is used to provide a fan board expansion interface, and when receiving a fan board expansion command, analyze the fan board expansion command to obtain a first identification of the fan board expansion to be expanded, and send the sending the first identification to the host module;
所述主机模块还用于,根据所述第一标识,在所述测试模块中新建所述待扩展风扇板的测试组件,并通过所述串口服务器102与所述待扩展风扇板连接的工装插箱103建立连接。The host module is further configured to, according to the first identification, create a new test component of the fan board to be expanded in the test module, and use the
其中,上位机101还集成有扩充模块,扩充模块与主机模块连接。Wherein, the
扩充模块用于在主机模块的控制下,实现将待扩展风扇板扩充至待测试风扇板104中,以实现对待扩展风扇板的自动化测试。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 automatic test of the fan board to be expanded.
可选地,扩充模块可在测试前端界面中为用户提供风扇板扩充界面,以供用户在风扇板扩充界面下拉选择相应的风扇板进行测试,并以风扇板扩充指令的形式输入扩充模块。Optionally, the expansion module can provide the user with a fan board expansion interface in the test front-end interface, so that the user can select the corresponding fan board from the drop-down list on the fan board expansion interface for testing, and input the expansion module in the form of a fan board expansion command.
扩充模块在获取到风扇板扩充指令的情况下,对风扇板扩充指令进行解析,以获取待扩展风扇板扩展的第一标识,并将第一标识发送至主机模块。第一标识可以是序列号或名称等。When the expansion module obtains the fan board expansion command, it parses the fan board expansion command to obtain the first identification of the fan board expansion to be expanded, and sends the first identification to the host module. The first identification may be a serial number or a name and the like.
主机模块可以根据待扩展风扇板的第一标识,在测试模块中新建待扩展风扇板的测试组件,并基于串口服务器102与待扩展风扇板连接的工装插箱103建立连接,进而建立上位机101与待扩展风扇板之间的连接通路,以通过通路实现对待扩展风扇板的测试。The host module can create a new test component of the fan board to be expanded in the test module according to the first identification of the fan board to be expanded, and establish a connection based on the
本实施例中的风扇板扩展,不依托于测试背板,待扩展风扇板只需要与工装插箱建立硬线连接,然后在上位机的扩充模块的风扇板扩展界面输入风扇板扩展指令,即可实现对风扇板的扩展,不仅操作简单,且可扩展性强。The expansion of the fan board 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 box, and then input the fan board expansion command on the fan board expansion interface of the expansion module of the host computer, that is The expansion of the fan board can be realized, which is not only easy to operate, but also has strong scalability.
在一些实施例中,所述上位机101还包括风扇板选择模块、日志模块和报告模块;In some embodiments, the
所述主机模块分别与所述风扇板选择模块、日志模块和报告模块连接;The host module is respectively connected to the fan board selection module, log module and report module;
所述风扇板选择模块用于,提供风扇板选择界面,并在接收到风扇板选择指令的情况下,对所述风扇板选择指令进行解析,得到至少一个待测试风扇板104的第二标识,并将所述第二标识发送至所述主机模块;The fan board selection module is configured to provide a fan board selection interface, and when receiving a fan board selection instruction, analyze the fan board selection instruction to obtain a second identification of at least one
所述主机模块还用于,根据所述第二标识,对所述至少一个待测试风扇板104进行异步批量测试,在任一待测试风扇板104测试完成的情况下,触发所述日志模块根据所述第二标识,输出所述任一待测试风扇板104的测试日志,和/或触发所述报告模块根据所述第二标识,输出所述任一待测试风扇板104的测试报告。The host module is further configured to perform an asynchronous batch test on the at least one
可选地,用户可在测试前端界面中风扇板选择界面中选择待测试风扇板104,并输入待测试风扇板104的第二标识等,形成风扇板选择指令。Optionally, the user can select the
需要说明的是风扇板选择指令中除了包括第二标识外,还可以包是否打印日志和报告的决策信息,以及测试轮次等,本实施例对此不作具体地限定。It should be noted that in addition to the second identifier, the fan board selection instruction may also include decision information on whether to print logs and reports, and test rounds, which are not specifically limited in this embodiment.
风扇板选择模块在获取到风扇板选择指令后,对风扇板选择指令进行解析,得到至少一个待测试风扇板104的第二标识,并将第二标识实时传输至主机模块,以供主机模块根据第二标识,控制每一待测试风扇板104的测试组件,按照测试轮次,对每一待测试风扇板104进行异步批量测试。After the fan board selection module obtains the fan board selection instruction, it parses the fan board selection instruction to obtain the second identification of at least one
在测试的过程中,若确定任一待测试风扇板104测试完成的情况下,主机模块可根据风扇板选择指令中是否打印日志和报告的决策信息,判断用户做出是否下拉选择或勾选自动产出该待测试风扇板的测试日志或测试报告的决策。在确定用户做出下拉选择或勾选自动产出该待测试风扇板的测试日志或测试报告的决策的情况下,触发日志模块和/或报告模块,根据该待测试风扇板的第二标识,调取目标报告模板或目标日志模板,自动产出该待测试风扇板的测试日志和/或测试报告,以对该待测试风扇板的测试日志和/或测试报告进行打印输出,减轻测试人员工作,有效提高测试效率,节省人力,避免人为错误,保障风扇板质量。During the test, if it is determined that the test of any
综上,本实施例中的风扇板测试系统,可以方便地对风扇板进行批量测试,以及测试完成后的每个风扇板单独产出测试报告的功能,具有扩展性强,自动化程度高的特点,且有效节省人工,提高风扇板检测效率。整个测试过程与报告产出均做到全自动化,并且每条测试项的测试结果、测试报告和测试日志可以辅助测试人员快速定位风扇板问题,有效提高风扇板测试效率和维护效率。To sum up, the fan board testing system in this embodiment can conveniently carry out batch testing on fan boards, and has the function of independently producing test reports for each fan board after the test is completed. It has the characteristics of strong scalability and high degree of automation , and effectively save labor and improve the detection efficiency of fan boards. 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 to quickly locate fan board problems, effectively improving the efficiency of fan board testing and maintenance.
在一些实施例中,上位机101还包括事件订阅模块;In some embodiments, the
所述主机模块与所述事件订阅模块连接;The host module is connected to the event subscription module;
所述主机模块还用于,在获取到任一待测试风扇板104的测试结果的情况下,触发所述事件订阅模块向所述任一待测试风扇板104对应的事件订阅者,发送所述任一待测试风扇板104的测试结果。The host module is further configured to trigger the event subscription module to send the The test result of any
可选地,上位机101还集成有事件订阅模块。Optionally, the
其中,事件订阅模块用于在主机模块的控制下,为事件订阅者推送相应的订阅信息。Wherein, the event subscription module is used to push corresponding subscription information for event subscribers under the control of the host module.
可选地,在获取到任一待测试风扇板104的测试结果,主机模块可以触发事件订阅模块,以向预先订阅该待测试风扇板的测试结果的事件订阅者,推送该待测试风扇板的测试结果。Optionally, after obtaining the test result of any
需要说明的是,事件订阅模块还可提供取消订阅功能,以供用户随时取消订阅,并在用户提交取消订阅请求的情况下,将该用户从事件订阅者列表中删除,不再向该用户发送测试结果。It should be noted that the event subscription module can also provide an unsubscribe function for the user to unsubscribe at any time, and when the user submits an unsubscribe request, the user will be deleted from the event subscriber list and will no longer be sent to the user. Test Results.
本实施例中,采用事件通知的方式触发事件订阅模块将测试结果以串口消息的形式发送给事件订阅者,通过这种方式按次序触发多个事件订阅者,从而减少了通信线程数量,优化软件内存和计算资源占用,节省测试系统资源;并且通过事件触发,事件订阅与取消订阅的方式,可实现低延和高可靠的通信管理,大大提升运行稳定性,最终可以实现毫秒级的测试速度,有效提高测试效率。In this embodiment, the mode of event notification is used to trigger the event subscription module to send the test results to the event subscribers in the form of serial messages. In this way, multiple event subscribers are triggered in order, thereby reducing the number of communication threads and optimizing the software. Memory and computing resources are used to save test system resources; and through event triggering, event subscription and unsubscription, low-latency and high-reliability communication management can be achieved, greatly improving operational stability, and finally can achieve millisecond-level test speed. Effectively improve test efficiency.
在一些实施例中,所述上位机101还用于,采用事件触发方法,从所述串口服务器102中获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据。In some embodiments, the
可选地,上位机101在从串口服务器102中接收虚拟化寄存器采集的开关量数据和/或模拟量数据的情况下,可采用串行端口serialPort中的串口接收数据触发事件serialPort_DataReceived的触发方式,接收串口服务器102中的串口数据(即虚拟化寄存器采集的开关量数据和/或模拟量数据),以在接收串口数据的过程中,加上延时确保不定数的串口数据可以全部收到缓冲后,才去读缓冲的串口数据,通过逻辑解决串口接收事件接收到的数据有截断的问题,以确保准确完整地获取虚拟化寄存器采集的开关量数据和/或模拟量数据,实现低延迟串口数据处理,降低测试系统的内存占用。Optionally, when the
在一些实施例中,所述待测试风扇板104包括多个控制通道;In some embodiments, the
所述多个控制通道,与同一风扇105连接;The multiple control channels are connected to the
所述多个控制通道,基于所述同一风扇105进行测试。The multiple control channels are tested based on the
其中,每一待测试风扇板104包括多个控制通道,具体数量可以根据实际需求进行设置,如6个。其中,不同控制通道用于对不同风扇105进行控制。Wherein, each
在测试过程中,可将每一待测试风扇板104的多个控制通道,均连接到一个风扇105上,以通过采用多个控制通道对同一个风扇105进行控制,实现对每一待测试风扇板的多个控制通道的测试,且可有效节省风扇板测试过程中风扇的需求数量,进而有效节约测试成本。During the test, multiple control channels of each
下面对本发明提供的风扇板测试方法进行描述,下文描述的风扇板测试方法与上文描述的风扇板测试系统可相互对应参照。The fan board testing method provided by the present invention is described below, and the fan board testing method described below and the fan board testing system described above can be referred to in correspondence.
如图2所示,本实施例提供一种基于风扇板测试系统的风扇板测试方法,该方法包括:As shown in Figure 2, this embodiment provides a fan board testing method based on the fan board testing system, the method comprising:
步骤201,在接收到风扇板选择指令的情况下,对所述风扇板选择指令进行解析,获取至少一个待测试风扇板的第二标识;
其中,风扇板选择指令为用户在上位机输入的对待测试风扇板进行选择测试的指令,风扇板选择指令包括待测试风扇板的第二标识。Wherein, the fan board selection instruction is an instruction for selecting and testing the fan board to be tested input by the user in the host computer, and the fan board selection instruction includes the second identification of the fan board to be tested.
可选地,在需要进行风扇板测试时,用户在上位机输入的对待测试风扇板进行选择测试的风扇板选择指令;上位机在接收到风扇板选择指令的情况下,从风扇板选择指令中解析获取出待测试风扇板的第二标识。第二标识可以是序列号或名称等。Optionally, when a fan board test is required, the user enters a fan board selection instruction for selecting a test fan board to be tested in the host computer; The second identification of the fan board to be tested is obtained by parsing. The second identification may be a serial number or a name and the like.
步骤202,根据所述第二标识,同步向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以供所述虚拟化寄存器根据所述测试控制指令对所述每一待测试风扇板进行异步测试控制,并采集所述每一待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据;Step 202: Synchronously send a test control instruction to a virtualization register corresponding to each fan board to be tested according to the second identification, so that the virtualization register can perform a test on each fan board to be tested according to the test control instruction. Perform asynchronous test control, and collect the switching data and/or analog data generated by each fan board to be tested during the test control process;
可选地,上位机在解析获取到待测试风扇板的第二标识,可自动筛选出预先设置在数据库中的待测试风扇板的测试项;并根据第二标识确定每一待测试风扇板对应的虚拟化寄存器,以根据预设测试逻辑与测试项,向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以使得虚拟化寄存器在接收到测试控制指令的情况下,根据测试控制指令进行相应的动作,以触发相应的待测试风扇板进行测试动作,实现对相应的待测试风扇板的测试控制,并采集待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据。Optionally, the upper computer can automatically filter out the test items of the fan board to be tested which are pre-set in the database after parsing and obtaining the second identification of the fan board to be tested; and determine each fan board to be tested according to the second identification. The virtualization registers, so as to send test control instructions to the virtualization registers corresponding to each fan board to be tested according to the preset test logic and test items, so that when the virtualization registers receive the test control instructions, according to the test control Instructions to perform corresponding actions to trigger the corresponding fan boards to be tested to perform test actions, realize the test control of the corresponding fan boards to be tested, and collect the switching data and/or simulations generated by the fan boards to be tested during the test control process Quantitative data.
步骤203,获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述至少一个待测试风扇板的测试结果。Step 203: Acquire the switching data and/or analog data collected by the virtualization register, and obtain a test result of the at least one fan board to be tested according to the switching data and/or the analog data.
可选地,上位机通过预设接口协议读取寄存器设备,以获取待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据。在获取到开关量数据和/或模拟量数据后,将期望开关量数据和/或期望模拟量数据进行比较,根据比较结果,确定待测试风扇板的测试结果。Optionally, the host computer reads the register device through a preset interface protocol to obtain switching data and/or analog data generated by the fan board to be tested during the test control process. After the switching data and/or analog data are acquired, the expected switching data and/or the expected analog data are compared, and the test result of the fan board to be tested is determined according to the comparison result.
本发明提供的风扇板测试方法,上位机通过串口服务器与至少一个工装插箱连接,每一工装插箱与至少一个待测试风扇板硬线连接,以实现上位机与多个待测试风扇板之间的直连通信,且可通过串口服务器向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以对每一待测试风扇板进行测试控制,并根据虚拟化寄存器采集的开关量数据和/或模拟量数据,获取每一待测试风扇板的测试结果,以实现对多种待测试风扇板的自动化批量测试,并且在需要对风扇板进行扩展时,不依托于测试背板,只需要将待扩展风扇板与工装插箱硬线连接,即可便捷高效地实现风扇板的扩展,可扩展性强,有效解决依赖测试背板,扩展难度大的问题。In the fan board testing method provided by the present invention, the upper computer is connected to at least one tooling box through a serial port server, and each tooling box is hard-wired connected to at least one fan board to be tested, so as to realize the connection between the upper computer and a plurality of fan boards to be tested. The direct communication between each fan board can be directly connected, and the test control command can be sent 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 according to the switch data collected by the virtualization register And/or analog data, to obtain the test results of each fan board to be tested, so as to realize the automatic batch testing of various fan boards to be tested, and when the fan board needs to be expanded, it does not rely on the test backplane, only It is necessary to hard-wire the fan board to be expanded to the tooling sub-box, so that the expansion of the fan board can be realized conveniently and efficiently. The scalability is strong, and the problem of relying on the test backplane and difficult expansion is effectively solved.
图3示例了一种电子设备的实体结构示意图,如图3所示,该电子设备可以包括:处理器(processor)301、通信接口(Communications Interface)302、存储器(memory)303和通信总线304,其中,处理器301,通信接口302,存储器303通过通信总线304完成相互间的通信。处理器301可以调用存储器303中的逻辑指令,以执行风扇板测试方法,该方法包括:在接收到风扇板选择指令的情况下,对所述风扇板选择指令进行解析,获取至少一个待测试风扇板的第二标识;根据所述第二标识,同步向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以供所述虚拟化寄存器根据所述测试控制指令对所述每一待测试风扇板进行异步测试控制,并采集所述每一待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据;获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述至少一个待测试风扇板的测试结果。FIG. 3 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 3 , the electronic device may include: a processor (processor) 301, a communication interface (Communications Interface) 302, a memory (memory) 303 and a
此外,上述的存储器303中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above logic instructions in the
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的风扇板测试方法,该方法包括:在接收到风扇板选择指令的情况下,对所述风扇板选择指令进行解析,获取至少一个待测试风扇板的第二标识;根据所述第二标识,同步向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以供所述虚拟化寄存器根据所述测试控制指令对所述每一待测试风扇板进行异步测试控制,并采集所述每一待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据;获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述至少一个待测试风扇板的测试结果。On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can Executing the fan board testing method provided by the above methods, the method includes: in the case of receiving the fan board selection instruction, parsing the fan board selection instruction, and obtaining the second identification of at least one fan board to be tested; The second identification is to synchronously send a test control instruction to the virtualization register corresponding to each fan board to be tested, so that the virtualization register can perform asynchronous test control on each fan board to be tested according to the test control instruction , and collect the switching data and/or analog data generated by each fan board to be tested during the test control process; obtain the switching data and/or analog data collected by the virtualization register, according to the switch Quantitative data and/or the analog quantity data, and obtain the test result of the at least one fan board to be tested.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的风扇板测试方法,该方法包括:在接收到风扇板选择指令的情况下,对所述风扇板选择指令进行解析,获取至少一个待测试风扇板的第二标识;根据所述第二标识,同步向每一待测试风扇板对应的虚拟化寄存器发送测试控制指令,以供所述虚拟化寄存器根据所述测试控制指令对所述每一待测试风扇板进行异步测试控制,并采集所述每一待测试风扇板在测试控制过程中产生的开关量数据和/或模拟量数据;获取所述虚拟化寄存器采集的开关量数据和/或模拟量数据,根据所述开关量数据和/或所述模拟量数据,获取所述至少一个待测试风扇板的测试结果。In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the fan board testing method provided by the above methods, the method includes : In the case of receiving the fan board selection instruction, analyze the fan board selection instruction to obtain the second identification of at least one fan board to be tested; according to the second identification, corresponding to each fan board to be tested synchronously The virtualization register of the virtualization register sends a test control instruction for the virtualization register to perform asynchronous test control on each fan board to be tested according to the test control instruction, and collects the data of each fan board to be tested during the test control process. The switching data and/or analog data generated in the virtualization register; obtain the switching data and/or analog data collected by the virtualization register, and according to the switching data and/or the analog data, obtain the at least Test results for a fan board under test.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。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 them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210987161.9A CN115507050B (en) | 2022-08-17 | 2022-08-17 | Fan board testing system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210987161.9A CN115507050B (en) | 2022-08-17 | 2022-08-17 | Fan board testing system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115507050A true CN115507050A (en) | 2022-12-23 |
CN115507050B CN115507050B (en) | 2025-03-28 |
Family
ID=84501313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210987161.9A Active CN115507050B (en) | 2022-08-17 | 2022-08-17 | Fan board testing system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115507050B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5926386A (en) * | 1996-02-02 | 1999-07-20 | Hewlett-Packard Company | Configuration based cooling fan speed control |
CN103838224A (en) * | 2012-11-23 | 2014-06-04 | 鸿富锦精密工业(深圳)有限公司 | System and method for fan control plate testing |
CN107966975A (en) * | 2016-10-19 | 2018-04-27 | 中兴通讯股份有限公司 | A kind of fan control board test system and method |
CN108667706A (en) * | 2018-05-21 | 2018-10-16 | 洛阳银杏科技有限公司 | The adjustable Ethernet serial server of serial ports quantity dynamic and its data transmission method |
CN108804261A (en) * | 2017-05-05 | 2018-11-13 | 中兴通讯股份有限公司 | The test method and device of connector |
CN109119127A (en) * | 2018-08-30 | 2019-01-01 | 武汉精鸿电子技术有限公司 | A kind of semiconductor memory high/low temperature ageing test box |
CN110146827A (en) * | 2019-05-17 | 2019-08-20 | 南方电网科学研究院有限责任公司 | Power distribution terminal testing and control system |
CN112737886A (en) * | 2020-12-29 | 2021-04-30 | 交控科技股份有限公司 | Tool testing method and system |
CN112814937A (en) * | 2019-11-15 | 2021-05-18 | 神讯电脑(昆山)有限公司 | Fan aging testing device |
CN114076859A (en) * | 2020-08-18 | 2022-02-22 | 中国科学院国家空间科学中心 | Full-temperature aging test system and method for core components for aerospace |
-
2022
- 2022-08-17 CN CN202210987161.9A patent/CN115507050B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5926386A (en) * | 1996-02-02 | 1999-07-20 | Hewlett-Packard Company | Configuration based cooling fan speed control |
CN103838224A (en) * | 2012-11-23 | 2014-06-04 | 鸿富锦精密工业(深圳)有限公司 | System and method for fan control plate testing |
CN107966975A (en) * | 2016-10-19 | 2018-04-27 | 中兴通讯股份有限公司 | A kind of fan control board test system and method |
CN108804261A (en) * | 2017-05-05 | 2018-11-13 | 中兴通讯股份有限公司 | The test method and device of connector |
CN108667706A (en) * | 2018-05-21 | 2018-10-16 | 洛阳银杏科技有限公司 | The adjustable Ethernet serial server of serial ports quantity dynamic and its data transmission method |
CN109119127A (en) * | 2018-08-30 | 2019-01-01 | 武汉精鸿电子技术有限公司 | A kind of semiconductor memory high/low temperature ageing test box |
CN110146827A (en) * | 2019-05-17 | 2019-08-20 | 南方电网科学研究院有限责任公司 | Power distribution terminal testing and control system |
CN112814937A (en) * | 2019-11-15 | 2021-05-18 | 神讯电脑(昆山)有限公司 | Fan aging testing device |
CN114076859A (en) * | 2020-08-18 | 2022-02-22 | 中国科学院国家空间科学中心 | Full-temperature aging test system and method for core components for aerospace |
CN112737886A (en) * | 2020-12-29 | 2021-04-30 | 交控科技股份有限公司 | Tool testing method and system |
Non-Patent Citations (2)
Title |
---|
陈凯奇等: "无线风速检测系统设计", 电脑知识与技术, vol. 13, no. 4, 28 February 2017 (2017-02-28), pages 202 - 203 * |
马俊婷;张润滋;: "基于ATCA高性能服务器的温控散热系统设计", 网络新媒体技术, no. 05, 15 September 2016 (2016-09-15), pages 36 - 41 * |
Also Published As
Publication number | Publication date |
---|---|
CN115507050B (en) | 2025-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108399114B (en) | System performance testing method and device and storage medium | |
WO2018120721A1 (en) | Method and system for testing user interface, electronic device, and computer readable storage medium | |
CN106445811B (en) | A kind of automatization test system and method based on SecureCRT | |
WO2018184361A1 (en) | Application test method, server, terminal, and storage media | |
CN110557299A (en) | network transmission function batch test method, system, terminal and storage medium | |
CN113127356A (en) | Pressure measurement method and device, electronic equipment and storage medium | |
CN113887161A (en) | Verification method, device, equipment and medium for network-on-chip design example | |
CN112199273A (en) | Virtual machine pressure/performance testing method and system | |
CN107678949A (en) | Realize the automated testing method of embedded device different communication mode | |
CN110708214B (en) | Service data display method, device, equipment and computer readable storage medium | |
CN106713011B (en) | Method and system for obtaining test data | |
CN101488890A (en) | Method and system for network attack test | |
CN111769979A (en) | A cloud resource orchestration method, system, terminal and storage medium | |
CN115858221A (en) | Management method and device of storage equipment, storage medium and electronic equipment | |
CN115757150A (en) | Production environment testing method, device, equipment and storage medium | |
US20090216517A1 (en) | Dedicated simulator for testing a usb host solution | |
CN114116343A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN115507050A (en) | Fan board testing system and method | |
CN117331758A (en) | Verification method and device for target virtual machine mirror image, electronic equipment and storage medium | |
CN116545891A (en) | Automatic distribution network testing method based on intelligent equipment | |
CN116629173A (en) | Verification method and device of network chip, computer equipment and storage medium | |
CN116087752A (en) | Chip testing method, system, device and medium | |
CN115098387A (en) | A server BIOS automatic test system, method, device and storage medium | |
CN113918459A (en) | Self-detection method for script performance test | |
CN112003727A (en) | A multi-node server power test method, system, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |