CN116881070A - Test fixture, method, device and medium for intrusion switch interface of server - Google Patents

Test fixture, method, device and medium for intrusion switch interface of server Download PDF

Info

Publication number
CN116881070A
CN116881070A CN202310943227.9A CN202310943227A CN116881070A CN 116881070 A CN116881070 A CN 116881070A CN 202310943227 A CN202310943227 A CN 202310943227A CN 116881070 A CN116881070 A CN 116881070A
Authority
CN
China
Prior art keywords
intrusion switch
intrusion
electronic
switch
server
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
Application number
CN202310943227.9A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310943227.9A priority Critical patent/CN116881070A/en
Publication of CN116881070A publication Critical patent/CN116881070A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a test fixture, a method, a device and a medium for an intrusion switch interface of a server, which are applied to the technical field of servers. In the test fixture, the controller is used for controlling the electronic intrusion switch to enter an open state or a closed state, and the intrusion switch interface is connected with the electronic intrusion switch to receive corresponding signals. The controller is also connected with the server and is used for acquiring signals received by the intrusion switch interface after the electronic intrusion switch is controlled to be in an open state or a closed state, and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface. The scheme can complete the functional test of the intrusion switch interface without human participation, and compared with the traditional scheme, the probability of misoperation can be reduced, so that the stability, accuracy and test efficiency of the board card test are improved. In addition, the controller acquires data to obtain a test result, so that the defects caused by manual observation are avoided, and the test effect is more ideal.

Description

Test fixture, method, device and medium for intrusion switch interface of server
Technical Field
The present invention relates to the field of server technologies, and in particular, to a test fixture, a method, an apparatus, and a medium for an intrusion switch interface of a server.
Background
An intrusion switch is a safety measure of most servers, and is connected to an intrusion switch interface of a motherboard by providing a switch signal. A closing signal is provided to an internal baseboard management controller (Baseboard Management Controller, BMC) by depression of the enclosure cover to monitor whether the server enclosure is uncapped, the intrusion switch being normally closed to indicate that the enclosure is closed, and the intrusion switch being normally open to indicate that the enclosure is uncapped or intruded. The detection of the motherboard intrusion switch interface is an important functional test item in testing. At present, the test for the intrusion switch interface is to connect an entity physical intrusion switch on the intrusion switch interface of the main board, the server prompts an operator to press or release the physical intrusion switch, and then the on-off state of the switch is obtained through the internal BMC and is displayed through the indicator lamp, so that whether the intrusion switch interface functions normally is verified.
However, the traditional test mode needs to manually intervene to toggle the intrusion switch, and has the probability of false triggering or misoperation, so that the board card is easily misjudged to be bad, and the board card needs to be restarted for testing and repeated testing steps, and therefore, the traditional test method has lower test efficiency on the intrusion switch interface. In addition, the state of the intrusion switch is displayed through the indicator lamp, so that whether the intrusion switch interface can work normally or not can be simply observed, and the test effect is not ideal.
Therefore, how to improve the test efficiency and test effect of the intrusion switch interface of the server is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a test fixture, a test method, a test device and a test medium for an intrusion switch interface of a server, so as to improve the test efficiency and the test effect of the intrusion switch interface of the server.
In order to solve the above technical problems, the present invention provides a test fixture for an intrusion switch interface of a server, including: a controller, an electronic intrusion switch;
the controller is connected with the control end of the electronic intrusion switch and is used for controlling the electronic intrusion switch to enter an open state or a closed state;
the output end of the electronic intrusion switch is connected with an intrusion switch interface of the server, and the intrusion switch interface receives corresponding signals after the electronic intrusion switch enters the open state or the closed state;
the controller is further connected with the server, and is used for acquiring signals received by the intrusion switch interface after the electronic intrusion switch is controlled to enter the open state or the closed state, and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface.
In one aspect, the test results characterize that the intrusion switch interface is functioning properly includes at least one of:
the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch;
the time difference between the signal receiving time of the intrusion switch interface, which corresponds to the signal matched with the state of the electronic intrusion switch, and the state executing time of the electronic intrusion switch is smaller than a time threshold.
On the other hand, the controller is specifically connected with a baseboard management controller of the server;
after the electronic intrusion switch is controlled to enter the open state or the closed state, the controller acquires log data of the server through the baseboard management controller; the log data comprises signals received by the intrusion switch interface and the signal receiving time;
the controller is also used for recording the state execution time of the electronic intrusion switch;
correspondingly, the controller obtains the test result according to the state of the electronic intrusion switch and the signal received by the intrusion switch interface, and the test result comprises:
judging whether the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch according to the corresponding relation between the state of the electronic intrusion switch and the signal received by the intrusion switch interface within the time threshold from the state execution time of the electronic intrusion switch;
if the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch within the time threshold from the state execution time, the test result represents that the intrusion switch interface has normal functions;
and if the intrusion switch interface does not receive a signal matched with the state of the electronic intrusion switch within the time threshold from the state execution time, the test result represents that the intrusion switch interface is abnormal in function.
On the other hand, the electronic intrusion switch is specifically a relay switch;
the coil of the relay switch is used as a control end of the electronic intrusion switch to be connected with the controller so that the controller can control the electrifying state of the coil of the relay switch; the first end of the static contact of the relay switch is connected with the signal generating unit, and the second end of the static contact of the relay switch is used as the output end of the electronic intrusion switch to be connected with the intrusion switch interface.
On the other hand, the controller is connected with the baseboard management controller of the server through a universal serial bus interface;
the baseboard management controller sends the log data of the server to the controller through the universal serial bus interface.
On the other hand, an indication unit is arranged on the server, and the indication unit comprises a buzzer and/or an indication lamp;
after the intrusion switch interface receives a signal corresponding to the electronic intrusion switch entering the closed state, the indication unit sends out switch closing information, and after the intrusion switch interface receives a signal corresponding to the electronic intrusion switch entering the open state, the indication unit sends out switch opening information.
In order to solve the technical problems, the invention also provides a test method of the intrusion switch interface of the server, which is applied to a test fixture comprising a controller and an electronic intrusion switch, wherein the controller is respectively connected with a control end of the electronic intrusion switch and the server, and an output end of the electronic intrusion switch is connected with the intrusion switch interface of the server; the method comprises the following steps:
controlling the electronic intrusion switch to act; wherein the action of the electronic intrusion switch comprises entering an open state and entering a closed state;
acquiring signals received by the intrusion switch interface from the server; after the electronic intrusion switch enters the open state or the closed state, the intrusion switch interface receives a corresponding signal;
and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface.
In order to solve the technical problems, the invention also provides a testing device of an intrusion switch interface of a server, which is applied to a testing jig comprising a controller and an electronic intrusion switch, wherein the controller is respectively connected with a control end of the electronic intrusion switch and the server, and an output end of the electronic intrusion switch is connected with the intrusion switch interface of the server; the device comprises:
the control module is used for controlling the electronic intrusion switch to act; wherein the action of the electronic intrusion switch comprises entering an open state and entering a closed state;
the acquisition module is used for acquiring the signals received by the intrusion switch interface from the server; after the electronic intrusion switch enters the open state or the closed state, the intrusion switch interface receives a corresponding signal;
and the determining module is used for determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface.
In order to solve the technical problem, the invention also provides a device for testing the intrusion switch interface of the server, which comprises: a memory for storing a computer program;
and the processor is used for realizing the step of the method for testing the intrusion switch interface of the server when executing the computer program.
In order to solve the technical problem, the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the method for testing the intrusion switch interface of the server when being executed by a processor.
The invention provides a test fixture for an intrusion switch interface of a server, which comprises a controller and an electronic intrusion switch. The controller is connected with the control end of the electronic intrusion switch and is used for controlling the electronic intrusion switch to enter an open state or a closed state. The output end of the electronic intrusion switch is connected with an intrusion switch interface of the server, the intrusion switch interface receives a signal corresponding to the opening of the switch after the electronic intrusion switch enters an opening state, and the intrusion switch interface receives a signal corresponding to the closing of the switch after the electronic intrusion switch enters a closing state. The controller is also connected with the server and is used for acquiring signals received by the intrusion switch interface after the electronic intrusion switch is controlled to be in an open state or a closed state, and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface. The test result generally characterizes whether the function of the intrusion switch interface is normal, and if the function of the intrusion switch interface is normal, the intrusion switch interface can normally receive corresponding signals after the electronic intrusion switch performs corresponding actions. The scheme provided by the invention has the beneficial effects that the function test of the intrusion switch interface can be completed without human participation, and compared with the traditional scheme, the probability of misoperation can be reduced, so that the stability, accuracy and test efficiency of the board card test are improved. In addition, the controller acquires data to obtain a test result, so that the defects caused by manual observation are avoided, and the test effect is more ideal.
The invention also provides a judging condition for judging whether the function of the intrusion switch interface is normal or not, and by the judging mode, whether the intrusion switch interface can work normally or not can be accurately judged. The controller is connected with the baseboard management controller to obtain log data, and the controller also records the opening and closing time of the switch, so that whether the function of the intrusion switch interface is normal is determined according to whether the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch within a time threshold. The result obtained by the scheme is more accurate than the traditional manual observation mode. In addition, the controller can realize the opening and closing of the contacts by controlling the energizing state of the relay switch coil, so that the accurate control is realized. The baseboard management controller can send the log data of the server to the controller through the universal serial bus interface so as to realize normal interaction of the data. The interface state is displayed through the indicating unit, a worker can visually check the state of the intrusion switch interface, and the indicating unit can also be used as a reference of a test result.
The invention also provides a test method of the intrusion switch interface of the server, which is applied to the test fixture, and has the same beneficial effects as the test fixture
The invention also provides a test device and a computer readable storage medium of the intrusion switch interface of the server, which correspond to the method, and have the same beneficial effects as the method.
Drawings
For a clearer description of embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a conventional intrusion switch interface;
fig. 2 is a schematic structural diagram of a test fixture for an intrusion switch interface of a server according to an embodiment of the present invention;
FIG. 3 is a specific test flow chart of an intrusion switch interface according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for testing an intrusion switch interface of a server according to an embodiment of the present invention;
FIG. 5 is a block diagram of a test device for an intrusion switch interface of a server according to an embodiment of the present invention;
fig. 6 is a block diagram of a test device for an intrusion switch interface of a server according to another embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
The invention provides a test fixture, a method, a device and a medium for an intrusion switch interface of a server, so as to improve the test efficiency and the test effect of the intrusion switch interface of the server.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
Along with the improvement of the current data storage requirement and the requirement on the computing power, the demand of the server is increased sharply, and each board card in the server needs to be started up for verification before delivery. The basic function verification of the board card is required to be carried out through functional tests (Functional Circuit Test, FCT) before the board card leaves the factory. The detection of the motherboard intrusion switch interface is an important functional test item in testing. The traditional scheme is that an entity intrusion switch is connected to an intrusion switch interface of a server main board, a display connected with a main board system prompts an operator to press the intrusion switch to detect whether the closing state of the intrusion switch can be identified by the BMC, and prompts the operator to release the intrusion switch to detect whether the opening state of the intrusion switch can be identified by the BMC. And confirming the test of the intrusion switch interface function of the main board through the identification of the BMC on the state. FIG. 1 is a flow chart of a conventional intrusion switch interface; as shown in fig. 1, the conventional test scheme includes the steps of: s10: the test is started. S11: the operator is prompted to continue pressing the intrusion switch. S12: checking whether the intrusion switch is closed; if yes, the process proceeds to step S13, and if no, the process proceeds to step S15. S13: the operator is prompted to release the intrusion switch. S14: checking whether the intrusion switch is turned off; if yes, the process proceeds to step S16, and if no, the process proceeds to step S15. S15: the interface functions abnormally and the test is terminated. S16: the interface functions normally and other tests are continued. Therefore, the traditional test mode needs manual intervention, has the probability of false triggering or misoperation, easily leads to the board card to be misjudged bad, leads to the board card to need to restart the test and repeat the man-machine interaction step, leads to the board card disposable yield to be reduced, and the test efficiency is reduced. And the operators of the factory production line need to operate a plurality of test machines at the same time, and often test stagnation at the current step due to untimely intervention waits for manual operation, and the operators are bound at the current machine during interaction, so that other fault treatments cannot be considered, personnel lines are blocked, test time is prolonged, and test efficiency is reduced.
In order to solve the technical problems, an embodiment of the invention provides a test fixture for an intrusion switch interface of a server, which comprises a controller and an electronic intrusion switch. The controller is connected with the control end of the electronic intrusion switch and is used for controlling the electronic intrusion switch to enter an open state or a closed state. The output end of the electronic intrusion switch is connected with the intrusion switch interface, and the intrusion switch interface receives corresponding signals after the electronic intrusion switch enters an open state or a closed state. The controller is also connected with the server and is used for acquiring signals received by the intrusion switch interface after the electronic intrusion switch is controlled to be in an open state or a closed state, and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface.
The test fixture provided by the invention can be applied to automatic test of all similar switch interfaces on a server. The embodiment of the invention mainly completes the function detection of the main board intrusion switch interface by using a switching circuit controlled by a controller to replace an electronic intrusion switch of an entity. The test fixture also accesses the board card system to be tested, the interface function test is completed under the condition of no human-computer interaction, and the stability and the test efficiency of the board card test are improved by reducing the human-computer interaction. The type of controller used and the type of electronic intrusion switch used are not limited here, and for example, the controller may employ a micro control unit (Microcontroller Unit, MCU) and the electronic intrusion switch may employ a relay. In practical application, the test result indicates that the intrusion switch interface is normal in function at least comprises one of the following conditions: the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch; the time difference between the signal receiving time corresponding to the intrusion switch interface receiving the signal matched with the state of the electronic intrusion switch and the state executing time of the electronic intrusion switch is smaller than the time threshold. The length of the time threshold is not required, and the interface is characterized as normal in function as long as the intrusion switch interface receives signals within a reasonable time after the electronic intrusion switch acts. Fig. 2 is a schematic structural diagram of a test fixture for an intrusion switch interface of a server according to an embodiment of the present invention; as shown in fig. 2, the test fixture comprises a test fixture 1 and a main board 2; the test fixture 1 comprises a micro control unit and a relay switch, and the test fixture 1 is also provided with a universal serial bus interface and a corresponding interface for connecting an intrusion switch interface. And the main board 2 of the server comprises a universal serial bus interface and an intrusion switch interface. The test fixture 1 and the main board 2 of the server are connected with each other through corresponding interfaces.
The scheme of the invention is described here by taking fig. 2 as an example, namely, the MCU is used as a controller, and the relay switch is used as an electronic intrusion switch. The test fixture is provided with a corresponding universal serial bus (Universal Serial Bus, USB) interface and a corresponding interface for connecting the intrusion switch interface, and is respectively connected with the USB interface and the intrusion switch interface of the mainboard to be tested. The test fixture integrates an MCU as a control chip for executing a main board instruction and a fixture related instruction, the MCU is also called a single-chip microcomputer (Single Chip Microcomputer) or a single-chip microcomputer, corresponding firmware is developed in the MCU, the control of a switch circuit is completed through realizing a self-defined data protocol, the opening and closing of an analog electronic intrusion switch is completed, and an execution result can be fed back to a main board system through a USB interface. And the main board system to be tested sends a switch closing instruction to the MCU of the test fixture through a USB line by executing a custom command in the main board system. After receiving the instruction, the MCU controls the relay to be closed according to the instruction, records the current operation action and time to form own log data, and synchronizes the instruction execution result and the log data to the main board through the USB line. After receiving the result and the log returned by the jig, if the instruction execution is successful, the to-be-tested main board system executes the OEM instruction to obtain the switch state and the state change time recorded in the BMC, and the test is judged to be successful by comparing the switch state and the state change time with the log content returned by the jig, wherein the state is consistent and the state change time is within a reasonable response time range. Otherwise, if the states are inconsistent or the state change time does not meet the corresponding time range, the test is judged to fail, and the test is required to be interrupted at the moment. After the closed test is passed, the main board system sends a switch opening instruction through a USB line, the MCU of the test fixture operates the relay to be opened after receiving the instruction, records the state execution time and the state to form log data, and returns an execution result and the log data through the USB interface. The main board system executes the OEM instruction to acquire the current electronic intrusion switch state and change time recorded by the BMC, if the electronic intrusion switch state is changed to the on state and the time meets the corresponding time limit, the test is successful, and the test result is returned to the diagnosis system. If the electronic intrusion switch state is considered as the closed state, the test fails, the test is terminated, and a test result is returned to the diagnosis system and the operation failure is prompted. It should be noted that the above solution is only one example of implementation of the present invention, and is not limited to other solutions. In this example, the comparison of signals and states is completed through the system of the server motherboard itself, and in actual application, various testing steps can also be completed directly through the controller on the testing fixture, which is not specifically required here.
The embodiment of the invention further provides a specific test flow, and fig. 3 is a specific test flow chart of an intrusion switch interface provided by the embodiment of the invention; as shown in fig. 3, the step of performing the interface test by the test fixture specifically includes: s20: and starting the test by the test fixture. S21: and the main board system to be tested sends a switch closing instruction. S22: the jig completes switch closing according to the instruction. S23: checking whether the electronic intrusion switch is in a closed state; if yes, the process proceeds to step S24, and if no, the process proceeds to step S27. S24: and the main board system to be tested sends a switch off instruction. S25: the jig completes the switch disconnection according to the instruction. S26: checking whether the electronic intrusion switch is in an off state; if yes, the process proceeds to step S28, and if no, the process proceeds to step S27. S27: the interface function of the test fixture is abnormal, and the test is terminated. S28: the interface tested by the test fixture is normal in function, and other tests are continued. Through the steps, the test fixture completes the test of the intrusion switch interface.
The invention mainly designs a MCU controlled switch circuit board (i.e. a test fixture) to replace an electronic intrusion switch of an entity to be accessed into an intrusion switch interface of a server main board to be tested, the test fixture is accessed into a USB interface of the main board to be tested through a USB circuit, instructions and data interaction are carried out between the USB interface and a main board system to be tested, the opening and closing state of the electronic intrusion switch is simulated, and the instruction execution result data is fed back. The automatic test intrusion switch interface is realized, so that manual interaction is reduced, the test automation degree is increased, and the test efficiency is improved. The influence of uncertain factors caused by manual operation is reduced, and the test accuracy is improved.
The embodiment of the invention provides a test fixture for an intrusion switch interface of a server, which comprises a controller and an electronic intrusion switch. The controller is connected with the control end of the electronic intrusion switch and is used for controlling the electronic intrusion switch to enter an open state or a closed state. The output end of the electronic intrusion switch is connected with an intrusion switch interface of the server, the intrusion switch interface receives a signal corresponding to the opening of the switch after the electronic intrusion switch enters an opening state, and the intrusion switch interface receives a signal corresponding to the closing of the switch after the electronic intrusion switch enters a closing state. The controller is also connected with the server and is used for acquiring signals received by the intrusion switch interface after the electronic intrusion switch is controlled to be in an open state or a closed state, and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface. The test result generally characterizes whether the function of the intrusion switch interface is normal, and if the function of the intrusion switch interface is normal, the intrusion switch interface can normally receive corresponding signals after the electronic intrusion switch performs corresponding actions. The scheme provided by the embodiment of the invention has the beneficial effects that the functional test of the intrusion switch interface can be completed without human participation, and compared with the traditional scheme, the probability of misoperation can be reduced, so that the stability, the accuracy and the test efficiency of the board card test are improved. In addition, the controller acquires data to obtain a test result, so that the defects caused by manual observation are avoided, and the test effect is more ideal.
In the above embodiment, it is mentioned that the interface functions normally as long as the intrusion switch interface receives a signal within a reasonable time after the electronic intrusion switch is actuated. The embodiment of the invention provides a specific judging scheme, and the test result indicates that the function of the intrusion switch interface is normal at least comprises one of the following conditions: the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch, and the time difference between the signal receiving time corresponding to the intrusion switch interface receiving the signal matched with the state of the electronic intrusion switch and the state execution time of the electronic intrusion switch is smaller than a time threshold. If the conditions are met, the intrusion switch interface is characterized to be normal in function, and whether the intrusion switch interface can work normally can be accurately judged by the judging mode provided by the embodiment of the invention.
In practical application, the controller may be connected to the baseboard management controller of the server, and after the electronic intrusion switch is controlled to be opened or closed, the controller may obtain log data of the server through the baseboard management controller; the log data comprises signals received by the intrusion switch interface and signal receiving time. In addition, the controller is also used for recording the state execution time of the electronic intrusion switch. Correspondingly, the controller obtains a test result according to the state of the electronic intrusion switch and the signal received by the intrusion switch interface, and the test result comprises: and judging whether the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch according to the corresponding relation between the state of the electronic intrusion switch and the signal received by the intrusion switch interface within a time threshold from the state execution time of the electronic intrusion switch. If the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch within a time threshold from the state execution time, the test result represents that the intrusion switch interface is normal in function; if the intrusion switch interface does not receive a signal matched with the state of the electronic intrusion switch within a time threshold from the state execution time, the test result indicates that the intrusion switch interface is abnormal in function. Based on the implementation, the embodiment of the invention provides a more specific judging mode, and by the mode provided by the embodiment, the interface function test can be completed rapidly, and the obtained result is more accurate than the traditional manual observation mode.
The above embodiments are not limited to the type of electronic intrusion switch, nor the connection mode of the controller to the server motherboard. The electronic intrusion switch can specifically adopt a relay switch, and a coil of the relay switch is correspondingly used as a control end of the electronic intrusion switch to be connected with the controller so that the controller can control the electrifying state of the coil of the relay switch; the first end of the static contact of the relay switch is connected with the signal generating unit, and the second end of the relay switch is used as the output end of the electronic intrusion switch to be connected with the intrusion switch interface. The controller can realize the opening and closing of the contacts by controlling the energizing state of the relay switch coil, so that the accurate control is realized. In addition, the controller can be connected with a baseboard management controller in the server through a universal serial bus interface, and the baseboard management controller can send log data of the server to the controller through the universal serial bus interface so as to realize normal interaction of the data. In practice, the controller may also send its own log data to the baseboard management controller, and the baseboard management controller may complete the subsequent testing of the interface function.
In addition, in a specific implementation scene, the server can be further provided with an indicating unit, after the intrusion switch interface receives a signal corresponding to the electronic intrusion switch entering the closed state, the indicating unit sends out switch closing information, and after the intrusion switch interface receives a signal corresponding to the electronic intrusion switch entering the open state, the indicating unit sends out switch opening information. The indication unit may comprise a buzzer and/or an indicator light, for example, if the indication employs an indicator light, it may be arranged that the light-up indicates that the intrusion switch is closed and that the light-down indicates that the intrusion switch is open. Through the indicating unit provided by the embodiment of the invention, a worker can visually check the state of the intrusion switch interface and can also be used as a reference of a test result, so that the accuracy of the test is improved.
In order to solve the technical problems, the embodiment of the invention also provides a test method of the intrusion switch interface of the server, which is applied to a test fixture comprising a controller and an electronic intrusion switch, wherein the controller is respectively connected with a control end of the electronic intrusion switch and the server, and an output end of the electronic intrusion switch is connected with the intrusion switch interface of the server. Fig. 4 is a flowchart of a method for testing an intrusion switch interface of a server according to an embodiment of the present invention; as shown in fig. 4, the method comprises the steps of:
s30: and controlling the electronic intrusion switch to act.
Wherein the action of the electronic intrusion switch comprises entering an open state and entering a closed state.
S31: signals received by the intrusion switch interface are obtained from the server.
After the electronic intrusion switch enters an open state or a closed state, the intrusion switch interface receives a corresponding signal.
S32: and determining a test result according to the state of the electronic intrusion switch and the signal received by the intrusion switch interface.
Since the testing method in this embodiment is applied to the testing jig, the embodiments of the method portion and the embodiments of the testing jig portion correspond to each other, and therefore, the embodiments of the method portion refer to the description of the embodiments of the testing jig portion, which is not repeated herein.
The method for testing the intrusion switch interface of the server, which is provided by the embodiment, is applied to the testing jig, so that the method has the same beneficial effects as the testing jig.
In the above embodiments, the detailed description is given of the method for testing the intrusion switch interface of the server, and the invention also provides the corresponding embodiments of the device for testing the intrusion switch interface of the server. It should be noted that the present invention describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Based on the angle of the functional module, the embodiment provides a testing device for an intrusion switch interface of a server, which is applied to a testing jig comprising a controller and an electronic intrusion switch, wherein the controller is respectively connected with a control end of the electronic intrusion switch and the server, and an output end of the electronic intrusion switch is connected with the intrusion switch interface of the server. Fig. 5 is a structural diagram of a testing device for an intrusion switch interface of a server according to an embodiment of the present invention, as shown in fig. 5, the device includes:
the control module 10 is used for controlling the electronic intrusion switch to act; wherein the action of the electronic intrusion switch comprises entering an open state and entering a closed state;
an acquisition module 11, configured to acquire a signal received by the intrusion switch interface from a server; after the electronic intrusion switch enters an open state or a closed state, the intrusion switch interface receives a corresponding signal;
the determining module 12 is configured to determine a test result according to the state of the electronic intrusion switch and the signal received by the intrusion switch interface.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The test device for the intrusion switch interface of the server provided by the embodiment corresponds to the method, so that the test device has the same beneficial effects as the method.
Based on the hardware angle, the embodiment provides another device for testing an intrusion switch interface of a server, and fig. 6 is a structural diagram of the device for testing an intrusion switch interface of a server according to another embodiment of the present invention, as shown in fig. 6, where the device for testing an intrusion switch interface of a server includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for testing the intrusion switch interface of a server as mentioned in the above embodiments when executing a computer program.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, after being loaded and executed by the processor 21, can implement the relevant steps of the method for testing an intrusion switch interface of a server disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, data related to a test method of an intrusion switch interface of a server, and the like.
In some embodiments, the test device of the intrusion switch interface of the server may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
It will be appreciated by those skilled in the art that the structure shown in the figures does not constitute a limitation of the testing apparatus of the intrusion switch interface of the server, and may include more or less components than those shown.
The device for testing the intrusion switch interface of the server provided by the embodiment of the invention comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: a method for testing an intrusion switch interface of a server.
The test device for the intrusion switch interface of the server provided by the embodiment corresponds to the method, so that the test device has the same beneficial effects as the method.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution contributing to the prior art, or may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided in the present embodiment corresponds to the above method, and thus has the same advantageous effects as the above method.
The test fixture, the method, the device and the medium for the intrusion switch interface of the server provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A test fixture of intrusion switch interface of server, its characterized in that includes: a controller, an electronic intrusion switch;
the controller is connected with the control end of the electronic intrusion switch and is used for controlling the electronic intrusion switch to enter an open state or a closed state;
the output end of the electronic intrusion switch is connected with an intrusion switch interface of the server, and the intrusion switch interface receives corresponding signals after the electronic intrusion switch enters the open state or the closed state;
the controller is further connected with the server, and is used for acquiring signals received by the intrusion switch interface after the electronic intrusion switch is controlled to enter the open state or the closed state, and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface.
2. The test fixture for an intrusion switch interface of a server according to claim 1, wherein the test results characterize that the intrusion switch interface is functioning properly comprises at least one of:
the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch;
the time difference between the signal receiving time of the intrusion switch interface, which corresponds to the signal matched with the state of the electronic intrusion switch, and the state executing time of the electronic intrusion switch is smaller than a time threshold.
3. The test fixture of an intrusion switch interface of a server of claim 2, wherein the controller is specifically connected to a baseboard management controller of the server;
after the electronic intrusion switch is controlled to enter the open state or the closed state, the controller acquires log data of the server through the baseboard management controller; the log data comprises signals received by the intrusion switch interface and the signal receiving time;
the controller is also used for recording the state execution time of the electronic intrusion switch;
correspondingly, the controller obtains the test result according to the state of the electronic intrusion switch and the signal received by the intrusion switch interface, and the test result comprises:
judging whether the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch according to the corresponding relation between the state of the electronic intrusion switch and the signal received by the intrusion switch interface within the time threshold from the state execution time of the electronic intrusion switch;
if the intrusion switch interface receives a signal matched with the state of the electronic intrusion switch within the time threshold from the state execution time, the test result represents that the intrusion switch interface has normal functions;
and if the intrusion switch interface does not receive a signal matched with the state of the electronic intrusion switch within the time threshold from the state execution time, the test result represents that the intrusion switch interface is abnormal in function.
4. A test fixture for an intrusion switch interface of a server according to any one of claims 1 to 3, wherein said electronic intrusion switch is in particular a relay switch;
the coil of the relay switch is used as a control end of the electronic intrusion switch to be connected with the controller so that the controller can control the electrifying state of the coil of the relay switch; the first end of the static contact of the relay switch is connected with the signal generating unit, and the second end of the static contact of the relay switch is used as the output end of the electronic intrusion switch to be connected with the intrusion switch interface.
5. The test fixture for an intrusion switch interface of a server of claim 3, wherein the controller is connected to the baseboard management controller of the server through a universal serial bus interface;
the baseboard management controller sends the log data of the server to the controller through the universal serial bus interface.
6. The test fixture of an intrusion switch interface of a server according to claim 1, wherein an indication unit is arranged on the server, and the indication unit comprises a buzzer and/or an indication lamp;
after the intrusion switch interface receives a signal corresponding to the electronic intrusion switch entering the closed state, the indication unit sends out switch closing information, and after the intrusion switch interface receives a signal corresponding to the electronic intrusion switch entering the open state, the indication unit sends out switch opening information.
7. The method is characterized by being applied to a test fixture comprising a controller and an electronic intrusion switch, wherein the controller is respectively connected with a control end of the electronic intrusion switch and the server, and an output end of the electronic intrusion switch is connected with an intrusion switch interface of the server; the method comprises the following steps:
controlling the electronic intrusion switch to act; wherein the action of the electronic intrusion switch comprises entering an open state and entering a closed state;
acquiring signals received by the intrusion switch interface from the server; after the electronic intrusion switch enters the open state or the closed state, the intrusion switch interface receives a corresponding signal;
and determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface.
8. The device is characterized by being applied to a test fixture comprising a controller and an electronic intrusion switch, wherein the controller is respectively connected with a control end of the electronic intrusion switch and the server, and an output end of the electronic intrusion switch is connected with an intrusion switch interface of the server; the device comprises:
the control module is used for controlling the electronic intrusion switch to act; wherein the action of the electronic intrusion switch comprises entering an open state and entering a closed state;
the acquisition module is used for acquiring the signals received by the intrusion switch interface from the server; after the electronic intrusion switch enters the open state or the closed state, the intrusion switch interface receives a corresponding signal;
and the determining module is used for determining a test result according to the state of the electronic intrusion switch and the signals received by the intrusion switch interface.
9. The device for testing the intrusion switch interface of the server is characterized by comprising a memory for storing a computer program;
a processor for implementing the steps of the method for testing an intrusion switch interface of a server according to claim 7 when executing said computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for testing an intrusion switch interface of a server according to claim 7.
CN202310943227.9A 2023-07-28 2023-07-28 Test fixture, method, device and medium for intrusion switch interface of server Pending CN116881070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310943227.9A CN116881070A (en) 2023-07-28 2023-07-28 Test fixture, method, device and medium for intrusion switch interface of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310943227.9A CN116881070A (en) 2023-07-28 2023-07-28 Test fixture, method, device and medium for intrusion switch interface of server

Publications (1)

Publication Number Publication Date
CN116881070A true CN116881070A (en) 2023-10-13

Family

ID=88260262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310943227.9A Pending CN116881070A (en) 2023-07-28 2023-07-28 Test fixture, method, device and medium for intrusion switch interface of server

Country Status (1)

Country Link
CN (1) CN116881070A (en)

Similar Documents

Publication Publication Date Title
EP2787442A1 (en) Controller, information processing apparatus, and program
CN111309579B (en) Test method and related device for system event log quantity acquisition function
CN116775141A (en) Abnormality detection method, abnormality detection device, computer device, and storage medium
CN108802627B (en) Testing method, device and system for BBU independent power supply and readable storage medium
CN109597389B (en) Test system of embedded control system
CN116881070A (en) Test fixture, method, device and medium for intrusion switch interface of server
CN114793196B (en) Firmware upgrading method, device, equipment and storage medium
CN115934446A (en) Self-checking method, server, equipment and storage medium
US11726853B2 (en) Electronic control device
TWI675293B (en) A host boot detection method and its system
CN113608939A (en) Server starting timing method, device, terminal and storage medium in performance test
CN111858208B (en) Standby function testing method, device, equipment and medium of processor chip
CN112256535A (en) Hard disk alarm method and device, computer equipment and storage medium
CN107766251B (en) Detection method, system and device for loading image and readable storage medium
CN111896824B (en) Unattended reliability testing device and system
CN114443446B (en) Hard disk indicator lamp control method, system, terminal and storage medium
CN113687998A (en) Control method for eliminating abnormal operation of management engine
CN111045899B (en) Method for displaying BIOS information in early stage of computer system startup self-check
CN117687821A (en) Method and device for processing bad blocks of cache memory and electronic equipment
JP2000298599A (en) Automatic testing system for exchange software
CN116414611A (en) Redundant storage-based fault positioning system for power-on self-checking equipment
CN112711494A (en) Downtime fault positioning method and device
CN113064813A (en) Board-mounted firmware version detection method and device
CN117215854A (en) Method, system, equipment and storage medium for testing AMT (automated mechanical transmission) of server
CN111324495A (en) Host startup detection method and system

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