201107967 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一電子裝置及於電子裝置中程式執行之校驗 方法,尤指一種嵌入式電子裝置及於嵌入式電子裝置中 程式執行之校驗方法。 【先前技術】 [匿]隨著消費性電子裝置之普及,人們越來越多之使用消費 性電子裝置,尤係一些有顯示幕具多種娛樂功能之電子 裝置’例如手機、數位相框、電視等^而隨著電子裝置 ξ% 功能之增強’電子裝置有時需要處理大量工作程式,這 樣就會增大不同程式間之工作衝突,增大出現錯誤之幾 率。而該等電子裝置於執行出現錯誤時往往不能很好解 決,或者需要手動重新啟動該電子裝置,影響用戶使用 〇 【發明内容】 [0003] ❹ [0004] 鑒於以上内容,有必要提供一能夠對執行程式進行校驗 嵌入式電子裝置及一種於嵌入式電子裝置中程式執行 之校驗方法。 種於嵌入式電子裝置中程式執行之校驗方法包括:記 子程式模組到一執行程式記錄模組;一系統程式處 *、’·執行該子程式模組;獲取該系統程式處理模組内 〜系统程式列表;一監控模組判斷該子程式模組之執 行"己錄Κ否存在於該系統程式列表中;及如果不存在, 於及系統程式處理模k巾關閉與該子程賴組相關之至 少一相關程式。 098127973 表單編號ΑΟίοι 第3頁/共1〇頁 0982047982-0 201107967 [0005] [0006] [0007] [0008] 098127973 一嵌入式電子裝置包括-系統程式處理模組、一可被該 系統程式處理模組之子程式缝、-監控模組、— 系統程式記_組及-執行料記錄触,該執行程式 記錄模組可於該祕程核理模纟讀行鮮程式模組時 記錄該子程式模組,該系_式記錄模組可獲取該系統 程式處理模組巾-线程式列表,該監浦組可判斷於 該執行程式模㈣之該子程式·之記錄是否存在於該 系統程式列表巾以較該子程式模組是否執行成功。 相對習知技術,本發明之嵌人式電子裝置及於喪入式電 子裳置中程錢行讀驗方法可_執飾式是否出現 錯誤或失效以作出相應之動作。 【實施方式】 請參閱圖1 ’ 一嵌入式電子裝置包括-系統程式處理模組 10、複數可被該系絲式處理模組则之子程式模組3〇 、一執行程式記錄模議、—監控模組70及-系統程式 記錄模組90。 該系統程式處理模組1G裝財ϋ可執行程式列表15 ,該系統可執行程式列表i 5記錄所有子程式模組3 〇以便 被該系統程式處理模組1{)調用。該系統程式處理模組^ 藉由消息管道(plpe Message)之方式訪問該子程式模組 30。該系統程式處理模組1()包括—處理器及—裝栽有複 數系統棺之記憶體。該處理器為—歲人式處理器。該系 統檔為系統之主應用程式,如作業系統程式等。 該執行程式記錄模組5 〇可即時地記錄該系統處理模紐1 〇 將執行之子程式模組3〇之程式名稱並生成一執行記 表單編號A0101 第4頁/共1〇頁 、 0982047982-0 [0009] 201107967 於本實施方式中,該執行程式記錄模組5 〇以日諸權之形 式記錄該執行之子程式模組30。該執行程式記錄模組5〇 為一被模擬為硬碟機之記憶體段Disk)。 [0010] [0011] ο [0012] [0013] [0014] 〇 [0015] [0016] [0017] [0018] 098127973 該系統程式記錄模組9 〇可即時地獲取該系統程式處理模 組w中裝載之一系統程式列表95。 該監控模組70可判斷於該執行程式模組5〇中之該子程式 模組30之執行記錄是否存在於該系統程式列表95中以確 定該子程式模組30是否執行成功。於本實施方式中該 監控模組70讀取該執行程式記錄模組5〇内之日諸樓以獲 取該子程式模組30之執行記錄。 請參閱圖2,於以上實施方式之嵌入式電子裝置中,於該 嵌入式電子裝置中程式執行之校驗方法包括以下步驟: S1〇 :該執行程式記錄模組5G記錄該子程式模細並生成 該執行記錄; S12 :該线程式處理模㈣執行該子程式模組30 ; S14 :該找程式記錄模峨獲取該純程式處理模組10 内之系統程式列表15 ; S16 ··該監控馳7G_該子程式模謂之執行記錄是否 存在於該线«咐如存在,财複步驟训到 S16,如不存在,則到S18 ; S18:於該系統程式處理模組1G中關閉與該子程式模組相 關之相關程式並重新執行該子程式模組3〇。 S20 :延遲5秒’重複步驟㈣到⑽。 表單編號A0101 第5頁/共1〇頁 0982047982-0 201107967 [0019] [0020] [0021] [0022] 本發明實施方式中之嵌入式電子裝置還包括一顯示幕、 一圖形控制器、一記憶體及複數坶邊通訊介面。該電子 裝置安裝有嵌入式作業系統及複數應用軟體,該嵌入式 作業系統可調用本發明實施方式中之各功能模組。該圖 形控制器用於將用戶操作介面顯示到該顯示幕。 綜上所述,本發明係合乎發明專利申請條件,爰依法提 出專利申請。惟,以上所述僅為本發明之較佳實施例, 舉凡熟悉本案技藝之人士其所爰依本案之創作精神所作 之等效修飾或變化,皆應涵蓋於以下之申請專利範圍内 〇 【圖式簡單說明】 圖1為本發明嵌入式電子裝置之較佳實施方式之功能模組 圖。 圖2為本發明程式執行之校驗方法之較佳實施方式之流程 圖。 【主要元件符號說明】 [0023] 系統程式處理 10 系統可執行程 15 模組 式列表 子程式模組 30 執行程式記錄 50 模組 監控模組 70 系統程式記錄 90 模組 系統程式列表 95 098127973 表單編號A0101 第6頁/共10頁 0982047982-0201107967 VI. Description of the Invention: [Technical Field] The present invention relates to an electronic device and a verification method for executing the program in the electronic device, and more particularly to an embedded electronic device and program execution in the embedded electronic device The verification method. [Prior Art] [Hidden] With the popularity of consumer electronic devices, more and more people use consumer electronic devices, especially electronic devices with display screens with various entertainment functions, such as mobile phones, digital photo frames, televisions, etc. ^ With the enhancement of the electronic device's % function, the electronic device sometimes needs to process a large number of work programs, which will increase the work conflict between different programs and increase the probability of errors. The electronic devices are often not well resolved in the execution of an error, or need to manually restart the electronic device, affecting the user's use. [Invention] [0003] [0004] In view of the above, it is necessary to provide a The execution program verifies the embedded electronic device and a verification method for executing the program in the embedded electronic device. The verification method for executing the program in the embedded electronic device includes: recording the program module to an execution program recording module; a system program program*, '· executing the subprogram module; acquiring the system program processing module ~ a list of system programs; a monitoring module determines whether the execution of the subroutine module is recorded in the list of system programs; and if it does not exist, the system program handles the mode and closes the subroutine At least one related program associated with the group. 098127973 Form No. ΑΟίοι Page 3 of 1 0982047982-0 201107967 [0005] [0007] [0008] 098127973 An embedded electronic device includes a system program processing module, and a system program can be processed by the system program. The sub-program seam, the monitoring module, the system program record _ group and the execution material record touch, and the execution program record module can record the sub-module when the secret program is read by the secret program module. a group, the system-type recording module can obtain the system program processing module towel-threaded list, and the monitoring group can determine whether the recording of the sub-program of the execution module (4) exists in the system program list towel Whether the execution of the subroutine module is successful. Compared with the prior art, the embedded electronic device of the present invention and the mid-way money reading method of the smuggling type of electronic device can make an error or failure to make a corresponding action. [Embodiment] Please refer to FIG. 1 'an embedded electronic device includes a system program processing module 10, a plurality of subprogram modules 3 can be used by the silk processing module, an execution program recording module, and monitoring Module 70 and system program recording module 90. The system program processing module 1G loads the executable program list 15 , and the system executable program list i 5 records all the sub program modules 3 〇 to be called by the system program processing module 1 {). The system program processing module accesses the subprogram module 30 by means of a ppl message. The system program processing module 1 () includes a processor and a memory loaded with a plurality of systems. The processor is an aged processor. The system file is the main application of the system, such as the operating system program. The execution program recording module 5 can instantly record the program name of the subroutine module 3 that the system processing module 1 will execute and generate an execution form number A0101 page 4 / total 1 page, 0982047982-0 [0009] 201107967 In the present embodiment, the executive program recording module 5 records the executed subroutine module 30 in the form of a daily right. The executable program recording module 5 is a memory segment (Disk) that is simulated as a hard disk drive. [0011] [0012] [0014] [0014] [0015] [0018] [0018] 098127973 The system program recording module 9 can instantly acquire the system program processing module w Load one of the system program listings 95. The monitoring module 70 can determine whether the execution record of the subroutine module 30 in the execution program module 5 is present in the system program list 95 to determine whether the subprogram module 30 is successfully executed. In the present embodiment, the monitoring module 70 reads the buildings in the execution program recording module 5 to obtain the execution record of the subprogram module 30. Referring to FIG. 2, in the embedded electronic device of the above embodiment, the verification method executed by the program in the embedded electronic device includes the following steps: S1: The execution program recording module 5G records the subroutine module and Generating the execution record; S12: the threaded processing module (4) executes the subroutine module 30; S14: the program search module acquires the system program list 15 in the pure program processing module 10; S16 ··· 7G_ The subroutine model indicates whether the execution record exists in the line «If there is, the financial step is trained to S16, if not, then to S18; S18: Close the sub-system in the system processing module 1G Program related to the program module and re-execute the subroutine module 3〇. S20: Delay 5 seconds 'Repeat steps (4) to (10). Form No. A0101 Page 5 / Total 1 Page 0982047982-0 201107967 [0020] [0022] The embedded electronic device in the embodiment of the present invention further includes a display screen, a graphic controller, and a memory. Body and complex communication interface. The electronic device is equipped with an embedded operating system and a plurality of application software, and the embedded operating system can call each functional module in the embodiment of the present invention. The graphics controller is used to display the user interface to the display. In summary, the present invention is in accordance with the conditions of the invention patent application, and the patent application is filed according to law. However, the above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art to the spirit of the present invention should be included in the following claims. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a functional block diagram of a preferred embodiment of an embedded electronic device of the present invention. 2 is a flow chart of a preferred embodiment of a verification method for program execution of the present invention. [Main component symbol description] [0023] System program processing 10 System executable program 15 Module list subprogram module 30 Execution program record 50 Module monitoring module 70 System program record 90 Module system program list 95 098127973 Form number A0101 Page 6 of 10 0982047982-0