1275000 九、發明說明: 【發明所屬之技術領域】 本發明係為一種可攜式多媒體裝置之多媒體轉移協定 (Media Transfer Protocol—MTP)及大量儲存分類(Mass Storage1275000 IX. Description of the Invention: [Technical Field of the Invention] The present invention relates to a Multimedia Transfer Protocol (MTP) and a mass storage classification (Mass Storage) of a portable multimedia device.
Class-MSC)模式之動態切換方法,尤其係指一種可同時處理 MTP及MSC介面協定之方法。 【先前技術】 以通用串列匯流排(USB—universal serial bus)為介面的可 攜式電子產品,由於具有容易攜帶及儲存空間大之優點,日益 普及,例如隨身碟、數位相機、MP3播放器等等。傳統具有 通用串列匯流排(USB)介面的可攜式多媒體播放器(media player)採用 USB Mass Storage Class (MSC)之通訊協定 (protocol)與電腦進行數位内容(digital c〇ntent)的傳遞。其中, USB Mass Storage Class (MSC)之通訊協定為 Universal Serial Bus Implementers Forum (USB-IF)所定義之一種標準裝置介面 協定’它包括有三種次分類(Sub-classes)—BulloOnly、CM (Control/Bulk/Interrupt)及 CB。 另外,微軟公司(Microsoft)為了保護數位内容(digital content),訂定了一種數位著作權保護機制,名為Janus drm (Janus digital right management),又叫 DRM-10。而如果希望在The dynamic switching method of the Class-MSC mode, in particular, refers to a method for simultaneously processing MTP and MSC interface protocols. [Prior Art] Portable electronic products with a USB-universal serial bus interface are increasingly popular due to their advantages of easy portability and storage space, such as flash drives, digital cameras, and MP3 players. and many more. A portable media player with a universal serial bus (USB) interface uses a USB Mass Storage Class (MSC) protocol to communicate digitally with a computer. Among them, the USB Mass Storage Class (MSC) protocol is a standard device interface protocol defined by the Universal Serial Bus Implementers Forum (USB-IF). It includes three sub-classes—BulloOnly, CM (Control/ Bulk/Interrupt) and CB. In addition, in order to protect digital content, Microsoft has set up a digital copyright protection mechanism called Janus drm (Janus digital right management), also known as DRM-10. And if you want to
MicrosoftMedia Player 10 中,去下載具有 Janus DRM 保護機 制的數位内容至可攜式多媒體播放器,則該可攜式多媒體播放 器(portable media player)需要支援由微軟公司所制定的 1275000 MTP(Media Transfer Protocol)規格。 MTP為微軟公司為傳遞具有Janus DRM保護機制之數位 内容所制定的一種媒體傳輸協定,該MTP介面是基於Msc 的傳輸協定(例如Bulk-Only transport protocol)而制定其所屬之 命令群(command sets),會將整個需要傳遞的内容視為一個物 件(Object)來處理。 可攜式多媒體播放器(portable media player)在應用上不 僅是一個多媒體播放器,而且可當作隨身碟(rem〇vaWe disk),使用者可從個人電腦上下載任何檔案並傳送到另一電 腦,為了支援微軟公司的janus DRM規格,該可攜式多媒體 播放器必須支援MTP規格。而且,目前僅有Mi_〇ft Wind〇ws XP有支援MTP規格,其他如Wind〇ws 2〇〇〇/ME/98SE並不支 援MTP規格,因此,當使用者想在不同的操作系統(〇perati〇nIn Microsoft Media Player 10, to download digital content with the Janus DRM protection mechanism to the portable multimedia player, the portable media player needs to support the 1275000 MTP (Media Transfer Protocol) developed by Microsoft Corporation. )specification. MTP is a media transmission protocol developed by Microsoft Corporation to deliver digital content with Janus DRM protection mechanism. The MTP interface is based on Msc-based transport protocols (such as Bulk-Only transport protocol) to formulate its own command sets. , the entire content that needs to be passed is treated as an object. The portable media player is not only a multimedia player in the application, but also can be used as a flash drive (rem〇vaWe disk). Users can download any file from a personal computer and transfer it to another computer. In order to support Microsoft's janus DRM specification, the portable multimedia player must support the MTP specification. Moreover, only Mi_〇ft Wind〇ws XP currently supports MTP specifications. Others such as Wind〇ws 2〇〇〇/ME/98SE do not support MTP specifications, so when users want to use different operating systems (〇 Perati〇n
System)間傳遞檔案,則該可攜式多媒體播放器必須同時支援 MTP及MSC規格。 習知的可攜式多媒體播放器為了同時支援Μτρ及Msc 這兩種規格,則需包含兩組USB埠,其巾—個是Msc裳置, 另-個是則是MTP裝置,而且每一組腦槔需要有自己的硬 體線路’如USB端點(USB endpoint)及先進先出區(FIFO)等 等,其缺點是會造成該可攜式多舰減ϋ的硬體線路成本大 增。 【發明内容】 本發明之主要目的是提供—種可攜式多媒體裝置之多媒 6 1275000 之儲存空間;如果是MTP模式嗍先透過-旭吓層㈣叮咏沉) 將MTP介面的播案格式轉換為FAT播案格式,再經過一 fat 檔案格式層(FAT file system layer)處理,之後透過實體儲存驅 動層(physical storage driver layer)存取該可攜式多媒體裝置之 儲存空間。 本%明之一種可攜式多媒體裝置之多媒體轉移協定(MTp) 及大量儲存分類(MSC)模式之動態切換系統,包括有··一通用 串列匯流排裝置層(USB device layer),為提供連接及處理個人 電腦端之USB主機(USB Host)之裝置;一 Μτρ層(Μτρ layer),係連接於該通用串列匯流排裝置層,將Μτρ介面的檔 案格式轉換為FAT播案格式;一 FAT槽案格式層(FAT服 system layer),係連接於該Μτρ層,處理FAT檔案格式;及一 實體儲存驅動層(physical storage driver lay 檀案格式層,透過案格式存取該可攜式多舰裝置之一儲 存空間。 為使能更進-步瞭解本發明之特徵及技術内容,請參閱 以下有關本發明之詳細說賴關,然輯關式僅提供來 與說明之用,並非用來對本發明加以限制。 、 【實施方式】 本發明係藉由使用FAT的槽餘式來^Μτρ模式所傳 =之物件槽案(Objectme) ’而目前的操作系統可支援fat的 棺案格式,因此,可赋多髓裝置可透過本發明之可样式多 媒體裝置之多媒體轉移協定(MTP)及大量齡分類_:)模式 1275000 之動態切換方法,當用MTP格式所儲存的難可由任何之操 作系統來存取,即使當財赋乡碰裝置诚至msc模式 時,亦不受影響。 .請參照第―®所示’為本發明之可攜式多媒體裝置之多 媒_雜定(體)及大讀存分類(Msc)模紅動態切換系 統1之示意圖,包括有一通用串列匯流排裝置層(uSB細⑺ layer) 10、- MTP層(MTP layer)12、- FAT檔案格式層(FAT file system layer)i4、實體儲存驅動層(physicai伽货辟 layer)16及一儲存空間18 〇 L用串列匯心無裝置層(USB device layer)10為提供連接 及處理個人電腦2端之USB主機⑽B H〇st)2〇之裝置,包括 有一 USB槔(USB port)(未示於圖中)。該Μτρ層(Μτρ layer)12連接於通用串列匯流排裝置層1(^| MTp介面的檔案 格式轉換為FAT檔案格式。接著,透過^^沿檔案格式層14處 理,再經過實體儲存驅動層16存取該可攜式多媒體裝置之儲 ί 存玉間18。其中,該儲存空間μ為硬碟(har(j出父)或非揮發 性快閃記憶體(NAND flash),而該FAT檔案格式層14連接於 MTP層12,實體儲存驅動層16連接sFAT檔案格式層14, 及儲存空間18連接於實體儲存驅動層16。經由此種方式可同 時支援MTP及MSC兩種規格,可簡化系統並降低成本。 本發明之可攜式多媒體裝置之多媒體轉移協S(MTp)及 大量儲存分類(MSC)模式之動態切換方法,如第二圖所示,其 步驟包括有: 9 1275000 首先,偵測該可攜式多媒體裝置是否為MTP(Media TransferProtoc〇l)模式S100,以確認該可攜式多媒體裝置處於 MTP(Media Transfer Protocol)模式或 MSC(Mass St〇rage class) 模式;如果是MSC模式,則使用ATAPI層(ATAPI layer)來處 理MSC裝置介面的檔案格式sl〇2,再用實體儲存驅動層 (physical storage driver layer)透過該檔案格式存取該可攜式多 媒體裝置之儲存空間S108 ;如果是MTP模式,則先透過一 MTP層(MTP layer)將MTP介面的檔案格式轉換為FAT檔案格 式S104 ’再經過一;FAT檑案格式層(FAT file system layer)處 理S106,之後透過實體儲存驅動層(physical st〇rage把胃^㈣ 存取該可攜式多媒體裝置之儲存空間sl〇8。 藉由本發明之可攜式多媒體裝置之多媒體轉移協定(MTP) 及大量儲存分類(MSC)模式之動態切換方法,使得該可攜式多 媒體裝置可共用相同的USB硬體資源,包括相同的USB埠 (USB port)、端點(Endpoint)、資料先進先出區(FIF〇)、程式記 憶體(Program memoty)、資料記憶體(Data mem〇iy)及檔案系 統(file system)等等,同時支援Μτρ及MSC兩種規袼,並降 低成本,並增加使用上的方便性。 因為本發明之可攜式多媒體裝置只用到一組USB端點 (USB endpoint)及資料先進先出區(FIF〇)等區塊,為了能在 MTP及MSC這兩種模式間進行切換,本發明另提供幾種方 1275000 法,用以切換操作模式。 (ΜΤΡ^為本㈣之可觀多舰錢〇雜轉移協定 一。1儲存分類(Msc)模式之雜切換方式之流程圖之 ^可心式多媒體裝置可預設為MTP模式S200,然 :=可攜式多媒體裝置接上電腦接著使用者可用一 、f開嶋態岐討攜W嫌裝置峨倾式讓,上 的操倾式亦可用_健定義功 式多媒體壯P 攜式多媒體裝置會自動偵測該可攜 於待機狀2 T錢於待機峨ldle st鄉施,如果不是處 於待機财糾警錢息,並通域 媒體裝置進入待機妝能予行j“式夕 能 賴狀恶,再進行模式切換。如果處於待機狀 心几心媒财置會她至MSC模式纖 分離數百峰咖,最後蝴偷翻娜t 可以m仔本發明之可攜式多媒縣置可以不職插,就The system transfers files, and the portable multimedia player must support both MTP and MSC specifications. In order to support both Μτρ and Msc specifications, the conventional portable multimedia player needs to include two sets of USB ports, one of which is Msc, and the other is an MTP device, and each group The cerebral palsy needs to have its own hardware circuit, such as USB endpoints and FIFOs. The disadvantage is that the cost of the portable multi-ship reduced hardware line is greatly increased. SUMMARY OF THE INVENTION The main object of the present invention is to provide a portable multimedia device with a storage space of 6 1275000; if it is an MTP mode, the MTP interface is broadcasted through the Asahi layer (4). The FAT file format is converted into a FAT file system layer, and then the storage space of the portable multimedia device is accessed through a physical storage driver layer. A dynamic switching system of a multimedia transfer protocol (MTp) and a mass storage classification (MSC) mode of a portable multimedia device, including a USB device layer, for providing a connection And a device for processing a USB host (USB Host) on the personal computer; a Μτρ layer is connected to the universal serial bus device layer, and converts the file format of the Μτρ interface into a FAT broadcast format; a FAT The FAT service system layer is connected to the Μτρ layer to process the FAT file format; and a physical storage driver layer (physical storage driver lay), accessing the portable multi-ship through the file format One of the storage spaces of the device. In order to enable further understanding of the features and technical contents of the present invention, please refer to the following detailed description of the present invention, but the series is provided for illustrative purposes only, and is not intended to be used for this purpose. The invention is limited to the object of the invention by using the slot of the FAT to transmit the object object of the Μτρ mode. The current operating system can support the fat of the object. The format of the file, therefore, the multi-pronged device can be transmitted through the multimedia transfer protocol (MTP) of the styling multimedia device of the present invention and the dynamic switching method of the large-scale classification _:) mode 1275000, when the difficulty is stored in the MTP format The operating system to access, even when the financial township touch device to the msc mode, it is not affected. Please refer to the diagram of "Multi-Media" and "Msc" Modular Dynamic Switching System 1 of the Portable Multimedia Device of the present invention, including a universal serial convergence. Row device layer (uSB fine layer (7) layer) 10, - MTP layer (MTP layer) 12, - FAT file system layer (iAT), physical storage driver layer (physicai gambling layer) 16 and a storage space 18 USBL uses a USB device layer 10 to provide a device for connecting and processing a USB host (10) B H〇st) of the personal computer 2, including a USB port (not shown) In the picture). The Μτρ layer 12 is connected to the general-purpose serial bus device layer 1 (the file format of the ^|MTp interface is converted into a FAT file format. Then, it is processed along the file format layer 14 through the ^^, and then through the physical storage driver layer. 16 accessing the storage device of the portable multimedia device 18. The storage space μ is a hard disk (har (j father) or non-volatile flash memory (NAND flash), and the FAT file The format layer 14 is connected to the MTP layer 12, the physical storage drive layer 16 is connected to the sFAT file format layer 14, and the storage space 18 is connected to the physical storage drive layer 16. In this way, both MTP and MSC specifications can be supported, which simplifies the system. And reducing the cost. The multimedia transfer association S (MTp) and the mass storage classification (MSC) mode dynamic switching method of the portable multimedia device of the present invention, as shown in the second figure, the steps include: 9 1275000 First, the Detect Detecting whether the portable multimedia device is in the MTP (Media Transfer Protocol) mode S100, to confirm that the portable multimedia device is in the MTP (Media Transfer Protocol) mode or the MSC (Mass St〇rage class) mode; The ATAPI layer is used to process the file format sl2 of the MSC device interface, and then the storage space S108 of the portable multimedia device is accessed through the file format by using the physical storage driver layer (Physical Storage Driver Layer); If it is in the MTP mode, the file format of the MTP interface is first converted into the FAT file format S104 through an MTP layer (the FTP file system layer is processed by the FAT file system layer), and then the physical storage is performed. The drive layer (physical st〇rage accesses the storage space of the portable multimedia device s8). The multimedia transfer protocol (MTP) and the mass storage classification (MSC) mode of the portable multimedia device of the present invention The dynamic switching method enables the portable multimedia device to share the same USB hardware resources, including the same USB port, Endpoint, data first-in first-out area (FIF), and program memory. (Program memoty), data memory (Data mem〇iy) and file system (file system), etc., support both Μτρ and MSC rules, and reduce costs, and increase the convenience of use. Because the portable multimedia device of the present invention uses only a set of USB endpoints and a data first-in first-out area (FIF〇), in order to switch between the MTP and MSC modes, The invention further provides several square 1275000 methods for switching modes of operation. (ΜΤΡ^为为(4) The considerable multi-ship money miscellaneous transfer agreement 1. The flow chart of the miscellaneous switching mode of the storage classification (Msc) mode can be preset to the MTP mode S200, but: The portable multimedia device is connected to the computer and then the user can use the one and the f to open the embarrassing state to carry the W device. The tilting type can also be used. The test can be carried in the standby mode 2 T money in the standby 峨 ldle st township, if it is not in the standby financial error, and the local media device enters the standby makeup can be j "style eve can be lazy, then the mode Switching. If in the standby state, the heart of the media will set her to the MSC mode fiber to separate hundreds of peaks of coffee, and finally the sneak peeks can be used to carry the portable multimedia county of the invention can not be inserted,
η =刀、MTP及MSC模式。上述之預設模式亦可為MSC 棋式,再切換至MTP模式。 第四圖為本發明之可攜式多媒體裝置之多體 量儲存分類^ 先,使用者可用_硬體開關或—軟體絲功能鍵之方 廷擇可攜式多媒體I置的操作模式s,錢將該辱1 媒體裝置接增咖,細嘯㈣物體^ 1275000 插作減的硬體開關或—軟體定義魏鍵是砂換至Msc模 式S304,如果是,則進入MSC模式§3〇6;反之,則進入乂丁1) - 杈式S308。當使用者要轉換模式時,需將可攜式多媒體裝置 - 拔插於電腦。 本毛明之可彳賦乡媒體裝置之乡媒體樹紋(Μτρ)及 大量儲存分類(MSC)模式之動態切換方法及系統具有下列之 特點: 丨·本發明之可攜式多嫖體裝置可同時支援MTP及MSC 兩魏格’增加使帛上的錢性,可同時使祕η = Knife, MTP and MSC modes. The above preset mode can also be MSC chess mode, and then switch to MTP mode. The fourth figure is a multi-volume storage classification of the portable multimedia device of the present invention. The user can use the _hard-switch or the soft-wire function button to select the portable mode of the portable multimedia device. The humiliation 1 media device is connected to the coffee, the whistling (4) object ^ 1275000 is inserted as the reduced hardware switch or - the soft body definition is the sand key is changed to the Msc mode S304, and if so, the MSC mode is § 3 〇 6; , then enter Kenting 1) - 杈 S308. When the user wants to switch modes, the portable multimedia device needs to be plugged into the computer. The dynamic switching method and system of the media tree pattern (Μτρ) and the mass storage classification (MSC) mode of the local media device of the present invention have the following characteristics: 丨· The portable multi-body device of the invention can simultaneously Supporting MTP and MSC, two Weiger's increase the money on the shackles, and at the same time make the secret
Winder χρ、2_、廳及觀,不受操作系統所支援之格 式限制,可廣泛使用。 Z本發明之可攜式多媒體裝置可共享同一之USB埠,包 括相同的USB :t阜(USB port)、端點(Endpoint)、資料先進先 ^ mt^mData > memoty)及檔案系統(file system)等等,不需因同時支援體 及MSC兩種規格,而設置兩組硬體線路,可節省成本。 * ^3•本U之可攜式多雜裝置可彻硬體開關或軟體定 我功此鍵’軸的改變可攜式多雜裝置的操作模式。 胃本u之可攜❹媒體裝置之多媒體轉移協定(Μτρ) 及大里儲存分類(MSC)模式之動態切換方法可採用拔插與非 、方式進行可攜式多媒體裝置操作模式的改變。 12 1275000 .本u之可攜式多媒體裝置之多媒體轉移協定(Μτρ) 及大量儲存蝴MSC)模紅祕_方法係將Μτρ模式所 存取之檔輸相FAT之職格式處理,因此當切換至廳 模式時’用MTP模式所存取之檔案/物件仍然可被存取。 = _雜可行實補,翻此即拘 _ 圍,因此任何熟悉此項技藝者在本發明之領 域内’所貫施之變化或修飾,皆應屬本發明之專利範圍。Winder χρ, 2_, hall and view are not limited by the format supported by the operating system and can be widely used. Z The portable multimedia device of the present invention can share the same USB port, including the same USB: t port (USB port), endpoint (Endpoint), data advanced first ^ mt ^ mData > memoty) and file system (file System), etc., there is no need to set two sets of hardware lines due to both the support body and the MSC specifications, which can save costs. * ^3• This U-portable multi-hybrid device can be used to cut the hardware or the soft body. This function changes the operation mode of the portable multi-hybrid device. The dynamic switching method of the multimedia transfer protocol (Μτρ) and the Dali storage classification (MSC) mode of the portable media device of the stomach can be used to change the operation mode of the portable multimedia device by plugging and unplugging. 12 1275000. The multimedia transfer protocol (Μτρ) and the mass storage MSC of the portable multimedia device are processed in the format of the FAT job accessed by the Μτρ mode, so when switching to In the hall mode, the files/objects accessed by the MTP mode can still be accessed. </ RTI> </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt;
【圖式簡單說明】 有關本發明之圖式簡單說明如下: 第-_本發明之可赋多舰裝置之多_轉移協定 (MTP)及大量儲存分類陶模式之動態切換系統之示意圖; 第二圖為本發明之可攜式多舰裝置之多賴轉移協定 _及大量儲存分_〇模式之_切換方法之流程圖; 第三_本發明之可攜❹舰裝置^舰轉移協定 之祕切換方式之流程圖之 一;及 第四圖為本翻之可攜衫舰裝置之㈣體轉移協定 (MTP)及大錯存分_Mscm之雜峨方紅流程圖之 一一 Ο 【主要元件符號說明】 「本發明」 1 之二轉:定(_及大_ 13 1275000 2個人電腦 10通用串列匯流排裝置層(USB device layer) 12 MTP 層(MTPlayer) 14 FAT 權案格式層(FAT file system layer) 16 實體儲存驅動層(physical storage driver layer) 18儲存空間 20 USB 主機(USB Host)BRIEF DESCRIPTION OF THE DRAWINGS A brief description of the drawings of the present invention is as follows: - a schematic diagram of a multi-transition agreement (MTP) of a multi-ship device capable of multi-ship device of the present invention and a dynamic switching system for storing a plurality of classified ceramic patterns; The figure is a flow chart of a multi-transfer protocol of the portable multi-ship device of the present invention and a method for switching a large number of storage points _〇 mode; the third _ switch of the portable ship device of the present invention One of the flow chart of the method; and the fourth picture is one of the flow chart of the (4) body transfer agreement (MTP) and the big error deposit _Mscm of the portable shirt ship device. Description] "Invention" 1 bis: set (_ and big _ 13 1275000 2 PC 10 universal device layer device layer (USB device layer) 12 MTP layer (MTPlayer) 14 FAT rights file format layer (FAT file System layer) 16 physical storage driver layer 18 storage space 20 USB host
1414