[go: up one dir, main page]

CN101436154B - Computer motherboard startup and shutdown test system and method - Google Patents

Computer motherboard startup and shutdown test system and method Download PDF

Info

Publication number
CN101436154B
CN101436154B CN2007102025357A CN200710202535A CN101436154B CN 101436154 B CN101436154 B CN 101436154B CN 2007102025357 A CN2007102025357 A CN 2007102025357A CN 200710202535 A CN200710202535 A CN 200710202535A CN 101436154 B CN101436154 B CN 101436154B
Authority
CN
China
Prior art keywords
test
shutdown
power
delay
system voltage
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.)
Expired - Fee Related
Application number
CN2007102025357A
Other languages
Chinese (zh)
Other versions
CN101436154A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2007102025357A priority Critical patent/CN101436154B/en
Publication of CN101436154A publication Critical patent/CN101436154A/en
Application granted granted Critical
Publication of CN101436154B publication Critical patent/CN101436154B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A computer mainboard startup and shutdown test method comprises the following steps: setting test parameters including test times, startup delay and shutdown delay; (b) sending a starting signal to a mainboard; (c) starting timing according to the set starting time delay; (d) when the set startup delay is reached, detecting whether the system voltage is normal or not during startup; (e) if the system voltage is abnormal during starting up, turning to the step (i), otherwise, sending a shutdown signal to the mainboard; (f) starting timing according to the set shutdown delay; (g) when the set shutdown delay is reached, detecting whether the system voltage is normal or not during shutdown; (h) if the system voltage is normal when the system is shut down, turning to the step (i), otherwise, performing shutdown verification; (i) recording a test result; and (j) judging whether to perform the next test. The invention also provides a system for testing the startup and shutdown of the computer mainboard. The invention can effectively test the startup and shutdown of the computer mainboard.

Description

计算机主板开关机测试系统及方法System and method for testing computer motherboard switch

技术领域 technical field

本发明涉及一种计算机主板测试系统及方法,特别涉及一种计算机主板开关机测试系统及方法。The invention relates to a computer main board testing system and method, in particular to a computer main board switching machine testing system and method.

背景技术 Background technique

随着计算机的普及,许多厂家开始大量生产计算机以满足消费者的需求,在设计及生产的过程中,需要对计算机配件(如主板、显示器、硬盘)做不同的测试,主板是计算机的根本所在,主板测试是计算机研发、生产、制造厂商的必须工作,测试主板能否正常开关机是主板测试中重要的测试项目。With the popularity of computers, many manufacturers began to mass-produce computers to meet the needs of consumers. In the process of design and production, it is necessary to do different tests on computer accessories (such as motherboards, monitors, hard drives). The motherboard is the root of the computer. , Motherboard testing is a must for computer R&D, production, and manufacturers. Testing whether the motherboard can be turned on and off normally is an important test item in motherboard testing.

中国知识产权局于2003年9月3日公告的02238767.6号专利揭露了一种计算机主板测试装置,该装置包括:一用以接收并解释一特定端口地址的一写入资料、并将该写入资料闩锁保存的命令解释单元,该命令解释单元经由一标准界面与该计算机主机板相耦接;以及一测试过程控制单元,与该命令解释单元相耦接,且经由连接线连接该计算机主机板的电源开关与重置开关。No. 02238767.6 patent announced by the China Intellectual Property Office on September 3, 2003 discloses a computer motherboard testing device, which includes: a write data for receiving and explaining a specific port address, and write the data A command interpretation unit for storing data latches, the command interpretation unit is coupled to the computer main board via a standard interface; and a test process control unit is coupled to the command interpretation unit and connected to the computer main board via a connection line board power switch and reset switch.

上述测试计算机主板开关机装置可以达到测试的目的,但是该装置需要经由标准界面与计算机主板连接,从特定端口地址读取测试信息。因此,该装置对标准界面的依赖性大,若经由该标准界面读取测试信息失败,则不能实现主板开关机测试,若读取的测试信息错误,则测试结果不可靠。The above-mentioned test computer motherboard switch device can achieve the purpose of testing, but the device needs to be connected to the computer motherboard via a standard interface, and read test information from a specific port address. Therefore, the device is highly dependent on the standard interface. If the test information fails to be read through the standard interface, the motherboard power-on/off test cannot be realized. If the read test information is wrong, the test result is unreliable.

发明内容 Contents of the invention

鉴于以上内容,有必要提出一种能够有效地测试主板开关机的计算机主板开关机测试系统及方法。In view of the above, it is necessary to propose a computer mainboard power-on/off testing system and method that can effectively test the mainboard power-on/off.

一种计算机主板开关机测试系统,用于测试所述主板开关机是否正常,该系统包括:设定模块,用于设定测试参数,所述测试参数包括测试次数、开机延时及关机延时;开机测试模块,用于发送开机信号给主板,根据设定的开机延时进行计时,当开机延时到达时,检测开机时的系统电压是否正常,以判断开机是否正常;关机测试模块,用于当开机正常时发送关机信号给主板,根据设定的关机延时进行计时,当关机延时到达时,检测关机时的系统电压是否正常,以判断关机是否正常;关机验证模块,用于当关机不正常时验证是否由于意外造成关机不正常;记录模块,用于记录测试结果;及判定模块,用于根据设定的测试次数及记录的测试结果判定是否进行下一次测试。A computer main board switch machine test system, used to test whether the main board switch machine is normal, the system includes: a setting module, used to set test parameters, the test parameters include the number of tests, power-on delay and power-off delay The power-on test module is used to send a power-on signal to the main board, and timing is performed according to the set power-on delay. When the shutdown signal is sent to the main board when the startup is normal, timing is performed according to the shutdown delay set. When the shutdown delay arrives, it is detected whether the system voltage is normal at the time of shutdown to determine whether the shutdown is normal; the shutdown verification module is used for current When the shutdown is abnormal, verify whether the shutdown is abnormal due to an accident; the recording module is used to record the test results; and the judgment module is used to judge whether to perform the next test according to the set test times and the recorded test results.

一种计算机主板开关机测试方法,用于测试主板开关机是否正常,该方法包括以下步骤:(a)设定测试参数,包括测试次数、开机延时、关机延时;(b)发送开机信号给主板;(c)根据设定的开机延时开始计时;(d)当设定的开机延时到达时,检测开机时的系统电压是否正常;(e)若开机时的系统电压不正常,则当前测试未通过,直接转到步骤(i),否则发送关机信号给主板;(f)根据设定的关机延时开始计时;(g)当设定的关机延时到达时,检测关机时的系统电压是否正常;(h)若关机时的系统电压正常,则当前测试通过,直接转到步骤(i),否则进行关机验证,若关机验证通过,则当前测试通过;(i)记录测试结果;及(j)根据设定的测试次数及记录的测试结果判断是否进行下一次测试。A method for testing the power on and off of the main board of a computer is used to test whether the power on and off of the main board is normal. The method comprises the following steps: (a) setting test parameters, including the number of times of testing, power-on delay, and power-off delay; (b) sending a power-on signal (c) Start timing according to the set power-on delay; (d) When the set power-on delay arrives, check whether the system voltage at power-on is normal; (e) If the system voltage at power-on is abnormal, If the current test fails, go directly to step (i), otherwise send a shutdown signal to the main board; (f) start timing according to the preset shutdown delay; (g) when the preset shutdown delay arrives, detect when the shutdown Whether the system voltage is normal; (h) If the system voltage is normal when shutting down, the current test is passed, and directly go to step (i), otherwise, the shutdown verification is performed, and if the shutdown verification passes, the current test is passed; (i) record the test Result; and (j) judging whether to conduct the next test according to the set test times and the recorded test results.

所述计算机主板开关机测试系统及方法通过检测系统电压判断开关机是否正常,该系统及方法不依赖于主板的标准界面,不会由于测试信息的读取失败或读取错误导致测试失败或测试结果不可靠。The computer motherboard switch test system and method judge whether the switch is normal by detecting the system voltage. The system and method do not depend on the standard interface of the motherboard, and will not cause test failure or test failure due to test information reading failure or reading error. The results are unreliable.

附图说明 Description of drawings

图1为本发明计算机主板开关机测试系统较佳实施例的运行环境图。Fig. 1 is the operating environment diagram of the preferred embodiment of the test system for switching on and off the mainboard of the computer of the present invention.

图2为本发明计算机主板开关机测试系统较佳实施例的功能模块图。Fig. 2 is a functional block diagram of a preferred embodiment of the computer mainboard switch test system of the present invention.

图3为本发明计算机主板开关机测试方法较佳实施例的流程图。Fig. 3 is a flow chart of a preferred embodiment of the test method for switching on and off the mainboard of the computer according to the present invention.

具体实施方式 Detailed ways

如图1所示,是本发明计算机主板开关机测试系统较佳实施例的运行环境图。该计算机主板开关机测试系统10运行在一种具有数据处理能力并且能够运行软件的电子硬件上,如微控制器(Micro Controlling Unit,MCU)。本实施例以单片机1为例进行说明,该单片机1分别与主板4、计算机电源5、输入装置2及显示装置3相连接。所述计算机主板开关机测试系统10用于根据输入装置2设定的测试参数,通过检测计算机电源5上的系统电压来测试主板4的开关机是否正常,并将测试结果输出至显示装置3。所述显示装置3包括指示灯、报警器及数码管(图1中均未画出)。所述指示灯用于当主板4测试通过时发出测试成功的提示信息,所述报警器用于当主板4测试失败时发出测试失败的报警信息,所述数码管用于显示主板4的当前测试次数。该指示灯可以是发光二极管(Light Emitting Diode,LED),该数码管可以是七段LED数码管。As shown in FIG. 1 , it is an operating environment diagram of a preferred embodiment of the computer mainboard power-on/off test system of the present invention. The computer motherboard switch test system 10 runs on a kind of electronic hardware with data processing capability and capable of running software, such as a microcontroller (Micro Controlling Unit, MCU). In this embodiment, the single-chip microcomputer 1 is taken as an example for illustration, and the single-chip microcomputer 1 is respectively connected with the main board 4 , the computer power supply 5 , the input device 2 and the display device 3 . The computer mainboard switch test system 10 is used to test whether the mainboard 4 is on or off by detecting the system voltage on the computer power supply 5 according to the test parameters set by the input device 2, and output the test results to the display device 3. The display device 3 includes an indicator light, an alarm and a nixie tube (not shown in FIG. 1 ). Described indicator lamp is used for sending the prompt message of test success when mainboard 4 tests pass, and described alarm is used for sending the alarm message of test failure when mainboard 4 tests fail, and described nixie tube is used for displaying the current test times of mainboard 4. The indicator light may be a light emitting diode (Light Emitting Diode, LED), and the digital tube may be a seven-segment LED digital tube.

所述主板4与计算机电源5连接,通过计算机电源5供电。若需要测试主板4进入操作系统的开关机性能,将主板4与硬盘(图1中未画出)连接。计算机主板开关机测试系统10通过发送开/关机信号给主板4以控制其开关机,该开/关机信号是主板4的电源开关的控制信号,即Power Button控制信号。计算机电源5能够为主板4提供多个不同的系统电压,如5V_SYS、3V_SYS、12V_SYS。计算机主板开关机测试系统10可以通过检测该等系统电压的高低来判断主板4的开关机是否正常,本实施例通过检测5V_SYS来测试主板4的开关机。当主板4正常开机后计算机电源5上的5V_SYS是约为5V的相对高电平,当主板4正常关机后计算机电源5上5V_SYS是低于2V的相对低电平。单片机1能够检测出5V_SYS是相对高电平或相对低电平。主板4开机后检测5V_SYS,若检测不到相对高电平,则表明开机失败(即关机不正常);主板4关机后检测5V_SYS,若检测不到相对低电平,则表明关机失败。The mainboard 4 is connected with a computer power supply 5 and is powered by the computer power supply 5 . If it is necessary to test the switching performance of the mainboard 4 into the operating system, the mainboard 4 is connected with the hard disk (not shown in Fig. 1). The mainboard switch test system 10 of the computer controls its switch machine by sending on/off signal to mainboard 4, and this on/off signal is the control signal of the power switch of mainboard 4, i.e. Power Button control signal. The computer power supply 5 can provide multiple different system voltages for the motherboard 4, such as 5V_SYS, 3V_SYS, 12V_SYS. The computer mainboard switch test system 10 can judge whether the switch of the mainboard 4 is normal by detecting the level of these system voltages. In this embodiment, the switch of the mainboard 4 is tested by detecting 5V_SYS. When the mainboard 4 is turned on normally, the 5V_SYS on the computer power supply 5 is a relatively high level of about 5V, and when the mainboard 4 is normally shut down, the 5V_SYS on the computer power supply 5 is a relatively low level lower than 2V. The single chip microcomputer 1 can detect whether 5V_SYS is a relatively high level or a relatively low level. Mainboard 4 detects 5V_SYS after booting, if no relatively high level is detected, it indicates that booting fails (i.e. shutdown is abnormal); mainboard 4 detects 5V_SYS after shutting down, if no relatively low level is detected, then it indicates shutdown failure.

如图2所示,是本发明计算机主板开关机测试系统10较佳实施例的功能模块图。As shown in FIG. 2 , it is a functional block diagram of a preferred embodiment of the computer mainboard power-on/off test system 10 of the present invention.

所述计算机主板开关机测试系统10包括:初始化模块100、设定模块101、开机测试模块102、关机测试模块103、关机验证模块104、记录模块105、显示模块106及判定模块107。The computer motherboard switch test system 10 includes: an initialization module 100, a setting module 101, a power-on test module 102, a power-off test module 103, a power-off verification module 104, a recording module 105, a display module 106 and a judgment module 107.

初始化模块100用于对单片机1进行初始化设置,单片机1的初始化设置包括寄存器的设置、定时器的设置、中断的设置等。The initialization module 100 is used for initializing the single-chip microcomputer 1. The initialization setting of the single-chip microcomputer 1 includes register setting, timer setting, interrupt setting and the like.

设定模块101用于设定测试参数,该测试参数由用户通过输入装置2输入。所述测试参数包括测试次数、开机延时及关机延时。开机延时是指从发送开机信号到发送关机信号的时间间隔,关机延时是指从发送关机信号到发送开机信号的时间间隔。在本实施例中,开机信号及关机信号都是主板4的电源开关的控制信号,是一个瞬时信号。若不需要测试主板4进入操作系统的开关机性能,可以设定比较小的开机延时与关机延时,如均设为6秒;若需要测试主板4进入操作系统的开关机性能,设定比较大的开机延时与关机延时,如均设为50秒。用户通过输入装置2(如键盘或者按键)来设定测试参数。例如,通过按键设定测试次数为1000次,开机延时和关机延时均为6秒。The setting module 101 is used for setting test parameters, which are input by the user through the input device 2 . The test parameters include test times, startup delay and shutdown delay. The power-on delay refers to the time interval from sending the power-on signal to sending the power-off signal, and the power-off delay refers to the time interval from sending the power-off signal to sending the power-on signal. In this embodiment, both the power-on signal and the power-off signal are control signals of the power switch of the motherboard 4, and are instantaneous signals. If it is not necessary to test the power-on/off performance of the mainboard 4 entering the operating system, a relatively small start-up delay and shutdown delay can be set, such as both being set to 6 seconds; if it is necessary to test the power-on/off performance of the mainboard 4 entering the operating system, set Relatively large power-on delay and power-off delay, for example, both are set to 50 seconds. The user sets the test parameters through the input device 2 (such as a keyboard or keys). For example, set the number of tests to 1000 by pressing the button, and both the power-on delay and the power-off delay are 6 seconds.

开机测试模块102用于发送开机信号给主板4,并根据设定模块101设定的开机延时进行计时,当开机延时到达时检测系统电压,并判断系统电压是否是相对高电平,从而判断主板4是否开机正常。当主板4正常开机后,检测到的系统电压为相对高电平。The power-on test module 102 is used to send a power-on signal to the mainboard 4, and performs timing according to the power-on delay set by the setting module 101, detects the system voltage when the power-on delay arrives, and judges whether the system voltage is a relatively high level, thereby Determine whether the mainboard 4 is powered on normally. When the mainboard 4 is turned on normally, the detected system voltage is at a relatively high level.

关机测试模块103用于当主板4开机正常时发送关机信号给主板4,并根据设定模块101设定的关机延时进行计时,当关机延时到达时检测系统电压,并判断关机系统电压是否是相对低电平,从而判断主板4是否关机正常。当主板4正常关机后,检测到的系统电压为相对低电平。The shutdown test module 103 is used to send a shutdown signal to the motherboard 4 when the mainboard 4 is turned on normally, and to perform timing according to the shutdown delay set by the setting module 101, detect the system voltage when the shutdown delay arrives, and judge whether the shutdown system voltage is is a relatively low level, thereby judging whether the mainboard 4 is shut down normally. When the motherboard 4 is shut down normally, the detected system voltage is relatively low level.

关机验证模块104用于在关机失败时验证该关机失败是否由于意外造成,以排除进入操作系统造成的错误测试结果。假定开机延时设为50秒,计算机在开机48秒后进入操作系统,则开机测试模块102在发送开机信号后经过50秒发送关机信号,此时主板4正在进入操作系统。主板4在进入操作系统的时候会屏蔽该关机信号(屏蔽时间约为10秒),主板4不能响应该关机信号而导致关机不正常。为了避免这种情况出现,在测试到关机失败后进行关机验证,延时一段时间(如10秒)再次发送关机信号并检测系统电压,若系统电压不是相对低电平,则判定未通过验证,若系统电压是相对低电平,则判定通过验证。关机验证还可以重复几次发送关机信号并检测系统电压。The shutdown verification module 104 is used to verify whether the shutdown failure is caused by an accident, so as to eliminate the wrong test result caused by entering the operating system. Assuming that the boot delay is set to 50 seconds, and the computer enters the operating system after booting for 48 seconds, then the boot test module 102 sends a shutdown signal through 50 seconds after sending the boot signal, and now the mainboard 4 is entering the operating system. The mainboard 4 can shield the shutdown signal (the shielding time is about 10 seconds) when entering the operating system, and the mainboard 4 cannot respond to the shutdown signal and cause the shutdown to be abnormal. In order to avoid this situation, the shutdown verification is performed after the shutdown failure is tested, and the shutdown signal is sent again after a delay for a period of time (such as 10 seconds) and the system voltage is detected. If the system voltage is not relatively low, it is determined that the verification has not passed. If the system voltage is at a relatively low level, it is determined that the verification is passed. Shutdown verification can also repeat several times to send shutdown signal and detect system voltage.

记录模块105用于记录测试结果。在一次主板4的测试过程中,若开机正常并且关机正常(关机正常包括通过关机验证),则通过该次测试。在本实施例中记录模块105记录当前测试次数及通过测试的次数(简称通过次数),每测试一次,当前测试次数加1,每通过一次测试,通过次数加1。若一次未通过,则测试结束时记录的通过次数为0,若设定的测试次数内每一次测试都通过,则测试结束时记录的通过次数等于设定的测试次数。该记录模块105还可以选择记录测试未通过的次数。The recording module 105 is used for recording test results. During a test of the mainboard 4, if the power-on is normal and the power-off is normal (normal power-off includes passing the power-off verification), the test is passed. In this embodiment, the recording module 105 records the current number of tests and the number of passed tests (abbreviated as the number of passes). For each test, the current number of tests is increased by 1, and each time a test is passed, the number of passes is increased by 1. If one fails, the number of passes recorded at the end of the test is 0. If each test is passed within the set number of tests, the number of passes recorded at the end of the test is equal to the set number of tests. The recording module 105 may also choose to record the number of failed tests.

显示模块106用于在每次测试结束时控制显示装置3的数码管显示当前测试次数,在整个测试通过时控制显示装置3的指示灯发出测试通过的提示信息,在测试失败时控制显示装置3的报警器发出测试失败的报警信息。若设定的测试次数内每一次测试都通过,则整个测试通过。若开机失败或关机验证未通过,则测试失败。可通过控制显示装置3的指示灯持续发亮或者闪烁来表示整个测试通过。The display module 106 is used to control the digital tube of the display device 3 to display the current number of tests at the end of each test, to control the indicator light of the display device 3 to send a prompt message that the test is passed when the entire test is passed, and to control the display device 3 when the test fails. The annunciator sends out the alarm message of test failure. If each test is passed within the set number of tests, the entire test is passed. If the power-on fails or the power-off verification fails, the test fails. It can be indicated that the entire test is passed by controlling the indicator light of the display device 3 to continuously light up or flash.

判定模块107用于判定是否继续测试。本实施例中若当前测试次数大于通过次数或当前测试次数达到设定的测试次数,判定模块107判定结束测试。当前测试次数大于通过次数表明开机失败或未通过关机验证。还可以选择仅当当前测试次数达到设定的测试次数时结束测试。The judging module 107 is used for judging whether to continue the test. In this embodiment, if the current number of tests is greater than the number of passes or the current number of tests reaches the set number of tests, the determination module 107 determines to end the test. If the current number of tests is greater than the number of passes, it indicates that the startup failed or failed the shutdown verification. You can also choose to end the test only when the current number of tests reaches the set number of tests.

如图3所示,是本发明计算机主板开关机测试方法较佳实施例的流程图。As shown in FIG. 3 , it is a flow chart of a preferred embodiment of the test method for switching on and off the mainboard of the computer according to the present invention.

步骤S200,初始化模块100对单片机1进行初始化设置,单片机1的初始化设置包括寄存器的设置、定时器的设置、中断的设置等。In step S200, the initialization module 100 performs initialization settings on the single-chip microcomputer 1. The initialization settings of the single-chip microcomputer 1 include register settings, timer settings, interrupt settings, and the like.

步骤S201,设定模块101设定测试参数,该测试参数由用户通过输入装置2输入,如测试次数、开机延时、关机延时,该测试参数可根据用户实际需求设定。若不需要测试主板4进入操作系统的开关机性能,可以设定比较小的开机延时与关机延时,如均设为6秒;若需要测试主板4进入操作系统的开关机性能,设定比较大的开机延时与关机延时,如均设为50秒。In step S201, the setting module 101 sets test parameters. The test parameters are input by the user through the input device 2, such as the number of tests, start-up delay, and shutdown delay. The test parameters can be set according to the actual needs of the user. If it is not necessary to test the power-on/off performance of the mainboard 4 entering the operating system, a relatively small start-up delay and shutdown delay can be set, such as both being set to 6 seconds; if it is necessary to test the power-on/off performance of the mainboard 4 entering the operating system, set Relatively large power-on delay and power-off delay, for example, both are set to 50 seconds.

步骤S202,开机测试模块102发送开机信号给主板4,该开机信号是主板4电源开关的控制信号。Step S202 , the power-on test module 102 sends a power-on signal to the main board 4 , and the power-on signal is a control signal of a power switch of the main board 4 .

步骤S203,开机测试模块102根据设定的开机延时开始计时。In step S203, the power-on test module 102 starts timing according to the set power-on delay.

步骤S204,当设定的开机延时到达时,开机测试模块102检测系统电压。本实施例检测的系统电压是计算机电源5的5V_SYS。In step S204, when the preset power-on delay is reached, the power-on test module 102 detects the system voltage. The system voltage detected in this embodiment is 5V_SYS of the computer power supply 5 .

步骤S205,开机测试模块102判断系统电压是否是相对高电平,若不是,则当前测试未通过,转到步骤S211。In step S205, the power-on test module 102 judges whether the system voltage is at a relatively high level, if not, the current test fails, and the process goes to step S211.

步骤S206,若检测到系统电压是相对高电平,则说明主板4此次测试过程中开机正常,此时,关机测试模块103发送关机信号给主板4。该关机信号是电源开关的控制信号。Step S206 , if it is detected that the system voltage is at a relatively high level, it means that the mainboard 4 is powered on normally during the test. At this time, the shutdown test module 103 sends a shutdown signal to the mainboard 4 . The shutdown signal is a control signal of a power switch.

步骤S207,关机测试模块103根据设定的关机延时开始计时。In step S207, the shutdown test module 103 starts timing according to the preset shutdown delay.

步骤S208,当计时到设定的关机延时时,关机测试模块103检测系统电压,该系统电压是计算机电源5的5V_SYS。Step S208 , when the timer reaches the preset shutdown delay, the shutdown test module 103 detects the system voltage, which is 5V_SYS of the computer power supply 5 .

步骤S209,关机测试模块103判断系统电压是否是相对低电平,若检测到系统电压为相对低电平,说明主板4此次测试过程中关机正常,则当前测试通过,转到步骤S211。In step S209, the shutdown test module 103 judges whether the system voltage is at a relatively low level. If it is detected that the system voltage is at a relatively low level, it means that the mainboard 4 is normally shut down during the test, and the current test is passed. Go to step S211.

步骤S210,若关机测试模块103检测到的系统电压不是相对低电平,表明关机失败,则进行关机验证,以排除进入操作系统导致的错误测试结果。关机验证的步骤如下:关机验证模块104延时10秒后发送关机信号,经过设定的关机延时后检测系统电压。若检测到系统电压为相对低电平,则通过验证,若检测到系统电压不是相对低电平,则未通过验证,若通过验证,则当前测试通过。In step S210, if the system voltage detected by the shutdown test module 103 is not at a relatively low level, which indicates that the shutdown fails, then a shutdown verification is performed to eliminate erroneous test results caused by entering the operating system. The steps of the shutdown verification are as follows: the shutdown verification module 104 sends a shutdown signal after a delay of 10 seconds, and detects the system voltage after a preset shutdown delay. If it is detected that the system voltage is at a relatively low level, the verification is passed; if it is detected that the system voltage is not at a relatively low level, the verification is not passed; if the verification is passed, the current test is passed.

步骤S211,记录模块105记录当前测试次数及通过次数。若步骤S209检测到系统电压为相对低电平或步骤S210通过关机验证,则通过该次测试,此时通过次数加1。每测试一次当前测试次数加1。In step S211, the recording module 105 records the current number of tests and the number of passes. If step S209 detects that the system voltage is at a relatively low level or step S210 passes the shutdown verification, the test is passed, and the number of passes is increased by 1. The current number of tests is incremented by 1 for each test.

步骤S212,显示模块106控制显示装置3的数码管显示该主板4的当前测试次数;若当前测试次数大于通过次数,显示模块106控制显示装置3的报警器发出报警信息;若当前测试次数达到设定的测试次数,显示模块106控制显示装置3的指示灯持续发亮来表示整个测试通过。Step S212, the display module 106 controls the digital tube of the display device 3 to display the current number of tests of the main board 4; if the current number of tests is greater than the number of passes, the display module 106 controls the alarm of the display device 3 to send an alarm message; For a certain number of tests, the display module 106 controls the indicator light of the display device 3 to keep on to indicate that the entire test is passed.

步骤S213,判定模块107根据记录模块105得到的测试结果及设定模块101设定的测试次数判定是否继续测试。若当前测试次数大于通过次数或当前测试次数达到设定的测试次数,判定模块107判定结束测试,否则转到步骤S202进行下一次测试。Step S213 , the determination module 107 determines whether to continue the test according to the test result obtained by the recording module 105 and the number of tests set by the setting module 101 . If the current number of tests is greater than the number of passes or the current number of tests reaches the set number of tests, the determination module 107 determines to end the test, otherwise, go to step S202 for the next test.

在本较佳实施例的流程中,一旦开机失败或未通过关机验证,就发出报警信息并结束测试。该流程可以缩短测试时间,快速发现开关机故障。还可以采取其他的测试流程,如每次开机失败或关机失败后记录失败次数,再继续下一次测试,直到达到所设定的测试次数。In the process of this preferred embodiment, once the startup fails or fails to pass the shutdown verification, an alarm message is sent and the test ends. This process can shorten the test time and quickly find the switch failure. Other testing processes can also be adopted, such as recording the number of failures after each startup failure or shutdown failure, and then continuing to the next test until the set number of tests is reached.

上述实施例按照主板开关机测试的一般顺序,采用先开机测试后关机测试的顺序,若采用先关机测试后关机测试的顺序,不脱离本发明的精神及范围。The above-mentioned embodiment adopts the order of power-on test first and then power-off test according to the general sequence of mainboard power-on and power-off testing. If the order of power-off test and then power-off test is adopted, it does not deviate from the spirit and scope of the present invention.

Claims (8)

1.一种计算机主板开关机测试系统,用于测试所述主板开关机是否正常,其特征在于,该系统包括:1. a computer motherboard switch machine testing system, whether normal for testing described motherboard switch machine, it is characterized in that, this system comprises: 设定模块,用于设定测试参数,所述测试参数包括测试次数、开机延时及关机延时,所述开机延时及关机延时依照进入操作系统与不进入操作系统两种不同情形进行设定;The setting module is used to set the test parameters. The test parameters include the number of tests, the power-on delay and the shutdown delay. The power-on delay and the shutdown delay are performed according to two different situations of entering the operating system and not entering the operating system. set up; 开机测试模块,用于发送开机信号给主板,根据设定的开机延时进行计时,当开机延时到达时,检测开机时的系统电压是否正常,以判断开机是否正常;The power-on test module is used to send a power-on signal to the main board, and timing is performed according to the preset power-on delay. When the power-on delay arrives, it is detected whether the system voltage is normal during power-on, so as to determine whether the power-on is normal; 关机测试模块,用于当开机正常时发送关机信号给主板,根据设定的关机延时进行计时,当关机延时到达时,检测关机时的系统电压是否正常,以判断关机是否正常;The shutdown test module is used to send a shutdown signal to the main board when the startup is normal, and to perform timing according to the preset shutdown delay. When the shutdown delay arrives, it detects whether the system voltage is normal during shutdown to determine whether the shutdown is normal; 关机验证模块,用于当关机不正常时进行关机验证,延时一段时间再次发送关机信号给主板并检测关机时的系统电压,或者重复几次发送关机信号给主板并检测关机时的系统电压,以排除主板进入操作系统造成的错误测试结果;The shutdown verification module is used to perform shutdown verification when the shutdown is abnormal, and send the shutdown signal to the main board after a delay for a period of time to detect the system voltage during shutdown, or repeat several times to send the shutdown signal to the main board and detect the system voltage during shutdown. In order to eliminate the wrong test results caused by the motherboard entering the operating system; 记录模块,用于记录测试结果,所述测试结果包括当前测试次数及通过测试次数;及Recording module, is used for recording test result, and described test result comprises current test number of times and pass test number of times; And 判定模块,用于根据设定的测试次数及记录的测试结果判定是否进行下一次测试。The judging module is used to judge whether to conduct the next test according to the set test times and the recorded test results. 2.如权利要求1所述的计算机主板开关机测试系统,其特征在于,该系统还包括显示模块,用于显示该测试结果。2. The computer mainboard switch test system according to claim 1, further comprising a display module for displaying the test result. 3.如权利要求1所述的计算机主板开关机测试系统,其特征在于,所述开机信号及关机信号是主板的电源开关的控制信号。3. The computer main board switch machine test system as claimed in claim 1, characterized in that, the power-on signal and the power-off signal are control signals of a power switch of the main board. 4.如权利要求1所述的计算机主板开关机测试系统,其特征在于,所述开机及关机时的系统电压是计算机电源提供的系统电压,在开机正常时是高电平,在关机正常时是低电平。4. The computer mainboard switch machine test system as claimed in claim 1, wherein the system voltage when said starting and shutting down is the system voltage provided by the computer power supply, which is a high level when starting up normally, and is at a high level when shutting down normally. is low. 5.一种计算机主板开关机测试方法,用于测试主板开关机是否正常,其特征在于,该方法包括以下步骤:5. a computer motherboard switch machine test method, whether normal for testing the main board switch machine, it is characterized in that, the method comprises the following steps: (a)设定测试参数,包括测试次数、开机延时、关机延时,所述开机延时及关机延时依照进入操作系统与不进入操作系统两种不同情形进行设定;(a) Set test parameters, including the number of tests, start-up delay, and shutdown delay. The start-up delay and shutdown delay are set according to two different situations of entering the operating system and not entering the operating system; (b)发送开机信号给主板;(b) Send a power-on signal to the main board; (c)根据设定的开机延时开始计时;(c) Start timing according to the set power-on delay; (d)当设定的开机延时到达时,检测开机时的系统电压是否正常;(d) When the set power-on delay arrives, check whether the system voltage at power-on is normal; (e)若开机时的系统电压不正常,则当前测试未通过,直接转到步骤(i),否则发送关机信号给主板;(e) If the system voltage is not normal when starting up, the current test fails, and go directly to step (i), otherwise send a shutdown signal to the main board; (f)根据设定的关机延时开始计时;(f) Start timing according to the set shutdown delay; (g)当设定的关机延时到达时,检测关机时的系统电压是否正常;(g) When the set shutdown delay arrives, check whether the system voltage at shutdown is normal; (h)若关机时的系统电压正常,则当前测试通过,直接转到步骤(i),否则若关机时的系统电压不正常,则进行关机验证,延时一段时间再次发送关机信号给主板并检测关机时的系统电压,或者重复几次发送关机信号给主板并检测关机时的系统电压,以排除进入操作系统造成的错误测试结果,若关机验证通过,则当前测试通过;(h) If the system voltage is normal when shutting down, the current test is passed and go directly to step (i), otherwise, if the system voltage is abnormal when shutting down, perform shutdown verification, delay for a while and send the shutdown signal to the main board again and Detect the system voltage when shutting down, or repeatedly send the shutdown signal to the motherboard and detect the system voltage when shutting down, so as to eliminate the wrong test results caused by entering the operating system. If the shutdown verification passes, the current test passes; (i)记录测试结果,所述测试结果包括当前测试次数及通过测试次数;及(i) record test results, said test results including the current number of tests and the number of passed tests; and (j)根据设定的测试次数及记录的测试结果判断是否进行下一次测试。(j) Determine whether to conduct the next test according to the set test times and the recorded test results. 6.如权利要求5所述的计算机主板开关机测试方法,其特征在于,在所述记录测试结果的步骤后还包括显示该测试结果。6. The method for testing the power on and off of the mainboard of the computer as claimed in claim 5, further comprising displaying the test result after the step of recording the test result. 7.如权利要求5所述的计算机主板开关机测试方法,其特征在于,该开机信号及关机信号是主板的电源开关的控制信号。7. The computer mainboard power-on/off test method according to claim 5, wherein the power-on signal and the power-off signal are control signals of a power switch of the mainboard. 8.如权利要求5所述的计算机主板开关机测试方法,其特征在于,所述开机及关机时的系统电压是计算机电源提供的系统电压,在开机正常时是高电平,在关机正常时是低电平。8. The computer main board switch machine testing method as claimed in claim 5, characterized in that, the system voltage when said starting and shutting down is the system voltage provided by the computer power supply, which is a high level when starting up normally, and is at a high level when shutting down normally. is low.
CN2007102025357A 2007-11-14 2007-11-14 Computer motherboard startup and shutdown test system and method Expired - Fee Related CN101436154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007102025357A CN101436154B (en) 2007-11-14 2007-11-14 Computer motherboard startup and shutdown test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007102025357A CN101436154B (en) 2007-11-14 2007-11-14 Computer motherboard startup and shutdown test system and method

Publications (2)

Publication Number Publication Date
CN101436154A CN101436154A (en) 2009-05-20
CN101436154B true CN101436154B (en) 2012-05-30

Family

ID=40710601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007102025357A Expired - Fee Related CN101436154B (en) 2007-11-14 2007-11-14 Computer motherboard startup and shutdown test system and method

Country Status (1)

Country Link
CN (1) CN101436154B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117237A (en) * 2009-12-30 2011-07-06 鸿富锦精密工业(深圳)有限公司 Test device for motherboard startup and shutdown
CN102375766B (en) * 2010-08-16 2016-05-18 中山市云创知识产权服务有限公司 The on-off test device of electronic installation and method
CN102446127A (en) * 2010-10-11 2012-05-09 鸿富锦精密工业(深圳)有限公司 Power supply device and method for testing on/off of computer mainboard
CN102445626B (en) * 2010-10-13 2015-07-22 中兴通讯股份有限公司 Single board testing method and device for the same
CN101982961B (en) * 2010-10-26 2013-04-10 青岛海信移动通信技术股份有限公司 Method and system for testing power on/off reliability of mobile phone
CN102479120A (en) * 2010-11-22 2012-05-30 鸿富锦精密工业(深圳)有限公司 Startup/shutdown test system and startup/shutdown test method
CN102572509A (en) * 2011-12-16 2012-07-11 深圳创维数字技术股份有限公司 Set top box starting detection method and device
CN102591769B (en) * 2011-12-27 2015-01-21 奇智软件(北京)有限公司 Method and device for off time detection
CN103383657A (en) * 2012-05-02 2013-11-06 鸿富锦精密工业(武汉)有限公司 Turning on/off testing device and method
CN103389454A (en) * 2012-05-10 2013-11-13 鸿富锦精密工业(武汉)有限公司 Startup-and-shutdown test system and method
CN103970630A (en) * 2014-05-23 2014-08-06 浪潮电子信息产业股份有限公司 Method for testing overall stability of server
CN107167162A (en) * 2017-07-07 2017-09-15 深圳市路畅科技股份有限公司 A kind of method of testing of vehicle mounted guidance, apparatus and system
CN108920307A (en) * 2018-07-10 2018-11-30 郑州云海信息技术有限公司 Server Restart test method, device, equipment and computer readable storage medium
CN109840171A (en) * 2019-01-22 2019-06-04 山东华芯半导体有限公司 A kind of simple SSD power failure test method
CN109828877A (en) * 2019-01-22 2019-05-31 山东华芯半导体有限公司 A kind of batch system disk SSD power failure test method based on mainboard
TWI696914B (en) 2019-05-17 2020-06-21 和碩聯合科技股份有限公司 Electronic device, signal verification device, and method for verifying signals
CN110569074A (en) * 2019-09-09 2019-12-13 上海联影医疗科技有限公司 Computer shutdown method, system and storage medium
CN111651306A (en) * 2019-11-13 2020-09-11 芯讯通无线科技(上海)有限公司 On-off test method and system of communication module
CN110955573B (en) * 2019-11-21 2023-06-30 芯发威达电子(上海)有限公司 Control method for computer motherboard test fixture
CN111966570A (en) * 2020-07-25 2020-11-20 芯发威达电子(上海)有限公司 Unmanned self-testing method and system for industrial personal computer and electronic equipment
CN117074915B (en) * 2023-08-23 2024-05-17 扬州万方科技股份有限公司 Board card soft and hard restarting test method based on characteristic keyword monitoring technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2570871Y (en) * 2002-06-18 2003-09-03 威盛电子股份有限公司 Computer motherboard switch test device
CN1979438A (en) * 2005-12-09 2007-06-13 鸿富锦精密工业(深圳)有限公司 Computer main-board on-off testing system and method
CN101187891A (en) * 2006-11-22 2008-05-28 英业达股份有限公司 Detection device for detecting mainboard and detection method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2570871Y (en) * 2002-06-18 2003-09-03 威盛电子股份有限公司 Computer motherboard switch test device
CN1979438A (en) * 2005-12-09 2007-06-13 鸿富锦精密工业(深圳)有限公司 Computer main-board on-off testing system and method
CN101187891A (en) * 2006-11-22 2008-05-28 英业达股份有限公司 Detection device for detecting mainboard and detection method thereof

Also Published As

Publication number Publication date
CN101436154A (en) 2009-05-20

Similar Documents

Publication Publication Date Title
CN101436154B (en) Computer motherboard startup and shutdown test system and method
CN100517262C (en) Motherboard debugging system and method
US20060238533A1 (en) Battery power level inspection device co-constructed with system indicators of notebook computer and inspection method thereof
CN100375054C (en) Monitoring diagnosis device of computer main board failure
CN109933182A (en) A method, device and system for diagnosing power failure of a server
CN104572226A (en) Method and device for detecting mainboard starting abnormity
TW200923658A (en) Detection system for the peripheral apparatus
US7350111B2 (en) Method of providing a real time solution to error occurred when computer is turned on
US8726088B2 (en) Method for processing booting errors
TW201342044A (en) Method for detecting hardware
TWI300177B (en)
US9158646B2 (en) Abnormal information output system for a computer system
TWI492045B (en) Method and fixture of measure for computer device
US7213159B2 (en) Method for testing and verifying power management features of computer system
CN112634977B (en) Chip with debug memory interface and debug method thereof
CN102541702A (en) Test method for automatically restarting mainboard and recording debug data and restarting device thereof
CN104657232A (en) BIOS automatic recovery system and BIOS automatic recovery method
CN1979438A (en) Computer main-board on-off testing system and method
CN2932488Y (en) Fault detection device
TWI436203B (en) Testing method for automatically rebooting a motherboard and recording related debug information and rebooting device thereof
CN103136064B (en) Boot Error Handling Method
CN101826046B (en) Computer startup debugging method
TWI391816B (en) Computer debug method
TW512275B (en) Display method for error detection of electronic components
CN101408860A (en) Monitoring device and monitoring method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120530

Termination date: 20121114