CN112394887A - Oneepass printing data high-efficiency processing method, device, equipment and storage medium - Google Patents

Oneepass printing data high-efficiency processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112394887A
CN112394887A CN201910761226.6A CN201910761226A CN112394887A CN 112394887 A CN112394887 A CN 112394887A CN 201910761226 A CN201910761226 A CN 201910761226A CN 112394887 A CN112394887 A CN 112394887A
Authority
CN
China
Prior art keywords
data
printing
cache
data cache
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910761226.6A
Other languages
Chinese (zh)
Inventor
曾利群
梅�明
黄中琨
陈艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Senda Shenzhen Technology Co Ltd
Original Assignee
Senda Shenzhen Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Senda Shenzhen Technology Co Ltd filed Critical Senda Shenzhen Technology Co Ltd
Priority to CN201910761226.6A priority Critical patent/CN112394887A/en
Publication of CN112394887A publication Critical patent/CN112394887A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1279Controller construction, e.g. aspects of the interface hardware

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention belongs to the technical field of ink-jet printing, solves the technical problem of low printing efficiency caused by the fact that data in a channel are merged and then written into a cache again in the process of Oneepass printing in the prior art, and provides a method, a device, equipment and a storage medium for efficiently processing Oneepass printing data. The method comprises the following steps: configuring a second data cache which is the same as the first data cache; storing the first printing data stored in the first data cache into a second data cache; taking out the first printing data and the second printing data from the second data cache for operation; storing the result of the operation to a first data cache and a second data cache; and outputting and printing the operation result stored in the first data cache. According to the invention, two data caches are established to perform pipeline processing on the printing data, and the data processing period is matched with the system printing period, so that the nozzle can receive the next printing data without waiting, and the printing efficiency is improved.

Description

Oneepass printing data high-efficiency processing method, device, equipment and storage medium
Technical Field
The invention belongs to the technical field of ink-jet printing, and particularly relates to a method, a device, equipment and a storage medium for efficiently processing data.
Background
Oneepass printing has the advantages of high efficiency and large output, and is suitable for large-batch and continuous printing. In order to print various image data from a plurality of image storage devices on printing paper, the Onepass printing needs to merge data in a channel in the data processing process, and needs to take out the existing data in a data cache to operate with new data and write the data in the cache again. The read, operation, and write operations all require at least one clock cycle, and thus the data merge operation requires at least 3 clock cycles to complete. The nozzle only needs one clock cycle to obtain data for printing, and the nozzle needs to wait for two cycles after printing once to receive the next printing data, so that the data merging operation cycle cannot be matched with the system printing cycle, and the printing efficiency is reduced.
In the prior art, patent publication No. CN103909730A discloses a method and an apparatus for efficiently processing data, and an inkjet printer, and the technical scheme mainly combines a processor, an internal memory, and an external memory, thereby reducing the cost of image dot matrix data splitting delay processing and increasing the speed of image dot matrix data splitting delay processing. However, the technical scheme does not relate to data merging in the printing channel, so that the problem of low efficiency in the data merging process in the printing channel cannot be solved.
Disclosure of Invention
In view of the above, the invention provides an efficient processing method, device, equipment and storage medium for Oneepass printing data, which are used for solving the technical problem in the prior art that the printing efficiency is low due to the fact that data in channels are merged and then written into a cache again when Oneepass printing is performed.
The technical scheme adopted by the invention is as follows:
an Oneepass printing data high-efficiency processing method comprises the following steps:
s1, configuring a second data cache which is the same as the first data cache for the first data cache storing the first printing data;
s2, storing the first printing data stored in the first data cache to a corresponding address in a second data cache;
s3, taking the first printing data and the second printing data from the second data cache to perform logic operation;
s4, storing the result of the logic operation to the corresponding address in the first data cache and the second data cache;
and S5, outputting and printing the result of the logic operation stored in the first data cache.
As a preferred technical solution of the method for efficiently processing Onepass print data, the method further comprises the following steps after step S5:
s6, storing the next first printing data stored in the first data cache to the corresponding address in the second data cache;
s7, taking out the next first printing data from the second data buffer to perform logic operation with the corresponding second printing data;
s8, storing the result of the logic operation obtained in the step S7 to the corresponding address in the first data cache;
s9, outputting and printing the result of the logic operation stored in the first data cache;
s10, repeating the steps S6 to S9 until all the first printing data of the Oneepass printing are processed.
As an optimal technical scheme of the Oneepass printing data high-efficiency processing method, the result of each logical operation is output to a corresponding physical channel for output printing.
As a preferred technical solution of the Onepass print data high efficiency processing method, the logical operation includes a logical and operation, a logical not operation, and/or a logical or operation.
As a preferred technical solution of the Onepass print data high efficiency processing method, the first data cache and the second data cache are both dual port data caches.
As a preferred technical solution of the method for efficiently processing Onepass print data, the first print data is label image data.
As a preferred technical solution of the method for efficiently processing Onepass print data, the second print data is background image data.
As a preferred technical solution of the method for efficiently processing Onepass print data, before step S5, the method further includes the following steps:
and storing the result of the logical operation to a corresponding address in the second data cache.
On the other hand, the invention also provides an Oneepass printing data high-efficiency processing device, which comprises:
the data cache configuration module is used for configuring a first data cache storing first printing data with a second data cache which is the same as the first data cache;
the first data storage module is used for storing the first printing data stored in the first data cache to a corresponding address in a second data cache;
the data operation module is used for taking the first printing data and the second printing data out of a second data cache to perform logic operation;
the second data storage module is used for storing the result of the logical operation to corresponding addresses in the first data cache and the second data cache;
and the printing module is used for outputting and printing the result of the logic operation stored in the first data cache.
As a preferred technical solution of the Onepass print data high efficiency processing apparatus, the logical operation includes a logical and operation, a logical not operation, and/or a logical or operation.
As a preferred technical solution of the Onepass print data high efficiency processing apparatus, the first data cache and the second data cache are both dual port data caches.
As a preferred technical solution of the Onepass print data high efficiency processing apparatus, the first print data is label image data.
As a preferred technical solution of the Onepass print data high efficiency processing apparatus, the second print data is background image data.
As a preferred technical solution of the Onepass print data high efficiency processing apparatus, the second data storage module is further configured to store a result of the logical operation to a corresponding address in the second data cache.
In a third aspect, the present invention also provides an Onepass printing apparatus comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement any of the above-described methods for efficient processing of Onepass print data.
In a fourth aspect, the present invention further provides a storage medium, wherein when the computer program instructions are executed by a processor, the method for efficiently processing Onepass print data is implemented.
In conclusion, the beneficial effects of the invention are as follows:
storing first printing data stored in a first data cache into a second data cache, performing logical operation on the first printing data and second printing data stored in the second data cache, storing a result of the logical operation into the first data cache, and finally reading a result of the logical operation in the first data cache for printing; the method establishes two data caches to perform pipeline processing on the print data, and realizes that the print data is taken out from the target address in the cache in one clock cycle, and is written into the target address of the cache after calculation. The data processing period is matched with the system printing period, so that the nozzle can receive the next printing data without waiting, and the printing efficiency is improved.
Drawings
FIG. 1 is a schematic view of a structure of a target image to be printed in embodiment 1 of the present invention;
FIG. 2 is a schematic structural diagram of an image A in a target image to be printed according to embodiment 1 of the present invention;
FIG. 3 is a schematic structural diagram of a B image in a target image to be printed according to embodiment 1 of the present invention;
FIG. 4 is a schematic structural view of buf 01 in example 1 of the present invention;
FIG. 5 is a schematic structural view of buf 01' in example 1 of the present invention;
FIG. 6 is a schematic structural view of buf 11 in example 1 of the present invention;
FIG. 7 is a schematic structural diagram of a target image to be printed in embodiment 3 of the present invention;
FIG. 8 is a schematic structural diagram of a target image to be printed in embodiment 4 of the present invention;
FIG. 9 is a schematic structural diagram of an image A in a target image to be printed according to embodiment 4 of the present invention;
fig. 10 is a schematic structural diagram of a B image in a target image to be printed according to embodiment 4 of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Example 1:
the object of example 1 of the present invention is to print an image as shown in figure 1, i.e. image a and image B, both independent images, on the same substrate. In this embodiment 1, image a is background image data and image B is label image data (i.e., image a is a constant background and image B is a specific label, while printing image a and image B is printing a label image on one side of the background image, the label being, for example, a number "1122445669" representing a product model, and the label image being changeable).
In embodiment 1 of the present invention, the number of nozzles (one nozzle corresponds to one printing channel) of the Onepass printing apparatus is 7, the starting points of all the printing channels are positions with coordinates (0,0) in fig. 1, the 7 nozzles are sequentially arranged along the X-axis direction, and the printing medium moves in the Y-axis direction during the Onepass printing process. The 7 spray heads are a first spray head P1, a second spray head P2, a third spray head P3, a fourth spray head P4, a fifth spray head P5, a sixth spray head P6 and a seventh spray head P7 in sequence from left to right, and 100 spray nozzles (one spray nozzle corresponds to one pixel) are arranged in one spray head.
When the printing system prints the image a individually, a data buffer is provided in the printing system for each head, data in the head corresponding to the data buffer is stored in each data buffer, 7 data buffers are buff01, buff02, buff03, buff04, buff05, buff06, and buff07(buff01, buff02, buff03, buff04, buff05, buff06, and buff07 correspond to the first head P1, the second head P2, the third head P3, the fourth head P4, the fifth head P5, the sixth head P6, and the seventh head P7, respectively), and the 7 data buffers can be accessed at the same time. In this embodiment, each data cache is a dual-port data cache (although a single-port data cache may be used as the data cache, the type of the data cache is not limited here), as shown in fig. 4, the first address of buff01 is addrA01, the data in the first address is idata 01, the second address of buff01 is addrB01, the data in the second address is odab 01, and the structure of the remaining data caches is similar to that of the data cache buff 01.
As shown in fig. 2, the width of the image a along the nozzle arrangement direction is 290 pixels, and the initial printing position of the image a is the 30 th pixel position of the third nozzle. Establishing a printing coordinate system with pixels as basic units, setting the coordinates of the starting points of all printing channels as (0,0), and when the coordinate value of the Y axis is 350, the coordinate value of the initial printing image of the image A on the X axis in the printing coordinate system is 230 and the coordinate value of the ending printing image is 520, and the printing range of the image on the X axis at the moment is 230 to 520. From this, it is understood that the print data corresponding to each nozzle stored in buff01, buff02, and buff07 is "0", and the print data corresponding to each nozzle stored in buff04 and buff05 is "1"; the print data corresponding to the first 30 nozzles stored in buff03 is "0", and the print data corresponding to the last 70 nozzles stored in buff03 is "1"; the print data corresponding to the first 30 nozzles stored in buff06 is "1", and the print data corresponding to the last 70 nozzles stored in buff06 is "0". (buff01, buff02, buff03, buff04, buff05, buff06 and buff07 are data buffers for each head when image A is printed individually)
When the printing system prints the image B separately, a data buffer is provided in the printing system for each head, data in the head corresponding to the data buffer is stored in each data buffer, 7 data buffers are respectively buf 01 ', buf 02 ', buf 03 ', buf 04 ', buf 05 ', buf 06 ' and buf 07 ' (buf 01 ', buf 02 ', buf 03 ', buf 04 ', buf 05 ', buf 06 ', and buf 07 ' are respectively in one-to-one correspondence with the first head P1, the second head P2, the third head P3, the fourth head P4, the fifth head P5, the sixth head P6, and the seventh head P7), and the data stored in the buf 01 ', buf 02 ', buf 03 ', buf 04 ', buf 05 ', buf 06 ', and the buf 07 ' and the data to be written in the data buffers, and the data buffers 7 data can be accessed simultaneously. Each data cache is a dual-port data cache (of course, a single-port data cache may also be used for the data cache, and the type of the data cache is not limited here). As shown in fig. 5, the first address of buff01 ' is addrA01 ', the data in the first address is iDataA01 ', the second address of buff01 ' is addrB01 ', the data in the second address is odab 01 ', and the structure of the rest of the data cache is similar to that of data cache buf 01 '.
As shown in fig. 3, the width of the image B along the nozzle arrangement direction is 110 pixels, and the initial printing position of the image B is the 50 th pixel position of the first nozzle. When the Y-axis coordinate value is 350, the start print image coordinate value of the image B on the X-axis in the print coordinate system is 50 and the end print image coordinate value is 160, and the print range of the image on the X-axis at this time is 50 to 160. From this, it is understood that the print data corresponding to each nozzle stored in buff03 ', buff04 ', buff05 ', buff06 ' and buff07 ' is "0", the print data corresponding to the first 50 nozzles stored in buff01 ' is "0", and the print data corresponding to the last 50 nozzles stored in buff01 ' is "1"; the print data corresponding to the first 60 nozzles stored in buf 02 ' is "1", and the print data corresponding to the last 40 nozzles stored in buf 02 ' is "0" (buf 01 ', buf 02 ', buf 03 ', buf 04 ', buf 05 ', buf 06 ', and buf 07 ' are data buffers of the heads when the image B is printed individually).
In order to print the image a and the image B on the same printing stock as shown in fig. 3, the data cached in the corresponding nozzles in the image a and the image B are processed and then read into the nozzles. The method for efficiently processing Oneepass printing data in the embodiment 1 of the invention specifically comprises the following steps (taking the first spray head as an example):
s1, setting a data buffer buf 11(buff11 corresponds to the second data buffer) with the same structure as the data buffer buf 01(buff01 corresponds to the first data buffer), as shown in fig. 6, the first address of buff11 is addrA11, the data in the first address is idata 11, the second address of buff11 is addrB11, and the data in the second address is odab 11;
s2, connecting the first address addrA11 of buff11 to the second address addrB01 of buff01, the first address addrA11 of buff11 obtaining the first print data in the second address addrB01 of buff01 (this step has a clock delay); at this time, the data stored in the data buffer buf 11 and the data stored in buf 01 are both the first print data (i.e., buf 11 serves as the shadow buffer of buf 01);
s3, an operation result (a clock delay in this step) obtained by logically or-ing data odab 11 (first print data) in second address addrB11 of buff11 and data odab 01 ' (second print data) in second address addrB01 ' of buff01 ';
for example, when the Y-axis coordinate value is 350, the print data value obtained by or-ing the 55 th nozzle print data (value "1") stored in buff11 and the 55 th nozzle print data (value "0") stored in buff 01' is "1".
S4, storing the operation result obtained in the step S3 into the first address addrA01 of buff01 and the first address addrA11 of buff11 respectively (the step has a clock delay);
s5, reads the data of idata b01 from the second address addrB01 of buff01 as print data and inputs the print data to the first head to eject ink.
As shown in the above steps S1 to S5, the print data is processed by a double-buffer (two data buffers) pipeline to complete the operations of fetching the target address from the buffer, and writing the target address into the buffer after completing the calculation in one clock cycle; the data processing period is matched with the system printing period, so that the nozzle can receive the next printing data without waiting, and the printing efficiency is improved.
The data processing process of the other nozzles is the same as that of the first nozzle, namely, the data in buf 01 and buf 01 ' are subjected to OR operation, the data in buf 02 and buf 02 ' are subjected to OR operation, the data in buf 03 and buf 03 ' are subjected to OR operation, the data in buf 04 and buf 04 ' are subjected to OR operation, the data in buf 05 and buf 05 ' are subjected to OR operation, the data in buf 06 and buf 06 ' are subjected to OR operation, and the data in buf 07 and buf 07 ' are subjected to OR operation.
The multi-pass merge is to merge (logically operate) data of a plurality of passes at the time of individually printing the image A, B, thereby forming print data of a print target.
Example 2:
the efficient processing method of Oneepass printing data in the embodiment 2 of the invention is improved on the basis of the efficient processing method of Oneepass printing data in the embodiment 1. Specifically, the method for efficiently processing Onepass printing data in embodiment 2 specifically includes the following steps:
s1, setting a data buffer buf 11(buff11 corresponds to the second data buffer) with the same structure as the data buffer buf 01(buff01 corresponds to the first data buffer), as shown in fig. 6, the first address of buff11 is addrA11, the data in the first address is idata 11, the second address of buff11 is addrB11, and the data in the second address is odab 11;
s2, connecting the first address addrA11 of buff11 to the second address addrB01 of buff01, the first address addrA11 of buff11 obtaining the first print data in the second address addrB01 of buff01 (this step has a clock delay); at this time, the data stored in the data buffer buf 11 and the data stored in buf 01 are both the first print data (i.e., buf 11 serves as the shadow buffer of buf 01);
s3, an operation result (a clock delay in this step) obtained by logically or-ing data odab 11 (first print data) in second address addrB11 of buff11 and data odab 01 ' (second print data) in second address addrB01 ' of buff01 ';
for example, when the Y-axis coordinate value is 350, the print data value obtained by or-ing the 55 th nozzle print data (value "1") stored in buff11 and the 55 th nozzle print data (value "0") stored in buff 01' is "1".
S4, storing the operation result obtained in the step S3 into the first address addrA01 of buff01 and the first address addrA11 of buff11 respectively (the step has a clock delay);
s5, reading the data of the idadatab 01 from the second address addrB01 of the buf 01 as printing data, and inputting the printing data to the first head for ink jetting (after the ink jetting is completed this time, the first head jets and prints a horizontal row of ink with the Y-axis coordinate value of 350).
S6, the data buffer buff01 receives the next first print data (the Y-axis coordinate value in fig. a is the 351-th first print data), and the data buffer buff 01' receives the next second print data (the Y-axis coordinate value in fig. B is the 351-th first print data). The first address addrA11 of buff11 acquires the next first print data in the second address addrB01 of buff01 (this step has a clock delay); at this time, the data stored in the data buffer buf 11 and the data stored in buf 01 are both the next first print data;
s7, an operation result (a clock delay in this step) obtained by logically or-ing data odab 11 (next first print data) in second address addrB11 of buff11 and data odab 01 ' (next second print data) in second address addrB01 ' of buff01 ';
for example, when the Y-axis coordinate value is 351, the print data value obtained by or-ing the 55 th nozzle print data (value "1") stored in buff11 and the 55 th nozzle print data (value "0") stored in buff 01' is "1".
S8, storing the operation result obtained in the step S7 into the first address addrA01 of buff01 and the first address addrA11 of buff11 respectively (the step has a clock delay);
s9, outputting and printing the result of the logic operation stored in the data buffer buff 01;
and S10, repeating the steps S6 to S9 until all the first printing data printed by Oneepass are processed (the values of the first printing data are different according to the Y coordinate). After step S10 is completed, the image shown in fig. 1 is printed.
Example 3:
as shown in fig. 7, the image to be printed in embodiment 3 of the present invention is the image a added with the image C on the right side thereof on the basis of the image to be printed in embodiment 1. In this embodiment 3, the image a is background image data, the image B is first label image data, and the image C is second label data (i.e., the image a is a constant background, the image B is a specific label, and the image C is also a specific label).
When the printing system prints the image C individually, a data buffer is provided in the printing system for each head, data in the head corresponding to the data buffer is stored in each data buffer, 7 data buffers are buff01 ", buff 02", buff03 ", buff 04", buff05 ", buff 06", and buff07 "(buff 01", buff02 ", buff 03", buff04 ", buff 05", buff06 ", and buff 07" are in one-to-one correspondence with the first head P1, the second head P2, the third head P3, the fourth head P4, the fifth head P5, the sixth head P6, and the seventh head P7), respectively, and the 7 data buffers can be accessed at the same time. Each data cache is a dual-port data cache. The first address of buff01 ' is addrA01 ', the data in the first address is iDataA01 ', the second address of buff01 ' is addrB01 ', the data in the second address is oDataB01 ', and the structure of the rest of the data cache is similar to that of data cache buf 01 '.
The width of the image C along the nozzle arrangement direction is 100 pixels, and the initial printing position of the image C is the position of the 70 th pixel point of the sixth nozzle (the 70 th pixel point counted from left to right). When the Y-axis coordinate value is 350, the start print image coordinate value of the image C on the X-axis in the print coordinate system is 570 and the end print image coordinate value 670, and the print range of the image on the X-axis at this time is 570 to 670. From this, it is understood that the print data corresponding to each nozzle stored in buff01 ", buff 02", buff03 ", buff 04", and buff05 "is" 0 ", the print data corresponding to the first 70 nozzles stored in buff 06" is "0", and the print data corresponding to the last 30 nozzles stored in buff06 "is" 1 "; the print data corresponding to the first 70 nozzles stored in buff07 "is" 1 ", and the print data corresponding to the last 30 nozzles stored in buff 07" is "0" (buf 01 ", buff 02", buff03 ", buff 04", buff05 ", buff 06", and buff07 "are data buffers of the respective heads when the image C is printed individually).
The method for processing the Onepass printing data in the embodiment 3 is to execute the method for processing the Onepass printing data in the embodiment 1 twice, and the specific steps are as follows (taking the first nozzle as an example):
s1, setting a data buffer buff11 with the same structure as the data buffer buff 01;
s2, connecting the first address addrA11 of buff11 to the second address addrB01 of buff01, the first address addrA11 of buff11 obtaining the first print data in the second address addrB01 of buff01 (this step has a clock delay);
s3, a first operation result (a clock delay in this step) obtained by logically or-ing data odab 11 (first print data) in second address addrB11 of buff11 and data odab 01 ' (second print data) in second address addrB01 ' of buff01 ';
for example, when the Y-axis coordinate value is 350, the print data value obtained by or-ing the 55 th nozzle print data (value "1") stored in buff11 and the 55 th nozzle print data (value "0") stored in buff 01' is "1".
S4, storing the first operation result obtained in step S3 into the first address addrA01 of buff01 and the first address addrA11 of buff11 respectively (this step has a clock delay);
s5, connecting the first address addrA11 of buff11 to the second address addrB01 of buff01, and the first address addrA11 of buff11 obtaining data in the second address addrB01 of buff01 (this step has a clock delay);
s6, a second operation result (this step has a clock delay) obtained by logically or-ing data odab 11 in second address addrB11 of buff11 and data odab 01 "(third print data) in second address addrB 01" of buff01 ";
for example, when the Y-axis coordinate value is 350, the print data value obtained by or-ing the 55 th nozzle print data (value "1") stored in buff11 with the 55 th nozzle print data (value "0") stored in buff01 "is" 1 ".
S7, storing the second operation result obtained in step S6 into the first address addrA01 of buff01 and the first address addrA11 of buff11 respectively (this step has a clock delay);
s8, reads the data of idata b01 from the second address addrB01 of buff01 as print data and inputs the print data to the first head to eject ink.
As shown in the above steps S1 to S8, the print data can be fetched from the target address in the buffer and written into the target address in the buffer after the completion of the calculation in one clock cycle by the double-buffer pipeline operation.
Example 3 the rest of the working principle is the same as that of example 1.
Example 4:
the purpose of embodiment 4 of the present invention is to print out an image as shown in fig. 8 (i.e. an image with hatching in fig. 8), the image in fig. 8 is completed by cutting out the image B in fig. 10 in the image a in fig. 9, and the image a and the image B are both independent images.
The number of the nozzles (one nozzle corresponds to one printing channel) of the Onepass printing device in embodiment 1 of the present invention is 7, the nozzles are respectively a first nozzle P1, a second nozzle P2, a third nozzle P3, a fourth nozzle P4, a fifth nozzle P5, a sixth nozzle P6, and a seventh nozzle P7 from left to right, and 100 nozzles (one nozzle corresponds to one pixel) are provided in one nozzle.
When the printing system prints the image a individually, a data buffer is provided in the printing system for each head, data in the head corresponding to the data buffer is stored in each data buffer, 7 data buffers are buff01, buff02, buff03, buff04, buff05, buff06, and buff07(buff01, buff02, buff03, buff04, buff05, buff06, and buff07 correspond to the first head P1, the second head P2, the third head P3, the fourth head P4, the fifth head P5, the sixth head P6, and the seventh head P7, respectively), and the 7 data buffers can be accessed at the same time. Each data cache is a dual-port data cache, as shown in fig. 4, the first address of buff01 is addrA01, the data in the first address is iDataA01, the second address of buff01 is addrB01, the data in the second address is odab 01, and the structure of the rest of data caches is similar to that of the data cache buff 01.
As shown in fig. 2, the width of the image a along the nozzle arrangement direction is 290 pixels, and the initial printing position of the image a is the 30 th pixel position of the third nozzle. Establishing a printing coordinate system with pixels as basic units, setting the coordinates of the starting points of all printing channels as (0,0), and when the coordinate value of the Y axis is 350, the coordinate value of the initial printing image of the image A on the X axis in the printing coordinate system is 230 and the coordinate value of the ending printing image is 520, and the printing range of the image on the X axis at the moment is 230 to 520. From this, it is understood that the print data corresponding to each nozzle stored in buff01, buff02, and buff07 is "0", and the print data corresponding to each nozzle stored in buff04 and buff05 is "1"; the print data corresponding to the first 30 nozzles stored in buff03 is "0", and the print data corresponding to the last 70 nozzles stored in buff03 is "1"; the print data corresponding to the first 30 nozzles stored in buff06 is "1", and the print data corresponding to the last 70 nozzles stored in buff06 is "0". (buff01, buff02, buff03, buff04, buff05, buff06 and buff07 are data buffers for each head when image A is printed individually)
When the printing system prints the image B individually, a data buffer is provided in the printing system for each head, data in the head corresponding to the data buffer is stored in each data buffer, 7 data buffers are buff01 ', buff 02', buff03 ', buff 04', buff05 ', buff 06' and buff07 '(buff 01', buff02 ', buff 03', buff04 ', buff 05', buff06 'and buff 07' are respectively in one-to-one correspondence with the first head P1, the second head P2, the third head P3, the fourth head P4, the fifth head P5, the sixth head P6 and the seventh head P7), and the 7 data buffers can be accessed at the same time. Each data cache is a dual-port data cache, as shown in fig. 5, the first address of buff01 ' is addrA01 ', the data in the first address is iDataA01 ', the second address of buff01 ' is addrB01 ', the data in the second address is odab 01 ', and the structure of the rest of data caches is similar to that of the data cache buff01 '.
As shown in fig. 3, the width of the image B along the nozzle arrangement direction is 110 pixels, and the initial printing position of the image B is the 80 th pixel position of the third nozzle. When the Y-axis coordinate value is 350, the start print image coordinate value of the image B on the X-axis in the print coordinate system is 280 and the end print image coordinate value 390, the print range of the image on the X-axis at this time is 280 to 390. From this, it is understood that the print data corresponding to each nozzle stored in buff01 ', buff02 ', buff05 ', buff06 ' and buff07 ' is "0", the print data corresponding to the first 80 nozzles stored in buff03 ' is "0", and the print data corresponding to the last 20 nozzles stored in buff01 ' is "1"; the print data corresponding to the first 90 nozzles stored in buf 04 ' is "1", and the print data corresponding to the last 10 nozzles stored in buf 02 ' is "0" (buf 01 ', buf 02 ', buf 03 ', buf 04 ', buf 05 ', buf 06 ', and buf 07 ' are data buffers of the heads when the image B is printed individually).
In order to print out the image shown in fig. 8, the data cached in the corresponding nozzles in image a and image B is processed and then read into the nozzles. The data high-efficiency processing method in embodiment 4 of the present invention specifically includes the following steps (taking the first showerhead as an example):
s1, setting a data cache buff11 with the same structure as the data cache buff01, wherein the first address of the buff11 is addrA11, the data in the first address is iDataA11, the second address of the buff11 is addrB11, and the data in the second address is oDataB 11;
s2, connecting the first address addrA11 of buff11 to the second address addrB01 of buff01, and the first address addrA11 of buff11 obtaining data in the second address addrB01 of buff01 (this step has a clock delay); at this time, the print data stored in the data buffer buf 11 is the same as the print data stored in buf 01 (i.e., buff11 serves as a shadow buffer of buff 01);
s3, an operation result obtained by performing logical operation on data oDataB11 in second address addrB11 of buff11 and data oDataB01 ' in second address addrB01 ' of buff01 ' (this step has a clock delay);
the specific logical operation in step S3 is to perform a logical not operation on the data odata b 01' to obtain an operation result odata c, and then perform an and operation on the data odata c and the data odata b 11. For example, when the Y-axis coordinate value is 350, the logical not operation is performed on the 55 th nozzle print data (value "0") stored in buf 01' to obtain the operation result odac (value "1"), and then the logical and operation is performed on the odac (value "1") and the 55 th nozzle print data (value "0") stored in buf 11 to obtain the final operation result.
S4, storing the final operation result obtained in the step S3 into the first address addrA01 of buff01 and the first address addrA11 of buff11 respectively (the step has a clock delay);
s5, reads the data of idata b01 from the second address addrB01 of buff01 as print data and inputs the print data to the first head to eject ink.
As shown in the above steps S1 to S5, the print data is realized by the double-buffer pipeline operation, and the operations of fetching the target address from the buffer, completing the calculation, and then writing the target address into the buffer are completed in one clock cycle.
The data processing process of the other nozzles is the same as that of the first nozzle, namely, the data in buf 01 and buf 01 ' are subjected to OR operation, the data in buf 02 and buf 02 ' are subjected to OR operation, the data in buf 03 and buf 03 ' are subjected to OR operation, the data in buf 04 and buf 04 ' are subjected to OR operation, the data in buf 05 and buf 05 ' are subjected to OR operation, the data in buf 06 and buf 06 ' are subjected to OR operation, and the data in buf 07 and buf 07 ' are subjected to OR operation.
In addition, in combination with the data high-efficiency processing methods in embodiments 1 to 5, the embodiments of the present invention can be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any one of the Onepass print data efficient processing methods in the embodiments described above.
Example 5:
the embodiment 5 of the invention discloses an Oneepass printing data high-efficiency processing device, which comprises the following modules:
the cache establishing module is used for setting a data cache buff1 which is the same as the existing data cache buff 0;
a data storage module, configured to store the print data stored in the data buffer buf 0 into the data buffer buf 1;
the data operation module is used for performing logical operation on the print data stored in the data cache buff1 and the print data to be combined and then storing the print data into the data caches buff0 and buff 1;
and the data reading module is used for reading data from the buff 0.
Through the cooperative work of the modules, the double caches (two data caches) are established to carry out pipeline processing on the print data, so that the operation that the target address is taken out from the cache and written into the cache target address after calculation is finished in one clock cycle of the print data is realized; the data processing period is matched with the system printing period, so that the nozzle can receive the next printing data without waiting, and the printing efficiency is improved.
Example 6:
embodiment 6 of the invention discloses Oneepass printing equipment, which can comprise a processor and a memory storing computer program instructions. The processor may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
The memory may include mass storage for data or instructions. By way of example, and not limitation, memory may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is non-volatile solid-state memory. In a particular embodiment, the memory includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor reads and executes the computer program instructions stored in the memory to realize the efficient processing method of Oneepass printing data in any one of the embodiments.
The method, the device, the equipment and the storage medium for efficiently processing the Oneepass printing data provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be a change in the specific implementation and application scope, and in summary, the content of the present specification is only an implementation of the present invention, and not a limitation to the scope of the present invention, and all equivalent structures or equivalent flow transformations made by the content of the present specification and the attached drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention. And should not be construed as limiting the invention.

Claims (10)

1. An Oneepass printing data high-efficiency processing method is characterized by comprising the following steps:
s1, configuring a second data cache which is the same as the first data cache for the first data cache storing the first printing data;
s2, storing the first printing data stored in the first data cache to a corresponding address in a second data cache;
s3, taking the first printing data and the second printing data from the second data cache to perform logic operation;
s4, storing the result of the logic operation to the corresponding address in the first data cache and the second data cache;
and S5, outputting and printing the result of the logic operation stored in the first data cache.
2. The Onepass print data high efficiency processing method according to claim 1, further comprising the step of, after said step S5:
s6, storing the next first printing data stored in the first data cache to the corresponding address in the second data cache;
s7, taking out the next first printing data from the second data buffer to perform logic operation with the corresponding second printing data;
s8, storing the result of the logic operation obtained in the step S7 to the corresponding address in the first data cache;
s9, outputting and printing the result of the logic operation stored in the first data cache;
s10, repeating the steps S6 to S9 until all the first printing data of the Oneepass printing are processed.
3. The Oneepass print data efficient processing method of claim 2, wherein the result of each logical operation is output to a corresponding one of the physical channels for printing.
4. The Oneeglass print data efficient processing method of any of claims 1 to 3, wherein the logical operations comprise logical AND operations, logical NOT operations, and/or logical OR operations.
5. The Oneeglass print data efficient processing method of claim 4, wherein the first and second data caches are both dual-ported data caches.
6. The Oneeglass print data efficient processing method of claim 5, wherein the first print data is label image data.
7. The Oneeglass print data efficient processing method of claim 6, wherein the second print data is background image data.
8. An Oneepass print data efficient processing device, the processing device comprising:
the data cache configuration module is used for configuring a first data cache storing first printing data with a second data cache which is the same as the first data cache;
the first data storage module is used for storing the first printing data stored in the first data cache to a corresponding address in a second data cache;
the data operation module is used for taking the first printing data and the second printing data out of a second data cache to perform logic operation;
the second data storage module is used for storing the result of the logical operation to corresponding addresses in the first data cache and the second data cache;
and the printing module is used for outputting and printing the result of the logic operation stored in the first data cache.
9. An Oneeglass printing apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-7.
10. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-7.
CN201910761226.6A 2019-08-17 2019-08-17 Oneepass printing data high-efficiency processing method, device, equipment and storage medium Pending CN112394887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910761226.6A CN112394887A (en) 2019-08-17 2019-08-17 Oneepass printing data high-efficiency processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910761226.6A CN112394887A (en) 2019-08-17 2019-08-17 Oneepass printing data high-efficiency processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112394887A true CN112394887A (en) 2021-02-23

Family

ID=74603123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910761226.6A Pending CN112394887A (en) 2019-08-17 2019-08-17 Oneepass printing data high-efficiency processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112394887A (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS622344A (en) * 1985-06-27 1987-01-08 Canon Inc Information transmission equipment
US5353426A (en) * 1992-04-29 1994-10-04 Sun Microsystems, Inc. Cache miss buffer adapted to satisfy read requests to portions of a cache fill in progress without waiting for the cache fill to complete
JPH11127325A (en) * 1997-10-22 1999-05-11 Ricoh Co Ltd Image processor
CN1289990A (en) * 1999-09-29 2001-04-04 华威光电股份有限公司 Dual-memory data transmission device and method
US6628289B1 (en) * 1999-06-29 2003-09-30 Canon Kabushiki Kaisha Rendering apparatus and method, and storage medium
CN1452558A (en) * 2000-05-24 2003-10-29 西尔弗布鲁克研究有限公司 Print engine/controller and printhead interface chip incorporating engine/controller
CN1454156A (en) * 2000-06-30 2003-11-05 西尔弗布鲁克研究有限公司 Print engine/controller to work in multiples and a printhead driven by multiple print engine/controllers
CN1454158A (en) * 2000-06-30 2003-11-05 西尔弗布鲁克研究有限公司 Printing with multi-segment print head
CN1689814A (en) * 2000-05-24 2005-11-02 西尔弗布鲁克研究有限公司 Printing engine controller used for page width ink jet printing head
CN101155244A (en) * 2006-09-25 2008-04-02 京瓷美达株式会社 Image forming apparatus
CN101763231A (en) * 2010-01-07 2010-06-30 浙江大学 Rapid transmission method of printing equipment data
CN102428453A (en) * 2009-04-08 2012-04-25 谷歌公司 Method and apparatus for storing data in a flash memory data storage device
CN103909730A (en) * 2013-01-07 2014-07-09 北大方正集团有限公司 Data processing method and device and ink-jet printer
CN106716984A (en) * 2014-09-29 2017-05-24 佳能株式会社 Image processing apparatus, image processing method, and storage medium
CN107016976A (en) * 2017-05-31 2017-08-04 西安诺瓦电子科技有限公司 Display control method and device and display screen system
CN107521226A (en) * 2016-06-21 2017-12-29 北大方正集团有限公司 A kind of data processing method, device and ink-jet printer
CN107577424A (en) * 2017-08-18 2018-01-12 深圳云天励飞技术有限公司 Image processing method, apparatus and system
CN109263280A (en) * 2018-10-12 2019-01-25 森大(深圳)技术有限公司 Onepass inkjet printing methods, device, equipment and storage medium
CN109726806A (en) * 2017-10-30 2019-05-07 上海寒武纪信息科技有限公司 Information processing method and terminal device

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS622344A (en) * 1985-06-27 1987-01-08 Canon Inc Information transmission equipment
US5353426A (en) * 1992-04-29 1994-10-04 Sun Microsystems, Inc. Cache miss buffer adapted to satisfy read requests to portions of a cache fill in progress without waiting for the cache fill to complete
JPH11127325A (en) * 1997-10-22 1999-05-11 Ricoh Co Ltd Image processor
US6628289B1 (en) * 1999-06-29 2003-09-30 Canon Kabushiki Kaisha Rendering apparatus and method, and storage medium
CN1289990A (en) * 1999-09-29 2001-04-04 华威光电股份有限公司 Dual-memory data transmission device and method
CN1689814A (en) * 2000-05-24 2005-11-02 西尔弗布鲁克研究有限公司 Printing engine controller used for page width ink jet printing head
CN1452558A (en) * 2000-05-24 2003-10-29 西尔弗布鲁克研究有限公司 Print engine/controller and printhead interface chip incorporating engine/controller
CN1454156A (en) * 2000-06-30 2003-11-05 西尔弗布鲁克研究有限公司 Print engine/controller to work in multiples and a printhead driven by multiple print engine/controllers
CN1454158A (en) * 2000-06-30 2003-11-05 西尔弗布鲁克研究有限公司 Printing with multi-segment print head
CN101155244A (en) * 2006-09-25 2008-04-02 京瓷美达株式会社 Image forming apparatus
CN102428453A (en) * 2009-04-08 2012-04-25 谷歌公司 Method and apparatus for storing data in a flash memory data storage device
CN101763231A (en) * 2010-01-07 2010-06-30 浙江大学 Rapid transmission method of printing equipment data
CN103909730A (en) * 2013-01-07 2014-07-09 北大方正集团有限公司 Data processing method and device and ink-jet printer
CN106716984A (en) * 2014-09-29 2017-05-24 佳能株式会社 Image processing apparatus, image processing method, and storage medium
CN107521226A (en) * 2016-06-21 2017-12-29 北大方正集团有限公司 A kind of data processing method, device and ink-jet printer
CN107016976A (en) * 2017-05-31 2017-08-04 西安诺瓦电子科技有限公司 Display control method and device and display screen system
CN107577424A (en) * 2017-08-18 2018-01-12 深圳云天励飞技术有限公司 Image processing method, apparatus and system
CN109726806A (en) * 2017-10-30 2019-05-07 上海寒武纪信息科技有限公司 Information processing method and terminal device
CN109263280A (en) * 2018-10-12 2019-01-25 森大(深圳)技术有限公司 Onepass inkjet printing methods, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
俞丛晴;占红武;梅灿华;: "工业打印系统数据通道设计", 轻工机械, no. 03, 20 June 2013 (2013-06-20), pages 69 - 71 *
毛维平;李国林;粘朋雷;: "微型打印机与FPGA的硬件接口及软件设计", 现代电子技术, no. 20, 15 October 2010 (2010-10-15), pages 204 - 210 *

Similar Documents

Publication Publication Date Title
JP6352943B2 (en) Data processing method, apparatus, program, and ink jet printer
EP4190569A1 (en) Nozzle compensation for shuttle based printers
CN109760431B (en) Print data processing method, device, equipment and storage medium
CN109471602A (en) Print data method for dividing and processing, device and printing device
WO2014000659A1 (en) Printing control method and printer
CN107521226B (en) A kind of data processing method, device and ink-jet printer
CN112394887A (en) Oneepass printing data high-efficiency processing method, device, equipment and storage medium
JP2009078552A (en) Recording apparatus and its processing method
JP2008273014A (en) Recorder and its control method
CN110303787B (en) Image array printing method and device
JP5984550B2 (en) Information processing apparatus and information processing method
CN113442581A (en) Printing method, device, equipment and storage medium
US8939530B2 (en) Pixel data processing
JP3919587B2 (en) Recording apparatus and recording apparatus control method
CN103419513B (en) A kind of processing method of random image and a kind of printing equipment control system
JP2001328256A (en) Ink jet printer and its recording method
CN108274897B (en) Method of printing and device
JP4661194B2 (en) Image recording device
JPH09300735A (en) Printing controlling apparatus
JP4595578B2 (en) Printing apparatus and printing method
JPS6246011B2 (en)
JP5736826B2 (en) Image data processing apparatus, recording apparatus, and image data processing method
JP4323622B2 (en) Recording device
JP2019185507A (en) Printing device and firmware update method for printing device
JP2012218305A (en) Recording apparatus, and data storage method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination