CN1912867A - Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device - Google Patents
Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device Download PDFInfo
- Publication number
- CN1912867A CN1912867A CN 200510087754 CN200510087754A CN1912867A CN 1912867 A CN1912867 A CN 1912867A CN 200510087754 CN200510087754 CN 200510087754 CN 200510087754 A CN200510087754 A CN 200510087754A CN 1912867 A CN1912867 A CN 1912867A
- Authority
- CN
- China
- Prior art keywords
- mtp
- portable multimedia
- msc
- multimedia device
- pattern
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
This invention relates to a media transfer protocol-MTP for a portable media device including a USB port, an end point, a data FIFO region, a program memory, a data storage and a file system supporting the MTP and MSC standards, the method includes: detecting if the portable device is the MTP mode, making surre if the device is at the MTP mode or the MSC mode, if it's the MSC mode, ATAPI layer is used to process the file format of the MSC interface, then the entity storage drive layer is used to access the storage space of the device by the file format, if it's the MTP mode, then the MTP layer is used to convert the format of MTP interface to FAT format then access the storage space via a file format layer.
Description
Technical field
The present invention relates to a kind of multimedia transfer protocol (Media TransferProtocol--MTP) and a large amount of dynamic switching method that stores classification (Mass Storage Class--MSC) pattern of portable multimedia device, particularly relate to a kind of method that can handle MTP and MSC interface protocol simultaneously.
Background technology
(USB-universal serial bus) is the portable electronic product of interface with USB (universal serial bus), carries easily and advantage that the storage area is big owing to have, and be universal day by day, for example dish, digital camera, MP3 player or the like with oneself.The portable multimedia player (media player) that tradition has USB (universal serial bus) (USB) interface adopts USB Mass Storage Class (MSC) communications protocol (protocol) and computing machine to carry out the transmission of digital content (digital content).Wherein, USB Mass Storage Class (MSC) communications protocol is the defined a kind of standard set-up interface protocol of Universal Serial Bus Implementers Forum (USB-IF), it includes three kinds of subseries (Sub-classes)-bulk-only, CBI (Control/Bulk/Interrupt) and CB.
In addition, Microsoft (Microsoft) has formulated a kind of digital copyright protection mechanism in order to protect digital content (digital content), and Janus DRM (Janus digital rightmanagement) by name is DRM-10 again.And if hope is in Microsoft Media Player 10; go to download have Janus DRM protection mechanism digital content to portable multimedia player, then this portable multimedia player (portable media player) need to be supported MTP (the Media Transfer Protocol) specification by Microsoft formulated.
MTP is that Microsoft is that transmission has a kind of media transmission protocol that the digital content of Janus DRM protection mechanism is formulated; this MTP interface is based on the host-host protocol (for example Bulk-Only transportprotocol) of MSC and formulates order group (command sets) under it, can need content transmitted to be considered as an object (Object) to handle with whole.
Portable multimedia player (portable media player) is not only a multimedia player on using, and can be used as carry-on dish (removable disk), the user can download any file and be sent to another computing machine from personal computer, in order to support the Janus DRM specification of Microsoft, this portable multimedia player must be supported the MTP specification.And, only there is Microsoft WindowsXP that the MTP of support specification is arranged at present, other does not support the MTP specification as Windows 2000/ME/98SE, therefore, when the user wants to transmit file between different operating system (Operation System), then this portable multimedia player must be supported MTP and MSC specification simultaneously.
Existing portable multimedia player is in order to support these two kinds of specifications of MTP and MSC simultaneously, then need comprise two groups of USB interface, one of them is the MSC device, another is then to be the MTP device, and each group USB port needs the hardware circuit of oneself, as USB end points (USB endpoint) and first in first out district (FIFO) or the like, its shortcoming is to cause the hardware circuit cost of this portable multimedia player to heighten.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of multimedia transfer protocol (MTP) and a large amount of dynamic switching method and device that stores classification (MSC) pattern of portable multimedia device, can support two kinds of specifications of MTP and MSC simultaneously, increase the convenience on using.
Another object of the present invention provides a kind of multimedia transfer protocol (MTP) and a large amount of dynamic switching method and device that stores classification (MSC) pattern of portable multimedia device, make this portable multimedia device can share identical USB hardware resource, comprise identical USB interface (USB port), end points (Endpoint), data first in first out district (FIFO), program internal memory (Program memory), data-carrier store (Data memory) and file system (file system) or the like, support two kinds of specifications of MTP and MSC simultaneously, and reduce cost.
Another object of the present invention provides a kind of multimedia transfer protocol (MTP) and a large amount of dynamic switching method and device that stores classification (MSC) pattern of portable multimedia device, can be by software or hardware mode, dynamic MTP and the MSC pattern switched, and support MTP and two kinds of specifications of MSC to increase the convenience on using.
To achieve these goals, the invention provides multimedia transfer protocol (MTP) and a large amount of dynamic switching method that stores classification (MSC) pattern of portable multimedia device, its step includes:
At first, whether be MTP (Media Transfer Protocol) pattern, be in MTP (Media Transfer Protocol) pattern or MSC (Mass Storage Class) pattern to confirm this portable multimedia device if detecting this portable multimedia device; If MSC pattern, then use ATAPI layer (ATAPIlayer) to handle the file layout of MSC device interface, use the storage area of entity storage drive layer (physicalstorage driver layer) again by this portable multimedia device of this document form access; If MTP pattern, then earlier the file layout of MTP interface is converted to the FAT file layout by a MTP layer (MTP layer), handle through a FAT file layout layer (FAT file system layer) again, pass through the storage area of entity storage drive layer (physical storage driver layer) this portable multimedia device of access afterwards.
The multimedia transfer protocol (MTP) of a kind of portable multimedia device of the present invention and a large amount of dynamic switched system that stores classification (MSC) pattern, include: a universal serial bus device layer (USB devicelayer), for the device that connects and handle personal computer end usb host (USB Host) is provided; One MTP layer (MTP layer) is connected in this universal serial bus device layer, and the file layout of MTP interface is converted to the FAT file layout; One FAT file layout layer (FAT file system layer) is connected in this MTP layer, handles the FAT file layout; And an entity storage drive layer (physical storage driverlayer), be connected in this FAT file layout layer, by a storage area of this portable multimedia device of this document form access.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is multimedia transfer protocol (MTP) and a large amount of dynamic switched system synoptic diagram that stores classification (MSC) pattern of portable multimedia device of the present invention;
Fig. 2 is multimedia transfer protocol (MTP) and a large amount of dynamic switching method process flow diagram that stores classification (MSC) pattern of portable multimedia device of the present invention;
Fig. 3 is multimedia transfer protocol (MTP) and a large amount of one of dynamic switching mode process flow diagrams of (MSC) pattern of classifying that store of portable multimedia device of the present invention; And
Fig. 4 is two of the multimedia transfer protocol (MTP) of portable multimedia device of the present invention and the dynamic switching mode process flow diagram that stores classification (MSC) patterns in a large number.
Wherein, Reference numeral:
The multimedia transfer protocol (MTP) of 1 portable multimedia device and a large amount of dynamic switched system that stores classification (MSC) pattern
2 personal computers
10 universal serial bus device layers (USB device layer)
12 MTP layers (MTP layer)
14 FAT file layout layers (FAT file system layer)
16 entity storage drive layers (physical storage drivar layer)
18 storage areas
20 usb hosts (USB Host)
Embodiment
The present invention uses the file layout of FAT to manage the obj ect file (Objectfile) that the MTP pattern is transmitted, and present operating system can be supported the file layout of FAT, therefore, the portable multimedia device can be by multimedia transfer protocol (MTP) and a large amount of dynamic switching method that stores classification (MSC) pattern of portable multimedia device of the present invention, when coming access by any operating system with the stored file of MTP form, even it is when this portable multimedia device switches to the MSC pattern, also unaffected.
Please refer to shown in Figure 1, multimedia transfer protocol (MTP) and a large amount of dynamic switched system synoptic diagram that stores classification (MSC) pattern for portable multimedia device of the present invention include a universal serial bus device layer (USB device layer) 10, one MTP layer (MTP layer) 12, one FAT file layout layer (FATfile system layer) 14, entity storage drive layer (physical storage driver layer) 16 and one storage area 18.
Universal serial bus device layer (USB device layer) 10 includes a USB interface (USB port) (not being shown among the figure) for the device that connects and handle personal computer 2 end usb hosts (USB Host) 20 is provided.This MTP layer (MTP layer) 12 is connected in universal serial bus device layer 10 file layout of MTP interface is converted to the FAT file layout.Then, handle, pass through the storage area 18 of this portable multimedia device of entity storage drive layer 16 access again by FAT file layout layer 14.Wherein, this storage area 18 is hard disk (hard disc) or non-volatile flash memory (NAND flash), and this FAT file layout layer 14 is connected in MTP layer 12, and entity storage drive layer 16 is connected in FAT file layout layer 14, and storage area 18 is connected in entity storage drive layer 16.Can support MTP and two kinds of specifications of MSC simultaneously through the mode of planting thus, but simplified system and reducing cost.
The multimedia transfer protocol (MTP) of portable multimedia device of the present invention and a large amount of dynamic switching method that stores classification (MSC) pattern, as shown in Figure 2, its step includes:
At first, whether be MTP (Media Transfer Protocol) Mode S 100, be in MTP (Media Transfer Protocol) pattern or MSC (Mass Storage Class) pattern to confirm this portable multimedia device if detecting this portable multimedia device; If MSC pattern, then use ATAPI layer (ATAPI layer) to handle the file layout S102 of MSC device interface, use entity storage drive layer (physical storage driver layer) again by this portable multimedia device of this document form access storage area S108; If MTP pattern, then earlier the file layout of MTP interface is converted to FAT file layout S104 by a MTP layer (MTP layer), again through a FAT file layout layer (FAT filesystem layer) treatment S 106, afterwards by this portable multimedia device of entity storage drive layer (physical storagedriver layer) access storage area S108.
Multimedia transfer protocol (MTP) and a large amount of dynamic switching method that stores classification (MSC) pattern by portable multimedia device of the present invention, make this portable multimedia device can share identical USB hardware resource, comprise identical USB interface (USB port), end points (Endpoint), data first in first out district (FIFO), program internal memory (Program memory), data-carrier store (Data memory) and file system (file system) or the like, support two kinds of specifications of MTP and MSC simultaneously, reduce cost, and the convenience in the increase use.
Because portable multimedia device of the present invention is only used one group of USB end points (USB endpoint) and data first in first out district blocks such as (FIFO), in order between MTP and these two kinds of patterns of MSC, to switch, the present invention provides several method in addition, in order to switching operation modes.
Fig. 3 is multimedia transfer protocol (MTP) and a large amount of one of dynamic switching mode process flow diagrams of (MSC) pattern of classifying that store of portable multimedia device of the present invention.At first, this portable multimedia device is predeterminable to be MTP Mode S 200, then this portable multimedia device is connected computing machine S202, then the user can change the operator scheme S204 of portable multimedia device dynamically with a hardware switch, and the mode of the also available software definition function key of operator scheme of above-mentioned change portable multimedia device is reached.Then whether this portable multimedia device can be in holding state (idlestate) S206 by this portable multimedia device of Auto-Sensing, if not being in holding state, message then can give a warning, and notify the user to wait for that the portable multimedia device enters holding state, carry out mode switch again.If be in holding state, the portable multimedia device can switch to MSC Mode S 208, and from the hundreds of millisecond of computing machine separation (ms) S210, again be linked to computing machine S202 at last again, the utilization aforesaid way makes portable multimedia device of the present invention just can dynamically switch MTP and MSC pattern without plug.Above-mentioned preset mode also can be the MSC pattern, switches to the MTP pattern again.
Fig. 4 is two of the multimedia transfer protocol (MTP) of portable multimedia device of the present invention and the dynamic switching mode process flow diagram that stores classification (MSC) patterns in a large number.At first, the user can select the operator scheme S300 of portable multimedia device with a hardware switch or a software definition function key mode, then this portable multimedia device is connected computing machine S302, whether a hardware switch or a software definition function key of then judging this selection portable multimedia device operator scheme switch to MSC Mode S 304, if then enter MSC Mode S 306; Otherwise, then enter MTP Mode S 308.When the user wants translative mode, need the plug of portable multimedia device in computing machine.
The multimedia transfer protocol (MTP) of portable multimedia device of the present invention and a large amount of dynamic switching method and system that stores classification (MSC) pattern have following characteristics:
1. portable multimedia device of the present invention can be supported MTP and two kinds of specifications of MSC simultaneously, increase the convenience on using, can be used in Microsoft Windows XP, 2000, ME and 98SE simultaneously, not be subjected to the restriction of form that operating system is supported, can be extensive use of.
2. portable multimedia device of the present invention can be shared same USB interface, comprise identical USB interface (USB port), end points (Endpoint), data first in first out district (FIFO), program internal memory (Programmemory), data-carrier store (Data memory) and file system (file system) or the like, do not need because of supporting two kinds of specifications of MTP and MSC simultaneously, and two groups of hardware circuits, escapable cost are set.
3. portable multimedia device of the present invention can utilize hardware switch or software definition function key, changes the operator scheme of portable multimedia device dynamically.
4. the multimedia transfer protocol (MTP) of portable multimedia device of the present invention and a large amount of dynamic switching method that stores classification (MSC) pattern can adopt plug and non-plug mode, carry out the change of portable multimedia device operator scheme.
5. the multimedia transfer protocol (MTP) of portable multimedia device of the present invention and a large amount of dynamic switching method that stores classification (MSC) pattern are handled the file/object of MTP pattern institute access with the FAT file layout, so when switching to the MSC pattern, still can be with the file/object of MTP pattern institute access by access.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (10)
1. the multimedia transfer protocol MTP of a portable multimedia device and a large amount of dynamic switching method that stores classification MSC pattern is characterized in that, comprising:
Whether be MTP pattern, be in MTP pattern or MSC pattern to confirm this portable multimedia device if detecting this portable multimedia device;
If the MSC pattern then uses the ATAPI layer to handle the file layout of MSC device interface;
If the MTP pattern, then by a MTP layer file layout of MTP interface is converted to the FAT file layout earlier, and utilizes a FAT file layout layer to handle this document form; And
With the storage area of entity storage drive layer by this portable multimedia device of this document form access.
2. according to multimedia transfer protocol MTP and a large amount of dynamic switching method that stores classification MSC pattern of the described portable multimedia device of claim 1, it is characterized in that comprise that one switches the operator scheme step, it includes:
This portable multimedia device is preset as the MTP pattern;
This portable multimedia device is connected computing machine;
The user changes the operator scheme of portable multimedia device;
Whether this portable multimedia device can be in holding state by this portable multimedia device of Auto-Sensing;
If not being in holding state, the message that then can give a warning, and notify the user to wait for that the portable multimedia device enters holding state, carry out mode switch again;
If be in holding state, this portable multimedia device can switch to the MSC pattern; And
This portable multimedia device can separate hundreds of milliseconds from computing machine, and is linked to computing machine again;
Aforesaid way makes portable multimedia device of the present invention just can dynamically switch MTP and MSC pattern without plug.
3. according to the multimedia transfer protocol MTP of the described portable multimedia device of claim 2 and the dynamic switching method of a large amount of storage classification MSC patterns, it is characterized in that the operator scheme that this user changes the portable multimedia device is to reach or a hardware switch mode is reached in a software definition function key mode.
4. according to multimedia transfer protocol MTP and a large amount of dynamic switching method that stores classification MSC pattern of the described portable multimedia device of claim 1, it is characterized in that comprise that one switches the operator scheme step, it includes:
The user selects the operator scheme of portable multimedia device;
This portable multimedia device is connected computing machine;
Judge whether this selection portable multimedia device operator scheme handoff functionality switches to the MSC pattern;
If then enter the MSC pattern; And
If not then entering the MTP pattern;
Wherein, when the user wants translative mode, need this portable multimedia device plug in computing machine.
5. the multimedia transfer protocol multimedia transfer protocol MTP of a portable multimedia device and the dynamic switched system of storage classification MSC patterns in a large number include:
One universal serial bus device layer is for providing the device that connects and handle the usb host of personal computer end;
One MTP layer is connected in this universal serial bus device layer, and the file layout of MTP interface is converted to the FAT file layout;
One FAT file layout layer is connected in this MTP layer, handles the FAT file layout; And
One entity storage drive layer is connected in this FAT file layout layer, by a storage area of this portable multimedia device of this document form access.
6. according to multimedia transfer protocol MTP and a large amount of dynamic switched system that stores classification MSC pattern of the described portable multimedia device of claim 5, it is characterized in that this universal serial bus device layer comprises a USB interface.
7. according to multimedia transfer protocol MTP and a large amount of dynamic switched system that stores classification MSC pattern of the described portable multimedia device of claim 5, it is characterized in that this storage area is hard disk or non-volatile flash memory.
8. according to multimedia transfer protocol MTP and a large amount of dynamic switched system that stores classification MSC pattern of the described portable multimedia device of claim 5, it is characterized in that, comprise an operator scheme options button.
9. the multimedia transfer protocol MTP of described according to Claim 8 portable multimedia device and a large amount of dynamic switched system that stores classification MSC pattern is characterized in that this operator scheme options button is a hardware switch or a software definition function key.
10. the multimedia transfer protocol MTP of described according to Claim 8 portable multimedia device and the dynamic switched system of storage classification MSC patterns in a large number, it is characterized in that, utilize this operator scheme options button and without plug to carry out MTP and MSC mode switch or to utilize this operator scheme options button and need plug, carry out MTP and MSC mode switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100877546A CN100422992C (en) | 2005-08-08 | 2005-08-08 | Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100877546A CN100422992C (en) | 2005-08-08 | 2005-08-08 | Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1912867A true CN1912867A (en) | 2007-02-14 |
CN100422992C CN100422992C (en) | 2008-10-01 |
Family
ID=37721807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100877546A Expired - Fee Related CN100422992C (en) | 2005-08-08 | 2005-08-08 | Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100422992C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515260B (en) * | 2008-02-21 | 2010-12-08 | 扬智科技股份有限公司 | Method for switching device function under condition of not plugging device |
CN109298956A (en) * | 2018-10-09 | 2019-02-01 | Oppo广东移动通信有限公司 | Document transmission method, device and terminal device |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063389A (en) * | 2010-08-30 | 2011-05-18 | 深圳市文鼎创数据科技有限公司 | Driving and switching method for intelligent safety equipment and intelligent safety equipment |
CN106970844A (en) * | 2017-03-01 | 2017-07-21 | 北京海杭通讯科技有限公司 | A kind of MTP management methods of pair of android system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1549088A (en) * | 2003-05-24 | 2004-11-24 | 鸿富锦精密工业(深圳)有限公司 | USB equipment and switching method thereof |
JP2007503657A (en) * | 2003-05-26 | 2007-02-22 | コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ | Signal connection and energy supply device for home appliances |
CN1525340A (en) * | 2003-06-03 | 2004-09-01 | 北京中星微电子有限公司 | Multimode digital video device |
US7073010B2 (en) * | 2003-12-02 | 2006-07-04 | Super Talent Electronics, Inc. | USB smart switch with packet re-ordering for interleaving among multiple flash-memory endpoints aggregated as a single virtual USB endpoint |
CN1331037C (en) * | 2004-06-03 | 2007-08-08 | 旺玖科技股份有限公司 | Storing card with multi-interfae function and transmitting mode selective method |
-
2005
- 2005-08-08 CN CNB2005100877546A patent/CN100422992C/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515260B (en) * | 2008-02-21 | 2010-12-08 | 扬智科技股份有限公司 | Method for switching device function under condition of not plugging device |
CN109298956A (en) * | 2018-10-09 | 2019-02-01 | Oppo广东移动通信有限公司 | Document transmission method, device and terminal device |
CN109298956B (en) * | 2018-10-09 | 2020-07-28 | Oppo广东移动通信有限公司 | File transmission method and device and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN100422992C (en) | 2008-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101795629B1 (en) | Method for managing file system in host and devices using the method | |
CA2643332C (en) | Describing and querying discrete regions of flash storage | |
CN107168905B (en) | File display method and device, storage medium and mobile terminal | |
JP5657641B2 (en) | Data storage device command and interrupt grouping | |
EP3404538B1 (en) | Data processing method, and data processing apparatus | |
US20160055097A1 (en) | Heterogeneous unified memory | |
CN100468981C (en) | Multifunctional mobile phone based on general USB chip and its realizing method | |
CN1766883A (en) | Switch the method and the computer system of the file that will visit based on confidential mode | |
CN1881196A (en) | Method for controlling host from device coupled thereto using universal serial bus and system thereof | |
US20060123175A1 (en) | Universal serial bus access device with selectable modes | |
CN111143234A (en) | Storage device, system including such storage device and method of operating the same | |
CN1912867A (en) | Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device | |
CN1734430A (en) | The method and apparatus of the effective data management of file | |
CN1262921C (en) | Method for computer starting and multiple operation system switching | |
US7047347B2 (en) | Data transfer method for Universal Serial Bus device | |
US7743213B2 (en) | Portable storage device with network function | |
CN1975701A (en) | Master machine driving external equipment method and system | |
TWI687868B (en) | Computer system and handling method thereof for interrupt event | |
CN1882907A (en) | Recording medium access device and recording medium access method | |
CN2513159Y (en) | Micro flashing storage card with serial bus interface | |
CN1831800A (en) | Method and system for duplicating between USB devices | |
CN2682463Y (en) | Computer host machine switching unit | |
CN1243299C (en) | Method capable of immediately switching computer program | |
CN1271509C (en) | Method of redifining key functions | |
CN100338563C (en) | Equipment simulating joystick with hand-held electronic installation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081001 Termination date: 20120808 |