TWI408554B - File-reading method and embedded system using the same - Google Patents

File-reading method and embedded system using the same Download PDF

Info

Publication number
TWI408554B
TWI408554B TW99104769A TW99104769A TWI408554B TW I408554 B TWI408554 B TW I408554B TW 99104769 A TW99104769 A TW 99104769A TW 99104769 A TW99104769 A TW 99104769A TW I408554 B TWI408554 B TW I408554B
Authority
TW
Taiwan
Prior art keywords
file
memory device
cache
removable memory
table cache
Prior art date
Application number
TW99104769A
Other languages
Chinese (zh)
Other versions
TW201128390A (en
Inventor
Chung Li Yang
Original Assignee
Mstar Semiconductor Inc
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 Mstar Semiconductor Inc filed Critical Mstar Semiconductor Inc
Priority to TW99104769A priority Critical patent/TWI408554B/en
Publication of TW201128390A publication Critical patent/TW201128390A/en
Application granted granted Critical
Publication of TWI408554B publication Critical patent/TWI408554B/en

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

A file-reading method and an embedded method using the file-reading method are concerned. The embedded system executes thereon a multimedia application program and has a system memory. The method includes: providing a first table cache to temporarily store a first link list corresponding to a first file in response to a first file-reading command issued to a removable storage device by the multimedia application program, wherein the first table cache is located in a first block of the system memory; and providing a second table cache to temporarily store a second link list corresponding to a second file in response to a second file-reading command issued to the removable storage device by the multimedia application program, wherein the second table cache is located in a second block of the system memory.

Description

檔案讀取方法與應用該方法之嵌入式系統File reading method and embedded system using the same

本案係為一種檔案讀取方法與應用該方法之一嵌入式系統。This case is an embedded system for file reading method and application of the method.

隨著資訊科技之快速發展,數位家電之功能也越來越強大,數位電視便是一個明顯的例子,而能夠直接讀取隨身碟中之多媒體檔案來進行播放,扮演如數位相框的角色,就是一個相當方便的功能。如第一圖所示,數位電視10的機側設置了一組通用串列匯流排連接埠100,提供使用者將儲存有音樂檔案與數位相片檔案之隨身碟11置入,數位電視10可透過通用串列匯流排來讀取音樂檔案與數位相片檔案來進行播放,進而讓使用者可以在觀看相片時聆聽音樂。With the rapid development of information technology, the functions of digital home appliances are becoming more and more powerful. Digital TV is an obvious example. It can directly read the multimedia files in the flash drive to play, playing the role of digital photo frame. A fairly convenient feature. As shown in the first figure, a set of universal serial bus port 埠100 is provided on the machine side of the digital television 10, and the user is provided with the flash drive 11 storing the music file and the digital photo file, and the digital television 10 is permeable. Universal serial bus to read music files and digital photo files for playback, allowing users to listen to music while viewing photos.

而為能達到上述功能,習用數位電視的作業系統便要能讓應用程式讀得到隨身碟11中之音樂檔案與數位相片檔案,而最方便的方式就是提供一個檔案系統應用程式設計介面(File System Application Programming Interface,簡稱File System API)來讓應用程式呼叫,進而完成音樂檔案與數位相片檔案之讀取。In order to achieve the above functions, the operating system of the digital TV will be able to let the application read the music files and digital photo files in the flash drive 11, and the most convenient way is to provide a file system application design interface (File System). Application Programming Interface (File System API) is used to let the application call to complete the reading of music files and digital photo files.

請參見第二圖,其係習用數位電視內部用以讀取與播放隨身碟11中檔案之軟體架構功能方塊示意圖,當執行於數位電視10上之多媒體播放應用程式101要進行隨身碟11中第一目錄111中之第一檔案1111之播放動作時,直接呼叫檔案系統應用程式設計介面21來對隨身碟11中第一目錄111中之第一檔案1111進行讀取。而由於第一檔案1111儲存在隨身碟11之實體位址不一定是連續的,所以傳統的檔案系統應用程式設計介面21中設置有一份表快取(Table Cache)211來存放該第一檔案1111之鏈結表(Link List),而此表快取(Table Cache)211需要於數位電視10內之系統記憶體109中分配一塊特定區域來存放資料。而根據表快取211中之鏈結表(Link List)所對應讀取到第一檔案1111之部份資料則暫存在一第一輸出入快取212中,第一輸出入快取212也需要於數位電視10內之系統記憶體109中分配另一塊特定區域來存放資料。Please refer to the second figure, which is a block diagram of the software architecture function for reading and playing the files in the flash drive 11 in the digital television. When the multimedia player application 101 executed on the digital television 10 is to be in the portable disk 11, When the first file 1111 in the directory 111 is played, the file system application design interface 21 is directly called to read the first file 1111 in the first directory 111 of the flash drive 11. Since the physical address of the first file 1111 stored in the flash drive 11 is not necessarily continuous, the traditional file system application design interface 21 is provided with a table cache 211 for storing the first file 1111. A Link List, and the Table Cache 211 needs to allocate a specific area in the system memory 109 in the digital television 10 to store data. According to the link list in the table cache 211, part of the data read from the first file 1111 is temporarily stored in the first input/output cache 212, and the first input/output cache 212 is also required. Another specific area is allocated to the system memory 109 in the digital television 10 to store data.

依此類推,當數位電視10上之多媒體播放應用程式101要同時進行隨身碟11中其他檔案之播放動作而呼叫檔案系統應用程式設計介面21時,會再相對應產生一第二輸出入快取213來暫存資料。第二輸出入快取213也需要從數位電視10內之系統記憶體109中分配另一塊特定區域來存放資料。又第一輸出入快取212與第二輸出入快取213之容量有限,因此通常僅能儲存部份檔案資料,直到快播放完畢前,系統必須再利用表快取211中鏈結表資料來讀取後續之檔案資料。Similarly, when the multimedia player application 101 on the digital television 10 is to simultaneously play the other files in the flash drive 11 and call the file system application design interface 21, a second input/output cache is correspondingly generated. 213 to temporarily store data. The second input/output cache 213 also needs to allocate another specific area from the system memory 109 in the digital television 10 to store the data. The first input/output cache 212 and the second input/output cache 213 have a limited capacity, so usually only part of the file data can be stored, until the fast playback is completed, the system must use the table cache 211 link table data again. Read the follow-up file data.

但是,由於傳統由作業系統所提供的檔案系統應用程式設計介面21,其僅能管理一個表快取211,因此當數位電視10上之多媒體播放應用程式101要進行播放之第二檔案1122是位於第二目錄112中時,由於第一檔案1111與第二檔案1122位於不同目錄中,因此多媒體播放應用程式101無法使用表快取211中相對應第一目錄111之鏈結表資料,進而需要清除表快取211中之原始資料而重新載入相對應第二目錄112之鏈結表資料。However, since the file system application design interface 21 provided by the operating system is conventionally capable of managing only one table cache 211, the second file 1122 to be played when the multimedia playback application 101 on the digital television 10 is to be played is located. In the second directory 112, since the first file 1111 and the second file 1122 are located in different directories, the multimedia playing application 101 cannot use the linked list data of the corresponding first directory 111 in the table cache 211, and thus needs to be cleared. The table cache 211 the original data and reloads the link table data corresponding to the second directory 112.

而由於同時播放音樂與相片是可能的使用者需求,但若上述狀況發生時,發生在表快取(Table Cache)211的頻繁切換將造成硬體系統極大的負擔,若是運算功能強大之電腦系統還可以負擔,但若是系統資源較不足之嵌入式系統,例如數位電視、DVD播放器或是數位相框,將會使得播放效果產生斷斷續續之問題。而如何有效解決上述習用手段之缺失,即為發展本案之主要目的。Since playing music and photos at the same time is a possible user requirement, if the above situation occurs, frequent switching of the Table Cache 211 will cause a great burden on the hardware system, and if it is a powerful computer system. It can also be affordable, but if the embedded system with insufficient system resources, such as digital TV, DVD player or digital photo frame, will cause the playback effect to be intermittent. How to effectively solve the lack of the above-mentioned conventional means is the main purpose of developing the case.

本案揭示一種檔案讀取方法,可應用於執行有一多媒體應用程式並具有一系統記憶體之一嵌入式系統以及一可移除記憶裝置之間,該方法包含:因應多媒體應用程式對可移除記憶裝置發出之第一檔案讀取命令,提供第一表快取來暫存相對應第一檔案之一第一鏈結表資料,第一表快取位於該系統記憶體之一第一區塊;以及因應多媒體應用程式對該可移除記憶裝置發出之第二檔案讀取命令,提供第二表快取來暫存相對應第二檔案之第二鏈結表資料,第二表快取位於該系統記憶體之第二區塊。The present invention discloses a file reading method, which can be applied to execute a multimedia application and has an embedded system of one system memory and a removable memory device, the method comprising: responding to the removable memory in response to the multimedia application The first file read command sent by the device provides a first table cache to temporarily store the first link table data of one of the corresponding first files, and the first table cache is located in the first block of the system memory; And in response to the second file read command issued by the multimedia application to the removable memory device, providing a second table cache to temporarily store the second link table data corresponding to the second file, where the second table cache is located The second block of system memory.

本案再揭示一種嵌入式系統,其上執行有一多媒體應用程式並可連接至一可移除記憶裝置,而該嵌入式系統包含:一系統記憶體;以及一改良式檔案系統應用程式設計介面,用以因應多媒體應用程式對可移除記憶裝置發出之第一檔案讀取命令,提供第一表快取來暫存相對應第一檔案之一第一鏈結表資料,第一表快取位於該系統記憶體之第一區塊,以及因應多媒體應用程式對可移除記憶裝置發出之第二檔案讀取命令,提供第二表快取來暫存相對應第二檔案之第二鏈結表資料,第二表快取位於該系統記憶體之第二區塊。The present disclosure further discloses an embedded system having a multimedia application and connected to a removable memory device, the embedded system comprising: a system memory; and an improved file system application design interface, Providing a first table cache to temporarily store a first link table data corresponding to the first file in response to the first file read command issued by the multimedia application to the removable memory device, where the first table cache is located a first block of system memory and a second file read command issued by the multimedia application for the removable memory device, providing a second table cache to temporarily store the second link table data corresponding to the second file The second table cache is located in the second block of the system memory.

請參見第三圖,其係本案所發展出來,可執行於嵌入式系統3內部之軟體架構功能方塊示意圖,本案係針對習用之檔案系統應用程式設計介面進行改良,於是,本案發展出之改良式檔案系統應用程式設計介面31中係設置有複數個環境實例(Environment Instance)311~31n,每一個環境實例中具有各自的表快取(Table Cache)3111~31n1。較佳地,環境實例(Environment Instance)311~31n之數量n係可與嵌入式系統3想要支援可同時讀取檔案之數量相符即可。舉例來說,當此嵌入式系統3之規格要求需可支援同時播放影像檔案與音樂檔案,那改良式檔案系統應用程式設計介面31在編譯(compile)階段中就可設定為2個環境實例,若嵌入式系統3之規格要求需可支援同時播放影像檔案、音樂檔案以及瀏覽檔案,於此實施例中,改良式檔案系統應用程式設計介面31在編譯(compile)階段中就可設定為3個環境實例。Please refer to the third figure, which is a block diagram of the software architecture function that can be implemented in the embedded system 3. The case is improved for the file system application design interface of the conventional file. Therefore, the improved version developed in this case The file system application design interface 31 is provided with a plurality of environment instances (Environment Instances) 311 to 31n, each of which has its own table cache (Table Cache) 3111 to 31n1. Preferably, the number n of environment instances (Environment Instances) 311 to 31n can be matched with the number of files that the embedded system 3 wants to support simultaneous reading. For example, when the specifications of the embedded system 3 need to support simultaneous playback of video files and music files, the improved file system application design interface 31 can be set to two environment instances in the compile phase. If the specifications of the embedded system 3 need to support simultaneous playback of video files, music files, and browsing files, in this embodiment, the improved file system application design interface 31 can be set to three in the compile phase. Environment instance.

如此一來,可以一對一之方式來處理應用程式之不同需求,進而省去習用手段中表快取內容頻繁切換之問題。以下以數位電視與執行其上之應用程式之三個需求來進行說明。In this way, the different needs of the application can be handled in a one-to-one manner, thereby eliminating the problem of frequent switching of table cache contents in the conventional means. The following is illustrated by the three requirements of digital TV and the application executing it.

請參見第四圖,其係應用本案技術手段之數位電視內部用以讀取與播放隨身碟中檔案之軟硬體架構功能方塊示意圖,當數位電視4需要設計成可允許多媒體應用程式40可同時播放影像檔案、音樂檔案以及瀏覽檔案時,在改良式檔案系統應用程式設計介面41中係設置有三個環境實例(Environment Instance)411、412及413,用以分別提供三個表快取4110、4120及4130來讓對應不同目錄之三個鏈結表(Link List)進行儲存。於是,當多媒體應用程式40要同時進行可移除記憶裝置49中第一目錄491中之第一檔案4910(例如影像檔案)之播放動作、第二目錄492中之第二檔案4920(例如音樂檔案)之播放動作及第三目錄493中第三檔案4930之瀏覽動作時,多媒體應用程式40分別呼叫改良式檔案系統應用程式設計介面41中之第一環境實例411、第二環境實例412與第三環境實例413,進而分別利用第一表快取4110來存放對應第一目錄491之鏈結表資料、第二表快取4120來存放對應第二目錄492之鏈結表資料以及第三表快取4130來存放對應第三目錄493之鏈結表資料。而上述三個表快取4110、4120及4130及三個輸出入快取4111、4121及4131之實際存放位址係設置於系統記憶體47之不同區塊。Please refer to the fourth figure, which is a schematic diagram of the hardware and software architecture function for reading and playing the files in the flash drive inside the digital television using the technical means of the present invention. When the digital television 4 needs to be designed to allow the multimedia application 40 to simultaneously When playing video files, music files, and browsing files, three environment instances (Environment Instances) 411, 412, and 413 are provided in the improved file system application design interface 41 to provide three table caches 4110, 4120, respectively. And 4130 to store the three linked lists (Link List) corresponding to different directories. Thus, when the multimedia application 40 is to simultaneously perform the playback action of the first file 4910 (eg, video file) in the first directory 491 of the removable memory device 49, the second file 4920 in the second directory 492 (eg, the music file) During the playback action and the browsing operation of the third file 4930 in the third directory 493, the multimedia application 40 calls the first environment instance 411, the second environment instance 412, and the third in the improved file system application design interface 41, respectively. The environment instance 413 further uses the first table cache 4110 to store the link table data corresponding to the first directory 491, the second table cache 4120 to store the link table data corresponding to the second directory 492, and the third table cache. 4130 is used to store the linked list data corresponding to the third directory 493. The actual storage addresses of the three table caches 4110, 4120, and 4130 and the three input and output caches 4111, 4121, and 4131 are set in different blocks of the system memory 47.

於此實施例中,多媒體應用程式40分別根據第一表快取4110、第二表快取4120以及第三表快取4130內之鏈結表資料來讀取第一目錄491、第二目錄492與第三目錄493中之檔案,並分別存放於第一輸出入快取4111、第二輸出入快取4121及第三輸出入快取4131中。於此實施例中,即使第一輸出入快取4111中之第一檔案4910之部份資料將用盡,系統還是可以直接從第一表快取4110內之鏈結表資料來對應到可移除記憶裝置49中第一檔案4910之儲存位置,迅速地將後續資料搬入第一輸出入快取4111中,如此將可免除如習用手段中頻繁地將表快取資料清空又載入之問題。In this embodiment, the multimedia application 40 reads the first directory 491 and the second directory 492 according to the link table data in the first table cache 4110, the second table cache 4120, and the third table cache 4130, respectively. The files in the third directory 493 are stored in the first input/output cache 4111, the second input/output cache 41121, and the third input/output cache 4131, respectively. In this embodiment, even if part of the data of the first file 4910 in the first output/output cache 4111 is exhausted, the system can directly retrieve the link table data in the first table from the first table to correspond to the removable data. In addition to the storage location of the first file 4910 in the memory device 49, the subsequent data is quickly moved into the first output/output cache 4111, which eliminates the problem of frequently emptying and loading the table cache data as in the conventional means.

請參見第五圖,其係本案所發展出來檔案讀取方法之較佳實施例流程示意圖,應用於執行有多媒體應用程式40並具有系統記憶體47之數位電視4以及可移除記憶裝置49之間。首先,本案發展出來之改良式檔案系統應用程式設計介面41可因應該多媒體應用程式40對該可移除記憶裝置49發出第一檔案讀取命令,進而提供第一表快取4110來暫存相對應第一檔案4910之第一鏈結表資料(步驟51),而該第一表快取4110內之資料實際儲存位於該系統記憶體47之第一區塊(圖中未示出)。接著,當該多媒體應用程式40對該可移除記憶裝置49另外發出第二檔案讀取命令時,本案發展出來之改良式檔案系統應用程式設計介面41可因應該第二檔案讀取命令而提供第二表快取4120來暫存相對應第二檔案4920之第二鏈結表資料(步驟52),該第二表快取4120內之資料實際儲存位於該系統記憶體47之一第二區塊(圖中未示出)。更進一步地,若當該多媒體應用程式40對該可移除記憶裝置49另外發出第三檔案讀取命令時,本案發展出來之改良式檔案系統應用程式設計介面41可因應該第三檔案讀取命令而提供第三表快取4130來暫存相對應第三檔案4930之第三鏈結表資料(步驟53),該第三表快取內之資料實際儲存位於該系統記憶體47之一第三區塊(圖中未示出)。如此將可免除如習用手段中頻繁地將表快取資料清空又載入之問題。Please refer to the fifth figure, which is a schematic flowchart of a preferred embodiment of the file reading method developed in the present application, which is applied to a digital television 4 and a removable memory device 49 having a multimedia application 40 and having a system memory 47. between. First, the improved file system application programming interface 41 developed in the present case can issue a first file read command to the removable memory device 49 in response to the multimedia application 40, thereby providing a first table cache 4110 for temporary storage. Corresponding to the first link table data of the first file 4910 (step 51), the data in the first table cache 4110 is actually stored in the first block of the system memory 47 (not shown). Then, when the multimedia application 40 issues a second file read command to the removable memory device 49, the improved file system application design interface 41 developed in the present case can be provided according to the second file read command. The second table cache 4120 temporarily stores the second link table data corresponding to the second file 4920 (step 52), and the data in the second table cache 4120 is actually stored in the second area of the system memory 47. Block (not shown). Further, if the multimedia application 40 issues a third file read command to the removable memory device 49, the improved file system application design interface 41 developed in the present case can be read by the third file. The third table cache 4130 is provided to temporarily store the third link table data corresponding to the third file 4930 (step 53), and the data stored in the third table cache is actually stored in one of the system memory 47. Three blocks (not shown). This will eliminate the problem of frequently emptying and loading the table cache data as in the conventional method.

而上述嵌入式系統係可為一數位電視或一數位相框等多媒體播放器,而該可移除記憶裝置係為一快閃記憶卡或一通用串列匯流排隨身碟等裝置。The embedded system can be a multimedia player such as a digital television or a digital photo frame, and the removable memory device is a flash memory card or a universal serial bus flash drive.

綜上所述,本發明有效降低多媒體播放器平台硬體之硬體複雜度與成本,並揭示可以開放規格之多媒體應用程式介面與既有之影音播放裝置硬體來完成系統之建置,因此可有效解決上述習用手段之缺失,達成發展本案之主要目的。然本發明得由熟習此技藝之人士任施匠思而為諸般修飾,皆不脫如附申請專利範圍所欲保護者。In summary, the present invention effectively reduces the hardware complexity and cost of the multimedia player platform hardware, and discloses that the multimedia application interface of the open specification and the existing audio and video playback device hardware can be used to complete the system construction. It can effectively solve the lack of the above-mentioned conventional means and achieve the main purpose of developing the case. However, the present invention is modified by those skilled in the art and is not intended to be protected as claimed.

本案圖式中所包含之各元件列示如下:The components included in the diagram of this case are listed as follows:

10...數位電視10. . . Digital TV

100...通用串列匯流排連接埠100. . . Universal serial bus connection埠

11...隨身碟11. . . Flash drive

101...多媒體播放應用程式101. . . Multimedia player application

111...第一目錄111. . . First directory

1111...第一檔案1111. . . First file

21...檔案系統應用程式設計介面twenty one. . . File system application design interface

211...表快取211. . . Table cache

212...第一輸出入快取212. . . First input and output cache

213...第二輸出入快取213. . . Second output and cache

109...系統記憶體109. . . System memory

112...第二目錄112. . . Second directory

1122...第二檔案1122. . . Second file

3...嵌入式系統3. . . Embedded Systems

311~31n...環境實例311~31n. . . Environment instance

31...改良式檔案系統應用程式設計介面31. . . Improved file system application design interface

3111~31n1...表快取3111~31n1. . . Table cache

3112~31n2...輸出入快取3112~31n2. . . Output and cache

4...數位電視4. . . Digital TV

40...多媒體應用程式40. . . Multimedia application

41...改良式檔案系統應用程式設計介面41. . . Improved file system application design interface

411...第一環境實例411. . . First environment instance

412...第二環境實例412. . . Second environment instance

413...第三環境實例413. . . Third environment instance

4110...第一表快取4110. . . First table cache

4120...第二表快取4120. . . Second table cache

4130...第三表快取4130. . . Third table cache

49...可移除記憶裝置49. . . Removable memory device

491...第一目錄491. . . First directory

4910...第一檔案4910. . . First file

492...第二目錄492. . . Second directory

4920...第二檔案4920. . . Second file

493...第三目錄493. . . Third directory

4930...第三檔案4930. . . Third file

47...系統記憶體47. . . System memory

4111...第一輸出入快取4111. . . First input and output cache

4121...第二輸出入快取4121. . . Second output and cache

4131...第三輸出入快取4131. . . Third output into the cache

本案得藉由下列圖式及說明,俾得一更深入之了解:This case can be obtained through a more in-depth understanding of the following diagrams and descriptions:

第一圖顯示習用數位電視機之系統架構圖。The first figure shows the system architecture of a conventional digital TV.

第二圖顯示習用數位電視內部用以讀取與播放隨身碟中檔案之軟體架構功能方塊示意圖。The second figure shows a block diagram of the software architecture function used to read and play the files in the flash drive inside the digital TV.

第三圖顯示本案所發展出來,可執行於嵌入式系統內部之軟體架構功能方塊示意圖。The third figure shows the block diagram of the software architecture function that can be implemented in the embedded system.

第四圖顯示應用本案技術手段之數位電視內部用以讀取與播放隨身碟中檔案之軟硬體架構功能方塊示意圖。The fourth figure shows a schematic diagram of the function of the software and hardware architecture for reading and playing the files in the flash drive inside the digital television using the technical means of the present invention.

第五圖顯示本案之較佳實施例方法流程圖。The fifth figure shows a flow chart of a preferred embodiment of the present invention.

3...嵌入式系統3. . . Embedded Systems

31...改良式檔案系統應用程式設計介面31. . . Improved file system application design interface

311~31n...環境實例311~31n. . . Environment instance

3111~31n1...表快取3111~31n1. . . Table cache

3112~31n2...輸出入快取3112~31n2. . . Output and cache

Claims (16)

一種檔案讀取方法,可應用於執行有一多媒體應用程式並具有一系統記憶體之一嵌入式系統以及一可移除記憶裝置之間,該檔案讀取方法包含:因應該多媒體應用程式對該可移除記憶裝置發出之一第一檔案讀取命令,提供一第一表快取來暫存相對應一第一檔案之一第一鏈結表資料;以及因應該多媒體應用程式對該可移除記憶裝置發出之一第二檔案讀取命令,提供一第二表快取來暫存相對應一第二檔案之一第二鏈結表資料。A file reading method is applicable to an embedded system having a multimedia application and having a system memory and a removable memory device, wherein the file reading method comprises: Removing the memory device to issue one of the first file read commands, providing a first table cache to temporarily store the first link table data corresponding to one of the first files; and removing the corresponding data from the multimedia application The memory device issues a second file read command to provide a second table cache to temporarily store the second link table data corresponding to one of the second files. 如申請專利範圍第1項所述之檔案讀取方法,其中該第一表快取位於該系統記憶體之一第一區塊且該第二表快取位於該系統記憶體之一第二區塊。The file reading method of claim 1, wherein the first table cache is located in a first block of the system memory and the second table cache is located in a second area of the system memory. Piece. 如申請專利範圍第2項所述之檔案讀取方法,其中該系統記憶體中之該第一區塊與該第二區塊互不重疊。The file reading method of claim 2, wherein the first block and the second block in the system memory do not overlap each other. 如申請專利範圍第1項所述之檔案讀取方法,其可應用於上之該嵌入式系統係為一數位電視或一數位相框,而該可移除記憶裝置係為一快閃記憶卡或一通用串列匯流排隨身碟。The method for reading a file according to claim 1, wherein the embedded system is a digital television or a digital photo frame, and the removable memory device is a flash memory card or A universal serial bus with a flash drive. 如申請專利範圍第1項所述之檔案讀取方法,更包含因應該多媒體應用程式對該可移除記憶裝置發出之該第一檔案讀取命令而提供一第一輸出入快取來暫存相對應該第一檔案之部份資料。The file reading method of claim 1, further comprising providing a first input/output cache to temporarily store the first file read command issued by the multimedia application for the removable memory device. Corresponding to part of the first file. 如申請專利範圍第1項所述之檔案讀取方法,更包含因應該多媒體應用程式對該可移除記憶裝置發出之該第二檔案讀取命令而提供一第二輸出入快取來暫存相對應該第二檔案之部份資料。The file reading method of claim 1, further comprising providing a second input/output cache to temporarily store the second file read command issued by the multimedia application for the removable memory device. Relatively part of the second file. 如申請專利範圍第1項所述之檔案讀取方法,其中該第一檔案與該第二檔案分別儲存於該可移除記憶裝置之一第一目錄與一第二目錄。The file reading method of claim 1, wherein the first file and the second file are respectively stored in a first directory and a second directory of the removable memory device. 如申請專利範圍第1項所述之檔案讀取方法,更包含可因應該多媒體應用程式對該可移除記憶裝置發出之一第三檔案讀取命令,提供一第三表快取來暫存相對應一第三檔案之一第三鏈結表資料,該第三表快取位於該系統記憶體之一第三區塊。The file reading method of claim 1, further comprising: providing a third file read command to the removable memory device according to the multimedia application, providing a third table cache to temporarily store Corresponding to a third link table data of a third file, the third table cache is located in a third block of the system memory. 一種嵌入式系統,其上執行有一多媒體應用程式並可耦接至一可移除記憶裝置,而該嵌入式系統包含:一系統記憶體;以及一改良式檔案系統應用程式設計介面,用以因應該多媒體應用程式對該可移除記憶裝置發出之一第一檔案讀取命令,提供一第一表快取來暫存相對應一第一檔案之一第一鏈結表資料,以及因應該多媒體應用程式對該可移除記憶裝置發出之一第二檔案讀取命令,提供一第二表快取來暫存相對應一第二檔案之一第二鏈結表資料。An embedded system having a multimedia application and coupled to a removable memory device, the embedded system comprising: a system memory; and an improved file system application design interface for The multimedia application should issue a first file read command to the removable memory device, provide a first table cache to temporarily store the first link table data corresponding to one of the first files, and The application issues a second file read command to the removable memory device, and provides a second table cache to temporarily store the second link table data corresponding to one of the second files. 如申請專利範圍第9項所述之嵌入式系統,其中該第一表快取位於該系統記憶體之一第一區塊且該第二表快取位於該系統記憶體之一第二區塊。The embedded system of claim 9, wherein the first table cache is located in a first block of the system memory and the second table cache is located in a second block of the system memory. . 如申請專利範圍第10項所述之嵌入式系統,其中該系統記憶體中之該第一區塊與該第二區塊互不重疊。The embedded system of claim 10, wherein the first block and the second block in the system memory do not overlap each other. 如申請專利範圍第9項所述之嵌入式系統,其係為一數位電視或一數位相框,而該可移除記憶裝置係為一快閃記憶卡或一通用串列匯流排隨身碟。The embedded system of claim 9 is a digital television or a digital photo frame, and the removable memory device is a flash memory card or a universal serial bus. 如申請專利範圍第9項所述之嵌入式系統,其中該改良式檔案系統應用程式設計介面更可因應該多媒體應用程式對該可移除記憶裝置發出之該第一檔案讀取命令而提供一第一輸出入快取來暫存相對應該第一檔案之部份資料。The embedded system of claim 9, wherein the improved file system application design interface further provides a first file read command issued by the multimedia application to the removable memory device. The first output is cached to temporarily store part of the data corresponding to the first file. 如申請專利範圍第9項所述之嵌入式系統,其中該改良式檔案系統應用程式設計介面更可因應該多媒體應用程式對該可移除記憶裝置發出之該第二檔案讀取命令而提供一第二輸出入快取來暫存相對應該第二檔案之部份資料。The embedded system of claim 9, wherein the improved file system application design interface further provides a second file read command issued by the multimedia application to the removable memory device. The second output is cached to temporarily store part of the data corresponding to the second file. 如申請專利範圍第9項所述之嵌入式系統,其中該第一檔案與該第二檔案分別儲存於該可移除記憶裝置之一第一目錄與一第二目錄。The embedded system of claim 9, wherein the first file and the second file are respectively stored in a first directory and a second directory of the removable memory device. 如申請專利範圍第9項所述之嵌入式系統,其中該改良式檔案系統應用程式設計介面更可因應該多媒體應用程式對該可移除記憶裝置發出之一第三檔案讀取命令,提供一第三表快取來暫存相對應一第三檔案之一第三鏈結表資料,該第三表快取位於該系統記憶體之一第三區塊。The embedded system of claim 9, wherein the improved file system application design interface further provides a third file read command for the removable memory device by the multimedia application. The third table caches the third link table data corresponding to one of the third files, and the third table cache is located in the third block of the system memory.
TW99104769A 2010-02-12 2010-02-12 File-reading method and embedded system using the same TWI408554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99104769A TWI408554B (en) 2010-02-12 2010-02-12 File-reading method and embedded system using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99104769A TWI408554B (en) 2010-02-12 2010-02-12 File-reading method and embedded system using the same

Publications (2)

Publication Number Publication Date
TW201128390A TW201128390A (en) 2011-08-16
TWI408554B true TWI408554B (en) 2013-09-11

Family

ID=45025181

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99104769A TWI408554B (en) 2010-02-12 2010-02-12 File-reading method and embedded system using the same

Country Status (1)

Country Link
TW (1) TWI408554B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5715455A (en) * 1995-05-18 1998-02-03 International Business Machines Corporation Apparatus and method for storing file allocation table efficiently in memory
CN101051318A (en) * 2007-05-11 2007-10-10 北京中星微电子有限公司 Method for cluster linking and track hunting magnetic disc data using file distribution table
TW200917848A (en) * 2007-10-15 2009-04-16 Mstar Semiconductor Inc Data processing method for use in embedded system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5715455A (en) * 1995-05-18 1998-02-03 International Business Machines Corporation Apparatus and method for storing file allocation table efficiently in memory
CN101051318A (en) * 2007-05-11 2007-10-10 北京中星微电子有限公司 Method for cluster linking and track hunting magnetic disc data using file distribution table
TW200917848A (en) * 2007-10-15 2009-04-16 Mstar Semiconductor Inc Data processing method for use in embedded system

Also Published As

Publication number Publication date
TW201128390A (en) 2011-08-16

Similar Documents

Publication Publication Date Title
US7912994B2 (en) Reducing connection time for mass storage class peripheral by internally prefetching file data into local cache in response to connection to host
US20110099204A1 (en) File input/output scheduler using immediate data chunking
US20130246723A1 (en) Efficient Loading of Data into Memory of a Computing System
WO2018099292A1 (en) Process management method and apparatus
WO2017107415A1 (en) Application loading method and device
JP2012203899A (en) Method for customizing user interface and its electronic equipment
WO2015090043A1 (en) Method and device for swapping data into memory
US20140181499A1 (en) Method for improving booting of a computing device
JP2005302233A (en) Information memory device, information storing method, and information memory processing program
JP5876017B2 (en) Peripheral device control apparatus and information processing apparatus
TWI408554B (en) File-reading method and embedded system using the same
US9009430B2 (en) Restoration of data from a backup storage volume
KR20100050098A (en) Image processing apparatus and control method thereof
TWI526849B (en) Portable electronic device, dual heterogeneity operating system sharing file, recording media and computer program products
CN109213692B (en) Storage device management system and storage device management method
WO2014019145A1 (en) Method and apparatus for metadata processing
JP5868611B2 (en) Memory management apparatus and method considering user response time
WO2014091629A1 (en) Storage-device management program, and management method for electronic device and storage device
TWI707235B (en) Storage apparatus managing system and storage apparatus managing method
US11256618B2 (en) Storage apparatus managing system comprising local and global registering regions for registering data and associated method
JP2012174031A (en) Information processor, method for starting information processor and program
JP5231496B2 (en) Information processing apparatus and suspend / resume method thereof
WO2018040924A1 (en) Write method and write system utilized in nand flash production
TWI521349B (en) Data writing method of mobile electronic device
CN102169487B (en) File reading method and embedded system applying same

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees
MM4A Annulment or lapse of patent due to non-payment of fees