A physical layer which depends on hardware of a general-purpose interface determines whether an image supply device supports a predetermined communication protocol. A transport layer which controls communication as an upper layer of the physical layer determines whether the image supply device supports the predetermined communication protocol. When either of the physical and transport layers determines that the image supply device supports the predetermined communication protocol, the image supply device is decided to support the predetermined communication protocol. When both of the physical and transport layers do not determine that the image supply device supports the predetermined communication protocol, an application layer serving as an upper layer of the transport layer determines whether the image supply device supports the predetermined communication protocol.
|
1. A communication apparatus for performing a communication with an external device in accordance with a direct print protocol on an application layer, the apparatus comprising:
a determination unit that determines whether or not the communication with the external device is able to be performed on a predetermined communication layer being lower than the application layer in accordance with the direct print protocol, based on a confirmation process on the predetermined communication layer of multiple communication layers configuring a communication interface with the external device, the confirmation process on the predetermined communication layer confirming whether the external device is compliant with the direct print protocol; and
a control unit that starts the communication with the external device on the application layer in accordance with the direct print protocol without executing a confirmation process on the application layer, if the determination unit determines that the communication with the external device is able to be performed on the predetermined communication application layer in accordance with the direct print protocol,
wherein if the determination unit determines that the communication with the external device is not able to be performed on the predetermined communication layer in accordance with the direct print protocol, the control unit executes the confirmation process on the application layer, wherein the confirmation process on the application layer is executed to confirm whether the external device is compliant with the direct print protocol.
3. A communication method of a communication apparatus for performing a communication with an external device in accordance with a direct print protocol on an application layer, the method comprising:
a determination step of determining whether or not the communication with the external device is able to be performed on a predetermined communication layer being lower than the application layer in accordance with the direct print protocol, based on a confirmation process on the predetermined communication layer of multiple communication layers configuring a communication interface with the external device, the confirmation process on the predetermined communication layer confirming whether the external device is compliant with the direct print protocol; and
a control step of starting the communication with the external device on the application layer in accordance with the direct print protocol without executing a confirmation process on the application layer, if it is determined in the determination step that the communication with the external device is able to be performed on the predetermined communication layer in accordance with the direct print protocol,
wherein if the determination step determines that the communication with the external device is not able to be performed on the predetermined communication layer in accordance with the direct print protocol, the control step executes the confirmation process on the application layer, wherein the confirmation process on the application layer is executed to confirm whether the external device is compliant with the direct print protocol.
2. A communication apparatus according to
4. A communication method according to
|
This application is a continuation of International Application No. PCT/JP2003/009870 filed Aug. 4, 2003, which in turn claims the benefit of priority based on Japanese Application No. 2002-228031 (Pat.) filed on Aug. 5, 2002. International Application No. PCT/JP2003/009870 has been published in English as International Publication No. WO 2004/014042 A1.
The present invention relates to a recording system which records an image on the basis of image data from an image supply device such as a digital camera, a recording apparatus, and a control method therefor.
In recent years, digital cameras (image sensing apparatuses) capable of photographing an image by a simple operation and converting the photographed image into digital image data have widely been used. To print an image photographed by this camera and use the print as a photograph, the photographed digital image data is temporarily input from the digital camera to a PC (computer), and undergoes image processing by the PC. Then, the processed data is output from the PC to a color printer, which prints the image data.
To the contrary, there have been developed color print systems capable of directly transferring digital image data from a digital camera to a color printer and printing the data without the mediacy of any PC, and so-called photo direct (PD) printers capable of directly mounting in a color printer a memory card which is mounted in a digital camera and stores a sensed image, and printing the photographed image stored in the memory card.
Especially when image data is to be directly transferred from a digital camera to a printer and printed, demands have arisen for the advent of a photo direct printer capable of coping with digital cameras of various vendors because the specifications and operating methods of digital cameras are different between vendors. Such photo direct printer receives and prints image data not only from the above-mentioned digital camera, but also from a cell phone, PDA, and other devices. Further, the printer has various functions. The printer and image supply device must confirm whether they can communicate with each other in accordance with a predetermined communication protocol.
In confirming whether communication complying with a new communication protocol is possible, a dedicated command or the like must be prepared. It is difficult to confirm whether communication is possible without changing an existing rule (PTP (Picture Transfer Protocol) or the like).
The present invention has been made in consideration of the above situation, and has as its feature to provide a recording system capable of quickly confirming the communication function of a connected image supply device, a recording apparatus, and a control method therefor.
According to the present invention, there is provided a recording apparatus which is connected to an image supply device via a general-purpose interface, receives image data from the image supply device, and records the image data, characterized by comprising:
Other features and advantages of the present invention will be apparent from the following descriptions taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the descriptions, serve to explain the principle of the invention.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to
One end portion of the access cover 1003 is rotatably held by the upper case 1002 to be able to open/close the opening formed on the upper surface of the main body. When the access cover 1003 is opened, a printhead cartridge (not shown), ink tanks (not shown), or the like housed in the main body can be exchanged. Although not shown, when the access cover 1003 is opened/closed, a projection formed on the rear surface of the cover 1003 rotates a cover open/close lever. By detecting the rotation position of the lever using a microswitch or the like, the open/close state of the access cover can be detected.
A power key 1005 is provided on the upper surface of the upper case 1002. A control panel 1010 which comprises a liquid crystal display unit 1006, various key switches, and the like is provided on the right side of the upper case 1002. The structure of the control panel 1010 will be described in detail later with reference to
Referring to
The arrangement of principal part associated with the control of the PD printer 1000 according to this embodiment will be described below with reference to
Referring to
Note that signals are exchanged between the controller 3000 and the printer engine 3004 via the USB 3021 or an IEEE1284 bus 3022.
Reference numeral 4001 denotes a PC card interface, which is used to read image data stored in the inserted PC card 3011, and to write data in the PC card 3011. Reference numeral 4002 denotes an IEEE1284 interface, which is used to exchange data with the printer engine 3004. The IEEE1284 interface 4002 is a bus used when image data stored in the digital camera 3012 or PC card 3011 is to be printed. Reference numeral 4003 denotes a USB interface, which exchanges data with the PC 3010. Reference numeral 4004 denotes a USB host interface, which exchanges data with the digital camera 3012. Reference numeral 4005 denotes a control panel interface, which receives various operation signals from the control panel 1010, and outputs display data and the like to the display unit 1006. Reference numeral 4006 denotes a viewer interface, which controls display of image data on the viewer 1011. Reference numeral 4007 denotes an interface, which controls interfaces with various switches, LEDs 4009, and the like. Reference numeral 4008 denotes a CPU interface, which exchanges data with the DSP 3002. Reference numeral 4010 denotes an internal bus (ASIC bus), which interconnects these interfaces.
Referring to
In this embodiment, a case wherein the PD printer 1000 and DSC 3012 are connected to perform printing will be mainly exemplified. The purpose of this embodiment is to provide a PD printer capable of connecting a digital camera of each vendor and devices (DSPD: Digital Still Photography Devices) such as a cell phone and memory device to an image output apparatus such as the PD printer 1000, and printing on the basis of image data acquired from the devices. A communication protocol in connecting the PD printer 1000 according to this embodiment and these DSPDs to perform printing will be described. This embodiment proposes a new CDPS (Canon Direct Print Service) in which communication control between the PD printer and the DSPD is done using a general-purpose file and general-purpose format regardless of the interface.
The concept of a print service function is adopted in agreements for various communication protocol architectures between a DSPD and an image output apparatus, such as USB PTP (Still Image Class) and Mass Storage Class, Blue Tooth OBEX, and UPnP. The print service function is a set of execution functions in the application layer, and does not depend on various interfaces.
Referring to
In this manner, the direct print service can be realized between the DSC 3012 and the PD printer 1000 regardless of the physical interface.
In 1402, the printer 1000 assigns the DSC 3012 as a resource in OpenSession. If necessary, a start request for a procedure of assigning a handle to a data object, or performing special initialization is issued. If the DSC 3012 sends back an acknowledgement (OK) in response to this, PTP communication starts. In 1403, if all handles in the script format are requested from the DSC 3012 (GetObjectHandles) (Storage ID: FFFFFF, Object Type: Script), a list of all handles held by the DSC 3012 is sent back (ObjectHandleArray 1404). In 1405, information on the ith object handle (Handle i) (i=1 to n (n is the number of handles)) is acquired from the PD printer 1000. In 1406, the ith object (Object i Data) is acquired. If the object contains a keyword (e.g., “Marco”) representing the identification of the DSC 3012, the PD printer 1000 designates transmission of object information (SendObjectInfo) in 1407. If an acknowledgement (OK) is received in response to this, the object is transmitted from the PD printer 1000 to the DSC 3012 by SendObject. The object contains, e.g., “Pole” as a response keyword (password) to the above-mentioned keyword. As a result, whether the PD printer 1000 and DSC 3012 support CDPS can be determined between the PD printer 1000 and the DSC 3012.
In the above example, all image files held by the DSC 3012 must be searched before the DSC 3012 sends back “Marco” (password) in response to “GetObject i”. When many image files are held, a long time is taken for the PD printer 1000 to receive “Marco”.
For example, when the memory card of the camera 3012 stores a large amount of image data (objects), the attributes of all files including image data must be confirmed for creating a script handle list. After that, a script handle list of only script files must be created. A long time is taken for notifying the printer 1000 of the script handle list. A time until the camera 3012 and printer 1000 confirm whether they have a communication function complying with a predetermined communication protocol becomes long.
To prevent this, the following method is employed for providing a printer capable of quickly confirming the communication function of an image supply device (in this case, the DSC 3012) connected to the PD printer 1000 and shifting to the communication mode, and its control method.
Whether shift to a predetermined communication mode is possible is determined in each of a plurality of hierarchical layers which realize an interface between the PD printer 1000 and the DSC 3012. Immediately when shift is determined to be possible by determination in any hierarchical layer from the determination result, the mode shifts to the communication mode. At this time, determination is sequentially executed from lower layers. If shift is determined to be impossible, determination using a password in the above-described application layer is finally executed.
In step S1, if the PD printer 1000 and DSC 3012 are connected via a USB cable, a USB I/F is established.
A GetStringDescriptor command is issued in the USB I/F to acquire device (DSC 3012) information. The device (DSC 3012) sends back a manufacturer (Manufacture) and product name (Product) in response to the GetStringDescriptor command.
In step S2, whether the connected DSC 3012 supports the communication protocol CDPS is determined on the basis of the manufacture name and product name contained in a string representing a manufacturer (Manufacture) and product name (Product) in indices 1 and 2 (Index1, Index2) defined by the USB interface. If the DSC 3012 is determined to support CDPS, the flow advances to step S3 to set a CDPS support flag in the memory 3003, and to step S4. If NO in step S2, the flow advances from step S2 to step S4.
In step S4, communication by PTP as an upper layer of the USB I/F layer (601 and 602 in
As a determination method, whether returned information contains a predetermined character string, code, or the like, whether the number of characters is a predetermined one, or whether returned contents change a plurality of number of times may be determined.
If the DSC 3012 is determined to support CDPS, the flow advances to step S6 to set the CDPS support flag in the memory 3003, and to step S7. If NO in step S5, the flow advances from step S5 to step S7.
In step S7, whether the CDPS support flag in the memory 3003 is ON is determined. If YES in step S7, the flow advances to step S8 to start communication based on CDPS.
If it is determined in step S7 that the CDPS support flag in the memory 3003 is OFF, i.e., the above-mentioned corresponding information is not described in the obtained string such as a GetStringDescriptor command in the USB I/F, or the above-mentioned corresponding information is not contained in “DeviceInfo Dataset” by PTP, the flow advances to step S9 to determine by a PTP protocol whether the DSC 3012 can support CDPS. If YES in step S10, the flow advances to step S8 to start communication based on CDPS; if NO, confirmation processing ends without entering the CDPS communication mode.
CDPS support determination in the USB I/F may be performed on the basis of not information obtained by a GetStringDescriptor command but another information obtained using another command such as GetVendorDescriptor.
In this embodiment, determination is done in two, physical and transport layers in addition to the application layer. However, determination is not always performed in the two layers, and may be performed in any layer as far as determination is done prior to determination in the application layer and determination in the application layer can be skipped. As the determination method, another method may be adopted.
In the first embodiment, determination is executed in a plurality of hierarchical layers which constitute an interface. In the second embodiment,
More specifically, in the first embodiment, whether shift to CDPS is impossible is checked in the physical, transport, and application layers. If CDPS is finally determined to be supported in step S7 of
With this setting, high-speed connection can be stably realized with less mounting burden while maintaining future development and expandability.
In the first and second embodiments, the printer 1000 executes determination because the PD printer 1000 serves as USB-Host. In a system such as USB-OTG (On The Go) in which the DSC 3012 serves as a host, the above-described relationship is reversed. In this case, the DSC 3012 may determine whether shift to CDPS is possible.
That is, in the third embodiment, the positions of a PD printer 1000 and DSC 3012 are exchanged in
In the first to third embodiments, a PTP protocol is used in a USB interface, but the present invention is not limited to this. For example, also in connection by a wireless LAN such as Bluetooth in
The present invention may be applied to a system including a plurality of devices (e.g., a host computer, interface device, reader, and printer) or an apparatus (e.g., a copying machine or facsimile apparatus) formed from a single device.
The object of the present invention is also achieved when a storage medium (or recording medium) which stores software program codes for realizing the functions of the above-described embodiments (processes executed on the camera side and various print processes executed on the printer side) is supplied to a system or apparatus, and the computer (or the CPU or MPU) of the system or apparatus reads out and executes the program codes stored in the storage medium. In this case, the program codes read out from the storage medium realize the functions of the above-described embodiments, and the storage medium which stores the program codes constitutes the present invention. The functions of the above-described embodiments are realized when the computer executes the readout program codes. Also, the functions of the above-described embodiments are realized when an OS (Operating System) or the like running on the computer performs part or all of actual processing on the basis of the instructions of the program codes.
The functions of the above-described embodiments are further realized when the program codes read out from the storage medium are written in the memory of a function expansion card inserted into the computer or the memory of a function expansion unit connected to the computer, and the CPU of the function expansion card or function expansion unit performs part or all of actual processing on the basis of the instructions of the program codes.
As described above, according to the embodiments, an image supply device (e.g., camera) and a printing apparatus such as a printer are connected. Image data is transmitted from the image supply device to the printing apparatus, and printed. In this arrangement, whether the image supply device and printing apparatus support a predetermined communication protocol is confirmed in the physical layer depending on interface hardware or the transport layer depending on a communication protocol before whether they support the predetermined communication protocol is confirmed in the application layer. If the image supply device and printing apparatus are confirmed in either of the physical and transport layers to support the communication protocol, confirmation processing by the application layer can be omitted.
Accordingly, whether the image supply device and printing apparatus support a predetermined communication protocol can be quickly confirmed.
The embodiments employ confirmation processing in the physical layer which depends on hardware, can achieve quick confirmation, but has a low degree of freedom, confirmation processing in the application layer which has a high degree of freedom but requires a long confirmation time, and confirmation processing in the transport layer between the physical layer and the application layer. If confirmation processing in a layer lower than the application layer is completed before confirmation processing in the application layer, confirmation processing in the application layer can be omitted.
Particularly, it may take a longer time than confirmation of all object handles to confirm in the application layer using a PTP protocol whether communication by a predetermined communication protocol is possible.
According to the present invention, confirmation processing in an upper layer can be omitted by determining in a lower layer whether communication by the above-mentioned communication protocol in the upper layer is possible.
Further, the application layer time can be shortened by automatically performing communication by a predetermined communication protocol in accordance with establishment of communication in an upper layer.
Shift to a predetermined communication protocol becomes smooth, resulting in good usability.
In the embodiments, confirmation processing of whether a communication protocol is supported is set as confirmation of “communication protocol is supported”. The present invention is not particularly limited to this example, and may be applied to another confirmation processing as far as the gist of the present invention is realized.
For example, confirmation processing may be set as confirmation of “communication protocol is not supported”. As a detailed example of the confirmation method, similar to confirmation of “communication protocol is supported”, Descriptor information acquired by a Descriptor acquisition command such as GetStringDescriptor may be analyzed in a USB I/F. For PTP, Dataset information acquired by Dataset acquisition operation such as GetDeviceInfo may be analyzed.
When the predetermined communication protocol is determined not to be supported, shift processing to an upper layer is canceled. Even if processing does not shift to an upper layer, it can be decided that communication by the predetermined communication protocol using the upper layer is not established.
If communication by the predetermined communication protocol is determined to be impossible, a warning to the user can be provided more quickly by setting a display control of displaying that communication by the predetermined communication protocol is impossible, on a display unit of at least one of an image supply device and image printing device.
In the embodiments, the PD printer is set as a USB host, and the DSC is set as a slave. The present invention is not particularly limited to this combination, and any devices may function as a host and slave as far as the gist of the present invention is realized.
Conceivable image supply devices are a PDA, cell phone, television, video device, image storage device, and the like, in addition to a digital camera.
A general-purpose interface includes connection to a network such as the Internet, in addition to the above-mentioned USB and IEEE 1394.
The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, to apprise the public of the scope of the present invention, the following claims are made.
Hirabayashi, Hiromitsu, Yamada, Akitoshi, Aichi, Takao, Goto, Fumihiro
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5457784, | Mar 05 1992 | Metacomp, Inc.; METACOMP, INC | Interfacing system using an auto-adapting multi-ported control module between an i/o port and a plurality of peripheral adaptors via bus extending cables |
5784581, | May 03 1996 | Intel Corporation | Apparatus and method for operating a peripheral device as either a master device or a slave device |
6529522, | Mar 12 1997 | Canon Kabushiki Kaisha | Communication apparatus with digital interface |
6823367, | Sep 24 1999 | Ricoh Company, LTD | Method and apparatus for managing communication information collectively in communication terminal device |
7401213, | Feb 14 1997 | Canon Kabushiki Kaisha | Data communication apparatus and method of a device that supports plural communication methods |
20010013949, | |||
20030174351, | |||
20030227648, | |||
20040223185, | |||
20050036160, | |||
20050099647, | |||
GB2351576, | |||
JP11154123, | |||
JP1126044, | |||
JP3147447, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jan 11 2005 | YAMADA, AKITOSHI | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 016238 | /0392 | |
Jan 11 2005 | AICHI, TAKAO | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 016238 | /0392 | |
Jan 11 2005 | GOTO, FUMIHIRO | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 016238 | /0392 | |
Jan 13 2005 | HIRABAYASHI, HIROMITSU | Canon Kabushiki Kaisha | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 016238 | /0392 | |
Feb 02 2005 | Canon Kabushiki Kaisha | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Mar 13 2015 | ASPN: Payor Number Assigned. |
May 25 2017 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Aug 02 2021 | REM: Maintenance Fee Reminder Mailed. |
Jan 17 2022 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Dec 10 2016 | 4 years fee payment window open |
Jun 10 2017 | 6 months grace period start (w surcharge) |
Dec 10 2017 | patent expiry (for year 4) |
Dec 10 2019 | 2 years to revive unintentionally abandoned end. (for year 4) |
Dec 10 2020 | 8 years fee payment window open |
Jun 10 2021 | 6 months grace period start (w surcharge) |
Dec 10 2021 | patent expiry (for year 8) |
Dec 10 2023 | 2 years to revive unintentionally abandoned end. (for year 8) |
Dec 10 2024 | 12 years fee payment window open |
Jun 10 2025 | 6 months grace period start (w surcharge) |
Dec 10 2025 | patent expiry (for year 12) |
Dec 10 2027 | 2 years to revive unintentionally abandoned end. (for year 12) |