CN109664620B - Print data processing method, device and equipment - Google Patents

Print data processing method, device and equipment Download PDF

Info

Publication number
CN109664620B
CN109664620B CN201811491143.1A CN201811491143A CN109664620B CN 109664620 B CN109664620 B CN 109664620B CN 201811491143 A CN201811491143 A CN 201811491143A CN 109664620 B CN109664620 B CN 109664620B
Authority
CN
China
Prior art keywords
data
image data
processing channel
sub
spray head
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.)
Active
Application number
CN201811491143.1A
Other languages
Chinese (zh)
Other versions
CN109664620A (en
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.)
Sen Da (shenzhen) Technology Co Ltd
Original Assignee
Sen Da (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 Sen Da (shenzhen) Technology Co Ltd filed Critical Sen Da (shenzhen) Technology Co Ltd
Priority to CN201811491143.1A priority Critical patent/CN109664620B/en
Publication of CN109664620A publication Critical patent/CN109664620A/en
Application granted granted Critical
Publication of CN109664620B publication Critical patent/CN109664620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/21Ink jet for multi-colour printing
    • 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
    • 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
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/54Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed with two or more sets of type or printing elements
    • B41J3/543Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed with two or more sets of type or printing elements with multiple inkjet print heads
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41MPRINTING, DUPLICATING, MARKING, OR COPYING PROCESSES; COLOUR PRINTING
    • B41M5/00Duplicating or marking methods; Sheet materials for use therein
    • B41M5/0023Digital printing methods characterised by the inks used
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Abstract

The invention discloses a method, a device and equipment for processing print data. According to the method, image data to be printed are split into image data according to a software processing channel; splitting the image data into a plurality of sub-image data according to a logic processing channel distribution rule; and correspondingly storing a plurality of parts of the sub-image data in a memory according to the distribution rule of the logic processing channel. The invention improves the speed of extracting the image data during printing, saves time and improves printing efficiency.

Description

Print data processing method, device and equipment
Technical Field
The present invention relates to the field of printing technologies, and in particular, to a method, an apparatus, and a device for processing print data.
Background
The ink jet printing technology is a technology for jetting ink drops to a printing medium through nozzles on a spray head to obtain images or characters, along with the development of the ink jet technology, people have higher and higher requirements on ink jet printing, not only are high printing precision required and high printing speed required, but also printing equipment with multiple spray heads appears. If the image data to be printed is split in advance according to the nozzle rule of the spray head only by adopting software, the data splitting delay processing can be realized at low cost by virtue of strong operation of a computer and a large amount of memory resources, but the processing process involves a large amount of bit operation, so that the image processing speed can be greatly reduced, the printing speed is reduced, and the requirement of high-speed printing at present cannot be met. If only hardware is adopted to split image data to be printed according to the nozzle rule of the spray head, the advantage of the alignment operation of the programmable logic device can be effectively utilized, but the operation of split delay processing needs a large amount of internal memories, and the cost is greatly increased.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for processing print data, which are used for solving the problem of low printing efficiency caused by slow speed of only software processing or only hardware processing of the print data when the amount of the print data is large in the prior art.
In a first aspect, an embodiment of the present invention provides a print data processing method, where the method includes:
splitting an image to be printed into image data according to a software processing channel;
splitting the image data into a plurality of sub-image data according to a logic processing channel distribution rule;
storing a plurality of parts of the sub-image data in a memory correspondingly according to the distribution rule of the logic processing channel;
wherein the logic processing channel allocation rule comprises: when one software processing channel corresponds to one spray head, at least one logic processing channel is correspondingly distributed to a row of nozzles on one spray head; when one software processing channel corresponds to one color, at least one logic processing channel is correspondingly distributed to one spray head; when the software processing channel corresponds to a data processor, at least one logic processing channel is correspondingly distributed to one spray head or a row of nozzles or one color on one spray head.
Preferably, between the splitting of the image to be printed into image data according to the software processing channel and the splitting of the image data into a plurality of sub-image data according to the logic processing channel distribution rule, the method further includes:
storing the image data into the memory in a normal printing mode or an insertion printing mode according to an FIFO queue mode;
wherein the normal printing mode indicates that the image data are output in an FIFO queue order, and the insertion printing mode indicates that other task data are inserted into an output data stream of the normal printing mode.
Preferably, before said storing said image data in said memory in a normal print mode or an interleave print mode in a FIFO queue, said method further comprises:
and the upper computer sequentially sends the image data to the lower computer.
Preferably, characterized in that the method further comprises:
acquiring offset parameters and serial numbers Rc of the logic processing channels which need to be read currently;
calculating and obtaining the actual storage address of the data corresponding to the logic processing channel needing to be read currently in the memory according to the offset parameter and the serial number Rc;
and extracting the corresponding sub-image data according to the actual storage address.
Preferably, the acquiring the number Rc of the logical processing channel currently needing to be read includes:
Lc-Lco=Rc
where Lc represents the value of the address fetch counter, and Lco represents the offset parameter of the logical processing channel that needs to be read currently.
Preferably, the calculation formula for obtaining the actual storage address of the data corresponding to the currently required to be read in the memory by calculating according to the offset parameter and the number Rc is as follows:
(Rc×Sc×Sp+Lcs)×Lcn+Fa=La
wherein Sc represents the total number of the logical processing channels, Sp represents the total number of the software processing channels, Lcs represents the number of the logical processing channel to be currently read, Lcn represents the data length corresponding to a single logical processing channel, Fa represents the start address of data storage, and La represents the actual storage address of the data corresponding to the logical processing channel to be currently read.
Preferably, the method further comprises:
acquiring the number of the sub-image data transmitted by each interface of the driver;
sequentially sending a plurality of sub-image data to the cache space of the corresponding interface;
and combining the data in the buffer space into printing data with a preset format, and outputting and printing the printing data.
In a second aspect, an embodiment of the present invention provides a print data processing apparatus, including:
the first data splitting module is used for splitting the image to be printed into image data according to the software processing channel;
the second data splitting module is used for splitting the image data into a plurality of sub-image data according to a logic processing channel distribution rule;
the data storage module is used for correspondingly storing a plurality of parts of the sub-image data according to the logic processing channel distribution rule;
wherein the logic processing channel allocation rule comprises: when one software processing channel corresponds to one spray head, at least one logic processing channel is correspondingly distributed to a row of nozzles on one spray head; when one software processing channel corresponds to one color, at least one logic processing channel is correspondingly distributed to one spray head; when the software processing channel corresponds to a data processor, at least one logic processing channel is correspondingly distributed to one spray head or a row of nozzles or one color on one spray head.
In a third aspect, an embodiment of the present invention provides a print data processing apparatus including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In summary, according to the method, the apparatus, and the device for processing print data provided by the embodiments of the present invention, the image data to be printed is initially split into image data according to the software processing channel, and then split into a plurality of sub-image data according to the logic processing channel allocation rule, and the image data to be printed is split through the combination of software and hardware, so that the speed of data processing is increased, the time is saved, and the printing efficiency is increased.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic configuration diagram of a print control system of an embodiment of the present invention.
Fig. 2 is a flowchart of a print data processing method according to a first embodiment of the present invention.
Fig. 3 is a flowchart of a print data processing method according to a second embodiment of the present invention.
Fig. 4 is an image data splitting diagram of the print data processing method of the first embodiment of the present invention.
Fig. 5 is a data structure diagram of a print data processing method according to the first embodiment of the present invention.
Fig. 6 is a data structure diagram of a print data processing method according to the first embodiment of the present invention.
Fig. 7 is a flowchart of a print data processing method according to a third embodiment of the present invention.
Fig. 8 is a flowchart of a print data processing method according to a fourth embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a print data processing apparatus according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a print data processing apparatus according to an embodiment 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.
The printing data processing method can be realized in an integrated machine comprising an image processor and a printing control system, and can also be realized in a separate device with the image processor and the printing control system separated. The image processor can process an image to be printed into a print file which can be identified by the printer, the print file comprises various parameters for controlling the movement of the printing equipment and image data to be printed, the image processor can be split into the image data according to the software processing channel when processing the image to be printed into the image data to be printed, and simultaneously can process the image data into sub-image data according to the logic processing channel, and then directly input the sub-image data into the printing control system for ink-jet printing, but when the number of spray heads is large, the data processing amount of the image processor is very large, and the data processing speed is reduced at the moment, so that the printing of the printing control system is influenced.
Referring to fig. 1, in this embodiment, the printing control system 100 includes at least one main control board 110, at least one inkjet board 120, and at least one nozzle 140, the inkjet board 120 is respectively connected to the main control board 110 and the nozzle 140, the nozzle drive board 130 is connected to the nozzle 140, the image processor splits image data to be printed into image data according to the software processing channel and then sends the image data to the printing control system 100, and the inkjet board 120 in the printing control system 100 splits the image data according to the logic processing channel, so that when the number of nozzles 140 is large, the data processing amount of the image processor can be reduced, and the data processing speed can be increased. In another modified embodiment, the printing control system 100 further includes at least one nozzle 140 driving board 130, the nozzle driving board 130 is respectively connected to the nozzle plate 120 and the nozzle 140, and the nozzle driving board 130 can further separate the sub-image data and then send the sub-image data to the nozzle 140 for inkjet printing.
Referring to fig. 2, an embodiment of the present invention provides a method for processing print data, in which image data to be printed is initially split into image data according to a software processing channel, and then split into a plurality of sub-image data according to a logic processing channel allocation rule, and the image data to be printed is split through a combination of software and hardware, so that a data processing speed is increased, time is saved, and a printing efficiency is improved. The print data processing method specifically comprises the following steps:
s1, splitting the image to be printed into image data according to the software processing channel;
s2, splitting the image data into a plurality of sub-image data according to a logic processing channel distribution rule;
and S3, correspondingly storing a plurality of sub-image data in a memory according to the logic processing channel distribution rule. And then extracting the sub-image data stored in the memory to a spray head driver for splitting again or directly inputting the sub-image data to a spray head for ink-jet printing.
The software processing channels are defined according to printing equipment and printing requirements, and one software processing channel corresponds to one nozzle or a row of nozzles or one color in ink-jet printing or one data processor. When one software processing channel corresponds to one spray head, the sub-image data can be directly input into the spray head for ink-jet printing after being extracted; when one software processing channel corresponds to a row of nozzles, a plurality of sub-image data are stored in a memory and then directly input into a spray head for ink-jet printing; when one software processing channel corresponds to one processor, after a plurality of sub-image data are stored in a memory, the sub-image data are extracted to a spray head driver for secondary splitting processing, and then the sub-image data are input into a spray head for ink-jet printing.
Specifically, an image to be printed is split into image data in an image processor according to software processing channels, and one software processing channel corresponds to one image data. Then, the image data is split according to the distribution rule of the logic processing channel, in this embodiment, the split processing of the image data is processed while receiving, the image data is sent to a printing control system from one part of the image processor, and the printing control system immediately splits according to the logic processing channel after receiving one part of the image data; in another variant, the splitting of the image data is performed after the print control system has received all the image data, and each piece of the image data is split. Further, the logic processing channel allocation rule comprises: when one software processing channel corresponds to one spray head, at least one logic processing channel is correspondingly distributed to a row of nozzles on one spray head, when one row of nozzles only corresponds to one print task, one logic channel is distributed to one row of nozzles, so that data processing is fast and chaos is not easy to happen, but when one row of nozzles corresponds to two or more print tasks, the logic channel corresponding to the print task is distributed to one row of nozzles, so that one print task corresponds to one logic processing channel, and the independent management of each print task is ensured; when one software processing channel corresponds to one color, at least one logic processing channel is correspondingly distributed to one spray head, for example, when a color image is printed, a plurality of colors are required to be printed, the printing equipment comprises spray heads with four colors of C (cyan), M (magenta), Y (yellow) and K (black), an image processor can be split according to the colors in advance, and then each color is split according to the spray heads; when the software processing channel corresponds to a data processor, at least one logic processing channel is correspondingly allocated to one spray head or a row of nozzles or one color on the spray head, for example, distributed printing is connected with a plurality of printing devices at one time, each printing device is provided with a data processor, at this time, the image processor can be split according to the data processor, and then each printing device is split again to spray heads or colors or nozzle rows. And meanwhile, the sub-image data is stored in the memory according to the distribution rule of the logic processing channels. Therefore, the storage and extraction management of the data are facilitated, and the data processing speed is improved. The memory may be an external memory or a memory, such as DDR, and the specific type of the memory is not specifically limited herein.
Preferably, referring to fig. 3, between the step S1 and the step S2, the method further includes:
s11, storing the image data into the memory in a normal printing mode or an insertion printing mode according to a FIFO queue mode;
wherein the normal printing mode indicates that the image data are output in an FIFO queue order, and the insertion printing mode indicates that other task data are inserted into an output data stream of the normal printing mode.
Preferably, before the step S11, the method further includes:
and S10, the upper computer sends the image data to the lower computer in sequence.
In this embodiment, the upper computer includes the image processor, the lower computer includes the printing control system, the image data to be printed is split and processed into image data in the upper computer according to the software processing channel, and then is sent to the lower computer, and then is split and processed in the lower computer. Specifically, referring to fig. 4, before storing according to the software processing channel, the image data is split into P data columns according to a data column of 8 pixel columns on the corresponding dot matrix image after being processed by the image processor, where P is an integer greater than or equal to 1, and at this time, the dot matrix image is 1bit gray; if the dot matrix image is 2-bit gray, one data column includes 4 pixel columns, and how many pixel columns one data column includes is not specifically limited herein. In this embodiment, the one software processing channel corresponds to one nozzle, the software processing channel is denoted as SP _ CH, the software processing channel is split into image data according to the number of nozzles in the upper computer, one nozzle corresponds to one piece of image data, please refer to fig. 5, the number of nozzles is 16, the total number of nozzles on a single nozzle is 2656, and the nozzles need to fire 4p times to print the image data after scanning in the main scanning direction, where p represents the number of a data column, a data structure of the image data in this embodiment is as shown in fig. 5, SP _ CH0-0 in the data structure represents data corresponding to nozzle 1 when the data column is 1 st column, SP _ CH1-0 represents data … … SP _ CH15-0 corresponding to nozzle 2 when the data column is 1 st column, SP _ CH1-1 represents data … … SP _ CH15-1 corresponding to nozzle 1 when the data column is 2 nd column, and SP _ CH1-1 represents data corresponding to nozzle 1 when the data column is 2 nd column Data column 2 for head 16, SP _ CH1-p for head 2, BYTE0 for head 1, BYTE1 for head 1, second nozzle … … for BYTE2655 for head 1, 2656; in the embodiment, the data storage of the 1PASS in the lower computer requires 8-byte alignment, so that the problem of segmentation caused by the fact that the initial address is not limited by the physical address of the memory when the data of the 1PASS is read is solved. The upper computer can be implemented in various forms. For example, the host computer may include devices such as a desktop computer, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), and the like.
The image data can be transmitted to a lower computer through a USB or a PS (Processing System: part of SOC of ARM irrelevant to FPGA), and when the image data is transmitted through the USB, the image data needs to be written into DDR through a DDR cache FIFO control module in the lower computer; when the image data is transmitted through the PS, the image data is directly written into the memory in the lower computer.
In this embodiment, it is assumed that the nozzle scans once along the main scanning direction as 1PASS, the image data in the lower computer is read in units of PASS, the data reading is controlled by the memory, the data reading in the lower computer is controlled by the memory as long as the memory is not full, the data reading in the lower computer is controlled by the data reading command, the data reading can only be started after the data reading command is provided, the reading length is limited to 1PASS data, the reading is stopped until the next read data starting command is completed, the inserting data reading control is to realize the inter-PASS inserting function in this embodiment, if not controlled, the lower data caching module cannot distinguish that the data belongs to the PASS, and the data of the PASS behind cannot be inserted in front for processing, and the specific function of the data reading in this embodiment is realized by the DDR caching FIFO control module, the output data is 32 bits, the time sequence standard of the data output AXIS interface is met, so that the data input and output speed is high and the efficiency is high.
Referring to fig. 6, in this embodiment, the logic channel corresponds to a row of nozzles on a head, the logic processing channel is denoted as LP-CH, then there are 32 nozzle rows on a single head, data corresponding to each head in each data instance in the image data is divided into 32 sub-image data, the sub-image data are aligned in 4 BYTEs, and the length of the sub-image data is 84BYTE, as shown in fig. 5, which is a data format corresponding to the 1 st head in the image data, where LP-CH0-0 represents data corresponding to the 1 st nozzle row in the 1 st head when the data row is the 1 st head, and LP-CH1-0 represents data … … LP-CH31-0 corresponding to the 2 nd nozzle row in the 1 st head when the data row is the 1 st head, LP-CH0-1 indicates data corresponding to the 1 st nozzle row in the 1 st head when the data row is the 2 nd row, LP-CH1-1 indicates data … … LP-CH31-1 corresponding to the 2 nd nozzle row in the 1 st head when the data row is the 2 nd row indicates data corresponding to the 32 nd nozzle row in the 1 st head when the data row is the 2 nd row, and LP-CH0-p indicates data corresponding to the 1 st nozzle row in the 1 st head when the data row is the p th row.
Referring to fig. 7, in the present embodiment, the method further includes:
s71, acquiring the offset parameter and the serial number Rc of the logic processing channel which needs to be read currently;
s72, calculating and obtaining the actual storage address of the data corresponding to the logic processing channel needing to be read currently in the memory according to the offset parameter and the serial number Rc;
and S73, extracting the corresponding sub-image data according to the actual storage address.
Specifically, the sub-image data extracted by each logic processing channel during each ignition is not in the same data column, and the actual storage address of the sub-image data corresponding to the logic processing channel in the memory can be calculated according to the offset parameter of each logic processing channel and the number of the logic processing channel and a formula, and whether the actual storage address is valid or not is judged by the following method: setting the maximum serial number of the logic channel as Mc, wherein the Mc is an integer which is greater than or equal to zero; if Rc is greater than or equal to 0 and less than or equal to Mc, acquiring that the actual storage address of the sub-image data corresponding to the logic processing channel which needs to be read currently is valid according to an addressing rule, and extracting data according to the actual storage address; if Rc is less than or equal to 0 or Mc is less than or equal to Rc, the actual storage address of the sub-image data corresponding to the logical processing channel which needs to be read currently is invalid, and the sub-image data corresponding to the logical processing channel which needs to be read currently is replaced by ink non-discharge data.
Preferably, the acquiring the number Rc of the logical processing channel currently needing to be read includes:
Lc-Lco=Rc
where Lc represents the value of the address fetch counter, and Lco represents the offset parameter of the logical processing channel that needs to be read currently.
Preferably, the calculation formula for obtaining the actual storage address of the data corresponding to the currently required to be read in the memory by calculating according to the offset parameter and the number Rc includes:
(Rc×Sc×Sp+Lcs)×Lcn+Fa=La
wherein Sc represents the total number of the logical processing channels, Sp represents the total number of the software processing channels, Lcs represents the number of the logical processing channel to be currently read, Lcn represents the data length corresponding to a single logical processing channel, Fa represents the start address of data storage, and La represents the actual storage address of the data corresponding to the logical processing channel to be currently read.
Referring to fig. 8, in another embodiment, the method further includes:
s81, acquiring the number of the sub-image data acquired by each interface of the driver;
s82, sequentially sending a plurality of sub-image data to the cache space of the corresponding interface;
and S83, combining the data in the buffer space into printing data with a preset format, and outputting and printing the printing data.
Specifically, in this example, the driver is a nozzle drive plate, and when the image processor is located on the upper computer and the printing control system is located on the lower computer, the driver is located on the lower computer; when the image processor and the printing control system are positioned in the all-in-one machine, the driver is also positioned in the all-in-one machine. The method of fig. 8 specifically includes: allocating a buffer space to each interface, wherein the buffer space of each interface is a RAM buffer, reading the sub-image data corresponding to the logic processing channel from the input FIFO, writing the sub-image data into the RAM buffer of the interface, and allocating a space to each sub-image data according to the data length corresponding to the logic processing channel, wherein the allocated space supports ping-pong operation. If a logic channel corresponds to a row of nozzles on a spray head, each spray head has 32 nozzle rows, all drivers have 8 interfaces, each interface distributes 4 sub-image data, the sub-image data corresponding to the nozzle rows of 0-3 is distributed to interface 0, the sub-image data corresponding to the nozzle rows of 4-7 is distributed to interface 1, and so on; if the number of nozzle columns is not sufficiently large, for example, only 31 nozzle columns, the last interface writes less sub-image data corresponding to one nozzle column, and the sub-image data is filled by the subsequent processing. If the number of nozzle columns exceeds the allocable interface, the sub-image data corresponding to the redundant nozzle columns is lost and cannot be written from the interface 0 again. Then, the data in the buffer space are combined into the print data of the software processing channel, in this embodiment, the print data with a BIT width of 32BIT is combined, and the print data is written into the lower module in a manner that each nozzle row takes a turn of 32 BIT. Since the data interface is 32BIT, each byte can read 1 pixel per clock, and totally 4 pixels can be read at a time, namely 4BIT or 8BIT data, the output rate of the current interface can be completely met, and the data transmission speed is ensured.
Referring to fig. 9, an embodiment of the present invention provides a print data processing apparatus, including:
a first data splitting module 10, configured to obtain the number of sub-image data transmitted by each interface of the driver;
the second data splitting module 20 is configured to split the image data into a plurality of sub-image data according to a logic processing channel allocation rule;
the data storage module 30 is configured to correspondingly store a plurality of portions of the sub-image data according to the logic processing channel distribution rule;
wherein the logic processing channel allocation rule comprises: when one software processing channel corresponds to one spray head, at least one logic processing channel is correspondingly distributed to a row of nozzles on one spray head; when one software processing channel corresponds to one color, at least one logic processing channel is correspondingly distributed to one spray head; when the software processing channel corresponds to a data processor, at least one logic processing channel is correspondingly distributed to one spray head or a row of nozzles or one color on one spray head.
Preferably, the apparatus further comprises:
the image data storage module is used for storing the image data into the memory in a normal printing mode or an insertion printing mode according to an FIFO queue mode;
wherein the normal printing mode indicates that the image data are output in an FIFO queue order, and the insertion printing mode indicates that other task data are inserted into an output data stream of the normal printing mode.
Preferably, the apparatus further comprises:
and the image data sending module is used for sequentially sending the image data to the lower computer by the upper computer.
Preferably, the apparatus further comprises:
the parameter acquisition module is used for acquiring the offset parameter and the serial number Rc of the logic processing channel which needs to be read currently;
a storage address obtaining module, configured to calculate, according to the offset parameter and the serial number Rc, to obtain an actual storage address of data corresponding to a current logical processing channel to be read in the memory;
and the sub-image data extraction module is used for extracting the corresponding sub-image data according to the actual storage address.
Preferably, the acquiring the number Rc of the logical processing channel currently needing to be read includes:
Lc-Lco=Rc
where Lc represents the value of the address fetch counter, and Lco represents the offset parameter of the logical processing channel that needs to be read currently.
Preferably, the calculation formula for obtaining the actual storage address of the data corresponding to the currently required to be read in the memory by calculating according to the offset parameter and the number Rc is as follows:
(Rc×Sc×Sp+Lcs)×Lcn+Fa=La
wherein Sc represents the total number of the logical processing channels, Sp represents the total number of the software processing channels, Lcs represents the number of the logical processing channel to be currently read, Lcn represents the data length corresponding to a single logical processing channel, Fa represents the start address of data storage, and La represents the actual storage address of the data corresponding to the logical processing channel to be currently read.
Preferably, the apparatus further comprises:
the interface information acquisition module is used for acquiring the number of the sub-image data acquired by each interface of the driver;
the subimage data sending module is used for sequentially sending a plurality of portions of subimage data to the cache space of the corresponding interface;
and the printing output module is used for combining the data in the cache space into printing data with a preset format and outputting and printing the printing data.
In addition, the print data processing method of the embodiment of the present invention described in conjunction with fig. 1 may be implemented by a print data processing apparatus. Fig. 10 is a diagram showing a hardware configuration of a print data processing apparatus according to an embodiment of the present invention.
The print data processing apparatus may comprise a processor 401 and a memory 402 in which computer program instructions are stored.
Specifically, the processor 401 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.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 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 401 realizes any one of the print data processing methods in the above-described embodiments by reading and executing computer program instructions stored in the memory 402.
In one example, the print data processing apparatus may further include a communication interface 403 and a bus 410. As shown in fig. 10, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 410 includes hardware, software, or both to couple the components of the print data processing apparatus to one another. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the print data processing method in the above embodiment, the embodiment 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 of the print data processing methods in the above embodiments.
In summary, according to the method, the apparatus, and the device for processing print data provided by the embodiments of the present invention, the image data to be printed is initially split into image data according to the software processing channel, and then split into a plurality of sub-image data according to the logic processing channel allocation rule, and the image data to be printed is split through the combination of software and hardware, so that the speed of data processing is increased, the time is saved, and the printing efficiency is increased.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A method of processing print data, the method comprising:
splitting image data to be printed into image data according to a software processing channel;
splitting the image data into a plurality of sub-image data according to a logic processing channel distribution rule;
storing a plurality of parts of the sub-image data in a memory correspondingly according to the distribution rule of the logic processing channel;
wherein the logic processing channel allocation rule comprises: when one software processing channel corresponds to one spray head, at least one logic processing channel is correspondingly distributed to a row of nozzles on one spray head; when one software processing channel corresponds to one color, at least one logic processing channel is correspondingly distributed to one spray head; when the software processing channel corresponds to a data processor, at least one logic processing channel is correspondingly distributed to one spray head or a row of nozzles or one color on one spray head.
2. The print data processing method according to claim 1, wherein between said splitting of the image data to be printed into image data according to a software processing channel and said splitting of the image data into sub-image data according to a logical processing channel allocation rule, the method further comprises:
storing the image data into the memory in a normal printing mode or an insertion printing mode according to an FIFO queue mode;
wherein the normal printing mode indicates that the image data are output in an FIFO queue order, and the insertion printing mode indicates that other task data are inserted into an output data stream of the normal printing mode.
3. The print data processing method according to claim 2, wherein before said storing said image data in said memory in a normal print mode or an interleave print mode in a FIFO queue, said method further comprises:
and the upper computer sequentially sends the image data to the lower computer.
4. The print data processing method according to any one of claims 1 to 3, characterized by further comprising:
acquiring offset parameters and serial numbers Rc of the logic processing channels which need to be read currently;
calculating and obtaining the actual storage address of the data corresponding to the logic processing channel needing to be read currently in the memory according to the offset parameter and the serial number Rc;
and extracting the corresponding sub-image data according to the actual storage address.
5. The print data processing method according to claim 4, wherein said acquiring the number Rc of the logical processing channel currently required to be read includes:
Lc-Lco=Rc
where Lc represents the value of the address fetch counter, and Lco represents the offset parameter of the logical processing channel that needs to be read currently.
6. The method according to claim 5, wherein the calculation formula for obtaining the actual storage address in the memory of the data corresponding to the currently read logical processing channel according to the offset parameter and the number Rc is:
(Rc×Sc×Sp+Lcs)×Lcn+Fa=La
wherein Sc represents the total number of the logical processing channels, Sp represents the total number of the software processing channels, Lcs represents the number of the logical processing channel to be currently read, Lcn represents the data length corresponding to a single logical processing channel, Fa represents the start address of data storage, and La represents the actual storage address of the data corresponding to the logical processing channel to be currently read.
7. The print data processing method according to claim 6, further comprising:
acquiring the number of the sub-image data transmitted by each interface of the driver;
sequentially sending a plurality of sub-image data to the cache space of the corresponding interface;
and combining the data in the buffer space into printing data with a preset format, and outputting and printing the printing data.
8. A print data processing apparatus, characterized in that the apparatus comprises:
the first data splitting module is used for splitting the image data to be printed into image data according to the software processing channel;
the second data splitting module is used for splitting the image data into a plurality of sub-image data according to a logic processing channel distribution rule;
the data storage module is used for correspondingly storing a plurality of parts of the sub-image data according to the logic processing channel distribution rule;
wherein the logic processing channel allocation rule comprises: when one software processing channel corresponds to one spray head, at least one logic processing channel is correspondingly distributed to a row of nozzles on one spray head; when one software processing channel corresponds to one color, at least one logic processing channel is correspondingly distributed to one spray head; when the software processing channel corresponds to a data processor, at least one logic processing channel is correspondingly distributed to one spray head or a row of nozzles or one color on one spray head.
9. A print data processing apparatus characterized by 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.
CN201811491143.1A 2018-12-07 2018-12-07 Print data processing method, device and equipment Active CN109664620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811491143.1A CN109664620B (en) 2018-12-07 2018-12-07 Print data processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811491143.1A CN109664620B (en) 2018-12-07 2018-12-07 Print data processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN109664620A CN109664620A (en) 2019-04-23
CN109664620B true CN109664620B (en) 2020-03-13

Family

ID=66144651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811491143.1A Active CN109664620B (en) 2018-12-07 2018-12-07 Print data processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN109664620B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176866B (en) * 2019-05-25 2024-03-22 森大(深圳)技术有限公司 Method, device, equipment and storage medium for processing data of ink-jet printer
CN110347356B (en) * 2019-07-13 2024-01-26 森大(深圳)技术有限公司 Image local area printing method, device and storage medium
CN111730995B (en) * 2019-08-23 2022-04-26 深圳市汉森软件有限公司 Scanning type ink-jet printing control method, device, equipment and storage medium
CN112114759B (en) * 2020-08-03 2024-02-09 广州旭成电子科技有限公司 Ink-jet printing data processing method
CN114516225B (en) * 2020-11-20 2023-04-28 深圳市汉森软件有限公司 Method, device, equipment and medium for splitting image data into different directions for printing

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012200934A (en) * 2011-03-24 2012-10-22 Fuji Xerox Co Ltd Image data processing system
CN103029458B (en) * 2011-09-30 2015-11-25 北大方正集团有限公司 For digital printed control system and method
EP2804368A4 (en) * 2012-01-10 2015-09-23 Kyocera Document Solutions Inc Image processing apparatus and image forming apparatus
CN103448390B (en) * 2012-06-05 2016-06-29 北大方正集团有限公司 A kind of digital printing control method and equipment
CN103909730B (en) * 2013-01-07 2015-12-09 北大方正集团有限公司 A kind of data processing method, device and ink-jet printer
CN104972743B (en) * 2014-04-04 2016-08-31 北大方正集团有限公司 Ink jet printing method and device
CN104077233B (en) * 2014-06-18 2017-04-05 百度在线网络技术(北京)有限公司 Multichannel convolutive layer treating method and apparatus
CN106610799A (en) * 2015-10-27 2017-05-03 北大方正集团有限公司 Data division delay processing method, device and system of ink jet printing
CN107521226B (en) * 2016-06-21 2019-03-12 北大方正集团有限公司 A kind of data processing method, device and ink-jet printer

Also Published As

Publication number Publication date
CN109664620A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN109664620B (en) Print data processing method, device and equipment
CN109697040B (en) Print data processing method, device and printer
CN109471602B (en) Printing data splitting processing method and device and printing equipment
US8259334B2 (en) Data pump for printing
CN109739449B (en) Method, device, equipment and medium for synchronously processing printing parameters and printing data
US8305634B2 (en) Image processing device, image recording system, image processing method and computer-readable medium
CN110187851B (en) Data processing method, device, equipment and storage medium for ink-jet printer
JP3533895B2 (en) Serial printer and image buffer access method in serial printer
CN110223643B (en) Data transmission method, assembly and system and display device
US20080204795A1 (en) Data transmission apparatus and method of controlling the same and method of processing data to be printed onto a printable medium
CN109445724B (en) Printing memory management method, device and equipment
CN110901229B (en) Image data processing method, device, equipment and storage medium
US20160247052A1 (en) Image processing apparatus and image processing method for executing image processing using multiple image processing units
US5793939A (en) Print controlling apparatus
US7961349B2 (en) Information processing apparatus and printer driver
KR100524013B1 (en) formatting apparutus of printing data and method thereof
US20100157333A1 (en) Printing apparatus and printing method
CN108984136A (en) print data transmission method, device, equipment and storage medium
US11481589B2 (en) Onepass system inkjet printing control method, device and storage medium
CN103419513B (en) A kind of processing method of random image and a kind of printing equipment control system
CN101354750B (en) Data processing method, printing equipment, apparatus and system for digital printing
US10516804B2 (en) Image processing device, image processing system, and non-transitory computer readable medium
CN112248668A (en) Method and device for controlling printing press
CN116775257A (en) GPU-based high-speed printing method, device, equipment and storage medium
JP2001187476A (en) Printer and method for transferring image data

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
GR01 Patent grant
GR01 Patent grant