The Media Transfer Protocol (MTP) is a USB class protocol which can be used to transfer files to and from storage devices. MTP is an official extension of the Picture Transfer Protocol (PTP) designed to allow digital cameras to exchange image files with a computer. MTP extends this by adding support for all types of files.
MTP is an alternative to Mass Storage Device (MSD)
It operates on the file level in contrast to MSD which reads and writes sector data. This type of operation gives MTP some advantages over MSD:
- The cable can be safely removed during the data transfer without damaging the file system.
- The file system does not have to be FAT (EFS or any other proprietary file system can be used).
- The application has full control as to which files are visible to the user. Selected files or directories can be hidden.
- Virtual files can be presented.
- Host and target can access storage simultaneously without conflicts.
MTP is natively supported by Windows and Linux "out-of-the-box" and the installation of additional drivers is not required. macOS supports MTP only by using third party tools such as:
Getting Access to Files
An MTP device will be displayed under the "Portable Devices" section of the "Computer" window when connected to a PC running the Microsoft Windows operating system. On other operating systems which support MTP the data stored on MTP devices can be accessed similarly.
For more technical details about MTP and PTP follow this link.
Resource Usage by this Component
|ROM usage||RAM usage|
|App. 14.6 KByte + size of file system||App. 1.6 KByte + configurable file data buffer of minimum 512 Byte + configurable object buffer (typically 4 KByte).|