A method, system, product, device, and storage medium for loading print jobs.

By detecting the operating status and memory capacity of the printing device, the highest priority print job in memory is loaded and executed first, thus solving the problem of low loading efficiency of the printing device and enabling fast loading of the next print job.

CN119806443BActive Publication Date: 2026-04-03SHENZHEN RUNTIANZHI DIGITAL EQUIP
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing printing equipment cannot load new print jobs for a long time after completing a print job, resulting in idle equipment and low loading efficiency.

Method used

By polling and detecting the operating status of the printing device, the memory capacity is obtained, and under preset conditions, print jobs with target identifiers in the preset job list are loaded into memory, controlling the printing device to execute the highest priority print job in memory first.

Benefits of technology

It improves the efficiency of printing equipment in loading the next print job immediately after completing one print job, reduces equipment waiting time, and improves equipment utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806443B_ABST
    Figure CN119806443B_ABST
Patent Text Reader

Abstract

This application discloses a method, system, product, device, and storage medium for loading print jobs, relating to the field of print device control. The method includes: polling and detecting the operating status of the print device; when a print operation is detected, obtaining the loaded capacity of the print device's memory at the detection time; if the loaded capacity meets preset conditions, loading at least one print job with a target identifier from a preset job list into memory; and controlling the print device to execute the print operation on the highest-priority print job in memory after the print operation is completed. This application, based on loading print jobs into memory when the print operation is performed, eliminates the need for the print device to wait for temporary loading of print jobs from the hard drive, instead directly executing the print operation on the highest-priority print job already loaded in memory, thus improving the efficiency of the print device in loading print jobs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of printing equipment control technology, and in particular to a method, system, product, device and storage medium for loading printing jobs. Background Technology

[0002] The current method of transmitting print jobs is that after the printing device completes a print job, it loads a new print job from the hard drive of the front-end device, and then prints the new print job after the loading is complete.

[0003] However, existing job loading methods suffer from low efficiency. Specifically, the loading time for print jobs is unpredictable due to the influence of hard drive operation and the amount of data in the print job itself. When the printing device has completed a print job, the inability to load new print jobs results in prolonged idle time as the device receives no new jobs. Therefore, improving the efficiency of print job loading has become an urgent problem to be solved. Summary of the Invention

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

[0005] The first aspect of this application provides a method for loading print jobs, including:

[0006] The operating status of the printing device is polled and detected. When the printing device is detected to be performing a printing operation, the loaded capacity of the memory of the printing device at the detection time is obtained. The loaded capacity represents the total amount of data of each print job loaded in the memory at the detection time.

[0007] If the loaded capacity meets the preset conditions, at least one print job with a target identifier in the preset job list will be loaded into the memory, wherein the target identifier indicates that the print job has not been loaded into the memory;

[0008] When the printing device completes the printing operation, it executes the printing operation on the highest priority print job in the memory.

[0009] In one possible implementation, the target identifier includes a forced load identifier and an unloaded identifier, and the step of loading at least one print job with the target identifier from the preset job list into the memory when the loaded capacity meets a preset condition includes:

[0010] If the loaded capacity is greater than the preset memory capacity threshold, determine whether there is a print job with the forced loading identifier in the preset job list. If so, load the print job with the forced loading identifier that was entered earliest into the list into the memory. If not, perform the operation step of polling and detecting the operating status of the printing device.

[0011] If the loaded capacity is not greater than a preset memory capacity threshold, determine whether there is a print job with the forced loading identifier in the preset job list. If so, load the print job with the forced loading identifier that was entered earliest into the memory. If not, determine whether there is a print job with the unloaded identifier in the preset job list.

[0012] If there is no print job with the unloaded flag in the preset job list, the operation step of polling and detecting the operating status of the printing device is performed; if there is a print job with the unloaded flag 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 flag, at least one print job with the unloaded flag is loaded into the memory.

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

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

[0015] If a deletion instruction for the print job is detected, the loading operation for 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 deletion identifier.

[0016] In one possible implementation, when a print job with the unloaded identifier exists in the preset job list, loading at least one print job with the unloaded identifier 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 identifier, includes:

[0017] If the amount of each of the data is greater than the difference, the print job with the earliest entry time and the unloaded identifier will be loaded into the memory.

[0018] If the sum of the multiple data amounts is not greater than the difference, the print job of each of the data amounts constituting the sum is loaded into the memory.

[0019] In one possible implementation, controlling the printing device to perform the printing operation on the highest-priority print job in memory after the printing operation is completed includes:

[0020] When the printing device completes the printing operation, it is determined whether there is a print job with the forced load flag in the memory. If so, the execution priority of the print job with the forced load flag that was loaded earliest is set to the highest. If not, the execution priority of the print job with the unloaded flag that was loaded earliest is set to the highest.

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

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

[0023] The detection module is used to poll and detect the operating status of the printing device, and when it is detected that the printing device is performing a printing operation, it obtains the loaded capacity of the memory of the printing device at the detection time. The loaded capacity represents the total amount of data of each print job loaded in the memory at the detection time.

[0024] A loading module is configured to load at least one print job with a target identifier from a preset job list into the memory when the loaded capacity meets preset conditions, 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 highest priority print job in the memory when the printing operation is completed.

[0026] In one possible implementation, the target identifier includes a forced loading identifier and an unloaded identifier, and the loading module is configured as follows:

[0027] If the loaded capacity is greater than the preset memory capacity threshold, determine whether there is a print job with the forced loading identifier in the preset job list. If so, load the print job with the forced loading identifier that was entered earliest into the list into the memory. If not, perform the operation step of polling and detecting the operating status of the printing device.

[0028] If the loaded capacity is not greater than a preset memory capacity threshold, determine whether there is a print job with the forced loading identifier in the preset job list. If so, load the print job with the forced loading identifier that was entered earliest into the memory. If not, determine whether there is a print job with the unloaded identifier in the preset job list.

[0029] If there is no print job with the unloaded flag in the preset job list, the operation step of polling and detecting the operating status of the printing device is performed; if there is a print job with the unloaded flag 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 flag, at least one print job with the unloaded flag is loaded into the memory.

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

[0031] The deletion module is configured to, during the process of loading at least one print job with a target identifier from a preset job list into the memory, terminate the loading operation of each print job in the loading process, 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 if a deletion instruction for the print job is detected.

[0032] In one possible implementation, when the loading module has print jobs with the unloaded identifier in the preset job list, the loading module is configured to load at least one print job with the unloaded identifier 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 identifier:

[0033] If the amount of each of the data is greater than the difference, the print job with the earliest entry time and the unloaded identifier will be loaded into the memory.

[0034] If the sum of the multiple data amounts is not greater than the difference, the print job of each of the data amounts constituting the sum is loaded into the memory.

[0035] In one possible implementation, the control module is configured as follows:

[0036] When the printing device completes the printing operation, it is determined whether there is a print job with the forced load flag in the memory. If so, the execution priority of the print job with the forced load flag that was loaded earliest is set to the highest. If not, the execution priority of the print job with the unloaded flag that was loaded earliest is set to the highest.

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

[0038] A third aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the printing job loading method of the first aspect or any implementation thereof.

[0039] A fourth aspect of this application provides an electronic device, including 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 printing job loading method of the first aspect or any implementation thereof.

[0042] The fifth aspect of this application provides a computer storage medium carrying one or more computer programs, which, when executed by an electronic device, enable the electronic device to load a print job according to the first aspect or any implementation thereof.

[0043] By employing the above technical solutions, this application provides a method, system, product, device, and storage medium for loading print jobs. By configuring the system to obtain the loaded capacity of the printing device's memory at the detection time when a printing operation is detected, and loading at least one print job with a target identifier from a preset job list into memory when the loaded capacity meets preset conditions, this application, compared to existing technologies, achieves pre-loading of unloaded print jobs into the printing device's memory during the printing operation. Subsequently, by controlling the printing device to execute the highest-priority print job in memory after completing the printing operation, the printing device, after completing the printing operation for a print job, does not need to wait for a temporary print job to be loaded from the hard drive, but directly executes the highest-priority print job already loaded in memory. Therefore, this application improves the efficiency of the printing device in loading print jobs. Attached Figure Description

[0044] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote 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 illustrating a method for loading a print job as provided in this application;

[0046] Figure 2 This application provides a flowchart for loading multiple print jobs into memory;

[0047] Figure 3 A flowchart illustrating a possible implementation of this application for a method of loading a print job;

[0048] Figure 4 A block diagram of a print job loading system provided in this application;

[0049] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation

[0050] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0051] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0052] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

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

[0054] S101. Poll and detect the operating status of the printing device, and when the printing device is detected to be performing a printing operation, obtain the loaded capacity of the printing device's memory at the detection time. The loaded capacity represents the total amount of data of each print job loaded in the memory at the detection time.

[0055] It should be noted that in practical applications, the operating status of the aforementioned printing device includes printing status and waiting status. The printing status indicates that the printing device is performing a printing operation. The operating status of the printing device can be obtained through the printing device driver and a printing device status monitoring plugin.

[0056] It should be noted that in practical applications, there are multiple ways to obtain the loaded capacity of the printing device's memory at the time of detection. Two examples are provided here:

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

[0058] Step A1: Upon detecting that the printing device is performing a printing operation, obtain the detection time and trigger step A2.

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

[0060] Example 2: This is achieved by querying a pre-defined job list, including steps B1 to B2 below.

[0061] Step B1: Read the job identifiers of each print job in memory that has unloaded tags and forced-loaded tags. Then trigger step B2.

[0062] Step B2: Find the data volume corresponding to each job identifier from the preset job list, and then determine the data volume as the above-mentioned loaded capacity.

[0063] It should be noted that in practical applications, since the printer's memory is also used to execute the print control program, excessive memory usage can cause the print control program to malfunction, thus affecting the normal operation of the printer. Therefore, this application configures the printer to obtain the loaded capacity of its memory at the time of detection when a print operation is detected. This allows for subsequent determination of whether to load a print job into memory based on preset conditions, thereby improving the reliability of print job loading.

[0064] S102. If the loaded capacity meets the preset conditions, load at least one print job with a target identifier from the preset job list into memory. The target identifier indicates that the print job has not been loaded into memory.

[0065] It should be noted that, in practical applications, the aforementioned loaded capacity meeting the preset conditions indicates that loading at least one print job with a target identifier into memory will not affect the operational reliability of the printing device. Therefore, this application improves the loading reliability of print jobs by configuring at least one print job with a target identifier from a preset job list to be loaded into memory when the loaded capacity meets the preset conditions.

[0066] It should be noted that in practical applications, step S102 is implemented when the printing device is detected to be performing a printing operation. Therefore, this application configures at least one print job with a target identifier from a preset job list to be loaded into memory when the loaded capacity meets preset conditions. This achieves the pre-loading of unloaded print jobs into the printing device's memory during the printing operation, thus improving the loading efficiency of print jobs compared to the prior art's method of loading the next print job after printing is completed.

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

[0068] S103. Control the printing device to perform a printing operation on the highest priority print job in memory after the printing operation is completed.

[0069] This application configures the printer to obtain the loaded capacity of its memory at the time of detection when a printing operation is detected. If the loaded capacity meets preset conditions, at least one print job with a target identifier from a preset job list is loaded into memory. Compared to existing technologies, this application pre-loads unloaded print jobs into the printer's memory during the printing process. Subsequently, by controlling the printer to execute the highest-priority print job in memory after completing the printing operation, the printer can directly execute the highest-priority print job already loaded in memory without waiting to temporarily load a print job from the hard drive. Therefore, this application improves the efficiency of the printer in loading print jobs.

[0070] In one possible implementation, the target identifier includes a forced load identifier and an unloaded identifier. If the loaded capacity meets a preset condition, at least one print job with the target identifier from the preset job list is loaded into memory, including:

[0071] If the loaded capacity is greater than the preset memory capacity threshold, determine whether there is a print job with a forced loading flag in the preset job list. If so, load the print job with the forced loading flag that was entered earliest into memory; otherwise, perform the operation step of polling and detecting the operating status of the printing device.

[0072] If the loaded capacity is not greater than the preset memory capacity threshold, determine whether there is a print job with a forced loading flag in the preset job list. If so, load the print job with the forced loading flag that was entered earliest into memory; otherwise, determine whether there is a print job with an unloaded flag in the preset job list.

[0073] If there are no print jobs with an unloaded flag in the preset job list, perform a polling check on the operating status of the printing device; if there are print jobs with an unloaded flag in the preset job list, load at least one print job with an unloaded flag into memory based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with an unloaded flag.

[0074] In one possible implementation, to ensure that print jobs with a forced loading flag are executed first, if the loaded capacity is no greater than a preset memory capacity threshold and there are print jobs with a forced loading flag in the preset job list, the printing device's operating status can be re-polled after the earliest loaded print job with a forced loading flag is loaded into memory. This avoids the pressure on memory caused by loading multiple print jobs and improves the operational stability of the printing device when executing print operations on print jobs with a forced loading flag.

[0075] It should be noted that in practical applications, the aforementioned preset job list is deployed on the hard drive and serves as a data table to record at least the execution order of print jobs, the identifier of each print job, and the amount of print job data. After the hard drive receives a print job, it adds each print job to the preset job list in chronological order of receipt time, without adding an "unloaded" flag to print jobs added to the list for the first time. An example of this preset job list can be shown in Table 1 below.

[0076] Table 1

[0077]

[0078] The serial numbers in Table 1 above indicate the order in which the print jobs are entered.

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

[0080] It should be noted that, in practical applications, the aforementioned forced loading flag indicates that the print job should be executed first. Since, in real-world scenarios, if the already loaded capacity does not meet the preset conditions, continuing to load print jobs into memory would increase the risk of unstable operation of the printing device. Therefore, this application reserves memory capacity by configuring a preset memory capacity threshold that represents a lower limit that does not affect the normal operation of memory. This allows for the loading of the print job with the forced loading flag, which has the earliest entry time in the preset job list and whose already loaded capacity exceeds the preset memory capacity threshold, into memory. This achieves improved timeliness of print job execution and flexibility in adjusting the execution order while ensuring the normal operation of the printing device.

[0081] In one possible implementation, the aforementioned forced loading flag may be a flag added when the print job is an input table, specifically including the following steps C1 to C2.

[0082] In step C1, the hard disk receives a print job with a forced load label sent by the front end, triggering step C2.

[0083] Step C2: The preset job list performs an input operation on the print jobs received from the hard drive, identifies the label content of the print jobs, and extracts the label content "force load" as the identifier of the corresponding print job.

[0084] In another possible implementation, the aforementioned forced loading identifier may also be an identifier obtained by modification when the print job has already been entered into the table, specifically including the following steps D1 to D2.

[0085] Step D1: The preset job list parses the job order adjustment command sent by the front end to obtain the name of the print job to be adjusted. Then, step D2 is triggered.

[0086] Step D2: The preset job list modifies the identifier of the print job with the print job name obtained in step D1 to the forced loading identifier.

[0087] It should be noted that in practical applications, the forced loading flag indicates that the print job has a higher execution priority than all other unloaded and unexecuted print jobs. Therefore, this application improves the timeliness of print job execution by configuring the system to prioritize checking whether a print job with the forced loading flag exists in the preset job list, whether the loaded capacity is greater than or less than the preset memory capacity threshold.

[0088] It should be noted that, in practical applications, the aforementioned loaded capacity not exceeding a preset memory capacity threshold indicates that the memory has sufficient capacity to store print jobs. Therefore, this application, by configuring the difference between the loaded capacity and the preset memory capacity threshold, along with the data volume of each print job marked as unloaded, loads at least one print job marked as unloaded into memory. This increases the number of print jobs loaded in memory and avoids the risk of the printing device waiting or stopping due to insufficient number of print jobs in memory, caused by the printing device performing print operations too quickly (a small data volume in a single loaded print job would lead to the printing device completing multiple print operations in a short time). Thus, this application improves the loading efficiency of print jobs through the above configuration.

[0089] In one possible implementation, during the process of loading at least one print job with a target identifier from a preset job list into memory, the above-mentioned... Figure 1 The methods for loading print jobs shown also include:

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

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

[0092] It should be noted that in practical application scenarios, since there may be cases where users cancel the execution of a print job, this application configures the system to terminate the loading operation of the print job and delete it from memory when a deletion instruction for the print job is detected. This achieves timely release of memory space, improves memory operation stability, and avoids affecting the accuracy of subsequent loading capacity extraction.

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

[0094] If all data volumes are greater than the difference, load the print job with the earliest entry time and the unloaded flag into memory;

[0095] If the sum of multiple data sets is not greater than the difference, the print jobs of the data sets that make up the sum will be loaded into memory.

[0096] It should be noted that in practical application scenarios, this application configures the earliest-entered print job with an unloaded flag to be loaded into memory when all data volumes are greater than the difference. This improves the timeliness of print job execution while avoiding impacting memory operation stability.

[0097] It should be noted that, in practical applications, this application, by configuring the printing jobs of each data volume constituting the sum to be loaded into memory when the sum of multiple data volumes does not exceed the difference, improves the timeliness of printing job execution while avoiding impacting memory operation stability. Simultaneously, it also increases the number of printing jobs loaded into memory, thereby improving the printing device's efficiency in loading printing jobs.

[0098] In one possible implementation, the method for loading the print jobs of the data quantities constituting the sum into memory when the sum of multiple data quantities is not greater than the difference can be:

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

[0100] Step S201: The data volume of the initial print job with the earliest entry time and an unloaded flag is used as the base data volume, and the name of the initial print job is added to the list of jobs to be added. Step S202 is then triggered.

[0101] Step S202: Identify the print job with an unloaded flag whose entry time is only later than the initial print job as the current print job. Then trigger step S203.

[0102] Step S203: Determine whether the sum of the current print job's data volume and the base data volume is greater than the difference. If not, trigger step S204; if yes, trigger step S206.

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

[0104] Step S205: Update the current print job to a print job with an unloaded flag whose entry time is only later than the current print job before the update. Then trigger step S203.

[0105] Step S206: Load the print jobs corresponding to each name into memory according to the names of each print job recorded in the list of jobs to be added.

[0106] In one possible implementation, the printing device, upon completion of the printing operation, executes the printing operation on the highest-priority print job in memory, including:

[0107] When the printing device completes the printing operation, it is determined whether there is a print job with a forced load flag in memory. If so, the execution priority of the print job with the forced load flag that was loaded earliest is set to the highest; otherwise, the execution priority of the print job with the unloaded flag that was loaded earliest is set to the highest.

[0108] Control the printing device to execute the printing operation on the print job with the highest priority.

[0109] To facilitate the discussion of the above... Figure 1 The method for loading print jobs shown is explained here in conjunction with one possible implementation of this application:

[0110] like Figure 3 The diagram shown is a flowchart of a method for loading a print job.

[0111] Step S301: Poll and detect the operating status of the printing device. Then trigger step S302.

[0112] Step S302: Determine whether the printing device is performing a printing operation. If yes, then trigger step S303; otherwise, trigger step S301.

[0113] Step S303: Obtain the loaded capacity of the printing device at the detection moment when a printing operation is detected. Then trigger step S304.

[0114] Step S304: Determine whether the loaded capacity is greater than the preset memory capacity threshold. If yes, then trigger step S305; otherwise, trigger step S306.

[0115] Step S305: Determine whether there is a print job with a forced loading flag in the preset job list. If yes, trigger step S307; otherwise, trigger step S301.

[0116] Step S306: Determine whether there is a print job with a forced loading flag in the preset job list. If yes, trigger step S307; otherwise, trigger step S308.

[0117] Step S307: Load the print job with the earliest entry time and the forced load flag into memory. Then trigger step S309.

[0118] Step S308: Determine whether there is a print job with an unloaded flag in the preset job list. If yes, trigger step S310; otherwise, trigger step S301.

[0119] Step S309: Determine whether a delete command has been received for a print job that is currently loading. If not, trigger step S311; if yes, trigger step S312.

[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 an unloaded flag, load at least one print job with an unloaded flag into memory. Then, step S309 is triggered.

[0121] Step S311: After completing the printing operation, control the printing device to execute the printing operation on the highest priority print job in memory. This triggers step S301.

[0122] It should be noted that in practical applications, before triggering step S311, it is necessary to verify whether each loaded print job has been successfully loaded. This verification process can be achieved by reading the contents of each loaded print job in memory and determining whether the contents are complete. Specifically: since print jobs consist of image data with row and height attributes, and the number of reads (i.e., the number of rows) should match the height when reading data row by row, the verification process can be as follows: read data from the print job row by row, record the number of rows read upon completion, and compare this number with the height attribute value. If they match, it indicates that the print job has been successfully loaded. Otherwise, it indicates that the print job has not been successfully loaded. This verification process needs to be repeated until the print job is successfully loaded.

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

[0124] It should be noted that in practical application scenarios, the above-mentioned... Figure 3 Steps S301 to S303 shown are as follows Figure 1 Possible implementations of step S101 as shown above. Figure 3Steps S304 to S310 shown are as follows Figure 1 Possible implementations of step S102 as shown above. Figure 3 Step S311 shown is as follows Figure 1 Possible implementations of step S103 shown.

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

[0126] The detection module 401 is used to poll and detect the operating status of the printing device, and when it is detected that the printing device is performing a printing operation, it obtains the loaded capacity of the printing device's memory at the detection time. The loaded capacity represents the total amount of data of each print job loaded in the memory at the detection time.

[0127] The loading module 402 is used to load at least one print job with a target identifier from the preset job list into memory when the loaded capacity meets the preset conditions. The target identifier indicates that the print job has not been loaded into memory.

[0128] The control module 403 is used to control the printing device to perform a printing operation on the highest priority print job in memory after the printing operation is completed.

[0129] In one possible implementation, the target identifier includes a forced loading identifier and an unloaded identifier, and the aforementioned loading module 402 is configured as follows:

[0130] If the loaded capacity is greater than the preset memory capacity threshold, determine whether there is a print job with a forced loading flag in the preset job list. If so, load the print job with the forced loading flag that was entered earliest into memory; otherwise, perform the operation step of polling and detecting the operating status of the printing device.

[0131] If the loaded capacity is not greater than the preset memory capacity threshold, determine whether there is a print job with a forced loading flag in the preset job list. If so, load the print job with the forced loading flag that was entered earliest into memory; otherwise, determine whether there is a print job with an unloaded flag in the preset job list.

[0132] If there are no print jobs with an unloaded flag in the preset job list, perform a polling check on the operating status of the printing device; if there are print jobs with an unloaded flag in the preset job list, load at least one print job with an unloaded flag into memory based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with an unloaded flag.

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

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

[0135] In one possible implementation, when the loading module 402 has print jobs with an unloaded flag in the preset job list, it is set to load at least one print job with an unloaded flag into memory based on the difference between the loaded capacity and the preset memory capacity threshold, and the data volume of each print job with an unloaded flag:

[0136] If all data volumes are greater than the difference, load the print job with the earliest entry time and the unloaded flag into memory;

[0137] If the sum of multiple data sets is not greater than the difference, the print jobs of the data sets that make up the sum will be loaded into memory.

[0138] In one possible implementation, the control module 403 is configured as follows:

[0139] When the printing device completes the printing operation, it is determined whether there is a print job with a forced load flag in memory. If so, the execution priority of the print job with the forced load flag that was loaded earliest is set to the highest; otherwise, the execution priority of the print job with the unloaded flag that was loaded earliest is set to the highest.

[0140] Control the printing device to execute the printing operation on the print job with the highest priority.

[0141] A third aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the loading method for a print job as described in the first aspect or any implementation thereof.

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

[0143] Memory is used to store computer programs;

[0144] The processor is used to execute computer programs to enable electronic devices to implement the method for loading print jobs according to the first aspect or any implementation thereof.

[0145] A schematic diagram of the structure of an electronic device is provided in the fourth aspect of this application, as shown below. Figure 5 As shown. The electronic devices in the embodiments of this application may include, but are not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0146] like Figure 5 As shown, the electronic device may include a processing unit (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, the RAM 503 also stores various programs and data required for the operation of the electronic device. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0147] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, memory cards, hard drives, etc.; and communication devices 509. Communication device 509 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead.

[0148] The fifth aspect of this application provides a computer storage medium carrying one or more computer programs, which, when executed by an electronic device, enable the electronic device to load a print job according to the first aspect or any implementation thereof.

[0149] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0150] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0151] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as 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, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. 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 or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A method for loading print jobs, characterized in that, include: The operating status of the printing device is polled and detected. When the printing device is detected to be performing a printing operation, the loaded capacity of the memory of the printing device at the detection time is obtained. The loaded capacity represents the total amount of data of each print job loaded in the memory at the detection time. If the loaded capacity is greater than the preset memory capacity threshold, determine whether there is a print job with the forced loading identifier in the target identifier in the preset job list. If so, load the print job with the forced loading identifier that was entered earliest into the list into the memory. If not, perform the operation step of polling and detecting the operating status of the printing device. If the loaded capacity is not greater than a preset memory capacity threshold, determine whether there is a print job with the forced loading identifier in the preset job list. If so, load the print job with the forced loading identifier that was entered earliest into the list into the memory. If not, determine whether there is a print job with the unloaded identifier in the target identifier in the preset job list. If there is no print job with the unloaded identifier in the preset job list, the operation step of polling and detecting the operating status of the printing device is executed. When there is a print job with the unloaded identifier 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 identifier, at least one print job with the unloaded identifier is loaded into the memory, and the target identifier indicates that the print job is not loaded into the memory; When the printing device completes the printing operation, it controls the printing device to execute the printing operation on the highest priority print job in the memory.

2. The method for loading a print job according to claim 1, characterized in that, The method further includes, during the process of loading at least one print job with a target identifier from a preset job list into the memory: For each of the print jobs that are in the loading process: If a deletion instruction for the print job is detected, the loading operation for 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 deletion identifier.

3. The method for loading print jobs according to claim 1, characterized in that, When a print job with the unloaded identifier exists 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 identifier, at least one print job with the unloaded identifier is loaded into the memory, including: If the amount of each of the data is greater than the difference, the print job with the earliest entry time and the unloaded identifier will be loaded into the memory. If the sum of the multiple data amounts is not greater than the difference, the print job of each of the data amounts constituting the sum is loaded into the memory.

4. The method for loading a print job according to claim 1, characterized in that, The control of the printing device to perform the printing operation on the highest priority print job in memory after the printing operation is completed includes: When the printing device completes the printing operation, it is determined whether there is a print job with the forced load flag in the memory. If so, the execution priority of the print job with the forced load flag that was loaded earliest is set to the highest. If not, the execution priority of the print job with the unloaded flag that was loaded earliest is set to the highest. The printing device is controlled to perform the printing operation on the print job with the highest execution priority.

5. A system for loading print jobs, characterized in that, include: The detection module is used to poll and detect the operating status of the printing device, and when it is detected that the printing device is performing a printing operation, it obtains the loaded capacity of the memory of the printing device at the detection time. The loaded capacity represents the total amount of data of each print job loaded in the memory at the detection time. The loading module is used to determine whether there is a print job with a forced loading identifier in the target identifier in the preset job list when the loaded capacity is greater than the preset memory capacity threshold. If so, the print job with the forced loading identifier that was entered earliest is loaded into the memory; if not, the operation step of polling and detecting the operating status of the printing device is executed. If the loaded capacity is not greater than a preset memory capacity threshold, determine whether there is a print job with the forced loading identifier in the preset job list. If so, load the print job with the forced loading identifier that was entered earliest into the list into the memory. If not, determine whether there is a print job with the unloaded identifier in the target identifier in the preset job list. If there is no print job with the unloaded identifier in the preset job list, the operation step of polling and detecting the operating status of the printing device is executed. When there is a print job with the unloaded identifier 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 identifier, at least one print job with the unloaded identifier is loaded into the memory, and the target identifier indicates that the print job is not loaded into the memory; The control module is used to control the printing device to execute the printing operation on the highest priority print job in the memory when the printing operation is completed.

6. The printing job loading system according to claim 5, characterized in that, The print job loading system also includes: The deletion module is configured to, during the process of loading at least one print job with a target identifier from a preset job list into the memory, terminate the loading operation of each print job in the loading process, 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 if a deletion instruction for the print job is detected.

7. A computer program product, characterized in that, Includes computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the method for loading a print job as described in any one of claims 1 to 4.

8. An electronic device, characterized in that, It includes 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 to enable the electronic device to implement the print job loading method as described in any one of claims 1 to 4.

9. A computer storage medium, characterized in that, The storage medium carries one or more computer programs that, when executed by an electronic device, enable the electronic device to implement the method for loading print jobs as described in any one of claims 1 to 4.

Citation Information

Patent Citations

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

    CN102722484A

  • Job processing method and device of printer, computer equipment and storage medium

    CN117742625A