[go: up one dir, main page]

CN111813351A - A printing task dynamic management method, device, main printer and system - Google Patents

A printing task dynamic management method, device, main printer and system Download PDF

Info

Publication number
CN111813351A
CN111813351A CN202010477014.8A CN202010477014A CN111813351A CN 111813351 A CN111813351 A CN 111813351A CN 202010477014 A CN202010477014 A CN 202010477014A CN 111813351 A CN111813351 A CN 111813351A
Authority
CN
China
Prior art keywords
printer
slave
printing
permission list
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010477014.8A
Other languages
Chinese (zh)
Other versions
CN111813351B (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Hanyin Co ltd
Original Assignee
Xiamen Hanyin Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202210599430.4A priority Critical patent/CN115016746A/en
Priority to CN202010477014.8A priority patent/CN111813351B/en
Publication of CN111813351A publication Critical patent/CN111813351A/en
Application granted granted Critical
Publication of CN111813351B publication Critical patent/CN111813351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • G06F3/1217Improving printing performance achieving reduced idle time at the output device or increased asset utilization
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/126Job scheduling, e.g. queuing, determine appropriate device
    • G06F3/1262Job scheduling, e.g. queuing, determine appropriate device by grouping or ganging jobs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The embodiment of the invention provides a method and a device for dynamically managing a print task, a main printer and a system, wherein the method comprises the following steps: receiving a printing task sent by terminal equipment; when a dynamic forwarding printing instruction is received, judging the working state of the main printer; the working state comprises a ready state and a busy state; when the main printer is in a busy state, acquiring a printer permission list and the working states of all the slave printers in the printer permission list; wherein the printer permission list includes a master printer and at least one slave printer; pushing the print job to the slave printer in the ready state when at least one slave printer in the printer permission list is in the ready state; the name of the slave printer is returned to the terminal device. The invention reasonably distributes the printing tasks according to the working state of the printer, improves the printing efficiency, reduces the redundant configuration, not only provides the convenience for printing and using, but also reduces the maintenance cost.

Description

一种打印任务动态管理方法、装置、主打印机及系统A printing task dynamic management method, device, main printer and system

技术领域technical field

本发明涉及打印机技术领域,具体而言,涉及一种打印任务动态管理方法、装置、主打印机及系统。The present invention relates to the technical field of printers, and in particular, to a method, device, main printer and system for dynamic management of printing tasks.

背景技术Background technique

目前,市面上的打印机在办公的环境中应用时,一般为多台计算机共享一台打印机,或者是一台计算机独占一台打印机。在打印机使用之前,用户需要在计算机中安装打印机的驱动程序,共享打印机还需要部署于局域网中。使用时,用户需要选择特定的打印机打印。对于共享的网络打印机,使用的是基于HTTP协议的IPP协议,打印机对多系统的请求加以服务时,按照接到的任务的先后顺序来执行打印任务。At present, when the printers on the market are applied in an office environment, generally one printer is shared by multiple computers, or one computer is exclusively used for one printer. Before using the printer, the user needs to install the printer driver in the computer, and the shared printer also needs to be deployed in the local area network. When using, the user needs to select a specific printer to print. For the shared network printer, the IPP protocol based on the HTTP protocol is used. When the printer serves requests from multiple systems, it executes the printing tasks according to the order of the tasks received.

然而,共享打印机是接收来自多台计算机的打印任务,任务较多时需要等待,等待时间不确定。特别是部分用户需要打印大量的文件,由于打印机无法同时处理多个打印任务,后面需要打印的用户可能需要长时间的等待,直到前序的打印任务完成。However, the shared printer receives printing tasks from multiple computers, and it needs to wait when there are many tasks, and the waiting time is uncertain. In particular, some users need to print a large number of files. Since the printer cannot process multiple printing tasks at the same time, users who need to print later may need to wait for a long time until the previous printing tasks are completed.

而且,对于计算机独占一台打印机的模式,需要为每台计算机配置一台独立的打印机,增加了设备成本。当用户打印量较少时,独占一台打印机资源利用率不高。Moreover, for the mode in which the computer occupies one printer exclusively, it is necessary to configure an independent printer for each computer, which increases the equipment cost. When a user prints a small amount, the resource utilization rate of monopolizing one printer is not high.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例的目的在于提供一种打印任务动态管理方法、装置、主打印机及系统,以提高打印机的利用率。In view of this, the purpose of the embodiments of the present invention is to provide a method, device, main printer and system for dynamic management of printing tasks, so as to improve the utilization rate of the printer.

本发明实施例提供了一种打印任务动态管理方法,包括以下步骤:An embodiment of the present invention provides a method for dynamic management of printing tasks, including the following steps:

接收终端设备发送的打印任务;Receive print tasks sent by terminal equipment;

当接收到动态转发打印指令时,判断主打印机自身的工作状态;When receiving the dynamic forwarding printing instruction, judge the working state of the main printer itself;

当主打印机自身处于繁忙状态时,获取打印机许可列表,以及所述打印机许可列表中的所有从打印机的工作状态;其中,打印机许可列表包括主打印机和至少一个从打印机,所述工作状态包括就绪状态和繁忙状态;When the master printer itself is in a busy state, obtain the printer permission list and the working status of all slave printers in the printer permission list; wherein, the printer permission list includes the master printer and at least one slave printer, and the working status includes the ready state and busy state;

当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机;When at least one slave printer in the printer permission list is in the ready state, push the print task to the slave printer in the ready state;

向所述终端设备返回所述从打印机的名称。Return the name of the slave printer to the terminal device.

优选地,所述主打印机与所述从打印机通过以太网、蓝牙、Wi-Fi或者USB进行连接。Preferably, the master printer and the slave printer are connected through Ethernet, Bluetooth, Wi-Fi or USB.

优选地,还包括以下步骤:Preferably, the following steps are also included:

当主打印机自身处于就绪状态时,执行打印任务;When the main printer itself is in the ready state, execute the printing task;

向所述终端设备返回主打印机的名称。Returns the name of the primary printer to the terminal device.

优选地,还包括:Preferably, it also includes:

当所述打印机许可列表中处于就绪状态的从打印机有多个时,获取多个所述从打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;When there are multiple slave printers in the ready state in the printer permission list, obtain the historical consumption of the plurality of slave printers; wherein, the historical consumption is the accumulated printing volume or the accumulated working time;

将打印任务推送至所述打印机许可列表中历史损耗最小的从打印机;Pushing the print task to the slave printer with the smallest historical loss in the printer permission list;

向所述终端设备返回历史损耗最小的从打印机的名称。Returns the name of the slave printer with the smallest historical loss to the terminal device.

优选地,还包括:Preferably, it also includes:

当所述从打印机均处于繁忙状态时,获取打印机许可列表中所有打印机的等待时间;When the slave printers are all in a busy state, obtain the waiting time of all printers in the printer permission list;

将打印任务推送至所述打印机许可列表中等待时间最短的打印机;Pushing the print task to the printer with the shortest waiting time in the printer permission list;

向所述终端设备返回等待时间最短的打印机的名称。The name of the printer with the shortest waiting time is returned to the terminal device.

优选地,还包括以下步骤:Preferably, the following steps are also included:

当所述打印机许可列表中等待时间最短的打印机有多个时,获取多个打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;When there are multiple printers with the shortest waiting time in the printer permission list, obtain the historical loss of the multiple printers; wherein, the historical loss is the cumulative printing volume or the cumulative working time;

将打印任务推送至所述打印机许可列表中历史损耗最小的打印机;Pushing the print job to the printer with the smallest historical loss in the printer permission list;

向所述终端设备返回历史损耗最小的打印机的名称。The name of the printer with the smallest historical wear is returned to the terminal device.

本发明实施例还提供了一种打印任务动态管理装置,包括:The embodiment of the present invention also provides a printing task dynamic management device, including:

打印任务接收单元,用于接收终端设备发送的打印任务;a print task receiving unit, configured to receive the print task sent by the terminal device;

第一工作状态获取单元,用于当接收到动态转发打印指令时,判断主打印机自身的工作状态;a first working state obtaining unit, configured to judge the working state of the main printer itself when receiving the dynamic forwarding printing instruction;

第二工作状态获取单元,用于当主打印机自身处于繁忙状态时,获取打印机许可列表,以及所述打印机许可列表中的所有从打印机的工作状态;其中,打印机许可列表包括主打印机和至少一个从打印机,所述工作状态包括就绪状态和繁忙状态;The second working state obtaining unit is configured to obtain the printer permission list and the working states of all slave printers in the printer permission list when the master printer itself is in a busy state; wherein the printer permission list includes the master printer and at least one slave printer , the working state includes a ready state and a busy state;

第一打印任务推送单元,用于当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机;a first print task push unit, configured to push the print task to the slave printer in the ready state when at least one slave printer in the printer permission list is in the ready state;

名称返回单元,用于向所述终端设备返回所述从打印机的名称。The name returning unit is used for returning the name of the slave printer to the terminal device.

优选地,还包括:Preferably, it also includes:

等待时间获取单元,用于当所述从打印机均处于繁忙状态时,获取打印机许可列表中所有打印机的等待时间;a waiting time obtaining unit, configured to obtain the waiting time of all printers in the printer permission list when the slave printers are all in a busy state;

第二打印任务推送单元,用于将打印任务推送至所述打印机许可列表中等待时间最短的打印机;a second printing task pushing unit, configured to push the printing task to the printer with the shortest waiting time in the printer permission list;

第二名称返回单元,用于向所述终端设备返回等待时间最短的打印机的名称。The second name returning unit is used for returning the name of the printer with the shortest waiting time to the terminal device.

本发明实施例还提供了一种主打印机,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述的打印任务动态管理方法。An embodiment of the present invention further provides a main printer, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the dynamic printing task described above when the processor executes the program management method.

本发明实施例还提供了一种打印任务动态管理系统,包括:终端设备、如上所述的主打印机以及至少一个从打印机,其中,An embodiment of the present invention further provides a system for dynamic management of printing tasks, including: a terminal device, the above-mentioned master printer, and at least one slave printer, wherein,

所述终端设备,用于向所述主打印机发送打印任务和动态转发打印指令;the terminal device, configured to send a print task and dynamically forward a print instruction to the main printer;

所述主打印机,用于获取打印机许可列表中所有从打印机的工作状态,并当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机;其中,打印机许可列表包括主打印机和至少一个从打印机,所述工作状态包括就绪状态和繁忙状态;the master printer, configured to obtain the working status of all slave printers in the printer permission list, and when at least one slave printer in the printer permission list is in a ready state, push the print task to the slave printer in the ready state; Wherein, the printer permission list includes a master printer and at least one slave printer, and the working state includes a ready state and a busy state;

所述从打印机,用于接收并执行所述主打印机推送的打印任务。The slave printer is configured to receive and execute the printing task pushed by the master printer.

上述实施例中,通过当接收到动态转发打印指令时,在主打印机自身处于繁忙状态时,当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机。从而在有多台打印机可用时,可以根据打印机自身的工作状态合理分配打印任务,提高了打印效率,减少了冗余配置,实现了负载均衡,不仅提供了打印使用上便利,提高了打印灵活性,又降低了维护成本。In the above embodiment, when a dynamic forwarding print instruction is received, when the master printer itself is in a busy state, when at least one slave printer in the printer permission list is in a ready state, the print task is pushed to a ready state. from the printer. Therefore, when multiple printers are available, printing tasks can be reasonably allocated according to the working status of the printer itself, which improves printing efficiency, reduces redundant configuration, and achieves load balancing, which not only provides convenience for printing, but also improves printing flexibility. , and reduce maintenance costs.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1为本发明第一实施例提供的一种打印任务动态管理方法的流程示意图。FIG. 1 is a schematic flowchart of a method for dynamic management of printing tasks provided by the first embodiment of the present invention.

图2为本发明第二实施例提供的一种打印任务动态管理装置的结构示意图。FIG. 2 is a schematic structural diagram of an apparatus for dynamic management of printing tasks according to a second embodiment of the present invention.

图3为本发明第四实施例提供的一种打印任务动态管理系统的结构示意图。FIG. 3 is a schematic structural diagram of a printing task dynamic management system according to a fourth embodiment of the present invention.

图标:201-打印任务接收单元;202-第一工作状态获取单元;203-第二工作状态获取单元;204-第一打印任务推送单元;205-第一名称返回单元;401-终端设备;402-主打印机;403-从打印机。Icons: 201-printing task receiving unit; 202-first working state obtaining unit; 203-second working state obtaining unit; 204-first printing task pushing unit; 205-first name returning unit; 401-terminal device; 402 - Master Printer; 403 - Slave Printer.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。In order to better understand the technical solutions of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be understood that the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this document is only an association relationship to describe the associated objects, indicating that there may be three kinds of relationships, for example, A and/or B, which may indicate that A exists alone, and A and B exist at the same time. B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.

取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein can be interpreted as "at" or "when" or "in response to determining" or "in response to detecting." Similarly, the phrases "if determined" or "if detected (the stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (the stated condition or event)," depending on the context )" or "in response to detection (a stated condition or event)".

实施例中提及的“第一\第二”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二”在允许的情况下可以互换特定的顺序或先后次序。应该理解“第一\第二”区分的对象在适当情况下可以互换,以使这里描述的实施例能够以除了在这里图示或描述的那些以外的顺序实施。The "first\second" mentioned in the embodiment is only to distinguish similar objects, and does not represent a specific order for the objects. It is understood that "first\second" can be interchanged with specific order or sequence. It should be understood that the "first\second" distinctions may be interchanged under appropriate circumstances to enable the embodiments described herein to be practiced in sequences other than those illustrated or described herein.

如图1所示,本发明第一实施例提供了一种打印任务动态管理方法,可由主打印机来执行,具体的,可由主打印机内的一个或多个处理器来执行,至少包括以下步骤:As shown in FIG. 1, the first embodiment of the present invention provides a method for dynamic management of printing tasks, which can be executed by a main printer. Specifically, it can be executed by one or more processors in the main printer, and at least includes the following steps:

S101,接收终端设备发送的打印任务。S101: Receive a print task sent by a terminal device.

在本实施例中,所述主打印机包括但不限于普通打印机、网络打印机、云打印机等,所述主打印机可以通过以太网、蓝牙、Wi-Fi或者USB等有线或无线方式与一个或多个从打印机进行连接,以组成一个打印机集群,协同执行打印任务。In this embodiment, the main printer includes but is not limited to ordinary printers, network printers, cloud printers, etc. The main printer can communicate with one or more printers through wired or wireless methods such as Ethernet, Bluetooth, Wi-Fi, or USB. Connect from printers to form a cluster of printers to perform printing tasks cooperatively.

其中,所述终端设备可以是手机、平板电脑、台式电脑、服务器等等智能设备,用以向所述主打印机发送打印任务。Wherein, the terminal device may be a smart device such as a mobile phone, a tablet computer, a desktop computer, a server, etc., for sending a printing task to the main printer.

在本实施例中,当所述主打印机接收到所述终端设备发送的打印任务后,可以将打印任务分发至上述打印机集群中的各个打印机。In this embodiment, after the main printer receives the printing task sent by the terminal device, the printing task may be distributed to each printer in the above-mentioned printer cluster.

S102,当接收到动态转发打印指令时,判断主打印机自身的工作状态;其中,所述工作状态包括就绪状态和繁忙状态。S102, when receiving the dynamic forwarding printing instruction, determine the working state of the main printer itself; wherein, the working state includes a ready state and a busy state.

在本实施例中,为了提高打印机集群中打印资源的利用率,需要根据动态转发打印指令对打印任务进行合理分配。In this embodiment, in order to improve the utilization rate of printing resources in the printer cluster, it is necessary to reasonably allocate printing tasks according to the dynamically forwarded printing instructions.

其中,所述动态转发打印指令可以是预先设置的打印任务管理程序,用户可以通过运行于终端设备上的web页面或应用程序等特定的应用工具对动态转发打印指令进行查询和配置,包括设置打印机集群中各个打印机的基本打印参数、主打印机的动态转发条件(如转发顺序等)、从打印机的任务接收条件(如打印任务接收时段,月打印最大负荷、允许接收的打印张数最大值)等等。The dynamically forwarded print instruction may be a preset print task management program, and the user can query and configure the dynamically forwarded print instruction through a specific application tool such as a web page or an application program running on the terminal device, including setting the printer Basic printing parameters of each printer in the cluster, dynamic forwarding conditions of the master printer (such as forwarding sequence, etc.), task receiving conditions of slave printers (such as printing task receiving period, maximum monthly printing load, maximum number of print sheets allowed to be received), etc. Wait.

在本实施例中,当接收到动态转发打印指令时,所述主打印机可以根据自身的工作状态将接收到的打印任务进行动态转发。In this embodiment, when receiving a dynamic forwarding print instruction, the main printer can dynamically forward the received print task according to its own working state.

S103,当主打印机自身处于繁忙状态时,获取打印机许可列表,以及所述打印机许可列表中的所有从打印机的工作状态;其中,打印机许可列表包括主打印机和至少一个从打印机。S103, when the master printer itself is in a busy state, obtain a printer permission list and the working status of all slave printers in the printer permission list; wherein the printer permission list includes a master printer and at least one slave printer.

S104,当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机。S104, when at least one slave printer in the printer permission list is in a ready state, push the print task to the slave printer in a ready state.

在本实施例中,所述打印机许可列表包括打印机集群中的所有打印机,当主打印机自身处于繁忙状态时,主打印机将打印任务推送至打印机许可列表中的从打印机,将由处于就绪状态的从打印机承担打印任务。In this embodiment, the printer permission list includes all printers in the printer cluster. When the master printer itself is in a busy state, the master printer pushes the printing task to the slave printers in the printer permission list, and the slave printer in the ready state will undertake the printing task. print job.

可以理解,在其他情况下,当主打印机发生异常,如出现耗材不足,卡顿、打印头故障等情况时,也可将打印任务推送至处于就绪状态的从打印机。It can be understood that in other cases, when the master printer is abnormal, such as insufficient consumables, stuck, print head failure, etc., the print task can also be pushed to the slave printer in the ready state.

反之,当主打印机自身处于就绪状态时,不需要执行动态转发,可以立即执行打印任务,并向所述终端设备返回主打印机的名称。On the contrary, when the main printer itself is in the ready state, there is no need to perform dynamic forwarding, the printing task can be performed immediately, and the name of the main printer is returned to the terminal device.

需要说明的是,在一些实施例中,用户也可以根据实际需要通过所述终端设备选择是否执行动态转发打印指令,当用户未选择执行动态转发打印指令时,打印任务可直接推送至主打印机自身的打印队列中。在另一些实施例中,主打印机可以直接将打印任务推送至打印机许可列表中指定的一个或多个主打印机或从打印机,本发明不做具体限定。It should be noted that, in some embodiments, the user can also choose whether to execute the dynamic forwarding printing instruction through the terminal device according to actual needs. When the user does not choose to execute the dynamic forwarding printing instruction, the printing task can be directly pushed to the main printer itself. in the print queue. In other embodiments, the master printer may directly push the printing task to one or more master printers or slave printers specified in the printer permission list, which is not specifically limited in the present invention.

特别的,当打印任务中的打印数据包含特定的标识符时,主打印机可根据所述标识符类型将打印任务全部或部分推送至处于就绪状态的从打印机。In particular, when the print data in the print job contains a specific identifier, the master printer can push all or part of the print job to the slave printer in the ready state according to the identifier type.

S105,向所述终端设备返回所述从打印机的名称。S105. Return the name of the slave printer to the terminal device.

在本实施例中,当打印任务完成动态转发后,主打印机将执行打印任务的从打印机的名称发送至终端设备,并提示用户执行打印任务对应的打印机。In this embodiment, after the dynamic forwarding of the print task is completed, the master printer sends the name of the slave printer that executes the print task to the terminal device, and prompts the user to execute the printer corresponding to the print task.

综上,通过当接收到动态转发打印指令时,在主打印机自身处于繁忙状态时,当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机。从而在有多台打印机可用时,可以根据打印机自身的工作状态合理分配打印任务,减少了冗余配置,提高了打印效率,实现了负载均衡,不仅提供了打印使用上便利,提高了打印灵活性,又降低了维护成本。To sum up, when a dynamic forwarding print instruction is received, when the master printer itself is in a busy state, when at least one slave printer in the printer permission list is in a ready state, the print task is pushed to the slave printer in the ready state. printer. Therefore, when multiple printers are available, printing tasks can be reasonably allocated according to the working status of the printer itself, which reduces redundant configuration, improves printing efficiency, and achieves load balancing, which not only provides convenience for printing, but also improves printing flexibility. , and reduce maintenance costs.

在上述实施例的基础上,在一个优选的实施例中,还包括:On the basis of the above-mentioned embodiment, in a preferred embodiment, it also includes:

当所述打印机许可列表中处于就绪状态的从打印机有多个时,获取多个所述从打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;When there are multiple slave printers in the ready state in the printer permission list, obtain the historical consumption of the plurality of slave printers; wherein, the historical consumption is the accumulated printing volume or the accumulated working time;

将打印任务推送至所述打印机许可列表中历史损耗最小的从打印机;Pushing the print task to the slave printer with the smallest historical loss in the printer permission list;

向所述终端设备返回历史损耗最小的从打印机的名称。Returns the name of the slave printer with the smallest historical loss to the terminal device.

在本实施例中,当打印许可列表中处于就绪状态的打印机可能有多个时,可根据各个从打印机的历史损耗确定执行打印任务的打印机。In this embodiment, when there may be multiple printers in the ready state in the print permission list, the printers that execute the print task may be determined according to the historical consumption of each slave printer.

其中,所述打印机的历史损耗是指打印机硬件损耗,可以用累计打印量、累计工作时间、月累计打印量(低于月打印负荷)等进行表征。随着打印机打印量的增加或打印时间的延长,打印机的历史损耗增大。因此,根据历史损耗分配打印任务可以实现负载均衡,避免打印机集群中某一台打印机长期处于工作状态造成元件损耗快的情况,可以有效延长打印机集群中打印机的平均寿命。The historical loss of the printer refers to the hardware loss of the printer, which can be characterized by cumulative printing volume, cumulative working time, monthly cumulative printing volume (lower than monthly printing load), and the like. As the printing volume of the printer increases or the printing time is prolonged, the historical wear and tear of the printer increases. Therefore, allocating printing tasks according to historical losses can achieve load balancing, avoid the situation that a certain printer in the printer cluster is in a working state for a long time and cause rapid component wear and tear, and can effectively prolong the average life of printers in the printer cluster.

在上述实施例的基础上,在一个优选的实施例中,还包括:On the basis of the above-mentioned embodiment, in a preferred embodiment, it also includes:

当所述从打印机均处于繁忙状态时,获取打印机许可列表中所有打印机的等待时间;When the slave printers are all in a busy state, obtain the waiting time of all printers in the printer permission list;

将打印任务推送至所述打印机许可列表中等待时间最短的打印机;Pushing the print task to the printer with the shortest waiting time in the printer permission list;

向所述终端设备返回等待时间最短的打印机的名称。The name of the printer with the shortest waiting time is returned to the terminal device.

在本实施例中,当主打印机和从打印机均处于繁忙状态时,将自动比较所有打印机的等待时间,并由等待时间最短的打印机执行打印任务,以提高打印效率。其中,所述等待时间可通过各个打印机的任务列队中打印任务的数量、页数、大小、打印进度等参数计算得到。In this embodiment, when both the master printer and the slave printer are in a busy state, the waiting times of all the printers will be compared automatically, and the printer with the shortest waiting time will execute the printing task, so as to improve the printing efficiency. Wherein, the waiting time can be calculated by parameters such as the number, page number, size, printing progress and other parameters of printing tasks in the task queue of each printer.

在上述实施例的基础上,在一个优选的实施例中,还包括以下步骤:On the basis of the above-mentioned embodiment, in a preferred embodiment, the following steps are also included:

当所述打印机许可列表中等待时间最短的打印机有多个时,获取多个打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;When there are multiple printers with the shortest waiting time in the printer permission list, obtain the historical loss of the multiple printers; wherein, the historical loss is the cumulative printing volume or the cumulative working time;

将打印任务推送至所述打印机许可列表中历史损耗最小的打印机;Pushing the print job to the printer with the smallest historical loss in the printer permission list;

向所述终端设备返回历史损耗最小的打印机的名称。The name of the printer with the smallest historical wear is returned to the terminal device.

在本实施例中,当主打印机和从打印机均处于繁忙状态且多个打印机的等待时间均最短时,由历史损耗最小的打印机执行打印任务,可以兼顾打印机的均衡负载和打印效率,进行打印资源的合理配置。In this embodiment, when both the master printer and the slave printer are in a busy state and the waiting times of multiple printers are the shortest, the printer with the smallest historical loss executes the printing task, which can take into account the balanced load and printing efficiency of the printer, and perform the printing resource allocation. Reasonable configuration.

请参阅图2所示,本发明第二实施例提供了一种打印任务动态管理装置,包括:Referring to FIG. 2 , a second embodiment of the present invention provides a device for dynamic management of printing tasks, including:

打印任务接收单元201,用于接收终端设备发送的打印任务;A print task receiving unit 201, configured to receive a print task sent by a terminal device;

第一工作状态获取单元202,用于当接收到动态转发打印指令时,判断主打印机自身的工作状态;其中,所述工作状态包括就绪状态和繁忙状态;The first working state obtaining unit 202 is configured to judge the working state of the main printer itself when receiving the dynamic forwarding printing instruction; wherein, the working state includes a ready state and a busy state;

第二工作状态获取单元203,用于当主打印机自身处于繁忙状态时,获取打印机许可列表,以及所述打印机许可列表中的所有从打印机的工作状态;其中,打印机许可列表包括主打印机和至少一个从打印机;The second working state obtaining unit 203 is configured to obtain a printer permission list and the working states of all slave printers in the printer permission list when the master printer itself is in a busy state; wherein the printer permission list includes the master printer and at least one slave printer. printer;

第一打印任务推送单元204,用于当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机;a first print task pushing unit 204, configured to push the print task to the slave printer in the ready state when at least one slave printer in the printer permission list is in the ready state;

第一名称返回单元205,用于向所述终端设备返回所述从打印机的名称。The first name returning unit 205 is configured to return the name of the slave printer to the terminal device.

优选地,所述主打印机与所述从打印机通过以太网、蓝牙、Wi-Fi或者USB进行连接。Preferably, the master printer and the slave printer are connected through Ethernet, Bluetooth, Wi-Fi or USB.

优选地,还包括:Preferably, it also includes:

等待时间获取单元,用于当所述从打印机均处于繁忙状态时,获取打印机许可列表中所有打印机的等待时间;a waiting time obtaining unit, configured to obtain the waiting time of all printers in the printer permission list when the slave printers are all in a busy state;

第二打印任务推送单元,用于将打印任务推送至所述打印机许可列表中等待时间最短的打印机;a second printing task pushing unit, configured to push the printing task to the printer with the shortest waiting time in the printer permission list;

第二名称返回单元,用于向所述终端设备返回等待时间最短的打印机的名称。The second name returning unit is used for returning the name of the printer with the shortest waiting time to the terminal device.

优选地,还包括:Preferably, it also includes:

第一历史损耗获取单元,用于当所述打印机许可列表中等待时间最短的打印机有多个时,获取多个打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;a first historical loss acquisition unit, configured to acquire the historical loss of multiple printers when there are multiple printers with the shortest waiting time in the printer permission list; wherein, the historical loss is cumulative printing volume or cumulative working time;

第三打印任务推送单元,用于将打印任务推送至所述打印机许可列表中历史损耗最小的打印机;a third printing task pushing unit, configured to push the printing task to the printer with the smallest historical loss in the printer permission list;

第三名称返回单元,用于向所述终端设备返回历史损耗最小的打印机的名称。The third name returning unit is used for returning the name of the printer with the smallest historical loss to the terminal device.

优选地,还包括:Preferably, it also includes:

第二历史损耗获取单元,用于当所述打印机许可列表中处于就绪状态的从打印机有多个时,获取多个所述从打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;The second historical loss acquiring unit is configured to acquire the historical loss of a plurality of slave printers when there are multiple slave printers in the ready state in the printer permission list; wherein, the historical loss is the accumulated printing volume or the accumulated amount of printing. operating hours;

第四打印任务推送单元,用于将打印任务推送至所述打印机许可列表中历史损耗最小的从打印机;a fourth printing task pushing unit, configured to push the printing task to the slave printer with the smallest historical loss in the printer permission list;

第四名称返回单元,用于向所述终端设备返回历史损耗最小的从打印机的名称。The fourth name returning unit is used to return the name of the slave printer with the smallest historical loss to the terminal device.

优选地,还包括:Preferably, it also includes:

打印任务执行单元,用于当主打印机自身处于就绪状态时,执行打印任务;a print task execution unit, used for executing the print task when the main printer itself is in a ready state;

第五名称返回单元,用于向所述终端设备返回主打印机的名称。The fifth name returning unit is used for returning the name of the main printer to the terminal device.

本发明第三实施例提供了一种主打印机,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述的打印任务动态管理方法。A third embodiment of the present invention provides a main printer, including a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implements the above-mentioned printing task when executing the program Dynamic management method.

请参阅图3,本发明第四实施例提供了一种打印任务动态管理系统,包括:终端设备401、如上所述的主打印机402以及至少一个从打印机403,其中,Referring to FIG. 3, a fourth embodiment of the present invention provides a dynamic management system for printing tasks, including: a terminal device 401, the above-mentioned master printer 402, and at least one slave printer 403, wherein,

所述终端设备401,用于向所述主打印机402发送打印任务和动态转发打印指令。The terminal device 401 is configured to send a print task and a dynamic forwarding print instruction to the main printer 402 .

所述主打印机402,用于获取打印机许可列表中所有从打印机的工作状态,并当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机403;其中,打印机许可列表包括主打印机402和至少一个从打印机403,所述工作状态包括就绪状态和繁忙状态。The master printer 402 is configured to obtain the working status of all slave printers in the printer permission list, and when at least one slave printer in the printer permission list is in the ready state, push the print task to the slave printer in the ready state 403; wherein, the printer permission list includes a master printer 402 and at least one slave printer 403, and the working state includes a ready state and a busy state.

所述从打印机403,用于接收并执行所述主打印机402推送的打印任务。The slave printer 403 is configured to receive and execute the printing task pushed by the master printer 402 .

示例性地,本发明所述的计算机程序可以被分割成一个或多个模块,所述一个或者多个模块被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述实现设备中的执行过程。例如,本发明第二实施例中所述的装置。Exemplarily, the computer program of the present invention can be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the implementation device. For example, the apparatus described in the second embodiment of the present invention.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(APPlication Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述打印方法的控制中心,利用各种接口和线路连接整个所述实现文档打印方法的各个部分。The processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf processors Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., the processor is the control center of the printing method, and uses various interfaces and lines to connect the entire described implementation of the document printing method. various parts.

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现打印方法的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、文字转换功能等)等;存储数据区可存储根据用户终端的使用所创建的数据(比如音频数据、文字消息数据等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer program and/or module, and the processor implements the printing method by running or executing the computer program and/or module stored in the memory and calling the data stored in the memory. Various functions. The memory may mainly include a stored program area and a stored data area, wherein the stored program area can store an operating system, an application program required for at least one function (such as a sound playback function, a text conversion function, etc.), etc.; the stored data area can store Data (such as audio data, text message data, etc.) created according to the use of the user terminal, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card , a flash card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

其中,所述实现用户终端的模块如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一个计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。Wherein, if the module implementing the user terminal is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, the computer When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical unit, that is, it can be located in one place, or it can be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. In addition, in the drawings of the apparatus embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative effort.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited to this. Substitutions should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1.一种打印任务动态管理方法,其特征在于,包括以下步骤:1. a printing task dynamic management method, is characterized in that, comprises the following steps: 接收终端设备发送的打印任务;Receive print tasks sent by terminal equipment; 当接收到动态转发打印指令时,判断主打印机自身的工作状态;其中,所述工作状态包括就绪状态和繁忙状态;When receiving the dynamic forwarding printing instruction, determine the working state of the main printer itself; wherein, the working state includes a ready state and a busy state; 当主打印机自身处于繁忙状态时,获取打印机许可列表,以及所述打印机许可列表中的所有从打印机的工作状态;其中,打印机许可列表包括主打印机和至少一个从打印机;When the master printer itself is in a busy state, obtain the printer permission list and the working status of all slave printers in the printer permission list; wherein, the printer permission list includes the master printer and at least one slave printer; 当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机;When at least one slave printer in the printer permission list is in the ready state, push the print task to the slave printer in the ready state; 向所述终端设备返回所述从打印机的名称。Return the name of the slave printer to the terminal device. 2.根据权利要求1所述的打印任务动态管理方法,其特征在于,所述主打印机与所述从打印机通过以太网、蓝牙、Wi-Fi或者USB进行连接。2 . The method for dynamic management of printing tasks according to claim 1 , wherein the master printer and the slave printer are connected through Ethernet, Bluetooth, Wi-Fi or USB. 3 . 3.根据权利要求1所述的打印任务动态管理方法,其特征在于,还包括以下步骤:3. The method for dynamic management of printing tasks according to claim 1, further comprising the steps of: 当主打印机自身处于就绪状态时,执行打印任务;When the main printer itself is in the ready state, execute the printing task; 向所述终端设备返回主打印机的名称。Returns the name of the primary printer to the terminal device. 4.根据权利要求1所述的打印任务动态管理方法,其特征在于,还包括:4. The method for dynamic management of printing tasks according to claim 1, further comprising: 当所述打印机许可列表中处于就绪状态的从打印机有多个时,获取多个所述从打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;When there are multiple slave printers in the ready state in the printer permission list, obtain the historical consumption of the plurality of slave printers; wherein, the historical consumption is the accumulated printing volume or the accumulated working time; 将打印任务推送至所述打印机许可列表中历史损耗最小的从打印机;Pushing the print task to the slave printer with the smallest historical loss in the printer permission list; 向所述终端设备返回历史损耗最小的从打印机的名称。Returns the name of the slave printer with the smallest historical loss to the terminal device. 5.根据权利要求1所述的打印任务动态管理方法,其特征在于,还包括:5. The method for dynamic management of printing tasks according to claim 1, further comprising: 当所述从打印机均处于繁忙状态时,获取打印机许可列表中所有打印机的等待时间;When the slave printers are all in a busy state, obtain the waiting time of all printers in the printer permission list; 将打印任务推送至所述打印机许可列表中等待时间最短的打印机;Pushing the print task to the printer with the shortest waiting time in the printer permission list; 向所述终端设备返回等待时间最短的打印机的名称。The name of the printer with the shortest waiting time is returned to the terminal device. 6.根据权利要求5所述的打印任务动态管理方法,其特征在于,还包括以下步骤:6. The method for dynamic management of printing tasks according to claim 5, further comprising the steps of: 当所述打印机许可列表中等待时间最短的打印机有多个时,获取多个打印机的历史损耗;其中,所述历史损耗为累计打印量或累计工作时间;When there are multiple printers with the shortest waiting time in the printer permission list, obtain the historical loss of the multiple printers; wherein, the historical loss is the cumulative printing volume or the cumulative working time; 将打印任务推送至所述打印机许可列表中历史损耗最小的打印机;Pushing the print job to the printer with the smallest historical loss in the printer permission list; 向所述终端设备返回历史损耗最小的打印机的名称。The name of the printer with the smallest historical wear is returned to the terminal device. 7.一种打印任务动态管理装置,其特征在于,包括:7. A device for dynamic management of printing tasks, comprising: 打印任务接收单元,用于接收终端设备发送的打印任务;a print task receiving unit, configured to receive the print task sent by the terminal device; 第一工作状态获取单元,用于当接收到动态转发打印指令时,判断主打印机自身的工作状态;a first working state obtaining unit, configured to judge the working state of the main printer itself when receiving the dynamic forwarding printing instruction; 第二工作状态获取单元,用于当主打印机自身处于繁忙状态时,获取打印机许可列表,以及所述打印机许可列表中的所有从打印机的工作状态;其中,打印机许可列表包括主打印机和至少一个从打印机,所述工作状态包括就绪状态和繁忙状态;The second working state obtaining unit is configured to obtain the printer permission list and the working states of all slave printers in the printer permission list when the master printer itself is in a busy state; wherein the printer permission list includes the master printer and at least one slave printer , the working state includes a ready state and a busy state; 第一打印任务推送单元,用于当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机;a first print task push unit, configured to push the print task to the slave printer in the ready state when at least one slave printer in the printer permission list is in the ready state; 第一名称返回单元,用于向所述终端设备返回所述从打印机的名称。The first name returning unit is used for returning the name of the slave printer to the terminal device. 8.根据权利要求7所述的打印任务动态管理装置,其特征在于,还包括:8. The device for dynamic management of printing tasks according to claim 7, further comprising: 等待时间获取单元,用于当所述从打印机均处于繁忙状态时,获取打印机许可列表中所有打印机的等待时间;a waiting time obtaining unit, configured to obtain the waiting time of all printers in the printer permission list when the slave printers are all in a busy state; 第二打印任务推送单元,用于将打印任务推送至所述打印机许可列表中等待时间最短的打印机;a second printing task pushing unit, configured to push the printing task to the printer with the shortest waiting time in the printer permission list; 第二名称返回单元,用于向所述终端设备返回等待时间最短的打印机的名称。The second name returning unit is used for returning the name of the printer with the shortest waiting time to the terminal device. 9.一种主打印机,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-6任一项所述的打印任务动态管理方法。9. A main printer comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements any one of claims 1-6 when the processor executes the program The printing task dynamic management method described in item. 10.一种打印任务动态管理系统,其特征在于,包括:终端设备、如权利要求9所述的主打印机以及至少一个从打印机,其中,10. A system for dynamic management of printing tasks, comprising: a terminal device, the master printer according to claim 9, and at least one slave printer, wherein, 所述终端设备,用于向所述主打印机发送打印任务和动态转发打印指令;the terminal device, configured to send a print task and dynamically forward a print instruction to the main printer; 所述主打印机,用于获取打印机许可列表中所有从打印机的工作状态,并当所述打印机许可列表中至少一个从打印机处于就绪状态时,将所述打印任务推送至处于就绪状态的从打印机;其中,打印机许可列表包括主打印机和至少一个从打印机,所述工作状态包括就绪状态和繁忙状态;the master printer, configured to obtain the working status of all slave printers in the printer permission list, and when at least one slave printer in the printer permission list is in a ready state, push the print task to the slave printer in the ready state; Wherein, the printer permission list includes a master printer and at least one slave printer, and the working state includes a ready state and a busy state; 所述从打印机,用于接收并执行所述主打印机推送的打印任务。The slave printer is configured to receive and execute the printing task pushed by the master printer.
CN202010477014.8A 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system Active CN111813351B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210599430.4A CN115016746A (en) 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system
CN202010477014.8A CN111813351B (en) 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010477014.8A CN111813351B (en) 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210599430.4A Division CN115016746A (en) 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system

Publications (2)

Publication Number Publication Date
CN111813351A true CN111813351A (en) 2020-10-23
CN111813351B CN111813351B (en) 2022-08-26

Family

ID=72848139

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210599430.4A Pending CN115016746A (en) 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system
CN202010477014.8A Active CN111813351B (en) 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210599430.4A Pending CN115016746A (en) 2020-05-29 2020-05-29 A printing task dynamic management method, device, main printer and system

Country Status (1)

Country Link
CN (2) CN115016746A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119759302B (en) * 2025-01-06 2025-08-19 广州七梦云信息科技有限公司 Self-service printing regulation and control method and system for multiple printers

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089687A1 (en) * 2001-01-11 2002-07-11 Ferlitsch Andrew Rodney Methods and systems for print-processor-based printer status detection and print task distribution
CN1648852A (en) * 2004-01-28 2005-08-03 三星电子株式会社 Network system for commonly using local printer and method thereof
US20060227363A1 (en) * 2005-03-29 2006-10-12 Kabushiki Kaisha Toshiba Apparatus and method for managing print jobs among a plurality of printers
JP2007179371A (en) * 2005-12-28 2007-07-12 Funai Electric Co Ltd Printing system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11134143A (en) * 1997-10-27 1999-05-21 Canon Inc Printer selection device, method, and storage medium
JP3890578B2 (en) * 1998-01-19 2007-03-07 富士ゼロックス株式会社 Printing system
US8456665B2 (en) * 2001-01-11 2013-06-04 Sharp Laboratories Of America, Inc. Methods and systems for printing error recovery
JP5387213B2 (en) * 2009-07-31 2014-01-15 株式会社リコー Printing apparatus, program, and printing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089687A1 (en) * 2001-01-11 2002-07-11 Ferlitsch Andrew Rodney Methods and systems for print-processor-based printer status detection and print task distribution
CN1648852A (en) * 2004-01-28 2005-08-03 三星电子株式会社 Network system for commonly using local printer and method thereof
US20060227363A1 (en) * 2005-03-29 2006-10-12 Kabushiki Kaisha Toshiba Apparatus and method for managing print jobs among a plurality of printers
JP2007179371A (en) * 2005-12-28 2007-07-12 Funai Electric Co Ltd Printing system

Also Published As

Publication number Publication date
CN115016746A (en) 2022-09-06
CN111813351B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
US9075659B2 (en) Task allocation in a computer network
US9652150B2 (en) Global memory sharing method and apparatus, and communications system
US8717602B2 (en) Cloud computing system, document processing method, and storage medium in which a number of processing units is adjusted based on processing status
CN111258737B (en) A resource scheduling method, device and filter scheduler
EP4571506A1 (en) Resource scheduling method and related device
WO2021022985A1 (en) Cloud service processing method and device, cloud server, cloud service system and storage medium
CN106294233A (en) The transfer control method of a kind of direct memory access and device
CN109800261B (en) Dynamic control method and device for double-database connection pool and related equipment
CN106557288B (en) A method and device for obtaining print data
CN108111499B (en) Business processing performance optimization method and device, electronic equipment and storage medium
US20150079966A1 (en) Methods for facilitating telecommunication network administration and devices thereof
US11609799B2 (en) Method and system for distributed workload processing
CN114155026A (en) A resource allocation method, device, server and storage medium
US20180173473A1 (en) Method for operating a print server for digital high-capacity printing systems
CN106293945A (en) A kind of resource perception method and system across virtual machine
US7812985B2 (en) System and method for rerouting of document processing jobs
US10303404B2 (en) Method for operating a print server for digital high-capacity printing systems
CN111813351A (en) A printing task dynamic management method, device, main printer and system
US20120324095A1 (en) Image processing in a computer network
CN115189977A (en) Broadcast transmission method, system and medium based on AXI protocol
US20070279675A1 (en) System and method for intelligent management of document processing jobs
EP4057582B1 (en) Device management method and apparatus
CN113366444B (en) Information processing device, information processing system, computer-readable recording medium, and information processing method
CN114979169B (en) A network resource push method, device, storage medium and electronic device
JP2016042338A (en) Information processing system, information processing apparatus, information processing apparatus control method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee after: Xiamen Hanyin Co.,Ltd.

Country or region after: China

Address before: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee before: XIAMEN HANIN ELECTRONIC TECHNOLOGY Co.,Ltd.

Country or region before: China