Disclosure of Invention
The invention aims to provide a dynamic regulation and control method and a system for a print job, so as to realize dynamic regulation and control, file verification and hierarchical service for users.
In order to solve the technical problems, the invention provides a dynamic regulation and control method for a printing task, which comprises the following steps:
S1, the transfer stations are in one-to-one correspondence with the printers, each transfer station uploads state information of the corresponding printer to a cloud server, and the cloud server orders each printer according to the state information of the printer;
S2, the cloud server receives and judges the print file uploaded by the outside, and judges that the normal print file enters an information transmission channel;
S3, dividing the print file uploaded corresponding to the client into different information transmission channels according to the type of the client, wherein the information transmission channels comprise a primary channel representing a VIP user and a secondary channel representing a normal user, the print file entering the primary channel generates a verification layer associated with the print file and carries out simulated printing, and the accuracy of the print file is verified through the verification layer during the simulated printing;
S4, scoring and sorting the print files passing through the accuracy verification, scoring and sorting the print files entering the secondary channel at the same time, limiting the number of the print files passing through the accuracy verification and the number of the print files entering the secondary channel through the limiter, and sorting the print files passing through the limiter according to the priority rule of the print files passing through the verification layer;
S5, the print files ordered by the limiter are correspondingly transmitted to the transfer stations corresponding to the printers one by one according to the printer sequence arranged in the S1, and then the transfer stations transmit information of the print files to the printers for printing.
As a further improvement of the technical scheme, in the step S1, each transfer station is provided with the same number as the corresponding printer, and each transfer station collects the state information of the corresponding printer in real time and uploads the state information to the cloud server at intervals of 1 min;
The state information of the printer comprises damage, temporary halt and normal state information, wherein the normal state information comprises information of printer dormancy, file receiving, work in progress and work completion, and the state information of the damage and the temporary halt is acquired by the transfer device and can not be started.
As a further improvement of the technical scheme, the sequencing rule of the transfer station is to preferentially select the printer which is idle for the longest time after the completion of the task, and if the printer is in a state of receiving the file or working, the printer processing time is distributed from short to long according to the current task.
As a further improvement of the technical scheme, in S2, the cloud server determines that the rule of the print file uploaded from the outside is that the name of the print file and the document content of the print file are determined, if the name of the print file is missing or the document content of the print file is scrambled, the cloud server returns the print file to the user equipment and gives a return reason.
As a further improvement of the technical scheme, in S3, the verification layer includes a preliminary extraction layer, a feature extraction layer and a contrast elimination replacement layer, wherein an information storage port is arranged in the primary channel, a print file entering the primary channel is generated by the information storage port according to the size of the print file, and the formula is as follows: , wherein, In order to determine the number of clusters to be marked,In order to print the data volume of the document,In order to store the amount of the tag groups,The marking groups are randomly distributed in the printed file and copy part of information in the printed file;
The primary extraction layer is used for copying part of information of the printed files in the marker groups to serve as comparison groups, and the comparison groups are ordered according to the sequence of the marker groups in the printed files;
The feature extraction layer is used for extracting features of part of information of the printed file in the control group and taking the extracted feature information as a corresponding feature group;
the method comprises the steps of comparing and eliminating a replacement layer, wherein the replacement layer is used for carrying out simulated printing on a printing file, when the printing file carries out simulated printing, characteristic information in a characteristic group is matched and identified with part of information of the printing file in a mark group in the printing file, if the information identification corresponds, the characteristic group, the corresponding comparison group and the mark group are eliminated, if the information identification does not correspond, the comparison group replaces the information in the mark group, then the part of information of the corresponding printing file is replaced through the mark group, meanwhile, marking is carried out, and then a cloud server side sends a presentation result of the simulated printing to corresponding user equipment and provides a printing continuation option.
As a further improvement of the technical scheme, when the print file of the primary channel needs to be queued for printing, the print file is printed according to the waiting timeDynamic adjustmentThe formula is: , wherein, In order to update the growth radix that is already present,For an initially preset growth radix number,,For the average waiting time of the current queue,A threshold value is preset for the waiting time,Is the sensitivity coefficient.
As a further improvement of the technical scheme, virtual grid division is carried out on the printed file according to the size of the printed page selected by a user, the marker groups randomly select virtual grid nodes as insertion points, and the surrounding information is copied by taking the insertion points as the centers until the storage capacity of the marker groups is full, and the shortest distance between the marker groups is the shortestSatisfy the following requirements。
As a further improvement of the technical scheme, in the S4, the rules of scoring and sorting the printed files are sequentially and comprehensively scored according to the highest degree of urgency, the nearest deadline, the priority of task type and the earliest receiving time, the priority is gradually decreased, and finally sorting is carried out according to the total score, wherein the formula is that, wherein,For the result of the scoring the number of the scoring,As the value of the degree of urgency,For the value of the off-time score,For the task type priority value,In order to receive the time-scoring value,、、AndIn order to set the weight of the weight in the preset,。
As a further improvement of the technical scheme, in S4, the limiting rule of the limiter is dynamically adjusted based on the number of the print files verified by the verification layer, so that the total processing of the number of the print files verified by the verification layer is preferentially ensured, and 1 print file entering the secondary channel is distributed according to the proportion control after 10 print files verified by the verification layer are processed, and the print files verified by the verification layer are distributed to the print files of the secondary channel when the print files without the verification layer pass through the limiter, wherein the formula is as follows: , wherein, Is a print file of a secondary channel,To verify the number of printed documents verified by the verification layer,Representing an upward rounding.
The dynamic regulation and control system for the printing task is used for realizing the dynamic regulation and control method for the printing task and comprises a cloud server end, a transfer station and a printer;
The cloud server side comprises a file receiving module, a file distribution module and a distribution printer module, wherein the file receiving module is used for receiving print files uploaded by the outside and judging; the file distribution module is used for dividing the information transmission channel of the print file judged to be normal, performing simulated printing on the print file divided into the primary channel and sequencing the printing sequence of all the print files, and the distribution printer module is used for receiving the printer state information uploaded by the transfer station and sequencing the transfer station according to the printer state information;
The transfer station comprises an information acquisition module and an information transmission module, wherein the information acquisition module is used for acquiring corresponding printer state information in real time, and the information transmission module is used for uploading the acquired printer state information to a cloud server end at intervals of 1min and transmitting a printing task issued by the cloud server end to a printer corresponding to the transfer station;
The printer comprises an information receiving module and a printing module, wherein the information receiving module is used for receiving the printing task transmitted by the corresponding transfer station and issuing the printing task to the printing module, and the printing module is used for receiving the printing task issued by the information receiving module and executing the printing task.
Compared with the prior art, the invention has the beneficial effects that:
1. In the dynamic regulation and control method and the system for the print tasks, the processing quantity of the files in different channels is dynamically regulated according to the quantity of the print files verified by the verification layer, the full quantity processing of the print files verified by the verification layer is preferentially ensured, and the two-stage channel files are distributed in proportion. The dynamic adjustment mechanism can flexibly allocate system resources according to actual task conditions, avoid resource waste and enable the resources to be more reasonably utilized.
2. According to the dynamic regulation and control method and system for the print tasks, the cloud server side sorts the transfer stations according to the printer state information, and can preferentially select printers which are idle or have earlier working time ends, so that printer resources are fully utilized, the situations that part of printers are idle and part of printers are excessively busy are avoided, and the overall printing efficiency is improved.
3. In the dynamic regulation and control method and the system for the printing task, the printing file is divided into different information transmission channels according to the type of the client, so that differentiated services are provided for users with different requirements. The VIP user of the first-level channel can enjoy quick and accurate printing service, can predict the printing effect in advance and autonomously determine whether to continue printing or not through simulated printing, and the common user of the second-level channel can finish the printing task in reasonable time, so that the diversified requirements of different users are met.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all secondary embodiments that a person of ordinary skill in the art could obtain without making any inventive effort fall within the scope of the present invention.
In addition, the traditional static printing system has the problems that the file verification mechanism is missing, the invalid printing occupation ratio caused by file name errors or content mess codes is high, the simulation printing function is lacking, a user cannot prejudge the printing effect, the user needs to modify back and forth, and all users share the same printing channel, so that the special requirements of high-end clients on timeliness and accuracy cannot be met, and common user tasks can occupy a large amount of resources and influence the high-end service quality;
in view of the above, referring to fig. 1, it is an object of the present invention to provide a dynamic adjustment method for a print job, which includes the following steps:
S1, the transfer stations are in one-to-one correspondence with the printers, each transfer station uploads state information of the corresponding printer to a cloud server, and the cloud server orders each printer according to the state information of the printer;
S2, the cloud server receives and judges the print file uploaded by the outside, and judges that the normal print file enters an information transmission channel;
S3, dividing the print file uploaded corresponding to the client into different information transmission channels according to the type of the client, wherein the information transmission channels comprise a primary channel representing a VIP user and a secondary channel representing a normal user, the print file entering the primary channel generates a verification layer associated with the print file and carries out simulated printing, and the accuracy of the print file is verified through the verification layer during the simulated printing;
S4, scoring and sorting the print files passing through the accuracy verification, scoring and sorting the print files entering the secondary channel at the same time, limiting the number of the print files passing through the accuracy verification and the number of the print files entering the secondary channel through the limiter, and sorting the print files passing through the limiter according to the priority rule of the print files passing through the verification layer;
S5, the print files ordered by the limiter are correspondingly transmitted to the transfer stations corresponding to the printers one by one according to the printer sequence arranged in the S1, and then the transfer stations transmit the information of the print files to the printers for printing;
In the dynamic regulation and control method and the system for the print tasks, the processing quantity of the files in different channels is dynamically regulated according to the quantity of the print files verified by the verification layer, the full quantity processing of the print files verified by the verification layer is preferentially ensured, and the two-stage channel files are distributed in proportion. The dynamic adjustment mechanism can flexibly allocate system resources according to actual task conditions, avoid resource waste, enable the resources to be utilized more reasonably, and simultaneously generate a verification layer for a printing file of a primary channel and perform simulated printing, and verify the accuracy of the file through the steps of a preliminary extraction layer, a feature extraction layer, a contrast elimination substitution layer and the like. If the problem is found, the user can know and decide whether to continue printing in advance, so that the probability of actual printing errors is greatly reduced, the quality of printing service is improved, and the printing file is divided into different information transmission channels according to the type of the client, so that differentiated services are provided for users with different requirements. The VIP user of the first-level channel can enjoy quick and accurate printing service, can predict the printing effect in advance and autonomously determine whether to continue printing or not through simulated printing, and the common user of the second-level channel can finish the printing task in reasonable time, so that the diversified requirements of different users are met.
In order to facilitate management and correspondence, in step S1, each transfer station is provided with the same number as that of the corresponding printer, and each transfer station collects the status information of the corresponding printer in real time and uploads the status information to the cloud server at intervals of 1min, and the status information of the printer is mainly divided into three cases of damage, temporary halt and normal, wherein the normal status information comprises information of printer dormancy, file receiving, work completion, and failure in starting the printer collected by the transfer station, and the dynamic regulation infrastructure applicable to a large-scale distributed printing environment is constructed by the organic combination of the printer-transfer station identification system, high-frequency status collection and intelligent sequencing algorithm, so that key support is provided for functions of subsequent task scheduling, resource optimization and the like.
The sequencing rule of the transfer station is to preferentially select the printer which is idle for the longest time after the completion of the task, if the printer is in a state of receiving a file or working, the printer processing time of the current task is distributed from short to long, and the method is concretely characterized in that the first stage is that the longer the downtime is, the more preferentially is after the dormancy or working is completed, the second stage is that the shorter the time is, the more preferentially is according to the received file and the working time fed back by the printer, and the sequencing rule is designed through the double priority of the time dimension (dormancy/idle) and the task dimension (processing time), so that the optimal balance is obtained between the resource utilization rate and the task response speed, and the method is particularly suitable for the distributed printing scene with burstiness and unbalance of the printing task.
Considering that the defect of file name of the print file uploaded by a user can not be correctly identified, stored and retrieved, the subsequent task allocation mixing can be possibly caused, if the messy code content enters a printing flow, a printer idles or outputs invalid content, paper, ink and other consumables are wasted, and meanwhile, the processing time of equipment is occupied, therefore, in the step S2, the cloud server side judges that the rule of the print file uploaded by the outside is that the name of the print file and the document content of the print file are judged, if the defect of the name of the print file or the messy code of the document content of the print file occurs, the cloud server side returns the print file to the user equipment and gives a return reason, a preliminary filtering mechanism of the print file is constructed through the judging rule, the user experience and the operation efficiency are improved while the stability of the system is ensured, and the service reliability is improved;
Considering commercial value, therefore, the information transmission channel includes a primary channel representing a VIP user and a secondary channel representing a normal user, the print file uploaded corresponding to the client is divided into different information transmission channels according to the client type, and the user of the primary channel is focused on obtaining the correct print text more quickly, so the print file entering the primary channel generates a verification layer associated with the print file, the verification layer includes a preliminary extraction layer, a feature extraction layer and a contrast elimination replacement layer, the preliminary extraction layer, the feature extraction layer and the contrast elimination replacement layer are connected data spaces, and in simulating printing, the accuracy of the print file is verified through the verification layer, specifically:
Firstly, an information storage port is arranged in a primary channel, a printing file entering the primary channel is generated into different numbers of marking groups by the information storage port according to the size of the printing file, and the formula is as follows: , wherein, In order to determine the number of clusters to be marked,In order to print the data volume of the document,In order to store the amount of the tag groups,For increasing the base number, randomly distributing the marking groups in the printed file and copying part of the information in the printed file, for example, virtual grid division can be carried out on the printed file according to the size of the printed page selected by a user, the marking groups randomly select virtual grid nodes as insertion points, the insertion points are used as centers, the surrounding information is copied until the storage capacity of the marking groups is full, and the shortest distance between the marking groups is the shortest distance between the marking groupsSatisfy the following requirementsThe phenomenon of overlapping among the marker groups is avoided;
The feature extraction layer is used for extracting the features of the part of the information of the printed file in the contrast group, and the extracted features can be text style information such as fonts, word sizes, colors, thickening, inclination, underlining and the like, for example, specific fonts, word sizes and the like used by titles, or outline shapes of objects in images, such as basic shapes of circles, squares, triangles and the like, and edge information of the objects, such as outlines of buildings, figures and the like in the pictures;
finally, the contrast elimination replacing layer is used for carrying out simulated printing on the printed file, when the printed file is subjected to simulated printing, characteristic information in the characteristic groups is matched and identified with part of information of the printed file in the mark groups in the printed file, if the information identification corresponds, the characteristic groups, the corresponding contrast groups and the mark groups are eliminated, if the information identification does not correspond, the contrast groups replace the information in the mark groups, then the part of information of the corresponding printed file is replaced through the mark groups, and meanwhile, the mark is made, then the cloud server side sends a presentation result of the simulated printing to corresponding user equipment and provides a continuous printing option or not, and the verification layer is used for verifying the accuracy of the printed file, so that possible problems in the file can be found in advance, errors in the actual printing process are avoided, the number of times of repeated printing is reduced, the time of users is saved, and the working efficiency is improved. For example, in an emergency business document printing scenario, accurate and rapid output of a document can be ensured, and at the same time, the presentation result of the simulated printing enables a user to predict the effect of actual printing in advance. The user can decide whether to continue printing or withdraw the printing text for modification according to the simulation result, so that the waste of paper, ink and other resources due to printing errors is avoided, the printing cost is reduced, the user is provided with an option of whether to continue printing or not, and more independent control rights are given to the user. The user can decide the subsequent operation according to the own demand and judgment, and the personalized service can lead the user to feel better service experience, thereby improving the satisfaction degree of the user on the printing service, and for some users with higher requirements on the printing quality, the simulated printing and verification functions greatly reduce the printing error risk caused by file errors, so that the user can use the printing service more confidently;
When the print file of the primary channel needs to be queued for printing, the waiting time is used for Dynamic adjustmentThe formula is: , wherein, In order to update the growth radix that is already present,For the initial preset base number,,For the average waiting time of the current queue,A threshold value is preset for the waiting time,Dynamically adjusting the number of the marking groups by using the waiting time, thereby improving the accuracy of the printed file;
Because the print jobs of different users have differences in terms of urgency, deadline, job type, etc., in step S4, the rules of scoring and sorting print files are to comprehensively score according to the highest urgency, nearest deadline, priority of job type, earliest receiving time in turn, the priority is gradually decreased, and finally sorting according to the total score, the formula is , wherein,For the result of the scoring the number of the scoring,As the value of the degree of urgency,For the value of the off-time score,For the task type priority value,In order to receive the time-scoring value,、、AndIn order to set the weight of the weight in the preset,,The value range of (2) is between 1 and 5, and the larger the value is, the more urgent the value is; the closer the cut-off time is, The larger the value, the task type maps to a fixed priority value (e.g.:,,),; The earlier the reception time, the more, The larger the value is, but the attenuation speed is slowed down (the long-term occupation of the outdated file is avoided), the diversified demands of different users can be better met by designing the rule of the print file score and the ordering, the important and urgent tasks can be preferentially processed, meanwhile, the print file is ordered according to the rule, the urgent and important tasks can be preferentially processed, the resources are prevented from being occupied by some unimportant and urgent tasks, the overall utilization efficiency of the resources is improved, the service logic can be ensured to be followed by considering the task type priority, the important tasks can be preferentially processed, and the early submitted tasks can be preferentially processed under the condition that the second-level conditions are the same, so that certain fairness is reflected;
Because different types of clients have different demands on printing services, the use of a verification layer to verify printed documents is often an important client (such as a VIP user of a primary channel) with extremely high requirements on printing quality and accuracy, and they wish to pay more for high quality services, so that the document processing of such clients is preferably guaranteed in order to meet the strict requirements on the quality of service. The customer of the second-level channel may have relatively low requirements on timeliness and accuracy of printing, and the requirements of common customers are not ignored while important customers are guaranteed by adopting a proportional distribution mode, so that the limiting rule of the limiter is dynamically adjusted based on the number of the printing files verified by the verification layer, the total processing of the number of the printing files verified by the verification layer is preferentially guaranteed, and 1 proportion control of the printing files entering the second-level channel is distributed after the printing files verified by 10 verification layers are processed, and the printing files verified by the verification layer are completely distributed to the printing files of the second-level channel when the printing files without the verification layer pass through the limiter, wherein the formula is as follows: , wherein, Is a print file of a secondary channel,To verify the number of printed documents verified by the verification layer,The representation is rounded upwards, and the definition rule is used for preferentially guaranteeing the full processing of the print files verified by the verification layer, so that the print tasks of important clients can be timely and accurately processed. These customers typically have a high desire for print quality and efficiency, and when their needs are met, they will produce higher satisfaction and loyalty to the print service, with dynamically adjusted constraint rules enabling flexible allocation of resources according to the actual situation. When the number of the printing files verified by the verification layer is large, the concentrated resources are used for preferentially processing the files, so that the resources are prevented from being scattered to common files, the processing efficiency is improved, when the number of the files is small, the resources are allocated to the files of the secondary channel according to the proportion, the idle of the resources is avoided, the utilization efficiency of the printing resources is improved as a whole, the operation cost is reduced, meanwhile, the quantity of the files of different types is controlled by the limiter, the condition that the system load is too high due to the sudden increase of the quantity of the files of a certain type is avoided, and the stability and the reliability of the system are ensured. The system can not crash or process slowly because of the influx of a large number of files, can continuously provide stable printing service for clients, reduces inconvenience and loss caused by system faults to the clients, and is beneficial to enterprises developing markets of different levels by adopting differentiated service strategies and resource allocation modes. For high-end customers, high-quality, high-priority services are provided to meet the special requirements thereof, and for ordinary customers, basic printing services are provided at reasonable prices and at proper processing speeds. By the mode, enterprises can attract wider customer groups, promote diversified development of services and improve market competitiveness.
Referring to fig. 2, a second object of the present invention is to provide a dynamic adjustment and control system for a print job, which is configured to implement the above-mentioned dynamic adjustment and control method for a print job, including a cloud server, a transfer station, and a printer.
The cloud server side comprises a file receiving module, a file distribution module and a distribution printer module, wherein the file receiving module is used for receiving print files uploaded by the outside and judging; the file distribution module is used for dividing the information transmission channel of the print file judged to be normal, performing simulated printing on the print file divided into the primary channel and sequencing the printing sequence of all the print files, and the distribution printer module is used for receiving the printer state information uploaded by the transfer station and sequencing the transfer station according to the printer state information;
The transfer stations are equal in number and correspond to the printers one by one, and each transfer station comprises an information acquisition module and an information transmission module, wherein the information acquisition module is used for acquiring corresponding printer state information in real time, and the information transmission module is used for uploading the acquired printer state information to the cloud server end at intervals of 1min and transmitting printing tasks issued by the cloud server end to the printer corresponding to the transfer station;
the printer comprises an information receiving module and a printing module, wherein the information receiving module is used for receiving the printing task transmitted by the corresponding transfer station and issuing the printing task to the printing module, and the printing module is used for receiving the printing task issued by the information receiving module and executing the printing task.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the above-described embodiments, and that the above-described embodiments and descriptions are only preferred embodiments of the present invention, and are not intended to limit the invention, and that various changes and modifications may be made therein without departing from the spirit and scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.