TW201428470A - Automatic booting system and method - Google Patents

Automatic booting system and method Download PDF

Info

Publication number
TW201428470A
TW201428470A TW102101854A TW102101854A TW201428470A TW 201428470 A TW201428470 A TW 201428470A TW 102101854 A TW102101854 A TW 102101854A TW 102101854 A TW102101854 A TW 102101854A TW 201428470 A TW201428470 A TW 201428470A
Authority
TW
Taiwan
Prior art keywords
electronic device
state
power
powered
memory
Prior art date
Application number
TW102101854A
Other languages
Chinese (zh)
Inventor
Wen-Jie Zhang
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Publication of TW201428470A publication Critical patent/TW201428470A/en

Links

Landscapes

  • Power Sources (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides an automatic booting system and method. The system comprises: a detecting module for detecting states of an electronic device, wherein, the states including boot state and shutdown state; a saving module for saving the states to a storage device; a controlling module for controlling the state of the electronic device when the electronic device is re-powered on, according to a last state of the electronic device saved in the storage device. The present invention can be used to boot the electronic device automatically.

Description

自動開機系統及方法Automatic booting system and method

本發明涉及電子裝置管理系統及方法,特別是關於一種電子裝置自動開機系統及方法。The present invention relates to an electronic device management system and method, and more particularly to an electronic device automatic boot system and method.

電子裝置,例如服務器的應用在當今社會越來越廣泛,其性能好,安全性高,從而得到了用戶的好評。然而,若服務器在開機狀態時的某個時刻意外斷電,就會造成該服務器處理資料中斷。這時就需要服務器在斷電後重新上電時儘快恢復到開機狀態。然而,若採用人力來啟動服務器則將造成額外的人力成本。The application of electronic devices, such as servers, is becoming more and more widespread in today's society, and its performance is good and its security is high, which has been well received by users. However, if the server unexpectedly loses power at some point during the power-on state, it will cause the server to process data interruption. At this time, the server needs to be restored to the power-on state as soon as possible after the power is turned off after the power is turned off. However, using human resources to start the server will result in additional labor costs.

鑒於以上內容,有必要提供一種自動開機系統,可在電子裝置處於開機狀態時發生意外斷電的情況下,控制電子裝置斷電後重新上電時自動開機。In view of the above, it is necessary to provide an automatic booting system, which can automatically turn on when the electronic device is powered off after a power failure in the event of an unexpected power failure when the electronic device is turned on.

此外,還有必要提供一種開機控制方法,可在電子裝置處於開機狀態時發生意外斷電的情況下,控制電子裝置斷電後重新上電時自動開機。In addition, it is also necessary to provide a power-on control method, which can automatically turn on the power when the electronic device is powered off after the power is turned off in the event of an unexpected power failure when the electronic device is turned on.

一種自動開機系統,運行於電子裝置中,該系統包括:偵測模組,用於即時偵測該電子裝置的狀態,其中,該電子裝置的狀態包括開機狀態和關機狀態;儲存模組,用於將上述偵測到的電子裝置的狀態儲存到記憶體中;控制模組,用於根據所述記憶體中所記錄的電子裝置的最後狀態來控制電子裝置斷電後重新上電時的狀態。An automatic booting system running in an electronic device, the system comprising: a detecting module for detecting the state of the electronic device in real time, wherein the state of the electronic device includes a booting state and a shutdown state; And storing the state of the detected electronic device in the memory; the control module is configured to control a state when the electronic device is powered off after being powered off according to the last state of the electronic device recorded in the memory .

一種自動開機方法,該方法包括:偵測步驟,根據即時偵測電子裝置的狀態,其中,該電子裝置的狀態包括開機狀態和關機狀態;儲存步驟,將上述偵測到的電子裝置的狀態儲存到記憶體中;控制步驟,根據所述記憶體中所記錄的電子裝置的最後狀態來控制電子裝置斷電後重新上電時的狀態。An automatic booting method, the method comprising: a detecting step of detecting an electronic device according to a state of the electronic device, wherein the state of the electronic device includes a power-on state and a power-off state; and the storing step of storing the state of the detected electronic device And a control step of controlling a state when the electronic device is powered off and then powered on according to a last state of the electronic device recorded in the memory.

相較於習知技術,所述自動開機系統及方法,可在電子裝置處於開機狀態時發生意外斷電的情況下,控制電子裝置斷電後重新上電時自動開機。Compared with the prior art, the automatic booting system and method can automatically turn on the electronic device when the electronic device is powered off after an unexpected power failure occurs when the electronic device is in the power-on state.

100...電子裝置100. . . Electronic device

1...BMC1. . . BMC

10...自動開機系統10. . . Automatic boot system

20...記憶體20. . . Memory

30...處理器30. . . processor

2...電源供應器2. . . Power Supplier

11...偵測模組11. . . Detection module

12...儲存模組12. . . Storage module

13...控制模組13. . . Control module

圖1是本發明自動開機系統較佳實施例的應用環境圖。1 is an application environment diagram of a preferred embodiment of an automatic booting system of the present invention.

圖2是本發明自動開機系統的功能模組圖。2 is a functional block diagram of the automatic booting system of the present invention.

圖3是本發明自動開機方法較佳實施例的流程圖。3 is a flow chart of a preferred embodiment of the automatic booting method of the present invention.

參閱圖1所示,是本發明自動開機系統較佳實施例的應用環境圖。在本實施例中,自動開機系統10運行於電子裝置100中,用於當電子裝置100在開機狀態發生意外斷電的情況時,控制該電子裝置100斷電後重新上電時自動開機。所述電子裝置100可以為伺服器等電子設備。電源供應器2用於接入市電以給電子裝置100供電。該電子裝置100還包括BMC(Baseboard Management Controller,基板管理控制器)1,所述BMC 1可以用於監測所述電子裝置100的狀態,例如監測該電子裝置100的散熱狀況等。Referring to FIG. 1, it is an application environment diagram of a preferred embodiment of the automatic booting system of the present invention. In this embodiment, the automatic booting system 10 is operated in the electronic device 100 for controlling the electronic device 100 to automatically power on when the power is turned off after the power is turned off. The electronic device 100 can be an electronic device such as a server. The power supply 2 is used to access the mains to supply power to the electronic device 100. The electronic device 100 further includes a BMC (Baseboard Management Controller) 1 that can be used to monitor the state of the electronic device 100, such as monitoring the heat dissipation status of the electronic device 100, and the like.

在本實施例中,所述自動開機系統10可以包括一個或多個模組。所述一個或多個模組可以儲存於記憶體20中並由處理器30執行。所述記憶體20可以為EEPROM(Electrically Erasable Programmable Read-Only Memory,電可擦可編程唯讀記憶體)。在本實施例中,所述自動開機系統10包括偵測模組11、儲存模組12及控制模組13(參閱圖2所示)。所述模組是指能完成一特定功能的程式段,關於各模組的功能將在圖3的流程圖中具體描述。In this embodiment, the automatic boot system 10 can include one or more modules. The one or more modules may be stored in memory 20 and executed by processor 30. The memory 20 may be an EEPROM (Electrically Erasable Programmable Read-Only Memory). In this embodiment, the automatic booting system 10 includes a detecting module 11, a storage module 12, and a control module 13 (see FIG. 2). The module refers to a program segment that can perform a specific function, and the functions of each module will be specifically described in the flowchart of FIG.

參閱圖3所示,是本發明自動開機方法較佳實施例的流程圖。Referring to FIG. 3, it is a flow chart of a preferred embodiment of the automatic booting method of the present invention.

步驟S1,偵測模組11即時偵測電子裝置100的狀態,其中,該電子裝置100的狀態包括開機狀態和關機狀態。In step S1, the detecting module 11 immediately detects the state of the electronic device 100, wherein the state of the electronic device 100 includes a power-on state and a power-off state.

具體地,所述偵測模組11可透過偵測電源供應器2的Power Good信號來得知該電子裝置100的開機或關機狀態。Specifically, the detecting module 11 can detect the power on or off state of the electronic device 100 by detecting the Power Good signal of the power supply 2.

例如,在時間5秒時,所述偵測模組11偵測到該電源供應器2的Power Good信號時,即可得知該電子裝置100為開機狀態。For example, when the detection module 11 detects the Power Good signal of the power supply 2 at the time of 5 seconds, the electronic device 100 can be informed that the electronic device 100 is turned on.

又如,在時間50秒時,用戶透過按壓電子裝置100的關機鍵(假設需按壓4秒)將電子裝置100關機,即電子裝置100在時間54秒時關機,則此時所述偵測模組11將無法偵測到電源供應器2的Power Good信號,此時所述偵測模組11即可得知該電子裝置100的狀態為關機狀態。For example, at time 50 seconds, the user turns off the electronic device 100 by pressing the shutdown button of the electronic device 100 (assuming that the button is pressed for 4 seconds), that is, the electronic device 100 is turned off at time 54 seconds, then the detection mode is The group 11 will not be able to detect the Power Good signal of the power supply 2, and the detection module 11 can know that the state of the electronic device 100 is the shutdown state.

步驟S2,儲存模組12將所偵測到的電子裝置100的狀態儲存到記憶體20中。In step S2, the storage module 12 stores the detected state of the electronic device 100 in the memory 20.

例如,所述記憶體20中記錄到電子裝置100在時間0~53秒時都為開機狀態,在時間54秒時,電子裝置100為關機狀態。For example, the electronic device 100 recorded in the memory 20 is turned on during time 0 to 53 seconds, and the electronic device 100 is turned off at 54 seconds.

步驟S3,控制模組13根據所述記憶體20中所記錄的電子裝置100的最後狀態來控制電子裝置100斷電後重新上電時的狀態。In step S3, the control module 13 controls the state when the electronic device 100 is powered off and then powered on again according to the last state of the electronic device 100 recorded in the memory 20.

具體地,當所述記憶體20中所儲存的該電子裝置100的最後狀態為開機狀態時,所述控制模組13控制電子裝置100斷電後重新上電時開機。Specifically, when the last state of the electronic device 100 stored in the memory 20 is the power-on state, the control module 13 controls the electronic device 100 to turn on when the power is turned off.

舉例而言,例如,電子裝置100在開機一段時間(例如53秒)後,因電源供應器2與市電意外斷開連接,使得所述電子裝置100在開機狀態時意外關機,即所述記憶體20中記錄到電子裝置100在時間0~53秒為開機狀態,假設在59秒時,電源供應器2與市電重新連接好也即電子裝置100在59秒時斷電後重新上電,根據所述記憶體20中記錄的電子裝置100的最後狀態為開機狀態,所述控制模組13則判斷電子裝置100先前是在開機狀態時發生斷電的,此時則控制電子裝置100開機,恢復斷電前的開機狀態。For example, after the electronic device 100 is powered on for a period of time (for example, 53 seconds), the power supply device 2 is accidentally disconnected from the mains, so that the electronic device 100 is unexpectedly turned off when the power is turned on, that is, the memory. The electronic device 100 is recorded in the power-on state at time 0 to 53 seconds, and it is assumed that at 59 seconds, the power supply 2 is reconnected with the commercial power, that is, the electronic device 100 is powered off after being powered off at 59 seconds, according to the The last state of the electronic device 100 recorded in the memory 20 is the power-on state, and the control module 13 determines that the electronic device 100 is powered off before the power-on state. At this time, the control device 100 is powered on and restored. Power on state before power.

從本發明的流程步驟可以看出,本發明可在電子裝置100在開機狀態時,若發生意外斷電的情況下,可在電子裝置100斷電後重新上電時控制電子裝置100自動開機,無需人力手動來開啟電子裝置100。As can be seen from the flow of the present invention, the present invention can control the electronic device 100 to automatically power on when the electronic device 100 is powered off after a power failure due to an unexpected power failure when the electronic device 100 is turned on. The electronic device 100 is not required to be manually turned on.

以上實施例僅用以說明本發明的技術方案而非限制,儘管參照以上較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換都不應脫離本發明技術方案的精神和範圍。The above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments thereof, and those skilled in the art should understand that the technical solutions of the present invention may be modified or substituted. Neither should the spirit and scope of the technical solutions of the present invention be deviated.

10...目動開機系統10. . . Eye drive system

11...偵測模組11. . . Detection module

12...儲存模組12. . . Storage module

13...控制模組13. . . Control module

Claims (8)

一種自動開機系統,安裝於電子裝置中,該系統包括:
偵測模組,用於即時偵測該電子裝置的狀態,其中,該電子裝置的狀態包括開機狀態和關機狀態;
儲存模組,用於將上述偵測到的電子裝置的狀態儲存到記憶體中;
控制模組,用於根據所述記憶體中所記錄的電子裝置的最後狀態來控制電子裝置斷電後重新上電時的狀態。
An automatic booting system installed in an electronic device, the system comprising:
The detecting module is configured to detect the state of the electronic device in real time, wherein the state of the electronic device includes a power on state and a power off state;
a storage module, configured to store the state of the detected electronic device into the memory;
The control module is configured to control a state when the electronic device is powered off and then powered on according to a final state of the electronic device recorded in the memory.
如申請專利範圍第1項所述的自動開機系統,當所述記憶體中所儲存的該電子裝置的最後狀態為開機狀態時,所述控制模組控制電子裝置斷電後重新上電時開機。The automatic booting system of claim 1, wherein when the last state of the electronic device stored in the memory is the power-on state, the control module controls the electronic device to be powered on after being powered off again. . 如申請專利範圍第1項所述的自動開機系統,所述偵測模組透過偵測該電子裝置的電源供應器的Power Good信號來偵測電子裝置的狀態。The automatic booting system of claim 1, wherein the detecting module detects the state of the electronic device by detecting a Power Good signal of the power supply of the electronic device. 如申請專利範圍第1項所述的自動開機系統,所述記憶體為電可擦可編程唯讀記憶體EEPROM。The automatic booting system of claim 1, wherein the memory is an electrically erasable programmable read only memory EEPROM. 一種自動開機方法,該方法包括:
偵測步驟,根據即時偵測電子裝置的狀態,其中,該電子裝置的狀態包括開機狀態和關機狀態;
儲存步驟,將上述偵測到的電子裝置的狀態儲存到記憶體中;
控制步驟,根據所述記憶體中所記錄的電子裝置的最後狀態來控制電子裝置斷電後重新上電時的狀態。
An automatic booting method, the method comprising:
The detecting step is based on detecting the state of the electronic device, wherein the state of the electronic device includes a power-on state and a power-off state;
a storing step of storing the state of the detected electronic device in the memory;
The controlling step controls a state when the electronic device is powered off and then powered on again according to the last state of the electronic device recorded in the memory.
如申請專利範圍第5項所述的自動開機方法,當所述記憶體中所儲存的該電子裝置的最後狀態為開機狀態時,控制電子裝置斷電後重新上電時開機。The automatic booting method according to claim 5, wherein when the last state of the electronic device stored in the memory is the power-on state, the control electronic device is powered on after being powered off and then powered on again. 如申請專利範圍第5項所述的自動開機方法,所述偵測步驟透過偵測該電子裝置的電源供應器的Power Good信號來偵測電子裝置的狀態。The automatic booting method of claim 5, wherein the detecting step detects the state of the electronic device by detecting a Power Good signal of the power supply of the electronic device. 如申請專利範圍第5項所述的自動開機方法,所述記憶體為電可擦可編程唯讀記憶體EEPROM。The automatic booting method according to claim 5, wherein the memory is an electrically erasable programmable read only memory EEPROM.
TW102101854A 2013-01-14 2013-01-17 Automatic booting system and method TW201428470A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310012214.6A CN103926991A (en) 2013-01-14 2013-01-14 Automatic power-on system and automatic power-on method

Publications (1)

Publication Number Publication Date
TW201428470A true TW201428470A (en) 2014-07-16

Family

ID=51145246

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102101854A TW201428470A (en) 2013-01-14 2013-01-17 Automatic booting system and method

Country Status (2)

Country Link
CN (1) CN103926991A (en)
TW (1) TW201428470A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104198743B (en) * 2014-08-25 2016-05-18 长沙开元仪器股份有限公司 Re-power control method and the device of the rear sample system of automatically filing for reference
CN109857000B (en) * 2018-12-20 2021-01-26 奥克斯空调股份有限公司 Automatic startup control method and device and remote controller
CN112416104A (en) * 2020-12-04 2021-02-26 联想长风科技(北京)有限公司 Device for realizing last state of universal server power supply and recovery method
CN113867201A (en) * 2021-09-23 2021-12-31 青岛小鸟看看科技有限公司 Starting control system and virtual reality equipment

Also Published As

Publication number Publication date
CN103926991A (en) 2014-07-16

Similar Documents

Publication Publication Date Title
TWI515549B (en) Method for providing over-temperature protection of a target device, apparatus for providing over-temperature protection, and information processing system thereof
US9307145B2 (en) Video camera with temperature sensor
US9946600B2 (en) Method of detecting power reset of a server, a baseboard management controller, and a server
CN107145410B (en) Method, system and equipment for automatically powering on and starting up system after abnormal power failure
US20140143477A1 (en) Computer system and data recovery method thereof
EP2372491B1 (en) Power lock-up setting method and electronic apparatus using the same
TW201523443A (en) System and method for waking up an operating system of an electronic device
TWI509401B (en) System for power management and method thereof and non-transitory computer-readable medium
JP2009169551A (en) Power source controller and program
US9275527B2 (en) Controller
TW201428470A (en) Automatic booting system and method
TW201405303A (en) System and method for monitoring baseboard management controller
TW201305772A (en) System and method for process network data continuously
JP4146437B2 (en) Weatherproof information processing apparatus, control method, and program
JP5182463B2 (en) Projection apparatus and control method
US20140379162A1 (en) Server system and monitoring method
US9176836B2 (en) Automatic diagnosis system and method thereof
CN112783354A (en) Control method, device and equipment of touch device and storage medium
TWI537721B (en) Baseboard management control system and method
TW201426292A (en) Server and protect methods for fan failure thereof
JP5223688B2 (en) Uninterruptible power supply management device and management method
TW201839647A (en) Electronic devices
TW201348948A (en) Method and system for recording shutdown information in notebook computer
TW201621663A (en) Rack server system and power management method thereof
TW201411609A (en) Method and system for protecting data of hard disk