CN108572802A - Prevent the method, apparatus and print system of page duplicate printing - Google Patents

Prevent the method, apparatus and print system of page duplicate printing Download PDF

Info

Publication number
CN108572802A
CN108572802A CN201710145750.1A CN201710145750A CN108572802A CN 108572802 A CN108572802 A CN 108572802A CN 201710145750 A CN201710145750 A CN 201710145750A CN 108572802 A CN108572802 A CN 108572802A
Authority
CN
China
Prior art keywords
page
printed
identifier
printer
document
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
CN201710145750.1A
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.)
Shandong New Beiyang Information Technology Co Ltd
Original Assignee
Shandong New Beiyang Information 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 Shandong New Beiyang Information Technology Co Ltd filed Critical Shandong New Beiyang Information Technology Co Ltd
Priority to CN201710145750.1A priority Critical patent/CN108572802A/en
Priority to PCT/CN2018/078305 priority patent/WO2018166388A1/en
Publication of CN108572802A publication Critical patent/CN108572802A/en
Pending legal-status Critical Current

Links

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/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/121Facilitating exception or error detection and recovery, e.g. fault, media or consumables depleted
    • 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
    • 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/1236Connection 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

Abstract

The purpose of the present invention is to provide a kind of method, apparatus and print system preventing page duplicate printing, wherein method includes:Receive document to be printed, wherein the document to be printed includes at least one page, and each page all has unique identifier;Determination is page to be printed from least one page of the document to be printed, and according to the identifier of the identifier page to be printed and pre-stored printer page, described page to be printed whether printed judged;If it is described it is page to be printed printed, abandon printing described page to be printed.The method, apparatus and print system for preventing page duplicate printing in through this embodiment, after capable of solving broken communication connection of the printer of the prior art between print request equipment, when restoring the communication connection between print request equipment again, the problem of existing duplicate printing document file page.

Description

Prevent the method, apparatus and print system of page duplicate printing
Technical field
The present invention relates to printing technique field, in particular to a kind of method, apparatus for preventing page duplicate printing and Print system.
Background technology
Print request equipment (such as personal computer) and printer are generally included in print system, the two is connect by communication The modes such as mouth, the communications cable, wireless communication establish communication connection to carry out data transmission.In general, pacifying in print request equipment The driver of general purpose application program (such as office softwares for editing of Microsoft) and printer is filled, application program generates figure Call driver after graphic data makes driver generate print job data (hereinafter referred to as operation data), wherein operation number According to comprising can by printer identify print command and print data, print request equipment work data is sent to printer, Printer receives the printing of execution work data after work data.
In the prior art, when the operating system installed in print request equipment is windows operating systems, printer Driver is by calling the interface function of windows operating systems encapsulation to realize the transmission of work data, when print request is set When standby and printer is communicated by certain special interfaces, for example, passing through USB (Universal Serial Bus, general string Row bus) interface or Ethernet interface are when being communicated, the document for including multiple pages for one, if print request is set During the standby work data for sending the document to printer, driver detects between print request equipment and printer Broken communication connection, then stop sending work data, printer can only print the work data received, when driver is examined It measures print request equipment and printer is established again when communicating to connect, retransmit the operation number for including the document whole page The whole pages for printing entire document after the work data of driver transmission again are received according to, printer, this results in beating The page printed before broken communication connection between print machine and print request equipment can be repeatedly printed, to cause paper Waste.
After broken communication connection of the printer between print request equipment of the prior art, when restore again with When communication connection between print request equipment, the problem of existing duplicate printing document file page, not yet propose at present effective Solution.
Invention content
In view of this, the purpose of the present invention is to provide a kind of method, apparatus preventing page duplicate printing and printing systems System, after solving broken communication connection of the printer of the prior art between print request equipment, when again restore with beat When communication connection between print request equipment, the problem of existing duplicate printing document file page.
In a first aspect, an embodiment of the present invention provides a kind of methods preventing page duplicate printing, including:It receives to be printed Document, wherein the document to be printed includes at least one page, and each page all has unique identifier;From institute It is page to be printed to state determination at least one page of document to be printed, according to the identifier page to be printed and in advance The identifier of the printer page first stored judges described page to be printed whether printed;If the quilt page to be printed It printed, then abandons printing described page to be printed.
With reference to first aspect, the embodiment of the present invention additionally provides first aspect the first possible embodiment, wherein institute The identifier according to the identifier page to be printed and pre-stored printer page is stated, is judged described page to be printed Whether printed, including:Judge in the identifier of printer page whether to include the identifier page to be printed; If including, it is determined that it is described page to be printed to be printed.
With reference to first aspect, the embodiment of the present invention additionally provides second of possible embodiment of first aspect, wherein institute The identifier for stating printer page includes the identifier of the page of previous printing, described according to the identifier page to be printed With the identifier of pre-stored printer page, judge it is described it is page to be printed whether printed, including:It is waited for described in judgement Whether the identifier of printer page and the identifier of the page of the previous printing meet preset rules;If satisfied, then determining institute State page to be printed printed.
With reference to first aspect, the embodiment of the present invention additionally provides first aspect the third possible embodiment, wherein institute The method of stating further includes:If it is described it is page to be printed do not printed, print it is described page to be printed, and store described in wait beat The identifier in printed page face is to update the identifier of the printer page.
Second aspect, an embodiment of the present invention provides a kind of devices preventing page duplicate printing, including:Data reception Block, for receiving document to be printed, wherein the document to be printed includes at least one page, and each page all has Unique identifier;Judgment module is printed, for determining to be printed from least one page of the document to be printed The page judges described to be printed according to the identifier of the identifier page to be printed and pre-stored printer page Whether the page was printed;Abandon print module, if for it is described it is page to be printed printed, abandon printing described in wait beat Printed page face.
In conjunction with second aspect, the embodiment of the present invention additionally provides second aspect the first possible embodiment, wherein institute Stating printing judgment module includes:First judging unit, for whether judging in the identifier of printer page comprising described Identifier page to be printed;First determination unit, if the mark for printer page described in first judging unit judgement Know in symbol includes the identifier page to be printed, it is determined that described page to be printed to be printed.
In conjunction with second aspect, the embodiment of the present invention additionally provides second of possible embodiment of second aspect, wherein institute The identifier for stating printer page includes the identifier of the page of previous printing, and the printing judgment module includes:Second judges Unit, for judging whether the identifier page to be printed and the identifier of the page of the previous printing meet default rule Then;Second determination unit, if judging that the identifier page to be printed previous is beaten with described for the second judgment unit The identifier of the page of print meets preset rules, it is determined that described page to be printed to be printed.
In conjunction with second aspect, the embodiment of the present invention additionally provides second aspect the third possible embodiment, wherein institute Stating device further includes:Determine print module, if for it is described it is page to be printed do not printed, print the page to be printed Face, and the identifier page to be printed is stored to update the identifier of the printer page.
The third aspect, an embodiment of the present invention provides a kind of method preventing page duplicate printing, the method includes:It beats Print request equipment sends document to be printed to printer, wherein the document to be printed includes at least one page, each described The page all has unique identifier;The printer receives the document to be printed, from least the one of the document to be printed Determination is page to be printed in a page;The printer according to the identifier page to be printed and it is pre-stored The identifier of printer page judges described page to be printed whether printed;If it is described it is page to be printed printed, institute State printer abandon printing it is described page to be printed.
Fourth aspect, an embodiment of the present invention provides a kind of print systems, the system comprises print request equipment and beat Print machine;The print request equipment, for sending document to be printed to the printer, wherein the document to be printed includes At least one page, each page all have unique identifier;The printer, for receiving the text to be printed Shelves, determination is page to be printed from least one page of the document to be printed, according to the mark page to be printed The identifier for knowing symbol and pre-stored printer page, judge it is described it is page to be printed whether printed, waited for dozen if described Printed page face was printed, then abandoned printing described page to be printed.
The method, apparatus and print system for preventing page duplicate printing of the embodiment of the present invention, receive document to be printed, Determination is page to be printed in document to be printed, according to the mark of identifier and pre-stored printer page page to be printed Symbol, judge it is page to be printed whether printed, if page to be printed printed, abandon printing page to be printed.Pass through The method, apparatus and print system for preventing page duplicate printing of the embodiment of the present invention, printer with print request equipment it Between broken communication connection after, when again restore and print request equipment between communication connection when, printer is for being received Each page, judge whether the page was printed, if printing, abandon printing, to avoid broken communication connection The preceding page printed is repeatedly printed, and effectively solves communication link of the printer of the prior art between print request equipment After connecing interruption, when restoring the communication connection between print request equipment again, existing duplicate printing document file page Problem.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the module composition schematic diagram of printer according to the ... of the embodiment of the present invention;
Fig. 2 is the first flow diagram of the method according to the ... of the embodiment of the present invention for preventing page duplicate printing;
Fig. 3 is second of flow diagram of the method according to the ... of the embodiment of the present invention for preventing page duplicate printing;
Fig. 4 is the module composition schematic diagram of the device according to the ... of the embodiment of the present invention for preventing page duplicate printing;
Fig. 5 is the module composition schematic diagram of print system according to the ... of the embodiment of the present invention;And
Fig. 6 is the third flow diagram of the method according to the ... of the embodiment of the present invention for preventing page duplicate printing.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention Middle attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is real Applying the component of example can be arranged and designed with a variety of different configurations.Therefore, below to provide in the accompanying drawings the present invention The detailed description of embodiment is not intended to limit the range of claimed invention, but is merely representative of the selected reality of the present invention Apply example.Based on the embodiment of the present invention, the institute that those skilled in the art are obtained without making creative work There is other embodiment, shall fall within the protection scope of the present invention.
After broken communication connection of the printer between print request equipment of the prior art, when restoring again When communication connection between print request equipment, the problem of existing duplicate printing document file page, the present invention provides a kind of The method, apparatus and print system for preventing page duplicate printing, are specifically described below by embodiment.
An embodiment of the present invention provides a kind of method preventing page duplicate printing, this method can be executed by printer, In this way, printer after receiving document to be printed, can identify the page printed and not print The page, and the page printed is abandoned, to prevent page duplicate printing.
Fig. 1 is the module composition schematic diagram of printer according to the ... of the embodiment of the present invention, which asks for receiving printing It seeks the print job data (hereinafter referred to as operation data) of the document of equipment transmission and executes document print.As shown in Figure 1, printing Machine 2 includes control unit 21, communication unit 22, print unit 23, RAM memory 24 and flash storage 25.
Wherein, control unit 21 is used to control other each modules and executes work and carry out the calculating and processing of data, for example, The data transmission between the execution printer 2 of communication unit 22 and print request equipment is controlled, control print unit 23 executes document Printing etc..
Communication unit 22 is used to execute the data transmission between printer 2 and print request equipment, for example, communication unit 22 Receive the work data for the document that print request equipment is sent.
Print unit 23 includes print head 231, platen 232 and conveyer for executing document print, print unit 23 Structure 233, wherein print head 231 is electrically connected with control unit 21, for printing document on printing paper;Platen 232 and printing First 231 are oppositely arranged, and are used to support printing paper;Conveying mechanism 233 is used for fed printing sheet, so that print head 231 is grown in setting Document is printed on the printing paper of degree.It should be noted that influencing the present invention's due to which kind of mode to realize printing function not using Implement, therefore, print unit 23 can be thermal printing mechanism, thermal transfer printing mechanism, ink jet printing mechanism, stylus printer Structure etc., it is preferred that in the present embodiment, print unit 23 is thermal transfer printing mechanism.
RAM memory 24, including receive buffering area 241, print buffer 242 and extra buffer 243.Wherein, it receives Buffering area 241 is for storing the work data received by communication unit 22;Print buffer 242 will be sent to printing for storing First 231 dot array data;Extra buffer 243 is for storing the data generated in program operation process and variable.
Flash storage 25 is used to store the control program of printer 2, also, flash storage 25 has been additionally operable to storage The identifier of printer page, wherein for each page of a document, all have unique identifier.It is provided by the invention In a kind of embodiment, flash storage 25 is used to store the identifier of the page of the setting number printed recently, present invention offer Another embodiment in, flash storage 25 be used for store previous printing a document all printer pages mark Know and accord with, in another embodiment provided by the invention, flash storage 25 is used to store the mark of a page of previous printing Symbol.
Fig. 2 is the first flow diagram of the method according to the ... of the embodiment of the present invention for preventing page duplicate printing, the party Method can be executed by the printer that the embodiment of the present invention is provided, and printer is using this method to each page of document to be printed It is handled, as shown, this approach includes the following steps:
Step S201 receives document to be printed, wherein document to be printed includes at least one page, and each page has There is unique identifier.
In this step, printer is to receive document to be printed in the form of receiving the work data of document to be printed, wherein wait for The work data of printing document includes the work data of at least one page, and each page all has unique identifier, often The identifier of a page is generated by print request equipment.
By taking the printer of the embodiment of the present invention as an example, control unit 21 controls communication unit 22 and receives print request equipment hair The work data of the document to be printed sent, and the work data of document to be printed is stored to the reception buffering of RAM memory 24 In area 241.Wherein, the work data of document to be printed includes the work data of at least one page, for each page, has There is unique identifier, which is included in the work data of document to be printed, for example, the work data packet of a page Include tactic printer setup instruction, printer control instruction, page iden-tity instruction, print image instructions, print data And start print command, wherein page iden-tity instruction includes instruction head and identifier.
Step S202, determination is page to be printed from least one page of document to be printed, according to page to be printed The identifier of identifier and pre-stored printer page judges page to be printed whether printed.
Printer determination from least one page of document to be printed is page to be printed, and in this step, printer can be with According to each page receive sequencing each page in document to be printed is determined as successively it is page to be printed, for example, The page being initially received is determined as page to be printed by printer when first time determining page to be printed.
Printer determine it is page to be printed after, identifier page to be printed is obtained, according to mark page to be printed The identifier of symbol and pre-stored printer page, judges page to be printed whether printed.In a kind of embodiment, beat The identifier of the pre-stored printer page of print machine is the identifier of the page of the setting number printed recently, or is previous The identifier of all printer pages of one document of printing, in the case of this kind, printer is according to mark page to be printed Symbol and pre-stored printer page identifier, judge it is page to be printed whether printed, specially:Judgement has printed Whether include identifier page to be printed in the identifier of the page, if including, it is determined that it is page to be printed to be printed, it is no Then, it determines and page to be printed was not printed.
In another embodiment, the identifier of the pre-stored printer page of printer is one, is previous printing The page identifier, in the case of this kind, printer is according to identifier page to be printed and pre-stored printer page Identifier, judge it is page to be printed whether printed, specially:Judge identifier page to be printed and previous printing Whether the identifier of the page meets preset rules, if satisfied, then determine it is page to be printed printed, otherwise, it determines to be printed The page was not printed.Wherein, the identifier of each page is generated by print request equipment, and the identifier of each page is number Font formula, when print request equipment generates the identifier of each page according to ascending numerical rule, preset rules can be to wait for The identifier of printer page be less than or equal to previous printing the page identifier, if it is determined that identifier page to be printed be less than etc. In the identifier of the page of previous printing, then illustrate page to be printed printed;When print request equipment is successively decreased according to number When rule generates the identifier of each page, preset rules can be that identifier page to be printed is more than or equal to previous printing The page identifier, if it is determined that identifier page to be printed be more than or equal to previous printing the page identifier, then illustrate It is page to be printed to be printed.
By taking the printer of the embodiment of the present invention as an example, stored in the parsing reception buffering area 241 of control unit 21 to be printed The work data of document, according to preset order, determination is page to be printed from document to be printed, for example, control unit 21 is according to waiting for Each page in document to be printed is determined as page to be printed by the sequencing that each page receives in printing document successively. Determine it is page to be printed after, control unit 21 parses the work data of document to be printed, obtains identifier page to be printed, waits for The identifier of printer page is included in the work data of document to be printed.Control unit 21 is according to identifier page to be printed And the identifier of the printer page of storage judges page to be printed whether printed.
In a kind of embodiment provided by the invention, control unit 21 is in the identifier according to the printer page of storage It is no that page to be printed whether printed judged comprising identifier page to be printed.For example, when in flash storage 25 When being stored with the identifier of the page of the setting number printed recently, alternatively, when being stored with previous printing in flash storage 25 A document all printer pages identifier when, control unit 21 compares successively to be stored in flash storage 25 Whether each identifier and identifier page to be printed consistent, when the identifier stored in flash storage 25 with wait for When the identifier of printer page is consistent, then judge it is page to be printed printed, when the institute stored in flash storage 25 Have identifier and identifier page to be printed it is inconsistent when, then judge page to be printed not printed.
In another kind embodiment provided by the invention, control unit 21 is according to identifier page to be printed and stores The magnitude relationship of the identifier of printer page judges page to be printed whether printed.In the embodiment, the mark of the page It is digital form to know symbol, and the identifier for each page that printer 2 prints successively is set in incremental or production decline law by print request It is standby to generate, the identifier of a page of previous printing, 21 page more to be printed of control unit are stored in flash storage 25 The magnitude relationship of the identifier of the page of the identifier in face and previous printing, and according to comparison result judge it is page to be printed whether Printed.For example, when print request equipment generates the identifier of each page according to ascending numerical rule, control is single The magnitude relationship of first 21 identifiers more page to be printed and the identifier of the page of previous printing, when mark page to be printed When knowing identifier of the symbol less than or equal to the page of previous printing, judgement is page to be printed to be printed, otherwise, it is determined that waiting for Printer page was not printed;For another example, the mark of each page is generated according to digital rule of successively decreasing when print request equipment Fu Shi, the magnitude relationship of the identifier of the page of the identifier more page to be printed of control unit 21 and previous printing, when waiting for When the identifier of printer page is greater than or equal to the identifier of the page of previous printing, judgement is page to be printed to be printed It crosses, otherwise, it is determined that page to be printed do not printed.
It should be noted that in embodiment provided by the invention, the driver of print request equipment is generating document When work data, distributing a unique identifier for each page can to make printer 2 when receiving work data Page to be printed whether beaten judged according to the identifier of identifier page to be printed and the printer page of storage It printed.
Specifically, print request equipment firstly generates the work data of document, and work data is then sent to printer, When print request equipment detects communication disruption, stop sending work data, when print request equipment detects communication recovery When, the work data of document generated before is repeatedly sent to printer, no matter between print request equipment and printer Communication disruption restores how many times, and print request equipment all only repeats document data generated before sending, therefore printing is asked Seek equipment only and be that each page distributes an identifier, it, can be according to waiting beating in this way, printer 2 is when receiving work data The identifier of the identifier in printed page face and the printer page of storage judges page to be printed whether printed.
In some embodiments, print request equipment generates the identifier of the page at random, in a further embodiment, beats Print request equipment can be according to the identifier of the law generation page of increasing or decreasing, and page identifier is digital form.
Step S203 abandons printing page to be printed if page to be printed printed.
It was printed if printer judgement is page to be printed, and abandoned printing page to be printed.
By taking the printer of the embodiment of the present invention as an example, when control unit 21 judge it is page to be printed by print it is out-of-date, abandon It prints page to be printed, and redefines in the work data of document to be printed next page to be printed, continue under judgement Whether one page to be printed was printed.
The method for preventing page duplicate printing of the embodiment of the present invention, receives document to be printed, from document to be printed really It is fixed page to be printed, according to the identifier of identifier and pre-stored printer page page to be printed, judge to be printed Whether the page was printed, if page to be printed printed, abandoned printing page to be printed.Through the embodiment of the present invention Method, after broken communication connection of the printer between print request equipment, when restoring between print request equipment again Communication connection when, printer judges whether the page was printed for each page received, if printing, It abandons printing, to avoid the page printed before broken communication connection from being repeatedly printed, effectively solves the printing of the prior art After broken communication connection of the machine between print request equipment, when the communication connection again between recovery and print request equipment When, the problem of existing duplicate printing document file page.
Further, in this embodiment method further include:If it is determined that page to be printed do not printed, then printing waits for Printer page, and identifier page to be printed is stored to update the identifier of printer page.
Printer then prints page to be printed if it is determined that page to be printed do not printed, and stores page to be printed Identifier to update the identifier of printer page, be specifically as follows, identifier page to be printed stored to Flash and is deposited Identifier in reservoir 25 as printer page.
By taking the printer of the embodiment of the present invention as an example, when control unit 21 judge it is page to be printed by print it is out-of-date, Control print unit 23 prints page to be printed on printing paper, specifically includes:Control unit 21 parses work page to be printed Industry data generate dot array data page to be printed, and dot array data are sent to print head 231 successively, control print head 231 Print corresponding word and/or figure on printing paper, in 231 print procedure of print head, control unit 21 controls conveying mechanism 233 driving printing paper movements, to complete printing page to be printed.
After printing page to be printed, control unit 21 is using identifier page to be printed as printer page Identifier is stored into flash storage 25 so that printer 2 under treatment one it is page to be printed when, can be according to next The identifier of the printer page of a identifier and storage page to be printed judge it is next it is page to be printed whether by It printed.
Wherein, when being stored with the identifier of the page of the setting number printed recently in flash storage 25, control is single Member 21 deletes the identifier stored at first, and identifier page to be printed is stored into flash storage 25.When When being stored with the identifier of all printer pages of a document of previous printing in flash storage 25, control unit 21 Judge whether the page corresponding with the identifier of printer page of storage page to be printed belongs to same document, if it is, Identifier addition page to be printed is stored into flash storage 25, otherwise, control unit 21 is removed Flash and deposited first All identifiers stored in reservoir 25, then store identifier page to be printed into flash storage 25, wherein Control unit 21 judges page to be printed according to the relationship of identifier page to be printed and the identifier of the printer page of storage Whether the face page corresponding with the identifier of printer page of storage belongs to same document, for example, the identifier of a page Including " number of documents " and " page number " two parts, " number of documents " has uniqueness, and control unit 21 is according to mark page to be printed Whether " number of documents " for knowing symbol consistent with " number of documents " of the identifier of the printer page of storage, judge it is page to be printed with deposit Whether the corresponding page of identifier of the printer page of storage belongs to same document, wherein when the two is consistent, judgement is to be printed The page belongs to same document with the corresponding page of the identifier of printer page of storage, otherwise, it is determined that it is page to be printed with deposit The corresponding page of identifier of the printer page of storage is not belonging to same document.When only storing previous beat in flash storage 25 When the identifier of one page of print, control unit 21 is covered in flash storage 25 using identifier page to be printed and is deposited The identifier of storage.
Fig. 3 is second of flow diagram of the method according to the ... of the embodiment of the present invention for preventing page duplicate printing, the reality Applying example can be as the preferred embodiment of embodiment illustrated in fig. 2, as shown, this approach includes the following steps:
Step S301 receives a document.
Control unit 21 controls the work data that communication unit 22 receives the document that print request equipment is sent, and will The work data of the document is stored into the reception buffering area 241 of RAM memory 24.
Step S302 determines a page from the document received, and obtains the identifier of the page.
Control unit 21 is parsed to receiving the work data in buffering area 241, includes according in the work data The reception sequence of the work data of multiple pages determines a page, such as determines first page received, and obtain the page The identifier in face, wherein the identifier of the page is located in the work data of the document.
Whether step S303 judge the page according to the identifier of the identifier of the page and the printer page of storage Through being printed.
Control unit 21 judges the page according to the identifier of the page of acquisition and the identifier of the printer page of storage Whether face was printed, wherein whether control unit 21 can describe method according to step S202 and judge the page It was printed, details are not described herein.When the judgement of control unit 21, the page has been printed out-of-date, execution step S304, otherwise, Execute step S305.
Step S304 abandons printing the page.
When control unit 21 judges that the page is out-of-date by printing, removing receives the operation of the page in buffering area 241 The identifier of data and the page, to make printer not execute the printing of the page.
Step S305 prints the page, and stores the identifier of the page after printing is complete.
When control unit 21 judges that the page is out-of-date by printing, control print unit 23 prints the page on printing paper Face, and stored the identifier of the page as the identifier of printer page after printing is complete into flash storage 25.
Step S306 judges whether the page is the last one page in the document.
Control unit 21 judges whether the page is the last one page in the document, and specifically, control unit 21 is sentenced Break in the work data of the document received, whether also has the operation number of other pages behind the work data of the page According to for example, control unit 21 in the work data received, reads the subsequent work data of work data of the page, such as Fruit can read work data, it is determined that the page is not the last one page of document, if read less than any operation Data, it is determined that the page is the last one page of document.If the page is not the last one page of document, return is held Row step S302, otherwise, flow terminates.
The method for preventing page duplicate printing of the embodiment of the present invention judges this article successively after receiving a document Whether each page in shelves was printed, when a page has been printed out-of-date, cancellation printing page, when one It is out-of-date that the page is not printed, and prints the page.Therefore, method through the embodiment of the present invention, printer with print request After broken communication connection between equipment, when restoring the communication connection between print request equipment again, it will not cause to lead to The page printed before letter disconnecting is repeatedly printed, and the printer that can effectively solve the prior art is set with print request After broken communication connection between standby, when restoring the communication connection between print request equipment again, existing repetition The problem of printing document file page.
The corresponding above-mentioned method for preventing page duplicate printing, the embodiment of the present invention, which additionally provides one kind, prevents the page from repeating The device of printing, Fig. 4 are the module composition schematic diagrams of the device according to the ... of the embodiment of the present invention for preventing page duplicate printing, are such as schemed Shown in 4, which includes:
Data reception module 41, for receiving document to be printed, wherein document to be printed includes at least one page, often A page all has unique identifier;
Print judgment module 42, for from least one page of document to be printed determination it is page to be printed, according to waiting for The identifier of the identifier of printer page and pre-stored printer page judges page to be printed whether printed;
Print module 43 is abandoned, if being printed for page to be printed, abandons printing page to be printed.
In a kind of embodiment, printing judgment module includes:First judging unit, the mark for judging printer page Whether include identifier page to be printed in symbol;First determination unit, if judging printer page for the first judging unit Identifier in include identifier page to be printed, it is determined that it is page to be printed to be printed.
In another embodiment, the identifier of printer page includes the identifier of the page of previous printing, and printing is sentenced Disconnected module includes:Second judgment unit, for judging that the identifier of identifier page to be printed and the page of previous printing is It is no to meet preset rules;Second determination unit, if judging that identifier page to be printed is beaten with previous for second judgment unit The identifier of the page of print meets preset rules, it is determined that page to be printed to be printed.
Device in the present embodiment further includes:It determines print module, if not printed for page to be printed, beats It prints page to be printed, and stores identifier page to be printed to update the identifier of printer page.
The device for preventing page duplicate printing of the embodiment of the present invention, receives document to be printed, in document to be printed really It is fixed page to be printed, according to the identifier of identifier and pre-stored printer page page to be printed, judge to be printed Whether the page was printed, if page to be printed printed, abandoned printing page to be printed.Through the embodiment of the present invention Device, after broken communication connection of the printer between print request equipment, when restoring between print request equipment again Communication connection when, printer judges whether the page was printed for each page received, if printing, It abandons printing, to avoid the page printed before broken communication connection from being repeatedly printed, effectively solves the printing of the prior art After broken communication connection of the machine between print request equipment, when the communication connection again between recovery and print request equipment When, the problem of existing duplicate printing document file page.
The corresponding above-mentioned method and device for preventing page duplicate printing, the embodiment of the present invention additionally provide a kind of printing system System, Fig. 5 is the module composition schematic diagram of print system according to the ... of the embodiment of the present invention, is asked as shown in figure 5, the system includes printing Equipment 1 and printer 2 are asked, which is print request equipment mentioned above, and the printer 2 is as above-mentioned Printer 2 in Fig. 1 is able to carry out the above-mentioned method for preventing page duplicate printing.Print request equipment 1 and printer 2 can To be communicated to connect by foundation such as USB, Ethernets.
Print request equipment 1 is preferably the terminal devices such as computer, can be specifically PC, smart mobile phone, tablet Computer, E-book reader, pocket computer on knee, vehicle-mounted computer etc..Operation system is installed in print request equipment 1 System, application program and printer 2 driver, print a document when, user by application program generate document and Document, application call driver are edited, driver generates the work data of document, wherein work data includes can The work data of document is sent to printer 2 by the print command and print data identified by printer 2, print request equipment 1.
In the present embodiment, print request equipment 1 is used to send document to be printed to printer 2, wherein document packet to be printed At least one page is included, each page all has unique identifier.Specifically, print request equipment 1 is according to the printing of user Instruction determines document to be printed, then generates the work data of document to be printed, and print request equipment 1 is generating document to be printed Work data when, be that each page in document to be printed distributes a unique identifier, print request equipment 1 generating After the work data of document to be printed, the work data of document to be printed is sent to printer 2.
When print request sets 1 for communication disruption is detected, stop sending work data, when print request equipment 1 detects When to communication recovery, the work data of document to be printed is repeatedly sent to printer, no matter print request equipment 1 and printer Communication disruption restores how many times between 2, and print request equipment 1 all only repeats to send the work data of document to be printed, quite Mechanism is sent in the repetition of complete data packet.
Printer 2 is for receiving document to be printed, and determination is page to be printed from least one page of document to be printed, According to the identifier of identifier and pre-stored printer page page to be printed, page to be printed whether printed judged It crosses, if page to be printed printed, abandons printing page to be printed.
It is able to carry out the above-mentioned method for preventing page duplicate printing by printer 2 in this present embodiment, therefore about System provided in this embodiment can refer to the description of above-mentioned method, and which is not described herein again.
Print system through the embodiment of the present invention, broken communication connection of the printer between print request equipment Afterwards, when restoring the communication connection between print request equipment again, printer judges each page received Whether the page was printed, if printing, abandoned printing, to avoid the page printed before broken communication connection from being weighed Strike-on prints, after effectively solving broken communication connection of the printer of the prior art between print request equipment, when extensive again When multiple communication connection between print request equipment, the problem of existing duplicate printing document file page.
Corresponding above-mentioned print system, the embodiment of the present invention additionally provide a kind of method preventing page duplicate printing, Fig. 6 It is the third flow diagram of the method according to the ... of the embodiment of the present invention for preventing page duplicate printing, in Fig. 6, print request is set Print request equipment 1 in standby as Fig. 5, printer is the printer 2 in Fig. 5, as shown in fig. 6, the flow includes:
Step S401, print request equipment send document to be printed to printer, wherein document to be printed includes at least one A page, each page all have unique identifier.
Specifically, print request equipment 1 determines document to be printed according to the print command of user, then generates text to be printed The work data of shelves, print request equipment 1 are each page in document to be printed when generating the work data of document to be printed A unique identifier is distributed in face, and print request equipment 1 is after the work data for generating document to be printed, by document to be printed Work data be sent to printer 2.
When print request sets 1 for communication disruption is detected, stop sending work data, when print request equipment 1 detects When to communication recovery, the work data of document to be printed is repeatedly sent to printer, no matter print request equipment 1 and printer Communication disruption restores how many times between 2, and print request equipment 1 all only repeats to send the work data of document to be printed, quite Mechanism is sent in the repetition of complete data packet.
Step S402, printer receive document to be printed, and determination is to be printed from least one page of document to be printed The page.
Step S403, printer according to the identifier of identifier and pre-stored printer page page to be printed, Page to be printed whether printed judged.
Step S404, if page to be printed printed, printer is abandoned printing page to be printed.
It is corresponded with print system above-mentioned by method in this present embodiment, therefore about side provided in this embodiment Method can refer to the description of above system, and which is not described herein again.
The method for preventing page duplicate printing through the embodiment of the present invention, printer is between print request equipment After broken communication connection, when restoring the communication connection between print request equipment again, printer is every for what is received A page, judges whether the page was printed, if printing, abandons printing, to avoid before broken communication connection The page of printing is repeatedly printed, and is effectively solved in communication connection of the printer of the prior art between print request equipment It has no progeny, when restoring the communication connection between print request equipment again, the problem of existing duplicate printing document file page.
The device of what the embodiment of the present invention was provided prevent page duplicate printing can be specific hardware in equipment or Software or firmware for being installed in equipment etc..The technology of the device that the embodiment of the present invention is provided, realization principle and generation is imitated Fruit is identical with preceding method embodiment, and to briefly describe, device embodiment part does not refer to place, can refer to preceding method implementation Corresponding contents in example.It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description The specific work process of system, device and unit can refer to the corresponding process in above method embodiment, no longer superfluous herein It states.
In embodiment provided by the present invention, it should be understood that disclosed device and method, it can be by others side Formula is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one kind are patrolled Volume function divides, formula that in actual implementation, there may be another division manner, in another example, multiple units or component can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in embodiment provided by the invention can be integrated in a processing unit, also may be used It, can also be during two or more units be integrated in one unit to be that each unit physically exists alone.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing, in addition, term " the One ", " second ", " third " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Finally it should be noted that:Embodiment described above, only specific implementation mode of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art In the technical scope disclosed by the present invention, it can still modify to the technical solution recorded in previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention.The protection in the present invention should all be covered Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of method preventing page duplicate printing, which is characterized in that including:
Receive document to be printed, wherein the document to be printed includes at least one page, and each page all has uniquely Identifier;
Determination is page to be printed from least one page of the document to be printed, according to the mark page to be printed The identifier for knowing symbol and pre-stored printer page judges described page to be printed whether printed;
If it is described it is page to be printed printed, abandon printing described page to be printed.
2. according to the method described in claim 1, it is characterized in that, described according to the identifier page to be printed and advance Storage printer page identifier, judge it is described it is page to be printed whether printed, including:
Judge in the identifier of printer page whether to include the identifier page to be printed;
If including, it is determined that it is described page to be printed to be printed.
3. according to the method described in claim 1, it is characterized in that, the identifier of the printer page includes previous printing The identifier of the page, the identifier according to the identifier page to be printed and pre-stored printer page are sentenced It is disconnected it is described it is page to be printed whether printed, including:
Judge whether the identifier page to be printed and the identifier of the page of the previous printing meet preset rules;
If satisfied, then determining described page to be printed printed.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
If it is described it is page to be printed do not printed, print described page to be printed, and store described page to be printed Identifier is to update the identifier of the printer page.
5. a kind of device preventing page duplicate printing, which is characterized in that including:
Data reception module, for receiving document to be printed, wherein the document to be printed includes at least one page, each The page all has unique identifier;
Judgment module is printed, for determining page to be printed from least one page of the document to be printed, according to The identifier of the identifier page to be printed and pre-stored printer page, judge it is described it is page to be printed whether by It printed;
Abandon print module, if for it is described it is page to be printed printed, abandon printing described page to be printed.
6. device according to claim 5, which is characterized in that the printing judgment module includes:
First judging unit, for judging in the identifier of printer page whether to include the mark page to be printed Symbol;
First determination unit, if for waiting for described in including in first judging unit judgement identifier of printer page The identifier of printer page, it is determined that described page to be printed to be printed.
7. device according to claim 5, which is characterized in that the identifier of the printer page includes previous printing The identifier of the page, the printing judgment module include:
Second judgment unit, for judging that the identifier of the identifier page to be printed and the page of the previous printing is It is no to meet preset rules;
Second determination unit, if judging that the identifier page to be printed previous is beaten with described for the second judgment unit The identifier of the page of print meets preset rules, it is determined that described page to be printed to be printed.
8. device according to claim 5, which is characterized in that described device further includes:
Determine print module, if for it is described it is page to be printed do not printed, print described page to be printed, and store The identifier page to be printed is to update the identifier of the printer page.
9. a kind of method preventing page duplicate printing, which is characterized in that the method includes:
Print request equipment sends document to be printed to printer, wherein the document to be printed includes at least one page, often A page all has unique identifier;
The printer receives the document to be printed, is determined from least one page of the document to be printed and waits beating Printed page face;
The printer judges institute according to the identifier of the identifier page to be printed and pre-stored printer page Page to be printed whether printed stated;
If it is described it is page to be printed printed, the printer is abandoned printing described page to be printed.
10. a kind of print system, which is characterized in that the system comprises print request equipment and printers;
The print request equipment, for sending document to be printed to the printer, wherein the document to be printed includes extremely Few page, each page all have unique identifier;
The printer, for receiving the document to be printed, from least one page of the document to be printed really It is fixed page to be printed, according to the identifier of the identifier page to be printed and pre-stored printer page, judge institute State it is page to be printed whether printed, if it is described it is page to be printed printed, abandon printing described page to be printed.
CN201710145750.1A 2017-03-13 2017-03-13 Prevent the method, apparatus and print system of page duplicate printing Pending CN108572802A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710145750.1A CN108572802A (en) 2017-03-13 2017-03-13 Prevent the method, apparatus and print system of page duplicate printing
PCT/CN2018/078305 WO2018166388A1 (en) 2017-03-13 2018-03-07 Method and device for preventing duplicated printing of page, and printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710145750.1A CN108572802A (en) 2017-03-13 2017-03-13 Prevent the method, apparatus and print system of page duplicate printing

Publications (1)

Publication Number Publication Date
CN108572802A true CN108572802A (en) 2018-09-25

Family

ID=63522801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710145750.1A Pending CN108572802A (en) 2017-03-13 2017-03-13 Prevent the method, apparatus and print system of page duplicate printing

Country Status (2)

Country Link
CN (1) CN108572802A (en)
WO (1) WO2018166388A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901803A (en) * 2019-03-12 2019-06-18 江苏沁恒股份有限公司 Mini-printer superadd-print processing method and computer readable storage medium
CN110427163A (en) * 2019-07-30 2019-11-08 Oppo(重庆)智能科技有限公司 Product identification Method of printing and relevant device
CN113805819A (en) * 2020-06-15 2021-12-17 深圳市理邦精密仪器股份有限公司 Printing control method, printing control device, monitor and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127094A (en) * 2007-09-14 2008-02-20 上海电信工程有限公司 Optical cable sign brand, system and method for on the spot identification for local network optical cable line
CN102375716A (en) * 2010-08-26 2012-03-14 北大方正集团有限公司 Variable data printing method and system
CN102855101A (en) * 2011-06-29 2013-01-02 佳能株式会社 Printing system and workflow management method for printing system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801075A (en) * 2004-12-31 2006-07-12 东友科技股份有限公司 Printing system and method capable of intelligently processing files
KR100675379B1 (en) * 2005-01-25 2007-01-29 삼성전자주식회사 Printing system and printing method
JP2008165708A (en) * 2007-01-05 2008-07-17 Canon Inc Printing system, control method of printing system, printer, storage medium, and program
JP2009028984A (en) * 2007-07-26 2009-02-12 Brother Ind Ltd Image formation device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127094A (en) * 2007-09-14 2008-02-20 上海电信工程有限公司 Optical cable sign brand, system and method for on the spot identification for local network optical cable line
CN102375716A (en) * 2010-08-26 2012-03-14 北大方正集团有限公司 Variable data printing method and system
CN102855101A (en) * 2011-06-29 2013-01-02 佳能株式会社 Printing system and workflow management method for printing system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901803A (en) * 2019-03-12 2019-06-18 江苏沁恒股份有限公司 Mini-printer superadd-print processing method and computer readable storage medium
CN109901803B (en) * 2019-03-12 2022-09-09 南京沁恒微电子股份有限公司 Additional printing processing method for micro printer and computer readable storage medium
CN110427163A (en) * 2019-07-30 2019-11-08 Oppo(重庆)智能科技有限公司 Product identification Method of printing and relevant device
CN110427163B (en) * 2019-07-30 2023-05-26 Oppo(重庆)智能科技有限公司 Product identification printing method and related equipment
CN113805819A (en) * 2020-06-15 2021-12-17 深圳市理邦精密仪器股份有限公司 Printing control method, printing control device, monitor and storage medium

Also Published As

Publication number Publication date
WO2018166388A1 (en) 2018-09-20

Similar Documents

Publication Publication Date Title
US5371837A (en) Virtual printer
CN108572802A (en) Prevent the method, apparatus and print system of page duplicate printing
CN104111806B (en) One kind printing scheduling, processing method, device and system
CN102541791A (en) Data transferring apparatus and control method thereof
CN1396517A (en) Print control device and print control method
CN110412843A (en) Sequence number switching method and system
CN106066842A (en) A kind of method of switch mode, SOC(system on a chip) and base station
KR980003992A (en) How to process print data
CN110091635B (en) Printing control method and device, printer and storage medium
US7102779B2 (en) Collective document processing by multiple printing devices
CN102314214A (en) Use system, server unit and the method for peripherals
CN107037996A (en) Image formation system and image forming method
CN107562391A (en) A kind of Method of printing and device
CN107632798A (en) Data-printing method and relevant device
CN109120628B (en) Printing system gigabit network communication method, terminal and system
CN104589788A (en) Digital printing processing method and device
CN103399718A (en) Digital printing system and digital printing method
CN203496468U (en) Digital printing system
CN107678705A (en) The method and apparatus for acting on behalf of printing
CN103503403B (en) Data processing method and equipment
WO1983001521A1 (en) A page modification method in a printer subsystem of the partial page buffer composing type
CN205193780U (en) Trade mark image print system
JP6806029B2 (en) Image formation system and image formation method
CN101354750B (en) Data processing method, printing equipment, apparatus and system for digital printing
CN105955679A (en) Method and apparatus for processing printing information of printer

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180925