CN115729756A - Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk - Google Patents
Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk Download PDFInfo
- Publication number
- CN115729756A CN115729756A CN202211357283.6A CN202211357283A CN115729756A CN 115729756 A CN115729756 A CN 115729756A CN 202211357283 A CN202211357283 A CN 202211357283A CN 115729756 A CN115729756 A CN 115729756A
- Authority
- CN
- China
- Prior art keywords
- server
- hard disk
- accompanying
- test
- real
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000012360 testing method Methods 0.000 claims abstract description 128
- 230000008859 change Effects 0.000 claims abstract description 42
- 230000008569 process Effects 0.000 claims abstract description 30
- 230000003993 interaction Effects 0.000 claims abstract description 17
- 238000001514 detection method Methods 0.000 claims description 33
- 230000002159 abnormal effect Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012544 monitoring process Methods 0.000 claims description 13
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 claims description 8
- 239000010931 gold Substances 0.000 claims description 8
- 229910052737 gold Inorganic materials 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 abstract description 6
- 238000004088 simulation Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 239000007787 solid Substances 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
技术领域technical field
本申请涉及服务器的技术领域,具体涉及一种陪测硬盘、基于陪测硬盘陪测服务器的方法及系统。The present application relates to the technical field of servers, and in particular to an accompanying testing hard disk, a method and a system for accompanying testing servers based on the accompanying testing hard disk.
背景技术Background technique
目前,在服务器进行配置硬盘时会配置市场上推出的大容量硬盘,但是由于市场上推出的大容量硬盘与常规的SFF-8639接口硬盘存在差异,会导致陪测硬盘无法使用,因此在服务器进行工厂测试时,会需要一种能够实现大容量硬盘测试功能的陪测设备,而且由于测试过程需要消耗的硬盘的数量较大,大容量硬盘的使用会导致测试费用较高,从而使得以上大容量硬盘的使用范围较窄,并不利于测试普及。At present, when the hard disk is configured on the server, the large-capacity hard disk launched on the market will be configured. However, due to the differences between the large-capacity hard disk launched on the market and the conventional SFF-8639 interface hard disk, the companion hard disk cannot be used. During the factory test, a companion test device that can realize the test function of a large-capacity hard disk will be needed, and because the number of hard disks consumed during the test process is relatively large, the use of a large-capacity hard disk will lead to higher test costs, thus making the above-mentioned large-capacity The scope of use of the hard disk is relatively narrow, which is not conducive to the popularization of testing.
现有的测试硬盘中虽然也可以与服务器连接进行相关测试,其中测试硬盘为固态硬盘包括控制单元和存储单元,但是并不能兼大容量硬盘内部的传输协议,使得并不完全满足服务器的测试,因此,亟需一种性价比较高,并且能够兼容硬盘功能的陪测设备,由此实现服务器的工装测试。Although the existing test hard disk can also be connected to the server for related tests, the test hard disk is a solid-state hard disk including a control unit and a storage unit, but it cannot be compatible with the internal transmission protocol of a large-capacity hard disk, making it not completely satisfactory for the server test. Therefore, there is an urgent need for an accompanying test device with high cost performance and compatibility with hard disk functions, so as to realize the tooling test of the server.
发明内容Contents of the invention
为了解决上述背景技术中提到的至少一个问题,本申请提供了一种基于陪测硬盘陪测服务器的方法、系统、电子设备及介质,能够进行接口转换以及进行协议模拟,从而实现利用本申请中的陪测工装完成工装的测试的过程,既降低了测试成本,又完成了服务器的测试,使得利用此硬盘进行测试的应用更加广泛。In order to solve at least one of the problems mentioned in the above-mentioned background technology, this application provides a method, system, electronic device and medium based on the accompanying test hard disk accompanying test server, which can perform interface conversion and protocol simulation, so as to realize the use of this application The companion test tool in the tool completes the test process of the tool, which not only reduces the test cost, but also completes the server test, making the use of this hard disk for testing more widely used.
本申请实施例提供的具体技术方案如下:The specific technical scheme that the embodiment of the present application provides is as follows:
第一方面,提供一种陪测硬盘,所述硬盘包括:In a first aspect, a hard disk for companion testing is provided, and the hard disk includes:
金手指接口,所述金手指接口用于与服务器连接;Gold finger interface, the gold finger interface is used to connect with the server;
M.2模块,所述M.2模块与所述金手指接口通过协议连接,用于实现所述陪测硬盘与服务器之间的数据交互;M.2 module, the M.2 module is connected with the gold finger interface through a protocol, and is used to realize the data interaction between the accompanying test hard disk and the server;
负载模块,所述负载模块与所述金手指接口通信连接,用于调整服务器的参数变化以实现对服务器的测试;A load module, the load module is communicatively connected to the golden finger interface, and is used to adjust the parameter changes of the server to realize the test of the server;
控制器模块,所述控制器模块与所述金手指接口通过协议连接,同时与所述负载模块通信连接,所述控制器模块用于控制所述负载模块调整负载变化并采集负载变化过程中服务器的参数信息。A controller module, the controller module is connected to the gold finger interface through a protocol, and communicates with the load module at the same time, and the controller module is used to control the load module to adjust the load change and collect the server data during the load change process. parameter information.
第二方面,提供一种基于陪测硬盘陪测服务器的方法,所述方法包括:In a second aspect, a method for accompanying a testing server based on the accompanying hard disk is provided, the method comprising:
将陪测硬盘接入服务器接口,并控制所述服务器接口供电;Connect the accompanying hard disk to the server interface, and control the power supply of the server interface;
通过所述陪测硬盘中的M.2模块的挂载链路与陪测硬盘进行数据交互;Perform data interaction with the accompanying hard disk through the mounting link of the M.2 module in the accompanying hard disk;
调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;Adjusting the load change in the accompanying test hard disk, monitoring the real-time parameters of the server during the load change process, and judging the real-time parameter status of the server, and outputting the detection result;
通过所述陪测硬盘检测服务器的固定参数,存储所述固定参数并按照协议发送BMC。Detect the fixed parameters of the server through the accompanying test hard disk, store the fixed parameters and send the BMC according to the protocol.
在一个具体的实施例中,在控制所述服务器接口供电之后,还包括:In a specific embodiment, after controlling the power supply of the server interface, it also includes:
检测所述陪测硬盘中是否接入M.2硬盘,若存在,则继续检测所述陪测硬盘中的其他模块是否正常;Detect whether the M.2 hard disk is inserted in the accompanying test hard disk, if there is, then continue to detect whether other modules in the accompanying test hard disk are normal;
若所述M.2硬盘接入异常或者至少一个模块异常时,则停止测试;If the M.2 hard disk access is abnormal or at least one module is abnormal, then stop the test;
若所述陪测硬盘中所有模块均正常,则开始检测所述服务器的实时参数。If all the modules in the accompanying hard disk are normal, then start to detect the real-time parameters of the server.
在一个具体的实施例中,调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;具体包括:In a specific embodiment, adjust the load change in the accompanying test hard disk, monitor the real-time parameters of the server during the load change process, judge the real-time parameter status of the server, and output the detection result; specifically include:
调整所述陪测硬盘中的负载变化,检测所述负载变化过程中的服务器的实时参数;Adjusting the load change in the accompanying test hard disk, detecting the real-time parameters of the server during the load change process;
判断所述服务器的实时参数是否超出预设范围;judging whether the real-time parameters of the server exceed a preset range;
若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载;If the real-time parameters of the server exceed the preset range, output the detection result and control the server to disconnect the load;
若所述服务器的实时参数未超过预设范围,则输出服务器的实时参数的检测结果。If the real-time parameter of the server does not exceed the preset range, output the detection result of the real-time parameter of the server.
在一个具体的实施例中,若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载,之后包括:In a specific embodiment, if the real-time parameters of the server exceed the preset range, output the detection result and control the server to disconnect the load, and then include:
每隔预设时间检测服务器的温度,并判断所述服务器的温度是否低于预设阈值;Detecting the temperature of the server every preset time, and judging whether the temperature of the server is lower than a preset threshold;
若所述服务器的温度低于所述预设阈值,则控制开启负载;If the temperature of the server is lower than the preset threshold, then control to turn on the load;
若所述服务器的温度高于等于所述预设阈值,则控制断开负载,并继续监控所述服务器的温度。If the temperature of the server is higher than or equal to the preset threshold, the load is controlled to be disconnected, and the temperature of the server is continued to be monitored.
在一个具体的实施例中,所述方法还包括:In a specific embodiment, the method also includes:
将所述服务器的实时参数数据转化为响应协议的数据格式,并发送至BMC。Convert the real-time parameter data of the server into the data format of the response protocol, and send it to the BMC.
在一个具体的实施例中,所述方法还包括:In a specific embodiment, the method also includes:
设置所述陪测硬盘的识别在位信号为高;设置所述陪测硬盘的类型信号为低。Setting the identification presence signal of the accompanying hard disk to be high; setting the type signal of the accompanying hard disk to be low.
在一个具体的实施例中,在控制所述服务器接口供电,之前还包括:In a specific embodiment, before controlling the power supply of the server interface, it also includes:
检测所述识别在位信号和所述类型信号是否正常;Detecting whether the identification presence signal and the type signal are normal;
若所述识别在位信号和所述类型信号均正常,则控制所述服务器接口供电;If the identification presence signal and the type signal are both normal, then control the power supply of the server interface;
若所述识别在位信号或者所述类型信号不正常,则停止服务器接口供电。If the identifying presence signal or the type signal is abnormal, stop the power supply of the server interface.
第二方面,一种基于陪测硬盘陪测服务器的系统,所述系统包括:In the second aspect, a system based on the companion test hard disk companion test server, the system includes:
供电模块,用于将陪测硬盘接入服务器接口,并控制所述服务器接口供电;The power supply module is used to connect the accompanying hard disk to the server interface, and control the power supply of the server interface;
连接模块,用于通过所述陪测硬盘中的M.2模块的挂载链路与服务器进行数据交互;A connection module, configured to perform data interaction with the server through the mounting link of the M.2 module in the accompanying test hard disk;
第一监控模块,用于调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;The first monitoring module is used to adjust the load change in the accompanying test hard disk, monitor the real-time parameters of the server during the load change process, and judge the real-time parameter status of the server, and output the detection result;
第二监控模块,用于通过所述陪测硬盘检测服务器的固定参数,存储所述固定参数并按照协议发送BMC。The second monitoring module is used to detect the fixed parameters of the server through the accompanying test hard disk, store the fixed parameters and send the BMC according to the protocol.
第三方面,提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the following steps when executing the computer program:
步骤A:将陪测硬盘接入服务器接口,并控制所述服务器接口供电;Step A: connect the accompanying hard disk to the server interface, and control the power supply of the server interface;
步骤B:通过所述陪测硬盘中的M.2模块的挂载链路与陪测硬盘进行数据交互;Step B: performing data interaction with the accompanying hard disk through the mounting link of the M.2 module in the accompanying hard disk;
步骤C:调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;Step C: adjusting the load change in the accompanying test hard disk, monitoring the real-time parameters of the server during the load change process, judging the real-time parameter status of the server, and outputting the detection result;
步骤D:通过所述陪测硬盘检测服务器的固定参数,存储所述固定参数并按照协议发送BMC。Step D: Detect the fixed parameters of the server through the accompanying test hard disk, store the fixed parameters and send the BMC according to the protocol.
第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
步骤A:将陪测硬盘接入服务器接口,并控制所述服务器接口供电;Step A: connect the accompanying hard disk to the server interface, and control the power supply of the server interface;
步骤B:通过所述陪测硬盘中的M.2模块的挂载链路与陪测硬盘进行数据交互;Step B: performing data interaction with the accompanying hard disk through the mounting link of the M.2 module in the accompanying hard disk;
步骤C:调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;Step C: adjusting the load change in the accompanying test hard disk, monitoring the real-time parameters of the server during the load change process, judging the real-time parameter status of the server, and outputting the detection result;
步骤D:通过所述陪测硬盘检测服务器的固定参数,存储所述固定参数并按照协议发送BMC。Step D: Detect the fixed parameters of the server through the accompanying test hard disk, store the fixed parameters and send the BMC according to the protocol.
本申请实施例具有如下有益效果:The embodiment of the present application has the following beneficial effects:
1.本申请实施例中的将陪测硬盘接入服务器接口,并控制服务器接口供电,通过陪测硬盘中的M.2模块的挂载链路与陪测硬盘进行数据交互从而实现陪测硬盘与服务器之间的交互,调整陪测硬盘中的负载进行变化,并通过陪测硬盘监控负载变化过程中的服务器的实时参数,并判断服务器的实时参数状态,输出检测结果;通过陪测硬盘检测服务器的固定参数,并通过控制器控制将固定参数数据存储起来,并按照协议发送至BMC;通过以上设置,能够进行接口转换以及进行协议模拟,从而实现利用本申请中的陪测工装完成工装的测试的过程,既降低了测试成本,又完成了服务器的测试,使得利用此硬盘进行测试的应用更加广泛。1. In the embodiment of this application, connect the accompanying hard disk to the server interface, control the power supply of the server interface, and perform data interaction with the accompanying hard disk through the mounting link of the M.2 module in the accompanying hard disk to realize the accompanying hard disk Interact with the server, adjust the load in the accompanying hard disk to change, and monitor the real-time parameters of the server during the load change process through the accompanying hard disk, judge the real-time parameter status of the server, and output the detection results; through the accompanying hard disk detection The fixed parameters of the server, and store the fixed parameter data through the control of the controller, and send it to the BMC according to the protocol; through the above settings, it is possible to perform interface conversion and protocol simulation, so as to realize the use of the accompanying test tooling in this application to complete the tooling. The test process not only reduces the test cost, but also completes the server test, which makes the application of the hard disk test more extensive.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1示出根据本申请中的陪测硬盘的结构示意图;Fig. 1 shows a schematic structural view of a hard disk to be tested according to the present application;
图2示出根据本申请中的基于陪测硬盘陪测服务器的方法示意图;Fig. 2 shows a schematic diagram of a method based on a companion test hard disk companion test server in the present application;
图3示出根据本申请中的基于陪测硬盘陪测服务器的系统示意图;Fig. 3 shows a schematic diagram of the system based on the companion test server based on the companion test hard disk in the present application;
图4示出本申请中的电子设备的示意图。Fig. 4 shows a schematic diagram of an electronic device in the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the application clearer, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only Some embodiments of this application are not all embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
如背景技术中所述,现有的测试硬盘中虽然也可以与服务器连接进行相关测试,其中测试硬盘为固态硬盘包括控制单元和存储单元,但是并不能兼大容量硬盘内部的传输协议,使得并不完全满足服务器的测试,因此,亟需一种性价比较高,并且能够兼容硬盘功能的陪测设备来进行服务器的工装测试。基于以上问题,本申请提出了一种基于陪测硬盘陪测服务器的方法、系统、电子设备及介质,能够进行接口转换以及进行协议模拟,从而实现利用本申请中的陪测工装完成工装的测试的过程,既降低了测试成本,又完成了服务器的测试,使得利用此硬盘进行测试的应用更加广泛。As described in the background technology, although the existing test hard disk can also be connected to the server for related tests, wherein the test hard disk is a solid-state hard disk including a control unit and a storage unit, but it cannot be compatible with the internal transmission protocol of the large-capacity hard disk, so that it does not It does not fully satisfy the server test, therefore, there is an urgent need for a cost-effective companion test device that is compatible with hard disk functions to perform server tooling tests. Based on the above problems, this application proposes a method, system, electronic device and medium based on the accompanying test server of the accompanying test hard disk, which can perform interface conversion and protocol simulation, so as to realize the use of the accompanying test tool in this application to complete the test of the tool The process not only reduces the test cost, but also completes the server test, making the use of this hard disk for testing more widely used.
实施例一Embodiment one
一种陪测硬盘,如图1所示,所述陪测硬盘包括:金手指接口、M.2模块、负载模块、控制器模块,其中,所述金手指接口用于与服务器连接,金手指接口用于实现硬盘的标准接口。所述M.2模块与所述金手指接口通过协议连接,用于实现所述陪测硬盘与服务器之间的数据交互;所述负载模块与所述金手指接口通信连接,用于调整服务器的参数变化以实现对服务器的测试;所述控制器模块与所述金手指接口通过协议连接,同时与所述负载模块通信连接,所述控制器模块用于控制所述负载模块调整负载变化并采集负载变化过程中服务器的参数信息。An accompanying test hard disk, as shown in Figure 1, the accompanying test hard disk includes: a golden finger interface, an M.2 module, a load module, and a controller module, wherein the golden finger interface is used to connect to a server, and the golden finger interface The interface is used to realize the standard interface of the hard disk. The M.2 module is connected to the golden finger interface through a protocol, and is used to realize the data interaction between the accompanying test hard disk and the server; the load module is communicatively connected to the golden finger interface, and is used to adjust the Parameter changes to realize the test of the server; the controller module is connected to the golden finger interface through a protocol, and communicates with the load module at the same time, and the controller module is used to control the load module to adjust the load change and collect Parameter information of the server during the load change process.
在一个具体的实施例中,M.2模块为挂在PCIe-NVNe硬盘M-Key硬盘,用于实现金手指接口的PCIe数据交互,实现操作系统下正常的的硬盘操作。同时,本实施例中的陪测硬盘通过《NVM ExpressTM Management Interface Revision 1.1》协议及《Intel Solid StateDrive Data Center P4500/P4600 Series》Intel SSD协议的模块,以使本陪测硬盘兼容服务器接口,以此实现服务器的测试。In a specific embodiment, the M.2 module is an M-Key hard disk that is hung on the PCIe-NVNe hard disk, and is used to realize PCIe data interaction of the golden finger interface and realize normal hard disk operation under the operating system. At the same time, the accompanying hard disk in this embodiment passes the "NVM ExpressTM Management Interface Revision 1.1" protocol and the module of the "Intel Solid StateDrive Data Center P4500/P4600 Series" Intel SSD protocol, so that the accompanying hard disk is compatible with the server interface, so that Implement server testing.
在一个具体的实施例中,还包括电源模块、传感器模块、负载模块、烧录接口,电源模块用于实现陪测硬盘的电源转换;传感器模块用于检测陪测硬盘的温度、电压、硬盘接入情况等信息,并将信息反馈至控制器;负载模块用于调整负载变化,并且进行不用的负载大小的模拟;烧录接口,所述烧录接口用于控制器程序的烧录。In a specific embodiment, it also includes a power supply module, a sensor module, a load module, and a burning interface. The power supply module is used to realize the power conversion of the hard disk to be tested; Enter information such as the situation, and feed back the information to the controller; the load module is used to adjust the load change, and simulate different load sizes; the programming interface is used for programming the controller program.
在一个具体的实施例中,控制器模块接收到传感器模块采集到的数据,具体的,当当检测到M.2模块未正常接入或异常时,会控制本装置停止工作,避免服务器获取到错误的反馈信息。当检测到金手指接口所供电电源电压异常时,停止模块工作,以使服务器测试错误。In a specific embodiment, the controller module receives the data collected by the sensor module, specifically, when it detects that the M. feedback information. When it is detected that the voltage of the power supply supplied by the golden finger interface is abnormal, the module is stopped to make the server test wrong.
实施例二Embodiment two
一种基于陪测硬盘陪测服务器的方法,如图2所示,所述方法包括以下步骤:A method based on accompanying testing hard disk accompanying testing server, as shown in Figure 2, said method comprises the following steps:
步骤S1:将陪测硬盘接入服务器接口,并控制所述服务器接口供电。Step S1: Connect the accompanying hard disk to the server interface, and control the power supply of the server interface.
陪测硬盘上设置有金手指接口,金手指接口用于实现与服务器的数据交互,以及实现操作系统下的正常的硬盘操作,工作人员在进行服务器工装测试之前将陪测硬盘接入服务器接口后,为配合服务器的识别逻辑对陪测硬盘进行设置,具体的,设置陪测硬盘的识别在位信号PRSNT为高,设置硬盘类型信号FI_DEF为低。然后检测以上两个信号,并根据以上两个信号判断是否开始进行供电。具体的,在控制所述服务器接口供电,之前还包括:检测所述识别在位信号和所述类型信号是否正常;若所述识别在位信号和所述类型信号均正常,则控制所述服务器接口供电;若所述识别在位信号或者所述类型信号不正常,则停止服务器接口供电。There is a golden finger interface on the accompanying test hard disk. The golden finger interface is used to realize data interaction with the server and realize normal hard disk operation under the operating system. , in order to cooperate with the identification logic of the server to set the accompanying test hard disk, specifically, set the identification presence signal PRSNT of the accompanying test hard disk to be high, and set the hard disk type signal FI_DEF to be low. Then detect the above two signals, and judge whether to start power supply according to the above two signals. Specifically, before controlling the power supply of the server interface, it also includes: detecting whether the identification presence signal and the type signal are normal; if the identification presence signal and the type signal are normal, then controlling the server Interface power supply; if the identification presence signal or the type signal is abnormal, stop the server interface power supply.
具体的,当服务器在上电阶段检测到陪测硬盘的识别在位信号和硬盘类型信号均正常时,则控制服务器硬盘接口供电。Specifically, when the server detects that the identification presence signal and the hard disk type signal of the accompanying hard disk are normal during the power-on stage, it controls the hard disk interface of the server to supply power.
步骤S2:通过所述陪测硬盘中的M.2模块的挂载链路与服务器进行数据交互。Step S2: Perform data interaction with the server through the mounting link of the M.2 module in the accompanying hard disk.
在控制所述服务器接口供电之后,还包括:检测所述陪测硬盘中是否接入M.2硬盘,若存在,则继续检测所述陪测硬盘中的其他模块是否正常;若所述M.2硬盘接入异常或者至少一个模块异常时,则停止测试;若所述陪测硬盘中所有模块均正常,则开始检测所述服务器的实时参数。After controlling the power supply of the server interface, it also includes: detecting whether the M.2 hard disk is connected to the accompanying hard disk, and if it exists, then continue to detect whether other modules in the accompanying hard disk are normal; if the M. 2. When the hard disk access is abnormal or at least one module is abnormal, then stop the test; if all the modules in the accompanying hard disk are normal, then start to detect the real-time parameters of the server.
具体的,供电后,陪测硬盘中的控制器首先会检测M.2模块是否接入M.2硬盘,若M.2硬盘不存在,则停止进行测试,并通过控制器控制在位信号拉低,通知服务器丢失硬盘信息。若存在硬盘,则继续检测传感器模块、负载模块等功能是否正常,若其中任意一个模块出现异常,则通过控制器控制在位信号拉低,并通知服务器丢失硬盘信息。若所有的模块均正常,则控制器控制负载模块进行工作。Specifically, after the power is supplied, the controller in the accompanying test hard disk will first check whether the M.2 module is connected to the M.2 hard disk. Low, the server is notified that the hard disk information is lost. If there is a hard disk, continue to detect whether the functions of the sensor module and the load module are normal. If any of the modules is abnormal, the controller controls the in-position signal to be pulled low, and notifies the server that the hard disk information is lost. If all the modules are normal, the controller controls the load modules to work.
步骤S3:调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果。Step S3: Adjust the load change in the accompanying hard disk, monitor the real-time parameters of the server during the load change process, judge the real-time parameter status of the server, and output the detection result.
具体包括:调整所述陪测硬盘中的负载变化,检测所述负载变化过程中的服务器的实时参数;判断所述服务器的实时参数是否超出预设范围;若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载;若所述服务器的实时参数未超过预设范围,则输出服务器的实时参数的检测结果。具体的,采集服务器的实时参数为功率参数为280W,设置预设范围为功率参数小于400W,由于实时功率参数小于预设范围400W,此时服务器的实时参数未超出预设范围,不进行调节;若采集的服务器的实时参数为450W,此时服务器的实时参数超出预设范围,则此时控制服务器断开负载。It specifically includes: adjusting the load change in the accompanying test hard disk, detecting the real-time parameters of the server during the load change process; judging whether the real-time parameters of the server exceed the preset range; if the real-time parameters of the server exceed the preset range, then output the detection result and control the server to disconnect the load; if the real-time parameter of the server does not exceed the preset range, then output the detection result of the real-time parameter of the server. Specifically, the real-time parameter of the acquisition server is that the power parameter is 280W, and the preset range is set so that the power parameter is less than 400W. Since the real-time power parameter is less than the preset range of 400W, the real-time parameter of the server does not exceed the preset range at this time, and no adjustment is performed; If the collected real-time parameter of the server is 450W, and the real-time parameter of the server exceeds the preset range at this time, the server is controlled to disconnect the load at this time.
在一个具体的实施例中,若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载,之后包括:每隔预设时间检测服务器的温度,并判断所述服务器的温度是否低于预设阈值;若所述服务器的温度低于所述预设阈值,则控制开启负载;若所述服务器的温度高于等于所述预设阈值,则控制断开负载,并继续监控所述服务器的温度。In a specific embodiment, if the real-time parameters of the server exceed the preset range, output the detection result and control the server to disconnect the load, and then include: detecting the temperature of the server every preset time, and judging the temperature of the server Whether the temperature is lower than the preset threshold; if the temperature of the server is lower than the preset threshold, then control to turn on the load; if the temperature of the server is higher than or equal to the preset threshold, then control to disconnect the load, and continue Monitor the temperature of the server.
通过控制器控制负载模块进行负载的调整,负载开始提升整个服务器的消耗功率。同时传感器模块会实时监控因负载模块接入后,所产生的热量,并反馈给控制器,超出设定安全范围后,控制器断开负载模块,待温度恢复正常后再开启,实现动态调整装置负载。同时,服务器还会通过陪测硬盘检测负载变化期间的电压等信息,当负载变化时,若电压突变异常,则控制器会控制装置硬盘掉盘。在测试表征上就会使服务器丢失硬盘,以供测试反馈作用。The controller controls the load module to adjust the load, and the load starts to increase the power consumption of the entire server. At the same time, the sensor module will monitor the heat generated after the load module is connected in real time, and feed it back to the controller. After exceeding the set safety range, the controller will disconnect the load module and turn it on after the temperature returns to normal to realize the dynamic adjustment device. load. At the same time, the server will also detect the voltage and other information during the load change through the accompanying hard disk. When the load changes, if the voltage mutation is abnormal, the controller will control the hard disk of the device to drop the disk. In terms of test representation, the server will lose its hard disk for test feedback.
步骤S4:通过所述陪测硬盘检测服务器的固定参数,存储所述固定参数并按照协议发送BMC。Step S4: Detect the fixed parameters of the server through the accompanying test hard disk, store the fixed parameters and send the BMC according to the protocol.
在一个具体的实施例中,还包括将所述服务器的实时参数数据转化为响应协议的数据格式,并发送至BMC。In a specific embodiment, it also includes converting the real-time parameter data of the server into the data format of the response protocol, and sending it to the BMC.
具体的,服务器还通过陪测硬盘检测服务器的固定参数,例如硬盘的存储空间的大小、所需的接口协议等信息。服务器的BMC会对陪测硬盘执行命令访问,此时装置接管BMC的数据链路,当控制器检测到BMC下发命令时,若是获取到硬盘的实时参数,例如功率、温度等,控制器会将当前该类信息整理为响应协议的数据格式,然后反馈给BMC,实现BMC的交互。当检测到的服务器的参数为普通固定参数时,控制器会直接将存储信息,按照协议反馈至BMC。Specifically, the server also detects fixed parameters of the server through the accompanying hard disk, such as the size of the storage space of the hard disk, required interface protocols and other information. The BMC of the server will execute commands to access the accompanying hard disk. At this time, the device takes over the data link of the BMC. Organize the current type of information into the data format of the response protocol, and then feed it back to the BMC to realize the interaction of the BMC. When the detected parameters of the server are common fixed parameters, the controller will directly feed back the stored information to the BMC according to the protocol.
在一个具体的实施例中,本实施例在上述描述中关于《NVM ExpressTMManagement Interface Revision 1.1》协议及《Intel Solid State Drive Data CenterP4500/P4600 Series》的使用,本实施例会兼容协议中0xD4、0xA6协议格式,其中0xD4是SSD(Solid State Disk,固态硬盘)基本信息寄存器单元,其包含SSD的在位状态、温度信息、厂商、出厂编码等信息。0xA6是SSD的FRU信息寄存器单元,其包含SSD的FRU信息及其一些功能使能信息。In a specific embodiment, this embodiment is about the use of the "NVM ExpressTM Management Interface Revision 1.1" protocol and "Intel Solid State Drive Data Center P4500/P4600 Series" in the above description, and this embodiment will be compatible with the 0xD4 and 0xA6 protocol formats in the protocol , wherein 0xD4 is an SSD (Solid State Disk, solid state drive) basic information register unit, which includes information such as the in-position status, temperature information, manufacturer, and factory code of the SSD. 0xA6 is the FRU information register unit of the SSD, which contains the FRU information of the SSD and some function enabling information.
通过本实施例中的方法,能够进行接口转换以及进行协议模拟,从而实现利用本申请中的陪测工装完成工装的测试的过程,既降低了测试成本,又完成了服务器的测试,使得利用此硬盘进行测试的应用更加广泛。Through the method in this embodiment, interface conversion and protocol simulation can be performed, so as to realize the process of using the accompanying test tooling in this application to complete the tooling test, which not only reduces the test cost, but also completes the server test. The application of hard disk testing is more extensive.
实施例二Embodiment two
对应上述实施例,一种基于陪测硬盘陪测服务器的系统,如图3所示,所述系统包括:Corresponding to the above-mentioned embodiments, a system based on the companion test hard disk companion test server, as shown in Figure 3, the system includes:
供电模块,用于将陪测硬盘接入服务器接口,并控制所述服务器接口供电;The power supply module is used to connect the accompanying hard disk to the server interface, and control the power supply of the server interface;
连接模块,用于通过所述陪测硬盘中的M.2模块的挂载链路与服务器进行数据交互;A connection module, configured to perform data interaction with the server through the mounting link of the M.2 module in the accompanying test hard disk;
第一监控模块,用于调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;The first monitoring module is used to adjust the load change in the accompanying test hard disk, monitor the real-time parameters of the server during the load change process, and judge the real-time parameter status of the server, and output the detection result;
第二监控模块,用于通过所述陪测硬盘检测服务器的固定参数,存储所述固定参数并按照协议发送BMC。The second monitoring module is used to detect the fixed parameters of the server through the accompanying test hard disk, store the fixed parameters and send the BMC according to the protocol.
在一个具体的实施例中,供电模块在控制所述服务器接口供电之后,还包括:检测所述陪测硬盘中是否接入M.2硬盘,若存在,则继续检测所述陪测硬盘中的其他模块是否正常;若所述M.2硬盘接入异常或者至少一个模块异常时,则停止测试;若所述陪测硬盘中所有模块均正常,则开始检测所述服务器的实时参数。In a specific embodiment, after the power supply module controls the power supply of the server interface, it also includes: detecting whether an M.2 hard disk is connected to the accompanying hard disk, and if so, continuing to detect Whether other modules are normal; If the M.2 hard disk access is abnormal or at least one module is abnormal, then stop the test; if all modules in the accompanying hard disk are normal, then start to detect the real-time parameters of the server.
在一个具体的实施例中,第一监控模块具体包括调整所述陪测硬盘中的负载变化,检测所述负载变化过程中的服务器的实时参数;判断所述服务器的实时参数是否超出预设范围;若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载;若所述服务器的实时参数未超过预设范围,则输出服务器的实时参数的检测结果。In a specific embodiment, the first monitoring module specifically includes adjusting the load change in the accompanying hard disk, detecting the real-time parameters of the server during the load change process; judging whether the real-time parameters of the server exceed the preset range ; If the real-time parameter of the server exceeds the preset range, output the detection result and control the server to disconnect the load; if the real-time parameter of the server does not exceed the preset range, then output the detection result of the real-time parameter of the server.
在一个具体的实施例中,第一监控模块若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载,之后包括:每隔预设时间检测服务器的温度,并判断所述服务器的温度是否低于预设阈值;若所述服务器的温度低于所述预设阈值,则控制开启负载;若所述服务器的温度高于等于所述预设阈值,则控制断开负载,并继续监控所述服务器的温度。In a specific embodiment, if the real-time parameters of the server exceed the preset range, the first monitoring module outputs the detection result and controls the server to disconnect the load, and then includes: detecting the temperature of the server every preset time, and judging Whether the temperature of the server is lower than a preset threshold; if the temperature of the server is lower than the preset threshold, the control turns on the load; if the temperature of the server is higher than or equal to the preset threshold, the control is turned off load, and continue to monitor the server temperature.
在一个具体的实施例中,还包括将所述服务器的实时参数数据转化为响应协议的数据格式,并发送至BMC。In a specific embodiment, it also includes converting the real-time parameter data of the server into the data format of the response protocol, and sending it to the BMC.
在一个具体的实施例中,还包括设置所述陪测硬盘的识别在位信号为高;设置所述陪测硬盘的类型信号为低。In a specific embodiment, it also includes setting the identifying presence signal of the accompanying hard disk to be high; setting the type signal of the accompanying hard disk to be low.
在一个具体的实施例中,在控制所述服务器接口供电,之前还包括:检测所述识别在位信号和所述类型信号是否正常;若所述识别在位信号和所述类型信号均正常,则控制所述服务器接口供电;若所述识别在位信号或者所述类型信号不正常,则停止服务器接口供电。In a specific embodiment, before controlling the power supply of the server interface, it also includes: detecting whether the identification presence signal and the type signal are normal; if the identification presence signal and the type signal are normal, Then control the power supply of the server interface; if the identification signal or the type signal is abnormal, stop the power supply of the server interface.
实施例三Embodiment Three
提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:An electronic device is provided, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the following steps when executing the computer program:
步骤101:将陪测硬盘接入服务器接口,并控制所述服务器接口供电。Step 101: Connect the accompanying hard disk to the server interface, and control the power supply of the server interface.
步骤102:通过所述陪测硬盘中的M.2模块的挂载链路与陪测硬盘进行数据交互。Step 102: Perform data interaction with the accompanying hard disk through the mounting link of the M.2 module in the accompanying hard disk.
步骤103:调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;Step 103: Adjusting the load change in the accompanying hard disk, monitoring the real-time parameters of the server during the load change process, judging the real-time parameter status of the server, and outputting the detection result;
步骤104:通过所述陪测硬盘检测服务器的固定参数,存储所述服务器的固定参数并按照协议发送BMC。Step 104: Detect the fixed parameters of the server through the accompanying hard disk, store the fixed parameters of the server, and send the BMC according to the protocol.
在一个具体的实施例中,步骤101还包括在控制所述服务器接口供电之后,还包括:检测所述陪测硬盘中是否接入M.2硬盘,若存在,则继续检测所述陪测硬盘中的其他模块是否正常;若所述M.2硬盘接入异常或者至少一个模块异常时,则停止测试;若所述陪测硬盘中所有模块均正常,则开始检测所述服务器的实时参数。In a specific embodiment, step 101 further includes: after controlling the power supply of the server interface, it also includes: detecting whether an M.2 hard disk is connected to the accompanying hard disk, and if so, continuing to detect the accompanying hard disk Whether the other modules in the test are normal; if the M.2 hard disk access is abnormal or at least one module is abnormal, then stop the test; if all modules in the accompanying hard disk are normal, then start to detect the real-time parameters of the server.
在一个具体的实施例中,步骤103包括中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果,具体包括:调整所述陪测硬盘中的负载变化,检测所述负载变化过程中的服务器的实时参数;判断所述服务器的实时参数是否超出预设范围;若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载;若所述服务器的实时参数未超过预设范围,则输出服务器的实时参数的检测结果。In a specific embodiment, step 103 includes the real-time parameters of the server, and judging the real-time parameter status of the server, and outputting the detection result, which specifically includes: adjusting the load change in the accompanying hard disk, detecting the load The real-time parameters of the server in the changing process; judging whether the real-time parameters of the server exceed the preset range; if the real-time parameters of the server exceed the preset range, then output the detection result and control the server to disconnect the load; if the server’s If the real-time parameter does not exceed the preset range, the detection result of the real-time parameter of the server is output.
在一个具体的实施例中,若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载,之后包括:每隔预设时间检测服务器的温度,并判断所述服务器的温度是否低于预设阈值;若所述服务器的温度低于所述预设阈值,则控制开启负载;若所述服务器的温度高于等于所述预设阈值,则控制断开负载,并继续监控所述服务器的温度。In a specific embodiment, if the real-time parameters of the server exceed the preset range, output the detection result and control the server to disconnect the load, and then include: detecting the temperature of the server every preset time, and judging the temperature of the server Whether the temperature is lower than the preset threshold; if the temperature of the server is lower than the preset threshold, then control to turn on the load; if the temperature of the server is higher than or equal to the preset threshold, then control to disconnect the load, and continue Monitor the temperature of the server.
在一个具体的实施例中,还包括将所述服务器的实时参数数据转化为响应协议的数据格式,并发送至BMC。In a specific embodiment, it also includes converting the real-time parameter data of the server into the data format of the response protocol, and sending it to the BMC.
在一个具体的实施例中,还包括设置所述陪测硬盘的识别在位信号为高;设置所述陪测硬盘的类型信号为低。In a specific embodiment, it also includes setting the identifying presence signal of the accompanying hard disk to be high; setting the type signal of the accompanying hard disk to be low.
在一个具体的实施例中,在控制所述服务器接口供电,之前还包括:检测所述识别在位信号和所述类型信号是否正常;若所述识别在位信号和所述类型信号均正常,则控制所述服务器接口供电;若所述识别在位信号或者所述类型信号不正常,则停止服务器接口供电。In a specific embodiment, before controlling the power supply of the server interface, it also includes: detecting whether the identification presence signal and the type signal are normal; if the identification presence signal and the type signal are normal, Then control the power supply of the server interface; if the identification signal or the type signal is abnormal, stop the power supply of the server interface.
在一个实施例中,提供了一种电子设备,该电子设备可以是服务器,其内部结构图可以如图4所示。该电子设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的数据库用于存储固定参数数据。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种基于陪测硬盘陪测服务器的方法。In one embodiment, an electronic device is provided. The electronic device may be a server, and its internal structure may be as shown in FIG. 4 . The electronic device includes a processor, memory, network interface and database connected by a system bus. Wherein, the processor of the electronic device is used to provide calculation and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the electronic device is used to store fixed parameter data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for testing the server based on the testing hard disk is realized.
本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 4 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation on the electronic equipment to which the solution of this application is applied. The specific electronic equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
实施例四Embodiment four
在一个本实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
步骤201:将陪测硬盘接入服务器接口,并控制所述服务器接口供电。Step 201: Connect the accompanying hard disk to the server interface, and control the power supply of the server interface.
步骤202:通过所述陪测硬盘中的M.2模块的挂载链路与陪测硬盘进行数据交互。Step 202: Perform data interaction with the accompanying hard disk through the mounting link of the M.2 module in the accompanying hard disk.
步骤203:调整所述陪测硬盘中的负载变化,监控所述负载变化过程中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果;Step 203: Adjust the load change in the companion hard disk, monitor the real-time parameters of the server during the load change process, judge the real-time parameter status of the server, and output the detection result;
步骤204:通过所述陪测硬盘检测服务器的固定参数,存储所述服务器的固定参数并按照协议发送BMC。Step 204: Detect the fixed parameters of the server through the accompanying hard disk, store the fixed parameters of the server and send the BMC according to the protocol.
在一个具体的实施例中,步骤201还包括在控制所述服务器接口供电之后,还包括:检测所述陪测硬盘中是否接入M.2硬盘,若存在,则继续检测所述陪测硬盘中的其他模块是否正常;若所述M.2硬盘接入异常或者至少一个模块异常时,则停止测试;若所述陪测硬盘中所有模块均正常,则开始检测所述服务器的实时参数。In a specific embodiment, step 201 further includes: after controlling the power supply of the server interface, it also includes: detecting whether an M.2 hard disk is connected to the accompanying hard disk, and if so, continuing to detect the accompanying hard disk Whether the other modules in the test are normal; if the M.2 hard disk access is abnormal or at least one module is abnormal, then stop the test; if all modules in the accompanying hard disk are normal, then start to detect the real-time parameters of the server.
在一个具体的实施例中,步骤203包括中的服务器的实时参数,并判断所述服务器的实时参数状态,输出检测结果,具体包括:调整所述陪测硬盘中的负载变化,检测所述负载变化过程中的服务器的实时参数;判断所述服务器的实时参数是否超出预设范围;若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载;若所述服务器的实时参数未超过预设范围,则输出服务器的实时参数的检测结果。In a specific embodiment, step 203 includes the real-time parameters of the server, and judges the real-time parameter status of the server, and outputs the detection result, which specifically includes: adjusting the load change in the accompanying hard disk, and detecting the load The real-time parameters of the server in the changing process; judging whether the real-time parameters of the server exceed the preset range; if the real-time parameters of the server exceed the preset range, then output the detection result and control the server to disconnect the load; if the server’s If the real-time parameter does not exceed the preset range, the detection result of the real-time parameter of the server is output.
在一个具体的实施例中,若所述服务器的实时参数超出预设范围,则输出检测结果并控制服务器断开负载,之后包括:每隔预设时间检测服务器的温度,并判断所述服务器的温度是否低于预设阈值;若所述服务器的温度低于所述预设阈值,则控制开启负载;若所述服务器的温度高于等于所述预设阈值,则控制断开负载,并继续监控所述服务器的温度。In a specific embodiment, if the real-time parameters of the server exceed the preset range, output the detection result and control the server to disconnect the load, and then include: detecting the temperature of the server every preset time, and judging the temperature of the server Whether the temperature is lower than the preset threshold; if the temperature of the server is lower than the preset threshold, then control to turn on the load; if the temperature of the server is higher than or equal to the preset threshold, then control to disconnect the load, and continue Monitor the temperature of the server.
在一个具体的实施例中,还包括将所述服务器的实时参数数据转化为响应协议的数据格式,并发送至BMC。In a specific embodiment, it also includes converting the real-time parameter data of the server into the data format of the response protocol, and sending it to the BMC.
在一个具体的实施例中,还包括设置所述陪测硬盘的识别在位信号为高;设置所述陪测硬盘的类型信号为低。In a specific embodiment, it also includes setting the identifying presence signal of the accompanying hard disk to be high; setting the type signal of the accompanying hard disk to be low.
在一个具体的实施例中,在控制所述服务器接口供电,之前还包括:检测所述识别在位信号和所述类型信号是否正常;若所述识别在位信号和所述类型信号均正常,则控制所述服务器接口供电;若所述识别在位信号或者所述类型信号不正常,则停止服务器接口供电。In a specific embodiment, before controlling the power supply of the server interface, it also includes: detecting whether the identification presence signal and the type signal are normal; if the identification presence signal and the type signal are normal, Then control the power supply of the server interface; if the identification signal or the type signal is abnormal, stop the power supply of the server interface.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
尽管已描述了本申请实施例中的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例中范围的所有变更和修改。Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once the basic inventive concept is understood. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211357283.6A CN115729756A (en) | 2022-11-01 | 2022-11-01 | Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211357283.6A CN115729756A (en) | 2022-11-01 | 2022-11-01 | Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115729756A true CN115729756A (en) | 2023-03-03 |
Family
ID=85294295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211357283.6A Pending CN115729756A (en) | 2022-11-01 | 2022-11-01 | Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115729756A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116701150A (en) * | 2023-06-19 | 2023-09-05 | 深圳市银闪科技有限公司 | Storage data safety supervision system and method based on Internet of things |
-
2022
- 2022-11-01 CN CN202211357283.6A patent/CN115729756A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116701150A (en) * | 2023-06-19 | 2023-09-05 | 深圳市银闪科技有限公司 | Storage data safety supervision system and method based on Internet of things |
CN116701150B (en) * | 2023-06-19 | 2024-01-16 | 深圳市银闪科技有限公司 | Storage data safety supervision system and method based on Internet of things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111752776B (en) | Cyclic power-on and power-off test method and system for server | |
US7908505B2 (en) | Apparatus, system, and method for event, time, and failure state recording mechanism in a power supply | |
CN111104275A (en) | Automatic testing method and device for flash SSD hard disk power supply | |
CN103377115A (en) | System event log management system and system event log management method | |
CN114421581B (en) | A control circuit, method, device and storage system for backup battery unit | |
CN115827358A (en) | Automatic test system, method and device for PFR function and storage medium | |
CN102915209B (en) | Storage control chip, storage equipment and system data writing method | |
CN115729756A (en) | Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk | |
CN116521478A (en) | Board state monitoring method, system, electronic equipment and medium | |
CN109003646A (en) | Data processing method and single chip microcomputer | |
CN118447912B (en) | Analysis method and system for state data of memory chip | |
CN110781043B (en) | Quality detection method and device for storage product, storage medium and equipment | |
CN108399116A (en) | A kind of server power-up state monitoring system and method | |
CN116107788B (en) | I2C bus fault processing method and device | |
CN115309250B (en) | A method and system for improving power supply oring reliability | |
CN113077061B (en) | Equipment predictive maintenance system based on production data mining | |
CN212782727U (en) | Storage device and device power-down test system thereof | |
CN114884021A (en) | Power supply control method of power supply circuit and related components | |
US7313732B2 (en) | Memory arrangement in a computer system | |
CN114356617B (en) | Error injection testing method, device, system and computing equipment | |
CN110808876A (en) | Telephone debugging system and equipment | |
CN113934579B (en) | Hardware detection method and equipment for short-distance single-signal transmission network | |
WO2025086919A1 (en) | Fault self-diagnosis method and apparatus for electric motor, and air conditioner | |
WO2024179408A1 (en) | Spi communication fault diagnosis method, spi communication device, and storage medium | |
CN113466566B (en) | A trigger signal collection method and device |
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 |