[go: up one dir, main page]

TWI443507B - Self-repairing system and self-repairing method thereof - Google Patents

Self-repairing system and self-repairing method thereof Download PDF

Info

Publication number
TWI443507B
TWI443507B TW100144578A TW100144578A TWI443507B TW I443507 B TWI443507 B TW I443507B TW 100144578 A TW100144578 A TW 100144578A TW 100144578 A TW100144578 A TW 100144578A TW I443507 B TWI443507 B TW I443507B
Authority
TW
Taiwan
Prior art keywords
processing unit
program
core program
electronic device
main core
Prior art date
Application number
TW100144578A
Other languages
Chinese (zh)
Other versions
TW201324128A (en
Inventor
Pei Chieh Sun
Original Assignee
Giga Byte Tech 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 Giga Byte Tech Co Ltd filed Critical Giga Byte Tech Co Ltd
Priority to TW100144578A priority Critical patent/TWI443507B/en
Priority to CN201110440315.4A priority patent/CN103136072B/en
Publication of TW201324128A publication Critical patent/TW201324128A/en
Application granted granted Critical
Publication of TWI443507B publication Critical patent/TWI443507B/en

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Description

自動修復系統及其自動修復方法Automatic repair system and automatic repair method thereof

本發明係關於一種自動修復系統及其自動修復方法,特別是一種具有主要核心程式與備用核心程式之自動修復系統及其自動修復方法。The invention relates to an automatic repairing system and an automatic repairing method thereof, in particular to an automatic repairing system with a main core program and an alternate core program and an automatic repairing method thereof.

隨著科技不斷發展,數位產品逐漸深入使用者生活的每個角落,使用者亦期待能夠透過原有家庭中的家電設備去接收或觀賞更多元的數位資訊,因此使家庭多媒體中心 ( Home Media Center)的概念應運而生。家庭多媒體中心主要是以家中現有的家電設備,例如電視,作為主要的資訊整合中心。透過網路或數位傳輸整合其他的數位設備,例如個人電腦、手機以及其他資訊產品,讓使用者毋需個別使用其他數位設備,而僅須透過電視作為資訊整合中心,就可以瀏覽或操作其他數位設備所提供的數位內容資訊。With the continuous development of technology, digital products are gradually reaching every corner of the user's life. Users are also looking forward to receiving or viewing more digital information through home appliances in their homes, thus enabling Home Multimedia Center ( Home Media The concept of Center) came into being. The home multimedia center is mainly based on existing home appliances, such as television, as the main information integration center. Integrating other digital devices, such as personal computers, mobile phones and other information products, through the Internet or digital transmission, so that users do not need to use other digital devices individually, and only need to use TV as an information integration center to browse or manipulate other digital devices. Digital content information provided by the device.

除了家庭中數位設備的整合外,隨著網際網路傳輸速度不斷地提昇,主流的網路傳輸內容不再限於文字或圖片,而是多媒體的影音資訊或是資訊匯流,使得原本以類比傳輸為主的媒體內容,例如電視節目和廣播等,得以數位化方式傳輸並提供給使用者觀賞。其優點在於數位化內容可提供較高畫質或音質的媒體內容,同時透過網路傳輸的方式也相對的快速且穩定,也因此數位化的媒體轉播內容已經成為下一波媒體轉播的發展趨勢。In addition to the integration of digital devices in the home, as the Internet transmission speed continues to increase, the mainstream network transmission content is no longer limited to text or pictures, but multimedia audio and video information or information convergence, so that the original analog transmission is The main media content, such as television programs and broadcasts, can be digitally transmitted and made available to the user. The advantage is that the digital content can provide high-quality or high-quality media content, and the transmission through the network is relatively fast and stable, so the digital media broadcast content has become the next wave of media broadcast development trend. .

然而,目前一般家庭所使用的電視仍以接收類比訊號為主,如需要播放數位媒體內容則必須經由數位視訊轉換盒( set-top box,STB) 來觀賞。 數位視訊轉換盒(或稱為 機上盒)是一種電視與外部數位 訊號源的連接設備,數位視訊轉換盒可以將 壓縮的數位訊號轉換成電視可呈現的內容,並在電視上顯示媒體內容。 數位視訊轉換盒因必須接收及轉換不同類型的數位訊號,因此其內部的韌體必須定期更新,但是由於數位視訊轉換盒不具有內建電池,僅依靠外部電源提供電力。However, at present, the TVs used by ordinary households still mainly receive analog signals. If digital media content needs to be played, they must be viewed through a digital set-top box (STB). A digital video conversion box (or set-top box) is a connection device between a television and an external digital signal source. The digital video conversion box can convert the compressed digital signal into a content that can be presented by the television and display the media content on the television. Since the digital video converter box must receive and convert different types of digital signals, its internal firmware must be updated regularly, but since the digital video converter box does not have a built-in battery, it only relies on an external power source to provide power.

因此,若在韌體更新期間,遭遇斷電、外部電源脫落或是使用者其他不正常操作而中斷了更新作業,將導致數位視訊轉換盒因為更新不完全而無法再次正常開機,造成使用者往往需要手動執行裝置上的重置功能,並且在重開機完成後才能再進行韌體的更新;或者是必須將機器送回原廠進行維修,才能夠將數位視訊轉換盒的韌體回復到出廠時預設的版本,然後才能再次進行韌體更新,以取得最新的韌體版本。Therefore, if the update operation is interrupted during the firmware update period due to power failure, external power supply loss, or other abnormal operation of the user, the digital video converter box may not be able to be turned on again due to incomplete update, resulting in frequent users. The reset function on the device needs to be manually executed, and the firmware update can be performed after the reboot is completed; or the machine must be returned to the factory for repair before the firmware of the digital video converter box can be restored to the factory. The default version before you can perform the firmware update again to get the latest firmware version.

如此,對於製造商來說,無疑地大幅增加數位視訊轉換盒的維修成本,同時對於使用者來說,因為數位視訊轉換盒更新不完全就完全無法使用,還必須經過送廠維修方能夠再使用,無論是在便利性或時間性的考量上,都造成使用者使用及購買的意願降低,這些也都是製造商急於解決的問題。In this way, for the manufacturer, it is undoubtedly greatly increased the maintenance cost of the digital video converter box, and for the user, because the digital video converter box is not completely updated, it cannot be used at all, and must be reused by the factory for repair. Whether it is convenience or time considerations, the user's willingness to use and purchase is reduced, which is also an issue that manufacturers are eager to solve.

鑒於以上的問題,本發明在於提供應用於電子裝置開機程序的一種自動修復系統及其自動修復方法,藉以解決習用之電子裝置在核心程式異常時就無法正常啟動開機程序,亦無法自動進行程式更新,而必須仰賴人為的操作才能進行核心程式修復及/或程式更新的問題。In view of the above problems, the present invention provides an automatic repairing system and an automatic repairing method thereof for use in an electronic device booting program, so as to solve the problem that the conventional electronic device cannot start the booting process normally when the core program is abnormal, and the program update cannot be automatically performed. The problem of core program fixes and/or program updates must be relied upon by human actions.

本發明揭露一種自動修復系統,適用於一電子裝置之一開機程序,並且自動修復系統電性連接於一儲存有ㄧ更新程式的伺服器。自動修復系統包含一控制單元、一儲存單元以及一處理單元,控制單元電性連接於電子裝置之一電源開關,處理單元分別電性連接於伺服器、控制單元以及儲存裝置,儲存單元儲存有ㄧ主要核心程式(kernel)、一備用核心程式以及ㄧ修復程式。其中,控制單元接收電源開關之一電源訊號,並依據電源訊號產生一開機訊號,處理單元接收開機訊號,並依據開機訊號常態地載入主要核心程式,以執行開機程序。當主要核心程式異常,處理單元重新啟動電子裝置,並且選擇性地載入備用核心程式以執行開機程序,並透過備用核心程式連線至伺服器。處理單元執行修復程式自伺服器下載更新程式,並且依據更新程式修復及/或更新主要核心程式。處理單元於主要核心程式修復及/或更新完成後重新啟動電子裝置,並且依據開機訊號執行修復及/或更新後之主要核心程式。The invention discloses an automatic repairing system, which is suitable for starting a program of an electronic device, and the automatic repairing system is electrically connected to a server storing the updated program. The automatic repairing system comprises a control unit, a storage unit and a processing unit. The control unit is electrically connected to one of the power switches of the electronic device. The processing unit is electrically connected to the server, the control unit and the storage device respectively, and the storage unit stores the storage unit. The main kernel (kernel), an alternate core program, and a bug fixer. The control unit receives a power signal of the power switch, and generates a power-on signal according to the power signal. The processing unit receives the power-on signal, and loads the main core program according to the power-on signal to perform the booting process. When the main core program is abnormal, the processing unit restarts the electronic device and selectively loads the alternate core program to execute the boot process and connects to the server through the alternate core program. The processing unit executes the fixer to download the update program from the server and repairs and/or updates the main core program according to the update program. The processing unit restarts the electronic device after the main core program is repaired and/or updated, and performs the repair and/or update of the main core program according to the boot signal.

本發明另外揭露一種自動修復方法,適用於一電子裝置之一開機程序。自動修復方法包含以下步驟:啟動電子裝置;使用一處理單元載入一主要核心程式,以執行開機程序;使用一控制單元判斷主要核心程式是否正常,若是,主要核心程式完成開機程序,若否,處理單元重新啟動電子裝置,並且選擇性地載入一備用核心程式;使用備用核心程式連線至一伺服器;使用處理單元執行一修復程式,以下載伺服器之一更新程式;處理單元依據更新程式修復及/或更新主要核心程式,並且於修復及/或更新完成後,處理單元重新啟動電子裝置;以及使用處理單元載入修復及/或更新後之主要核心程式,並且透過修復及/或更新後之主要核心程式完成開機程序。The invention further discloses an automatic repairing method, which is suitable for one booting process of an electronic device. The automatic repair method comprises the steps of: starting the electronic device; using a processing unit to load a main core program to execute the booting process; using a control unit to determine whether the main core program is normal, and if so, the main core program completing the booting process, if not, The processing unit restarts the electronic device and selectively loads an alternate core program; uses an alternate core program to connect to a server; uses the processing unit to execute a repair program to download one of the server update programs; the processing unit is updated according to the update The program repairs and/or updates the main core program, and after the repair and/or update is completed, the processing unit restarts the electronic device; and uses the processing unit to load the repaired and/or updated main core program, and through repair and/or The updated main core program completes the boot process.

本發明之功效在於,當電子裝置在啟動開機程序並載入主要核心時,藉由控制單元在預設時間是否收到正常啟動的回饋訊號,以判斷主要核心程式是否正常被載入並執行,若判斷電子裝置遭遇主要核心程式異常時,可藉由處理單元執行備用核心程式以執行正常開機程序,並藉由備用核心程式及修復程式連線至伺服器下載更新程式,以修復及/或更新損壞的主要核心程式,並重新啟動電子裝置,使電子裝置可以順利的載入正常之主要核心程式,以維持電子裝置的正常運作。除此之外,電子裝置更可在主要核心損壞的情形下,先藉由備用核心順利的完成開機程序,再藉由修復程式主動從伺服器下載更新程式,並據以修復及/或更新先前損壞的主要核心程式,因此當電子裝置再次重新啟動後,可直接載入更新到最新版本的主要核心程式來執行開機程序,以維持電子裝置最完整的功能,而不須再透過使用者手動執行重置功能或更新操作,以及避免原廠送修所帶來的不便。The effect of the invention is that when the electronic device starts the booting process and loads the main core, whether the main core program is normally loaded and executed is determined by the control unit receiving the normally activated feedback signal at the preset time. If it is determined that the electronic device encounters a major core program exception, the processing unit can execute the standby core program to execute the normal booting process, and the standby core program and the repair program are connected to the server to download the update program to repair and/or update. The main core program is damaged, and the electronic device is restarted, so that the electronic device can smoothly load the normal main core program to maintain the normal operation of the electronic device. In addition, the electronic device can successfully complete the booting process by the standby core in the case of major core damage, and then actively download the update program from the server by the repair program, and repair and/or update the previous The main core program is damaged, so when the electronic device is restarted again, the main core program updated to the latest version can be directly loaded to execute the boot process to maintain the most complete function of the electronic device without having to manually execute it through the user. Reset function or update operation, and avoid the inconvenience caused by original factory repair.

有關本發明的特徵、實作與功效,茲配合圖式作最佳實施例詳細說明如下。The features, implementations, and utilities of the present invention are described in detail below with reference to the drawings.

本發明所揭露之自動修復系統及其自動修復方法適用於一電子裝置之一開機程序,讓電子裝置在開機程序中可自行針對損壞的主要核心程式進行修復,或者是主動更新主要核心程式至最新版本,讓電子裝置始終能夠以最新版本的主要核心程式來完成開機作業,以維持電子裝置具有完整的操作功能。同時,在以下本發明所揭露的實施例中,將以電子裝置為 數位視訊轉換盒做為舉例說明,但並不以此為限。The automatic repairing system and the automatic repairing method thereof are applicable to a booting process of an electronic device, so that the electronic device can repair the damaged main core program by itself in the booting process, or actively update the main core program to the latest. The version allows the electronic device to always start the boot process with the latest version of the main core program to maintain the full operational function of the electronic device. In the following embodiments of the present invention, the electronic device is used as a digital video conversion box as an example, but is not limited thereto.

請參考第1圖和第2圖,本發明第一實施例所揭露之自動修復系統100配置於電子裝置10內,並且可選擇性的以有線或無線方式透過一網際網路電性連接於一儲存有ㄧ更新程式的伺服器20。Referring to FIG. 1 and FIG. 2, the automatic repair system 100 disclosed in the first embodiment of the present invention is disposed in the electronic device 10, and is selectively electrically connected to the Internet through a network in a wired or wireless manner. The server 20 storing the update program is stored.

如第1圖和第2圖所示,自動修復系統100包含一控制單元1001、一儲存單元1002以及一處理單元1003,其中控制單元1001電性連接於電子裝置10之一電源開關1004,且控制單元1001具有一設定有ㄧ預設時間之計時器1006。儲存單元1002儲存有ㄧ主要核心程式(kernel)、一備用核心程式以及ㄧ修復程式,而處理單元1003則在自動修復系統100內部分別電性連接於控制單元1001以及儲存裝置1002,其中處理單元1003可以是但並不侷限於透過一通用非同步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)電性連接於控制單元1001。As shown in FIG. 1 and FIG. 2 , the automatic repair system 100 includes a control unit 1001 , a storage unit 1002 , and a processing unit 1003 . The control unit 1001 is electrically connected to one of the power switches 1004 of the electronic device 10 and is controlled. Unit 1001 has a timer 1006 that is set for a preset time. The storage unit 1002 stores a main core (kernel), a spare core program, and a repair program, and the processing unit 1003 is electrically connected to the control unit 1001 and the storage device 1002, respectively, in the automatic repair system 100, wherein the processing unit 1003 It can be, but is not limited to, electrically connected to the control unit 1001 through a Universal Asynchronous Receiver/Transmitter (UART).

此外,處理單元1003透過網際網路電性連接於自動修復系統100外部之伺服器20。值得注意的是,處理單元1003與伺服器20之電性連接方式包含但不限於光纖網路、同軸電纜等有線網路連接方式;或者是802.11(g)、802.11(e)、3G或Wimax等無線網路連接方式。本領域具有通常技藝者可依據其硬體裝置及系統需求採用不同的電性連接方式。In addition, the processing unit 1003 is electrically connected to the server 20 outside the automatic repair system 100 through the Internet. It should be noted that the electrical connection manner between the processing unit 1003 and the server 20 includes, but is not limited to, a wired network connection manner such as a fiber network or a coaxial cable; or 802.11 (g), 802.11 (e), 3G, or Wimax. Wireless internet connection. Those skilled in the art can use different electrical connections depending on their hardware devices and system requirements.

請參考第1圖至第3圖,在一般情況下,當使用者制動電子裝置10之電源開關1004以啟動電子裝置10時(S101),電源開關1004將產生一電源訊號,並傳遞電源訊號至控制單元1001。接著,控制單元1001在接收電源訊號後,即依據電源訊號產生一開機訊號,並且傳送開機訊號至處理單元1003。處理單元1003在接收到開機訊號後,依據開機訊號常態地從儲存單元1002載入主要核心程式以執行開機程序(S105)。Referring to FIG. 1 to FIG. 3, in general, when the user brakes the power switch 1004 of the electronic device 10 to activate the electronic device 10 (S101), the power switch 1004 generates a power signal and transmits a power signal to Control unit 1001. Then, after receiving the power signal, the control unit 1001 generates a power-on signal according to the power signal, and transmits the power-on signal to the processing unit 1003. After receiving the boot signal, the processing unit 1003 loads the main core program from the storage unit 1002 according to the boot signal normally to execute the boot process (S105).

此時,控制單元1001判斷主要核心程式是否正常地載入(S110)。如第4圖所示,在某些情況下,當處理單元1003載入主要核心程式時,判斷主要核心程式是否正常載入(S110)的步驟可進一步細分如下:首先,在處理單元1003載入主要核心程式時,控制單元1001開啟計時器1006 (S106);接著,控制單元1001之計時器1006計算在預設時間內是否收到處理單元1003所傳送之一回饋訊號(S107),若是,表示核心程式正常載入,處理單元1003即傳送回饋訊號至控制單元1001,控制單元1001即判斷主要核心程式正常被載入(S108),並且關閉計時器1006。同時,處理單元1003執行主要核心程式,以完成電子裝置10之開機程序(S210)。之後,處理單元1003將本次開機時電子裝置10之開機時間、主要核心程式之版本以及主要核心程式是否正常執行開機程序之一開機紀錄等儲存於儲存單元1002內,以便作為日後更新主要核心程式的參考資訊。At this time, the control unit 1001 determines whether or not the main core program is normally loaded (S110). As shown in FIG. 4, in some cases, when the processing unit 1003 loads the main core program, the step of determining whether the main core program is normally loaded (S110) may be further subdivided as follows: First, loading in the processing unit 1003 In the main core program, the control unit 1001 turns on the timer 1006 (S106); then, the timer 1006 of the control unit 1001 calculates whether a feedback signal transmitted by the processing unit 1003 is received within a preset time (S107), and if so, indicates The core program is normally loaded, and the processing unit 1003 transmits a feedback signal to the control unit 1001. The control unit 1001 determines that the main core program is normally loaded (S108), and turns off the timer 1006. At the same time, the processing unit 1003 executes the main core program to complete the booting process of the electronic device 10 (S210). Afterwards, the processing unit 1003 stores the boot time of the electronic device 10, the version of the main core program, and whether the main core program normally executes a boot record of the booting program in the storage unit 1002, so as to update the main core program in the future. Reference information.

反之,若核心程式載入異常,處理單元1003就不會產生回饋訊號。此時,由於控制單元1001在預設時間結束前無法收到處理單元1003所傳送之回饋訊號。在這種情況下,控制單元1001則判斷主要核心異常(S109),並傳送一重置訊號至處理單元1003,令處理單元1003重新啟動電子裝置10(S115)。Conversely, if the core program loads an exception, the processing unit 1003 does not generate a feedback signal. At this time, since the control unit 1001 cannot receive the feedback signal transmitted by the processing unit 1003 before the end of the preset time. In this case, the control unit 1001 determines the main core abnormality (S109), and transmits a reset signal to the processing unit 1003, causing the processing unit 1003 to restart the electronic device 10 (S115).

當處理單元1003依據控制單元1001所傳送之重置訊號重新啟動電子裝置10(S115),處理單元1003從儲存單元1002中選擇性地載入備用核心程式(S120)。此處的備用核心程式為電子裝置10生產完成時所存入的出廠版本及預設的初始設定值。值得注意的是,當處理單元1003重新啟動電子裝置10(S115)時,處理單元1003亦可選擇性地再次執行載入主要核心程式的步驟(S105),並藉由控制單元1001執行前述之判斷程序(S106、S107),再次依據前述程序判斷主要核心程式是否正常的載入。若主要核心程式在電子裝置10重新啟動後可正常的載入,則表示主要核心程式正常,並且可順利完成電子裝置10之開機程序(S210);倘若主要核心程式仍異常,處理單元1003則再次重新啟動電子裝置10重覆執行載入主要核心程式的步驟,並且於一預定重新啟動次數,例如重新啟動1次、3次或5次後,處理單元1003即改為選擇載入備用核心程式。上述預定重新啟動次數可依據電子裝置10之硬體設計及使用者需求得以變更設定,其目的為再次確認主要核心程式是否確實異常而無法完成開機程序,以避免控制單元1001因為計時器1006所設定之預設時間過短或處理單元1003之處理效率過慢而誤判主要核心程式異常,以減少系統因誤判而不斷的重新啟動電子裝置10。When the processing unit 1003 restarts the electronic device 10 according to the reset signal transmitted by the control unit 1001 (S115), the processing unit 1003 selectively loads the spare core program from the storage unit 1002 (S120). The spare core program here is the factory version and the preset initial setting value stored when the electronic device 10 is completed. It should be noted that when the processing unit 1003 restarts the electronic device 10 (S115), the processing unit 1003 may also selectively perform the step of loading the main core program (S105), and perform the foregoing determination by the control unit 1001. The program (S106, S107), according to the above procedure, determines whether the main core program is normally loaded. If the main core program can be loaded normally after the electronic device 10 is restarted, it indicates that the main core program is normal, and the booting process of the electronic device 10 can be successfully completed (S210); if the main core program is still abnormal, the processing unit 1003 is again The restarting of the electronic device 10 repeats the step of loading the main core program, and after a predetermined number of restarts, for example, restarting once, three times or five times, the processing unit 1003 instead selects to load the spare core program. The predetermined number of restarts may be changed according to the hardware design of the electronic device 10 and the user's needs. The purpose is to reconfirm whether the main core program is abnormal and cannot complete the booting process, so as to prevent the control unit 1001 from being set by the timer 1006. The preset time is too short or the processing efficiency of the processing unit 1003 is too slow to misjudge the main core program abnormality to reduce the system to continuously restart the electronic device 10 due to misjudgment.

請參考第1圖至第3圖,當處理單元1003載入備用核心程式(S120)用以執行開機程序後,處理單元1003透過備用核心程式連線至伺服器20(S125)。接著,處理單元1003執行修復程式以下載儲存於伺服器20中之一更新程式(S130),並依據更新程式修復及/或更新主要核心程式(S135)。如第5圖所示,在一般情況下,下載更新程式(S130)之步驟可能包含有:首先,透過修復程式比對主要核心程式與伺服器20儲存之更新程式(S131),其比對項目可包含前次正常被載入之主要核心版本與更新程式的版本差異,或者是目前異常的主要核心程式可能需要被修補的程式碼。值得注意的是,前次正常被載入之主要核心版本可由儲存於儲存單元1002內之前次開機紀錄得知;接著,修復程式依據比對結果下載更新程式(S132),此處下載的更新程式為主要核心程式最新版本的完整安裝檔案或者是主要核心程式的修補檔及最新版本的更新檔,其可依據使用者的需求以及儲存於伺服器20內更新程式下載系統的不同設定及規劃而進行變換。同時,處理單元1003透過修復程式確認更新程式的下載是否異常,若下載的檔案異常或未順利完成下載程序,則重新下載更新程式,若成功下載更新程式,則結束下載流程,並且安裝更新程式(S133)。Referring to FIG. 1 to FIG. 3, after the processing unit 1003 loads the spare core program (S120) for executing the booting process, the processing unit 1003 connects to the server 20 through the standby core program (S125). Next, the processing unit 1003 executes a repair program to download one of the update programs stored in the server 20 (S130), and repairs and/or updates the main core program according to the update program (S135). As shown in FIG. 5, in general, the step of downloading the update program (S130) may include: first, comparing the main core program with the update program stored by the server 20 (S131) through the repair program, and comparing the items. It can include the version difference between the main core version and the update program that was loaded normally before, or the code that the main core program that is currently abnormal may need to be patched. It is worth noting that the main core version that was loaded normally in the previous time can be known from the previous boot record stored in the storage unit 1002; then, the repair program downloads the update program based on the comparison result (S132), and the update program downloaded here. The complete installation file of the latest version of the main core program or the latest core program's patch file and the latest version of the update file can be customized according to the user's needs and the different settings and plans stored in the server 20 to update the program download system. Transform. At the same time, the processing unit 1003 confirms whether the download of the update program is abnormal through the repair program. If the downloaded file is abnormal or the download program is not successfully completed, the update program is re-downloaded. If the update program is successfully downloaded, the download process is ended, and the update program is installed ( S133).

其中,在針對修復或更新主要核心程式所進行的下載程序中,由於所下載的修補檔或更新檔的檔案較小,因此可縮短下載時間以儘速進行檔案系統的重建工作,以期在最短的時間內修復毀損的韌體。Among them, in the download process for repairing or updating the main core program, since the file of the downloaded patch file or the update file is small, the download time can be shortened to complete the file system reconstruction work as soon as possible, in the shortest time. Repair the damaged firmware in time.

此外,當更新程式安裝完成後,處理單元1003執行更新程式修復或/及更新主要核心程式(S135),並且在一般情況下,此步驟可進一步依照更新程式的不同類型而可以有不同的處理流程。意即,若下載的更新程式如前所述為主要核心程式最新版本的完整安裝檔案,則處理單元1003執行更新程式,產生最新版本的主要核心程式(S136),並直接覆蓋並取代原先儲存於儲存單元1002之主要核心程式(S137),以完成主要核心程式的更新;倘若下載的更新程式如前所述為主要核心程式的修補檔及最新版本的更新檔,則處理單元1003先執行更新程式中的修補檔,以修復儲存於儲存單元1002中損壞的或有缺陷的主要核心程式(S138),並且於修復完成後再執行更新檔,將儲存單元1002內已修復完成之主要核心程式更新到最新版本(S139),以完成主要核心程式的修復及/或更新。值得注意的是,若在比較主要核心程式及更新程式版本(S131)時,即判斷目前電子裝置10內之主要核心程式為最新版本,則處理單元1003僅需下載更新程式的修補檔並安裝修補檔以修復主要核心程式即可,毋需再下載更新檔。In addition, after the update program is installed, the processing unit 1003 performs an update program repair or/and updates the main core program (S135), and in general, this step may further have different processing flows according to different types of the update program. . That is, if the downloaded update program is a complete installation file of the latest version of the main core program, the processing unit 1003 executes the update program to generate the latest version of the main core program (S136), and directly overwrites and replaces the original storage. The main core program (S137) of the storage unit 1002 is used to complete the update of the main core program; if the downloaded update program is the patch file of the main core program and the latest version of the update file, the processing unit 1003 executes the update program first. The repair file in the repair file to repair the damaged or defective main core program stored in the storage unit 1002 (S138), and after the repair is completed, execute the update file to update the repaired main core program in the storage unit 1002 to The latest version (S139) to complete the repair and / or update of the main core program. It should be noted that, when comparing the main core program and the updated program version (S131), that is, the current core program in the electronic device 10 is determined to be the latest version, the processing unit 1003 only needs to download the patch file of the update program and install the patch. File to fix the main core program, no need to download the update file.

請參考第1圖至第3圖,在完成主要核心程式的修復及/或更新(S135)後,處理單元1003再次重新啟動電子裝置10(S140),並載入修復及/或更新後之主要核心程式(S105)以執行開機程序,並再次藉由處理單元1003及控制單元1001執行前述之主要核心程式判斷步驟(S110),以確認修復及/或更新後之主要核心程式是否能夠正常被載入。若可以正常被載入,則完成開機程序並儲存開機紀錄(S215),若仍然無法正常被載入,則再次執行前述之重置步驟(S115、S120、S125),直到主要核心程式可以正常被導入並完成開機程序為止,使電子裝置10可正常的運作。Referring to FIG. 1 to FIG. 3, after the repair and/or update of the main core program is completed (S135), the processing unit 1003 restarts the electronic device 10 again (S140), and loads the main repair and/or update. The core program (S105) executes the booting process, and again executes the foregoing main core program determining step (S110) by the processing unit 1003 and the control unit 1001 to confirm whether the repaired and/or updated main core program can be normally loaded. In. If it can be loaded normally, the boot process is completed and the boot record is stored (S215). If it still cannot be loaded normally, the aforementioned resetting step (S115, S120, S125) is performed again until the main core program can be normally The electronic device 10 can operate normally until the boot process is completed and completed.

請參考第6圖,為本發明第二實施例所揭露之自動修復系統之方塊示意圖。本發明所揭露之第二實施例與第一實施例的差異在於,本發明第二實施例所揭露的自動修復系統100更包括有ㄧ顯示模組1005,用以顯示電子裝置10之相關運作資訊。因此,在電子裝置10重新啟動並執行載入備用核心程式、連線至伺服器20、下載更新程式、修補及/或更新主要核心程式、重新啟動電子裝置10以及再次載入修補及/或更新後的主要核心程式等自動修復方法的相關流程時,自動修復系統100可經由顯示模組1005顯示電子裝置10之運作資訊、更新程式之下載資訊(如下載進度及時間等)以及主要核心程式之修復及/或更新資訊,以便於讓使用者能夠掌握當前的修復狀態及進度。Please refer to FIG. 6 , which is a block diagram of an automatic repairing system according to a second embodiment of the present invention. The difference between the second embodiment of the present invention and the first embodiment is that the automatic repair system 100 disclosed in the second embodiment of the present invention further includes a display module 1005 for displaying related operation information of the electronic device 10. . Therefore, the electronic device 10 restarts and executes loading the spare core program, connecting to the server 20, downloading the update program, patching and/or updating the main core program, restarting the electronic device 10, and reloading the patch and/or update. The automatic repair system 100 can display the operation information of the electronic device 10, the download information of the update program (such as download progress and time), and the main core program through the display module 1005. Fix and/or update information so that users can master the current repair status and progress.

基於 上述本發明之自動修復系統及其自動修復方法,讓電子裝置可在啟動時自動判斷異常的主要核心程式,並藉由處理單元重新啟動電子裝置並載入備用核心程式以執行開機程序,先自動恢復為原廠設定值,而後再透過備用核心程式及修復程式連線至伺服器20下載更新程式,以修補或/及更新主要核心程式,而後再自動重新啟動電子裝置,並以修補或/及更新後之主要核心程式執行開機程序,使電子裝置縱然在前次運作或執行中遭遇斷電、中斷連線亦或是使用者不當操作所導致主要核心程式毀損或異常的情形下,仍然能夠透過自動修復的功能修復主要核心程式並更新至最新版本,使電子裝置在不需人為的手動操作下,即可以在電源啟動後自行的完成維修、更新程序,使電子裝置在完成開機程序後可正常的運作並維持最新且最完整之操作功能。The automatic repairing system and the automatic repairing method thereof according to the present invention enable the electronic device to automatically determine the abnormal core program at the time of startup, and restart the electronic device by the processing unit and load the standby core program to execute the booting process. Automatically restores to the original factory settings, and then connects to the server 20 via the backup core program and the fixer to download the update program to repair or/and update the main core program, and then automatically restart the electronic device and repair or / And the updated core program executes the boot process, so that the electronic device can still be damaged or abnormal in the case of power failure, disconnection, or abnormal operation of the main core program caused by improper operation of the user during the previous operation or execution. The main core program is repaired and updated to the latest version through the automatic repair function, so that the electronic device can complete the repair and update program after the power is turned on without manual operation, so that the electronic device can complete the booting process after the booting process is completed. Normal operation and maintain the latest and most complete operational functions.

雖然本發明之實施例揭露如上所述,然並非用以限定本發明,任何熟習相關技藝者,在不脫離本發明之精神和範圍內,舉凡依本發明申請範圍所述之形狀、構造、特徵及數量當可做些許之變更,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。Although the embodiments of the present invention are disclosed above, it is not intended to limit the present invention, and those skilled in the art, regardless of the spirit and scope of the present invention, the shapes, structures, and features described in the scope of the present application. And the number of modifications may be made, and the scope of patent protection of the present invention shall be determined by the scope of the patent application attached to the specification.

10...電子裝置10. . . Electronic device

100...自動修復系統100. . . Automatic repair system

1001...控制單元1001. . . control unit

1002...儲存單元1002. . . Storage unit

1003...處理單元1003. . . Processing unit

1004...電源開關1004. . . switch

1005...顯示模組1005. . . Display module

1006...計時器1006. . . Timer

20...伺服器20. . . server

第1圖為本發明第一實施例之電子裝置與伺服器的連接示意圖。FIG. 1 is a schematic diagram showing the connection between an electronic device and a server according to a first embodiment of the present invention.

第2圖為本發明第一實施例之自動修復系統之方塊圖。Fig. 2 is a block diagram showing an automatic repairing system according to a first embodiment of the present invention.

第3圖為本發明第一實施例之自動修復方法之步驟流程圖。Figure 3 is a flow chart showing the steps of the automatic repairing method of the first embodiment of the present invention.

第4圖為本發明第一實施例之自動修復方法中判斷主要核心程式之步驟流程圖。Fig. 4 is a flow chart showing the steps of judging the main core program in the automatic repair method according to the first embodiment of the present invention.

第5圖為本發明第一實施例之自動修復方法中修復及更新主要核心程式之步驟流程圖。FIG. 5 is a flow chart showing the steps of repairing and updating the main core program in the automatic repair method according to the first embodiment of the present invention.

第6圖為本發明所揭露自動修復系統第二實施例之裝置連接示意圖。Figure 6 is a schematic view showing the connection of the device of the second embodiment of the automatic repairing system disclosed in the present invention.

100...自動修復系統100. . . Automatic repair system

1001...控制單元1001. . . control unit

1002...儲存單元1002. . . Storage unit

1003...處理單元1003. . . Processing unit

1004...電源開關1004. . . switch

1006...計時器1006. . . Timer

20...伺服器20. . . server

Claims (14)

一種自動修復系統,適用於一電子裝置之一開機程序,該自動修復系統電性連接於一伺服器,且該伺服器儲存有一更新程式,該自動修復系統包含:
一控制單元,電性連接於該電子裝置之一電源開關,該控制單元接收該電源開關之一電源訊號,並依據該電源訊號產生一開機訊號;
一儲存單元,儲存有ㄧ主要核心程式(kernel)、一備用核心程式以及ㄧ修復程式;以及
一處理單元,分別電性連接於該伺服器、該控制單元以及該儲存裝置,該處理單元接收該開機訊號,並依據該開機訊號常態地載入該主要核心程式,以執行該開機程序;
其中,當該主要核心程式異常,該處理單元重新啟動該電子裝置,並且選擇性地載入該備用核心程式,以執行該開機程序,透過該備用核心程式連線至該伺服器,該處理單元執行該修復程式自該伺服器下載該更新程式,並且依據該更新程式修復及/或更新該主要核心程式,該處理單元於該主要核心程式修復及/或更新完成後重新啟動該電子裝置,並且依據該開機訊號執行修復及/或更新後之該主要核心程式。
An automatic repairing system is applicable to a booting process of an electronic device. The automatic repairing system is electrically connected to a server, and the server stores an update program. The automatic repairing system includes:
a control unit electrically connected to one of the power switches of the electronic device, the control unit receiving a power signal of the power switch, and generating a power-on signal according to the power signal;
a storage unit storing a main kernel (kernel), an alternate core program, and a repair program; and a processing unit electrically connected to the server, the control unit, and the storage device, the processing unit receiving the Turning on the signal, and loading the main core program according to the boot signal to execute the booting program;
Wherein, when the main core program is abnormal, the processing unit restarts the electronic device, and selectively loads the standby core program to execute the booting process, and connects to the server through the standby core program, the processing unit Executing the fixer to download the update program from the server, and repairing and/or updating the main core program according to the update program, the processing unit restarting the electronic device after the main core program repair and/or update is completed, and The main core program after the repair and/or update is performed according to the boot signal.
如請求項第1項所述之自動修復系統,其中該控制單元包括一計時器,且該計時器設定有一預設時間,該處理單元係於該預設時間內傳送一回饋訊號至該控制單元,該控制單元依據該回饋訊號判斷該主要核心程式正常,並關閉該計時器,該處理單元於該預設時間內未傳送該狀態訊號至該控制單元,該控制單元判斷該主要核心程式異常,並傳送一重置訊號至該處理單元,令該處理單元重新啟動該電子裝置。The automatic repair system of claim 1, wherein the control unit includes a timer, and the timer is set to a preset time, and the processing unit transmits a feedback signal to the control unit within the preset time. The control unit determines that the main core program is normal according to the feedback signal, and turns off the timer. The processing unit does not transmit the status signal to the control unit within the preset time, and the control unit determines that the main core program is abnormal. And transmitting a reset signal to the processing unit, causing the processing unit to restart the electronic device. 如請求項第1項所述之自動修復系統,其中,該處理單元與該伺服器之電性連接方式為有線或無線網路連接。The automatic repair system of claim 1, wherein the processing unit and the server are electrically connected by a wired or wireless network. 如請求項第1所述之自動修復系統,其中,該控制單元與該處理單元之電性連接方式為 通用非同步收發傳輸器。The automatic repair system of claim 1, wherein the control unit is electrically connected to the processing unit as a universal asynchronous transceiver. 如請求項第1項所述之自動修復系統,更包含一顯示模組,分別電性連接於該處理單元以及該電子裝置,用以顯示該電子裝置之運作資訊、該更新程式之下載資訊以及該主要核心程式之修復及/或更新資訊。The automatic repair system of claim 1, further comprising a display module electrically connected to the processing unit and the electronic device for displaying operation information of the electronic device, downloading information of the update program, and Repair and/or update information for this major core program. 一種自動修復方法,適用於一電子裝置之一開機程序,該自動修復方法包含以下步驟:
啟動該電子裝置;
使用一處理單元載入一主要核心程式,以執行該開機程序;
使用一控制單元判斷該主要核心程式是否正常,若是,該主要核心程式完成該開機程序,若否,該處理單元重新啟動該電子裝置,並且選擇性地載入一備用核心程式;
使用該備用核心程式連線至一伺服器;
使用該處理單元執行一修復程式,以下載該伺服器之一更新程式;
該處理單元依據該更新程式修復及/或更新該主要核心程式,並且於修復及/或更新完成後,該處理單元重新啟動該電子裝置;以及
使用該處理單元載入修復及/或更新後之該主要核心程式,並且透過修復及/或更新後之該主要核心程式完成該開機程序。
An automatic repairing method is applicable to one booting process of an electronic device, and the automatic repairing method comprises the following steps:
Activating the electronic device;
Using a processing unit to load a main core program to execute the boot process;
Using a control unit to determine whether the primary core program is normal, and if so, the primary core program completes the boot process, and if not, the processing unit restarts the electronic device and selectively loads an alternate core program;
Use the alternate core program to connect to a server;
Using the processing unit to execute a repair program to download one of the server update programs;
The processing unit repairs and/or updates the main core program according to the update program, and after the repair and/or update is completed, the processing unit restarts the electronic device; and uses the processing unit to load the repair and/or update The main core program, and the boot process is completed by the main core program after repair and/or update.
如請求項第6項所述之自動修復方法,其中當啟動該電子裝置後,該電子裝置產生一電源訊號,並傳送該電源訊號至該控制單元,該控制單元依據該電源訊號產生一開機訊號,並且傳送該開機訊號至該處理單元,令該處理單元依據該開機訊號載入該主要核心程式。The automatic repair method of claim 6, wherein the electronic device generates a power signal and transmits the power signal to the control unit after the electronic device is activated, and the control unit generates a power-on signal according to the power signal. And transmitting the boot signal to the processing unit, so that the processing unit loads the main core program according to the boot signal. 如請求項第6項所述之自動修復方法,其中當該處理單元載入該主要核心程式,該處理單元於一預設時間內產生一回饋訊號,該控制單元依據回饋訊號判斷該主要核心程式正常,若該處理單元於該預設時間內未產生該回饋訊號,該控制單元判斷該主要核心程式異常,並傳送一重置訊號至該處理單元,令該處理單元重新啟動該電子裝置。The automatic repair method of claim 6, wherein the processing unit generates a feedback signal for a predetermined time when the processing unit loads the main core program, and the control unit determines the main core program according to the feedback signal Normally, if the processing unit does not generate the feedback signal within the preset time, the control unit determines that the main core program is abnormal, and transmits a reset signal to the processing unit, so that the processing unit restarts the electronic device. 如請求項第8項所述之自動修復方法,其中該預設時間設定於該控制單元之一計時器內,當該處理單元載入該主要核心程式,該控制單元開啟該計時器以計算該預設時間,並且當該控制單元判斷該開機程序正常,該控制單元係一併關閉該計時器。The automatic repair method of claim 8, wherein the preset time is set in a timer of the control unit, and when the processing unit loads the main core program, the control unit starts the timer to calculate the The preset time, and when the control unit determines that the booting procedure is normal, the control unit closes the timer together. 如請求項第6項所述之自動修復方法,其中當該開機程序完成後,該處理單元儲存該電子裝置之一開機記錄,該開機紀錄包含該電子裝置之開機時間、該主要核心程式之版本以及該主要核心程式是否正常執行該開機程序。The automatic repair method of claim 6, wherein the processing unit stores a boot record of the electronic device after the booting process is completed, the boot record includes a boot time of the electronic device, and a version of the main core program And whether the main core program executes the boot process normally. 如請求項第6項所述之自動修復方法,其中使用該控制單元判斷該開機程序是否正常之步驟中,該處理單元重新啟動該電子裝置後,係先載入該主要核心程式,並藉由該控制單元再次判斷該開機程序是否正常,若是,該主要核心程式完成該開機程序,若否,該處理單元重新啟動該電子裝置,並且於一預定重新啟動次數後,選擇載入該備用核心程式。The automatic repair method according to Item 6, wherein the step of using the control unit to determine whether the booting procedure is normal is that after the processing unit restarts the electronic device, the main core program is loaded first, and The control unit again determines whether the booting process is normal. If yes, the main core program completes the booting process. If not, the processing unit restarts the electronic device, and after a predetermined number of restarts, selects to load the alternate core program. . 如請求項第6項所述之自動修復方法,其中使用該處理單元執行該修復程式之步驟包括:
使用該修復程式比對該主要核心程式與該更新程式;
依據比對結果下載該更新程式;以及
使用該處理單元執行該更新程式以修復及/或更新該主要核心程式。
The automatic repair method of claim 6, wherein the step of executing the repair using the processing unit comprises:
Use the fix to compare the main core program with the updater;
Downloading the update program based on the comparison result; and executing the update program using the processing unit to repair and/or update the main core program.
如請求項第12項所述之自動修復方法,更包含確認該更新程式之下載過程是否異常,若是,重新下載該更新程式,若否,則結束下載。The automatic repair method described in item 12 of the claim further includes confirming whether the download process of the update program is abnormal, and if so, re-downloading the update program, and if not, ending the download. 如請求項第6項所述之自動修復方法,更包括儲存修復及/或更新後之該主要核心程式於該儲存單元,以替換異常之該主要核心程式。The automatic repair method as described in claim 6 further includes storing the repaired and/or updated primary core program in the storage unit to replace the abnormal core program.
TW100144578A 2011-12-05 2011-12-05 Self-repairing system and self-repairing method thereof TWI443507B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW100144578A TWI443507B (en) 2011-12-05 2011-12-05 Self-repairing system and self-repairing method thereof
CN201110440315.4A CN103136072B (en) 2011-12-05 2011-12-26 Automatic repair system and automatic repair method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100144578A TWI443507B (en) 2011-12-05 2011-12-05 Self-repairing system and self-repairing method thereof

Publications (2)

Publication Number Publication Date
TW201324128A TW201324128A (en) 2013-06-16
TWI443507B true TWI443507B (en) 2014-07-01

Family

ID=48495924

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100144578A TWI443507B (en) 2011-12-05 2011-12-05 Self-repairing system and self-repairing method thereof

Country Status (2)

Country Link
CN (1) CN103136072B (en)
TW (1) TWI443507B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI748653B (en) * 2020-09-18 2021-12-01 英業達股份有限公司 System and method for determining operation status of device by updating execution status

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI557594B (en) * 2015-06-02 2016-11-11 緯創資通股份有限公司 Method, system and server for self-healing of electronic apparatus
CN106354522A (en) * 2015-07-14 2017-01-25 冠捷投资有限公司 Automatic repairing method for electrical equipment
CN107765585A (en) * 2016-08-23 2018-03-06 南京中兴新软件有限责任公司 The upgrade method of digital power, apparatus and system
CN108432219B (en) * 2016-10-25 2020-09-11 华为技术有限公司 Recovery method and terminal device for terminal device boot failure
CN107273139A (en) * 2017-07-05 2017-10-20 努比亚技术有限公司 A kind of method for updating system, equipment and computer-readable recording medium
US10445088B2 (en) * 2018-01-11 2019-10-15 Macronix International Co., Ltd. System boot code clone
CN110324607B (en) * 2018-03-29 2020-12-08 佛山市顺德区顺达电脑厂有限公司 Automatic testing and repairing method of camera function and electronic device thereof
CN112906913A (en) * 2019-11-18 2021-06-04 英业达科技有限公司 Electronic device and detection method thereof
CN113221937A (en) * 2021-02-24 2021-08-06 山东万博科技股份有限公司 Emergency processing system and method based on artificial intelligence judgment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI315850B (en) * 2006-06-08 2009-10-11 Nat Univ Tsing Hua Upgrading device and method using bootloader in wireless sensor networks
KR101221491B1 (en) * 2007-10-23 2013-01-14 콸콤 인코포레이티드 Management of failures in wireless field devices
TWI460657B (en) * 2008-09-05 2014-11-11 Asustek Comp Inc Method for updating basic input/output system and method for repairing thereof
CN201345041Y (en) * 2008-09-11 2009-11-11 周庆民 Field data acquisition terminal capable of upgrading programs remotely

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI748653B (en) * 2020-09-18 2021-12-01 英業達股份有限公司 System and method for determining operation status of device by updating execution status

Also Published As

Publication number Publication date
CN103136072B (en) 2017-05-24
CN103136072A (en) 2013-06-05
TW201324128A (en) 2013-06-16

Similar Documents

Publication Publication Date Title
TWI443507B (en) Self-repairing system and self-repairing method thereof
CN101426077A (en) Method for on-line updating television set software through Internet
TWI470447B (en) Backup and restore of network configuration data using a remote controller device
JP3950589B2 (en) Information processing apparatus, program update method, and storage medium
CN100517248C (en) Software edition upgrading management device and software edition upgrading management method
CN102222011A (en) Software upgrading method for set-top box and set-top box
US9361091B2 (en) Information processing apparatus, information processing system, information processing method, and non-transitory computer-readable storage medium having stored therein an information processing program
CN103686363A (en) Set top box supporting double operating systems and operating system switching method of set top box
WO2017161947A1 (en) Multi-system ota upgrade method and multi-system device
JP4548307B2 (en) Separation type processing apparatus and software version updating method
CN106331862A (en) Set-top box software upgrading method and set-top box
CN106792266B (en) A kind of network detection method and device and digital set-top box
CN103106083A (en) Loading method and loading device of firmware
JP2014146310A (en) Method for activating service mode in electronic device and associated device
CN102170536B (en) Digital television network system, digital television all-in-one machine and upgrading method thereof
CN103246579A (en) Substrate management controller system
US20180039491A1 (en) Information processing device, relay device, information processing system, and software update method
CN104965744A (en) System upgrading method and embedded system
CA2928021A1 (en) Communication apparatus, communication system, communication method, and communication program
CN105957498A (en) Screen color temperature control method and device
WO2020110312A1 (en) Device control system, communication adapter, and household appliance
CN106157932A (en) The control method of screen intensity and device
US9971588B2 (en) Information processing apparatus, control method thereof, program and information recording medium
CN101626463A (en) Method for back-upping digital television software
CN102629998A (en) Batch-upgradeable television and batch-upgradeable and starting-up booting method thereof