CN109086154B - Device and method for detecting countdown of BIOS watchdog function - Google Patents

Device and method for detecting countdown of BIOS watchdog function Download PDF

Info

Publication number
CN109086154B
CN109086154B CN201810834599.7A CN201810834599A CN109086154B CN 109086154 B CN109086154 B CN 109086154B CN 201810834599 A CN201810834599 A CN 201810834599A CN 109086154 B CN109086154 B CN 109086154B
Authority
CN
China
Prior art keywords
watchdog
bios
processor
initial
effective time
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
CN201810834599.7A
Other languages
Chinese (zh)
Other versions
CN109086154A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810834599.7A priority Critical patent/CN109086154B/en
Publication of CN109086154A publication Critical patent/CN109086154A/en
Application granted granted Critical
Publication of CN109086154B publication Critical patent/CN109086154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a device and a method for detecting the countdown of the BIOS watchdog function, which are used for comparing the effective time length of the detected watchdog with the effective time length set by a BIOS watchdog effective time length setting module, recording the detection process data and the comparison result data into a detection log, and checking whether the countdown time of the BIOS watchdog is consistent with the countdown time set in the BIOS through the detection log. When the effective time length of the detected watchdog exceeds the effective time length set by the BIOS watchdog effective time length setting module, the mark time length exceeds the threshold value prompt on the detection log, the current detection log is stored in the preset folder, and meanwhile, the web-side interface of the device body is called to upload the detection log and prompt detection personnel. The tester can find whether the countdown time of the BIOS watchdog meets the requirement in time. Therefore, errors caused by manual timing can be effectively avoided, the testing efficiency is well improved, and the testing rigidness is improved.

Description

Device and method for detecting countdown of BIOS watchdog function
Technical Field
The invention relates to the technical field of watchdog function detection, in particular to a countdown device and method for detecting a BIOS watchdog function.
Background
The watchdog function in the BIOS is a function that allows the server to automatically reset after the server is down during the POST phase. At present, the requirement of a user on the automatic reset function is higher and higher, the server can realize automatic reset after downtime, and manual reset is avoided. In some automation places, the server needs to perform recovery operation within a fixed time after the shutdown occurs in the power-on self-test interface. And resetting the server to restore the server to normal. The watchdog function of the server is particularly important, and usually, when the server is tested, the automatic reset function needs to be tested separately, and the current testing mode is usually to count time by a timer manually and check whether the function meets the requirement. Therefore, deviation often occurs, and if the deviation is large, the requirement of automatic reset after the server is down cannot be met. And the mode of testing is usually in user's use area at present, and the testing personnel will carry out the test based on server automatic re-setting function to user's use area according to user's demand, requires to guarantee testing arrangement's convenience and easy operability like this, how guarantee testing arrangement's convenience and easy operability to and can realize that the automatic testing process is the technical problem who waits to be solved currently.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides a countdown device for detecting a BIOS watchdog function, comprising: a device body; the device body is provided with a network connection control key and a watchdog countdown control key;
a main board is arranged in the device body, and a processor, a communication module, an IO interface module, a memory and a power supply battery for supplying power to elements of the device body are arranged on the main board;
the communication module and the memory are respectively connected with the processor;
the network connection control key and the watchdog countdown control key are respectively connected with the processor through the IO interface module;
the BIOS watchdog effective time counting module, the control module started by the server to be tested, the BIOS watchdog effective time setting module and the downtime script module are stored in the memory;
the processor acquires a network connection control instruction through the network connection control key, calls the communication module to enable the communication module to be in network communication connection with the server to be tested, replies a network connection success signal to the processor after the communication module is successfully in network connection with the server to be tested, and displays the network connection success signal on the display screen;
the processor acquires a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key, calls a startup control module of the server to be tested to start the server to be tested, executes a downtime script module to shut down the server to be tested in a self-checking stage, and after acquiring the downtime of the server to be tested, the BIOS watchdog effective-taking timing module detects the effective time of the BIOS watchdog, and forming watchdog effective time length by the effective time of the detected BIOS watchdog and the downtime of the server to be detected, sending the effective time of the BIOS watchdog, the downtime of the server to be detected and the watchdog effective time length to the processor, comparing the effective time length of the detected watchdog with the effective time length set by the BIOS watchdog effective time length setting module by the processor, recording detection process data and comparison result data into a detection log, and storing the detection log into the memory.
Preferably, a cycle number setting module and a cycle interval time setting module are further stored in the memory;
the cycle number setting module is used for setting the cycle number for detecting the countdown duration of the BIOS watchdog function;
the cycle interval time setting module is used for setting the time interval between cycles for detecting the countdown of the BIOS watchdog function;
the processor acquires a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key, calls a startup control module of the server to be tested to start the server to be tested, executes a downtime script module to make the server to be tested shutdown in a self-checking stage, after acquiring the downtime of the server to be tested, the BIOS watchdog taking-effect timing module detects the taking-effect time of the BIOS watchdog, and forms the watchdog taking-effect duration by the time for the detected BIOS watchdog to take effect and the downtime of the server to be tested, the taking-effect time of the BIOS watchdog, the downtime of the server to be tested and the taking-effect duration of the watchdog are sent to the processor, the processor compares the detected taking-effect duration of the watchdog with the taking-effect duration set by the BIOS watchdog taking-effect duration setting module to form a comparison log, and stores the comparison log into the memory;
the processor obtains the cycle times for detecting the long countdown of the BIOS watchdog function through the cycle time setting module and obtains the time interval between the cycles for detecting the long countdown of the BIOS watchdog function through the cycle interval time setting module;
and circularly executing according to the number of the circulation times and the time interval between each circulation, recording the execution process data and the comparison result data of each circulation into a detection log, and storing the detection log into a memory.
Preferably, the device body is also provided with a display screen, and the mainboard is also provided with a voice prompt module;
the voice prompt module and the display screen are respectively connected with the processor;
the processor is also used for playing the effective time of the BIOS watchdog, the downtime of the server to be tested and the effective time of the watchdog through the voice prompt module and displaying the time through the display screen;
and comparing the detected effective time length of the watchdog with the effective time length set by the BIOS watchdog effective time length setting module, and playing the result through the voice prompt module and further playing the result.
Preferably, the device body is also provided with an RS485 communication interface, a CAN network communication interface, an Ethernet communication interface and an RS232 communication interface;
the communication module is in communication connection in a Bluetooth mode, or in communication connection in a WIFI mode, or in communication connection in a radio frequency mode, or in communication connection in an infrared mode, or in communication connection in a GSM mode.
Preferably, the apparatus body further includes: a WeChat client;
the wechat client is used for enabling the device body to be in communication connection with the wechat client, transmitting data information of the device body to the wechat client, and enabling the plurality of device bodies and the user terminal to obtain the detection log through the wechat client.
Preferably, the mainboard is also provided with a test initial setting circuit, a direct current transformation circuit and a voltage stabilizing circuit;
the device body is provided with a test initial control key;
the test initial control key is connected with the processor through the test initial setting circuit and used for carrying out test initial setting on the processor according to the received test initial instruction;
the testing device comprises a power supply battery, a testing initial control key, a direct current voltage transformation circuit, a voltage stabilizing circuit, a testing initial setting circuit and a processor which are sequentially connected;
the test initial control key is used for acquiring a test initial setting control instruction input by a user and enabling the power supply battery to supply power to the test initial setting circuit to realize the test initial setting of the processor after the preset pressing duration is reached.
Preferably, the test initial setting circuit includes: the device comprises an initial resistor R1, an initial resistor R2, an initial resistor R3, an initial capacitor C1, an initial capacitor C2, an initial diode VD and an initial triode Q; the first end of the initial resistor R3 and the positive electrode of the initial capacitor C1 are both connected with the input end of the test initial setting circuit; the cathode of the initial capacitor C1 is connected with one end of the initial resistor R1 and the cathode of the initial diode VD; the other end of the initial resistor R1 is connected with one end of the initial resistor R2 and the b pole of the initial triode Q; the C pole of the initial triode Q is connected with the first end of the initial capacitor C2; the second end of the initial resistor R3, the anode of the initial diode VD, the second end of the initial resistor R2, the e pole of the initial triode Q and the second end of the initial capacitor C2 are all grounded.
Preferably, the memory further stores a detection log management module;
the processor calls the detection log management module, caches the current detection log, and stores the current detection log to the memory after the current detection is finished; the processor identifies the establishment time, the modification time and the viewing time of each detection log;
the memory is also internally stored with an installation GNU compiler suite, a g + + and a gforran compiler, and a log program compiling and running environment and a compiling source code are constructed for the processor to call and use;
the processor is further used for identifying the prompt that the time length exceeds the threshold value on the detection log when the effective time length of the detected watchdog exceeds the effective time length set by the BIOS watchdog effective time length setting module, storing the current detection log in a preset folder, calling a web-side interface of the device body, uploading the detection log and prompting detection personnel.
A method for detecting a BIOS watchdog function countdown, the method comprising:
step one, a processor acquires a network connection control instruction through a network connection control key, and calls a communication module to enable the communication module to be in network communication connection with a server to be tested;
after the communication module is successfully connected with the server to be tested through the network, a network connection success signal is replied to the processor, and the processor displays the network connection success signal on a display screen;
acquiring a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key by the processor, and calling a starting control module of the server to be tested to start the server to be tested;
step four, executing the downtime script module to make the server to be tested shutdown in the self-checking stage;
after the processor acquires the downtime of the server to be detected, the BIOS watchdog taking-effect timing module detects the effective time of the BIOS watchdog, forms the effective time of the watchdog by the effective time of the detected BIOS watchdog and the downtime of the server to be detected, and sends the effective time of the BIOS watchdog, the downtime of the server to be detected and the effective time of the watchdog to the processor;
and step six, the processor compares the detected watchdog effective time with the effective time set by the BIOS watchdog effective time setting module, records the detection process data and the comparison result data into the detection log, and stores the detection log into the memory.
Preferably, step six is followed by:
the processor obtains the cycle times for detecting the long countdown of the BIOS watchdog function through the cycle time setting module and obtains the time interval between the cycles for detecting the long countdown of the BIOS watchdog function through the cycle interval time setting module;
according to the cycle times and the time interval between each cycle, executing the steps three to six again, and executing circularly according to the set cycle times and the time interval between each cycle;
and recording the execution process data and the comparison result data of each cycle into a detection log, and storing the detection log into a memory.
According to the technical scheme, the invention has the following advantages:
the invention compares the detected watchdog effective time with the effective time set by the BIOS watchdog effective time setting module, records the detection process data and the comparison result data into the detection log, and stores the detection log into the memory. The BIOS watchdog countdown time is checked for consistency with what is set in the BIOS by detecting the log. When the effective time length of the detected watchdog exceeds the effective time length set by the BIOS watchdog effective time length setting module, the mark time length exceeds the threshold value prompt on the detection log, the current detection log is stored in the preset folder, and meanwhile, the web-side interface of the device body is called to upload the detection log and prompt detection personnel. The tester can find whether the countdown time of the BIOS watchdog meets the requirement in time.
Therefore, errors caused by manual timing can be effectively avoided, the testing efficiency is well improved, and the testing rigidness is improved. And the countdown device for detecting the BIOS watchdog function can be carried and is connected with a server to be tested through a wireless or wired mode, so that the convenience and the operability of the testing device are ensured, and the automatic testing process can be realized.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings used in the description will be briefly introduced, 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 that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an apparatus for detecting a BIOS watchdog function countdown;
FIG. 2 is a circuit diagram of test initial setup;
FIG. 3 is a flow chart of a method for detecting BIOS watchdog function countdown.
Detailed Description
The invention provides a countdown device for detecting the function of a BIOS watchdog, which comprises the following components as shown in figures 1 to 2: an apparatus body 1; the device body 1 is provided with a network connection control key and a watchdog countdown control key 3; a main board is arranged in the device body 1, and a processor 11, a communication module, an IO interface module, a memory and a power supply battery 12 for supplying power to elements of the device body 1 are arranged on the main board;
the communication module and the memory are respectively connected with the processor 11; the network connection control key and the watchdog countdown control key 3 are respectively connected with the processor 11 through an IO interface module; the BIOS watchdog effective time counting module, the control module started by the server to be tested, the BIOS watchdog effective time setting module and the downtime script module are stored in the memory; the processor 11 acquires a network connection control instruction through the network connection control key, calls the communication module to enable the communication module to be in network communication connection with the server to be tested, replies a network connection success signal to the processor 11 after the communication module is successfully in network connection with the server to be tested, and the processor 11 displays the network connection success signal on the display screen 2;
the processor 11 acquires a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key 3, calls a startup control module of the server to be tested to start the server to be tested, executes a downtime script module to shutdown the server to be tested in a self-checking stage, and after the processor 11 acquires the downtime of the server to be tested, the BIOS watchdog effective-taking timing module detects the effective time of the BIOS watchdog, and the time for the detected BIOS watchdog to take effect and the time for the server to be detected to take effect form the watchdog effective time, the effective time of the BIOS watchdog, the time for the server to be detected to take effect and the watchdog effective time are sent to the processor 11, the processor 11 compares the detected watchdog effective time with the effective time set by the BIOS watchdog effective time setting module, records the detection process data and the comparison result data into the detection log, and stores the detection log into the memory.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions of the present invention will be clearly and completely described below with reference to specific embodiments and drawings. 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 scope of protection of this patent.
In the embodiment provided by the invention, a cycle number setting module and a cycle interval time setting module are also stored in the memory; the cycle number setting module is used for setting the cycle number for detecting the countdown duration of the BIOS watchdog function; the cycle interval time setting module is used for setting the time interval between cycles for detecting the countdown of the BIOS watchdog function;
the processor 11 acquires a watchdog countdown test instruction of a server to be tested through the watchdog countdown control key 3, calls a startup control module of the server to be tested to start the server to be tested, executes a downtime script module to make the server to be tested downtime in a self-checking stage, after the processor 11 acquires the downtime of the server to be tested, the BIOS watchdog taking-effect timing module detects the taking-effect time of the BIOS watchdog, and forms the watchdog taking-effect time by the detected time of the BIOS watchdog and the downtime of the server to be tested, the taking-effect time of the BIOS watchdog, the downtime of the server to be tested and the taking-effect time of the watchdog are sent to the processor 11, the processor 11 compares the detected watchdog taking-effect time with the taking-effect time set by the BIOS watchdog taking-effect time setting module to form a comparison log, and stores the comparison log into the memory; the processor 11 obtains the cycle number for detecting the long countdown of the BIOS watchdog function through the cycle number setting module and obtains the time interval between the cycles for detecting the long countdown of the BIOS watchdog function through the cycle interval time setting module; and circularly executing according to the number of the circulation times and the time interval between each circulation, recording the execution process data and the comparison result data of each circulation into a detection log, and storing the detection log into a memory.
If implemented in hardware, the invention relates to an apparatus, which may be, for example, the processor 11 or an integrated circuit device, such as an integrated circuit chip or chipset. Alternatively or additionally, if implemented in software or firmware, the techniques may implement a data storage medium readable at least in part by a computer, comprising instructions that when executed cause the processor 11 to perform one or more of the above-described methods. For example, a computer-readable data storage medium may store instructions such as those executed by processor 11.
In the embodiment provided by the invention, the device body 1 is also provided with the display screen 2, and the mainboard is also provided with the voice prompt module; the voice prompt module and the display screen 2 are respectively connected with the processor 11; the processor 11 is further configured to play the effective time of the BIOS watchdog, the downtime of the server to be tested, and the effective time of the watchdog through the voice prompt module, and display the time through the display screen; and comparing the detected effective time length of the watchdog with the effective time length set by the BIOS watchdog effective time length setting module, and playing the result through the voice prompt module and further playing the result.
In the embodiment provided by the invention, the device body 1 is also provided with an RS485 communication interface, a CAN network communication interface, an Ethernet communication interface and an RS232 communication interface; the communication module is in communication connection in a Bluetooth mode, or in communication connection in a WIFI mode, or in communication connection in a radio frequency mode, or in communication connection in an infrared mode, or in communication connection in a GSM mode.
The apparatus body 1 further includes: a WeChat client; the wechat client is used for enabling the device body to be in communication connection with the wechat client, transmitting data information of the device body to the wechat client, and enabling the plurality of device bodies and the user terminal to obtain the detection log through the wechat client.
In the embodiment provided by the invention, the mainboard is also provided with a test initial setting circuit, a direct current transformation circuit 14 and a voltage stabilizing circuit 15; the device body 1 is provided with a test initial control key 13; the test initial control key 13 is connected with the processor 11 through a test initial setting circuit and is used for carrying out test initial setting on the processor 11 according to a received test initial instruction; the power supply battery 12, the test initial control key 13, the direct current transformation circuit 14, the voltage stabilizing circuit 15, the test initial setting circuit and the processor 11 are connected in sequence; the test initial control key 13 is used for acquiring a test initial setting control instruction input by a user, and after a preset pressing duration is reached, the power supply battery 12 supplies power to the test initial setting circuit to realize test initial setting of the processor 11.
The test initial setting circuit includes: the device comprises an initial resistor R1, an initial resistor R2, an initial resistor R3, an initial capacitor C1, an initial capacitor C2, an initial diode VD and an initial triode Q; the first end of the initial resistor R3 and the positive electrode of the initial capacitor C1 are both connected with the input end of the test initial setting circuit; the cathode of the initial capacitor C1 is connected with one end of the initial resistor R1 and the cathode of the initial diode VD; the other end of the initial resistor R1 is connected with one end of the initial resistor R2 and the b pole of the initial triode Q; the C pole of the initial triode Q is connected with the first end of the initial capacitor C2; the second end of the initial resistor R3, the anode of the initial diode VD, the second end of the initial resistor R2, the e pole of the initial triode Q and the second end of the initial capacitor C2 are all grounded.
The initial test setting circuit adopts the initial capacitor C1 as the initial test delay setting, and the initial diode VD and the initial capacitor C1 form a loop to accelerate the charge release of the initial capacitor C1, thereby ensuring the next initial test delay setting in a shorter time and ensuring higher working reliability of the initial test setting circuit. After the test initial control key is pressed for a preset time, the test initial setting circuit is powered on, the initial capacitor C1 is charged, in the process of charging the initial capacitor C1, the current in the circuit can pass through the initial capacitor C1, the b pole of the initial triode Q has instantaneous voltage, the instantaneous voltage is greater than 0.7V, therefore, the initial triode Q is conducted instantaneously, the potential connected with the processor is pulled down instantaneously, and when the processor detects that the potential is pulled to be in a low level state, the test initial setting response is made. When the initial capacitor C1 is fully charged, the initial capacitor C1 is equivalent to an open circuit, at this time, the initial transistor Q is turned off, the test initial setting process is completed, and the processor performs the current BIOS watchdog function countdown detection.
In the embodiment provided by the invention, a detection log management module is also stored in the memory; the processor 11 calls the detection log management module, caches the current detection log, and stores the current detection log to the memory after the current detection is finished; the processor 11 identifies the setup time, modification time and viewing time of each detection log; the memory is also internally stored with a GNU compiler suite, a g + + and a gforran compiler, and is used for constructing a log program compiling and running environment and compiling a source code for being called and used by the processor 11; the processor 11 is further configured to identify a time length exceeding a threshold value prompt on the detection log when the detected watchdog effective time length exceeds the effective time length set by the BIOS watchdog effective time length setting module, store the current detection log in a preset folder, and simultaneously call a web-side interface of the device body 1 to upload the detection log, thereby prompting a detection person.
The invention also provides a method for detecting the countdown of the function of the BIOS watchdog, as shown in FIG. 3, the method comprises the following steps:
step one, a processor acquires a network connection control instruction through a network connection control key, and calls a communication module to enable the communication module to be in network communication connection with a server to be tested;
after the communication module is successfully connected with the server to be tested through the network, a network connection success signal is replied to the processor, and the processor displays the network connection success signal on a display screen;
acquiring a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key by the processor, and calling a starting control module of the server to be tested to start the server to be tested;
step four, executing the downtime script module to make the server to be tested shutdown in the self-checking stage;
after the processor acquires the downtime of the server to be detected, the BIOS watchdog taking-effect timing module detects the effective time of the BIOS watchdog, forms the effective time of the watchdog by the effective time of the detected BIOS watchdog and the downtime of the server to be detected, and sends the effective time of the BIOS watchdog, the downtime of the server to be detected and the effective time of the watchdog to the processor;
and step six, the processor compares the detected watchdog effective time with the effective time set by the BIOS watchdog effective time setting module, records the detection process data and the comparison result data into the detection log, and stores the detection log into the memory.
In the method provided by the invention, a processor obtains the cycle times for detecting the long countdown of the BIOS watchdog function through a cycle time setting module and obtains the time interval between the cycles for detecting the long countdown of the BIOS watchdog function through a cycle interval time setting module;
according to the cycle times and the time interval between each cycle, executing the steps three to six again, and executing circularly according to the set cycle times and the time interval between each cycle;
and recording the execution process data and the comparison result data of each cycle into a detection log, and storing the detection log into a memory.
To further illustrate the methods provided by the present invention, a specific example is provided below.
And starting a watchdog function of the server. The command to monitor watchdog countdown is set to loop through 100 times, with 1 second interval between each execution of the 100 commands.
The processor acquires a network connection control instruction through the network connection control key, and calls the communication module to enable the communication module to be in network communication connection with the server to be tested; and the countdown device with the function of detecting the BIOS watchdog is used in the same network segment as the test machine. And ensuring that the control end can normally carry out PING test on the machine. After the communication module is successfully connected with the server to be tested through the network, a network connection success signal is replied to the processor, and the processor displays the network connection success signal on the display screen; the processor acquires a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key, and calls a starting control module of the server to be tested to start the server to be tested;
in the device for detecting the countdown of the function of the BIOS watchdog, a file with a suffix of ". bat" is established, and the following codes are input into the file:
Figure GDA0003353673120000101
the processor acquires a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key, and calls a starting control module of the server to be tested to start the server to be tested; executing a downtime script module to make the server to be tested shutdown in a self-checking stage; the server runs the ". bat" file on the processor after going down. The cursor is always in a flashing state; after the processor acquires the downtime of the server to be detected, the BIOS watchdog taking-effect timing module detects the effective time of the BIOS watchdog, forms the effective watchdog time length by the effective time of the detected BIOS watchdog and the downtime of the server to be detected, and sends the effective time of the BIOS watchdog, the downtime of the server to be detected and the effective watchdog time length to the processor; the processor compares the detected watchdog effective time with the effective time set by the BIOS watchdog effective time setting module, records the detection process data and the comparison result data into the detection log, and stores the detection log into the memory.
After the loop runs 100 times, one LOG file is generated in the folder. The LOG of LOG in the file is the countdown that the detected BIOS watchdog is in effect.
The Watchdog Timer Use refers to the functional module under test Watchdog with the name FRB2 or Watchdog.
The Watchdog Timer Actions show the Actions that the test machine needs to do when the time is up after the test machine is set in the BIOS.
Initial Countdown shows how much time the watchdog Countdown is set under BIOS.
The Countdown indicated by Present Countdown indicates that each check takes less time than the previous check. This range is at most 0 as Initial Countdown and at least.
Figure GDA0003353673120000111
Thus, the tester checks whether the time displayed by the Initial Countdown in the LOG is consistent with the time set by the BIOS.
When the effective time length of the detected watchdog exceeds the effective time length set by the BIOS watchdog effective time length setting module, the mark time length exceeds the threshold value prompt on the detection log, the current detection log is stored in the preset folder, and meanwhile, the web-side interface of the device body is called to upload the detection log and prompt detection personnel.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. An apparatus for detecting a BIOS watchdog function countdown, comprising: a device body (1); the device body (1) is provided with a network connection control key and a watchdog countdown control key (3);
a main board is arranged in the device body (1), and a processor (11), a communication module, an IO interface module, a memory and a power supply battery (12) for supplying power to elements of the device body (1) are arranged on the main board;
the communication module and the memory are respectively connected with the processor (11);
the network connection control key and the watchdog countdown control key (3) are respectively connected with the processor (11) through an IO interface module;
the BIOS watchdog effective time counting module, the control module started by the server to be tested, the BIOS watchdog effective time setting module and the downtime script module are stored in the memory;
the processor (11) acquires a network connection control instruction through the network connection control key, calls the communication module to enable the communication module to be in network communication connection with the server to be tested, replies a network connection success signal to the processor (11) after the communication module is successfully in network connection with the server to be tested, and the processor (11) displays the network connection success signal on the display screen (2);
the processor (11) acquires a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key (3), calls the server to be tested to start the server to be tested by calling the server to be tested to start the server, executes the downtime script module to shut down the server to be tested in the self-checking stage, after the processor (11) acquires the downtime of the server to be tested, the BIOS watchdog effective time module detects the effective time of the BIOS watchdog, and forms the watchdog effective time length by the detected time of the BIOS watchdog and the downtime of the server to be tested, the effective time of the BIOS watchdog, the downtime of the server to be tested and the watchdog effective time length are sent to the processor (11), the processor (11) compares the detected watchdog effective time length with the effective time length set by the BIOS watchdog effective time length setting module, and records the detection process data and the comparison result data into a detection log, and storing the detection log into the memory.
2. The countdown device for detecting the BIOS watchdog function according to claim 1, wherein the device body (1) is further provided with a display screen (2), and the main board is further provided with a voice prompt module;
the voice prompt module and the display screen (2) are respectively connected with the processor (11);
the processor (11) is also used for playing the effective time of the BIOS watchdog, the downtime of the server to be tested and the effective time of the watchdog through the voice prompt module and displaying the time through the display screen;
and comparing the detected effective time length of the watchdog with the effective time length set by the BIOS watchdog effective time length setting module, and playing the result through the voice prompt module and further playing the result.
3. The apparatus of claim 1,
the device body (1) is also provided with an RS485 communication interface, a CAN network communication interface, an Ethernet communication interface and an RS232 communication interface;
the communication module is in communication connection in a Bluetooth mode, or in communication connection in a WIFI mode, or in communication connection in a radio frequency mode, or in communication connection in an infrared mode, or in communication connection in a GSM mode.
4. The apparatus of claim 1,
the device body (1) further comprises: a WeChat client;
the wechat client is used for enabling the device body to be in communication connection with the wechat client, transmitting data information of the device body to the wechat client, and enabling the plurality of device bodies and the user terminal to obtain the detection log through the wechat client.
5. The apparatus of claim 1,
the mainboard is also provided with a test initial setting circuit, a direct current transformation circuit (14) and a voltage stabilizing circuit (15);
the device body (1) is provided with a test initial control key (13);
the test initial control key (13) is connected with the processor (11) through a test initial setting circuit and is used for carrying out test initial setting on the processor (11) according to a received test initial instruction;
the device comprises a power supply battery (12), a test initial control key (13), a direct current transformation circuit (14), a voltage stabilizing circuit (15), a test initial setting circuit and a processor (11) which are sequentially connected;
the test initial control key (13) is used for acquiring a test initial setting control instruction input by a user and enabling the power supply battery (12) to supply power to the test initial setting circuit to realize test initial setting of the processor (11) after a preset pressing time length is reached.
6. The apparatus of claim 5,
the test initial setting circuit includes: the device comprises an initial resistor R1, an initial resistor R2, an initial resistor R3, an initial capacitor C1, an initial capacitor C2, an initial diode VD and an initial triode Q; the first end of the initial resistor R3 and the positive electrode of the initial capacitor C1 are both connected with the input end of the test initial setting circuit; the cathode of the initial capacitor C1 is connected with one end of the initial resistor R1 and the cathode of the initial diode VD; the other end of the initial resistor R1 is connected with one end of the initial resistor R2 and the b pole of the initial triode Q; the C pole of the initial triode Q is connected with the first end of the initial capacitor C2; the second end of the initial resistor R3, the anode of the initial diode VD, the second end of the initial resistor R2, the e pole of the initial triode Q and the second end of the initial capacitor C2 are all grounded.
7. The apparatus of claim 1,
the memory is internally provided with a detection log management module;
the processor (11) calls the detection log management module, caches the current detection log, and stores the current detection log to the memory after the current detection is finished; the processor (11) identifies the setup time, modification time and viewing time of each detection log;
the memory is also internally stored with an installation GNU compiler suite, a g + + and a gforran compiler, and is used for constructing a log program compiling and running environment and compiling a source code for being called and used by the processor (11);
the processor (11) is further used for identifying the prompt that the time length exceeds the threshold value on the detection log when the effective time length of the detected watchdog exceeds the effective time length set by the BIOS watchdog effective time length setting module, storing the current detection log in a preset folder, calling a web-side interface of the device body (1), uploading the detection log, and prompting detection personnel.
8. A method for detecting a BIOS watchdog function countdown, the method using the apparatus for detecting a BIOS watchdog function countdown according to any one of claims 1 to 7;
the method comprises the following steps:
step one, a processor acquires a network connection control instruction through a network connection control key, and calls a communication module to enable the communication module to be in network communication connection with a server to be tested;
after the communication module is successfully connected with the server to be tested through the network, a network connection success signal is replied to the processor, and the processor displays the network connection success signal on a display screen;
acquiring a watchdog countdown test instruction of the server to be tested through the watchdog countdown control key by the processor, and calling a starting control module of the server to be tested to start the server to be tested;
step four, executing the downtime script module to make the server to be tested shutdown in the self-checking stage;
after the processor acquires the downtime of the server to be detected, the BIOS watchdog taking-effect timing module detects the effective time of the BIOS watchdog, forms the effective time of the watchdog by the effective time of the detected BIOS watchdog and the downtime of the server to be detected, and sends the effective time of the BIOS watchdog, the downtime of the server to be detected and the effective time of the watchdog to the processor;
and step six, the processor compares the detected watchdog effective time with the effective time set by the BIOS watchdog effective time setting module, records the detection process data and the comparison result data into the detection log, and stores the detection log into the memory.
9. The method of claim 8, wherein the method comprises: step six also includes the following steps:
the processor obtains the cycle times for detecting the long countdown of the BIOS watchdog function through the cycle time setting module and obtains the time interval between the cycles for detecting the long countdown of the BIOS watchdog function through the cycle interval time setting module;
according to the cycle times and the time interval between each cycle, executing the steps three to six again, and executing circularly according to the set cycle times and the time interval between each cycle;
and recording the execution process data and the comparison result data of each cycle into a detection log, and storing the detection log into a memory.
CN201810834599.7A 2018-07-26 2018-07-26 Device and method for detecting countdown of BIOS watchdog function Active CN109086154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810834599.7A CN109086154B (en) 2018-07-26 2018-07-26 Device and method for detecting countdown of BIOS watchdog function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810834599.7A CN109086154B (en) 2018-07-26 2018-07-26 Device and method for detecting countdown of BIOS watchdog function

Publications (2)

Publication Number Publication Date
CN109086154A CN109086154A (en) 2018-12-25
CN109086154B true CN109086154B (en) 2022-02-18

Family

ID=64830828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810834599.7A Active CN109086154B (en) 2018-07-26 2018-07-26 Device and method for detecting countdown of BIOS watchdog function

Country Status (1)

Country Link
CN (1) CN109086154B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377350A (en) * 2019-07-18 2019-10-25 深圳市同泰怡信息技术有限公司 A kind of method and apparatus and equipment initializing server apparatus
CN114327986B (en) * 2021-12-29 2023-11-03 苏州浪潮智能科技有限公司 FRB2WDT timeout time determining method, device, equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543097A (en) * 2003-11-05 2004-11-03 中兴通讯股份有限公司 Function testing method and system for hardware watchdog
CN101567571A (en) * 2009-01-16 2009-10-28 上海第二工业大学 Intelligent charging machine for an electric forklift truck
CN201479095U (en) * 2009-06-19 2010-05-19 厦门敏讯信息技术股份有限公司 Startup and shutdown circuit
CN102736967A (en) * 2011-04-13 2012-10-17 鸿富锦精密工业(深圳)有限公司 Test system and method of watchdog timer
CN104615523A (en) * 2015-03-05 2015-05-13 浪潮电子信息产业股份有限公司 Fatigue testing method of BMC management module based on IPMI protocol
DE102015201443A1 (en) * 2014-11-12 2016-05-12 Hyundai Motor Company Method and device for controlling a watchdog
CN106325454A (en) * 2016-08-23 2017-01-11 北京小米移动软件有限公司 Power supply control device and method, and electronic equipment
CN106528319A (en) * 2016-12-02 2017-03-22 山东有人信息技术有限公司 Watchdog circuit capable of configuring dog-feeding cycle
CN107783859A (en) * 2017-11-23 2018-03-09 山东有人信息技术有限公司 A kind of configurable watchdog circuit for resetting duration and timing length
CN107943637A (en) * 2017-12-07 2018-04-20 郑州云海信息技术有限公司 A kind of mains cycle test device and method based on IPMI platforms

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9612893B2 (en) * 2015-05-11 2017-04-04 Silicon Laboratories Inc. Peripheral watchdog timer

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543097A (en) * 2003-11-05 2004-11-03 中兴通讯股份有限公司 Function testing method and system for hardware watchdog
CN101567571A (en) * 2009-01-16 2009-10-28 上海第二工业大学 Intelligent charging machine for an electric forklift truck
CN201479095U (en) * 2009-06-19 2010-05-19 厦门敏讯信息技术股份有限公司 Startup and shutdown circuit
CN102736967A (en) * 2011-04-13 2012-10-17 鸿富锦精密工业(深圳)有限公司 Test system and method of watchdog timer
DE102015201443A1 (en) * 2014-11-12 2016-05-12 Hyundai Motor Company Method and device for controlling a watchdog
CN104615523A (en) * 2015-03-05 2015-05-13 浪潮电子信息产业股份有限公司 Fatigue testing method of BMC management module based on IPMI protocol
CN106325454A (en) * 2016-08-23 2017-01-11 北京小米移动软件有限公司 Power supply control device and method, and electronic equipment
CN106528319A (en) * 2016-12-02 2017-03-22 山东有人信息技术有限公司 Watchdog circuit capable of configuring dog-feeding cycle
CN107783859A (en) * 2017-11-23 2018-03-09 山东有人信息技术有限公司 A kind of configurable watchdog circuit for resetting duration and timing length
CN107943637A (en) * 2017-12-07 2018-04-20 郑州云海信息技术有限公司 A kind of mains cycle test device and method based on IPMI platforms

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种看门狗溢出时间的测试方法;王征宇等;《电子与封装》;20180220(第02期);全文 *

Also Published As

Publication number Publication date
CN109086154A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN109062745B (en) Test terminal with test server hardware temperature
CN108645532B (en) Temperature testing device with temperature testing and alarming functions and temperature testing method
CN106897219B (en) Method and device for testing stability of mobile terminal system
US10955482B2 (en) Method and device for acquiring battery power level and electronic device
CN109086154B (en) Device and method for detecting countdown of BIOS watchdog function
CN111341090B (en) Bluetooth remote controller pressure measurement method, control device and computer readable storage medium
CN106547653B (en) Computer system fault state detection method, device and system
CN115827111B (en) Method and device for adjusting server startup item, storage medium and electronic device
CN104484592A (en) Starting method and system of mobile equipment factory pattern
US20130166958A1 (en) Software burning system and burning control method
CN104881283A (en) Method and system for obtaining root privilege of terminal device based on android
CN108959064B (en) Popup window processing method and device for automatic test
CN112231228A (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN113077834A (en) Storage device testing method and device, television and storage medium
US10776128B2 (en) Method and device for low power power-on processing
CN104881357A (en) System And Method For Scan-testing Of Idle Functional Units In Operating Systems
US20140033179A1 (en) Application testing
CN104317685A (en) Starting method of calculator system
CN104239211A (en) Method and device for enabling mobile terminal to rapidly enter test mode
CN111128139B (en) Non-invasive voice test method and device
WO2016198003A1 (en) Mobile terminal power source management method and device, and mobile terminal
CN112114901A (en) Standby control circuit, method, device and storage medium
CN112946562B (en) Power failure protection method and device for double-core intelligent electric meter and double-core intelligent electric meter
CN110008105A (en) A kind of BMC time reservation method, device and electronic equipment and storage medium
TW201416855A (en) System power-on monitoring method and electronic apparatus

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