The present specification discloses a technique for a communication device to execute a communication of data with another device, and execute a function relating to the data.
Conventionally, a technique is known in which a terminal device sends data to a server, and a printer receives the data sent from the server, so that the data received by the printer is printed. For example, a service on the Internet called Google (registered trademark) Cloud Print (referred to as “GCP” below) is disclosed at “What is Google Cloud Print” (URL: https://developers.google.com/cloud-print/). For example, a user accesses a printer by using a terminal device, and causes the printer to execute a communication with a server which provides the GCP (referred to as a “GCP server” below). According to this, the printer can register printer related information including a name of the printer, a print condition which can be used by the printer (i.e. Capability), a default setting of the printer and the like, in the GCP server. Subsequently, for example, the user submits to the GCP server image data which represents an image of a print target by using the terminal device. According to this, the printer can acquire print data (i.e. data which can be interpreted by the printer) which is generated from the image data by the GCP server, and execute a print of an image represented by the print data.
However, in printing executed using a server and a printer, there are situations where the printer is unable to execute printing. For example, the printer cannot execute printing in the case where the printer itself is not in a normal state (e.g., there are no print sheets, there is no ink), or in the case where the printer cannot acquire data from the server.
The present specification discloses a technique which allows a comparatively early detection of a situation in which the communication device cannot execute a target function.
A communication device disclosed herein may comprise: a processor; and a memory storing computer-readable instructions therein, the computer-readable instructions, when executed by the processor, causing the communication device to execute: acquiring function execution information from a first device, the function execution information being for the communication device to execute a target function, the target function including a communication of specific data with a second device being different from the first device and a specific process related to the specific data; acquiring authentication information from the first device, the authentication information having been generated by the second device and acquired by the first device from the second device, the authentication information being information for causing the second device to execute authentication on whether a communication with the second device is possible or not; executing a first determination process with acquisition of the function execution information as a trigger, the first determination process determining whether a state of the communication device is an executable state in which the communication device is capable of executing the specific process or a non-executable state in which the communication device is not capable of executing the specific process, the first determination process being executed without using the authentication information; executing a second determination process in a case where it is determined that the state of the communication device is the executable state in the first determination process, the second determination process determining whether or not the communication device is capable of executing the communication with the second device for executing the specific process, the second determination process being executed by attempting a communication with the second device using the acquired authentication information; in a case where it is determined that the communication device is not capable of executing the communication for executing the specific process in the second determination process, causing a first notification unit to execute a first notification related to a result of the second determination process; and executing the communication with the second device in a case where it is determined that the communication device is capable of executing the communication for executing the specific process in the second determination process.
Furthermore, a method for a communication device disclosed herein may comprise: acquiring function execution information from a first device, the function execution information being for the communication device to execute a target function, the target function including a communication of specific data with a second device being different from the first device and a specific process related to the specific data; acquiring authentication information from the first device, the authentication information having been generated by the second device and acquired by the first device from the second device, the authentication information being information for causing the second device to execute authentication on whether a communication with the second device is possible or not; executing a first determination process with acquisition of the function execution information as a trigger, the first determination process determining whether a state of the communication device is an executable state in which the communication device is capable of executing the specific process or a non-executable state in which the communication device is not capable of executing the specific process, the first determination process being executed without using the authentication information; executing a second determination process in a case where it is determined that the state of the communication device is the executable state in the first determination process, the second determination process determining whether or not the communication device is capable of executing the communication with the second device for executing the specific process, the second determination process being executed by attempting a communication with the second device using the acquired authentication information: and executing the communication with the second device in a case where it is determined that the communication device is capable of executing the communication for executing the specific process in the second determination process.
Moreover, a control method, a computer program and a non-transitory computer-readable medium which stores the computer-readable instructions, for achieving the above communication device, are also new and useful. Further, a communication system comprising the above communication device and at least one of the second device and first device is also new and useful.
As illustrated in
(Configuration of Printer 10)
The printer 10 is a peripheral apparatus (i.e., peripheral apparatus of a PC or the like) which can execute a print process. The printer 10 comprises an operation unit 12 and a display unit 14. Furthermore, the printer 10 comprises an NFC (abbreviation of Near Field Communication) interface 16, and a wireless LAN (abbreviation of Local Area Network) interface 18. Furthermore, the printer 10 comprises a print execution unit 20. Further, the printer 10 comprises a speaker 22. Further, the printer 10 comprises a control unit 30. Each of the units 12 to 30 is connected to a bus line (a reference numeral is not illustrated). Hereinafter, the interface will be described as an “I/F”.
The operation unit 12 comprises a plurality of keys. The user can give various instructions to the printer 10 by operating the operation unit 12. The display unit 14 is a display for displaying various pieces of information. The print execution unit 20 is a printing mechanism such as an ink jet printing or a laser printing method. The speaker 22 outputs sound in accordance with the CPU 32.
The NFC I/F 16 is an I/F (i.e., an IC chip or a communication circuit) for executing a wireless communication in accordance with the NFC scheme for a so-called short distance wireless communication (referred to as an “NFC communication” below). The NFC scheme, for example, is a wireless communication scheme based on the international standard of e.g., ISO/IEC 21481 or 18092.
The wireless LAN I/F 18 is an I/F (i.e. an IC chip or a communication circuit) for executing a wireless communication in accordance with the normal Wi-Fi scheme defined by the Wi-Fi Alliance (referred to as a “normal Wi-Fi communication” below). The normal Wi-Fi scheme, for example, is a wireless communication scheme in accordance with the standard of 802.11 of IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) or a standard (e.g., 802.11a, 11b, 11g, 11n, etc.) equivalent to this standard.
Here, a difference between the NFC I/F 16 and the wireless LAN I/F 18 will be described. A communication speed (e.g. a maximum communication speed is 11 to 600 Mbps) of a wireless communication via the wireless LAN I/F 18 is faster than a communication speed (e.g. a maximum communication speed is 100 to 424 Kbps) of a wireless communication via the NFC I/F 16. Further, a frequency of a carrier wave (e.g. a 2.4 GHz band or a 5.0 GHz band) upon a wireless communication via the wireless LAN I/F 18 is different from a frequency of a carrier wave (e.g. a 13.56 MHz band) upon a wireless communication via the NFC I/F 16. Furthermore, for example, when a distance between the NFC I/F 16 of the printer 10 and an NFC I/F of another apparatus (e.g. the portable terminal 70) is about 10 cm or less, the control unit 30 can execute an NFC communication with said apparatus via the NFC I/F 16. Meanwhile, even when a distance between the wireless LAN I/F 18 of the printer 10 and the wireless LAN I/F of another apparatus (e.g. the portable terminal 70) is 10 cm or less or 10 cm or more (e.g. about 100 m at maximum), the control unit 30 can execute a normal Wi-Fi communication with the apparatus via the wireless LAN I/F 18. That is, a maximum distance at which the printer 10 can execute a wireless communication with another apparatus via the wireless LAN I/F 18 is longer than a maximum distance at which the printer 10 can execute a wireless communication with another apparatus via the NFC I/F 16.
The control unit 30 comprises a CPU 32 and a memory 34. The CPU 32 is a processor which executes various processes in accordance with a program stored in the memory 34. The memory 34 is configured by a RAM, a ROM, a hard disk and the like. The memory 34 stores not only the above program but also various pieces of data generated or acquired in a process in which the printer 10 executes various processes.
(Configuration of Portable Terminal 70)
The portable terminal 70 is a portable terminal device such as a mobile telephone (e.g. a smartphone), a PDA, a notebook PC, a tablet PC, a digital camera, a portable music playback device or a portable movie playback device. The portable terminal 70 comprises an operation unit, a display unit (both not illustrated), and a control unit 80. Further, the portable terminal 70 comprises an NFC I/F 76 the same as the NFC I/F 16 of the printer 10, and a wireless LAN I/F 78 the same as the wireless LAN I/F 18 of the printer 10. Each of the units 76 to 80 is connected to a bus line (a reference numeral is not illustrated).
The control unit 80 comprises a CPU 82 and a memory 84. The CPU 82 is a processor which executes various processes in accordance with a program stored in the memory 84. The memory 84 is configured by a RAM, a ROM, a hard disk and the like. The memory 84 stores not only the above program but also various pieces of data generated or acquired when the portable terminal 70 executes various processes.
The memory 84 further stores a printer application (which may also be denoted as “printer appl.” hereinbelow and in the drawings) which causes the printer 10 to execute a print by using the print intermediation server 100. The printer application is an application provided by a vendor (under which term manufacturer may be included herein) of the printer 10. The printer application may be installed to the portable terminal 70 from a server on the Internet or may be installed to the portable terminal 70 from a medium shipped together with the printer 10.
(Configuration of Print Intermediation Server 100)
The print intermediation server 100 is a server which is located on the Internet, and is, for example, a GCP server provided by Google (registered trademark). In this regard, in modified embodiments, the print intermediation server 100 may be a server provided by the vendor of the printer 10 or may be a server provided by a business operator different from the vendor of the printer 10.
The print intermediation server 100 is a server for executing an intermediation of a print between an external apparatus (e.g. the portable terminal 70) and a printer (e.g. the printer 10). That is, the print intermediation server 100 generates print data in a data format which can be interpreted by the printer by converting image data submitted from the external apparatus, and supplies the print data to the printer. Therefore, even when the external apparatus does not comprise a printer driver for converting the image data into the print data, the external apparatus can cause the printer to execute a print process by submitting the image data to the print intermediation server 100.
(Advance Preparation)
As described above, for example, the portable terminal 70 can cause the printer 10 to execute a print process via the print intermediation server 100. Various processes for this print process will be described below with reference to
That is, the user needs to register account information in the print intermediation server 100 by using, for example, the portable terminal 70. The account information includes, for example, a user ID, a password and the like. Moreover, the user may register account information in the print intermediation server 100 by using another apparatus (e.g. a PC) instead of using the portable terminal 70. When the account information of the user is registered in the print intermediation server 100, the user can cause the printer 10 to execute a print process via the print intermediation server 100 by using the portable terminal 70.
(Registration Process;
Next, a registration process for registering information which is necessary for the portable terminal 70 in the print intermediation server 100 will be described with reference to
In the registration process, the user of the portable terminal 70 may not be present near the printer 10. That is, for example, in a situation that the printer 10 is located at home and the user goes out carrying the portable terminal 70, the user can register various pieces of information in the print intermediation server 100 by using the portable terminal 70. Moreover, in the registration process, the portable terminal 70 executes a communication with the print intermediation server 100 via the wireless LAN I/F 78 (i.e., via the Internet).
The user of the portable terminal 70 first activates the printer application installed in the portable terminal 70, and selects a button indicating “Registration” on a screen which is displayed in accordance with the printer application. In this case, the CPU 82 executes each process illustrated in
The CPU 82 first reads virtual print condition information registered in advance in the printer application, from the memory 84. The virtual print condition information is information indicating a virtual print condition which can be used by a virtual printer, not an actual printer (e.g. the printer 10), and is information determined in advance by the vendor of the printer 10. Moreover, as illustrated in
The virtual print condition includes, for example, sizes of print sheets (i.e. sheet sizes) on which images need to be printed, information indicating whether it is capable of executing duplex printing, the number of colors (e.g. monochrome print or color print) and the like. In the present embodiment, the virtual print condition determined in advance includes “A4” and “B5” as sheet sizes, includes “Not available” indicating that it is not capable of duplex printing, and includes “Monochrome print” and “Color print” as the number of colors. The virtual print condition may further include other conditions such as page orientation (e.g. landscape print and portrait print).
Next, the CPU 82 acquires a proxy ID of the portable terminal 70 (i.e. an ID for identifying the portable terminal 70) from the memory 84. Then, the CPU 82 sends a registration request 200 including the virtual print condition information and the proxy ID to the print intermediation server 100. Moreover, a URL of the print intermediation server 100 (i.e. a URL of a sending destination of the registration request 200) is registered in advance in the printer application. Below, unless described in particular, the URL of the request sending destination may be a URL registered in advance in the printer application. In this regard, the URL of the request sending destination may be a URL acquired from the print intermediation server 100 before the request is sent.
When receiving the registration request 200 from the portable terminal 70, the print intermediation server 100 generates a printer ID for identifying a registration target printer by using the proxy ID included in the registration request 200. The portable terminal 70 does not specify the actual printer (e.g. the printer 10) as a registration target printer (that is, the registration request 200 does not include print condition information of the actual printer, a proxy ID of the actual printer and the like), and therefore the printer ID generated by the print intermediation server 100 is an ID for identifying a virtual printer.
The print intermediation server 100 associates the generated printer ID of the virtual printer with the virtual print condition information included in the registration request 200 and stores them. In
Next, the print intermediation server 100 sends to the portable terminal 70 a response 202 including the generated printer ID and a login URL which indicates a location of login screen data 212 described below.
When receiving the response 202 from the print intermediation server 100, the CPU 82 stores in the memory 84 the printer ID included in the response 202. Next, the CPU 82 sends an access request 210 to the print intermediation server 100 via the wireless LAN I/F 78 with the login URL included in the response 202 as a sending destination.
When receiving the access request 210 from the portable terminal 70, the print intermediation server 100 sends the login screen data 212 to the portable terminal 70. The login screen data 212 is data which represents a login screen for inputting account information (i.e. a user ID, a password and the like).
When receiving the login screen data 212 from the print intermediation server 100, the CPU 82 causes the display unit of the portable terminal 70 to display the login screen represented by the login screen data 212. The user inputs into the portable terminal 70, by using the operation unit of the portable terminal 70, the account information registered in the print intermediation server 100 upon the above advance preparation. In this case, the CPU 82 sends a login request 214 including the inputted account information to the print intermediation server 100.
Moreover, although the account information is inputted to the portable terminal 70 by the user in the present embodiment, in the modified embodiments when, for example, the above advance preparation is executed by using the portable terminal 70, the memory 84 of the portable terminal 70 may store the account information. In this case, the CPU 82 may acquire the account information from the memory 84 without having the user input the account information, and send the login request 214 including the account information to the print intermediation server 100. Moreover, in a submit process, to be described, which is subsequent to the print process of
When receiving the login request 214 from the portable terminal 70, the print intermediation server 100 executes authentication of the account information included in the login request 214. Specifically, the print intermediation server 100 determines whether or not the account information included in the login request 214 is already registered in the print intermediation server 100. When determining that the account information is not registered, that is, when failing to authenticate the account information, the print intermediation server 100 sends a login failure notification to the portable terminal 70, although not illustrated. In this case, the registration process is finished without executing subsequent processes.
On the other hand, when determining that the account information is already registered, that is, when succeeding to authenticate the account information, the print intermediation server 100 generates a token which is a unique character string. The token is information for authentication which is used in subsequent processes (e.g. a print process in
Next, the print intermediation server 100 associates the successfully authenticated account information, the printer ID of the virtual printer, the virtual print condition information and the generated AT with each other and stores them. Then, the print intermediation server 100 sends a login success notification 216 including the generated AT to the portable terminal 70.
When receiving the login success notification 216 from the print intermediation server 100, the CPU 82 stores in the memory 84 the AT included in the login success notification 216. According to this, the registration process is finished.
As described above, in the registration process, a method of registering a printer ID of a virtual printer and virtual print condition information in the print intermediation server 100 instead of registering a printer ID of an actual printer (e.g. the printer 10) and print condition information in the print intermediation server 100 is adopted. That is, the portable terminal 70 registers the printer ID of the virtual printer and the virtual print condition information in the print intermediation server 100. Hence, the user does not have to cause the printer 10 to execute a communication with the print intermediation server 100 to register the printer ID and the print condition information (and moreover, the AT) in the print intermediation server 100.
(Submit Process)
When the registration process described above has ended, the user can submit image data which represents a print target image to the print intermediation server 100 by using the portable terminal 70. As in the registration process, the user of the portable terminal 70 can submit image data to the print intermediation server 100 even when not present near the printer 10. For example, the user can submit image data which represents an image captured by the portable terminal 70 at a visiting place, to the print intermediation server 100. Moreover, the image data may be in any data format as long as the image data is data which represents a print target image, and may for example be data in a bitmap format such as JPEG (abbreviation of Joint Photographic Experts Group), may be data in a vector format, may be data in a text format or may be data in other formats.
In the submit process for submitting image data to the print intermediation server 100, the user of the portable terminal 70 executes a predetermined operation on the print intermediation server 100 (e.g., an operation to activate the printer application, select a button indicating “Submit” on the screen, and specify the image data), whereupon the portable terminal 70 and the print intermediation server 100 execute processes the same as the processes 210 to 216 of the registration process. Moreover, in the submit process, the print intermediation server 100 does not generate an AT, but sends the AT that has already been generated.
When login succeeds, the CPU 82 requests the virtual print condition from the print intermediation server 100, and acquires the virtual print condition from the print intermediation server 100. The user of the portable terminal 70 operates the portable terminal 70, and selects a print setting for printing the image from among the virtual print conditions indicated by the acquired virtual print condition information. As described below in detail, in the print intermediation server 100, print data is generated in accordance with the selected print setting, and the print data is supplied to the printer 10 (see
Moreover, as described above, the selected print setting is selected from the virtual print conditions, and is not selected from the print conditions which can be actually used by the printer 10. That is, there is no guarantee that the printer 10 can execute a print process in accordance with the selected print setting. In this regard, in the present embodiment, the vendor of the printer 10 determines in advance a print condition which can be used by normal printers (e.g. all printers which are sold by the vendor) as the virtual print condition, and provides the printer application which includes the virtual print condition information indicating the virtual print condition. Consequently, in the present embodiment, the printer 10 can properly execute a print in accordance with the selected print setting.
When the user selects a print setting, the portable terminal 70 sends to the print intermediation server 100 a submit request including the AT, image data 232 specified by the user (see
Moreover, when the user further desires to submit other image data to the print intermediation server 100, the same operation as the above is executed. According to this, the CPU 82 can submit one or more pieces of job information to the print intermediation server 100 by executing the same process as the above.
(Print Process;
Next, a print process in which the portable terminal 70 causes the printer 10 to execute a print process in accordance with job information (e.g. the first job information 240) which has already been submitted to the print intermediation server 100 will be described with reference to
When desiring to cause the printer 10 to execute a print process in accordance with the job information submitted to the print intermediation server 100, the user of the portable terminal 70 activates the printer application, and selects a button indicating “Print” on the screen displayed in accordance with the printer application. In this case, the CPU 82 executes each process illustrated in
The CPU 82 first acquires the AT and the printer ID (i.e. each piece of information stored in the memory 84 in the registration process in
The user of the portable terminal 70 places the portable terminal 70 close to the printer 10. When a distance between the NFC I/F 76 and the NFC I/F 16 is a predetermined distance (e.g. 10 cm) or less, the CPU 82 sends the print instruction and the encrypted data to the printer 10 via the NFC I/F 76. In this regard, the CPU 82 executes an NFC communication so that it can send the print instruction and the encrypted data to the printer 10 without using an IP address of a sending destination, a URL of the sending destination and the like. Further, as the AT and the printer ID are encrypted, it is possible to prevent a third party from illegally acquiring the AT and the printer ID.
When receiving the print instruction and the encrypted data from the portable terminal 70 via the NFC I/F 16, the CPU 32 decrypts the encrypted data by using an encryption key stored in advance in the memory 34, that is, an encryption key matching the encryption key used by the portable terminal 70. According to this, the CPU 32 can acquire the AT and the printer ID. The CPU 32 executes a determination process.
(Determination Process;
The determination process executed by the CPU 32 will be described with reference to
First, in S10, when receiving the print instruction, the CPU 32 causes the display unit 14 to display an instruction acquisition screen indicating that the print instruction has been acquired. As a result, by checking the instruction acquisition screen, the user can learn that the print instruction has been appropriately acquired by the printer 10.
Next, in S12, the CPU 32 determines whether or not the print execution unit 20 is capable of executing the print process. In S12, the CPU 32 executes the determination without using the AT received from the portable terminal 70. Specifically, the CPU 32 determines a plurality of conditions that the print execution unit 20 itself requires to execute the print process correctly, such as the amount of ink remaining in the printing mechanism of the print execution unit 20, the presence or absence of print sheets in a feeding mechanism, the presence or absence of a paper jam in the feeding mechanism, and the like. In case of determining that the print process can be executed correctly in all of the plurality of conditions described above, such as there being ink remaining in the printing mechanism, that print sheets have been set in the feeding mechanism, there is no paper jam in the feeding mechanism, etc., the CPU 32 determines that the print process can be executed (YES in S12).
On the other hand, in the case of determining that the print process cannot be executed correctly in any of the plurality of conditions described above, such as when ink is not remaining in the printing mechanism, print sheets are not set in the feeding mechanism, or there is a paper jam in the feeding mechanism, etc., the CPU 32 determines that the print process cannot be executed (NO in S12). In the case of YES in S12, the process proceeds to S14, and in the case of NO in S12, the process proceeds to S16.
In S14, the CPU 32 determines whether or not a state of the printer 10 other than that of the print execution unit 20 is a state in which the print process can be executed. In S14, the CPU 32 executes the determination without using the AT. In S14, the CPU 32 executes the determination for one or more states such as a security setting state of the printer 10, a connection state of the wireless LAN I/F 18 or the like. For example, in the case where the security setting set in the printer 10 is a setting indicating that a print instruction via the NFC I/F 16 is not allowed, the CPU 32 determines that the state of the printer 10 is not a state in which the print process can be executed (NO in S14). Alternatively, for example, in the case where the wireless LAN I/F 18 is not communicatively connected to another device (e.g., an access point), the CPU 32 determines that the state of the printer 10 is not a state in which the print process can be executed (NO in S14). On the other hand, in the case where all the states in the one or more states described above are states in which the print process can be executed, such as the security setting being a setting indicating that a print instruction via the NFC I/F 16 is allowed, the wireless LAN I/F 18 being communicatively connected to another device, and the like, the CPU 32 determines YES in S14. In the case of YES in S14, the process proceeds to S20, and in the case of NO in S14, the process proceeds to S16.
In S16, the CPU 32 sends information indicating that the print process cannot be executed to the portable terminal 70 via the NFC I/F 16. Next, in S18, the CPU 32 causes the speaker 22 to output a sound indicating that the print process cannot be executed, and ends the determination process. Even if the user has moved to a location away from the printer 10, the user can learn by hearing the sound that the printer 10 cannot execute the print process. Moreover, in a modification, the CPU 32 may cause the display unit 14 to display a screen indicating that the print process cannot be executed. On the other hand, in S20 the CPU 32 sends information indicating that the print process can be executed to the portable terminal 70 via the NFC I/F 16.
When receiving the information indicating that the information indicating that the print process can be executed sent in S20, the portable terminal 70 displays, on the display unit of the portable terminal 70, a screen indicating the received information (i.e., that the printer 10 can execute the print process). According to this configuration, the user can learn whether the printer 10 can execute the print process by checking the screen displayed on the display unit of the portable terminal 70. Moreover, in a modification, the portable terminal 70 may cause the speaker of the portable terminal 70 to output a sound indicating the received information.
Next, in S22, the CPU 32 causes the display unit 14 to display a screen indicating that a communication with the print intermediation server 100 is to be attempted via the wireless LAN I/F 18 in S24, to be described (e.g., a screen including the character string “Attempting communication”). Thus, by checking the screen displayed in S22, the user can learn that the printer 10 is attempting a communication with the print intermediation server 100.
Next, in S24, the CPU 32 attempts a communication with the print intermediation server 100 via the wireless LAN I/F 18, and determines whether or not a communication with the print intermediation server 100 can be executed. Specifically, the CPU 32 sends a confirmation signal (e.g., a packet in accordance with PING), via the wireless LAN I/F 18 (i.e., via the Internet), for confirming whether or not a communication can be executed, with the URL of the print intermediation server 100 stored in advance in the memory 34 as a sending destination. In the case where a response signal is received from the print intermediation server 100 as a response to the confirmation signal before a predetermined period has passed since the sending of the confirmation signal, the CPU 32 determines that a communication with the print intermediation server 100 can be executed (YES in S24), and proceeds to S26. On the other hand, in the case where a response signal is not received from the print intermediation server 100 before the predetermined period has passed since the sending of the confirmation signal, the CPU 32 determines that a communication with the print intermediation server 100 cannot be executed (NO in S24), and proceeds to S32. For example, in the case where the URL of the print intermediation server 100 has changed, the confirmation signal cannot be sent with the URL of the print intermediation server 100 stored in advance in the memory 34 as the sending destination.
In S26, the CPU 32 sends a job list request 280 including the acquired AT and printer ID (see
As illustrated in
On the other hand, in the case where it is determined that the AT and printer ID received from the printer 10 are not being stored (i.e., in the case where the authentication of the AT and printer ID failed), the print intermediation server 100 sends information indicating that the authentication has failed to the printer 10. A state in which authentication fails is, for example, the print intermediation server 100 executing the authentication, in the case where the AT has an expiration period, at a timing when the expiration period of the AT has been exceeded.
Further, in the case where job information associated with the AT and printer ID is not being stored in the print intermediation server 100, the print intermediation server 100 sends information indicating that the job information is not being stored to the printer 10. A state in which the job information is not being stored is, for example, if the user has not submitted image data, or if the user has already deleted image data which had been submitted.
Returning to
In S30, in the case where the response to the job list request 280 is information indicating that job information is not being stored in the print intermediation server 100 (NO in S30), the CPU 32 proceeds to S32. On the other hand, in the case where the response to the job list request 280 is not information indicating that job information is not being stored in the print intermediation server 100, i.e., in the case there is the job list 282 (see
On the other hand, in the determination process, in the state where S32 is executed, the CPU 32 cannot acquire the print data from the print intermediation server 100, and cannot execute the print process. In this case, in S32, the CPU 32 displays a screen indicating why the print process cannot be executed, and ends the determination process. Specifically, in the case of NO in S24, in S32 the CPU 32 causes the display unit 14 to display a screen indicating that a communication between the printer 10 and the print intermediation server 100 cannot be executed (e.g., a screen including the character string “Communication with server failed”). Further, in the case of NO in S28, in S32 the CPU 32 causes the display unit 14 to display a screen indicating that the authentication failed (e.g., a screen including the character string “Authentication of AT or printer ID failed”). Further, in the case of NO in S30, in S32 the CPU 32 causes the display unit 14 to display a screen indicating that the authentication failed (e.g., a screen including the character string “Job acquisition failed”).
Returning to
When receiving the print data request 290 from the printer 10, the print intermediation server 100 executes authentication of the AT and the printer ID included in the print data request 290, as in the case of receiving the job list request 280 described above. Then, in case of determining that the AT and the printer ID are being stored, the print intermediation server 100 executes a conversion process. That is, in accordance with the print setting information 234 included in the first job information 240, and the information indicating data format included in the print data request 290, the print intermediation server 100 generates the print data 292 by converting the image data 232 included in the first job information 240. For example, in the case where the print setting information 234 includes “XPS” as the data format, “A4” as the sheet size, “Not available” as to whether it is capable of duplex printing, and “Color” as the number of colors, the print intermediation server 100 generates the print data 292 for executing a print process of a color image on only one side of an A4 print sheet. Further, in the case where the print data request 290 includes information indicating PDF format, the print intermediation server 100 generates the print data 292 in the PDF format.
Next, the print intermediation server 100 stores the generated print data 292 in a location corresponding to the URL included in the job list 282. Then, the print intermediation server 100 sends to the printer 10 the print data 292 which is being stored in the location corresponding to the URL which is the sending destination of the print data request 290.
The CPU 32 receives the print data 292 from the print intermediation server 100 via the wireless LAN I/F 18. Thus, the CPU 32 can acquire the print data 292 from the print intermediation server 100. Then, the CPU 32 supplies the acquired print data 292 to the print execution unit 20. As a result, the print execution unit 20 prints an image represented by the print data 292 onto a print sheet. Thus, the user of the portable terminal 70 can acquire a printed print sheet.
Moreover, in the example of
For each of the plurality of URLs included in the job list 282, the printer 10 sequentially sends a print data request with the URL as the sending destination. Then, each time of receiving a print data request from the printer 10, the print intermediation server 100 generates print data by converting the image data included in the job information corresponding to the print data request. Thereby, the printer 10 can sequentially acquire each of the plurality of pieces of print data, and sequentially execute a print process of each of the plurality of images represented by the plurality of pieces of print data.
(Effect of Embodiment)
As described above, in the determination process of
Further, in the present embodiment, the printer 10 communicates with the portable terminal 70 by using the NFC I/F 16, and communicates with the print intermediation server 100 by using the wireless LAN I/F 18. According to this configuration, the printer 10 can change the interface to be used depending on the device which is to execute the communication. Further, the printer 10 can communicate with the print intermediation server 100 via the Internet.
Further, in case of the printer 10 executing an NFC communication by using the NFC I/F 16, the user of the portable terminal 70 must bring the portable terminal 70 closer to the printer 10, as described above. In the present embodiment, since the determination processes of S12, S14 can be made comparatively earlier than the determination processes of S24, S28, S30, the portable terminal 70 can acquire the information of S16 or S20 comparatively earlier as a response to the sending of the print instruction and the encrypted data by means of the NFC communication of
Further, in the case of a state where the print process can be executed, as a result of the process of S12, S14 of
(Correspondence Relationship)
The printer 10, the portable terminal 70, and the print intermediation server 100 are examples of “communication device”, “first device” and “second device”, respectively. The print instruction and printer ID are an example of “function execution information”, and the AT and the printer ID are an example of “authentication information”. The process of receiving the print data 292 and the print process of
The process of acquiring the print instruction and printer ID of
(Modification 1) In the embodiment described above, in the registration process of
In the Client Login method, the CPU 82 causes a login screen to be displayed on the display unit of the portable terminal 70 (similar to the login screen of
When receiving the login success notification, the CPU 82 stores the AT included in the login success notification in the memory 84 and sends a registration request similar to the registration request 200 of
When receiving the registration success notification 322 from the print intermediation server 100 via the wireless LAN I/F 78, the CPU 82 stores the printer ID included in the registration success notification 322 in the memory 84, and ends the registration process.
(Modification 2) In the embodiment described above, in the registration process of
(Modification 3) In the above embodiment, the AT generated in the registration process in
(Modification 4) In the above embodiment, “authentication information” includes the AT. However, if the print intermediation server 100 is configured to be capable of executing authentication by using only the printer ID without using the token, “authentication information” may include only the printer ID without including the token. Further, if the print intermediation server 100 is configured to be capable of executing authentication by using only the token without using the printer ID. “authentication information” may include only the token without including the printer ID. Generally speaking, “authentication information” may be any information used to execute authentication in the print intermediation server.
(Modification 5) Instead of executing a wireless communication of the NFC scheme, the printer 10 and the portable terminal 70 may execute a near field wireless communication of another communication scheme (e.g., a wireless communication of the TransferJet scheme, infrared scheme, etc.) to execute a communication of the encrypted data. In this modified embodiment, the other communication scheme is an example of “near field communication scheme”. Further, instead of executing the near field wireless communication, the printer 10 and the portable terminal 70 may execute a wireless communication of the normal Wi-Fi scheme to execute a communication of the encrypted data. Further, instead of executing the wireless communication, the printer 10 and the portable terminal 70 may execute a wired communication to execute a communication of the encrypted data. That is, “first interface” may not be an interface for executing a wireless communication in accordance with a near field communication scheme, but may be an interface for executing a communication in accordance with a normal Wi-Fi scheme or a wired scheme.
(Modification 6) Instead of executing a wireless communication in accordance with the normal Wi-Fi scheme and executing a communication of various pieces of information (e.g. the registration request 200 in
(Modification 7) The printer 10 may execute a wired communication and execute a communication of various pieces of information (e.g. the job list request 280 in
(Modification 8) The print intermediation server 100 may not be one server and may be a plurality of servers which are configured separately. For example, the print intermediation server 100 may have a first server which executes each process illustrated by the registration process in
(Modification 9) “Communication device” may not be the printer 10. For example, “communication device” may be a scanner comprising a scan execution unit for scanning a document, and a scan controller for controlling the scan execution unit. Further, “second device” may not be the print intermediation server. For example, “second device” may be an upload server to which image data scanned by a scanner is uploaded, and comprising a storage unit for storing the uploaded image data. In this modified embodiment, the scanner, the upload server, and the portable terminal 70 may execute the following scan process instead of the print process of
When receiving the scan instruction, the AT and the scan ID from the portable terminal 70, the scanner may execute a determination process similar to the determination process of
(Modification 10) “First device” may not be the portable terminal 70 and may be a desktop PC or another device (e.g. a television).
(Modification 11) In the above embodiment, the CPU 32 executes a program (e.g. the printer application) in the memory 34 to implement each process in
Number | Date | Country | Kind |
---|---|---|---|
2014-009603 | Jan 2014 | JP | national |
This application is a continuation of and claims priority to U.S. application Ser. No. 15/675,993, filed on Aug. 14, 2017, which is a continuation of and claims priority to U.S. patent application Ser. No. 15/172,297, filed on Jun. 3, 2016, which is a continuation of and claims priority to U.S. patent application Ser. No. 14/602,994, filed on Jan. 22, 2015, which claims priority to Japanese Patent Application No. 2014-009603, filed on Jan. 22, 2014. The contents of these applications are hereby incorporated by reference into the present application.
Number | Date | Country | |
---|---|---|---|
Parent | 15675993 | Aug 2017 | US |
Child | 16053281 | US | |
Parent | 15172297 | Jun 2016 | US |
Child | 15675993 | US | |
Parent | 14602994 | Jan 2015 | US |
Child | 15172297 | US |