Printer corresponding to cloud print service, control method and program of printer
The printing device automatically selects the appropriate protocol for cloud print services based on acquired information about printer queues and user authentication settings, enhancing usability and reliability.
Patent Information
- Application Number
- JP2024146685
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2039-01-18
AI Technical Summary
Cloud print services provided by the same vendor can have multiple protocols, requiring printers to understand various settings and select appropriate protocols, which complicates user interface selection and user settings.
A printing device equipped with means to acquire information about printer queues and user authentication settings, allowing it to select the appropriate protocol for acquiring print data from cloud print services automatically.
Enables a highly available printer that acquires print data using the correct protocol without user intervention, simplifying the process and reducing errors.
Smart Images

Figure 2024156026000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing device compatible with a cloud print service, and a control method and program for the printing device. [Background technology]
[0002] 2. Description of the Related Art In recent years, a cloud print service has become known in which a printer is registered in a print service provided by a server on the Internet, and the printer obtains print data output in response to an instruction from a user terminal via the cloud service and prints the print data.
[0003] When using a cloud print service from a user terminal, there are two types of printing modes: one in which a print instruction is given by designating a printer object associated with a physical printer on a one-to-one basis, and the other in which a print instruction is given by designating a printer object associated with a physical printer on a one-to-N basis. The former object is called a real printer object, and the latter object is called a virtual printer object. In addition, a temporary storage area on a cloud service for print data input by designating a real printer object is called a real printer queue. A temporary storage area on a cloud service for print data input by designating a virtual printer object is called a virtual printer queue. The print data stored in the virtual printer queue can be accessed and printed out by any printer associated with a virtual printer object (see Patent Document 1). Such a printing mode using a virtual printer queue is called Anywhere Print.
[0004] The cloud print service may be provided by a vendor different from the printer. For example, Google may provide a cloud print service called Google Cloud Print (registered trademark), and printer vendors may provide printers compatible with Google Cloud Print.
[0005] In order to support the cloud print services of each company, printer vendors are providing the market with printers that support multiple protocols defined by each cloud service. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Patent No. 05843691 Summary of the Invention [Problem to be solved by the invention]
[0007] However, even cloud print services provided by the same vendor may provide multiple protocols depending on the printing format (real printer queue or virtual printer queue), authentication method, usage method, and the like.
[0008] Not only does the printer need to support multiple protocols, but it also needs to select the appropriate protocol from multiple protocols after understanding the settings on the cloud print service side and the user's usage scenario. If a user interface is provided to allow the user who uses the printer to select the protocol, there is an issue that the settings are cumbersome for the user.
[0009] The present invention has been made in consideration of the above problems, and has an object to provide a highly available printer that obtains print data using an appropriate protocol when obtaining print data from a cloud print service. [Means for solving the problem]
[0010] In order to solve the above problems, a printing device according to the present invention comprises: A printing device compatible with a cloud print service, A means for acquiring information about a printer queue associated with a printing device (S1202); A means for acquiring user authentication setting information of the printer (S1203), Based on the acquired printer queue information and the printer user authentication setting information, A means for selecting one of a plurality of job information acquisition means (S1205 to S1214) is provided; The job information acquisition device further includes a means for acquiring a list of job information from a cloud using the selected job acquisition means. Effect of the Invention
[0011] When obtaining print data from a cloud print service, it is possible to provide a highly available printer that obtains the print data using an appropriate protocol. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram showing a system configuration in an embodiment. [Diagram 2] FIG. 2 illustrates a hardware configuration of a printing apparatus. [Diagram 3] FIG. 2 is a diagram illustrating a software configuration. [Figure 4] 5A and 5B are diagrams illustrating a user interface displayed on an operation unit of the printing apparatus. [Diagram 5] FIG. 11 is a diagram showing a sequence for registering a printing device in a print service. [Figure 6] 13A and 13B are diagrams illustrating a user interface of a print service for approving registration. [Figure 7] FIG. 2 illustrates a user interface provided by a print service. [Figure 8] FIG. 11 is a diagram showing a flow when printing from a user terminal. [Figure 9] FIG. 13 illustrates a notification when logging in to the printing device. [Figure 10] FIG. 11 is a diagram showing a flow of acquiring a print job from a real printer queue. [Figure 11] FIG. 11 is a diagram showing a flow of obtaining a print job from a virtual printer queue. [Figure 12] FIG. 13 is a diagram showing a flow at the time of protocol determination. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. EXAMPLES
[0014] FIG. 1 is a configuration diagram showing a print system including a printing device to which the present invention is applied. 101 is a printing device (printer) to which the present invention is applied, and is a printing device equipped with a printing function for realizing cloud printing. 102 is a cloud print service provided on the Internet, and is a Web server. 103 is a user's operation terminal. The printing device 101 is registered in advance in the cloud print service 102 by the owner of the printing device. The user selects an object associated with the printing device 101 registered in the cloud print service 102 from the user terminal 103, and transmits print data to the cloud print service 102. The printing device 101 receives the print data transmitted by the user via the cloud print service 102, and performs printing. Although not shown, the user's terminal can use the cloud print service 102 from multiple user terminals, such as not only the user terminal 103, but also a general-purpose personal computer and a smartphone. The printing device 101 and the user terminal 103 are connected to the cloud print service 102 via the Internet. Although not shown, a plurality of printing apparatuses having a similar configuration to the printing apparatus 101 are connected to a user terminal 103 and a cloud print service 102 via the Internet.
[0015] <Hardware configuration of the printing device> FIG. 2 is a simplified diagram showing the hardware configuration of the printing device 101.
[0016] The CPU 201 is a central processing unit (processor) that controls the overall operation of the multifunction peripheral. The RAM (Random Access Memory) 203 is a volatile memory that is used as a work area and a temporary storage area for expanding various control programs stored in the ROM 202 and the HDD 204.
[0017] The ROM 202 is a non-volatile memory and stores the boot program of the multifunction device, etc. The HDD 204 is a non-volatile hard disk having a larger capacity than the RAM 203. The HDD 204 stores a control program for the multifunction device. The OS (Operating System) and application programs are also stored in the HDD 204.
[0018] When the multifunction peripheral is started up, the CPU 201 executes a boot program stored in the ROM 202. This boot program is for reading out an OS (Operating System) program stored in the HDD 204 and expanding it on the RAM 203. After executing the boot program, the CPU 201 subsequently executes the OS program expanded on the RAM 203 to control the multifunction peripheral. The CPU 201 also stores data used for operation by the control program on the RAM 203 and reads and writes it.
[0019] In the multifunction peripheral, one CPU 201 executes each process shown in the flowcharts described below, but other configurations are also possible. For example, multiple CPUs or microprocessors (MPUs) can cooperate to execute each process shown in the flowcharts described below. Also, some of the processes described below can be executed using hardware circuits such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array).
[0020] The operation unit 205 is a display that can be operated by touch.
[0021] The printer 206 is a printer engine that prints print data received from an external source via a communication unit 207 .
[0022] A communication unit 207 is a network interface for connecting to the Internet or an office LAN (Local Area Network).
[0023] The user terminal 103 and the cloud print service 102 also have the same hardware configuration as the CPU 201 , the ROM 202 , the RAM 203 , and the HDD 204 .
[0024] An IC card reader 208 is a device for reading information used for user authentication from an IC card, and is a unit necessary for implementing IC card authentication.
[0025] <Software configuration> FIG. 3 is a simplified diagram showing the software configuration of the printing device 101, the cloud print service 102, and the user terminal 103.
[0026] <Software Configuration of Printing Device 101> The software configuration of the printing device 101 will be described.
[0027] The local UI 301 of the printing device 101 uses the display of the operation unit 205 to provide a user interface for the user to change settings of the printing device and use functions. An example of the user interface provided by the local UI 301 is shown in FIG. 4. The remote UI 302 has an HTTP (Hypertext Transfer Protocol) server function and provides the user with a user interface configured in HTML (HyperText Markup Language). The user can access the remote UI 302 using a web browser on the user terminal to change settings of the printing device and use functions. The cloud print application 303 is a software module that implements communication protocols and functions to support the cloud print service 102. The printing unit 304 receives a print job from the cloud print service 102 via the cloud print application 303 and controls the printer 206 to execute print processing. The user authentication unit 305 is a software module that authenticates a user who uses the local UI 301 or the remote UI 302, and can restrict the use of each function provided by the printing device 101. Accounts of an administrator or a general user can be registered in the HDD 204 via the user interfaces of the local UI 301 and the remote UI 302. An example of account information stored in the HDD 204 is shown in Table 1 below. The account information that can be registered in the HDD 204 includes a user name, a password, an IC card ID, and a role (administrator / general user). In addition, an account for the cloud print service 102 can be managed in association with an account for the printing device 101.
[0028] [Table 1]
[0029] The printing device 101 has a factory default setting of a user authentication function disabled, and when the printing device is started, the local UI 301 displays a menu screen 401. The user can display a user authentication setting screen 402 via the menu screen 401. In the user authentication setting screen 402, the user can select whether to enable or disable the user authentication function. If the user authentication function is enabled, the user can further select a keyboard login function and an IC card login function. The settings made by the user are stored in the HDD 204 and can be referenced by the user authentication unit 305. If the keyboard login function is selected, the local UI 301 displays a keyboard login screen 403 to authenticate the user who uses the menu screen 401. The keyboard login screen 403 displays a soft keyboard to accept input of a user name and password from the user. The user authentication unit 305 acquires the user name and password acquired from the screen, and compares them with the account information (Table 1) registered in the HDD 204 to perform user authentication. If the authentication is successful, the user who has been successfully authenticated is allowed to log in to the printing device 101. Specifically, the user authentication unit 305 instructs the local UI 301 to close the login screen and transition to the menu screen 401. When the IC card login function is selected, the local UI 301 displays an IC card login screen 404 and authenticates the user who uses the menu screen 401. While the IC card login screen 404 is displayed, it detects an IC card held over the IC card reader 208 and reads the card ID from the IC card. The user authentication unit 305 searches the account information (Table 1) registered in the HDD 204 for an account that matches the card ID acquired from the IC card reader 208. If an account with a matching card ID is present, the user with the matching card ID is allowed to log in to the printing device 101.
[0030] The user authentication unit 305 stores information about the logged-in user in an object called a login context, and transmits the login context to other software modules such as the cloud print application 303. An example of information stored in the login context is shown in Table 2 below. The login context stores the user name and role of the logged-in user, which are managed in Table 1. If the user logs in using an IC card, the card ID is stored in the login context. If the user logs in using a username and password, the card ID is not stored. The account of the cloud print service 102, which is stored in association with the user name in Table 1, is stored in the login context.
[0031] [Table 2]
[0032] The user terminal 103 also has a web browser that transmits an HTML request and displays a screen based on the HTML received in a response. The cloud print service 102 also has a function for registering the printing device 101, a function for converting print data designated for printing from the user terminal 103 into a print job, and a function for transmitting the print job to the selected printing device 101.
[0033] The local UI 301 and the remote UI 302 provide a user interface 405 for the user to register, update, and cancel the registration of the printing apparatus 101 in the cloud print service 102 .
[0034] <Software configuration of Cloud Print Service 102> The following describes the software configuration of the cloud print service 102. The cloud print service 102 has a website that allows an administrator to configure the service. An example of the user interface of the website provided by the cloud print service is shown in FIG.
[0035] The user management 311 has a database for managing the accounts of users who access the cloud print service, and a user interface for registering, editing, and deleting accounts. Table 3 below shows an example of user account information that the user management 311 stores and manages in the database. The database can register user account name, password, IC card ID, and role (administrator / general user) as account information.
[0036] [Table 3]
[0037] The printer management 312 includes a database for managing information on printers registered in the cloud print service and a user interface for registering, editing, and deleting printer information. The authentication and authorization service 313 authenticates a user who logs in to a website provided by the cloud print service 102. It also includes a protocol for authenticating a user or a printer accessing the cloud print service 102 and issuing a user ID token or an access token. The protocol is, for example, OpenID Connect standardized by the OpenID Foundation or OAuth2.0 defined in RFC6749. The print service 314 communicates with the user terminal 103 and the printing device 101. The print service 314 includes a protocol for sending and receiving print jobs and for notifying settings and events related to printing. The print service also includes a user interface for creating real printer objects and virtual printer objects and publishing them on the user terminal 103.
[0038] The real printer queue 315 is also a print job storage area that temporarily stores print jobs sent from the user terminal 103 by specifying a real printer object. The virtual printer queue 316 is a print job storage area that temporarily stores print jobs sent from the user terminal 103 by specifying a virtual printer object. A printer queue is prepared by creating a print object, or is associated with an already prepared one.
[0039] <Software Configuration of User Terminal 103> The following describes the software configuration of the user terminal 103. The user terminal 103 is configured with software such as an operating system 321, an application 322, a web browser 323, and a print service client 324. The print service client 324 is a communication client for using the cloud print service 102.
[0040] The function of the print service client 324 may be provided in each of the application 322 and the web browser 323. Also, the function of the print service client 324 of the operating system 321 may be provided, and the function may be provided to the application 322 and the web browser 323. Also, a print driver (not shown) installed in the user terminal 103 may be provided with the function of the print service client 324.
[0041] <Printing device 101 registration flow> The flow of registering the printing device 101 in the cloud print service 102 will be described with reference to FIG.
[0042] The user logs in to the printing device 101 from the local UI 301, and a cloud print setting screen shown in 405 is displayed. The user issues a registration instruction by pressing a registration button (S501). The cloud print application 303 of the printing device 101 detects this, generates a pair of a public key and a private key, and generates a CSR (Certificate Signing Request). A CSR is a message format of a certificate signing request sent from an applicant to a certificate authority to apply for a public key certificate. The CSR includes information to identify the applicant and the generated public key. The information to identify the applicant included in the CSR includes a common name, organization name, department name, address, and country code. The printing device 101 uses the printer name "printing device 101" as the common name. The organization name, department name, address, and country code use default values stored in the printing device 101 at the time of shipment from the factory.
[0043] The printing device 101 sends a registration request together with the CSR to the print service 314 (S502). The registration request includes information about the printing device 101, such as the printer name, model name, installation location, attached units, and information about printing capabilities such as monochrome / color of the printing device 101. In response to receiving the registration request, the print service 314 generates a registration URL for the printing device 101 and returns this to the printing device 101 (S503). At this point, the printing device 101 has not yet been registered in the cloud print service 102. When the print service 314 receives the printer registration from the printing device 101, it issues a client certificate, which will be described later.
[0044] The information contained in the client certificate that the cloud print service 102 issues to the printing device 101 is shown in the following table.
[0045] [Table 4]
[0046] The version indicates the version of X509, which is the format of the certificate. The serial number is a serial number assigned to a certificate issued by the print service 314. The issuer is the identifier of the print service 314 that issues the certificate. The user identifier is the identifier of the printing device 101 that requests the issuance of the certificate. The start of the validity period indicates the date and time when the certificate begins to be used. The end of the validity period indicates the expiration date when the certificate usage period expires. In the following explanation, this is simply referred to as the expiration date. The public key is the public key included in the CSR by the printing device 101. The signature algorithm is the algorithm for signing the certificate. The signature is a digital signature assigned to the certificate by the print service 314, which is the issuer. The signature is signed with a private key held by the print service 314.
[0047] In the first embodiment, an example is described in which the print service 314 has a certificate issuing function, but the print service 314 may issue a certificate using a third-party certificate issuing service. When the print service 314 uses a third-party certificate issuing service, the issuer identifier and signature are those of the third-party certificate issuing service.
[0048] The printing device 101 displays the received URL on the local UI 301 and prompts the user to access the URL for registering the printing device. A QR code (registered trademark) that encodes the URL may be displayed so that it can be read by a camera such as a smartphone. Also, the printing unit 304 may be instructed to print the URL and QR code, and the URL and QR code may be printed out on paper.
[0049] The user accesses the URL using the web browser of the user terminal 103. An example of the website interface when the user accesses the URL using the web browser 323 of the user terminal 103 is shown in FIG. 6. When the user accesses the URL, the authentication and authorization service 313 requests the user to log in to the website. When the user logs in by entering a login account for the website, a user interface is then displayed that requests approval for the registration of the printing device 101.
[0050] The printing device 101 periodically accesses the print service 314 and checks the approval status of the registration (S504). If the registration is approved in the user interface of FIG. 6, the print service 314 returns to the printing device 101 a client certificate in X509 format issued for the printing device 101 (S505). The print service 314 also issues a client ID defined in OAuth2.0 as a credential that proves that the printing device is a registered legitimate printing device, and returns the client ID to the printing device 101 (S506). The printing device 101 starts a process of checking the approval status of the registration after S503, and repeats the process until the client certificate is successfully acquired, a notification is received from the print service 314 that approval has been cancelled, or a certain period of time has passed. The print service 314 stores the information of the printing device 101, the corresponding client certificate, and the client ID in the printer management 312.
[0051] When the cloud print application 303 sends the client ID to the authentication and authorization service 313 (S507), it can obtain a printer access token that can access the print service 314 (S508). The cloud print application 303 stores the obtained client certificate, client ID, and printer access token in the HDD 204. The cloud print application 303 also stores the registration status 404 of the printing device as "registered" and completes the registration process.
[0052] <Creating and Publishing a Printer Object in the Cloud Print Service 102> The creation and publication of a printer object in the cloud print service 102 will be described.
[0053] 7 is an example of a user interface of a website provided by the print service 314 for managing printer objects. A printer object is an object that can be referenced from the print service client 324 and can be specified as a print destination. A real printer object is a printer object that is associated one-to-one with a registered physical printing device, and a virtual printer object is a printer object that is associated one-to-N with multiple printing devices.
[0054] For example, it has a user interface 701 for managing a list of created printer objects. When the administrator selects to add a real printer object in 701, an add real printer object screen 702 is displayed. In the add real printer object screen 702, a printer to be made public to the user terminal 103 as a printer object can be selected as a printer to be associated with the printer object from among the registered printers. In addition, users and user groups to which the real printer object is to be made public can be selected. The user group "Everybody" indicates that the real printer object can be used by anyone.
[0055] When the administrator selects to add a virtual printer object in 701, a screen 703 for adding a virtual printer object is displayed. In the screen 703 for adding a virtual printer object, the name of the virtual printer object to be made public is set. Also, a comment can be registered as a hint when the user selects a printer object when printing. Also, multiple printers can be selected from registered printers as printers to be associated with the printer object. Also, users and user groups to which usage is permitted are selected as destinations for the real printer object to be made public. In 703 in FIG. 7, it can be seen that three printing devices 101, 107, and 108 are associated with virtual printer 003.
[0056] The printing device associated with the printer object is notified of the type of the printer object (real printer object or virtual printer object) and the name of the printer object at the time of publication. For example, the printing device 101 may display the notified information on the local UI 301 so that a user who wants to use the printing device 101 knows which printer object to select when performing a print operation from a user terminal.
[0057] <Authentication settings for Cloud Print Service 102> Screen 704 in Fig. 7 is an example of a user interface provided by the print service 314 for an administrator to set optional functions for user authentication. When the administrator enables the setting of 705, the authentication and authorization service 313 accepts a user authentication request using a card ID from a registered printing device. When the administrator enables the setting of 706, a user authentication request of only an account name (no password required) is accepted from a registered printing device. When the settings of 705 or 706 are changed, the print service 314 notifies the registered printing device 101 of the setting change.
[0058] <Printing flow from the user terminal 103> 8, a printing flow from the user terminal 103 will be described. The printing device 101 connects to the print service 314 when started up.
[0059] The print service client 324 accepts input of user authentication information for accessing the cloud print service 102 from the user (S802). The user authentication information is a user account name (e.g., alice@cloud.com) and a password managed by the user management 311. The print service client 324 transmits the user authentication information to the authentication and authorization service 313 and receives authorization for accessing the print service 314 (S803). Furthermore, the print service client 324 accesses the print service 314 and obtains a list of printer objects available to the authorized user (S804). The list of printer objects can be referenced from the application 322 and the web browser 323 (S805).
[0060] The user selects a desired printer object from a list of printer objects on the UI of the user terminal 103, and issues an instruction to print a document or image displayed using the application 322, web browser 323, or the like (S806). The application 322 or web browser 323 transmits the document instructed to be printed to the print service client 324 (S807). The print service client 324 converts the document or image data received from the application 322 or web browser 323 into print data in a format that can be processed by the cloud print service 102. Furthermore, data called a print job is generated by adding job attributes such as a user account, user name, and document name to the print data, and the data is sent to the print service 314 (S808).
[0061] The user account is the user account in the cloud print service 102 used to obtain the list of printer objects. The user name is the user name of the user of the user terminal 103, and for example, a personal computer can obtain the logged-in user name from the operating system 321. An example of information included in a print job is shown in Table 5 below.
[0062] [Table 5]
[0063] The print service 314 temporarily stores the print job received from the user terminal 103 in a printer queue. Print data sent from the user terminal 103 specifying a real printer object is stored in a real printer queue 315. Print data sent from the user terminal 103 specifying a virtual printer object is stored in a virtual printer queue 316. The printing device associated with the printer object specified at the time of printing is notified that the job has been stored in the printer queue (S809).
[0064] <How to get a job list from the cloud print service 102> The cloud print service 102 provides a number of protocols for acquiring a list of print jobs from a real printer queue and a virtual printer queue to a printing device. The following describes the protocols and flow for acquiring a list of print jobs provided.
[0065] The cloud print service 102 verifies the printer access token to confirm that the request is a job list acquisition request from a printing device associated with the real printer queue. When the cloud print service 102 communicates with the real printer queue, it does not need to verify a user access token, which will be described later. When a print job is submitted to the real printer queue, the cloud print service 102 immediately notifies the printing device associated with the real printer queue that the print job has been submitted. When the printing device receives the notification, there are cases where the printing device obtains the print job from the cloud print service 102 and prints immediately without receiving a user instruction, and cases where the printing device obtains the print job and prints after receiving a print instruction from the user from the local UI of the printing device.
[0066] In the former case, printing may be performed in an unattended state where no user is present in front of the printing device, so a user identifier is not used to access the real printer queue. In the latter case, where printing is not performed immediately and printing instructions from the user are awaited, multiple print jobs are held in the real printer queue. For convenience, the cloud print service 102 provides a function for filtering a list of jobs to be returned from multiple print jobs held in the real printer queue using a user identifier.
[0067] On the other hand, in a use case using a virtual printer queue, the user selects one of multiple printing devices and issues a print instruction, so security is enhanced by checking the user access token in addition to checking the printer access token. The cloud print service 102 can perform access control by checking the user access token so that only the user who submitted the print job can obtain his / her own print job. The user access token is an access ticket to the print service 314 that is issued when the authentication / authorization service 313 authenticates a user using user authentication information and permits the authenticated user to access the print service 314. The user authentication information for user authentication provided by the authentication / authorization service 313 is a user account and a password, but when a user authentication is requested from a printing device, authentication by card ID or authentication by only user account name is provided depending on the settings. In the present invention, two access tokens are assumed: a user access token indicating that the authentication of the user to the cloud print service 102 has been successful, and a printer access token indicating that the registration of the printing device has been successful.
[0068] By combining the above-mentioned methods, the printing device 101 communicates with the cloud print service 102 using one of the print job acquisition methods, Protocol 1 to Protocol 5, which will be described later. The operation of the printing device 101 and each protocol will be described in detail.
[0069] <Protocol 1: Get a list of all print jobs from the real printer queue> The operation flow and communication protocol for acquiring a list of all print jobs from the real printer queue will be described with reference to the screen flow diagram in FIG. 9 and the sequence diagram in FIG.
[0070] The user selects the cloud print application 303 from the menu screen 910 displayed by the local UI 301 (S1001). The cloud print application 303 sends a printer access token to the print service 314 to request a list of print jobs (S1002). The print service 314 verifies that the printer access token is an access token issued to the printing device 101. Then, it acquires a list of all jobs associated with the printing device 101 from the real printer queue and returns the list to the cloud print application 303 (S1003). The cloud print application 303 displays a screen 911 including the acquired list of print jobs. The user selects a desired print job on the screen 911 and issues a print instruction (S1004). The cloud print application 303 sends the printer access token to the print service 314 to acquire the selected print job and execute printing.
[0071] The cloud print application 303 may immediately acquire a print job and execute printing without receiving an instruction from a user, triggered by receiving a job submission notification from the cloud print service 102. In this case, the cloud print application 303, triggered by receiving a job submission notification, transmits a printer access token to the print service 314, acquires a list of print jobs and the print job, and executes printing.
[0072] <Protocol 2: Obtaining a list of print jobs for a specific user from the real printer queue> The operation flow and communication protocol for acquiring a list of print jobs of a specific user from a real printer queue will be described with reference to the screen flow diagram of FIG. 9 and the sequence diagram of FIG.
[0073] With the login screen 920 displayed, the user performs a login operation to log in to the printing apparatus (S1010). The user selects the cloud print application 303 from the menu screen 921 displayed by the local UI 301 (S1011).
[0074] The cloud print application 303 references the login context (Table 2) and acquires the user identifier of the logged-in user. The user identifier is the login user name of the printing device 101 or an account of the cloud print service 102. The cloud print application 303 transmits the printer access token and the user identifier to the print service 314 to request a list of print jobs associated with the user identifier (S1012).
[0075] The print service 314 verifies that the printer access token belongs to the printing device 101. A list of all jobs associated with the printing device 101 is obtained from the real printer queue. Furthermore, the print service 314 compares the received user identifier with the job attributes (account and user name of the cloud print service 102), generates a list of matching print jobs, and returns the list to the cloud print application 303 (S1013). The cloud print application 303 displays a screen 922 including the list of acquired print jobs. For example, if the logged-in user is "Alice", only the print jobs of "Alice" are displayed on the screen 922.
[0076] <Protocol 3: Obtaining a list of print jobs from a virtual printer queue using a user account and password> The operation flow and communication protocol for acquiring a list of print jobs from a virtual printer queue using a user account and password will be described with reference to the screen flow diagram of FIG. 9 and the sequence diagram of FIG.
[0077] The user selects the cloud print application 303 from the menu (930) displayed on the local UI 301 (S1101). The cloud print application 303 displays a screen 931 for inputting an account and password for accessing the cloud print service 102. The screen 931 may be configured with a WebView. When the screen 931 is configured with a WebView, a URL provided by the authentication and authorization service 313 is accessed, and HTML for inputting a user account and password is acquired and displayed on the screen. When the user account and password are input (S1102), the cloud print application 303 transmits the user account and password to the authentication and authorization service 313 (S1103). The authentication and authorization service 313 performs user authentication. If the user authentication is successful, a user access token and a refresh token are issued and returned to the cloud print application 303 (S1104). The refresh token is a token for reacquiring an access token, and the expiration date of the refresh token is usually set longer than that of the access token. When the cloud print application 303 succeeds in acquiring the user access token, it closes the screen 931. The cloud print application 303 sends the printer access token and the user access token to the print service 314 (S1105) and requests a list of print jobs. The print service 314 verifies that the printer access token belongs to the printing device 101. It also verifies the user access token and acquires a user account associated with the user access token. The user account may be included in the user access token, or the user account may be acquired from the authentication and authorization service 313 using the access token. The print service 314 accesses the virtual printer queue associated with the printing device 101 and further acquires a list of print jobs associated with the user account. The print service 314 returns the acquired list of print jobs to the cloud print application 303 (S1106).The cloud print application 303 displays a screen including a list of the acquired print jobs on the local UI, and displays a screen 932 that allows the user to select a print job that the user wants to print out.
[0078] In protocol 3, the screen flow when the user authentication function of the printing device is enabled is shown in screen flow 904. After the user performs a login operation on login screen 940, the user selects cloud print application 303 from menu screen 941. The cloud print application 303 may display an input screen 942 with an option to memorize the user account and password. If the user selects to memorize, the user account and password are memorized in association with the user information currently logged in to the printing device. After memorization, since there is no need to display the user account and password input screen 942, the user can use cloud print in the operation flow of screen flow 902. In addition, by memorizing the access token and refresh token acquired in S1104 in association with the user information currently logged in to the printing device, the display of the user account and password input screen 942 may be skipped while the token is valid.
[0079] <Protocol 4: Obtaining a list of print jobs from the virtual printer queue using the card ID> The operation flow and communication protocol for obtaining a list of print jobs from a virtual printer queue using a card ID will be described with reference to the screen flow diagram in Fig. 9 and the sequence diagram in Fig. 11. This protocol is available when the setting 705 "Enable IC card authentication from registered printing devices" is enabled.
[0080] With the login screen 920 displayed, the user logs in to the printing device using an IC card (S1110). The user selects the cloud print application 303 from the menu screen 921 displayed by the local UI 301 (S1111). When the cloud print application 303 detects that the cloud print application 303 has been selected from the menu on the local UI 301, it references the login context (Table 2) and obtains the card ID of the IC card used for the login. The cloud print application 303 transmits the card ID to the authentication and authorization service 313 (S1112). In addition, in order to prove that the data is transmitted from a registered printing device, the cloud print application 303 transmits a digital signature and a printer access token together with the card ID. The digital signature can be generated using a private key generated when the printer is registered. The digital signature may be added only to the card ID to be transmitted, or may be added to the entire transmitted data. The authentication and authorization service 313 confirms that the received printer access token and digital signature are those of a registered printing device. Furthermore, the authentication and authorization service 313 performs user authentication using the received card ID. If the user authentication is successful, the cloud print application 303 returns a user access token and a refresh token (S1113). If the cloud print application 303 successfully acquires the user access token, the cloud print application 303 transmits the printer access token and the user access token to the print service 314 and requests a list of print jobs (S1114). The print service 314 verifies that the printer access token belongs to the printing device 101. It also verifies the user access token and acquires a user account associated with the user access token. The print service 314 accesses a virtual printer queue associated with the printing device 101 and acquires a list of print jobs associated with the user account. The print service 314 returns the acquired list of print jobs to the cloud print application 303 (S1115). The cloud print application 303 displays the acquired list of print jobs on the local UI and displays a screen 922 that allows the user to select a print job to be printed out.
[0081] Note that printing using a virtual printer queue requires the user to perform user authentication with the cloud print service 102, which is a hassle for the user. However, by using protocol 4, the user can simply perform IC card authentication with the printing device 101 and also perform authentication with the cloud print service 102, making it more convenient than protocols 3 and 5.
[0082] <Protocol 5: Obtaining a list of print jobs from a virtual printer queue using a user account> The operation flow and communication protocol for obtaining a list of print jobs from a virtual printer queue using a user account will be described with reference to the screen flow diagram in Fig. 9 and the sequence diagram in Fig. 11. This protocol is available when the setting 706 "Enable authentication of account names only from registered printing devices" is enabled. Note that, as mentioned above, the screen 704 is only an example, and is not limited to the form of the setting 706.
[0083] With the login screen 920 displayed, the user performs a login operation to log in to the printing apparatus (S1120). The user selects the cloud print application 303 from the menu screen 921 displayed by the local UI 301 (S1121).
[0084] When the cloud print application 303 detects that the cloud print application 303 has been selected from the menu screen 921, the cloud print application 303 references the login context (Table 2) and obtains the user account of the cloud print service 102. The cloud print application 303 transmits the user account to the authentication and authorization service 313 (S1122).
[0085] In addition, in order to prove that the transmission is from a registered printing device, a digital signature and a printer access token are also sent together with the user account. The digital signature may be added only to the user account that sends the data, or the digital signature may be added to the entire transmission data. The authentication and authorization service 313 confirms that the received printer access token and digital signature are those of a registered printing device. Furthermore, the authentication and authorization service 313 performs user authentication using the received user account. If the user authentication is successful, the user access token and refresh token are returned (S1123). If the cloud print application 303 successfully acquires the user access token, the cloud print application 303 transmits the printer access token and the user access token to the print service 314 and requests a list of print jobs (S1124). The print service 314 verifies that the printer access token is that of the printing device 101. Furthermore, the print service 314 verifies the user access token and acquires the user account associated with the user access token. The print service 314 accesses the virtual printer queue associated with the printing device 101, and further acquires a list of print jobs associated with the user account. The print service 314 returns the list of acquired print jobs to the cloud print application 303 (S1125). The cloud print application 303 displays the list of acquired print jobs on the local UI, and displays a screen 922 that allows the user to select a print job to be printed out.
[0086] <Protocol selection flow> As explained above, any of the above protocols 1 to 5 can be used, taking into consideration the combination of the printer queue type (real printer queue / virtual printer queue), the cloud print service settings, and whether the user authentication function of the printing device is enabled or disabled.
[0087] However, it is troublesome for the user to take the above combinations into consideration and set one of Protocol 1 to Protocol 5. Furthermore, if the user makes a mistake in the setting, there is a risk that the print job will not be acquired correctly.
[0088] Therefore, a printing device embodying the present invention acquires the necessary setting information without bothering the user, and selects an appropriate protocol from Protocol 1 to Protocol 5. The flow of protocol selection will be described with reference to the flowchart in FIG.
[0089] The flow for selecting a protocol is executed by the cloud print application 303 executed by the CPU 201 .
[0090] In order to select a protocol, the cloud print application 303 transmits a printer access token to the cloud print service 102 and acquires the type of printer queue (real printer queue / virtual printer queue) associated with the printing device 101 (S1201). Furthermore, the cloud print application 303 acquires user authentication settings (705 and 706) of the cloud print service from the cloud print service 102 (S1202). Furthermore, the cloud print application 303 acquires user authentication settings of the printing device itself from the user authentication unit 305 (S1203).
[0091] The cloud print application 303 temporarily stores the acquired information in the RAM 203 or the HDD 204 and refers to it when selecting a protocol. Table 6 shows an example of temporarily stored information that the cloud print application 303 uses to determine the protocol.
[0092] [Table 6]
[0093] The cloud print application 303 starts a determination to select one of protocols 1 to 5 based on the acquired information (S1204). The cloud print application 303 determines whether the type of the printer queue associated with the printing device 101 is a real printer queue or a virtual printer queue (S1205).
[0094] If it is associated with a real printer queue, then it is determined whether the user authentication function of the printing device is enabled or disabled (S1206). If the user authentication function of the printing device is disabled, the user currently using the printing device cannot be identified, so protocol 1 is selected (S1207). If the user authentication function of the printing device is enabled, the login context can be referenced to identify the user currently using the printing device, so protocol 2 is selected (S1208).
[0095] If it is associated with a virtual printer queue, then it is determined whether the user authentication function of the printing device is enabled or disabled (S1209). If the user authentication function of the printing device is disabled, the user currently using the printing device cannot be identified. However, in order to identify the user's jobs stored in the virtual printer queue, a user interface is displayed to prompt the user to enter a user account and password. For this reason, protocol 3 is selected (S1210).
[0096] If the user authentication function of the printing device is enabled, then it is determined whether the IC card authentication function is enabled in both the printing device 101 and the cloud print service 102 (S1211). The setting on the screen 402 is checked to determine whether the IC card authentication function of the printing device 101 is enabled, and the setting on the screen 706 is checked to determine whether the IC card authentication function of the cloud print service 102 is enabled. If both have the IC card authentication function enabled, protocol 4 is selected (S1212). If the IC card authentication function is disabled in both or either of the printing device 101 and the cloud print service 102, it is determined whether the function of the cloud print service 102 to authenticate based on only the user account name is enabled (S1213). If the function of authenticating based on only the user account name is enabled, protocol 5 is selected (S1214). If the function of authenticating based on only the user account name is disabled, protocol 3 is selected (S1210).
[0097] The protocol is determined each time the cloud print application 303 is selected from the menu screen displayed by the local UI 301. Alternatively, it may be performed only once when the printing device is started, and the determination result may be temporarily stored in the RAM 203 or HDD 204 and referenced. Also, upon receiving a notification that the settings have been changed (S1215), the information shown in Table 6 may be updated with the new settings and the protocol determination may be performed again. Also, the protocol determination process may be performed upon receiving a notification from the print service 314 that a job has been stored in the printer queue.
[0098] <Behavior when changing a printer object> For example, a case may be considered in which an administrator changes the printer object to which the printing device 101 belongs from a real printer object to a virtual printer object using the UI of the print service 314 shown in Fig. 7. In this case, the print service 314 notifies the printing device 101 of a change in the type of the printer queue. The cloud print application 303 detects and recognizes the change in the type of the printer queue (S1215), updates the temporarily stored information (Table 6) with the new information, and performs protocol determination again. There may also be a case in which a virtual printer object is changed to a real printer object, but there is no difference in the execution of the process of S1215.
[0099] <When it belongs to both a real printer object and a virtual printer object> Also, a case can be considered in which an administrator associates a printer object to which the printing device 101 belongs with both a real printer object and a virtual printer object through the UI of the print service 314 shown in Fig. 7. In this case, either protocol 1 or protocol 2, which is a method for acquiring a job from a real printer queue, and either protocol 3 to protocol 5, which is a method for acquiring a job from a virtual printer queue, may be selected to acquire a list of jobs from both the real printer queue and the virtual printer queue. Furthermore, the printing device 101 can know in which real printer queue or virtual printer queue the print job is stored by receiving a notification from the print service 314 that a job has been stored in the printer queue. For this reason, the printing device 101 may access only the one in which the print job is stored.
[0100] As described above, the printing device of the present invention acquires the type of cloud printer queue, the cloud user authentication settings, and the authentication settings of the printing device, and determines the appropriate job acquisition method and acquisition protocol. This makes it possible to acquire print data using an appropriate protocol without requiring the user to select a protocol for acquiring print data from the cloud print service. This makes it possible to prevent the problem of being unable to acquire print data from the cloud print service if the user makes a mistake in the settings.
[0101] Other Examples In the first embodiment, a determination method based on three pieces of information, namely, printer queue information, authentication settings of the cloud print service 102, and authentication settings of the printing device 101, has been described. However, the method is not limited to these three pieces of information. For example, the protocol may be determined based only on the printer queue information and authentication settings of the printing device 101. In this case, protocols 3 to 5 may be determined according to the settings of protocols 3 to 5 that have been set in advance. Also, more than three pieces of information may be acquired.
[0102] The present invention can also be realized by executing the following process: That is, software (programs) that realize the functions of the above-described embodiments are supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads and executes the programs. [Explanation of symbols]
[0103] 101 Printing device 102 Print Service 103 User terminal 301 Local UI of the printing device 101 302 Remote UI of the printing device 101 303 Cloud Print Application for Printing Device 101 304 Printing unit of the printing device 101 305 User authentication unit of the printing device 101
Claims
1. A printing device having a printing function that realizes cloud printing by performing a process of registering a printing device with a print service connected via the Internet and a process of acquiring a print job from a printer queue provided in the print service, and an authentication function that restricts use of functions by authenticating a user, an acquisition means for acquiring information on a type of printer queue associated with the registered printing device from the print service, and acquiring information on whether the authentication function is to be enabled or disabled from the authentication function of the printing device; a determination unit that determines one protocol from among a plurality of protocols to be used for acquiring and printing the print job based on at least two pieces of information acquired by the acquisition unit, a printing device which performs a process of acquiring and printing the print job using the protocol determined by the determination means;
2. The acquiring means further acquires information regarding authentication settings for the print service when acquiring the print job. The printing device according to claim 1, characterized in that the determination means determines one protocol from among a plurality of protocols used to obtain the print job based on information regarding authentication settings for the print service when obtaining the print job in addition to the two pieces of information.
3. The acquiring means further acquires information for recognizing that a type of a printer queue associated with the printing device has been changed; The printing device according to claim 1 or 2, characterized in that the determination means determines one protocol from among a plurality of protocols to be used to acquire the print job again in response to obtaining information for recognizing that the type of printer queue associated with the printing device has been changed.
4. A printing device as described in any one of claims 1 to 3, characterized in that the type of printer queue is information indicating one of two printer queues: a real printer queue that is used by associating one printer object of the print service with one printing device, and a virtual printer queue that is used by associating one printer object of the print service with one printing device.
5. The printing device according to claim 4, characterized in that one of the protocols used by the printing function is a protocol for obtaining a list of all print jobs stored in the real printer queue by sending a printer access token for authenticating the printing device to the print service, and executing a process of obtaining and printing a print job selected from the list of all print jobs.
6. The printing device according to claim 4 or 5, characterized in that one of the protocols used by the printing function is a protocol for obtaining a list of print jobs associated with the user from among all print jobs stored in the real printer queue by sending a printer access token for authenticating the printing device and an identifier for identifying a user authenticated by the authentication function to the print service, and executing a process of obtaining and printing a print job selected from the list of print jobs associated with the user.
7. A printing device as described in any one of claims 4 to 6, characterized in that one of the protocols used by the printing function is a protocol for obtaining a list of print jobs associated with the user from all print jobs stored in the virtual printer queue by sending to the print service a printer access token for authenticating the printing device and a user access token issued upon inputting and authenticating user authentication information to authenticate to the print service, and obtaining and printing a print job selected from the list of print jobs associated with the user.
8. A printing device as described in any one of claims 4 to 7, characterized in that one of the protocols used by the printing function is a protocol for obtaining a list of print jobs associated with the user from all print jobs stored in the virtual printer queue by sending a printer access token for authenticating the printing device and a card ID of an IC card used to use the authentication function to the print service, and executing a process of obtaining and printing a print job selected from the list of print jobs associated with the user.
9. A printing device as described in any one of claims 4 to 8, characterized in that one of the protocols used by the printing function is a protocol for obtaining a list of print jobs associated with the user from all print jobs stored in the virtual printer queue by sending a printer access token for authenticating the printing device and an identifier for identifying a user authenticated by the authentication function to the print service, and executing a process of obtaining and printing a print job selected from the list of print jobs associated with the user.
10. A method for controlling a printing device having a printing function that realizes cloud printing by performing a process of registering a printing device with a print service connected via the Internet and a process of acquiring a print job from a printer queue provided in the print service, and an authentication function that restricts use of functions by authenticating a user, an acquisition step of acquiring information on a type of printer queue associated with the registered printing device from the print service, and acquiring information on whether the authentication function is to be enabled or disabled from the authentication function of the printing device; a determining step of determining one protocol from among a plurality of protocols to be used for acquiring and printing the print job based on at least two pieces of information acquired by the acquiring step, a step of acquiring and printing the print job using the protocol determined in the determining step;
11. A program executed on a printing device having a printing function that realizes cloud printing by performing a process of registering a printing device with a print service connected via the Internet and a process of acquiring a print job from a printer queue provided in the print service, and an authentication function that restricts use of functions by authenticating a user, an acquisition step of acquiring information on a type of printer queue associated with the registered printing device from the print service, and acquiring information on whether the authentication function is to be enabled or disabled from the authentication function of the printing device; a determining step of determining one protocol from among a plurality of protocols to be used for acquiring and printing the print job based on at least two pieces of information acquired by the acquiring step, a step of acquiring the print job using the protocol determined in the determining step, and printing the print job using the protocol determined in the determining step;
Citation Information
Patent Citations
Information processing device, printing system, control method of information processing device and computer program
JP2013238924A
Printing system, image forming apparatus, information processing apparatus, print service system, and program
JP2015118533A
Output system, output method, and program
JP2015141570A
Printing system, printer and computer program
JP2017182123A
JP05843691B
