1282494 玖、發明說明(1 ) 【發明所屬之技術領域】 本發明是有關於一種使電子裝置中系統回復之方法及 其電子裝置,特別是指一種利用較少儲存空間來備份與更 新系統之使系統内嵌式電子裝置中系統回復之方法及其電 5 子裝置。 【先前技術】 隨著科技發展,多種系統内嵌式電子裝置紛紛被推出 ,例如機上盒(Set-top Box,STB)、個人數位助理機 (Personal Digital Assistant,PDA)、掌上型電腦 ίο (Pocket PC)、行動電話、筆記型電腦等等,為人們生活 帶來種種便利性。這些系統内嵌式電子裝置中的儲存單元 中大都會嵌有一系統,以使系統内嵌式電子裝置不需與其 他裝置搭配而可獨立執行所需的功能。舉例來說,如第一 圖,此系統内嵌式電子裝置係一機上盒1,機上盒1内部 15 設有一如快閃記憶卡之類的儲存單元11來儲存系統檔12 ,以使電視可上網及播放原本僅能於電腦播放之影像訊號 。如第二圖,系統槽12可能包含作業系統(Operating System,OS)、系統資料庫、晝面顯示程式、網路服務程 式、元件驅動程式等等,以將機上盒1作動所需的軟體直 20 接内嵌於儲存單元11中。如此,機上盒1可逕自利用系 統檔12來獨立作業而不需其他系統配合,以達到便於使 用之功效。再者,為了確保系統的穩定性,儲存單元11 中更會儲存一與系統檔12相同之備用系統檔13,以於當 機上盒1無法應用系統檔12啟動系統時,例如系統檔12 1282494 玖、發明說明(2 ) 發^錯誤,則可直接由備用系統播13來啟動,以確保機 j盒1隨時可啟動’且啟動後,可利用備用系統檔13來 還原系統檔12。 5 |另外,隨著技術進步或軟體中錯誤(Bug)被發現等因 5素,系統檔12難免需更新(Update)作業。目前存在多種 更新方式,其中一種常見更新方式是將新版的系統樓儲存 於一系統槽伺服器2中,而當系統内嵌式電子裝置需更新 糸統檔時,則可至系統檔伺服器2下載新版的系統播來進 ι〇订系統棺更新作業。詳細來說,配合第三圖,首先在步驟 中系統内肷式電子裝置可透過類似遠端存取功能 (R^note A⑽ss Service,RAS)之方式來下載系統播祠 服2中的新版系統檔,並於下載完成後進入步驟。 在步驟22中’系統内嵌式電子裝置會使新版系統覆蓋原 2系統檔12,以利用新版系統檔來更新系統檔内容。其 15次,在更新完成後執行步驟23,以利用更新後的系統檔 12重新啟動系統,即重新開機。若啟動成功,則執行步 ^ 24 j則同步更新備用系統樓13使其與更新後的系統槽 12相同。反之,若無法以更新後的系統檔12啟動系統時 貝J跳至步驟25,以備用系統檔13來啟動系統後,繼續 ° ^ ^ 26 ’利用系統構丨3來還原更新失敗的系統檔12,並 7下人由逖原的系統檔丨2來啟動系統。如此,系統檔i 2 更新失敗時,仍可利用備用系統檔13來還原,以確保系 統恆可被啟動,進而自行修復系統㉟12,甚者重新更新 1282494 .:.................................... 玖、發明說明(3 )、 糸統權 12,^ ^ 热須維修人員的協助,以達到降低廠商與使 勺、隹修成本且確保系統的穩定性之功效。 戶然而,目前備用系統檔13是系統檔12的完全拷貝, 二二備用系統權13佔用的儲存空間與系統樓η相當,使 :系亡内肷式電子裝置至少需有兩倍於系統檔12容量的 ?子單7L 11,來供儲存系統檔12與備用系統檔的儲 存。為I考慮系統内嵌式電子裳置的體積大小、資料存取 、:/、貝料保存等因素’目前系統内嵌式電子裝置中的儲 存單兀11大都為快閃(Flash)元件,例如CF(c〇mp奶 1〇 ^⑻卡、D_isk Qn MQduie)卡。然而,此類的儲存 早几11相較於系統内嵌式電子裝置整個系統中其他元件 ,係屬於成本較昂貴的元件,且隨著容量的增加儲存單元 11的價格更是大幅增加。所以,若能使系統内嵌式電子 衣置中格配儲存單元11的所需容量能降低,則硬體成本 15就能有效下降。但是,備用系統槽13有其存在必要,以 應付系統槽12更新失敗或系統槽12損毀的情況,所以並 無法捨棄備用系㈣13,致使儲存單S U的戶斤需容量無 法有效降低。 .........…、Ά 叫 /丁、、% ίι 12啟動的時刻,且系統若能啟動時可利用諸如系統檔个: 服為2之類的外界裝置來進行系統檔12回復或更新,片 以本案發明mm㈣t 13可僅包含讓系統啟_ 連結外界裝置之必要系統與程式,如此則可透過外界裝眉 來更新或回復系統檔12,以7維持系統的穩定性,且因儀 20 1282494 玖、發明說明(4 ) ...,..W.,.ν.νΛ ,:.;,ν; :.;·Μ.::.χ 用系統樓13並非系統槽12的完全拷貝而僅包含系統樓 12中的-部份,所以備用系統檔13的檔案大小可有效: 低,隨之儲存皁7C 11白勺成本亦可降低,以解決以往的問 題。 5 10 15 [發明内容】 因此’本發明之-目的,即在提供—種使系統内嵌式 電子裝置中系㈣回復之方法及其電子裝置,係降低供備 用系統檔的容量至其仍具有足以應付自外界電腦平台下载 更新檔的功能,以達有效降低儲存空間之功效。 於是,本發明之-種使系統内嵌式電子裝置中系統棺 回復之方法’該系統内嵌式電子裝置内載有—系統棺及一 備用系統檔,該系統檔具有_作„統、複數驅動程式及 複數應、靠式,㈣用⑽檔具有使⑽嵌式電子裝 置啟動與連結-電腦平台之必要“與程式,該電腦平台 儲存-與該系統樓對應的更新檔,該方法包含下列步驟·· A)當該錢内嵌式電子裝置無法由該系統檔啟動系統 時’則由該備用系統檑來啟動系統並連結至該電腦平台, 以下載該更新檔來更新該系統檔;及 B)當該⑽檔更新後,則恢復由該系㈣來啟動系統 【實施方式】 本發明之特徵在於使供系統標備用之備用系統播僅包 含系統播中使為内嵌式系統產品的電子農置啟動與供連結 電腦平台之必要线與m不㈣往為线播的完全 20 1282494 玖、發明說明(5 ) 拷貝,並搭配於系統檔損壞(即無法啟動系統)時,連結電 腦平台以下載更新檔來回復(或更新)系統檔,而有別於以 往由備用系統檔回復的方式。為了讓本發明更容易被瞭解 ,將以如第四圖的一實施例來說明。本實施例中系統内嵌 5 式電子裝置3係一機上盒,係使電視可上網及播放原本僅 能於電腦播放之影像訊號。 如第五圖,本例之系統内嵌式電子裝置3大致具有一 微處理器31、一記憶體32、一儲存單元33及一網路卡 34。微處理器31用以控制系統内嵌式電子裝置3整體作 10 動。記憶體32用以供暫存系統運作中的資料而可為隨機 存取記憶體(Random Access Memory,RAM)。儲存單元 33係一快閃元件而用來儲存非暫存性的資料,如軟體、 資料檔案等等。網路卡34係一種傳輸介面並用以使資料 可經網路上傳至其他裝置或者使經網路下載資料至系統内 15 嵌式電子裝置3。另外,熟習此技者當知,本例之系統内 嵌式電子裝置3更可包含其他種類的傳輸介面,例如 IEEE 1394 35、USB、紅外線、藍芽等等,以提供其他標 準的傳輸介面與外界裝置溝通,且系統内嵌式電子裝置3 亦包含一顯示介面卡36(如VGA)、一 MPEG I / Π解碼器 20 /編碼器37、CD/VCD ROM(唯讀記憶體)等等,並不應受限 於本例的說明。 應注意的是,如第四圖,本例之儲存單元33至少儲 存一系統檔331與一備用系統檔332。類似前述第二圖, 系統檔331包含作業系統(如WinCE、Linux)、複數驅動 1282494 玖、發明說明(6 ) 程式(例如顯示介面卡驅動程式、網路卡驅動程式、1394 驅動程式、PS2驅動程式、USB驅動程式)及複數應用程 式【微軟類別庫(Microsoft Foundation Class,MFC )、劉 覽器(Browser )、系統槽更新程式、DirectX、多媒體播 5 放器(Media Player*)】。而後,由系統檔331中選擇使系 統内嵌式電子裝置3啟動與連結一外界電腦平台4之必要 系統與程式核心,以構成備用系統檔332。本例中,電腦 平台4係一伺服器,係儲存一與系統檔331對應之更新檔 ,由於隨著技術演進與系統中錯誤被發現,所以更新檔中 10 可能包含多數個版本的檔案,而其中有一版本係相同於系 統檔331。因電腦平台4為伺服器,系統内嵌式電子裝置 3中對應使用的傳輸介面為網路卡34,另如第六圖,備用 系統檔332具有一維持系統啟動之子集合系統38(Subset OS,又稱基本型作業系統)、一網路服務程式集合39(第 15 一程式集合)與一系統檔更新程式40。網路服務程式集合 39係使系統内嵌式電子裝置3可與電腦平台4連結並令 兩者可經網路相互傳輸資料之程式,其包含一驅動程式用 以驅動網路卡34,與一網路服務程式係使資料符合網路 資料傳輸標準,例如TCPHP。系統檔更新程式40係一自 20 電腦平台4下載更新檔用之應用程式。而且,系統内嵌式 電子裝置3内定優先應用系統檔331來啟動系統並設定備 用系統檔332為其次順位,如此,當系統内嵌式電子裝置 3開機啟動系統時,會先應用系統檔331來啟動系統,並 於系統檔331無法使用時再由備用系統檔332來啟動系統 10 1282494 玖、發明說明(7 ) ' ’而且依據前述備料、統檔332所包含的程式,可使系統 開機並連線至電腦平台4,以下載與系統楷331對應之更 ^當(容後再述)。另外,備用系統檔332基本上設定是唯 項’亦即使用者無法自行變更傷用系統檔说的内容,以 5確保備用系統檔332的資料正確無誤以值可於系統樸别 無法開機時支援開機。 依據前述的構件與相互關係,配合第七圖來說明應用 本發明之更新系統檔331方法的一實施例。由於系統331 更新時較容易使系統檔331發生損毀,所以本實施例以更 10 新系統檔331為例來說。 首先在步驟41,系統内嵌式電子裝置3係經網路連 、σ上%月自平σ 4並選擇與系統播33 i對應之更新樓中最新 版本的槽案下載。其次,在步驟42巾,以自電腦平台* 下載的播案替換系統槽331,以更新系統槽331的版本。 15而於更新完成後並設H统重新啟動,如此在步驟U _ ,判斷是否能由已更新的系統標啟動系、统43,若是的話 ’意味著下載龍案正確無誤,則結束系㈣331更新作 業。反之,若系統無法啟動時,則執行步驟44,改由備 用系統播332啟動系統並連結上電腦平台4,進而跳回步 2〇驟42,以重新取得最新版本之檔案,如此利用前述步驟 41〜44,可重復更新系統檔331直至更新後的系統檔 可用來啟動系統為止。如此,當系統檔331更新錯誤時, 可利用備用系統檔332來啟動系統並重新下載檔案來^補 錯誤,而且備用系統檔332僅為系統檔331的_部份而= 1282494 玖、發明說明(8 .) 系統播33i的拷貝,以機上盒之備用系統權说(如第六圖 )相較於系、統槽(如第二圖)為例,則可降低約财,所: H仏332的谷篁甚小於以往備用系統檔,進而可達到 兼顧糸統穩定性與縮小容量之功效。 5 再者,雖然前述實施例係以更新系統播方式 f技者當知,本發明亦可提供於系統楷33ι 日寸的修復功能,亦即當季# ^ $鮮仏331因其它因素例如當機而 此時因無法以系統檔切啟動系統,則會依序執 仃刖述步驟43、44、41、M l门 ^ 10 331接 42,如圖10,利用更新系統標 的方式來替換毀壞之系 33 復之功效。 運到系統自行修 15 此外,前述實施例於步驟41中設定下載電 中與系統檔331對應的更新檔中的最新版本,然而實:上 由於儲存於電腦平台4中的更新檔會包含複數版本=安 擇下载’其中-版本會相同於系統檔331的^ ^去喊版糸統播使用不習慣、更新不順利等等因本, 吏用者可能會想㈣復成原先未更新前的 弟八圖,係本發明之更新方法的另一實施例。化如 20 ,本實施例與前述實施例不同處在於,當開始 棺時,先於步驟51,蚀^水 ’斤系、,先 傳至電腦平台二用^\選擇是否將系統^上 置3會執行步驟52,以將系統播331上傳 子/ 亦即備份系統擋331於電 4, 53。反之,若選擇以日 後繼續執行步驟 -、擇為否日守,則跳至步驟53。在步驟幻中 12 1282494 玖、發明說明(9 ) ’使用者可由與系統檔331對應的更新檔中所有版本的稽 木與備份系統樓中擇一後,執行步驟54,開始自電腦平 口 4下載選定擔案’並於下載完成後繼續步驟5 5。在步 & 55中’以下載的檔案更新系統檔331,及於更新完成 後執行步驟56,以重新啟動系統來判斷更新後的系統 檔331是否能啟動系統。在步驟56,若判斷更新後的系 、、先祂可啟動系統時,則結束更新作業。相反地,若步驟 56判斷為否時,則執行步驟57,換由備用系統檔332啟 10 動系統亚連結電腦平台4,而後跳回步驟53。如此,在步 驟53中,使用者可選擇下載先前於步驟%中上傳的備份 系、、先才虽、其他版本的播案,例如與原本未更新前的系統槽 相同版本之;^案、或者最新版本槽案,以提供使用者更多 、擇口而本只施例除了具有前述實施例之兼顧系統 15 穩定性與降低儲存空間的功效外,更提供使用者選擇備份 原始糸統槽與選擇下載不同版本之功能,以讓使用者且有 更多彈性空間來供選擇。 歸納上述,在本發明φ . 中使備用功能之備用系統檔 20 為糸統播331的一部份且搭配由外界電腦平台4下 =案之方法’使其能在系統檔能有 要件下,降低備用系統標332所需之儲存容量 ==定與降低_量之功效,連帶的供儲存系 要求容量亦可降低,因而可採:二本晴元33的 ,以大幅降低硬體成本,進 里車乂低之儲存單元33 而產品市場競爭力。 13 1282494 玖、發明說明(10 ) 應注意的是,雖然前述實施例之系統内嵌式電子裝置 3列舉機上盒為例,然而熟習此技者當知,亦可應用於其 他種類的系統内嵌式電子裝置,如第九圖中的個人數位助 理機6、掌上型電腦7、行動電話、筆記型電腦等等,而 5 系統内嵌式電子裝置3與電腦平台4間的資料除了透過網 路外,亦可透過其他種類之傳輸介面,例如IEEE 1394 35、USB、藍芽、紅外線等等,以及電腦平台4可為異於 伺服器之裝置,例如個人電腦等等,因而不應受限於本文 為說明目的而揭露者。 ίο 惟以上所述者,僅為本發明之較佳實施例而已,當不 能以此限定本發明實施之範圍,即大凡依本發明申請專利 範圍及發明說明書内容所作之簡單的等效變化與修飾,皆 應仍屬本發明專利涵蓋之範圍内。 【圖式簡單說明】 15 第一圖是一種習用的系統内嵌式電子裝置之示意圖, 此系統内搬式電子裝置係一機上盒。 第二圖是第一圖的系統内嵌式電子裝置中的系統檔的 示意圖。 第三圖是第一圖系統内嵌式電子裝置的一種習用的系 20 統檔更新方法。 第四圖是本發明之具有系統檔回復功能之系統内嵌式 電子裝置的示意圖,此系統内嵌式電子裝置係一機上盒並 可經網路連結一電腦平台。 第五圖是第四圖中的系統内嵌式電子裝置之方塊示意 14 1282494 玖、發明說明(11 ) 圖0 *第六圖是第四圖中的系統内嵌式電子農置的備用系統 檔的一範例的示意圖。 5 10 第七圖是第四圖中的系統内嵌式電子裝置的系統梓 新方法之一範例的流程圖。 第八圖是第四圖中的系統内嵌式電子裝置的系统梓更 新方法之另一範例的流程圖。 統内嵌式1282494 发明Invention Description (1) Technical Field of the Invention The present invention relates to a method for recovering a system in an electronic device and an electronic device thereof, and more particularly to a method for backing up and updating a system using less storage space. The method of system recovery in the system embedded electronic device and its electric 5 sub-device. [Prior Art] With the development of technology, a variety of system embedded electronic devices have been introduced, such as Set-top Box (STB), Personal Digital Assistant (PDA), Pocket PC ίο ( Pocket PC), mobile phones, laptops, etc., bring convenience to people's lives. Systems in these system-embedded electronic devices are embedded with a system that allows the system's embedded electronics to perform the required functions independently without the need for other devices. For example, as shown in the first figure, the embedded electronic device of the system is a set-top box 1. The interior 15 of the set-top box 1 is provided with a storage unit 11 such as a flash memory card to store the system file 12, so that The TV can access the Internet and play video signals that can only be played on a computer. As shown in the second figure, the system slot 12 may include an operating system (OS), a system database, a face display program, a network service program, a component driver, etc., to implement the software required for the set-top box 1 to operate. Straight 20 is embedded in the storage unit 11. In this way, the set-top box 1 can be independently operated by using the system file 12 without other systems to achieve the effect of being convenient to use. Furthermore, in order to ensure the stability of the system, the storage unit 11 stores a backup system file 13 identical to the system file 12, so that when the set-top box 1 cannot apply the system file 12 to start the system, for example, the system file 12 1282494玖, invention description (2) If the error is generated, it can be directly activated by the standby system broadcast 13 to ensure that the machine j box 1 can be started at any time. After the startup, the backup system file 13 can be used to restore the system file 12. 5 | In addition, as technology advances or bugs in software are found, it is inevitable that the system file 12 needs to be updated. There are a variety of update methods. One of the common update methods is to store the new system building in a system slot server 2, and when the system embedded electronic device needs to update the system file, it can go to the system file server 2 Download the new version of the system to download the system and update the job. In detail, in conjunction with the third figure, in the first step, the system can download the new system file in the system broadcast service 2 through the similar remote access function (R^note A(10)ss Service, RAS). And enter the step after the download is complete. In step 22, the system embedded electronic device will cause the new system to overwrite the original 2 system file 12 to update the system file content with the new system file. 15 times, after the update is completed, step 23 is executed to restart the system with the updated system file 12, that is, reboot. If the startup is successful, then step (24) is followed to update the standby system building 13 to be the same as the updated system slot 12. Conversely, if the system cannot be started with the updated system file 12, then jump to step 25 and start the system with the backup system file 13. Continue to use the system configuration 3 to restore the system file that failed the update. And 7 people started the system by the original system file 逖2. In this way, when the system file i 2 fails to update, the backup system file 13 can still be used to restore, so as to ensure that the system can be started, and then the system 3512 is repaired by itself, and then re-updated 1282494.:......... ........................... 玖, invention description (3), 糸 权 12, ^ ^ assistance from heat maintenance personnel, It achieves the effect of reducing the cost of the manufacturer and the scoop, repairing the cost and ensuring the stability of the system. However, at present, the backup system file 13 is a complete copy of the system file 12, and the storage space occupied by the second and second backup system rights 13 is equivalent to the system floor η, so that the system must be at least twice as long as the system file 12 The capacity of the sub-single 7L 11, for storage of the storage system file 12 and the backup system file. Considering the size, data access, and/or material storage of the embedded electronic device in the system for I. Currently, the storage unit 11 in the embedded electronic device of the system is mostly a flash component, for example CF (c〇mp milk 1〇^(8) card, D_isk Qn MQduie) card. However, the storage of this type is a relatively expensive component compared to other components in the entire system of the system embedded electronic device, and the price of the storage unit 11 is greatly increased as the capacity is increased. Therefore, if the required capacity of the system-embedded electronic clothing unit in the storage unit 11 can be reduced, the hardware cost 15 can be effectively reduced. However, the backup system slot 13 has its existence necessary to cope with the failure of the system slot 12 to be updated or the system slot 12 is damaged. Therefore, the spare system (4) 13 cannot be discarded, so that the capacity of the storage unit S U cannot be effectively reduced. ............, Ά/丁,, % ίι 12 The moment of starting, and if the system can be started, it can use system such as system file: external device such as service 2 to carry out system file 12 Reply or update, the film invented in this case mm(4)t 13 can only contain the necessary systems and programs for the system to open the external device, so that the system can be updated or restored by the external eyebrow to maintain the stability of the system, and Instrument 20 1282494 玖, invention description (4 ) ...,..W.,.ν.νΛ ,:.;, ν; :.;·Μ.::.χ The system building 13 is not the system slot 12 The full copy only contains the part of the system building 12, so the file size of the backup system file 13 can be effective: low, and the cost of storing the soap 7C 11 can be reduced to solve the previous problems. 5 10 15 [Summary of the Invention] Therefore, the object of the present invention is to provide a method for recovering a system (4) in an embedded electronic device and an electronic device thereof, thereby reducing the capacity of the standby system file until it still has It is enough to cope with the function of downloading the update file from the external computer platform, so as to effectively reduce the storage space. Thus, the method of the present invention for recovering a system in an embedded electronic device of the system is characterized in that the embedded electronic device of the system carries a system and a standby system file, and the system file has a system and a plurality of files. Drivers and plurals should be relied upon. (4) Use (10) files to enable (10) embedded electronic devices to be activated and connected - the necessary platform for the computer platform - the program, the computer platform to store - the update file corresponding to the system building, the method includes the following Step·· A) when the money embedded electronic device cannot start the system by the system file, then the backup system is used to start the system and connect to the computer platform to download the update file to update the system file; B) When the (10) file is updated, the system is resumed by the system (4). [Embodiment] The present invention is characterized in that the backup system for the system standard backup includes only the electronic system that is used as the embedded system product in the system broadcast. The necessary line for the start of the farm and the connection to the computer platform and m (4) to the line for the complete 20 1282494 发明, invention description (5) copy, and when the system file is damaged (that is, the system cannot be started) Connecting the computer internet to download an update to reply (or updated) file system, and to respond to is different from the file system backup mode. In order to make the invention easier to understand, it will be explained in an embodiment as shown in the fourth figure. In the embodiment, the embedded electronic device 3 is a set-top box, which enables the television to access the Internet and play video signals that can only be played on the computer. As shown in FIG. 5, the system embedded electronic device 3 of the present embodiment generally has a microprocessor 31, a memory 32, a storage unit 33, and a network card 34. The microprocessor 31 is used to control the system embedded electronic device 3 as a whole. The memory 32 is used for temporarily storing data in the system operation and can be a random access memory (RAM). The storage unit 33 is a flash component for storing non-temporary data such as software, data files, and the like. The network card 34 is a transmission interface and is used to enable data to be uploaded to other devices via the network or to download data to and from the system via the network. In addition, it is known to those skilled in the art that the system embedded electronic device 3 of this example can further include other kinds of transmission interfaces, such as IEEE 1394 35, USB, infrared, Bluetooth, etc., to provide other standard transmission interfaces and The external device communicates, and the system embedded electronic device 3 also includes a display interface card 36 (such as VGA), an MPEG I / Π decoder 20 / encoder 37, CD / VCD ROM (read only memory), and the like. It should not be limited to the description of this example. It should be noted that, as in the fourth figure, the storage unit 33 of this example stores at least one system file 331 and one standby system file 332. Similar to the foregoing second figure, the system file 331 includes an operating system (such as WinCE, Linux), a complex driver 1282494, and a description (6) program (such as a display interface card driver, a network card driver, a 1394 driver, and a PS2 driver). Programs, USB drivers, and multiple applications [Microsoft Foundation Class (MFC), Browser, System Slot Updater, DirectX, Media Player*). Then, the system embedded software 331 is selected to enable the system embedded electronic device 3 to start and connect the necessary system and program core of the external computer platform 4 to form the standby system file 332. In this example, the computer platform 4 is a server that stores an update file corresponding to the system file 331. Since the technology is evolved and errors in the system are found, the update file 10 may contain most versions of the file, and One of the versions is the same as the system file 331. Since the computer platform 4 is a server, the corresponding transmission interface in the system embedded electronic device 3 is the network card 34. As another sixth figure, the backup system file 332 has a sub-set system 38 (Subset OS, which maintains the system startup). Also known as the basic operating system), a network service program set 39 (the 15th program set) and a system file update program 40. The network service program set 39 is a program for connecting the embedded electronic device 3 to the computer platform 4 and allowing the two to transmit data to each other via the network. The driver includes a driver for driving the network card 34, and a The web service program makes the data conform to the network data transmission standard, such as TCPHP. The system file update program 40 is an application for downloading the update file from the 20 computer platform 4. Moreover, the system embedded electronic device 3 has a priority application system file 331 to start the system and set the backup system file 332 to be the second order. Thus, when the system embedded electronic device 3 starts the system, the system file 331 is applied first. The system is booted, and when the system file 331 is unavailable, the system 10 512494 is opened by the backup system file 332, and the invention description (7) ' ' and the system can be turned on and connected according to the program included in the foregoing preparation and file 332. The line to the computer platform 4 is downloaded to correspond to the system 楷 331 (more on the later). In addition, the backup system file 332 is basically set to be a unique item, that is, the user cannot change the content of the injury system file by itself, and 5 ensures that the data of the backup system file 332 is correct and can be supported when the system is unable to boot. Boot up. An embodiment of the method of updating the system file 331 of the present invention will be described in conjunction with the seventh figure in accordance with the foregoing components and relationships. Since the system file 331 is more likely to be damaged when the system 331 is updated, the present embodiment takes the more new system file 331 as an example. First, in step 41, the system embedded electronic device 3 is connected to the latest version of the latest version of the updated building corresponding to the system broadcast 33 i via the network connection, σ upper month self-level σ 4 . Next, in step 42, the system slot 331 is replaced with the broadcast downloaded from the computer platform* to update the version of the system slot 331. 15 and after the update is completed, set H system to restart, so in step U _ , to determine whether the system can be activated by the updated system standard, if it means 'the downloading dragon case is correct, then the end system (four) 331 update operation. On the other hand, if the system fails to start, step 44 is executed, and the standby system broadcast 332 starts the system and connects to the computer platform 4, and then jumps back to step 2 to retrieve the latest version of the file, thus using the foregoing step 41. ~44, the system file 331 can be repeatedly updated until the updated system file can be used to start the system. Thus, when the system file 331 is updated incorrectly, the backup system file 332 can be used to start the system and re-download the file to compensate for the error, and the backup system file 332 is only the _ part of the system file 331 = 1282494 发明, invention description ( 8 .) The system broadcasts a copy of 33i, which is based on the standby system right of the set-top box (as shown in the sixth figure). Compared with the system and the unified slot (such as the second figure), the financial savings can be reduced. The 332's glutinous rice is much smaller than the previous backup system file, which can achieve both the stability and the capacity reduction. 5 Furthermore, although the foregoing embodiment is known to update the system broadcast mode, the present invention can also provide a repair function of the system 楷33ι, which is the season #^$仏 331 due to other factors such as At this time, because the system cannot be started by the system file, the steps 43 , 44 , 41 and M l door 10 10 331 are connected in sequence, as shown in FIG. 10 , and the damaged system is replaced by the method of updating the system. Department 33 is effective. The system is self-repaired. In addition, the foregoing embodiment sets the latest version of the update file corresponding to the system file 331 in the downloading power in step 41. However, the update file stored in the computer platform 4 may include multiple versions. = Security downloads - where - the version will be the same as the system file 331 ^ ^ to call the version of the system is not used to use, update is not smooth, etc., the user may think (four) re-established the original un-updated brother Eight figures are another embodiment of the updating method of the present invention. The difference between the embodiment and the foregoing embodiment is that, when starting the sputum, prior to step 51, the etch water is smashed, and first transmitted to the computer platform 2 to select whether to set the system to be 3 Step 52 is executed to upload the system broadcast 331 / that is, the backup system block 331 to the power 4, 53. Conversely, if you choose to continue with the steps in the future - and choose No Day, skip to step 53. In the step of the illusion 12 1282494 玖, invention description (9) 'users can be selected from all the versions of the log and backup system in the update file corresponding to the system file 331, step 54, start downloading from the computer flat 4 Select the case' and continue with step 5 5 after the download is complete. In step & 55, the system file 331 is updated with the downloaded file, and after the update is completed, step 56 is executed to restart the system to determine whether the updated system file 331 can boot the system. At step 56, if it is determined that the updated system, and then He can start the system, the update operation is ended. Conversely, if the determination in step 56 is negative, step 57 is executed to switch the system system 332 to the system sub-connected computer platform 4, and then jump back to step 53. In this way, in step 53, the user may select to download the backup system previously uploaded in step %, the first version, the other version of the broadcast, for example, the same version of the system slot that was not previously updated; ^, or In the latest version of the slot case, the user is provided with more options and options. In addition to the above embodiments, the stability of the system 15 and the reduction of storage space are provided, and the user is also provided to select the backup source slot and selection. Download different versions of the feature to give users more flexibility to choose from. In summary, in the present invention, the standby system file 20 of the standby function is a part of the system 331 and is matched with the method of the external computer platform 4 to make it available in the system file. Reduce the storage capacity required for the backup system standard 332 == the effect of the fixed and reduced _ quantity, the associated storage system requirements can also be reduced, so it can be used: two clearing 33, to significantly reduce the hardware cost, into The storage unit 33 is degraded and the product market is competitive. 13 1282494 发明, invention description (10) It should be noted that although the system-embedded electronic device 3 of the foregoing embodiment cites a set-top box as an example, it is known to those skilled in the art that it can be applied to other types of systems. The embedded electronic device, such as the personal digital assistant 6 in the ninth figure, the palmtop computer 7, the mobile phone, the notebook computer, etc., and the data between the system embedded electronic device 3 and the computer platform 4 is in addition to the network. Outside the road, other types of transmission interfaces, such as IEEE 1394 35, USB, Bluetooth, infrared, etc., and the computer platform 4 can be different from the server device, such as a personal computer, etc., and thus should not be limited. It is disclosed herein for illustrative purposes. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, that is, the simple equivalent changes and modifications made in accordance with the scope of the present invention and the contents of the description of the invention. All should remain within the scope of the invention patent. [Simple description of the diagram] 15 The first figure is a schematic diagram of a conventional embedded electronic device of the system. The portable electronic device in the system is a set-top box. The second figure is a schematic diagram of the system file in the system embedded electronic device of the first figure. The third figure is a conventional method for updating the system of the in-line electronic device of the first figure system. The fourth figure is a schematic diagram of the system embedded electronic device with the system file recovery function of the present invention. The system embedded electronic device is a set-top box and can be connected to a computer platform via a network. The fifth figure is the block diagram of the system embedded electronic device in the fourth figure. 14 1282494 发明, invention description (11) FIG. 0 * The sixth figure is the standby system file of the system embedded electronic farm in the fourth figure. A schematic diagram of an example. 5 10 Figure 7 is a flow chart showing an example of one of the new methods of system embedded electronic devices in the fourth figure. The eighth figure is a flow chart showing another example of the system 梓 update method of the system embedded electronic device in the fourth figure. Inline
苐九圖是本發明之具有系統樓回復功能之系 電子裝置的另一實施例的示意圖。 第十圖是第四圖中的系統内嵌式電子裝置的系统_ t 新方法之又一範例的流程圖。The nine-figure diagram is a schematic diagram of another embodiment of the electronic device of the present invention having a system building recovery function. The tenth figure is a flow chart of still another example of the system_t new method of the system embedded electronic device in the fourth figure.
15 1282494 玖、發明說明(12 ) 【圖式之主要元件代表符號簡單說明】 3系統内嵌式電子裝置 332備用系統檔 31微處理器 38子集合系統 32記憶體 39網路服務程式集合 33儲存單元 40系統檔更新程式 34網路卡 4電腦平台 35 IEEE 1394 6個人數位助理機 36顯示介面卡 37 MPEG I / Π編碼器/解碼器 331系統檔 7掌上型電腦 1615 1282494 发明, invention description (12) [Simplified description of the main components of the diagram] 3 system embedded electronic device 332 standby system file 31 microprocessor 38 sub-collection system 32 memory 39 network service program set 33 storage Unit 40 system file update program 34 network card 4 computer platform 35 IEEE 1394 6 personal digital assistant machine 36 display interface card 37 MPEG I / Π encoder / decoder 331 system file 7 palm computer 16