Printing job loading method and system, product, equipment and storage medium

By polling to detect the running status of the printing device and loading the print job into memory when the conditions are met, the problem of long idle time in the prior art is solved, and the loading efficiency of the printing job and the running efficiency of the equipment are improved.

CN119806443AActive Publication Date: 2025-04-11SHENZHEN RUNTIANZHI DIGITAL EQUIP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411887203.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-11
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

After completing a print job, existing printing equipment needs to wait for the new print job to be loaded from the hard disk, resulting in the device being idle for too long and the loading efficiency is low.

Method used

By polling to detect the running status of the printing device, the loaded capacity of the memory is obtained. When the loaded capacity meets the preset conditions, the print job with the target identification in the preset job list is loaded to memory, and after completing the printing operation, the print job with the highest priority is executed in the memory.

Benefits of technology

The loading efficiency of the printing device for print jobs is improved, and the idle time of the device is reduced, so that the device can directly execute the next print job loaded in memory and with the highest priority after completing one print job.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806443A_ABST
    Figure CN119806443A_ABST
Patent Text Reader

Abstract

The invention discloses a printing job loading method and system, a product, equipment and a storage medium, and relates to the field of printing equipment control, and the method comprises the steps: carrying out the polling detection of the operation state of the printing equipment, obtaining the loaded capacity of the internal space of the printing equipment at the detection moment under the condition of detecting that the printing equipment executes the printing operation, and obtaining the loaded capacity of the internal space of the printing equipment; and under the condition that the loaded capacity meets the preset condition, at least one printing job with the target identifier in the preset job list is loaded to the memory, and the printing operation is executed on the printing job with the highest execution priority in the memory under the condition that the printing equipment is controlled to complete the printing operation. According to the method, the printing operation is loaded into the memory under the condition that the printing equipment executes the printing operation, so that the printing equipment does not need to wait for temporarily loading the printing operation from a hard disk, but directly executes the printing operation on the printing operation which is loaded in the memory and has the highest execution priority; and the loading efficiency of the printing equipment on the printing operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of printing device control technology, and in particular to a method, system, product, device and storage medium for loading a printing job. Background Art

[0002] The existing printing job transmission method is that after the printing device completes a printing job, a new printing job is loaded from the hard disk of the front-end device, and the new printing job is printed after the loading is completed.

[0003] However, the existing job loading method has the problem of low efficiency. Specifically, the loading time of the print job is uncontrollable due to the operating status of the hard disk and the amount of data of the print job itself. When the printing device has completed a print job, the new print job cannot be loaded for a long time, resulting in a long idle time of the printing device when it cannot receive a new print job for a long time. Therefore, how to improve the efficiency of the printing device in loading print jobs has become an urgent problem to be solved. Summary of the invention

[0004] In view of the above problems, the present application provides a method, system, product, device and storage medium for loading print jobs, so as to achieve the purpose of improving the efficiency of loading print jobs by the printing device. The specific scheme is as follows:

[0005] A first aspect of the present application provides a method for loading a print job, comprising:

[0006] Performing polling detection on the operation status of the printing device, and obtaining the loaded capacity of the memory of the printing device at the detection time when detecting that the printing device performs a printing operation, wherein the loaded capacity represents the total amount of data of each printing job loaded in the memory at the detection time;

[0007] In the case where the loaded capacity meets a preset condition, at least one print job with a target identifier in a preset job list is loaded into the memory, wherein the target identifier indicates that the print job has not been loaded into the memory;

[0008] The printing device is controlled to execute the printing operation on the printing job with the highest execution priority in the memory when the printing operation is completed.

[0009] In a possible implementation, the target identifier includes a forced loading identifier and a non-loading identifier, and when the loaded capacity satisfies a preset condition, loading at least one print job having the target identifier in a preset job list into the memory includes:

[0010] In the case where the loaded capacity is greater than the preset memory capacity threshold, determining whether there is a print job with the mandatory loading mark in the preset job list, and if so, loading the print job with the mandatory loading mark with the earliest entry time into the memory; if not, executing the operation step of polling the running status of the printing device;

[0011] In the case that the loaded capacity is not greater than the preset memory capacity threshold, determining whether there is a print job with the mandatory loading mark in the preset job list, and if so, loading the print job with the mandatory loading mark with the earliest entry time into the memory; if not, determining whether there is a print job with the unloaded mark in the preset job list;

[0012] When there is no print job with the not loaded mark in the preset job list, the operation step of polling and detecting the running status of the printing device is performed; when there is a print job with the not loaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with the not loaded mark, at least one print job with the not loaded mark is loaded into the memory.

[0013] In a possible implementation, in the process of loading at least one print job having a target identifier in the preset job list into the memory, the method further includes:

[0014] For each of the print jobs in the loading process:

[0015] When a delete instruction for the print job is detected, the loading operation of the print job is terminated, the print job is deleted from the memory, and the target identifier of the print job in the preset job list is modified to a delete identifier.

[0016] In a possible implementation, when there is a print job with the unloaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold and the data amount of each print job with the unloaded mark, at least one print job with the unloaded mark is loaded into the memory, including:

[0017] In the case that the data amounts are all greater than the difference, a print job with the earliest queue entry time and the unloaded mark is loaded into the memory;

[0018] When a sum of the plurality of data amounts is not greater than the difference, the print jobs of the respective data amounts constituting the sum are loaded into the memory.

[0019] In a possible implementation, controlling the printing device to execute the printing operation on the print job with the highest execution priority in the memory after completing the printing operation includes:

[0020] When the printing device completes the printing operation, determine whether there is a print job with the mandatory loading mark in the memory, and if so, set the execution priority of a print job with the mandatory loading mark that has the earliest loading completion time to the highest; if not, set the execution priority of a print job with the non-loading mark that has the earliest loading completion time to the highest;

[0021] The printing device is controlled to execute the printing operation on the print job having the highest execution priority.

[0022] A second aspect of the present application provides a print job loading system, comprising:

[0023] a detection module, configured to perform polling detection on the operation status of the printing device, and, if it is detected that the printing device performs a printing operation, obtain the loaded capacity of the memory of the printing device at the detection time, wherein the loaded capacity represents the total amount of data of each printing job loaded in the memory at the detection time;

[0024] A loading module, configured to load at least one print job with a target identifier in a preset job list into the memory if the loaded capacity satisfies a preset condition, wherein the target identifier indicates that the print job has not been loaded into the memory;

[0025] The control module is used to control the printing device to execute the printing operation on the printing job with the highest execution priority in the memory when the printing operation is completed.

[0026] In a possible implementation, the target identifier includes a mandatory loading identifier and a non-loading identifier, and the loading module is set to:

[0027] In the case where the loaded capacity is greater than the preset memory capacity threshold, determining whether there is a print job with the mandatory loading mark in the preset job list, and if so, loading the print job with the mandatory loading mark with the earliest entry time into the memory; if not, executing the operation step of polling the running status of the printing device;

[0028] In the case that the loaded capacity is not greater than the preset memory capacity threshold, determining whether there is a print job with the mandatory loading mark in the preset job list, and if so, loading the print job with the mandatory loading mark with the earliest entry time into the memory; if not, determining whether there is a print job with the unloaded mark in the preset job list;

[0029] When there is no print job with the not loaded mark in the preset job list, the operation step of polling and detecting the running status of the printing device is performed; when there is a print job with the not loaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with the not loaded mark, at least one print job with the not loaded mark is loaded into the memory.

[0030] In a possible implementation, the print job loading system further includes:

[0031] A deletion module is used to, during the process of loading at least one print job with a target identifier in a preset job list into the memory, terminate the loading operation of each print job in the loading process upon detecting a deletion instruction for the print job, delete the print job from the memory, and modify the target identifier of the print job in the preset job list to a deletion identifier.

[0032] In a possible implementation, when there is a print job with the unloaded mark in the preset job list, the loading module is set to load at least one print job with the unloaded mark into the memory based on the difference between the loaded capacity and the preset memory capacity threshold and the data volume of each print job with the unloaded mark:

[0033] In the case that the data amounts are all greater than the difference, a print job with the earliest queue entry time and the unloaded mark is loaded into the memory;

[0034] When a sum of the plurality of data amounts is not greater than the difference, the print jobs of the respective data amounts constituting the sum are loaded into the memory.

[0035] In a possible implementation, the control module is configured to:

[0036] When the printing device completes the printing operation, determine whether there is a print job with the mandatory loading mark in the memory, and if so, set the execution priority of a print job with the mandatory loading mark that has the earliest loading completion time to the highest; if not, set the execution priority of a print job with the non-loading mark that has the earliest loading completion time to the highest;

[0037] The printing device is controlled to execute the printing operation on the print job having the highest execution priority.

[0038] A third aspect of the present application provides a computer program product, comprising computer-readable instructions, which, when executed on an electronic device, enables the electronic device to implement the method for loading a print job according to the first aspect or any implementation of the first aspect.

[0039] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0040] The memory is used to store computer programs;

[0041] The processor is used to execute the computer program so that the electronic device can implement the method for loading a print job according to the first aspect or any implementation of the first aspect.

[0042] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can load the printing job of the above-mentioned first aspect or any implementation method of the first aspect.

[0043] By means of the above technical scheme, the present application provides a method, system, product, device and storage medium for loading a print job. When the printing device is detected to be performing a print operation, the loaded capacity of the memory of the printing device at the detection time is obtained by configuration, and when the loaded capacity meets the preset conditions, at least one print job with a target identifier in the preset job list is loaded into the memory, so that compared with the prior art, the present application realizes that the unloaded print jobs are pre-loaded into the memory of the printing device during the printing operation of the printing device. Subsequently, by controlling the printing device to perform a print operation on a print job with the highest execution priority in the memory when the print operation is completed, the printing device, after completing the print operation on a print job, does not need to wait for the print job to be temporarily loaded from the hard disk, but directly performs the print operation on a print job that has been loaded and has the highest execution priority in the memory. It can be seen that the present application improves the efficiency of the printing device in loading print jobs. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0045] Figure 1 A flowchart of a method for loading a print job provided by the present application;

[0046] Figure 2 A flowchart for loading multiple print jobs into memory provided by the present application;

[0047] Figure 3 A flowchart of a method for loading a print job provided for a possible implementation of the present application;

[0048] Figure 4 A block diagram of a printing job loading system provided by the present application;

[0049] Figure 5 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0050] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0051] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0052] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0053] The first aspect of the present application provides a method for loading a print job, such as Figure 1 As shown, the method for loading the print job includes:

[0054] S101. Perform polling detection on the operation status of the printing device, and when it is detected that the printing device performs a printing operation, obtain the loaded capacity of the memory of the printing device at the detection time, where the loaded capacity represents the total amount of data of each printing job loaded into the memory at the detection time.

[0055] It should be noted that, in actual application scenarios, the operating status of the printing device includes a printing status and a waiting status, wherein the printing status represents that the printing device performs a printing operation. The operating status of the printing device can be obtained by obtaining a printing device status monitoring plug-in through the driver of the printing device.

[0056] It should be noted that, in actual application scenarios, there are multiple implementation methods for obtaining the loaded capacity of the memory of the printing device at the detection time, and two examples are provided here:

[0057] Example 1: Implemented by querying the memory write log, including the following steps A1 to A2.

[0058] Step A1, when it is detected that the printing device performs a printing operation, the detection time is obtained, and step A2 is triggered.

[0059] Step A2, retrieve the memory write log, filter the print jobs that have been loaded and not deleted within the target period and their corresponding data volumes, and determine the sum of the obtained data volumes as the above-mentioned loaded capacity. The end time of the above-mentioned target period is the detection time obtained in the above-mentioned step A1, and the start time of the above-mentioned target period is a historical detection time adjacent to the detection time.

[0060] Example 2: implemented by querying a preset job list, including the following steps B1 to B2.

[0061] Step B1, read the job identification of each print job with unloaded tags and forced load tags in the memory, and trigger step B2.

[0062] Step B2, searching the preset job list for the data volume corresponding to each job identifier, and then determining each data volume as the above-mentioned loaded capacity.

[0063] It should be noted that in actual application scenarios, since the memory of the printing device is also used to execute the printing control program, if a large amount of memory is occupied, the printing control program will not be able to run normally, thereby affecting the normal operation of the printing device. Therefore, the present application is configured to obtain the loaded capacity of the memory of the printing device at the time of detection when the printing device is detected to perform a printing operation, so as to determine whether to load the print job into the memory through subsequent preset conditions, thereby improving the loading reliability of the print job.

[0064] S102: When the loaded capacity meets a preset condition, at least one print job with a target identifier in the preset job list is loaded into the memory, wherein the target identifier indicates that the print job is not loaded into the memory.

[0065] It should be noted that, in actual application scenarios, the above-mentioned loaded capacity meets the preset condition, indicating that loading at least one print job with a target identifier into the memory will not affect the operating reliability of the printing device. Therefore, the present application improves the loading reliability of the print job by configuring that when the loaded capacity meets the preset condition, at least one print job with a target identifier in the preset job list is loaded into the memory.

[0066] It should be noted that, in actual application scenarios, since the above step S102 is implemented when it is detected that the printing device is performing a printing operation, the present application configures that when the loaded capacity meets the preset conditions, at least one printing job with a target identifier in the preset job list is loaded into the memory, thereby preloading the unloaded printing job into the memory of the printing device during the printing operation of the printing device, so that compared with the prior art method of loading the next printing job after printing is completed, the present application improves the loading efficiency of the printing job.

[0067] It should be noted that, in actual application scenarios, if the loaded capacity does not meet the above preset conditions, step S103 is directly triggered, and step S101 is triggered when the printing device starts to print a print job with the highest execution priority in the memory.

[0068] S103: Control the printing device to execute a printing operation on a printing job with the highest execution priority in the memory when the printing operation is completed.

[0069] The present application is configured to obtain the loaded capacity of the memory of the printing device at the detection time when the printing device is detected to be performing a printing operation, and to load at least one printing job with a target identifier in the preset job list into the memory when the loaded capacity meets the preset conditions, so that compared with the prior art, the present application realizes that the unloaded printing jobs are pre-loaded into the memory of the printing device when the printing device is performing a printing operation. Subsequently, by controlling the printing device to perform a printing operation on a printing job with the highest execution priority in the memory when the printing operation is completed, the printing device does not need to wait for the temporary loading of the printing job from the hard disk after completing the printing operation of a printing job, but directly performs the printing operation on a printing job that has been loaded and has the highest execution priority in the memory. It can be seen that the present application improves the efficiency of the printing device in loading printing jobs.

[0070] In a possible implementation, the target identifier includes a forced loading identifier and a non-loading identifier, and when the loaded capacity meets a preset condition, at least one print job with the target identifier in the preset job list is loaded into the memory, including:

[0071] In the case where the loaded capacity is greater than the preset memory capacity threshold, it is determined whether there is a print job with a mandatory loading mark in the preset job list, and if so, a print job with a mandatory loading mark that is entered into the queue earliest is loaded into the memory; if not, an operation step of polling and detecting the running status of the printing device is performed;

[0072] In the case that the loaded capacity is not greater than the preset memory capacity threshold, it is determined whether there is a print job with a mandatory loading mark in the preset job list, and if so, a print job with a mandatory loading mark that is entered into the queue earliest is loaded into the memory; if not, it is determined whether there is a print job with a non-loaded mark in the preset job list;

[0073] When there is no print job with a not loaded mark in the preset job list, the operation steps of polling and detecting the running status of the printing device are performed; when there is a print job with a not loaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with the not loaded mark, at least one print job with a not loaded mark is loaded into the memory.

[0074] In one possible implementation, in order to ensure that print jobs with a forced loading flag are given priority in executing printing operations, when the loaded capacity is not greater than the preset memory capacity threshold and there are print jobs with a forced loading flag in the preset job list, it can be configured that after the print job with the forced loading flag that is entered into the queue earliest is loaded into the memory, the printing device operation status is polled again to avoid the pressure on the memory caused by loading multiple print jobs, thereby improving the operating stability of the printing device when performing printing operations on print jobs with a forced loading flag.

[0075] It should be noted that, in actual application scenarios, the above-mentioned preset job list is deployed in the hard disk, and is a data table for recording at least the execution order of the print job, the identifier of the print job, and the amount of print job data. After the hard disk receives the print job, each print job will be added to the preset job list in the order of the receiving time from the first to the last, and the print job that is not entered into the table for the first time will be marked as not loaded. An example of the preset job list can be shown in Table 1 below.

[0076] Table 1

[0077]

[0078] The sequence numbers in the above Table 1 represent the order in which the print jobs are queued.

[0079] It should be noted that, in actual application scenarios, the above preset memory capacity threshold is a lower limit that does not affect the normal operation of the memory.

[0080] It should be noted that, in actual application scenarios, the above-mentioned forced loading mark is a mark that indicates that the print job needs to be executed first. In actual application scenarios, if the loaded capacity does not meet the preset conditions, it indicates that continuing to load the print job into the memory will increase the risk of unstable operation of the printing device. Therefore, the present application reserves memory capacity by configuring a preset memory capacity threshold that indicates the lower limit value that does not affect the normal operation of the memory, so that when the loaded capacity is greater than the preset memory capacity threshold and the print job with the earliest entry time in the preset job list is loaded into the memory, the timeliness of the execution of the print job and the flexibility of adjusting the execution order are improved while ensuring the normal operation of the printing device.

[0081] In a possible implementation, the mandatory loading flag may be a flag added when the print job is entered into a table, which specifically includes the following steps C1 to C2.

[0082] In step C1, the hard disk receives a print job with a mandatory loading tag sent by the front end, and triggers step C2.

[0083] Step C2, the preset job list performs a table entry operation on the print job received by the hard disk, identifies the label content of the print job, and extracts the label content "forced loading" as the identifier of the corresponding print job.

[0084] In another possible implementation, the above-mentioned mandatory loading mark can also be a mark obtained by modification when the print job has been entered into the table, which specifically includes the following steps D1 to D2.

[0085] Step D1, the preset job list parses the job order adjustment instruction sent by the front end to obtain the name of the print job to be adjusted, and triggers step D2.

[0086] Step D2, the preset job list modifies the identifier of the print job having the print job name obtained in step D1 in the table into a forced loading identifier.

[0087] It should be noted that in actual application scenarios, since the mandatory loading mark indicates that the execution priority of the print job is higher than all other print jobs that have not been loaded and have not been executed. Therefore, the present application is configured to give priority to judging whether there is a print job with a mandatory loading mark in the preset job list when the loaded capacity is greater than the preset memory capacity threshold and when the loaded capacity is not greater than the preset memory capacity threshold, thereby improving the timeliness of the execution of the print job.

[0088] It should be noted that, in actual application scenarios, the fact that the above-mentioned loaded capacity is not greater than the preset memory capacity threshold indicates that the memory has sufficient capacity for storing print jobs. Therefore, the present application increases the number of print jobs loaded in the memory by configuring the difference between the loaded capacity and the preset memory capacity threshold and the data volume of each print job with the unloaded mark, thereby avoiding the risk of the printing device waiting or stopping due to the printing operation being executed too quickly (the data volume of a single loaded print job is too small, which will cause the printing device to execute multiple printing operations in a short time) and the number of print jobs loaded in the memory is too small. It can be seen that the present application improves the loading efficiency of print jobs through the above configuration.

[0089] In a possible implementation, in the process of loading at least one print job having a target identifier in the preset job list into the memory, the above-mentioned Figure 1 The method for loading the print job shown also includes:

[0090] For each print job that is in the process of loading:

[0091] When a delete instruction for the print job is detected, the loading operation of the print job is terminated, the print job is deleted from the memory, and the target identifier of the print job in the preset job list is modified to a delete identifier.

[0092] It should be noted that in actual application scenarios, since there is a situation where the user cancels the execution of a certain print job, the present application is configured to terminate the loading operation of the print job when a delete instruction for the print job is detected, and delete the print job from the memory, thereby achieving timely release of memory space, improving the stability of memory operation, and avoiding affecting the extraction accuracy of subsequent loaded capacity.

[0093] In a possible implementation, when there is a print job with a not-loaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold and the data volume of each print job with the not-loaded mark, at least one print job with the not-loaded mark is loaded into the memory, including:

[0094] When the data amounts are all greater than the difference, a print job with the earliest queue entry time and a non-loaded mark is loaded into the memory;

[0095] When the sum of the plurality of data amounts is not greater than the difference value, the print jobs of the respective data amounts constituting the sum are loaded into the memory.

[0096] It should be noted that in actual application scenarios, this application is configured to load a print job with the earliest entry time and a non-loaded mark into the memory when the data amounts are all greater than the difference, thereby avoiding affecting the stability of memory operation while improving the timeliness of the execution of the print job.

[0097] It should be noted that, in actual application scenarios, this application configures that when the sum of multiple data amounts is not greater than the difference, the print jobs of each data amount constituting the sum are loaded into the memory, thereby avoiding affecting the stability of memory operation and improving the timeliness of the execution of the print jobs. At the same time, it also increases the number of print jobs loaded in the memory and improves the efficiency of the printing device in loading print jobs.

[0098] In a possible implementation, when the sum of the multiple data amounts is not greater than the difference, the implementation method of loading the print jobs of the data amounts constituting the sum into the memory may be:

[0099] like Figure 2 The figure shows a flowchart of loading multiple print jobs into memory. The specific steps are as follows:

[0100] Step S201, taking the data volume of an initial print job with an unloaded mark and the earliest entry time as the basic data volume, and adding the name of the initial print job to the list of jobs to be added, and triggering step S202.

[0101] Step S202: a print job with a not-loaded flag and whose entry time is later than the initial print job is determined as the current print job, and step S203 is triggered.

[0102] Step S203, judging whether the sum of the data volume of the current print job and the basic data volume is greater than the difference. If not, triggering step S204, and if so, triggering step S206.

[0103] Step S204: update the basic data volume to the sum of the data volume of the current print job and the basic data volume, and add the name of the current print job to the list of jobs to be added, and trigger step S205.

[0104] Step S205, updating the current print job to a print job with a not-loaded flag whose entry time is later than that of the current print job before the update, and triggering step S203.

[0105] Step S206 , according to the names of the print jobs recorded in the list of jobs to be added, the print jobs corresponding to the names are loaded into the memory.

[0106] In a possible implementation, controlling the printing device to execute a printing operation on a print job with the highest execution priority in the memory after completing the printing operation includes:

[0107] When the printing device completes the printing operation, it is determined whether there is a print job with a mandatory loading mark in the memory. If so, the execution priority of a print job with a mandatory loading mark that has the earliest loading completion time is set to the highest; if not, the execution priority of a print job with a non-loading mark that has the earliest loading completion time is set to the highest;

[0108] The printing device is controlled to execute a printing operation on a print job having the highest execution priority.

[0109] In order to facilitate the above Figure 1 The understanding of the method for loading the print job shown is explained here in conjunction with a possible implementation of the present application:

[0110] like Figure 3 Shown is a flow chart of a method for loading a print job.

[0111] Step S301, polling to detect the operating status of the printing device, and triggering step S302.

[0112] Step S302, determining whether the printing device performs a printing operation. If yes, step S303 is triggered, if no, step S301 is triggered.

[0113] Step S303, obtaining the loaded capacity of the printing device at the time of detecting the execution of the printing operation, and triggering step S304.

[0114] Step S304, determining whether the loaded capacity is greater than a preset memory capacity threshold, if so, triggering step S305, if not, triggering step S306.

[0115] Step S305, determining whether there is a print job with a mandatory loading flag in the preset job list, if yes, triggering step S307, if no, triggering step S301.

[0116] Step S306, determining whether there is a print job with a mandatory loading flag in the preset job list, if yes, triggering step S307, if no, triggering step S308.

[0117] Step S307, loading the earliest print job with a mandatory loading flag into the memory, and triggering step S309.

[0118] Step S308, determining whether there is a print job with a not loaded mark in the preset job list, if yes, triggering step S310, if no, triggering step S301.

[0119] Step S309, determining whether a delete instruction for the print job in the loading process is received. If not, step S311 is triggered, and if yes, step S312 is triggered.

[0120] Step S310, based on the difference between the loaded capacity and the preset memory capacity threshold and the data volume of each print job with a not-loaded mark, at least one print job with a not-loaded mark is loaded into the memory, and step S309 is triggered.

[0121] Step S311, controlling the printing device to execute a printing operation for a printing job with the highest execution priority in the memory when the printing operation is completed, and triggering step S301.

[0122] It should be noted that, in actual application scenarios, before triggering the above step S311, it is necessary to verify whether each loaded print job has been loaded. The verification process can be achieved by reading the content of each loaded print job in the memory and judging whether the content is complete. Specifically: Since the print job is composed of image data, it has row and height attributes, and when reading data by row, the number of reads (i.e., the number of rows) should be consistent with the height. The verification process can be to read the data of the print job by row, and record the number of rows read when the reading is completed, and compare the number of rows read with the attribute value of the height. If they are consistent, it indicates that the print job has been loaded. Otherwise, it indicates that the print job has not been loaded. At this time, the verification process needs to be repeated until the print job is loaded.

[0123] Step S312, terminate the loading operation of the print job corresponding to the deletion instruction, delete the print job from the memory, and modify the identifier of the print job in the preset job list to a deletion identifier, and trigger step S311.

[0124] It should be noted that in actual application scenarios, the above Figure 3 Steps S301 to S303 are as shown in FIG. Figure 1 The possible implementation of step S101 is shown in FIG. Figure 3Steps S304 to S310 are as shown in FIG. Figure 1 The possible implementation of step S102 is shown in FIG. Figure 3 Step S311 shown is as follows Figure 1 A possible implementation of step S103 is shown.

[0125] A second aspect of the present application provides a system for loading a print job, such as Figure 4 As shown, the printing job loading system includes:

[0126] The detection module 401 is used to perform polling detection on the operation status of the printing device, and when it is detected that the printing device performs a printing operation, obtain the loaded capacity of the memory of the printing device at the detection time, where the loaded capacity represents the total amount of data of each printing job loaded in the memory at the detection time;

[0127] A loading module 402, configured to load at least one print job with a target identifier in a preset job list into the memory when the loaded capacity meets a preset condition, wherein the target identifier indicates that the print job has not been loaded into the memory;

[0128] The control module 403 is used to control the printing device to execute a printing operation on a printing job with the highest execution priority in the memory when the printing operation is completed.

[0129] In a possible implementation, the target flag includes a mandatory loading flag and a non-loading flag, and the loading module 402 is configured as:

[0130] In the case where the loaded capacity is greater than the preset memory capacity threshold, it is determined whether there is a print job with a mandatory loading mark in the preset job list, and if so, a print job with a mandatory loading mark that is entered into the queue earliest is loaded into the memory; if not, an operation step of polling and detecting the running status of the printing device is performed;

[0131] In the case that the loaded capacity is not greater than the preset memory capacity threshold, it is determined whether there is a print job with a mandatory loading mark in the preset job list, and if so, a print job with a mandatory loading mark that is entered into the queue earliest is loaded into the memory; if not, it is determined whether there is a print job with a non-loaded mark in the preset job list;

[0132] When there is no print job with a not loaded mark in the preset job list, the operation steps of polling and detecting the running status of the printing device are performed; when there is a print job with a not loaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with the not loaded mark, at least one print job with a not loaded mark is loaded into the memory.

[0133] In one possible implementation, the above Figure 4 The print job loading system shown also includes:

[0134] A deletion module is used to, during the process of loading at least one print job with a target identifier in a preset job list into a memory, terminate the loading operation of the print job upon detecting a deletion instruction for the print job, delete the print job from the memory, and modify the target identifier of the print job in the preset job list to a deletion identifier for each print job in the loading process.

[0135] In a possible implementation, when there is a print job with a not-loaded mark in the preset job list, the loading module 402 is set to load at least one print job with a not-loaded mark into the memory based on the difference between the loaded capacity and the preset memory capacity threshold and the data volume of each print job with a not-loaded mark:

[0136] When the data amounts are all greater than the difference, a print job with the earliest queue entry time and a non-loaded mark is loaded into the memory;

[0137] When the sum of the plurality of data amounts is not greater than the difference value, the print jobs of the respective data amounts constituting the sum are loaded into the memory.

[0138] In a possible implementation, the control module 403 is configured to:

[0139] When the printing device completes the printing operation, it is determined whether there is a print job with a mandatory loading mark in the memory. If so, the execution priority of a print job with a mandatory loading mark that has the earliest loading completion time is set to the highest; if not, the execution priority of a print job with a non-loading mark that has the earliest loading completion time is set to the highest;

[0140] The printing device is controlled to execute a printing operation on a print job having the highest execution priority.

[0141] A third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the method for loading a print job according to the first aspect or any implementation of the first aspect.

[0142] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0143] The memory is used to store computer programs;

[0144] The processor is used to execute a computer program so that the electronic device can implement the method for loading a print job according to the first aspect or any implementation of the first aspect.

[0145] A structural schematic diagram of an electronic device provided in the fourth aspect of the present application is as follows Figure 5 The electronic devices in the embodiments of the present application may include but are not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, and the like. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0146] like Figure 5 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0147] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a memory card, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0148] The fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can load the printing job of the above-mentioned first aspect or any implementation method of the first aspect.

[0149] It should also be noted that the device embodiments described above are merely 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 units, that is, they may be located in one place, or they may 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 scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, 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.

[0150] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0151] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0152] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A method for loading a print job, characterized in that: include: Performing polling detection on the operation status of the printing device, and obtaining the loaded capacity of the memory of the printing device at the detection time when detecting that the printing device performs a printing operation, wherein the loaded capacity represents the total amount of data of each printing job loaded in the memory at the detection time; In the case where the loaded capacity meets a preset condition, at least one print job with a target identifier in a preset job list is loaded into the memory, wherein the target identifier indicates that the print job has not been loaded into the memory; The printing device is controlled to execute the printing operation on the printing job with the highest execution priority in the memory when the printing operation is completed.

2. The method for loading a print job according to claim 1, characterized in that: The target identifier includes a forced loading identifier and a non-loading identifier, and when the loaded capacity meets a preset condition, loading at least one print job with the target identifier in the preset job list into the memory includes: In the case where the loaded capacity is greater than the preset memory capacity threshold, determining whether there is a print job with the mandatory loading mark in the preset job list, and if so, loading the print job with the mandatory loading mark with the earliest entry time into the memory; if not, executing the operation step of polling the running status of the printing device; In the case that the loaded capacity is not greater than the preset memory capacity threshold, determining whether there is a print job with the mandatory loading mark in the preset job list, and if so, loading the print job with the mandatory loading mark with the earliest entry time into the memory; if not, determining whether there is a print job with the unloaded mark in the preset job list; When there is no print job with the not loaded mark in the preset job list, the operation step of polling and detecting the running status of the printing device is performed; when there is a print job with the not loaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with the not loaded mark, at least one print job with the not loaded mark is loaded into the memory.

3. The method for loading a print job according to claim 1, characterized in that: In the process of loading at least one print job having a target identifier in the preset job list into the memory, the method further comprises: For each of the print jobs in the loading process: When a delete instruction for the print job is detected, the loading operation of the print job is terminated, the print job is deleted from the memory, and the target identifier of the print job in the preset job list is modified to a delete identifier.

4. The method for loading a print job according to claim 2, characterized in that: When there is a print job with the unloaded mark in the preset job list, based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with the unloaded mark, at least one print job with the unloaded mark is loaded into the memory, comprising: In the case that the data amounts are all greater than the difference, a print job with the earliest queue entry time and the unloaded mark is loaded into the memory; When a sum of the plurality of data amounts is not greater than the difference, the print jobs of the respective data amounts constituting the sum are loaded into the memory.

5. The method for loading a print job according to claim 2, characterized in that: The controlling the printing device to execute the printing operation on the print job with the highest execution priority in the memory after the printing operation is completed includes: When the printing device completes the printing operation, determine whether there is a print job with the mandatory loading mark in the memory, and if so, set the execution priority of a print job with the mandatory loading mark that has the earliest loading completion time to the highest; if not, set the execution priority of a print job with the non-loading mark that has the earliest loading completion time to the highest; The printing device is controlled to execute the printing operation on the print job having the highest execution priority.

6. A printing job loading system, characterized in that: include: a detection module, configured to perform polling detection on the operation status of the printing device, and, if it is detected that the printing device performs a printing operation, obtain the loaded capacity of the memory of the printing device at the detection time, wherein the loaded capacity represents the total amount of data of each printing job loaded in the memory at the detection time; A loading module, configured to load at least one print job with a target identifier in a preset job list into the memory if the loaded capacity satisfies a preset condition, wherein the target identifier indicates that the print job has not been loaded into the memory; The control module is used to control the printing device to execute the printing operation on the printing job with the highest execution priority in the memory when the printing operation is completed.

7. The print job loading system according to claim 6, characterized in that: The printing job loading system also includes: A deletion module is used to, during the process of loading at least one print job with a target identifier in a preset job list into the memory, terminate the loading operation of each print job in the loading process upon detecting a deletion instruction for the print job, delete the print job from the memory, and modify the target identifier of the print job in the preset job list to a deletion identifier.

8. A computer program product, characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the method for loading a print job as claimed in any one of claims 1 to 5.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the method for loading a print job as described in any one of claims 1 to 5.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the method for loading a print job as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Printing control method and device

    CN101364167A

  • A file-buffering method, a device thereof and application thereof

    CN102722484A

  • Printing task generating and controlling system for printer

    CN104850366A

  • Bill printing method and device

    CN110865776A

  • Print file processing method and device

    CN113253956A