Information processing program
The information processing program acts as a virtual printer in the OS to manage both printing and status monitoring, resolving the issue of simultaneous access limitations in driverless OS environments by mediating communication with the printing device.
Patent Information
- Application Number
- JP2023055831
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-11
AI Technical Summary
In environments using driverless OS printing functions, only a single application can access the backend for communication with the printing device, leading to potential restrictions where printing and status monitoring cannot be performed simultaneously, placing a heavy burden on the printing devices.
An information processing program that registers as a virtual printing device in OS standard printing software, enabling it to perform capability information output, print data transmission, inquiry signal output, and status information acquisition, thereby mediating between the OS and the printing device for stable printing and status monitoring.
This program allows for stable simultaneous execution of printing processing and status monitoring without one process limiting the other, ensuring efficient communication with the printing device.
Smart Images

Figure 2024143254000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing program executed on an information processing device capable of communicating with a printing device. [Background technology]
[0002] In the past, operating systems (OS) with so-called driverless printing functions that allow printing according to a specific printing standard without using a printer driver provided by a printer vendor are becoming more common. In this case, printing can be performed without installing a printer driver.
[0003] As an example of utilizing such driverless OS printing functions and supporting printers that are not driverless or extending the functions of normal driverless printing, a virtual printer is created within an information processing device that receives print jobs from the OS and sends the received print jobs to a printer, as described in Patent Document 1.
[0004] Also, a device called a status monitor is known in the past. This is a device that informs the user of the status of the printer and the print queue and the consumption status of consumables. Conventionally, this status monitor has been provided as an independent module separate from the printer driver and the virtual printer. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2020-201802 A Summary of the Invention [Problem to be solved by the invention]
[0006] In an environment using a driverless OS printing function, depending on the type of OS and the connection form between the information processing device and the printer, there are cases where only a single application can obtain access rights to the backend for communicating with the printing device. Even if access rights are obtained, there is a risk that one of the communications with the printing device for executing printing and the communications with the printing device for status monitoring may restrict the other. The printing device also has to process the communications for executing printing and the communications for status monitoring in parallel, which places a heavy burden on the printing device.
[0007] An object of the present invention is to provide an information processing program that can stably achieve both printing processing and status monitoring in an environment that uses a driverless OS printing function. [Means for solving the problem]
[0008] In order to achieve the above-mentioned object, the present invention provides an information processing program that can be executed by a calculation unit of an information processing device and is compatible with a printing device capable of communicating with the information processing device, wherein the information processing device is equipped with an operating system having OS standard printing software, and the information processing program can be registered as a virtual printing device in the OS standard printing software, and when registered as the virtual printing device in the OS standard printing software, the information processing program causes the calculation unit of the information processing device to execute a print data transmission process that acquires first print data from the OS standard printing software and transmits second print data based on the first print data to the printing device, an inquiry signal output process that outputs an inquiry signal for the status of the printing device to the printing device, and a status information acquisition process that acquires status information from the printing device in response to the output of the inquiry signal in the inquiry signal output process.
[0009] The information processing program of the present invention is executable by the calculation unit of the information processing device and is compatible with a printing device capable of communicating with the information processing device. The information processing device is equipped with an operating system having OS standard printing software, and the information processing program can be registered as a virtual printing device in the OS standard printing software. When the information processing program is registered as a virtual printing device in the OS standard printing software, it causes the calculation unit of the information processing device to execute a capability information output process, a print data transmission process, an inquiry signal output process, and a status information acquisition process. In the capability information output process, first capability information representing the capability of the printing device is acquired, and second capability information based on the acquired first capability information is output to the OS standard printing software. In the print data transmission process, first print data is acquired from the OS standard printing software corresponding to the second capability information output in the capability information output process, and second print data based on the first print data is transmitted to the printing device. In the inquiry signal output process, an inquiry signal for the status of the printing device is output to the printing device. In the status information acquisition process, status information is acquired from the printing device according to the output of the inquiry signal in the inquiry signal output process. According to the present invention, a virtual printing device registered in the OS standard printing software inquires about the status of the printing device and obtains status information. Because the virtual printing device mediates printing processing and status monitoring processing between the OS standard printing software and the printing device, there is no risk that one of communication with the printing device for executing printing and communication with the printing device for status monitoring will limit the other. According to the present invention, it is possible to stably achieve both processing for printing and status monitoring. Effect of the Invention
[0010] According to the present invention, in an environment that uses a driverless OS printing function, it is possible to stably achieve both printing processing and status monitoring. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a diagram illustrating an example of an overall configuration of a printing system according to an embodiment. [Diagram 2] 11 is a flowchart illustrating an example of a processing procedure related to a status monitor executed by a printer application of a first client PC or a printer application of a second client PC. [Diagram 3] 10 is a flowchart illustrating an example of a control procedure for a process for adding or deleting a printer. [Figure 4] 11 is a flowchart showing an example of a control procedure for processing at each specified time and processing in response to a data collection command from the management software. [Diagram 5] 11 is a flowchart illustrating an example of a control procedure for processing a status collection command from management software. [Figure 6] 11 is a flowchart illustrating an example of a control procedure for processing a Pause / Resume button notification from a management PC. [Figure 7] 13 is a flowchart illustrating an example of a control procedure for processing a cleaning button in a management PC. [Figure 8] 11 is an explanatory diagram showing an example of a method for tallying up status information by a management and tallying unit of a management PC. FIG. [Figure 9] FIG. 13 is a diagram illustrating an example of a management software screen. [Figure 10] FIG. 11 is an explanatory diagram illustrating an example of the exclusive right of use for a backend when a printer application is not included. [Figure 11] FIG. 11 is an explanatory diagram illustrating an example of the exclusive right of use for a backend when a printer application is included according to an embodiment. [Figure 12] 10 is a flowchart illustrating an example of a process for obtaining a right of use by a printer application. [Figure 13] 11 is a flowchart illustrating an example of a processing procedure related to a status monitor by management software of a management PC. [Figure 14] FIG. 2 is a block diagram illustrating an example of a hardware configuration of a client PC and a printer. [Figure 15] FIG. 2 is a block diagram illustrating an example of a hardware configuration of a management PC. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings.
[0013] <Overall configuration of the printing system> FIG. 1 shows an example of the overall configuration of a printing system 1 according to an embodiment. As shown in FIG. 1, the printing system 1 includes a plurality of client PCs 100A and 100B, a plurality of printers 200A to 200D, and an administration PC 300. The first client PC 100A is a terminal device used by a user A, and is communicatively connected to the first printer 200A and the second printer 200B via a USB (Universal Serial Bus) cable. The second client PC 100B is a terminal device used by a user B, and is communicatively connected to the third printer 200C via a USB cable. The administration PC 300 is a terminal device used by an administrator C of the printing system 1, and is communicatively connected to the first client PC 100A and the second client PC 100B via a network such as the Internet, a wired LAN, or a wireless LAN. The administration PC 300 is also communicatively connected to a fourth printer 200D via a network such as the Internet, a wired LAN, or a wireless LAN.
[0014] Note that the printing system 1 is an example of an information processing system, the first client PC 100A and the second client PC 100B are examples of an information processing device and a first information processing device, the printer 200 is an example of a printing device, and the management PC 300 is an example of an external device and a second information processing device.
[0015] The first client PC 100A transmits print data to the first printer 200A and the second printer 200B to execute printing. The first client PC 100A is, for example, a desktop PC, a notebook PC, a tablet computer, or the like, but may also be a mobile terminal such as a smartphone. Although details will be described later, the first client PC 100A has a processor 110 and a storage device 115 that stores various information processing programs (see FIG. 14 described later). The processor 110 executes the various information processing programs, so that the first client PC 100A has the functional configuration shown in FIG. 1. The processor 110 is an example of a calculation unit.
[0016] The first client PC 100A is equipped with an OS (operating system) having a CUPS (Common Unix Printing System) 160A. The first client PC 100A has an editing application 102A, a CUPS 160A, a printer application 170A, and a browser 104A. The editing application 102A outputs a print job to the CUPS 160A. The CUPS 160A is a modularized printing system for the OS that is installed as standard in the OS and is capable of performing driverless printing without using a driver provided by a printer vendor. The CUPS 160A is an example of OS standard printing software, and the printer application 170A is an example of an information processing program.
[0017] The printer application 170A can be registered in the CUPS 160A as a virtual printer corresponding to the first printer 200A and the second printer 200B connected among the multiple printers 200A to 200D. The CUPS 160A handles the printer application 170A as a virtual printer and executes various processes related to printing. The various processes include, for example, a capability information acquisition process and a print data transmission process. In response to the capability information acquisition process of the CUPS 160A, the printer application 170A acquires attributes that indicate the capabilities of the printers 200A and 200B, converts the acquired attributes according to whether the CUPS 160A can handle them, whether there are functional restrictions, and the like, and outputs the converted attributes to the CUPS 160A. In response to the print data transmission process of the CUPS 160A, the printer application 170A acquires print data from the CUPS 160A. The print data corresponds to the attributes output in the capability information acquisition process of the CUPS 160A. Printer application 170A converts the acquired print data according to the attributes, function restrictions, etc. of printers 200A and 200B. Then, the converted print data is sent to printers 200A and 200B. Note that the attributes before conversion are an example of first capability information, the attributes after conversion are an example of second capability information, the print data before conversion is an example of first print data, and the print data after conversion is an example of second print data.
[0018] The printer application 170A also performs processes such as inquiring about the status of the first printer 200A and the second printer 200B, acquiring status information from the first printer 200A and the second printer 200B, and transmitting the status information to the management PC 300. Details of this process will be described later.
[0019] The browser 104A acquires various information from the HTTP (Hypertext Transfer Protocol) server 303 of the management PC 300, and provides the acquired information to the user A. The various information includes status information of the multiple printers 200A to 200D that the printing system 1 has.
[0020] The second client PC 100B transmits print data to the third printer 200C to execute printing. The second client PC 100B is, for example, a desktop PC, a notebook PC, a tablet computer, or the like, but may also be a mobile terminal such as a smartphone. The second client PC 100B, like the first client PC 100A, has a processor 110 and a storage device 115 that stores various information processing programs (see FIG. 14 described later). The processor 110 executes the various information processing programs, so that the second client PC 100B has the functional configuration shown in FIG. 1.
[0021] The second client PC 100B is equipped with an OS having a CUPS 160B. The second client PC 100B has an editing application 102B, a CUPS 160B, a printer application 170B, and a browser 104B. The CUPS 160B is also an example of OS standard printing software, and the printer application 170B is also an example of an information processing program. These functions are similar to those of the first client PC 100A, so a description thereof will be omitted.
[0022] The management PC 300 is, for example, a desktop PC, a notebook PC, a tablet computer, etc. Although details will be described later, the management PC 300 has a processor 310 and a storage device 315 that stores various information processing programs (see FIG. 15 described later). The processor 310 executes the various information processing programs, so that the management PC 300 has the functional configuration shown in FIG. 1. The processor 310 is an example of a calculation unit.
[0023] The management PC 300 includes a management software 301 and a browser 302. The management software 301 is a program that manages the status information of each of the printers 200A to 200D of the printing system 1. The management software 301 includes an HTTP server 303 and a management and tallying unit 304. The management and tallying unit 304 acquires and tally the status information of the first printer 200A and the second printer 200B from the printer application 170A of the first client PC 100A. The management and tallying unit 304 acquires and tally the status information of the third printer 200C from the printer application 170B of the second client PC 100B. The management and tallying unit 304 acquires and tally the status information from the fourth printer 200D. The management and tallying unit 304 outputs the tallying status information to the HTTP server 303. The HTTP server 303 is server software that runs on the management software 301. The HTTP server 303 acquires the status information from the management and tabulation unit 304 and provides it to the administrator C via the browser 302, and also provides it to the user A and the user B via the browsers 104A and 104B. The management software 301 is an example of an information processing program.
[0024] In this embodiment, when there is no distinction between the first client PC 100A and the second client PC 100B, they are simply referred to as "client PC 100". When there is no distinction between CUPS 160A and CUPS 160B, they are simply referred to as "CUPS 160". When there is no distinction between the printer application 170A and the printer application 170B, they are simply referred to as "printer application 170". When there is no distinction between the first printer 200A, the second printer 200B, the third printer 200C, and the fourth printer 200D, they are simply referred to as "printer 200".
[0025] Also, the system configuration of the printing system 1 described above is an example, and may be other than the above. For example, the number of client PCs 100 is not limited to the above two, but may be three or more, and may be one instead of multiple. The number of management PCs 300 is not limited to the above one, but may be multiple. The number of printers 200 included in the printing system 1 is not limited to the above four, but may be five or more, and may be one instead of multiple. One or multiple printers 200 may be connected to the printer application 170, or may be connected to the management PC 300 via a network without going through the client PC 100. The connection between the client PC 100 and the printer 200 is not limited to the above USB, and may be a network connection via the Internet, a wired LAN, a wireless LAN, or the like, for example.
[0026] <Processing related to the status monitor by the printer application> An example of a processing procedure related to the status monitor executed by the printer application 170 will be described with reference to the flowcharts of Figures 2 to 7. The printer application 170 executes the following flowchart when registered in the CUPS 160 as a virtual printer.
[0027] As shown in Fig. 2, in step S5, printer application 170 creates a USTATUS monitoring thread. The USTATUS monitoring thread is a thread for acquiring status information of each printer by USTATUS. USTATUS is a command that requests the transmission of status information when the status is changed in a monitored event. In the USTATUS monitoring thread created in step S5, steps S10 to S25 described below are executed.
[0028] In step S10, the printer application 170 transmits USTATUS DEVICE ON and INFO STATUS of PJL to each of the connected printers 200. PJL is a job management language of Hewlett Packard. USTATUS DEVICE ON is a command that turns on the function of transmitting status information by USTATUS, and INFO STATUS is a command that requests the transmission of status information at the time of transmitting the command. USTATUS DEVICE ON and INFO STATUS are examples of an inquiry signal, and step S10 is an example of an inquiry signal output process.
[0029] In step S15, the printer application 170 waits for, for example, one second. Note that the wait time may be a time other than one second.
[0030] In step S20, the printer application 170 acquires status information by USTATUS and status information by INFO STATUS from each of the connected printers 200. The status information by USTATUS is status information that can be acquired when the status of the printer 200 is changed, and the status information by INFO STATUS is status information at the time the command is sent. The status information by USTATUS is an example of status change data, and step S20 is an example of status information acquisition processing.
[0031] In step S25, printer application 170 updates the status information stored in an appropriate storage area, such as data storage area 132 of non-volatile storage device 130 of storage device 115 (see FIG. 14 described later), to the status information acquired in step S20. Then, the process returns to step S15.
[0032] Printer application 170 repeats steps S15 to S25, and executes steps S20 and S25 at intervals of, for example, one second. One second is an example of a predetermined period.
[0033] Printer application 170 executes the processes from step S30 onwards in parallel with repeatedly executing steps S15 to S25. In step S30, printer application 170 waits until an event occurs. The event corresponds to each of steps S100 to S800 described later.
[0034] In step S35, printer application 170 determines the type of event. If an event occurs that does not correspond to any of steps S100 to S800 described later (step S35: No), printer application 170 proceeds to the next step S36 and executes processing corresponding to the other event. Then, printer application 170 returns to step S30. On the other hand, if any of the events corresponding to steps S100 to S800 described later occurs (step S35: Yes), printer application 170 executes the corresponding event processing.
[0035] If the generated event is the addition or removal of the printer 200 to the printing system 1, the printer application 170 executes processing for the addition or removal of the printer in step S100. An example of the detailed contents of step S100 is shown in Fig. 3. This event occurs when the printer application 170 detects that a new printer has been connected by a protocol such as mDNS or USB PnP information, or when a printer is added by a user operation.
[0036] 3, in step S110, printer application 170 notifies CUPS 160 of printer 200E, which has been added using the mDNS / SD (multicast Domain Name System / Service Discovery) protocol. CUPS 160 then registers in itself a virtual printer corresponding to printer 200E created by printer application 170. Data required for this registration is provided by mDNS / SD. In other words, the connection destination of CUPS 160 is printer application 170, not printer 200E. Each virtual printer is identified by a URI.
[0037] In step S120, a print queue is created in the printer application 170. This print queue connects the virtual printer specified by the URI and the real printer.
[0038] In step S130, the printer application 170 prepares to notify the management software 301 of the management PC 300 of the printer 200 detected using mDNS in step S110 above. When there is an inquiry from the management software 301 using mDNS / SD, information reflecting the added or deleted printer information is returned. Thereafter, the subroutine in FIG. 3 is terminated, and the process returns to step S30 in FIG. 2.
[0039] If the event that has occurred is the arrival of a specified time, printer application 170 executes processing for each specified time in step S200. If the event that has occurred is the reception of a data collection command from management software 301, printer application 170 executes processing for the data collection command from the management software in step S500. The processing contents of steps S200 and S500 are common. FIG. 4 shows an example of the detailed contents of steps S200 and S500. If the event that has occurred is the reception of a data collection command from management software 301, printer application 170 accepts the data collection command from management PC 300 in the YES determination in step S35 above. The data collection command is an example of an information transmission request, and the YES determination in step S35 above is an example of an information request acceptance process.
[0040] 4, in step S210, printer application 170 transmits an information collection PJL (Printer Job Language) to each of connected printers 200. The information collection PJL is a command that requests transmission of consumption data related to the consumption status of consumables provided in each printer 200, such as the remaining amount of toner and paper. If printer 200 is an inkjet printer, the consumption data may include the remaining amount of ink. The information collection PJL is an example of a data transmission request, and step S210 is an example of a data request output process.
[0041] In step S220, the printer application 170 receives response information transmitted from each of the connected printers 200 in response to the information collection PJL, and acquires consumption data of each printer 200. Step S220 is an example of a consumption data acquisition process.
[0042] In step S230, the printer application 170 transmits the consumption data of each printer 200 acquired in step S220 to the management software 301 of the management PC 300 in response to the data collection command received in step S35. Then, the subroutine in Fig. 4 is terminated, and the process returns to step S30 in Fig. 2. Step S230 is an example of a consumables information output process.
[0043] The above steps S210 to S230 are executed at designated times or at the timing when a data collection command is received from the management PC 300. The designated times may be at predetermined times or at predetermined cycles.
[0044] If the generated event is a print instruction from CUPS 160 or CUPS 160 to printer 200, printer application 170 executes processing for the print instruction in step S300. In step S300, printer application 170 transmits a print start notification to management software 301 of management PC 300, and transmits print data to the corresponding printer 200 to execute printing.
[0045] If the generated event is the end of printing, the printer application 170 executes a process for the print end notification in step S400. In step S400, the printer application 170 transmits a print end notification to the management software 301 of the management PC 300.
[0046] If the printer application 170 has received a status collection command from the management software 301, the printer application 170 executes processing for the status collection command from the management software in step S600. An example of the detailed contents of step S600 is shown in Fig. 5. The status collection command is an example of an information collection signal, and the YES determination in step S35 above is an example of an information collection signal acquisition process.
[0047] As shown in Fig. 5, in step S610, printer application 170 collects status information in response to the status collection command, and transmits the collected information to management software 301 of management PC 300. The collected status information includes the latest status information by USTATUS and status information by INFO STATUS, which have been updated by repeating steps S15 to S25 described above. Thereafter, the subroutine in Fig. 5 ends, and the process returns to step S30 in Fig. 2. Step S610 is an example of information collection processing and status information transmission processing.
[0048] If the generated event is a Pause or Resume button notification from the management PC 300, the printer application 170 executes processing in response to the Pause / Resume button notification from the management PC in step S700. An example of the detailed contents of step S700 is shown in Fig. 6. Note that the Pause button is a button operated on the management software screen of the management PC 300 by the administrator C when pausing printing execution on a specific printer 200, and the Resume button is a button operated when resuming printing after being paused.
[0049] 6, in step S710, the printer application 170 instructs the CUPS 160 to Pause or Resume. After that, the subroutine in FIG. 6 ends, and the process returns to step S30 in FIG.
[0050] If the generated event is a cleaning button notification from the management PC 300, the printer application 170 executes processing for the cleaning button in the management PC in step S800. An example of the details of step S800 is shown in FIG.
[0051] As shown in Fig. 7, in step S810, the printer application 170 transmits a cleaning PJL to the printer 200 corresponding to the operated cleaning button. The cleaning PJL is a command requesting the printer 200, which is, for example, a laser printer, to clean the toner. If the printer 200 is an inkjet printer, cleaning of the nozzles of the print head may also be requested. Thereafter, the subroutine in Fig. 7 is ended, and the process returns to step S30 in Fig. 2.
[0052] 2 to 7, printer application 170 outputs basic status, which is part of the status information acquired in steps S10 to S25, to CUPS 160. The basic status includes basic error information such as out of paper, jam, etc. This process is an example of basic status output processing.
[0053] <Status information collection and management software screen> The management and compilation unit 304 of the management software 301 of the management PC 300 collects the status information obtained from the printer applications 170A, 170B and the fourth printer 200D for each printer. Fig. 8 shows an example of a method for collecting status information by the management and compilation unit 304. Fig. 8 describes a case where status information is obtained from the printer application 170 and compiled.
[0054] As shown in FIG. 8, the printer application 170 executes steps S1 to S9 for each print job. In step S1, the printer application 170 transmits a print start notification to the management software 301. In step S2, the printer application 170 receives print data. In step S3, the printer application 170 spools the received print data. In step S4, the printer application 170 establishes a connection with the printer 200 that executes printing. In step S5, the printer application 170 converts the print data according to the print data that the printer 200 can handle and whether or not the print function is restricted or extended. If the received print data is print data that the printer 200 can handle and there is no extension or restriction of the print function, step S5 does not need to be executed. In step S6, the printer application 170 transmits the converted print data or print data that did not need to be converted to the printer 200 that executes printing. In step S7, the printer application 170 waits until it receives a print end notification from the printer 200 that executed printing. In step S8, the printer application 170 transmits a print completion notification to the management software 301. In step S9, the printer application 170 terminates the connection with the printer 200 that executed the printing.
[0055] FIG. 8 shows an example in which the printer 200 receives three print jobs 1 to 3 at timings shifted by a predetermined time. The processing procedure for print job 2 is the same as for print job 1, but for print job 3, a transmission error occurs in step S6. Until step S1 of print job 1 is started, the status of the printer 200 is READY. From the time step S1 of print job 1 is executed until step S1 of print job 2 is executed, the status of the printer 200 is printing and waiting 0. The waiting value is the number of print jobs waiting until the end of printing is notified. From the time step S1 of print job 2 is executed until step S1 of print job 3 is executed, the status of the printer 200 is printing and waiting 1. From the time step S1 of print job 3 is executed until step S8 of print job 1 is executed, the status of the printer 200 is printing and waiting 2. From the time step S8 of print job 1 is executed until the time step S8 of print job 2 is executed, the status of printer 200 is printing and waiting 1. From the time step S8 of print job 2 is executed until the time step S8 of print job 3 is executed, the status of printer 200 is printing and waiting 0. Note that while an error occurs in step S6 of print job 3 during this period, the status of printer 200 will be error. After step S8 of print job 3 is executed, the status of printer 200 becomes READY.
[0056] The management software 301 displays a list of the status information and the like collected for each of the printers 200A to 200D on the display unit 340 (see FIG. 15 described later). FIG. 9 shows an example of a management software screen (status monitor screen) displayed by the management software 301.
[0057] As shown in FIG. 9, the management software screen displays the collected status information 309 and consumption data 306 related to the consumption status of the consumables for each of the first printer 200A, the second printer 200B, the third printer 200C, and the fourth printer 200D. The status information 309 includes a status indicating READY or printing, and a waiting job indicating the number of waiting print jobs. The consumption data 306 includes the remaining amount of toner and the remaining amount of paper, for example, indicated by a gauge. In addition, the management software screen displays a Pause (or Resume) button 307 and a cleaning button 308 for each of the first printer 200A, the second printer 200B, the third printer 200C, and the fourth printer 200D. The Pause (or Resume) button 307 switches between Pause and Resume every time it is operated. The administrator C can temporarily suspend printing in any of the printers 200 by operating the Pause button 307 of the corresponding printer 200. The administrator C can resume printing in the temporarily suspended printer 200 by operating the Resume button 307 of the temporarily suspended printer 200. The administrator C can clean the toner in the corresponding printer 200 by operating the cleaning button 308 of the corresponding printer 200.
[0058] 9 may be displayed on a display unit 140 (see FIG. 14 described later) of the first client PC 100A or the second client PC 100B other than the management PC 300.
[0059] In this embodiment, each client PC 100 knows the status information of the local printer (printers 200A and 200B in the first client PC 100A) via the HTTP server 303 of the management PC 300, but the printer application 170 may include an individual HTTP server therein so that the local printer information can be obtained from the HTTP server. In this case, the HTTP server publishes the information stored in step S25 that it manages by itself using the HTTP protocol, and the client PC 100 can display the status using its own IP address (127.0.0.1).
[0060] Furthermore, the HTTP server 303 of the management PC 300 may perform authentication so as to allow specific tasks only to the administrator C. Furthermore, although an attribute has been given as an example of the first capability information, information based on a setting file such as a PPD may also be used.
[0061] <Printer application monopolizes access rights to the backend> In this embodiment, the printer application 170 occupies the access authority to the backend 180 for communicating with the printer 200 via a USB cable, and executes communication for printing and communication for the status monitor. This makes it possible to stably achieve both processing for printing and processing for the status monitor. The above content will be explained using Figures 10 and 11. Note that the status monitor shown in Figures 10 and 11 is processing required for executing the status monitor, and corresponds to, for example, steps S10 and S20 in Figure 2 and steps S210 and S220 in Figure 4.
[0062] First, for comparison with the present embodiment, FIG. 10 shows an example of a usage right for the backend 180 in the case where the printer application 170 is not included. The usage right is an example of an access right. For example, when the client PC 100 and the printer 200 are connected by a USB cable and the OS on which the CUPS 160 is installed is, for example, Linux (registered trademark), only a single application can obtain the usage right for the backend 180 for communicating with the printer 200. In this case, as shown in FIG. 10, when the CUPS 160 or the status monitor accesses the backend 180 without the printer application 170, the CUPS 160 occupies the usage right for the backend 180 during printing. Therefore, the status monitor cannot access the backend 180. On the other hand, the status monitor can access the backend 180 when printing is not being executed. Therefore, the configuration shown in FIG. 10 does not allow both the processing for printing and the processing for the status monitor to be performed at the same time.
[0063] 11 shows an example of access rights to the backend 180 in this embodiment. In this embodiment, as shown in FIG. 11, the printer application 170 mediates printing processing and status monitor processing between the CUPS 160 and the status monitor and the backend 180. Therefore, regardless of whether printing is being executed or not, the printer application 170 has exclusive use rights to the backend 180. Therefore, there is no risk that one of communication with the printer 200 for executing printing and communication with the printer 200 for status monitoring will restrict the other. Therefore, it is possible to stably achieve both processing for printing and status monitoring.
[0064] 12 shows an example of a processing procedure related to acquisition of a right of use by printer application 170. In step S910, printer application 170 acquires a USB descriptor. The USB descriptor is a data string that indicates detailed specifications of a USB device.
[0065] In step S920, the printer application 170 obtains the interface, the transmitting endpoint, and the receiving endpoint described in the USB descriptor obtained in step S910.
[0066] In step S930, the printer application 170 requests the backend 180 to obtain the right to use the interface obtained in step S920.
[0067] In step S940, printer application 170 determines whether or not the right to use the interface has been acquired. If printer application 170 is unable to acquire the right to use the interface (step S940: No), the process returns to step S930. On the other hand, if printer application 170 is able to acquire the right to use the interface (step S940: Yes), the process proceeds to the next step S950. That is, if the determination in step S940 is YES, printer application 170 acquires the right to access backend 180. The determination in step S940 is an example of an access right acquisition process.
[0068] In step S950, printer application 170 waits until a processing request is received.
[0069] In step S960, printer application 170 determines whether the received processing request is a transmission request. If the received processing request is a transmission request (step S960: Yes), printer application 170 proceeds to the next step S970.
[0070] In step S970, the printer application 170 transmits various data to the transmission endpoint acquired in step S920 above, based on the usage rights acquired in step S940 above, via the backend 180. The various data includes, for example, the USTATUS DEVICE ON and INFO STATUS commands transmitted in step S10 above, the information collection PJL transmitted in step S210 above, the cleaning PJL transmitted in step S810 above, print data, etc. Then, the process proceeds to step S990.
[0071] On the other hand, in step S960, if the received processing request is a reception request (step S960: No), printer application 170 proceeds to the next step S980.
[0072] In step S980, printer application 170 receives various data from the receiving endpoint acquired in step S920 above via backend 180 based on the usage rights acquired in step S940 above. The various data includes, for example, the status information by USTATUS and INFO STATUS acquired in step S20 described above, the response acquired in step S220, etc. Then, the process proceeds to step S990.
[0073] In step S990, printer application 170 determines whether or not to end the process. If printer application 170 does not end the process (step S990: No), the process returns to step S950. On the other hand, if printer application 170 ends the process (step S990: Yes), the process ends this flow.
[0074] <Processing related to status monitor by management software> FIG. 13 shows an example of a processing procedure related to the status monitor by the management software 301 of the management PC 300. In FIG.
[0075] In step S1005, the management software 301 starts a PC browse thread. The PC browse thread is a thread for executing a search for the printer 200D of the printing system 1 and the virtual printer generated by the printer application 170. The network printer 200D is searched for by communicating with the printer itself via the mDNS / SD protocol. Also, the virtual printers by the printer application 170 corresponding to the printers 200A to 200C are searched for by communicating with the printer application 170 via the mDNS / SD protocol.
[0076] In step S1010, the management software 301 searches for the printer application 170 of each client PC 100, and acquires mDNS information from the printer application 170. The mDNS information includes information on the printer 200 detected using mDNS in each printer application 170. Step S1010 is an example of a search process. This information reflects the increase or decrease in the number of printers in step S130 of FIG.
[0077] It should be noted that the printer application 170 of the client PC 100 accepts the search access executed by the management software 301 in step S1010. The process by the printer application 170 is an example of a search access acceptance process.
[0078] In step S1012, the management software 301 acquires information on the printer 200 and the network printer 200D corresponding to each printer application 170 based on the mDNS information acquired in step S1010. Note that, for the sake of simplicity, the following description will omit the processing of the network printer 200D that is not related to the present invention. However, in practice, the printer 200D is also managed in the same way.
[0079] In step S1014, the management software 301 determines whether or not there has been an increase or decrease in the number of printers 200. If there has been no increase or decrease in the number of printers 200 (step S1014: No), the management software 301 returns to step S1010. On the other hand, if there has been an increase or decrease in the number of printers 200 (step S1014: Yes), the management software 301 proceeds to the next step S1015.
[0080] In step S1015, the management software 301 creates a list of the printers 200 or updates an already created list based on the information of the printers 200 acquired in step S1012. In the case where the printer is a virtual printer, the printer list is stored in association with information of the generated printer application 170. Step S1015 is an example of a list creation process and a list update process. Then, the process returns to step S1010.
[0081] The management software 301 repeats steps S1010 to S1015 described above to continuously update the printer list of the printing system 1. In parallel with repeatedly executing steps S1010 to S1015 described above, the management software 301 executes the processes from step S1020 onwards.
[0082] In step S1020, the management software 301 acquires a printer list corresponding to each printer application 170. This printer list was appropriately updated in step S1015 described above.
[0083] In step S1025, the management software 301 acquires printer information for each printer 200 included in the printer list acquired in step S1020 from the corresponding printer application 170. The printer information includes the above-mentioned status information, wear data, etc. This process is executed by notifying the printer application 170 of an event and having it perform step S600 in FIG.
[0084] In step S1030, the management software 301 displays the management software screen (see FIG. 9 described above) on the display unit 340 (see FIG. 15 described below).
[0085] In step S1035, the management software 301 waits until an event is received. The event may be, for example, updating of the printer list, the passage of a predetermined time, reaching a predetermined time, operation of the Pause (or Resume) button 307, operation of the cleaning button 308, etc.
[0086] In step S1040, the management software 301 determines whether or not the printer list has been updated in the above-mentioned step S1015. If the printer list has been updated (step S1040: Yes), the management software 301 returns to the above-mentioned step S1020. On the other hand, if the printer list has not been updated (step S1040: No), the management software 301 proceeds to the next step S1045.
[0087] In step S1045, the management software 301 determines whether or not a predetermined time (for example, 10 seconds) has elapsed since the previous execution of step S1050. If the predetermined time has elapsed (step S1045: Yes), the management software 301 proceeds to the next step S1050.
[0088] In step S1050, the management software 301 updates the status information of all printers 200 to the status information acquired in step S1025. Then, the process returns to step S1020. The management software 301 repeats step S1050 and steps S1020 to S1030 every time a predetermined time has elapsed, thereby updating the status information on the management software screen to the latest status every predetermined time (for example, 10 seconds). This process is executed by notifying the printer application 170 of an event and having it perform step S600 in FIG. 2.
[0089] On the other hand, in step S1045, if the predetermined time has not elapsed (step S1045: No), the management software 301 proceeds to the next step S1055.
[0090] In step S1055, the management software 301 determines whether or not a predetermined time has been reached. If the predetermined time has been reached (step S1055: Yes), the management software 301 proceeds to the next step S1060.
[0091] In step S1060, the management software 301 outputs an information transmission request to each printer application 170 found in step S1010, requesting transmission of consumable information including consumption data related to the consumption status of the consumables provided in each corresponding printer 200. Specifically, the management software 301 outputs the information transmission request to each printer application 170 corresponding to the printer 200 included in the printer list created in step S1015. The management software 301 acquires the consumable information output from each printer application 170 in response to the information transmission request. As a result, the management software 301 acquires the Auditor information of all printers 200 included in the printing system 1. The Auditor information is consumable information including consumption data related to the consumption status of the consumables provided in the printer 200. The step S1060 is an example of an information request output process and a consumable information acquisition process. This process is executed by notifying the printer application 170 of an event and causing it to perform step S500 in FIG. 2.
[0092] In step S1065, the management software 301 evaluates the consumption status of the consumables for each printer 200 based on the Auditor information acquired in step S1060. Step S1065 is an example of a consumption status evaluation process.
[0093] In step S1070, the management software 301 determines whether or not some action is required regarding the consumption status of the consumable, based on the evaluation result in step S1065. If the management software 301 determines that no action is required (step S1070: No), the process returns to step S1020. On the other hand, if the management software 301 determines that an action is required (step S1070: Yes), the process proceeds to the next step S1075.
[0094] In step S1075, the management software 301 executes a corresponding action according to the evaluation result in step S1065. The action is, for example, a warning to the user or automatic ordering of consumables. Step S1075 is an example of a corresponding action process. Then, the process returns to step S1020.
[0095] By the above step S1055, the above steps S1060 to S1075 are executed at a predetermined time, but they may be executed at predetermined intervals.
[0096] On the other hand, in step S1055, if the predetermined time has not been reached (step S1055: No), the management software 301 proceeds to the next step S1080.
[0097] In step S1080, the management software 301 determines whether or not the Pause (or Resume) button 307 has been operated. If the Pause (or Resume) button 307 has been operated (step S1080: Yes), the management software 301 proceeds to the next step S1085.
[0098] In step S1085, the management software 301 executes a process of pausing or resuming printing on the target printer 200 in response to the operation of the Pause or Resume button 307. Then, the process returns to step S1020. This process is executed by notifying the printer application 170 of an event and having it perform step S700 in FIG.
[0099] On the other hand, in step S1080, if the Pause (or Resume) button 307 has not been operated (step S1080: No), the management software 301 proceeds to the next step S1090.
[0100] In step S1090, the management software 301 determines whether or not the cleaning button 308 has been operated. If the cleaning button 308 has been operated (step S1090: Yes), the management software 301 proceeds to the next step S1095.
[0101] In step S1095, the management software 301 executes a toner cleaning process for the target printer 200. This process is executed by notifying the printer application 170 of an event and causing it to execute step S800 in Fig. 2. Then, the process returns to step S1020.
[0102] On the other hand, in step S1090, if the cleaning button 308 has not been operated (step S1090: No), the management software 301 returns to step S1020.
[0103] <Effects of the embodiment> The printer application 170 of this embodiment can be executed by the processor 110 of the client PC 100, and can correspond to the printer 200 that can communicate with the client PC 100. The client PC 100 is equipped with an operating system having the CUPS 160, and the information processing program can be registered as a virtual printer in the CUPS 160. When the printer application 170 is registered as a virtual printer in the CUPS 160, it causes the processor 110 of the client PC 100 to execute a capability information output process, a print data transmission process, steps S10, and S20. In the capability information output process, an attribute that indicates the capability of the printer 200 is acquired, and an attribute converted based on the acquired attribute is output to the CUPS 160. In the print data transmission process, print data from the CUPS 160 corresponding to the converted attribute output in the capability information output process is acquired, and the print data converted based on the print data is transmitted to the printer 200. In step S10, USTATUS DEVICE ON and INFO STATUS commands for inquiring about the status of the printer 200 are output to the printer 200. In step S20, status information is obtained from the printer 200 in response to the USTATUS DEVICE ON and INFO STATUS commands.
[0104] According to this embodiment, the printer application 170, which is a virtual printer registered in CUPS 160, queries the printer 200 about its status and acquires status information. Since the printer application 170 mediates between the CUPS 160 and the printer 200 in the printing process and the status monitor process, there is no risk that one of the communication with the printer 200 for executing printing and the communication with the printer 200 for the status monitor will restrict the other. According to this embodiment, it is possible to stably achieve both the process for printing and the status monitor.
[0105] In particular, in this embodiment, the status information includes status change data by USTATUS that can be acquired when there is a change in the status of the printer 200. According to this embodiment, since the status change data is acquired when there is a change in the status, the processing load can be reduced compared to when the status information is constantly acquired and monitored.
[0106] Particularly in this embodiment, step S20 of acquiring status information from the printer 200 is repeated at a predetermined interval. According to this embodiment, the status information can be constantly updated with new information.
[0107] Particularly in this embodiment, printer application 170 causes processor 110 to execute step S610 to compile status information acquired in step S20, which is repeated at a predetermined cycle. According to this embodiment, the compilation result of status information acquired at a predetermined cycle can be transmitted to the outside or displayed.
[0108] Particularly in this embodiment, printer application 170 causes processor 110 to execute steps S35 and S610. In step S35, a status collection command is acquired from management PC 300 configured to be able to communicate with printer application 170. In step S610, in response to the status collection command acquired in step S35, the status information acquired in step S20 is output to management PC 300. According to this embodiment, the acquired status information can be transmitted in response to a request from management PC 300, and can be tallied, displayed, and the like in management PC 300.
[0109] Particularly in this embodiment, the printer application 170 outputs to the processor 110, toward the CUPS 160, a basic status that is part of the status information acquired in step S20. Because the CUPS 160 does not recognize the actual printer 200, it cannot acquire the basic status information required for control directly from the actual printer 200. According to this embodiment, by outputting the basic status information toward the CUPS 160, driverless printing by the CUPS 160 can be performed.
[0110] In particular, in this embodiment, the client PC 100 and the printer 200 are connected by a USB cable. The printer application 170 causes the processor 110 to execute step S940 to acquire access authority to access the backend 180 for communicating with the printer 200 via the USB cable. In step S10, the printer application 170 outputs USTATUS DEVICE ON and INFO STATUS to the printer 200 via the backend 180 based on the access authority acquired in step S940. In step S20, the printer application 170 acquires status information from the printer 200 via the backend 180 based on the access authority acquired in step S940. According to this embodiment, the printer application 170 occupies the access authority to the backend 180 to execute output of USTATUS DEVICE ON and INFO STATUS and acquisition of status information, so that the status monitor can be stably executed regardless of whether printing is being executed or not.
[0111] <Modification> The present invention is not limited to the above-described embodiment, and various modifications are possible without departing from the spirit and technical concept of the present invention.
[0112] In the above embodiment, the status information acquired by printer application 170 in steps S10 to S25 is transmitted to administration PC 300 in step S610, but in addition to this, for example, it may be displayed on client PC 100. For example, printer application 170 may output a status display signal for displaying the status information acquired in steps S10 to S25 to browsers 104A, 104B and provide it to user A or user B. The above process executed by printer application 170 in this case is an example of a status display signal output process. According to this modification, the status information acquired in steps S10 to S25 can be provided to the user of client PC 100.
[0113] Furthermore, the flowcharts shown in Figures 2 to 8 and Figures 12 to 13 do not limit the present invention to the procedures shown in the above flows, and steps may be added or deleted, or the order of steps may be changed, etc., within the scope that does not deviate from the spirit and technical concept of the invention.
[0114] In addition to the above, the methods according to the above embodiments and their modifications may be used in appropriate combination.
[0115] Although not specifically illustrated, the present invention can be implemented with various modifications without departing from the spirit and scope of the present invention.
[0116] <Hardware configuration of client PC, printer, and management PC> An example of the hardware configuration of the client PC 100 and the printer 200 will be described with reference to Fig. 14. The first client PC 100A and the second client PC 100B may have a common hardware configuration. The first printer 200A, the second printer 200B, the third printer 200C, and the fourth printer 200D may have a common hardware configuration.
[0117] <Client PC> 14, the client PC 100 has a processor 110, a storage device 115, a display unit 140, an operation unit 150, and a communication interface 190. The processor 110, the storage device 115, the display unit 140, the operation unit 150, and the communication interface 190 are connected to each other via a bus 105 so as to be able to transmit and receive data to and from each other.
[0118] The storage device 115 includes a volatile storage device 120 and a non-volatile storage device 130. The volatile storage device 120 is, for example, a DRAM, and stores various programs and data to be processed. The non-volatile storage device 130 is, for example, a hard disk drive or a solid state drive, and includes a program storage area 131 and a data storage area 132.
[0119] Various programs are stored in the program storage area 131. The various programs include information processing programs based on the flowcharts of Figures 2 to 7 and 12. The data storage area 132 stores data necessary for executing the various programs.
[0120] The processor 110 is a device that performs data processing, such as a CPU, and executes various programs stored in a program storage area 131. The processor 110 performs various processes including data communication with the management PC 300 and the printer 200 connected to the network NT. The processor 110 and the information processing program stored in the program storage area 131 are an example of a first control unit.
[0121] The display unit 140 is, for example, a liquid crystal display, and is capable of displaying various types of information. The operation unit 150 is, for example, a mouse, a keyboard, and is configured to receive operations by a user. The user can input various instructions to the client PC 100 by operating the operation unit 150.
[0122] The communication interface 190 is a wired or wireless network interface for communicating with other devices, and is connected to the network NT.
[0123] In addition, the storage device 115 is not limited to being configured with the above-mentioned device elements, but may be configured with, for example, a RAM, a ROM, an EEPROM, a HDD, a portable recording medium such as a USB memory that is detachably attached to the client PC 100, a buffer provided in the processor 110, or a combination of these. The storage device 115 may be a computer-readable storage medium. A computer-readable storage medium is a non-transitory medium. In addition to the above examples, non-transitory media also include recording media such as CD-ROMs and DVD-ROMs. A non-transitory medium is also a tangible medium. The same applies to a storage device 215 of the printer 200 and a storage device 315 of the management PC 300, which will be described later.
[0124] <Printer> 14, the printer 200 has a processor 210, a storage device 215, a display unit 240, an operation unit 250, a communication interface 270, and a printing unit 290. The processor 210, the storage device 215, the display unit 240, the operation unit 250, the communication interface 270, and the printing unit 290 are connected to each other via a bus 205 so as to be able to transmit and receive data to and from each other.
[0125] The storage device 215 includes a volatile storage device 220 and a non-volatile storage device 230. The volatile storage device 220 is, for example, a DRAM, and includes an image data storage area 222 that stores image data to be printed. The non-volatile storage device 230 is, for example, an NVRAM, a flash memory, or the like, and includes a program storage area 231 and a data storage area 232. Various programs are stored in the program storage area 231. The various programs include firmware such as a print processing program. The data storage area 232 stores various data for executing the various programs.
[0126] The processor 210 is a device that performs data processing, and is, for example, a CPU. The processor 210 executes various programs stored in the program storage area 231.
[0127] The display unit 240 is, for example, a liquid crystal display, and is capable of displaying various information. The operation unit 250 is a device that accepts operations by a user. The user can input various instructions to the printer 200 by operating the operation unit 250. The communication interface 270 is a wired or wireless network interface for communicating with other devices, and is connected to the network NT.
[0128] The printing unit 290 prints an image on a sheet conveyed by a conveying mechanism (not shown). The printing unit 290 prints an image on a sheet based on print data sent from the client PC 100 or a print job that the printing unit 290 itself generates based on an operation on the operation unit 250.
[0129] <Management PC> 15, the management PC 300 has a processor 310, a storage device 315, a display unit 340, an operation unit 350, and a communication interface 390. The processor 310, the storage device 315, the display unit 340, the operation unit 350, and the communication interface 390 are connected via a bus 305 so as to be able to transmit and receive data to and from each other.
[0130] The storage device 315 includes a volatile storage device 320 and a non-volatile storage device 330. The volatile storage device 320 is, for example, a DRAM, and stores various programs and data to be processed. The non-volatile storage device 330 is, for example, a hard disk drive or a solid state drive, and includes a program storage area 331 and a data storage area 332.
[0131] Various programs are stored in the program storage area 331. The various programs include information processing programs based on the flowchart of Fig. 13 and the like described above. The data storage area 332 stores data and the like required for executing the various programs.
[0132] The processor 310 is a device that performs data processing, such as a CPU, and executes various programs stored in the program storage area 331. The processor 310 performs various processes including data communication with the client PC 100 and the like connected to the network NT. The processor 310 and the information processing program stored in the program storage area 331 are an example of a control unit and a second control unit.
[0133] The display unit 340 is, for example, a liquid crystal display, and is capable of displaying various information. The operation unit 350 is, for example, a mouse, a keyboard, and is configured to receive operations by a user. The user can input various instructions to the administration PC 300 by operating the operation unit 350.
[0134] The communication interface 390 is a wired or wireless network interface for communicating with other devices, and is connected to the network NT. [Explanation of symbols]
[0135] 1. Printing system (an example of an information processing system) 100A First client PC (information processing device, an example of a first information processing device) 100B Second client PC (information processing device, an example of a first information processing device) 110 Processor (an example of a computing unit) 160A CUPS (an example of OS standard printing software) 160B CUPS (an example of standard OS printing software) 170A Printer application (an example of an information processing program) 170B Printer application (an example of an information processing program) 180 Backend 200 Printer (an example of a printing device) 300 Management PC (an example of an external device or a second information processing device) 310 Processor (an example of a computing unit)
Claims
1. An information processing program executable by a computing unit of an information processing device and compatible with a printing device capable of communicating with the information processing device, the information processing device being equipped with an operating system having OS standard printing software, the information processing program being registerable in the OS standard printing software as a virtual printing device, When the information processing program is registered as the virtual printing device in the OS standard printing software, the information processing program causes a calculation unit of the information processing device to a print data transmission process for acquiring first print data from the OS standard print software and transmitting second print data based on the first print data to the printing device; an inquiry signal output process for outputting an inquiry signal regarding the status of the printing device to the printing device; a status information acquisition process for acquiring status information from the printing device in response to the output of the inquiry signal in the inquiry signal output process; An information processing program that executes the above.
2. The status information is 2. The information processing program according to claim 1, further comprising status change data obtainable when the status of the printing device is changed.
3. The inquiry signal output process and the status information acquisition process include:
2. The information processing program according to claim 1, which is repeated at a predetermined interval.
4. The calculation unit further includes:
4. The information processing program according to claim 3, further comprising: an information collecting process for collecting the status information acquired in the status information acquiring process repeated at the predetermined interval.
5. The calculation unit further includes: An information collection signal acquisition process for acquiring an information collection signal from an external device configured to be able to communicate with the information processing device; a status information transmission process of outputting the status information acquired in the status information acquisition process to the external device in response to the information collection signal acquired in the information collection signal acquisition process; 2. The information processing program according to claim 1, which causes a program to execute the following:
6. The calculation unit further includes: A status display signal output process that outputs a status display signal for displaying the status information acquired in the status information acquisition process.
6. The information processing program according to claim 1, further comprising:
7. The calculation unit further includes: A basic status output process for outputting a basic status, which is a part of the status information acquired in the status information acquisition process, to the OS standard printing software.
7. The information processing program according to claim 6, which causes the program to execute the following:
8. the information processing device and the printing device are connected by a USB cable, The calculation unit further includes: An access authority acquisition process for acquiring an access authority to access a backend for performing communication with the printing device via the USB cable. Run the command, In the inquiry signal output process, the inquiry signal is output to the printing device via the backend based on the access authority acquired in the access authority acquisition process; the status information acquisition process acquires the status information from the printing device via the backend based on the access authority acquired in the access authority acquisition process.
6. The information processing program according to claim 1.
Citation Information
Patent Citations
Application and information processing apparatus
JP2020201802A
