CN1710598A - Printing control method capable of avoiding printing border-crossing error - Google Patents

Printing control method capable of avoiding printing border-crossing error Download PDF

Info

Publication number
CN1710598A
CN1710598A CN 200510076695 CN200510076695A CN1710598A CN 1710598 A CN1710598 A CN 1710598A CN 200510076695 CN200510076695 CN 200510076695 CN 200510076695 A CN200510076695 A CN 200510076695A CN 1710598 A CN1710598 A CN 1710598A
Authority
CN
China
Prior art keywords
section
rasterisation
print
time
page
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.)
Granted
Application number
CN 200510076695
Other languages
Chinese (zh)
Other versions
CN100356395C (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.)
Peking University
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Beijing Founder Electronics 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 Peking University, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CNB2005100766952A priority Critical patent/CN100356395C/en
Publication of CN1710598A publication Critical patent/CN1710598A/en
Application granted granted Critical
Publication of CN100356395C publication Critical patent/CN100356395C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

In existing technique, method of local dispatch and multitask is adopted mainly for determining raster sequence in middle section on page. The disclosed printing control method uses global dispatch and considers fully reusing buffer held by raster data in middle section on page in order to reach purpose of preventing error of printing cross the boarder under limited printing memory. The invention prevents error of printing cross the boarder, reduces time for preparing raster so as to raise printing efficiency.

Description

A kind of print control program that can avoid printing border-crossing error
Technical field
The invention belongs to printing control technical filed, be specifically related to a kind of can avoiding in the print procedure Printing border-crossingThe print control program of mistake.
Background technology
In the prior art, common grating printing device prints one IndividualPage or leaf FaceWhole workflow can be divided into three parts: at first, receive print data from main frame; Then print data is rasterized into grating lattice; At last grating lattice is sent to print engine output.
For the printer of some grating printing device as the employing technique of laser imaging, grating lattice must offer Printer Engine with fixing speed, because Printer Engine must be transferred to grating lattice on the print wheel with changeless speed, in case grating lattice can not in time be sent to Printer Engine, the mistake of so-called " printing border-crossing " (print overrun) then can take place, and what the page can not be correct outputs on the paper.
Usually, the print control program of such grating printing device has following several:
1) rasterisation one page dot matrix finishes in advance, grating lattice is left in the internal memory, and then begin to print, like this because grating lattice exists in the internal memory, can guarantee can not take place the mistake of print overrun, such method weak point is for high-resolution printing device, usually need very big internal memory, then more like this for color printer, as store an A4 breadth, the CMYK color page of 600DPI, the internal memory that approximately needs 16MB, this can increase the cost of printer greatly, in addition, this method could begin to print after need finishing complete page of rasterisation, and this tends to reduce print speed.
2) another common method is that a page is divided into plurality of sections, earlier page data is explained and become a kind of intermediate form of arranging by section, the data of this intermediate form are than being easier to be converted into final grating lattice, and the shared internal memory of the data of this intermediate form is significantly smaller than the grating lattice of the page usually, printer elder generation rasterisation just can begin to print for one section, the grating lattice that carries out next section in the process that the preceding paragraph is printed simultaneously produces in real time, can improve print speed like this, do not need very big internal memory to deposit the grating lattice of a complete page again, in case the weak point of this method is that a certain section data are very complicated, then printer can not in time be finished the rasterisation of this section probably in the time that the preceding paragraph is printed, and then can produce Printing border-crossing (Print overrun )Mistake, the page can not correctly be exported.
In order to prevent printing border-crossing error (print overrun)Generation, usual way is to calculate the needed rasterisation period of each section in advance at present, the section that surpasses one period time-write interval if any the rasterisation time, then with these sections rasterisation in advance, begin again to print, can guarantee so can not produce overrun, the deficiency of this method is that all sections that surpasses one period time-write interval of rasterisation in advance need take certain internal memory and deposit the dot matrix that rasterisation in advance finishes, this requires printer that bigger internal memory is arranged, and also tends to cause the increase of controller cost.
On this basis, some improved methods have appearred again, the method that in United States Patent (USP) 5129049, proposes as Hewlett-Packard, the principle of this method be if a certain section content is very simple or the content of this section in advance rasterisation finish, this section of time-write interval rasterisation that does not need a section when then this section printed, free time wherein then can be used for next section of rasterisation, and like this, the rasterisation time that might next section can not need rasterisation in advance greater than one period time-write interval.So this method can reduce the number of rasterizating section in advance to a certain extent.But this method has only been utilized the rasterisation free time of adjacent the preceding paragraph, does not make full use of all simple sections and reaches the rasterisation free time of rasterizating section in advance.Founder Electronics Co., Ltd. is in application on June 4th, 2004 and in disclosed " a kind of print control program that can reduce the pre-rasterisation of the page time " Chinese patent application (application number: 200410042983.1) on February 23rd, 2005, this method adopts two task control print procedures, make full use of the free time in the print procedure, reduced the memory requirements of print procedure, fully do not reused the buffer memory that the data with rasterized of the section of the page in the print procedure takies but this method has consideration in the process of the rasterisation order of arranging page stage casing.
Summary of the invention
At the defective that exists in the prior art, the purpose of this invention is to provide a kind of print control program that can avoid printing border-crossing error, this method is avoided printing border-crossing error under limited print memory situation.
For reaching above purpose, the technical solution used in the present invention is that a kind of print control program that can avoid printing border-crossing error may further comprise the steps:
A) printing device receives print data by interface from main frame, determines number and every period time-write interval of every page of section of being divided, and print data is construed to the intermediate form data of forming by section, and calculates the time of the rasterisation needs of each section;
B) calculate moment of each section beginning rasterisation, for each section, the beginning rasterisation that this section is set is constantly for beginning the moment the earliest of rasterisation under the prerequisite that does not cause the additional buffered demand, in if there is no such moment, then this section of mark is the needs pre-service;
C) will be marked as pretreated section rasterisation of needs, the section in the current print buffer printed in the startup Printer Engine, the beginning printer page;
D) in print procedure according to the beginning rasterisation of each section that calculates among the step b constantly, this moment rasterisation need rasterisation section.
Further, the rasterisation that calculates each section among the above-mentioned steps b comprises following steps the zero hour:
1) permission of initialization rasterisation is 0 constantly, and the minimum available moment of initialization is 0;
2) get first section of the page as processing section;
3) if the rasterisation time of processing section add the minimum available moment greater than processing section begin to print constantly, then the identification process section is for needing pretreated section; Rasterisation that rasterisation allows to equal original constantly is set to be allowed constantly to add and prints the time that a section needs;
4) otherwise rasterisation zero hour of set handling section be the minimum available moment; The minimum available moment is set equals the rasterisation time that the minimum available moment adds processing section;
5) if the minimum available moment allows constantly less than rasterisation, it is that rasterisation allows constantly that the minimum available moment then is set;
6) if also have section not handle, next section is set is processing section, change step 3) and handle.
Step c starts print engine in the said method, and the implementation method of beginning printer page is:
1) starts print engine, begin to print first section;
2) section is printed and is finished, and produces to print to interrupt;
3) in Interrupt Process, the grating lattice data with next section are sent to the matrix of printed dots buffer zone, and print engine will continue to print next section;
4) process of repetition 2,3 finishes up to page print.
Further, need the section of rasterisation among the above-mentioned steps d at the reasonable time rasterisation, may further comprise the steps:
1) if also there is the not section of rasterisation, then get first not section of rasterisation, its rasterisation start time and current time are compared;
2) if the rasterisation start time of section, then waits rasterisation start time this section of rasterisation of this section by the time greater than the current time, otherwise this section of rasterisation;
3) repeating step 1), 2), up to the section that does not have rasterisation not.
Effect of the present invention is: adopt print control program of the present invention, can fully reuse the buffer memory that the data with rasterized in page stage casing takies in print procedure, thereby can avoid printing border-crossing error under limited internal memory situation
Description of drawings
Fig. 1 is the print control program schematic diagram
Fig. 2 is the page that will print and how it is divided into the synoptic diagram of N section
Fig. 3 is the FB(flow block) of the main treatment step of the specific embodiment of the invention
Fig. 4 is the rasterisation process zero hour block diagram that calculates all sections of the page
Fig. 5 begins the section FB(flow block) that rasterisation needs rasterisation in the suitable moment
Fig. 6 starts print engine, the FB(flow block) that begins to print
Fig. 7 adopts the method for the invention to print the instantiation of a page in the print procedure.
Embodiment
Below in conjunction with Figure of description the present invention is done to describe further.
As shown in Figure 1, Fig. 1 has described the principle of a print control program involved in the present invention and each ingredient of laser printer, it comprises a host interface 11, CPU13, ROM16, DRAM12 and print control unit 14, parts such as Printer Engine 15, host interface 11 can be the parallel port, network, USB etc., printer receives the data that will print by host interface 11 from computing machine 10, and CPU13 is the central control unit in the printer, ROM 16 is used for depositing program and character library etc., DRAM12 then provides the buffering of program run space and grating lattice, and print control unit 14 is responsible for the work that prints of control Printer Engine 15, and 15 of Printer Engines can be transferred to grating lattice on the paper.
As shown in Figure 2, the page 20 that laser printer will be printed logically is divided into plurality of sections by the direction of paper feed, as N (N>=2) section, each section comprises identical sweep trace, as the M line, if a page line number is not just in time to equal N*M, then final stage line number is less than M, learn that easily this does not influence validity of the present invention, the time of supposing the needs of printer prints one page is T second, then can calculate the time-write interval TP=T/N of each section, can think that TP leaves the time that printer produces next section grating lattice for, if in the time of TP, can not obtain the grating lattice of next section, then can produce Print Overrun mistake.
The specific implementation of the print control program that the present invention relates to as shown in Figure 3, is as follows:
At first, printing device receives print data by interface from main frame, determine number and every period time-write interval of every page of section of being divided, will become the intermediate form data of forming by section from the data interpretation that main frame receives then, and calculate the time of the rasterisation needs of each section;
Then, calculate the rasterisation zero hour of all sections of the page.
The 3rd step will need pretreated section rasterisation, start print engine, the beginning printer page.
At last, rasterisation needs the section of rasterisation in the print procedure, and detailed step as shown in Figure 5.
Show that as Fig. 4 the rasterisation process zero hour of calculating all sections of the page is as follows:
1) permission of initialization rasterisation is 0 constantly, and the minimum available moment of initialization is 0;
2) get first section of the page as processing section;
3) if the rasterisation time of processing section add the minimum available moment greater than processing section begin print constantly, indicate that then processing section is pretreated section of needs;
4) otherwise the sign processing section the beginning rasterisation be the minimum available moment constantly; The minimum available moment is set equals the rasterisation time that the minimum available moment adds processing section, rasterisation that rasterisation allows to equal original constantly is set allows constantly to add and print the time that a section needs;
5) if the minimum available moment allows constantly less than rasterisation, it is that rasterisation allows constantly that the minimum available moment then is set, and handles otherwise change step 6 over to;
6) if also have not processing of section, next section is set is processing section, change step 3 over to and handle, otherwise rasterisation computation process end constantly.
By above step, or all sections all have been determined the beginning rasterisation and constantly are identified as and need pretreated section.
Beginning rasterisation in the suitable moment as shown in Figure 5 needs the section flow process of rasterisation as follows:
1) if also there is the not section of rasterisation, then get first not section of rasterisation, its rasterisation zero hour and current time are compared;
2) if greater than current time, then waits this section of the rasterisation rasterisation zero hour of this section by the time rasterisation zero hour of section, otherwise this section of rasterisation;
3) repeating step 1), 2) up to all the section all by rasterisation.
Start print engine as shown in Figure 6, the flow process of printing is as follows:
(1) starts print engine, begin to print first section;
(2) sections are printed and are finished, and produce to print to interrupt;
(3) in Interrupt Process, if also there be unprinted section, the grating lattice data of next section are sent to the matrix of printed dots buffer zone, print engine will continue to print next section, otherwise finish page print.
As shown in Figure 7, Fig. 7 has described the instantiation of printing a page when employing is of the present invention in the print procedure that adopts this patent method.A page is divided into 6 sections in this example, is the unit interval to print a needed time of section, and then page stage casing [1] needs the time to be respectively to the rasterisation of section [6]: 1,0.5,1.5,1.5,1,1.5.Adopt this patent method, need rasterizating section [1] and section [3] before the printing, other sections rasterisation in print procedure, the section buffer memory quantity that print procedure needs is 3.And if directly rasterisation need the time greater than the section of a section time-write interval be arranged in print before rasterisation, then need section [1], section [3], rasterisation before section [4], section [6] are arranged in and print, the section buffer memory quantity that needs in the print procedure is 5.
The above only is one of them embodiment of the present invention; not in order to restriction the present invention; with laser printer the embodiment of the invention is described as above; but the present invention is equally applicable to some ink-jet printer, the printing device that employing grating lattices such as laser photocomposing machine print, thereby within the spirit and principles in the present invention all; any modification of being done; be equal to replacement, improve etc., all should be included within protection scope of the present invention.

Claims (4)

1. the print control program that can avoid printing border-crossing error may further comprise the steps:
A) printing device receives print data by interface from main frame, determines number and every period time-write interval of every page of section of being divided, and print data is construed to the intermediate form data of forming by section, and calculates the time of the rasterisation needs of each section;
B) calculate moment of each section beginning rasterisation, for each section, the beginning rasterisation that this section is set is constantly for beginning the moment the earliest of rasterisation under the prerequisite that does not cause the additional buffered demand, in if there is no such moment, then this section of mark is the needs pre-service;
C) will be marked as pretreated section rasterisation of needs, the section in the current print buffer printed in the startup Printer Engine, the beginning printer page;
D) in print procedure according to the beginning rasterisation of each section that calculates among the step b constantly, this moment rasterisation need rasterisation section.
2. a kind of print control program that can avoid printing border-crossing error according to claim 1, the rasterisation that it is characterized in that among the step b calculating each section comprises following steps the zero hour:
1) permission of initialization rasterisation is 0 constantly, and the minimum available moment of initialization is 0;
2) get first section of the page as processing section;
3) if the rasterisation time of processing section add the minimum available moment greater than processing section begin to print constantly, then the identification process section is for needing pretreated section; Rasterisation that rasterisation allows to equal original constantly is set to be allowed constantly to add and prints the time that a section needs;
4) otherwise rasterisation zero hour of set handling section be the minimum available moment; The minimum available moment is set equals the rasterisation time that the minimum available moment adds processing section;
5) if the minimum available moment allows constantly less than rasterisation, it is that rasterisation allows constantly that the minimum available moment then is set;
6) if also have section not handle, next section is set is processing section, change step 3) and handle.
3. a kind of print control program that can avoid printing border-crossing error according to claim 1 is characterized in that step c starts print engine, and the implementation method of beginning printer page is:
1) starts print engine, begin to print first section;
2) section is printed and is finished, and produces to print to interrupt;
3) in Interrupt Process, the grating lattice data with next section are sent to the matrix of printed dots buffer zone, and print engine will continue to print next section;
4) process of repetition 2,3 finishes up to page print.
4. a kind of print control program that can avoid printing border-crossing error according to claim 1 to need at the reasonable time rasterisation to is characterized in that in the steps d may further comprise the steps the section of rasterisation:
1) if also there is the not section of rasterisation, then get first not section of rasterisation, its rasterisation start time and current time are compared;
2) if the rasterisation start time of section, then waits rasterisation start time this section of rasterisation of this section by the time greater than the current time, otherwise this section of rasterisation;
3) repeating step 1), 2), up to the section that does not have rasterisation not.
CNB2005100766952A 2005-06-13 2005-06-13 Printing control method capable of avoiding printing border-crossing error Expired - Fee Related CN100356395C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100766952A CN100356395C (en) 2005-06-13 2005-06-13 Printing control method capable of avoiding printing border-crossing error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100766952A CN100356395C (en) 2005-06-13 2005-06-13 Printing control method capable of avoiding printing border-crossing error

Publications (2)

Publication Number Publication Date
CN1710598A true CN1710598A (en) 2005-12-21
CN100356395C CN100356395C (en) 2007-12-19

Family

ID=35706838

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100766952A Expired - Fee Related CN100356395C (en) 2005-06-13 2005-06-13 Printing control method capable of avoiding printing border-crossing error

Country Status (1)

Country Link
CN (1) CN100356395C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373323C (en) * 2005-09-14 2008-03-05 国际商业机器公司 Print controller, print system and operating method
CN102156622A (en) * 2010-02-11 2011-08-17 北大方正集团有限公司 Method and device for processing printing task
CN102582703A (en) * 2012-02-28 2012-07-18 浙江吉利汽车研究院有限公司 Combined automobile with butted tails
CN105150701A (en) * 2015-09-07 2015-12-16 深圳市汉拓数码有限公司 Printing equipment, as well as image harmomegathus printing control device and control method thereof
CN106095345A (en) * 2015-04-30 2016-11-09 佳能株式会社 There is image processing system and the control method thereof of multiple processing unit
US10121098B2 (en) 2015-04-30 2018-11-06 Canon Kabushiki Kaisha Image forming apparatus having plurality of processing units for generating intermediate data, and method for controlling the image forming apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6519941B2 (en) * 2015-03-12 2019-05-29 富士ゼロックス株式会社 PRINT CONTROL DEVICE, IMAGE FORMING SYSTEM, AND PROGRAM

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870535A (en) * 1997-05-12 1999-02-09 Lexmark International, Inc. Method and apparatus for building rasterized lines of bitmap data to be printed using a piecewise-linear direct memory access addressing mode of retrieving bitmap data line segments
JP2000025279A (en) * 1998-07-13 2000-01-25 Mutoh Ind Ltd Band scan type raster plotter
US6347852B1 (en) * 1998-12-18 2002-02-19 Destiny Technology Corporation System and method of applying double printing modes
JP2001239717A (en) * 2000-02-29 2001-09-04 Dainippon Screen Mfg Co Ltd Digital print controller and digital print system
CN1184558C (en) * 2003-03-31 2005-01-12 上海北大方正科技电脑系统有限公司 printing devices

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373323C (en) * 2005-09-14 2008-03-05 国际商业机器公司 Print controller, print system and operating method
CN102156622A (en) * 2010-02-11 2011-08-17 北大方正集团有限公司 Method and device for processing printing task
CN102156622B (en) * 2010-02-11 2013-04-17 北大方正集团有限公司 Method and device for processing printing task
CN102582703A (en) * 2012-02-28 2012-07-18 浙江吉利汽车研究院有限公司 Combined automobile with butted tails
CN102582703B (en) * 2012-02-28 2014-09-10 浙江吉利汽车研究院有限公司 Combined automobile with butted tails
CN106095345A (en) * 2015-04-30 2016-11-09 佳能株式会社 There is image processing system and the control method thereof of multiple processing unit
US10121098B2 (en) 2015-04-30 2018-11-06 Canon Kabushiki Kaisha Image forming apparatus having plurality of processing units for generating intermediate data, and method for controlling the image forming apparatus
CN106095345B (en) * 2015-04-30 2019-05-28 佳能株式会社 Image forming apparatus and its control method with multiple processing units
CN105150701A (en) * 2015-09-07 2015-12-16 深圳市汉拓数码有限公司 Printing equipment, as well as image harmomegathus printing control device and control method thereof
CN105150701B (en) * 2015-09-07 2017-11-10 深圳市汉拓数码有限公司 Printing device, image harmomegathus print control unit and its control method

Also Published As

Publication number Publication date
CN100356395C (en) 2007-12-19

Similar Documents

Publication Publication Date Title
CN1710598A (en) Printing control method capable of avoiding printing border-crossing error
CN100351857C (en) Printing control method capable of reducing print memory requirement
CN101082907B (en) Mixed makeup method and system
US8593668B2 (en) Parallel printing system
EP1630663A3 (en) Print sequence scheduling for reliability
CN1752919A (en) Printing control apparatus, program, printing system, and controlling method for printing system
CN1666497A (en) Image processing in printing systems
US20070058191A1 (en) Image forming apparatus and print control method thereof
US9195920B2 (en) Swathing parallel pipeline architecture
CN100351856C (en) Printing control for decreasing preraster time of page
EP1903774A3 (en) Color conversion method and system
US7986419B2 (en) Performance optimization method for network printers
CN1591310A (en) Method and apparatus for viewing on a client data representing a document to be printed
CN1731423A (en) A method for quick recognition of color page based on preview picture
JP5345001B2 (en) Tandem post-processing method and system
CN1807108A (en) Method of driving a print head and image forming device employing the method
US20100315666A1 (en) High speed page transmission
CN1549109A (en) Printing method for simultaneouly contracting and enlarging merge outputting
US11079984B2 (en) Image processing mechanism
CN1299196C (en) System and method capable of dynamic adjusting print jobs
CN1644386A (en) Printing internal memory managing method for improving intenral memory availability
US20040257371A1 (en) Pipelined architecture for high speed raster image processor
CN100337837C (en) Printing control device with embedded engine simulation module and verification method thereof
CN103419513B (en) A kind of processing method of random image and a kind of printing equipment control system
CN1796124A (en) Printing correction unit and method for ink gun

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071219

Termination date: 20190613

CF01 Termination of patent right due to non-payment of annual fee