HOME

TheInfoList



OR:

Picture Transfer Protocol (PTP) is a protocol originally developed by the Photographic and Imaging Manufacturers Association (PIMA) (later known as the International Imaging Industry Association) to allow the transfer of images from
digital camera A digital camera, also called a digicam, is a camera that captures photographs in Digital data storage, digital memory. Most cameras produced today are digital, largely replacing those that capture images on photographic film or film stock. Dig ...
s to computers and other peripheral devices without the need for additional
device driver In the context of an operating system, a device driver is a computer program that operates or controls a particular type of device that is attached to a computer or automaton. A driver provides a software interface to hardware devices, enabli ...
s. The protocol was standardized by the
ISO The International Organization for Standardization (ISO ; ; ) is an independent, non-governmental, international standard development organization composed of representatives from the national standards organizations of member countries. Me ...
in 2005. The current version of the standard is ISO 15740:2013. It is further standardized for
USB Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
by the
USB Implementers Forum USB Implementers Forum, Inc. (USB-IF) is a nonprofit organization created to promote and maintain USB (Universal Serial Bus), a set of specifications and transmission procedures for a type of cable connection that has since become used widely fo ...
as the ''still image capture device class''. USB is the default network transport media for PTP devices. USB PTP is a common alternative to the USB mass-storage device class (USB MSC), as a digital camera connection protocol. Some cameras support both modes.


Description

PTP specifies a way of creating, transferring and manipulating ''objects'' which are typically photographic images such as a
JPEG JPEG ( , short for Joint Photographic Experts Group and sometimes retroactively referred to as JPEG 1) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degr ...
file. While it is common to think of the objects that PTP handle as files, they are abstract entities identified solely by a 32-bit object ID. These objects can however have ''parents'' and ''siblings'' so that a file-system–like view of device contents can be created.


History

Until the standardization of PTP, digital camera vendors used different proprietary protocols for controlling digital cameras and transferring images to computers and other host devices. In an earlier but unrelated project, the term "Picture Transfer Protocol" and the acronym "PTP" were both coined by Steve Mann, summarizing work on the creation of a Linux-friendly way of transferring pictures to and from home-made wearable computers, at a time when most cameras required the use of Microsoft Windows or Mac OS device drivers to transfer their pictures to a computer. PTP was originally standardized as PIMA 15470 in 2000, while it was developed by th
IT10 committee
Key contributors to the standard included Tim Looney and Tim Whitcher (
Eastman Kodak Company The Eastman Kodak Company, referred to simply as Kodak (), is an American public company that produces various products related to its historic basis in film photography. The company is headquartered in Rochester, New York, and is incorporated i ...
) and Eran Steinberg ( Fotonation).


Storage

PTP does not specify a way for objects to be stored – it is a communication protocol. Nor does it specify a transport layer. However, it is designed to support existing standards, such as
Exif Exchangeable image file format (officially Exif, according to JEIDA/JEITA/CIPA specifications) is a standard that specifies formats for images, sound, and ancillary tags used by digital cameras (including smartphones), scanners and other system ...
, TIFF/EP, DCF, and DPOF, and is commonly implemented over the
USB Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
and
FireWire IEEE 1394 is an interface standard for a serial bus for high-speed communications and isochronous real-time data transfer. It was developed in the late 1980s and early 1990s by Apple in cooperation with a number of companies, primarily Sony a ...
transport layers. Images on digital cameras are generally stored as files on a
mass storage device In computing, mass storage refers to the Data storage, storage of large amounts of data in a persistence (computer science), persisting and machine-readable data, machine-readable fashion. In general, the term ''mass'' in ''mass storage'' is use ...
, such as a
memory card A memory card is an electronic data storage device used for storing digital information, typically using flash memory. These are commonly used in digital portable electronic devices, such as digital cameras as well as in many early games conso ...
, which is formatted with a file system, most commonly
FAT12 File Allocation Table (FAT) is a file system developed for personal computers and was the default file system for the MS-DOS and Windows 9x operating systems. Originally developed in 1977 for use on floppy disks, it was adapted for use on ...
,
FAT16 File Allocation Table (FAT) is a file system developed for personal computers and was the default file system for the MS-DOS and Windows 9x operating systems. Originally developed in 1977 for use on floppy disks, it was adapted for use on Ha ...
or
FAT32 File Allocation Table (FAT) is a file system developed for personal computers and was the default file system for the MS-DOS and Windows 9x operating systems. Originally developed in 1977 for use on floppy disks, it was adapted for use on ...
, which may be laid out as per the
Design rule for Camera File system Design rule for Camera File system (DCF) is a JEITA specification (number CP-3461) which defines a file system for digital cameras, including the directory structure, file naming method, character set, file format, and metadata format. It is c ...
(DCF) specification. But none of these are required as PTP abstracts from the underlying representation. By contrast, if a camera is mounted via USB MSC, the physical file system and layout are exposed to the user.


Device control

Many modern digital cameras from Canon and Nikon can be controlled via PTP from a USB host enabled computing device (smartphone, PC or
Arduino Arduino () is an Italian open-source hardware and open-source software, software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices. Its hardwar ...
for example). As is the norm for PTP, the communication takes place over a USB connection. When interacting with the camera in this manner, it is expected that the USB endpoints are in (synchronous) Bulk Transfer Mode, for getting/setting virtually all the camera's features/properties (such as ISO, Aperture, Shutter speed and focus). Events raised by the camera, in response to specific actions performed by the host device, are sent back to the host via the USB asynchronous Interrupt endpoint. In addition to changing the camera's settings and operating mode, it is possible to receive a through-the-lens view using "Live View". As described above, the storage objects of the camera's memory cards can be manipulated too. By controlling a camera in this way it is possible to augment its capabilities. For example, if the controlling software was running on a smartphone with GPS functionality, it would be possible to add the GPS coordinates to an image's
Exif Exchangeable image file format (officially Exif, according to JEIDA/JEITA/CIPA specifications) is a standard that specifies formats for images, sound, and ancillary tags used by digital cameras (including smartphones), scanners and other system ...
data, at the time of image capture — even if the camera itself had no GPS functionality.


Extensions

A number of protocols have been developed that extend PTP. PTP/IP, developed by FotoNation and first implemented in a round of
Wi-Fi Wi-Fi () is a family of wireless network protocols based on the IEEE 802.11 family of standards, which are commonly used for Wireless LAN, local area networking of devices and Internet access, allowing nearby digital devices to exchange data by ...
digital cameras by
Nikon (, ; ) is a Japanese optics and photographic equipment manufacturer. Nikon's products include cameras, camera lenses, binoculars, microscopes, ophthalmic lenses, measurement instruments, rifle scopes, spotting scopes, and equipment related to S ...
,
Canon Canon or Canons may refer to: Arts and entertainment * Canon (fiction), the material accepted as officially written by an author or an ascribed author * Literary canon, an accepted body of works considered as high culture ** Western canon, th ...
, and
Eastman Kodak The Eastman Kodak Company, referred to simply as Kodak (), is an American public company that produces various products related to its historic basis in film photography. The company is headquartered in Rochester, New York, and is incorporated i ...
, allows data transfer over any IP-based network.
vendor extension registry for PTP
is maintained by the Society for Imaging Science and Engineering (IS&T).
Media Transfer Protocol The Media Transfer Protocol (MTP) is an extension to the Picture Transfer Protocol (PTP) communications protocol that allows media files to be transferred automatically to and from portable devices. While technically "available" on Windows 10, ...
(MTP), developed by
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
, allows for transfer over wireless or wired networks based in part on FotoNation's PTP/IP, but also allows users to transfer other media aside from pictures, as well as for tagging objects with extended
metadata Metadata (or metainformation) is "data that provides information about other data", but not the content of the data itself, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive ...
(such as title, artist and similar metadata).


Operating system support

Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
has supported PTP from
Windows ME Windows Me (Millennium Edition) is an operating system developed by Microsoft as part of its Windows 9x family of Microsoft Windows operating systems. It was the successor to Windows 98, and was released to manufacturing on June 19, 2000, and t ...
onwards (excluding
Windows CE Windows CE, later known as Windows Embedded CE and Windows Embedded Compact, is a discontinued operating system developed by Microsoft for mobile and embedded devices. It was part of the Windows Embedded family and served as the software foun ...
).
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
implements PTP on Windows through Windows Image Acquisition. A disadvantage of PTP on Windows as compared to USB mass storage is that Windows does not assign drive letters to PTP devices, so image files on them cannot be manipulated by scripts or standard Windows programs, only by Windows Explorer or applications with specially written PTP support. Also, Windows Explorer does not display file modification timestamps (though these are available via the file Properties popup). PTP on
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
and other free and
open-source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
operating systems is supported by a number of libraries, such as libgphoto an
libptp
used by applications such as
digiKam digiKam is a free and open-source image organizer and tag editor written in C++ using the KDE Frameworks. Features digiKam runs on most known desktop environments and window managers, as long as the required libraries are installed. It suppor ...
and F-Spot. As on Microsoft Windows there is no native support on Linux, but by means of
GVfs GVfs (abbreviation for GNOME virtual file system) is GNOME's userspace virtual filesystem designed to work with the I/O abstraction of GIO, a library available in GLib since version 2.15.1. It installs several modules that are automatically us ...
the devices can easily be mounted and made available to applications that use standard
POSIX The Portable Operating System Interface (POSIX; ) is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines application programming interfaces (APIs), along with comm ...
commands and library functions. Android supports PTP, so that software programs that support grabbing photos from a digital camera will support grabbing photos from an Android phone when you select the PTP mode. As with MTP, a limitation is that when transferring photos from a computer to the Android device, file timestamps are replaced with the time of the copy. For copies from the Android device to a computer however, the timestamps are preserved.


Version 1.11

PTP v1.11 (ISO 15740:2013) is a minor revision to PTP v1.1 (ISO 15740:2008). Both the 2008 and 2013 versions of PTP are fully backward-compatible with PTP v1.0 (ISO 15740:2005), and offer optional performance, compatibility, and feature enhancements including: * A mechanism for handling streaming content * A mechanism to support multiple vendor extension sets * Support for objects larger than the 4GiB size limit set by PTP v1.0, by requiring 64 bits (8 bytes) for object size * Support for retrieval of ''ObjectHandles'' in enumerated chunks. This may reduce long response times for some devices that possess large numbers of objects * Support for arbitrary resizing prior to image transmission (responder scaling). In PTP v1.0, image sizes might be requested in full-resolution or thumbnail size only * Support for arrays of datasets. This can be used to reduce the number of required transactions necessary for device characterization from being a function of the number of objects on the device down to one * A fast file characterization operation that exploits dataset arrays to request, in a single transaction, only the minimum data required to characterize a typical filesystem * A new standard ''ObjectFormatCode'' to support the Digital Negative (DNG) file format


Drawbacks

* Renaming file objects directly is not possible without copying or rewriting them * Modification of file contents is not supported (the file needs to be re-transferred completely) * Some drawbacks are OS-specific — see


See also

*
Design rule for Camera File system Design rule for Camera File system (DCF) is a JEITA specification (number CP-3461) which defines a file system for digital cameras, including the directory structure, file naming method, character set, file format, and metadata format. It is c ...
*
PictBridge PictBridge is a historical computing industry standard introduced in 2003 from the Camera & Imaging Products Association (CIPA) for direct printing. It allows images to be printed directly from digital cameras to a printer, without having to ...


References


External links

*
PTP transport over USB specifications
USB.org.
Microsoft and FotoNation Team to Support the Media Transfer Protocol For Wireless Digital Still Cameras
Microsoft News Center.
Free software with PTP support
{{ISO standards Digital photography Network protocols ISO standards Computer-related introductions in 2000 USB