CN109947621B - Server testing method and device - Google Patents

Server testing method and device Download PDF

Info

Publication number
CN109947621B
CN109947621B CN201910199450.0A CN201910199450A CN109947621B CN 109947621 B CN109947621 B CN 109947621B CN 201910199450 A CN201910199450 A CN 201910199450A CN 109947621 B CN109947621 B CN 109947621B
Authority
CN
China
Prior art keywords
front panel
instruction
state
external port
data
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.)
Active
Application number
CN201910199450.0A
Other languages
Chinese (zh)
Other versions
CN109947621A (en
Inventor
任凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Yep Telecommunication Technology Co Ltd
Original Assignee
Xian Yep Telecommunication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xian Yep Telecommunication Technology Co Ltd filed Critical Xian Yep Telecommunication Technology Co Ltd
Priority to CN201910199450.0A priority Critical patent/CN109947621B/en
Publication of CN109947621A publication Critical patent/CN109947621A/en
Application granted granted Critical
Publication of CN109947621B publication Critical patent/CN109947621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method and a device for testing a server, wherein the server comprises a main board and a front panel, the main board and the front panel are connected through wires, the method comprises the steps of periodically detecting a first instruction sent by the front panel to the main board, if the first instruction is detected in the current detection period, determining that the front panel is in a normal operation state and the communication state between the front panel and the main board is a normal state, and controlling the display state of a display lamp according to the first instruction. According to the technical scheme, the server does not need to be restarted, and the testing efficiency of the server is improved.

Description

Server testing method and device
Technical Field
The embodiment of the invention relates to the field of server testing, in particular to a method and a device for testing a server.
Background
The server needs to perform function test on each board card of the server after trial production, in the prior art, when a front panel with a display function and a control function is tested, a restart key of the front panel needs to be detected, and after the restart key is manually pressed, whether the server is restarted or not is observed. However, the test mode wastes unnecessary manpower, and meanwhile, when the server is restarted, the test process of other board cards is influenced, and the test efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for testing a server, which are used for improving the testing efficiency of the server testing.
The server comprises a main board and a front panel, wherein the main board is connected with the front panel through a wire;
periodically detecting a first instruction sent by a front panel to a mainboard;
if the first instruction is detected in the current detection period, determining that the front panel is in a normal operation state and the communication state between the front panel and the main board is in a normal state;
and controlling the display state of a display lamp according to the first instruction.
Among the above-mentioned technical scheme, the server includes the mainboard, the front panel, mainboard and front panel pass through the wire rod and connect, the front panel sends first instruction to the mainboard, mainboard periodic detection first instruction, if the first instruction is detected to current cycle, then confirm that front panel and mainboard are in normal connected state and the front panel is normally operated, the mainboard shows according to first instruction control display lamp, in this technical scheme, need not the manual work and press the button that restarts of front panel, and need not to restart the server, can be in order to detect out whether the connected state between server and the front panel is normal with the running state of front panel, save tester's work load, and can not influence the test of other integrated circuit boards of server in the test process, the efficiency of the test of server has been improved.
Optionally, the method further includes:
and if the first instruction is not detected in the current detection period, determining that the front panel is in an abnormal operation state and/or the communication state between the front panel and the main board is in an abnormal state.
In the above technical solution, if the main board does not detect the first instruction in the current period, it may be determined that the front panel is in an abnormal operation state and/or that the communication state between the front panel and the main board is an abnormal state, and a tester is required to perform manual operation on the front panel or the connection between the front panel and the main board.
Optionally, the display lamp is an LED (Light Emitting Diode) lamp;
the controlling the display state of the display lamp according to the first instruction comprises:
and controlling the LED lamp to be lightened according to the first instruction.
Among the above-mentioned technical scheme, the display lamp is the LED lamp, and after the mainboard received first instruction, can light according to first instruction control LED lamp, when the tester sees the LED lamp and lights, can determine that front panel and mainboard are in normal intercommunication state and the front panel is normally operated, and the LED lamp can make the tester make the judgement directly perceivedly.
Optionally, the first instruction is sent by an Input/Output (IO) device on the front panel, where the IO device includes a key or an external port.
In the above technical scheme, the front panel may have an IO device, and the IO device includes a key or an external port, and both of the two may send the first instruction to the motherboard.
Optionally, the front panel includes an external port, and the external port is connected with an external terminal for testing the external port;
the method further comprises the following steps:
periodically detecting first data; the first data is data sent to the mainboard by the external terminal through an external port of the front panel;
if the first data is detected in the current detection period, determining a control instruction for controlling the display state of the external terminal according to the first data, and determining that an external port of the front panel is in a normal state;
and sending the control instruction to an external port of the front panel to control the display state of an external terminal on the external port.
Among the above-mentioned technical scheme, the front panel includes external port, and external port is connected with external terminal, and this external terminal is used for testing external port. The external terminal can send first data to the mainboard, the mainboard detects the first data periodically, if the first data is detected in the current period, the mainboard determines that the external port of the front panel is in a normal state, and the mainboard determines a control instruction according to the first data and sends the control instruction to the external terminal so as to control the display state of the external terminal. The tester can visually judge the current working state of the external port through the display state of the external terminal.
Optionally, the method further includes:
and if the first data is not detected in the current detection period, determining that the external port of the front panel is in an abnormal state.
In the above technical solution, if the motherboard does not detect the first data in the current period, it may be determined that the external port of the front panel is in an abnormal state, and a tester needs to perform manual operation on the external port of the front panel.
Correspondingly, the embodiment of the invention also provides a device for testing the server, wherein the server comprises a main board and a front panel, and the main board is connected with the front panel through a wire;
the device comprises:
the detection unit is used for periodically detecting a first instruction sent by the front panel to the mainboard;
the processing unit is used for determining that the front panel is in a normal operation state and the communication state between the front panel and the main board is a normal state if the first instruction is detected in the current detection period; and controlling the display state of the display lamp according to the first instruction.
Optionally, the processing unit is further configured to:
and if the first instruction is not detected in the current detection period, determining that the front panel is in an abnormal operation state and/or the communication state between the front panel and the main board is an abnormal state.
Optionally, the display lamp is an LED lamp;
the processing unit is specifically configured to:
and controlling the LED lamp to be lightened according to the first instruction.
Optionally, the first instruction is sent by an IO device on the front panel, where the IO device includes a key or an external port.
Optionally, the front panel includes an external port, and the external port is connected with an external terminal for testing the external port;
the processing unit is further to:
controlling the detection unit to periodically detect first data; the first data is data sent to the mainboard by the external terminal through an external port of the front panel;
if the first data is detected in the current detection period, determining a control instruction for controlling the display state of the external terminal according to the first data, and determining that an external port of the front panel is in a normal state;
and sending the control instruction to an external port of the front panel to control the display state of an external terminal on the external port.
Optionally, the processing unit is further configured to:
and if the first data is not detected in the current detection period, determining that the external port of the front panel is in an abnormal state.
Correspondingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for testing the server according to the obtained program.
Accordingly, embodiments of the present invention also provide a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the method for testing the server.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for testing a server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 exemplarily shows a system architecture applicable to the method for providing server test according to the embodiment of the present invention, where the system architecture may be a server, and the server includes a front panel 100, a back panel 200, a main board 300, and an external terminal 400, where the front panel 100, the back panel 200, and the main board 300 are sequentially connected, the front panel 100 includes an IO device, the main board 300 includes a display lamp, the IO device may send a signal to the main board 300, and the main board 300 controls the display lamp to display after receiving the signal. The external terminal 400 is connected to the front panel 100, the external terminal 400 may sequentially transmit data to the motherboard 300 through the front panel 100 and the backplane 200, and the motherboard 300 controls the external terminal 400 to display the data after receiving the data.
Based on the above description, fig. 2 exemplarily shows a flow of a method for server test according to an embodiment of the present invention, where the flow may be performed by a device for server test, which may be located in a motherboard, and may be the motherboard. As shown in fig. 2, the process specifically includes:
step 201, a first instruction sent by a front panel to a motherboard is periodically detected.
Mainboard and front panel pass through the wire rod and connect, and the front panel sends first instruction to the mainboard, and this first instruction is detected to the mainboard periodicity, judges whether can detect first instruction in current detection cycle. Specifically, the front panel includes an IO device, and the IO device sends a first instruction to the main panel, where the IO device may include a key or an external port.
Step 202, if the first instruction is detected in the current detection period, it is determined that the front panel is in a normal operation state and a communication state between the front panel and the main board is a normal state.
If the main board detects the first instruction in the current detection period, it may be determined that the first instruction sent by the front panel may be normally transmitted to the main board, that is, it indicates that the front panel is in a normal operation state and a communication state between the front panel and the main board is a normal state.
In the embodiment of the present invention, if the main board does not detect the first instruction in the current detection cycle, it may be determined that the front panel fails to normally transmit the first instruction to the main board, that is, it indicates that the front panel is in an abnormal operating state and/or a communication state between the front panel and the main board is in an abnormal state.
And step 203, controlling the display state of the display lamp according to the first instruction.
Optionally, the display lamp can be the LED lamp, and the mainboard can light according to first instruction control LED lamp after receiving first instruction, sees when the LED lamp lights when the tester, can determine that front panel and mainboard are in normal intercommunication state and the front panel is normally operated, and the LED lamp can make the tester make the judgement directly perceivedly.
In the embodiment of the invention, the front panel can comprise an external port, the external port is connected with an external terminal, and the external terminal is used for testing whether the external port of the front panel is normal or not. The external terminal sends first data to the mainboard through the external port of the front panel, the mainboard periodically detects the first data, if the mainboard detects the first data in the current detection period, a control instruction for controlling the display state of the external terminal is determined according to the first data, and the external port of the front panel is determined to be in a normal state, further, the mainboard sends the control instruction to the external port of the front panel to control the display state of the external terminal on the external port. The tester can visually judge the current working state of the external port through the display state of the external terminal.
In addition, if the mainboard does not detect the first data in the current detection period, the external port of the front panel is determined to be in an abnormal state.
In the embodiment of the present invention, the external port of the front panel may be a USB (Universal Serial Bus) interface, the external terminal may be a USB terminal module, the USB terminal module includes a function module, a calculation module, and a display module, the function module is used for the USB terminal module to receive and transmit data with the front panel through the external port, the calculation module is used for generating data and then transmitting the data to the front panel, and the display module is used for displaying according to a control instruction of the main board.
Among the above-mentioned technical scheme, the server includes the mainboard, the front panel, mainboard and front panel pass through the wire rod and connect, the front panel sends first instruction to the mainboard, mainboard periodic detection first instruction, if the first instruction is detected to current cycle, then confirm that front panel and mainboard are in normal connected state and the front panel is normally operated, the mainboard shows according to first instruction control display lamp, in this technical scheme, need not the manual work and press the button that restarts of front panel, and need not to restart the server, can be in order to detect out whether the connected state between server and the front panel is normal with the running state of front panel, save tester's work load, and can not influence the test of other integrated circuit boards of server in the test process, the efficiency of the test of server has been improved.
Based on the same inventive concept, fig. 3 exemplarily shows a structure of an apparatus for server testing, which may perform a flow of a method for server testing according to an embodiment of the present invention.
The server comprises a main board and a front panel, wherein the main board is connected with the front panel through a wire;
the device comprises:
the detection unit 301 is configured to periodically detect a first instruction sent by the front panel to the motherboard;
a processing unit 302, configured to determine that the front panel is in a normal operating state and a communication state between the front panel and the main board is a normal state if the first instruction is detected in the current detection period; and controlling the display state of the display lamp according to the first instruction.
Optionally, the processing unit 302 is further configured to:
and if the first instruction is not detected in the current detection period, determining that the front panel is in an abnormal operation state and/or the communication state between the front panel and the main board is in an abnormal state.
Optionally, the display lamp is an LED lamp;
the processing unit 302 is specifically configured to:
and controlling the LED lamp to be lightened according to the first instruction.
Optionally, the first instruction is sent by an IO device on the front panel, where the IO device includes a key or an external port.
Optionally, the front panel includes an external port, and the external port is connected with an external terminal for testing the external port;
the processing unit 302 is further configured to:
controlling the detection unit 301 to periodically detect the first data; the first data is data sent to the mainboard by the external terminal through an external port of the front panel;
if the first data is detected in the current detection period, determining a control instruction for controlling the display state of the external terminal according to the first data, and determining that an external port of the front panel is in a normal state;
and sending the control instruction to an external port of the front panel to control the display state of an external terminal on the external port.
Optionally, the processing unit 302 is further configured to:
and if the first data is not detected in the current detection period, determining that the external port of the front panel is in an abnormal state.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for testing the server according to the obtained program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the method for testing the server.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. The server testing method is characterized in that the server comprises a main board and a front panel, wherein the main board and the front panel are connected through wires;
the method comprises the following steps:
periodically detecting a first instruction sent by a front panel to a mainboard;
if the first instruction is detected in the current detection period, determining that the front panel is in a normal operation state and the communication state between the front panel and the main board is in a normal state;
controlling the display state of a display lamp according to the first instruction;
the front panel comprises an external port, and the external port is connected with an external terminal for testing the external port;
the method further comprises the following steps:
periodically detecting first data; the first data is data sent to the mainboard by the external terminal through an external port of the front panel;
if the first data is detected in the current detection period, determining a control instruction for controlling the display state of the external terminal according to the first data, and determining that an external port of the front panel is in a normal state;
and sending the control instruction to an external port of the front panel to control the display state of an external terminal on the external port.
2. The method of claim 1, further comprising:
and if the first instruction is not detected in the current detection period, determining that the front panel is in an abnormal operation state and/or the communication state between the front panel and the main board is in an abnormal state.
3. The method of claim 1, wherein the display light is a Light Emitting Diode (LED) light;
the controlling the display state of the display lamp according to the first instruction comprises:
and controlling the LED lamp to be lightened according to the first instruction.
4. The method of claim 1, wherein the first instruction is issued by an Input Output (IO) device on the front panel, the IO device comprising a key or an external port.
5. The method of claim 1, further comprising:
and if the first data is not detected in the current detection period, determining that the external port of the front panel is in an abnormal state.
6. An apparatus for server testing, comprising:
the detection unit is used for periodically detecting a first instruction sent by the front panel to the mainboard;
the processing unit is used for determining that the front panel is in a normal operation state and the communication state between the front panel and the main board is a normal state if the first instruction is detected in the current detection period; controlling the display state of a display lamp according to the first instruction;
the front panel comprises an external port, and the external port is connected with an external terminal for testing the external port;
the detection unit is further used for periodically detecting first data; the first data is data sent to the mainboard by the external terminal through an external port of the front panel;
the processing unit is further configured to determine, according to the first data, a control instruction for controlling a display state of the external terminal if the first data is detected in the current detection period, and determine that an external port of the front panel is in a normal state; and sending the control instruction to an external port of the front panel to control the display state of an external terminal on the external port.
7. The apparatus as recited in claim 6, said processing unit to further:
and if the first instruction is not detected in the current detection period, determining that the front panel is in an abnormal operation state and/or the communication state between the front panel and the main board is in an abnormal state.
8. The apparatus of claim 6, wherein the display light is a Light Emitting Diode (LED) light;
the processing unit is specifically configured to:
and controlling the LED lamp to be lightened according to the first instruction.
9. The apparatus of claim 6, wherein the first instruction is issued by an Input Output (IO) device on the front panel, the IO device comprising a key or an external port.
CN201910199450.0A 2019-03-15 2019-03-15 Server testing method and device Active CN109947621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910199450.0A CN109947621B (en) 2019-03-15 2019-03-15 Server testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910199450.0A CN109947621B (en) 2019-03-15 2019-03-15 Server testing method and device

Publications (2)

Publication Number Publication Date
CN109947621A CN109947621A (en) 2019-06-28
CN109947621B true CN109947621B (en) 2022-09-09

Family

ID=67008912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910199450.0A Active CN109947621B (en) 2019-03-15 2019-03-15 Server testing method and device

Country Status (1)

Country Link
CN (1) CN109947621B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049679A (en) * 2019-12-02 2020-04-21 深圳市智微智能软件开发有限公司 Server warning method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005135054A (en) * 2003-10-29 2005-05-26 Hiroji Emoto Warning lamp system
CN101699410A (en) * 2009-11-11 2010-04-28 中兴通讯股份有限公司 Single plate hardware fault detection method and device
CN103412420A (en) * 2013-07-30 2013-11-27 京东方科技集团股份有限公司 Display, test system and test method of test system
CN108021119A (en) * 2016-10-31 2018-05-11 河南蓝信科技股份有限公司 A kind of EOAS device detection systems and its method
CN108093118A (en) * 2017-11-23 2018-05-29 广东欧珀移动通信有限公司 The test method of device, test device and computer readable storage medium on mainboard
CN108446197A (en) * 2018-03-13 2018-08-24 云南电网有限责任公司电力科学研究院 A kind of control protection board automatic checkout system and method
CN109342929A (en) * 2018-11-12 2019-02-15 卡斯柯信号有限公司 A kind of CVC-200T hardware intelligent test system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005135054A (en) * 2003-10-29 2005-05-26 Hiroji Emoto Warning lamp system
CN101699410A (en) * 2009-11-11 2010-04-28 中兴通讯股份有限公司 Single plate hardware fault detection method and device
CN103412420A (en) * 2013-07-30 2013-11-27 京东方科技集团股份有限公司 Display, test system and test method of test system
CN108021119A (en) * 2016-10-31 2018-05-11 河南蓝信科技股份有限公司 A kind of EOAS device detection systems and its method
CN108093118A (en) * 2017-11-23 2018-05-29 广东欧珀移动通信有限公司 The test method of device, test device and computer readable storage medium on mainboard
CN108446197A (en) * 2018-03-13 2018-08-24 云南电网有限责任公司电力科学研究院 A kind of control protection board automatic checkout system and method
CN109342929A (en) * 2018-11-12 2019-02-15 卡斯柯信号有限公司 A kind of CVC-200T hardware intelligent test system and method

Also Published As

Publication number Publication date
CN109947621A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN107741078B (en) Detection device and detection method
CN107656856B (en) CPLD-based system state display method and device
CN111752776B (en) Cyclic power-on and power-off test method and system for server
CN113742121A (en) Mechanical equipment fault diagnosis method and device
CN103970628A (en) Automatic detection system and automatic detection method thereof
CN109947621B (en) Server testing method and device
CN107643903B (en) Method and device for automatically entering BIOS configuration interface by server
CN111896884A (en) Charging detection method and device
CN112822073B (en) Test method, device, system, electronic equipment and readable storage medium
CN112654119B (en) LED drive test method, driver, system and electronic equipment
CN114168395A (en) Chip power-on control method, control device and storage medium
CN107179972A (en) For the method for calculation machine, microcontroller, test equipment and test system
CN110232881A (en) Front board measuring method
CN109597389A (en) A kind of test macro of embedded control system
CN105280966A (en) Detection diagnostic for communication loss among plurality of battery cell sensing boards
CN115686969A (en) Hard disk backboard testing method, device, equipment and medium
CN115098342A (en) System log collection method, system, terminal and storage medium
CN109557453A (en) A kind of more main control chip identifying processing method and system
CN114168482A (en) Test method of vehicle control unit
CN111007815B (en) Centralized control host supporting dual-computer hot standby
CN109189420B (en) System upgrading method, device, circuit board, equipment and storage medium
CN112680925B (en) Device for detecting failure of washing machine
CN111896824B (en) Unattended reliability testing device and system
CN117491960B (en) Radar product detection method, device, equipment and medium
CN213457239U (en) Test circuit and chip circuit test 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
GR01 Patent grant
GR01 Patent grant