A printing method, device and storage medium for continuously producing multiple copies of the same job
By adopting a continuous production method in the printer, the initialization and termination actions of the printer when printing multiple copies are reduced, the printing efficiency is improved, and the problem of low efficiency of traditional printers is solved.
Patent Information
- Application Number
- CN202410053186.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-01-12
AI Technical Summary
When traditional printers print each job, the spray truck needs to return the head to the warehouse and then print it out again, resulting in low efficiency and unable to meet the demand for improved production efficiency.
Using the printing method of continuous production, by creating a printing task at one time, sending large printing unit data to the printer, and stopping after each small printing unit is completed, the user can press the continue printing button, and the printer automatically switches to the next small unit to continue printing. , to avoid repeated initialization and termination actions.
It improves printing efficiency, reduces the frequency of initialization and end actions of the printer when printing multiple copies, and enhances the printer's automatic switching and adjustment capabilities.
Smart Images

Figure CN118034617B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of printers, and in particular to a method, device and storage medium for continuously producing a plurality of identical job printings. Background Art
[0002] For traditional multi-copy printing tasks, the inkjet printer needs to return to the warehouse to seal the head and then come out to print for each job, which cannot meet the needs of improving production efficiency. The customer requires that the task be started only once and the print initialization action be performed only once. Subsequent actions switch to different printing areas according to the identification of different jobs. Summary of the invention
[0003] The present invention aims to solve the problem of low efficiency that when printing each job, the inkjet printer needs to return to the magazine to seal the head and then come out to print again. A printing method, device and storage medium for printing multiple jobs of the same task in a continuous production mode are provided.
[0004] The technical solution of the present invention is as follows:
[0005] The present invention provides a method for continuously producing multiple copies of the same job printing, the steps of which are as follows:
[0006] S1. Go online, start the printer control software and establish a connection with the printer;
[0007] S2. Load file: the user loads the file to be printed and sets the number of copies to be printed;
[0008] S3. Open the file. The printer control software opens the file to be printed;
[0009] S4. Initial printing, initializing all printing data, printing status, and printing equipment;
[0010] S5. Start printing, create a print task, and send a start printing command;
[0011] S6. The number of copies printed decreases, and the total number of copies printed decreases by 1;
[0012] S7 determines the number of copies, determines whether the number of copies printed is zero, if not zero, returns to step S6;
[0013] S8. End printing, end the printing task;
[0014] S9. Exit printing, exit the print task, and turn off the printer.
[0015] In order to better perform the continuous printing task, S5 of the present invention further includes the following steps:
[0016] a1. Flag assignment, print flag assignment, the flag value is equal to the number of copies to be printed modulo 2;
[0017] a2. Locate the data, the file pointer points to the first line of data in the print file;
[0018] a3. Read data, read the data of PRN file line by line according to the number of bytes of each color and each line;
[0019] a4. Send data. When the print data is enough for a print slice, send the print data and print flag to the printer device;
[0020] a5. Judge the file to determine whether the last line of data in the PRN file has been read;
[0021] Preferably, S3 of the present invention further includes reading the PRN file header information to obtain the information of the printed image, including the calibration header, resolution, width, height, number of colors, number of PASSes, single-dot and two-dot modes.
[0022] More preferably, in step a5, if the file has not been completely read, the process jumps to step a3 and repeats steps a3-a5.
[0023] More preferably, a3 records the last line of data after reading the data, and stores and records the temporary file, and sends it to the printer simultaneously with the print file.
[0024] Preferably, in a5, it is determined whether the PRN file has finished reading the last line of data in the file. When it is confirmed that the PRN file has finished reading the last line of data in the file, the temporary file is checked to determine whether they are the same. If so, the next step is entered. If not, the process returns to a3.
[0025] A processing device for multiple jobs of the same task in a continuous production mode comprises: at least one processor, at least one memory and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the above-mentioned method is implemented.
[0026] A storage medium stores computer program instructions, which implement the above-mentioned method when the computer program instructions are executed by a processor.
[0027] The printer control software of the present invention only needs to create a print task once, then send the large print unit data to the printer settings, and finally only needs to send a print end command once to end printing. In this way, the printer does not need to repeat the initialization and end printing actions multiple times when printing multiple copies, and the printer program will identify the control bit of each small print unit. After printing each small unit, the inkjet carriage will stop at the position set by the user, and then when the user places the object to be printed and presses the continue printing button, the printer will automatically adjust and switch to the next small print unit to continue printing after receiving the trigger signal, thereby improving printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings.
[0029] Figure 1 A flow chart of a method for printing multiple copies of the same task in a continuous production manner provided in Example 1 of the present application. DETAILED DESCRIPTION
[0030] In order to further explain the technical means and effects taken by the present invention to achieve the predetermined invention purpose, exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of methods and systems consistent with some aspects of the present application as detailed in the attached claims.
[0031] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0032] The specific implementation methods, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments. Example
[0033] like Figure 1 As shown, this embodiment provides a method for printing multiple copies of the same task in a continuous production mode, and the steps are as follows:
[0034] S1. Go online, start the printer control software and establish a connection with the printer. The connection can be a Bluetooth connection or a network connection. After the connection is established, try to send a 1-byte file to the printer. When the printer receives the file, it returns the file as a signal to confirm the connection.
[0035] S2. Loading files. The user loads the files to be printed and sets the number of copies to be printed. All the files that the user needs to print are loaded into the same file. For example, if 1000 copies of a document are to be printed, the original document is loaded first and the number of copies is set to 1000.
[0036] S3. Open the file. The printer control software opens the file to be printed;
[0037] S4. Initial printing, initializing all printing data, printing status, printing equipment, and detecting the printer status to avoid delays in printing due to insufficient printer ink and paper;
[0038] S5. Start printing, create a print task, send a start print command, and the printer starts to execute the print command. When performing continuous printing, the same print task is regarded as a large print unit, and a single print file is regarded as a small print unit. The printer program will identify the control bit of each small print unit. After printing each small unit, the inkjet carriage will stop at the position set by the user. Then, when the user places the object to be printed and presses the continue printing button, the printer will automatically adjust and switch to the next small print unit to continue printing after receiving the trigger signal, thereby improving printing efficiency.
[0039] S6. The number of print copies decreases, the total number of print copies decreases by 1, the number of small print units is the total number, and the total number decreases by 1 after each small print unit is printed;
[0040] S7 determines the number of copies, determines whether the number of copies printed is zero, non-zero, then returns to step a3, when the total is zero, then to S8;
[0041] S8. End printing, end the printing task;
[0042] S9. Exit printing, exit the print task, and turn off the printer.
[0043] In order to better perform the continuous printing task, S5 of the present invention further includes the following steps:
[0044] a1. Flag assignment, print flag assignment, the flag value is equal to the number of copies to be printed modulo 2;
[0045] a2. Locate the data, the file pointer points to the first line of data in the print file;
[0046] a3. Read data, read the data of PRN file line by line according to the number of bytes of each color and each line;
[0047] a4. Send data. When the print data is enough for a print slice, send the print data and print flag to the printer device;
[0048] a5. Judge the file to determine whether the last line of data in the PRN file has been read;
[0049] Preferably, S3 of the present invention further includes reading the PRN file header information to obtain the information of the printed image, including the calibration header, resolution, width, height, number of colors, number of PASSes, single-dot and two-dot modes.
[0050] More preferably, in step a5, if the file has not been completely read, the process jumps to step a3 and repeats steps a3-a5.
[0051] More preferably, a3 records the last line of data after reading the data, and stores and records the temporary file, and sends it to the printer simultaneously with the print file.
[0052] Preferably, in a5, it is determined whether the PRN file has finished reading the last line of data in the file. When it is confirmed that the PRN file has finished reading the last line of data in the file, the temporary file is checked to determine whether they are the same. If so, the next step is entered. If not, the process returns to a3.
[0053] A processing device for multiple jobs of the same task in a continuous production mode comprises: at least one processor, at least one memory and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the above-mentioned method is implemented.
[0054] A storage medium stores computer program instructions, which implement the above-mentioned method when the computer program instructions are executed by a processor. Example
[0055] In order to better perform continuous printing, the present invention sets two large printing units as printing group 1 and printing group 2 respectively when the large printing unit is greater than 1. At this time, the printing method has the following steps:
[0056] S1. Go online, start the printer control software and establish a connection with the printer. The connection can be a Bluetooth connection or a network connection. After the connection is established, try to send a 1-byte file to the printer. When the printer receives the file, it returns the file as a signal to confirm the connection.
[0057] S2 loads the file, the user loads the file to be printed print group 1 and print group 2, and sets the number of print copies of the two print groups;,
[0058] S3. Open the file. The printer control software opens the file to be printed;
[0059] S4. Initial printing, initializing all printing data, printing status, printing equipment, and detecting the printer status to avoid delays in printing due to insufficient printer ink and paper;
[0060] S5. Start printing, create a print task, send a start print command, and the printer starts to execute the print command. When performing continuous printing, the same print task is regarded as a large print unit, and a single print file is regarded as a small print unit. The printer program will identify the control bit of each small print unit. After printing each small unit, the inkjet carriage will stop at the position set by the user. Then, when the user places the object to be printed and presses the continue printing button, the printer will automatically adjust and switch to the next small print unit to continue printing after receiving the trigger signal, thereby improving printing efficiency.
[0061] When each large printing unit (i.e. printing group) is finished printing, it automatically jumps to the next large printing unit and starts the printing process of the small printing unit.
[0062] S6. The number of print copies decreases, the total number of print copies decreases by 1, the number of small print units is the total number, and the total number decreases by 1 after each small print unit is printed;
[0063] S7 determines the number of copies, determines whether the number of copies printed is zero, non-zero, then returns to step a3, when the total is zero, then to S8;
[0064] S8. End printing, end the printing task;
[0065] S9. Exit printing, exit the print task, and turn off the printer.
[0066] In order to better perform the continuous printing task, S5 of the present invention further includes the following steps:
[0067] a1. Flag assignment, print flag assignment, the flag value is equal to the number of copies to be printed modulo 2;
[0068] a2. Locate the data, the file pointer points to the first line of data in the print file;
[0069] a3. Read data, read the data of PRN file line by line according to the number of bytes of each color and each line;
[0070] a4. Send data. When the print data is enough for a print slice, send the print data and print flag to the printer device;
[0071] a5. Judge the file to determine whether the last line of data in the PRN file has been read;
[0072] Preferably, S3 of the present invention further includes reading the PRN file header information to obtain the information of the printed image, including the calibration header, resolution, width, height, number of colors, number of PASSes, single-dot and two-dot modes.
[0073] More preferably, in step a5, if the file has not been completely read, the process jumps to step a3 and repeats steps a3-a5.
[0074] More preferably, a3 records the last line of data after reading the data, and stores and records the temporary file, and sends it to the printer simultaneously with the print file.
[0075] Preferably, in a5, it is determined whether the PRN file has finished reading the last line of data in the file. When it is confirmed that the PRN file has finished reading the last line of data in the file, the temporary file is checked to determine whether they are the same. If so, the next step is entered. If not, the process returns to a3.
[0076] A processing device for multiple jobs of the same task in a continuous production mode comprises: at least one processor, at least one memory and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the above-mentioned method is implemented.
[0077] A storage medium stores computer program instructions, which implement the above-mentioned method when the computer program instructions are executed by a processor.
[0078] The printing control software of the present invention establishes a communication connection with the printer device. The printer control software loads the file to be printed and sets the number of copies to be printed. The printing software treats each print file as a small printing unit, and then combines all the printing units into a large printing unit, wherein each small printing unit has a flag bit for distinguishing each small printing unit, and the value of the flag bit = the current number of copies sequence number % 2 (% means remainder).
[0079] The printer control software of the present invention only needs to create a print task once, then send the large print unit data to the printer settings, and finally only needs to send a print end command once to end printing. In this way, the printer does not need to repeat the initialization and end printing actions multiple times when printing multiple copies, and the printer program will identify the control bit of each small print unit. After printing each small unit, the inkjet carriage will stop at the position set by the user, and then when the user places the object to be printed and presses the continue printing button, the printer will automatically adjust and switch to the next small print unit to continue printing after receiving the trigger signal, thereby improving printing efficiency.
[0080] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for continuously producing multiple copies of the same job printing, characterized in that: The steps include: S1. Go online, start the printer control software and establish a connection with the printer; S2 loads the file, when the large print unit is greater than 1, each large print unit is set to print group 1, print group 2, ..., print group n, and the number of print copies of n print groups are set; S3. Open the file. The printer control software opens the file to be printed; S4. Initial printing, initializing all printing data, printing status, and printing equipment; S5. Start printing, create a print task, send a start print command, and the printer starts to execute the print command. When performing continuous printing, the same print task is regarded as a large print unit, and a single print file is regarded as a small print unit. The printer program will identify the control bit of each small print unit. After printing each small unit, the inkjet carriage will stop at the position set by the user. Then, when the user places the object to be printed and presses the continue printing button, the printer will automatically adjust and switch to the next small print unit to continue printing after receiving the trigger signal. S6. The number of copies printed decreases, and the total number of copies printed decreases by 1; S7 determines the number of copies, determines whether the number of copies printed is zero, if not zero, returns to step S6; S8. End printing, end the printing task; S9. Exit printing, exit the printing task, and turn off the printer; The step S5 further comprises the following steps: a1. Flag assignment, print flag assignment, the flag value is equal to the number of copies to be printed modulo 2; a2. Locate the data, the file pointer points to the first line of data in the print file; a3. Read data, read the data of PRN file line by line according to the number of bytes of each color and each line; a4. Send data. When the print data is enough for a print slice, send the print data and print flag to the printer device; a5. Judge the file to determine whether the last line of data in the PRN file has been read; The step S3 further includes reading the PRN file header information to obtain the information of the printed image, including the check header, resolution, width, height, number of colors, number of PASSes, single-point and two-point modes; In step a5, if the file has not been read completely, jump to step a3 and repeat steps a3-a5; In the step a3, after reading the data, the last line of the data is recorded, and a temporary file is stored and recorded, and sent to the printer simultaneously with the print file.
2. A method for continuously producing multiple copies of the same job printing according to claim 1, characterized in that: The a5 determines whether the PRN file has finished reading the last line of data in the file. When it is confirmed that the PRN file has finished reading the last line of data in the file, the temporary file is checked to determine whether they are the same. If so, the next step is entered. If not, the process returns to a3.
3. A processing device for multiple jobs of the same task in a continuous production mode, comprising: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, the method according to any one of claims 1 to 2 is implemented.
4. A storage medium having computer program instructions stored thereon, which implement the method described in any one of claims 1 to 2 when the computer program instructions are executed by a processor.
Citation Information
Patent Citations
Method and device for processing image, printer driver and storage medium
JP2001014445A
Recording medium, computer, print data preparing method and print data transfer method
JP2001290616A
Printing system, printer host, printing support program, and printing method
JP2005115528A
Method and apparatus for continuous print
KR1020040065405A
Inkjet printer and one-pass inkjet printing method thereof
WO2020248222A1
