WO2012116620A1 - 双面打印系统及其控制方法 - Google Patents
双面打印系统及其控制方法 Download PDFInfo
- Publication number
- WO2012116620A1 WO2012116620A1 PCT/CN2012/071677 CN2012071677W WO2012116620A1 WO 2012116620 A1 WO2012116620 A1 WO 2012116620A1 CN 2012071677 W CN2012071677 W CN 2012071677W WO 2012116620 A1 WO2012116620 A1 WO 2012116620A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- buffer
- print data
- printer
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
- G06K15/18—Conditioning data for presenting it to the physical printing elements
- G06K15/1894—Outputting the image data to the printing elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1211—Improving printing performance
- G06F3/1215—Improving printing performance achieving increased printing speed, i.e. reducing the time between printing start and printing end
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1244—Job translation or job parsing, e.g. page banding
- G06F3/1247—Job translation or job parsing, e.g. page banding by conversion to printer ready format
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/125—Page layout or assigning input pages onto output media, e.g. imposition
- G06F3/1251—Page layout or assigning input pages onto output media, e.g. imposition for continuous media, e.g. web media, rolls
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1281—Multi engine printer devices, e.g. one entity having multiple output engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2206/00—Indexing scheme related to dedicated interfaces for computers
- G06F2206/15—Indexing scheme related to printer interfaces for computers, indexing schema related to group G06F3/12
- G06F2206/1514—Sub-job
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1218—Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
- G06F3/122—Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to computing resources, e.g. memory, CPU
Definitions
- the present invention relates to the field of printing, and in particular to a double-sided printing system and a control method therefor.
- BACKGROUND OF THE INVENTION Printers are widely used in cashier systems in supermarkets, shopping malls, restaurants, and the like for printing transaction details. As the application needs change, many users not only require printing the transaction details on the documents, but also want to print coupons, advertisements and other information on the documents as promotional means.
- the Chinese patent publication CN1892571A provides a two-sided receipt issuing method, which prints transaction data on one side of the receipt and prints supplementary information such as discount information, coupon information, and the like on the other side of the receipt.
- a two-sided printing system which includes a main unit and a printer.
- the printer comprises a first print head and a second print head disposed oppositely, the first print head is for printing transaction data on one side of the receipt, and the second print head is for printing supplementary information on the other side of the receipt.
- the host generates two-sided print data (ie, transaction data and supplementary information) through the application, and sends the two-sided print data to the printer together.
- the application sets a correspondence flag instruction between the mark print data and the print head before each line of print data, and the controller of the printer determines to send the print data of the line to the corresponding one by reading the mark instruction before each line of print data.
- Print head print is generally employed, which includes a main unit and a printer.
- the printer comprises a first print head and a second print head disposed oppositely, the first print head is for printing transaction data on one side of the receipt, and the second print head is for printing supplementary information on the other side of the receipt.
- the host generate
- An object of the present invention is to provide a double-sided printing system and a control method thereof to solve the above problems.
- a double-sided printing system is provided.
- the double-sided printing system includes a host and a printer, wherein the host includes: a first generating unit configured to generate first print data printed on a first side of the medium; and a second generating unit configured to generate a print on the medium
- the second print data of the two sides the printer comprises: a controller; a first data buffer, connected to the first generating unit via the controller, for receiving and buffering the first print data; the second data buffer, via the controller
- the second generation unit is connected, For receiving and buffering second print data; a first print head connected to the first data buffer via the controller for printing the first print data on the first side of the medium; and a second print head via the controller a second data buffer connection for receiving the second print data and printing the second print data on the second side of the medium.
- the first print head is connected to the first generating unit for receiving the first print data and printing the first print data on the first side of the medium
- the second print head is associated with the second generating unit Connected for receiving second print data and printing second print data on the second side of the medium.
- the host further includes: a first interface connected to the first generating unit; and a second interface connected to the second generating unit, the printer further comprising: a third interface connected to the first interface of the host; The fourth interface is connected to the second interface of the host, wherein the first printhead receives the first print data via the third interface, and the second printhead receives the second print data via the fourth interface.
- the host is further configured to query status information of the printer, and send the first print data and the second print data to the third interface and the fourth of the printer respectively through the first interface and the second interface when the printer is in an idle state.
- the controller is further configured to perform parsing processing on the first print data, obtain the first raster data, and perform parsing processing on the second print data to obtain second raster data
- the first data buffer includes: a receiving buffer, connected to the third interface via the controller, for buffering the first print data; and a first print buffer connected to the controller for buffering the first raster data
- the second data buffer comprising: a second receiving buffer connected to the fourth interface via the controller for buffering the second print data; and a second print buffer coupled to the controller for buffering the second raster data.
- the controller is further configured to: query the first receiving buffer and the second receiving buffer, and read data from the first receiving buffer and the first receiving buffer in the second receiving buffer, and the data will be read The resulting data is converted to raster data and the raster data is stored in the corresponding print buffer. Further, the controller of the printer is further configured to: determine whether data exists in the second receiving buffer when the receiving buffer of the earliest data is the first receiving buffer, and in the second receiving buffer within a preset time When no data exists, print is performed according to the preset operation. Further, the controller of the printer is further configured to control the second printhead to print the preset data on the second side of the medium when there is no data in the second receiving buffer within the preset time.
- the controller of the printer is further configured to respectively determine whether the print data in the first receiving buffer and the second receiving buffer completes the parsing process, and the print data in the first receiving buffer and the second receiving buffer are respectively After the parsing process is completed, the print operation is performed.
- the host and the printer are connected through a fifth interface, wherein the fifth interface is configured to establish a first data transmission channel and a second data transmission channel between the host and the printer, where the first data transmission channel is used for transmitting A print data, the second data transfer channel is for transmitting the second print data.
- the control method of the duplex printing system includes: generating, by the first generating unit, first print data for printing on a first side of the medium, and using the second generating unit to generate second printing for printing on a second side of the medium Data; transmitting first print data to the first print head, transmitting the second print data to the second print head; and utilizing the first print head and the second print head respectively on the first side of the medium and the second side of the medium
- the first print data and the second print data are printed. Further, the first print data and the second print data are respectively sent to the first print head and the second print head through the same or different interfaces.
- first print data and the second print data are respectively cached by using different receiving buffers, and the first raster data after the first print data and the second print data are parsed by the controller by using different print buffers respectively. And second raster data.
- the present invention also provides a printer which is a printer used in any of the double-sided printing systems of the present invention.
- a first data transmission channel is formed between the first generation unit in the host and the first print head of the printer, and the first data transmission channel is used to transmit on the first side of the medium.
- FIG. 1 is a block diagram of a duplex printing system in accordance with an embodiment of the present invention
- FIG. 2 is a block diagram of a preferred embodiment of a duplex printing system in accordance with the present invention
- FIG. 3 is a duplex printing system in accordance with the present invention.
- FIG. 4 is a flow chart of a second embodiment of a double-sided printing system control method according to the present invention
- FIG. 5 is a third embodiment of a double-sided printing system control method according to the present invention.
- Figure 6 is a schematic view of a printer according to an embodiment of the present invention
- Figure 7 is a flow chart of a first embodiment of a printing process of a printer according to the present invention
- Figure 8 is a printing process of a printer according to the present invention.
- the duplex printing system includes: a host 1 (or a print requesting device) and a printer 2.
- the host 1 includes: a first generating unit 12 for generating first print data printed on a first side of the medium; and a second generating unit 13 for generating second print data printed on the second side of the medium .
- the printer 2 includes: a controller 21; a first data buffer 24 connected to the first generating unit 12 via the controller 21 for receiving and buffering the first print data; and a second data buffer 25 via the controller 21 and
- the second generating unit 13 is connected to receive and cache the second print data;
- the first print head 28 is connected to the first data buffer 24 via the controller 21 for printing the first print data on the first side of the medium;
- the second print head 29 is coupled to the second data buffer 25 via the controller 21 for receiving the second print data and printing the second print data on the second side of the medium.
- a first data transfer channel is formed between the first print head 28, the first data buffer 24 and the first generating unit 12, the second print head 29, the second data buffer 25 and the second generating unit.
- a second data transmission channel for respectively transmitting print data printed on the first side and the second side of the medium for duplex printing through the first data transmission channel and the second data transmission channel, thereby eliminating the need to add a mark before printing data per line
- the mark instruction of the correspondence between the print data and the print head can realize the correspondence between the print data and the print head, thereby reducing the burden of data processing of the printer controller, thereby facilitating high-speed printing.
- the host 1 further includes: a first interface connected to the first generating unit 12; and a second interface connected to the second generating unit 13, the printer 2 further comprising: a third interface, Connected to the first interface of the host 1; and a fourth interface connected to the second interface of the host 1, wherein the first print head 28 receives the first print data via the third interface, and the second print head 29 passes the fourth The interface receives the second print data.
- the print data printed on the first side and the second side of the medium are respectively generated by using the first generating unit and the second generating unit independent of each other, and the printing is performed on the first side of the medium by using different interfaces.
- the second side of the print data not only can directly distinguish the print data printed on the first side and the second side of the medium, and can realize double-sided printing without changing the single-sided printing system application, thereby being simple Switch the single-sided printing system to a duplex printing system.
- the first generating unit 12 and the second generating unit 13 are two independent applications, when it is required to switch the single-sided printing system to the duplex printing system, only on the basis of replacing the double-sided printer, The second generating unit is further installed on the host, and an independent data transfer channel is established between the second interface and the printer, so that the double-sided printing can be realized on the basis of the application used without changing the single-sided printing system of the user.
- the host 1 is further configured to query status information of the printer 2, and send the first print data and the second print data to the third of the printer 2 through the first interface and the second interface respectively when the printer 2 is in the idle state.
- Interface and fourth interface Since the host needs to query the status of the printer before sending the print data to the printer, the host sends data to the printer when the printer is in an idle state, thereby avoiding the occurrence of the loss or omission of the print data when the print data is sent when the printer is in a fault state.
- the controller is further configured to perform parsing processing on the first print data, obtain first raster data, and parse the second print data to obtain second raster data;
- the first data buffer includes: a first receiving buffer And a third interface, configured to cache the first print data;
- a first print buffer configured to cache the first raster data;
- the second data buffer includes: a second receive buffer, connected to the fourth interface And a second print buffer for buffering the second raster data.
- the first generating unit, the first interface, the third interface, the first receiving buffer, the first print buffer, and the first printhead form a first data transmission channel;
- the second generating unit and the second interface The fourth interface, the second receiving buffer, the second print buffer, and the second printhead form a second data transmission channel, wherein the first data transmission channel and the second data transmission channel are independent of each other and do not interfere with each other.
- the first data transmission channel and The second data transmission channel is capable of separately transmitting print data printed on the first side and the second side of the medium for duplex printing.
- the controller of the printer 2 is further configured to: query the first receiving buffer and the second receiving buffer, and read data from the first receiving buffer and the receiving buffer of the second receiving buffer that has the earliest data, The read data is converted to raster data, and the raster data is stored in the corresponding print buffer.
- the efficiency of data conversion can be improved by reading data from the receive buffer in which the first data is present in the first receive buffer and the second receive buffer, and converting the read data.
- the controller of the printer 2 is further configured to: determine whether data exists in the second receiving buffer when the receiving buffer of the earliest data is the first receiving buffer, and the second receiving buffer in the preset time When there is no data in the middle, the printing is performed according to the preset operation.
- the printer does not have to wait for the duplex printing data for a long time, and after the preset time of receiving the one-sided printing data, the printing operation can be performed according to the predetermined setting.
- the controller of the printer 2 is further configured to control the second printhead to print preset data on the second side of the medium when there is no data in the second receiving buffer within a preset time.
- the effect of double-sided printing on the medium can also be achieved when the print data of a certain side is not received.
- the controller of the printer 2 is further configured to respectively determine whether the print data in the first receiving buffer and the second receiving buffer completes the parsing process, and the print data in the first receiving buffer and the second receiving buffer.
- the duplex printing system includes a host 1 and a printer 2.
- the host 1 can be a computer or other control device, including a control unit 11, a storage unit 16, a first interface 14, and a second interface 15. Among them, the control unit 11 operates based on the operating system and other programs in the storage unit 16, thereby performing various information processing operations.
- the storage unit 16 includes a ROM memory, a RAM memory, and a hard disk drive. The storage unit 16 stores a program to be executed by the control unit 11.
- the storage unit 16 also operates as a work memory for storing various types of data required during the processing performed by the control unit 11.
- the installation program in the storage unit 16 includes a first generation unit 12 and a second generation unit 13.
- the first generating unit 12 is configured to generate first print data printed on one side of the medium.
- the second generating unit 13 is for generating second print data printed on the other side of the medium.
- the first interface 14 and the second interface 15 are used to connect the printer 2 to the host 1, to establish communication between the printer 2 and the host 1, and to implement data interaction.
- the first interface 14 is connected to the data output port of the first generating unit 12, and the first print number generated by the first generating unit 12 can be generated. According to the transfer to the printer.
- the second interface 15 is connected to the data output port of the second generating unit 13, and the second print data generated by the second generating unit 13 can be transmitted to the printer.
- the first interface 14 and the second interface 15 may be a serial interface, a parallel interface, a USB interface, or an Ethernet interface.
- the printer 2 includes a controller 21, a third interface 22, a fourth interface 23, a first data buffer 24, a second data buffer 25, a first printhead 28, a second printhead 29, and a FLASH memory 30, wherein A data buffer 24 includes a first receive buffer 240 and a first print buffer 242, and the second data buffer 25 includes a second receive buffer 250 and a second print buffer 252.
- the controller 21 is for controlling each module of the printer 2 to perform work.
- the third interface 22 is wiredly connected to the first interface 14 of the host 1 via a communication line or wirelessly through a wireless communication module for receiving the first print data transmitted from the host 1 or feeding back the status of the printer 2 to the host 1.
- the fourth interface 23 is connected to the second interface 15 of the host 1 via a communication line or wirelessly through a wireless communication module, and is configured to receive the second side print data sent by the host 1 or feed back the status of the printer 2 to the host. It should be noted that the third interface 22 matches the first interface 14 type, and the fourth interface 23 matches the second interface 15 type.
- the first receiving buffer 240 is configured to temporarily store the first print data sent to the printer through the third interface 22; the second receiving buffer 250 is configured to temporarily store the second print data sent to the printer through the fourth interface 23;
- the print buffer 242 is configured to temporarily store the first raster data, wherein the first raster data is data generated by the controller 21 after parsing the first print data stored in the first receive buffer 22; the second print buffer 252 The second raster data is temporarily stored, wherein the second raster data is data generated by the controller 21 after parsing the second print data stored in the second receiving buffer 23.
- the first printhead 28 is for forming the first raster data on one side of the medium and the second printhead 29 is for forming the second raster data on the other side of the medium.
- the FLASH memory 30 is configured to store data related to print control, such as predefined print data, a status flag of the printer, a waiting time, a time threshold, etc., wherein the printing system allocates the address of the printer's memory in advance, and sets the first receiving buffer.
- the area 240, the first print buffer 242, the second receive buffer 250, and the second print buffer 252, and the printing system further sets the first receive buffer 240, the first print buffer 242, and the first print head 28. Corresponding relationship between the second receiving buffer 250, the second print buffer 252 and the second print head 29.
- the controller 21 saves the received first print data to a storage address corresponding to the first receiving buffer 240, and saves the received second print data to a storage address corresponding to the second receiving buffer 250, and
- the controller 21 stores the first raster data generated after the first print data parsing process stored in the first receiving buffer 240 into a storage address corresponding to the first print buffer 242, and the second receiving buffer is
- the second raster data generated after the second printer parsing process stored in 250 is stored in a storage address corresponding to the second print buffer 252, and the controller 21 is configured according to the first print buffer 242, the second print buffer 252, and the second A correspondence between the print head 28 and the second print head 29 transmits the first raster data to the first print head 28 and the second raster data to the second print head 29.
- the first generating unit, the first interface, the third interface, the first receiving buffer, the first print buffer, and the first printhead form a first data transmission channel;
- the second interface, the fourth interface, the second receiving buffer, the second print buffer, and the second printhead form a second data transmission channel, wherein the first data transmission channel and the second data transmission channel are independent of each other, and do not interfere with each other
- the print data printed on the first side and the second side of the medium can be respectively transmitted through the first data transfer channel and the second data transfer channel for duplex printing.
- the host and the printer are connected through a fifth interface, wherein the fifth interface is configured to establish a first data transmission channel and a second data transmission channel between the host and the printer, where the first data transmission channel is used for transmitting A print data, the second data transfer channel is for transmitting the second print data. That is, the first data transfer channel for printing on one side of the medium and the second data transfer channel for printing on the other side of the medium can also be established between the host and the printer of the printing system of the present invention through a physical interface. For example, when the printer passes a
- the host acquires multiple logical functions of the connected printer; installs one device on the host corresponding to each logical function; sets each installed device to occupy an independent pipeline, and transmits through independent pipeline Corresponding logic function related data.
- the plurality of logic functions of the printer include a first logic function for conveying the first print data and a second logic function for conveying the second print data. Setting the data related to the first logic function to be transmitted through the first pipeline, and the data related to the second logic function is transmitted through the second pipeline, so that the first print data generated by the first generating unit is transmitted to the first pipeline through the first pipeline.
- the data buffer, the second print data generated by the second generating unit is sent to the second data buffer via the second pipeline.
- the first receiving buffer 240, the second receiving buffer 250, the first print buffer 242, and the second print buffer 252 may be independent RAMs (random memories), or may be in a RAM. Different storage areas.
- the printing system control method provided by the embodiment of the present invention is described below. It should be noted that the printing system control method provided by the embodiment of the present invention can be executed based on the printing system provided by the embodiment of the present invention, and the present invention is implemented. The printing system provided by the example can also be used to execute the printing system control method provided by the embodiment of the present invention.
- FIG. 3 is a flow chart of a first embodiment of a printing system control method in accordance with the present invention.
- the control method of the double-sided printing system includes: Step S102, generating, by the first generating unit, first print data for printing on the first side of the medium, and using the second generating unit, generating second print data for printing on the second side of the medium.
- Step S104 Send the first print data to the first print head, and send the second print data to the second print head.
- Step S106 printing the first print data and the second print data on the first side of the medium and the second side of the medium by the first print head and the second print head, respectively.
- data for printing on the first side of the medium is generated by the first generating unit and transmitted to the first print head for performing printing on the first side of the medium, and is generated by the second generating unit for use in
- the data printed on the second side of the medium is transferred to a second print head for performing printing on the second side of the medium for duplex printing, without the need to add a correspondence between the print data and the print head before each line of print data
- the mark instruction can realize the correspondence between the print data and the print head, thereby reducing the burden of data processing of the printer controller, thereby facilitating high-speed printing.
- the first print data and the second print data are respectively sent to the first print head and the second print head through the same or different interfaces.
- the above-mentioned embodiment in which the host and the printer are connected through the fifth interface may be used. Therefore, the structure of the printing system can be simplified.
- the first print data and the second print data are respectively sent to the first print head and the second print head by using different interfaces, the first between the host and the printer can be adopted.
- the embodiment in which the interface is connected to the fourth interface is completed, so that the software modification can be minimized and the operation is simple.
- the first print data and the second print data are separately cached by using different receiving buffers, and the first print data and the second print data are separately cached by the controller by using different print buffers.
- the first raster data and the second raster data after the processing are parsed.
- 4 is a flowchart of a second embodiment of a printing system control method according to the present invention.
- the method includes: Step S201, a first generating unit generates first print data, and a second generating unit generates a second Print the data.
- the first generating unit may be an application for generating transaction information, and the operator inputs the transaction information such as the product name, the quantity, the price, etc. into the first generating unit by using a computer peripheral device such as a keyboard, a mouse, a barcode reader, or the like, and the first generating unit according to the transaction The information generates the first print data.
- the second generation unit may be an application that generates supplementary information, and the supplementary information may be coupon information, discount information, match information, advertisement information, and the like.
- Second generation list The element generates second print data according to the supplementary information, wherein the supplementary information may be recorded into the second generating unit by the operator in real time, or may be obtained by the control unit of the host controlling the second generating unit to select the setting information stored in the storage unit of the host.
- the second generating unit may also be an application that generates transaction information, so that printing the transaction information on both sides of the medium can achieve the purpose of saving paper.
- Step S202 The host sends the first print data and the second print data to the printer through the first interface and the second interface, respectively.
- the host sends the first print data generated by the first generating unit to the printer through the first interface, and the controller of the printer temporarily stores the received first print data in the first data buffer.
- the host sends the second print data generated by the second generating unit to the printer through the second interface, and the controller of the printer temporarily stores the received second print data in the second data buffer.
- Step S203 the printer prints the first print data on one side of the medium and the second print data on the other side of the medium.
- the controller of the printer sends the first print data temporarily stored in the first data buffer to the first print head, the first print head prints the first print data on one side of the medium; the controller of the printer temporarily stores the second data The second print data in the buffer is sent to the second printhead, and the second printhead prints the second print data on the other side of the medium.
- 5 is a flow chart of a third embodiment of a printing system control method according to the present invention. As shown, the method includes: Step S301, a first generating unit generates first print data, and a second generating unit generates a second print data.
- the host queries the status of the printer.
- the status of the printer typically includes an idle state, a printing status, a print normal end status, and a print failure status.
- the real-time status information of the printer can be represented by multiple byte groups and byte bits in the FLASH memory or RAM memory of the printer. Different bytes and different bits of each byte correspond to various states of the printer.
- the host control software can query the real-time status flag byte of the printer by sending a real-time instruction. Each time the inquiry command is sent to the printer, the printer returns a status flag byte to the host control software. Therefore, the host can know the status of the printer.
- Step S303 when the printer is in an idle state, the host sends the first print data and the second print data to the printer through the first interface and the second interface, respectively.
- Step S304 the printer prints the first print data on one side of the medium and the second print data on the other side of the medium.
- the host needs to query the status of the printer before sending the print data to the printer.
- the host sends data to the printer, thereby preventing the print data from being lost when the printer is in a fault state. Or the omission of the situation.
- the embodiment of the invention further provides a printer, which can be used in any double-sided printing system provided by the embodiment of the invention.
- the printer provided by the embodiment of the present invention will be described below.
- Figure 6 is a schematic illustration of a printer in accordance with an embodiment of the present invention.
- FIG. 7 is a flow chart of a first embodiment of a printing process of a printer in accordance with the present invention, the method comprising: Step S501, querying a first receive buffer and a second receive buffer. The controller of the printer periodically queries the first receive buffer and the second receive buffer, waiting for the print data sent by the host.
- Step S502 reading data from a receiving buffer of the first existing data.
- the controller reads data from the receive buffer where the data first exists. For example, the controller first queries the first receive buffer to have data, and first reads data from the first receive buffer.
- Step S503 converting the read data into raster data and storing it in a print buffer corresponding to the receiving buffer.
- the print data generated by the host-installed application includes a print content instruction that defines the print content and a print control instruction that controls the printer action.
- the printer also needs various instructions for parsing the data, and defines the print content instruction.
- the data such as characters, bar codes, etc., is converted into raster data, and then printed by the print head according to the print control command.
- the controller converts the read data into raster data and stores it in a print buffer corresponding to the receive buffer.
- the first receiving buffer receives the first print data generated by the first generating unit, and the controller parses the first print data read from the first receiving buffer to generate the first raster data to be stored in the first In the print buffer, therefore, the first print buffer and the first receive buffer Corresponding to the punching area;
- the second receiving buffer receives the second print data generated by the second generating unit, and the second raster data stored by the controller after parsing the second print data read from the second receiving buffer Going to the second print buffer, therefore, the second print buffer corresponds to the second receive buffer.
- the controller determines the correspondence between the buffers by pre-defining the addresses of the buffers.
- step S504 it is determined whether the ticket face end instruction is read, and if so, step S505 is performed, otherwise, step S502 is performed. It is judged whether or not the ticket end instruction indicating the end of the face data is read.
- the face end command may be a cutter command for instructing the cutter device to cut the medium.
- step S505 is performed to process data in another receive buffer; otherwise, step S502 is performed to continue reading data from the current receive buffer.
- Step S505 determining whether there is data in another receiving buffer, if yes, executing step S506, otherwise performing step S510. After the data processing in the receiving buffer of the first data is completed, the controller queries whether another receiving buffer has data.
- step S506 is performed, and data is read from the receiving buffer. Otherwise, step S510 is performed. .
- the controller first processes the data in the first receiving buffer. After the data processing in the first receiving buffer is completed, the controller queries whether there is data in the second receiving buffer for subsequent processing. Step S506, reading data from another buffer.
- the controller reads data from another receive buffer. For example, the controller first reads data from the first receive buffer, and when the data in the first receive buffer is processed, the controller reads data from the second receive buffer.
- Step S507 the read data is converted into raster data and stored in a print buffer corresponding to the receive buffer. This step is the same as step S503, and will not be repeated here.
- step S508 it is determined whether a cutter command or a ticket end command is received. If yes, step S509 is performed, otherwise, step S506 is performed. It is judged whether or not the ticket end instruction indicating the end of the face data is read.
- the face end command may be a cutter command for instructing the cutter device to cut the medium.
- step S509 printing is performed; otherwise, step S506 is executed to continue reading data from the current receiving buffer. Step S509, printing is performed on both sides of the medium.
- the controller sends the first raster data of the first print buffer to the first a print head, wherein the first print head is opposite to one side of the medium; the controller transmits the second raster data of the second print buffer to the second print head, wherein the second print head is opposite to the other side of the medium;
- the device controls the movement of the medium, and during the movement of the medium, the first print head and the second print head are respectively printed on both sides of the medium to form an image or a character.
- Step S510 determining whether the waiting time exceeds a time threshold. If there is no data in another receiving buffer, the controller determines whether the waiting time exceeds the time threshold, and if not, executes step S511 to wait for the set time. Otherwise, step S512 is performed. The controller can determine whether the waiting time exceeds the time threshold by reading the waiting time stored in the printer's memory against the time threshold. Step S511, waiting for the set time.
- the controller starts timing, waits for the set time, and saves the wait time in the printer's memory. If the waiting time has been stored in the memory, the set time is accumulated based on the original waiting time to obtain a new waiting time to be stored in the printer's memory. After waiting for the set time, the controller re-query whether there is data in another receive buffer. In step S512, printing is performed according to the setting operation. When there is no data in another receive buffer, the controller controls the printer to perform a setting operation.
- the setting operation may be that the controller sends the raster data in the print buffer corresponding to the receiving buffer of the existing data to the print head corresponding to the print buffer to perform printing, and therefore, the printer prints only on one side of the medium.
- the first print buffer corresponds to the first printhead
- the second print buffer corresponds to the second printhead.
- the setting operation may also be that the controller sends the raster data in the print buffer corresponding to the receiving buffer of the existing data to the print head corresponding to the print buffer to perform printing, and at the same time, the predefined print data to be saved in the FLASH memory.
- the print head is sent to the print head corresponding to the receive buffer where the data does not exist, so the printer prints on both sides of the medium at the same time.
- the method includes: Step S601: determining whether there is data in the first receiving buffer, and if yes, performing step 602, otherwise , continue to judge.
- Step S602 reading data of the first receiving buffer. Received by the first receiving buffer is the first print data generated by the first generating unit. Step S603, converting the read data into raster data and storing it in the first print buffer. The controller converts the first print data into the first raster data and stores it in the first print buffer.
- step S604 it is determined whether the ticket end instruction is read, and if so, step S605 is performed, otherwise, step S602 is performed.
- Step S605 recording the first receiving buffer data processing is completed.
- the specific method of recording the completion of the first receive buffer data processing may be represented by a different value of one byte in the FLASH memory or the RAM memory of the printer. This byte is set to 1 when the first receive buffer data is processed, otherwise it is set to 0. This byte is cleared when a print job is completed. Step S611, it is judged whether there is data in the second receiving buffer, and if yes, step 612 is performed, otherwise, the determination is continued. Step S612, reading data of the second receiving buffer. Received by the second receiving buffer is the second print data generated by the second generating unit. Step S613, converting the read data into raster data and storing it in the second print buffer. The controller converts the second print data into the second raster data and stores it in the second print buffer.
- Step S614 it is judged whether the ticket face end instruction is read, and if yes, step S615 is performed, otherwise, step S612 is performed.
- Step S615 recording the second receiving buffer data processing is completed.
- the specific method of recording the completion of the second receive buffer data processing may be represented by a different value of one byte in the FLASH memory or the RAM memory of the printer. This byte is set to 1 when the second receive buffer data is processed, otherwise it is set to 0. This byte is cleared when a print job is completed.
- Steps S601 to S605 are performed in parallel with steps S611 to S615.
- the controller can know whether the first receiving buffer and the second receiving buffer data processing are completed by reading the value of the byte indicating the data processing state of the first receiving buffer and the second receiving buffer. Step S607, printing is performed. If raster data exists in both the first print buffer and the second print buffer, the controller sends the first raster data in the first print buffer to the first printhead, and the first printhead performs printing on one side of the medium, The second raster data in the second print buffer is sent to the second printhead, and the second printhead performs printing on the other side of the medium.
- the controller sends the raster data to its corresponding printhead, the printhead performs printing on one side of the medium, and the other printhead does not. jobs. Or, if only one of the first print buffer and the second print buffer has data, the controller sends the raster data to its corresponding print head, and the print head performs printing on one side of the medium; meanwhile, the controller
- the pre-defined print data stored in the FLASH memory is sent to the print head corresponding to the print buffer in which the data does not exist, so that the printer simultaneously prints on both sides of the medium.
- the predefined data may be coupon information, discount information, match information, advertisement information, and the like.
- Step S608 determining whether the waiting time exceeds a time threshold.
- the controller determines whether the waiting time exceeds the time threshold. If not, step S609 is performed to wait for the set time. Otherwise, execute Step S607.
- the controller can determine whether the waiting time exceeds the time threshold by reading the waiting time stored in the printer's memory against the time threshold. Step S609, waiting for the set time. Since the amount of data received by the first receive buffer and the second receive buffer may be different, the time required for the two receive buffers to process the data may be different, and therefore, a wait time may be set to enable the first reception. The data processing in the buffer and the second receive buffer is completed.
- the present invention can reduce the data transmission load between the host and the printer, improve the printing speed, and can realize double-sided printing without changing the application of the single-sided printing system, and can easily switch from an existing single-sided printing system to a two-sided printing system.
- the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Printers Characterized By Their Purpose (AREA)
- Record Information Processing For Printing (AREA)
Description
双面打印系统及其控制方法 技术领域 本发明涉及打印领域, 具体而言, 涉及一种双面打印系统及其控制方法。 背景技术 打印机在超市、 商场、 餐饮等行业的收银系统中广泛应用, 用于打印交易明细。 随着应用需求的变化, 很多用户不仅要求在单据上打印交易明细, 同时也希望在单据 上打印优惠券、 广告等信息作为促销手段。 为了满足上述需求, 公开号为 CN1892571A的中国专利提供了一种双面收据发行 方法, 在收据的一面打印交易数据, 在收据的另一面打印补充信息, 如折扣信息、 优 惠券信息等。 为了发行这种双面收据, 通常采用双面打印系统, 该双面打印系统包括 主机和打印机。 其中, 打印机包括相对设置的第一打印头和第二打印头, 第一打印头 用于在收据的一面打印交易数据, 第二打印头用于在收据的另一面打印补充信息。 主 机通过应用程序生成两面打印数据(即交易数据和补充信息),将两面打印数据一起下 发给打印机。 其中, 应用程序在每行打印数据前设置标记打印数据与打印头之间的对 应关系标志指令, 打印机的控制器通过读取每行打印数据前的标志指令确定将该行打 印数据发送给相应的打印头打印。 发明人发现, 上述双面打印系统由于在每行打印数据前添加了标记打印数据与打 印头之间的对应关系标志指令, 引起打印数据量增加, 不仅增加了主机与打印机之间 的数据传输负担, 而且增加了打印机控制器数据处理负担, 阻碍了打印速度的提高, 不利于高速打印。 发明内容 本发明的目的是提供一种双面打印系统及其控制方法, 以解决上述问题。 为了实现上述目的, 根据本发明的一个方面, 提供了一种双面打印系统。 该双面 打印系统包括主机和打印机, 其中, 主机包括: 第一生成单元, 用于生成打印在介质 的第一面的第一打印数据; 以及第二生成单元, 用于生成打印在介质的第二面的第二 打印数据, 打印机包括: 控制器; 第一数据缓冲区, 经由控制器与第一生成单元连接, 用于接收并缓存第一打印数据; 第二数据缓冲区, 经由控制器与第二生成单元连接,
用于接收并缓存第二打印数据; 第一打印头, 经由控制器与第一数据缓冲区连接, 用 于在介质的第一面打印第一打印数据; 以及第二打印头, 经由控制器与第二数据缓冲 区连接, 用于接收第二打印数据并在介质的第二面打印第二打印数据。 在上述的双面打印机中, 第一打印头与第一生成单元相连接, 用于接收第一打印 数据并在介质的第一面打印第一打印数据, 第二打印头与第二生成单元相连接, 用于 接收第二打印数据并在介质的第二面打印第二打印数据。 进一步地, 主机还包括: 第一接口, 与第一生成单元相连接; 以及第二接口, 与 第二生成单元相连接, 打印机还包括: 第三接口, 与主机的第一接口相连接; 以及第 四接口, 与主机的第二接口相连接, 其中, 第一打印头经由第三接口接收第一打印数 据, 第二打印头经由第四接口接收第二打印数据。 进一步地, 主机还用于查询打印机的状态信息, 以及在打印机处于空闲状态时, 通过第一接口和第二接口将第一打印数据和第二打印数据分别发送至打印机的第三接 口和第四接口。 进一步地, 控制器还用于对第一打印数据进行解析处理, 得到第一光栅数据, 以 及对第二打印数据进行解析处理, 得到第二光栅数据, 其中, 第一数据缓冲区包括: 第一接收缓冲区, 经由控制器与第三接口相连接, 用于缓存第一打印数据; 以及第一 打印缓冲区, 与控制器相连接, 用于缓存第一光栅数据, 第二数据缓冲区包括: 第二 接收缓冲区, 经由控制器与第四接口相连接, 用于缓存第二打印数据; 以及第二打印 缓冲区, 与控制器相连接, 用于缓存第二光栅数据。 进一步地, 控制器还用于: 查询第一接收缓冲区和第二接收缓冲区, 从第一接收 缓冲区和第二接收缓冲区中最早存在数据的接收缓冲区中读取数据, 将读取到的数据 转换为光栅数据, 以及将光栅数据存储至相应的打印缓冲区中。 进一步地, 打印机的控制器还用于: 在最早存在数据的接收缓冲区为第一接收缓 冲区时, 判断第二接收缓冲区中是否存在数据, 以及在预设时间内第二接收缓冲区中 均不存在数据时, 按照预设的操作执行打印。 进一步地, 打印机的控制器还用于在预设时间内第二接收缓冲区中均不存在数据 时控制第二打印头在介质的第二面上打印预设数据。
进一步地, 打印机的控制器还用于分别判断第一接收缓冲区和第二接收缓冲区中 的打印数据是否完成解析处理, 以及在第一接收缓冲区和第二接收缓冲区中的打印数 据均完成解析处理后, 执行打印操作。 进一步地, 主机和打印机之间通过第五接口相连接, 其中, 第五接口用于在主机 和打印机之间建立第一数据传输通道和第二数据传输通道, 第一数据传输通道用于传 输第一打印数据, 第二数据传输通道用于传输第二打印数据。 为了实现上述目的, 根据本发明的另一方面, 提供了一种双面打印系统的控制方 法。 该双面打印系统的控制方法包括: 利用第一生成单元生成用于打印在介质的第一 面的第一打印数据,利用第二生成单元生成用于打印在介质的第二面的第二打印数据; 将第一打印数据发送至第一打印头, 将第二打印数据发送至第二打印头; 以及利用第 一打印头和第二打印头分别在介质的第一面和介质的第二面打印第一打印数据和第二 打印数据。 进一步地, 第一打印数据和第二打印数据通过相同或不同的接口分别发送至第一 打印头和第二打印头。 进一步地, 利用不同的接收缓冲区分别缓存第一打印数据和第二打印数据, 以及 利用不同的打印缓冲区分别缓存控制器对第一打印数据和第二打印数据解析处理之后 的第一光栅数据和第二光栅数据。 本发明还提供了一种打印机, 该打印机为用于本发明任意一种双面打印系统中的 打印机。 在本发明所提供的双面打印系统中, 主机中的第一生成单元和打印机的第一打印 头之间形成第一数据传输通道, 该第一数据传输通道用于传输在介质的第一面打印的 第一打印数据, 主机中的第二生成单元和打印机的第二打印头之间形成第二数据传输 通道, 该第二数据传输通道用于传输在介质的第二面打印的第二打印数据, 由于采用 两个数据传输通道分别发送用于在介质的第一面打印的第一打印数据以及在介质的第 二面打印的第二打印数据, 因而无需在每行打印数据前添加标记打印数据与打印头之 间的对应关系的标志指令, 从而减小了打印机控制器数据处理的负担, 进而有利于高 速打印。
附图说明 构成本申请的一部分的附图用来提供对本发明的进一步理解, 本发明的示意性实 施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图中: 图 1是根据本发明实施例的双面打印系统的框图; 图 2是根据本发明的双面打印系统的优选实施例的框图; 图 3是根据本发明的双面打印系统控制方法的第一实施例的流程图; 图 4是根据本发明的双面打印系统控制方法的第二实施例的流程图; 图 5是根据本发明的双面打印系统控制方法的第三实施例的流程图; 图 6是根据本发明实施例的打印机的示意图; 图 7是根据本发明的打印机的打印过程的第一实施例的流程图; 以及 图 8是根据本发明的打印机的打印过程的第二实施例的流程图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相 互组合。 下面将参考附图并结合实施例来详细说明本发明。 图 1是根据本发明实施例的双面打印系统的框图。 如图 1所示, 该双面打印系统包括: 主机 1 (或称作打印请求装置) 和打印机 2。 其中,主机 1包括:第一生成单元 12,用于生成打印在介质的第一面的第一打印数据; 以及第二生成单元 13,用于生成打印在介质的第二面的第二打印数据。打印机 2包括: 控制器 21 ; 第一数据缓冲区 24, 经由控制器 21与第一生成单元 12连接, 用于接收并 缓存第一打印数据; 第二数据缓冲区 25, 经由控制器 21与第二生成单元 13连接, 用 于接收并缓存第二打印数据; 第一打印头 28, 经由控制器 21与第一数据缓冲区 24连 接, 用于在介质的第一面打印第一打印数据; 以及第二打印头 29, 经由控制器 21与 第二数据缓冲区 25 连接, 用于接收第二打印数据并在介质的第二面打印第二打印数 据。 在该实施例中, 第一打印头 28、 第一数据缓冲区 24和第一生成单元 12之间形成 第一数据传输通道, 第二打印头 29、 第二数据缓冲区 25和第二生成单元 13之间形成
第二数据传输通道, 通过第一数据传输通道和第二数据传输通道分别传输打印在介质 第一面和第二面的打印数据以进行双面打印, 因此, 无需在每行打印数据前添加标记 打印数据与打印头之间的对应关系的标志指令, 即可实现打印数据与打印头之间的对 应关系, 从而减小了打印机控制器数据处理的负担, 进而有利于高速打印。 作为本发明的一个优选实施例, 主机 1 还包括: 第一接口, 与第一生成单元 12 相连接; 以及第二接口, 与第二生成单元 13相连接, 打印机 2还包括: 第三接口, 与 主机 1的第一接口相连接; 以及第四接口, 与主机 1的第二接口相连接, 其中, 第一 打印头 28经由第三接口接收第一打印数据, 第二打印头 29经由第四接口接收第二打 印数据。 在该实施例中, 通过采用相互独立的第一生成单元、 第二生成单元分别生成 打印在介质第一面和第二面的打印数据, 以及利用不同的接口分别进行传输打印在介 质第一面和第二面的打印数据, 不仅能够直接对打印在介质第一面和第二面的打印数 据进行区分, 而且能够在不改变单面打印系统应用程序的基础上实现双面打印, 进而 能够简便地将单面打印系统切换为双面打印系统。具体地, 由于第一生成单元 12和第 二生成单元 13 为两个独立的应用程序, 当需要将单面打印系统切换为双面打印系统 时, 仅需要在更换双面打印机的基础上, 在主机上再安装第二生成单元, 通过第二接 口与打印机之间建立一条独立的数据传送通道, 即可以在不改变用户单面打印系统时 使用的应用程序的基础上实现双面打印, 因此, 通过该实施例, 还能够很容易的将单 面打印系统切换为双面打印系统。 优选地, 主机 1还用于查询打印机 2的状态信息, 以及在打印机 2处于空闲状态 时, 通过第一接口和第二接口将第一打印数据和第二打印数据分别发送至打印机 2的 第三接口和第四接口。 由于主机向打印机发送打印数据前需要查询打印机的状态, 因 而当打印机处于空闲状态时, 主机才向打印机发送数据, 从而避免打印机故障状态时 下发打印数据引起打印数据丢失或者遗漏的情况的发生。 优选地, 控制器还用于对第一打印数据进行解析处理, 得到第一光栅数据, 以及 对第二打印数据进行解析处理, 得到第二光栅数据; 第一数据缓冲区包括: 第一接收 缓冲区, 与第三接口相连接, 用于缓存第一打印数据; 第一打印缓冲区, 用于缓存第 一光栅数据; 第二数据缓冲区包括: 第二接收缓冲区, 与第四接口相连接, 用于缓存 第二打印数据; 以及第二打印缓冲区, 用于缓存第二光栅数据。 在该实施例中, 第一生成单元、 第一接口、 第三接口、 第一接收缓冲区、 第一打 印缓冲区和第一打印头形成第一数据传输通道; 第二生成单元、第二接口、第四接口、 第二接收缓冲区、 第二打印缓冲区和第二打印头形成了第二数据传输通道, 其中, 第 一数据传输通道和第二数据传输通道相互独立, 互不干扰。 通过第一数据传输通道和
第二数据传输通道能够分别传输打印在介质第一面和第二面的打印数据以进行双面打 印。 优选地, 打印机 2的控制器还用于: 查询第一接收缓冲区和第二接收缓冲区, 从 第一接收缓冲区和第二接收缓冲区中最早存在数据的接收缓冲区中读取数据, 将读取 到的数据转换为光栅数据, 以及将光栅数据存储至相应的打印缓冲区中。 在该实施例 中, 通过将第一接收缓冲区和第二接收缓冲区中最早存在数据的接收缓冲区中读取数 据, 以及将读取的数据进行转换, 可以提高数据转换的效率。 优选地, 打印机 2的控制器还用于: 在最早存在数据的接收缓冲区为第一接收缓 冲区时, 判断第二接收缓冲区中是否存在数据, 以及在预设时间内第二接收缓冲区中 均不存在数据时, 按照预设的操作执行打印。 在该实施例中, 打印机无需等待双面打 印数据过长时间, 在接收到单面打印数据预设时间之后就可以根据预定的设置进行打 印操作。 优选地, 打印机 2的控制器还用于在预设时间内第二接收缓冲区中均不存在数据 时控制第二打印头在介质的第二面上打印预设数据。 在该实施例中, 在某个面的打印 数据接收不到时, 也能够实现对介质双面打印的效果。 优选地, 打印机 2的控制器还用于分别判断第一接收缓冲区和第二接收缓冲区中 的打印数据是否完成解析处理, 以及在第一接收缓冲区和第二接收缓冲区中的打印数 据均完成解析处理后, 执行打印操作。 通过在双面的打印数据均完成解析处理时再执 行打印, 可以防止数据的丢失。 图 2是根据本发明的双面打印系统的优选实施例的框图。 如图所示。 该双面打印 系统包括主机 1和打印机 2。主机 1可以是计算机或其他控制设备, 包括控制单元 11、 存储单元 16、第一接口 14和第二接口 15。其中, 控制单元 11基于操作系统和存储单 元 16中的其他程序来进行操作,从而执行各种信息处理操作。存储单元 16包括 ROM 存储器、 RAM存储器和硬盘驱动器。存储单元 16存储了要由控制单元 11执行的程序。 该存储单元 16还作为工作存储器来操作, 用于存储在由控制单元 11执行的处理过程 期间所需的各种类型的数据。 存储单元 16中的安装程序包括第一生成单元 12和第二生成单元 13。 其中, 第一 生成单元 12用于生成打印在介质的一面的第一打印数据。 第二生成单元 13用于生成 打印在介质的另一面的第二打印数据。 第一接口 14和第二接口 15用于将打印机 2连 接到主机 1, 使打印机 2与主机 1之间建立通讯, 实现数据交互。 其中, 第一接口 14 与第一生成单元 12的数据输出端口连接, 可以将第一生成单元 12生成的第一打印数
据传输到打印机。 第二接口 15与第二生成单元 13的数据输出端口连接, 可以将第二 生成单元 13生成的第二打印数据传输到打印机。第一接口 14和第二接口 15可以是串 行接口、 并行接口、 USB接口或者以太网接口等。 打印机 2包括控制器 21、 第三接口 22、 第四接口 23、 第一数据缓冲区 24、 第二 数据缓冲区 25、 第一打印头 28、 第二打印头 29及 FLASH存储器 30, 其中, 第一数 据缓冲区 24包括第一接收缓冲区 240和第一打印缓冲区 242, 第二数据缓冲区 25包 括第二接收缓冲区 250和第二打印缓冲区 252。控制器 21用于控制打印机 2的各模块 执行工作。 第三接口 22与主机 1的第一接口 14通过通讯线有线连接或通过无线通信 模块无线连接, 用于接收从主机 1发送的第一打印数据, 或者向主机 1反馈打印机 2 的状态。 第四接口 23与主机 1的第二接口 15通过通讯线连有线连接或通过无线通信 模块无线连接, 用于接收主机 1发送的第二面打印数据, 或者向主机反馈打印机 2的 状态。 需要说明的是, 第三接口 22与第一接口 14类型匹配, 第四接口 23与第二接口 15类型匹配。 第一接收缓冲区 240用于暂时存储通过第三接口 22发送给打印机的第 一打印数据;第二接收缓冲区 250用于暂时存储通过第四接口 23发送给打印机的第二 打印数据; 第一打印缓冲区 242用于暂时存储第一光栅数据, 其中, 第一光栅数据是 控制器 21对第一接收缓冲区 22内存储的第一打印数据解析处理后生成的数据; 第二 打印缓冲区 252用于暂时存储第二光栅数据, 其中,第二光栅数据是控制器 21对第二 接收缓冲区 23内存储的第二打印数据解析处理后生成的数据。 第一打印头 28用于将 第一光栅数据形成在介质的一面上,第二打印头 29用于将第二光栅数据形成在介质的 另一面上。 FLASH存储器 30用于存储与打印控制相关的数据, 比如预定义打印数据、 打印机的状态标志、 等待时间、 时间阈值等, 其中, 打印系统预先对打印机的存储器 的地址进行分配, 设置第一接收缓冲区 240、 第一打印缓冲区 242、 第二接收缓冲区 250及第二打印缓冲区 252, 同时打印系统还设置了第一接收缓冲区 240、 第一打印缓 冲区 242与第一打印头 28之间的对应关系,第二接收缓冲区 250、第二打印缓冲区 252 与第二打印头 29之间的对应关系。 控制器 21将接收到的第一打印数据保存至与第一 接收缓冲区 240对应的存储地址中, 将接收到的第二打印数据保存至与第二接收缓冲 区 250对应的存储地址中, 并且,控制器 21将对第一接收缓冲区 240内存储的第一打 印数据解析处理后生成的第一光栅数据存储到与第一打印缓冲区 242对应的存储地址 中, 将对第二接收缓冲区 250内存储的第二打印机解析处理后生成的第二光栅数据存 储到与第二打印缓冲区 252对应的存储地址中, 控制器 21根据第一打印缓冲区 242、 第二打印缓冲区 252与第一打印头 28及第二打印头 29的对应关系, 将第一光栅数据 发送给第一打印头 28, 将第二光栅数据发送给第二打印头 29。
由上述描述可以看出, 第一生成单元、 第一接口、 第三接口、 第一接收缓冲区、 第一打印缓冲区和第一打印头形成了第一数据传输通道; 第二生成单元、 第二接口、 第四接口、第二接收缓冲区、第二打印缓冲区和第二打印头形成了第二数据传输通道, 其中, 第一数据传输通道和第二数据传输通道相互独立, 互不干扰, 通过第一数据传 输通道和第二数据传输通道能够分别传输打印在介质第一面和第二面的打印数据以进 行双面打印。 优选地, 主机和打印机之间通过第五接口相连接, 其中, 第五接口用于在主机和 打印机之间建立第一数据传输通道和第二数据传输通道, 第一数据传输通道用于传输 第一打印数据, 第二数据传输通道用于传输第二打印数据。 也即, 本发明的打印系统 的主机与打印机之间也可以通过一个物理接口建立用于在介质的一面打印的第一数据 传输通道和用于在介质的另一面打印的第二数据传输通道。 比如, 当打印机通过一个
USB接口与主机通讯时, 主机获取所接入的打印机的多个逻辑功能; 对应于每个逻辑 功能在主机安装一个设备; 设置每个安装的设备均占用独立的管道, 通过独立的管道 传输与对应的逻辑功能相关的数据。 其中打印机的多个逻辑功能包括输送第一打印数 据的第一逻辑功能和输送第二打印数据的第二逻辑功能。 设定与第一逻辑功能相关的 数据通过第一管道传输, 与第二逻辑功能相关的数据通过第二管道传输, 因此, 第一 生成单元生成的第一打印数据经第一管道传输至第一数据缓冲区, 第二生成单元生成 的第二打印数据经第二管道输送至第二数据缓冲区。关于打印机通过一个 USB接口与 主机建立多管道通讯的详细方法可以参考申请号为 200910176510.3的中国专利申请所 记载的内容。 需要说明的是, 第一接收缓冲区 240、 第二接收缓冲区 250、 第一打印缓冲区 242 及第二打印缓冲区 252可以是各自独立的 RAM (随机存储器), 也可以是一个 RAM 中的不同存储区域。 以下对本发明实施例所提供的打印系统控制方法进行介绍, 需要说明的是, 本发 明实施例所提供的打印系统控制方法可以基于本发明实施例所提供的打印系统来执 行, 而且, 本发明实施例所提供的打印系统也可以用于执行本发明实施例所提供的打 印系统控制方法。 本发明的不同实施例中的打印系统控制方法中的各个步骤可以相互 口 。 图 3是根据本发明的打印系统控制方法的第一实施例的流程图。 如图 3所示, 该 双面打印系统的控制方法包括:
步骤 S102, 利用第一生成单元生成用于打印在介质的第一面的第一打印数据, 利 用第二生成单元生成用于打印在介质的第二面的第二打印数据。 步骤 S104, 将所述第一打印数据发送至第一打印头, 将所述第二打印数据发送至 第二打印头。 步骤 S106,利用所述第一打印头和所述第二打印头分别在介质的第一面和介质的 第二面打印所述第一打印数据和所述第二打印数据。 在该实施例中, 通过第一生成单元生成用于在介质第一面打印的数据并传送给用 于在介质第一面执行打印的第一打印头, 以及利用第二生成单元生成用于在介质第二 面打印的数据并传送给用于在介质第二面执行打印的第二打印头, 以进行双面打印, 无需在每行打印数据前添加标记打印数据与打印头之间的对应关系的标志指令, 即可 实现打印数据与打印头之间的对应关系, 从而减小了打印机控制器数据处理的负担, 进而有利于高速打印。 优选地, 第一打印数据和第二打印数据通过相同或不同的接口分别发送至第一打 印头和第二打印头。 在采用相同的接口将第一打印数据和第二打印数据分别发送至第 一打印头和第二打印头时, 可以是采用上述的主机和打印机之间通过第五接口相连接 的实施例来完成, 从而可以简化打印系统结构, 在采用不同的接口将第一打印数据和 第二打印数据分别发送至第一打印头和第二打印头时, 可以是采用上述的主机和打印 机之间通过第一接口至第四接口相连接的实施例来完成, 从而可以最大程度的减少软 件改动, 操作简单。 优选地,利用不同的接收缓冲区分别缓存所述第一打印数据和所述第二打印数据, 以及利用不同的打印缓冲区分别缓存控制器对所述第一打印数据和所述第二打印数据 解析处理之后的第一光栅数据和第二光栅数据。 图 4是根据本发明的打印系统控制方法的第二实施例的流程图, 如图 4所示, 该 方法包括: 步骤 S201 , 第一生成单元生成第一打印数据, 第二生成单元生成第二打印数据。 第一生成单元可以是生成交易信息的应用程序, 操作者通过键盘、 鼠标、 条码识 读器等计算机外围设备将商品名称、 数量、 价格等交易信息录入第一生成单元, 第一 生成单元根据交易信息生成第一打印数据。 第二生成单元可以是生成补充信息的应用 程序, 补充信息可以是优惠券信息、 折扣信息、 比赛信息、 广告信息等。 第二生成单
元根据补充信息生成第二打印数据, 其中, 补充信息可以由操作者实时录入第二生成 单元, 或者由主机的控制单元控制第二生成单元选择存储在主机的存储单元中的设定 信息获得。 当然, 第二生成单元也可以是生成交易信息的应用程序, 这样, 将交易信 息打印在介质的两面可以达到节省纸张的目的。 步骤 S202,主机通过第一接口和第二接口分别将第一打印数据和第二打印数据发 送给打印机。 主机将第一生成单元生成的第一打印数据通过第一接口发送给打印机, 打印机的 控制器将接收到的第一打印数据暂存在第一数据缓冲区中。 主机将第二生成单元生成 的第二打印数据通过第二接口发送给打印机, 打印机的控制器将接收到的第二打印数 据暂存在第二数据缓冲区中。 步骤 S203 , 打印机将第一打印数据打印在介质的一面, 将第二打印数据打印在介 质的另一面。 打印机的控制器将暂存在第一数据缓冲区中的第一打印数据发送给第一打印头, 第一打印头将第一打印数据打印在介质的一面; 打印机的控制器将暂存在第二数据缓 冲区中的第二打印数据发送给第二打印头, 第二打印头将第二打印数据打印在介质的 另一面。 图 5是根据本发明的打印系统控制方法的第三实施例的流程图, 如图所示, 该方 法包括: 步骤 S301 , 第一生成单元生成第一打印数据, 第二生成单元生成第二打印数据。 步骤 S302, 主机查询打印机的状态。 打印机的状态通常包括空闲状态、 正在打印状态、 打印正常结束状态及打印故障 状态。打印机的实时状态信息, 可以在打印机的 FLASH存储器或 RAM存储器中用多 个字节分组以及字节的位来表示, 不同字节以及每个字节不同的位对应指示打印机的 各种状态。 主机控制软件可以通过发送实时指令查询打印机的实时状态标志字节, 每 次向打印机发送查询指令后, 打印机即返回一次状态标志字节给主机控制软件, 因此, 主机可以得知打印机的状态。 步骤 S303 , 当打印机处于空闲状态时, 主机通过第一接口和第二接口分别将第一 打印数据和第二打印数据发送给打印机。
步骤 S304, 打印机将第一打印数据打印在介质的一面, 将第二打印数据打印在介 质的另一面。 本实施例提供的打印系统控制方法, 主机向打印机发送打印数据前需要查询打印 机的状态, 当打印机处于空闲状态时, 主机才向打印机发送数据, 从而避免打印机故 障状态时下发打印数据引起打印数据丢失或者遗漏的情况的出现。 本发明实施例还提供了一种打印机, 该打印机可以用于本发明实施例所提供的任 意一种双面打印系统中。 以下对本发明实施例所提供的打印机进行介绍。 图 6是根据本发明实施例的打印机的示意图。如图所示,第一打印头 28和第二打 印头 29分别位于介质的输送通道的两侧, 用于分别在介质 P的第一面 A1和第二面 A2形成图像。第一打印头 28和第二打印头 29可以是热敏打印头、点阵打印头或喷墨 打印头等。 打印机还包括切刀装置 31, 用于将切割打印后的介质, 使其与未使用的介 质分离。 图 7是根据本发明的打印机的打印过程的第一实施例的流程图, 该方法包括: 步骤 S501 , 查询第一接收缓冲区和第二接收缓冲区。 打印机的控制器定时查询第一接收缓冲区和第二接收缓冲区, 等待主机发送的打 印数据。 步骤 S502, 从最先存在数据的接收缓冲区中读取数据。 控制器从最先存在数据的接收缓冲区中读取数据。 比如, 控制器首先查询到第一 接收缓冲区存在数据, 就先从第一接收缓冲区中读取数据。 步骤 S503 ,将读取到的数据转换为光栅数据并存储到与该接收缓冲区对应的打印 缓冲区中。 通常, 主机安装的应用程序生成的打印数据包括对打印内容进行定义的打印内容 指令和控制打印机动作的打印控制指令, 打印机在进行数据打印时还需各种指令进行 解析, 把以打印内容指令定义的数据, 如字符、 条码等转换为光栅数据, 然后根据打 印控制指令通过打印头进行打印。 因此, 控制器将读取到的数据转换为光栅数据并存 储到与该接收缓冲区对应的打印缓冲区中。 比如, 第一接收缓冲区接收的是第一生成 单元生成的第一打印数据, 控制器将从第一接收缓冲区中读取到的第一打印数据解析 后生成第一光栅数据存储到第一打印缓冲区中, 因此, 第一打印缓冲区与第一接收缓
冲区对应; 第二接收缓冲区接收的是第二生成单元生成的第二打印数据, 控制器将从 第二接收缓冲区中读取到的第二打印数据解析后生成的第二光栅数据存储到第二打印 缓冲区中, 因此, 第二打印缓冲区与第二接收缓冲区对应。 控制器通过预先定义的各 缓冲区的地址确定各缓冲区之间的对应关系。 步骤 S504, 判断是否读取到票面结束指令, 如果是, 执行步骤 S505, 否则, 执 行步骤 S502。 判断是否读取到表示该面数据结束的票面结束指令。当打印机配置有切刀装置时, 票面结束指令可以是用于指示切刀装置切断介质的切刀指令。 当判断出该面数据结束 时, 执行步骤 S505 , 以处理另一接收缓冲区中的数据; 否则执行步骤 S502, 继续从 当前接收缓冲区中读取数据。 步骤 S505, 判断另一个接收缓冲区是否存在数据, 如果是, 执行步骤 S506, 否 则执行步骤 S510。 当完成对最先存在数据的接收缓冲区中的数据处理后, 控制器查询另一接收缓冲 区是否存在数据, 如果是, 执行步骤 S506, 从该接收缓冲区中读取数据, 否则执行步 骤 S510。 比如, 控制器先对第一接收缓冲区中的数据进行处理, 当第一接收缓冲区中 的数据处理完成后,控制器查询第二接收缓冲区中是否存在数据, 以便进行后续处理。 步骤 S506, 从另一个缓冲区中读取数据。 控制器从另一个接收缓冲区中读取数据。 比如, 控制器首先从第一接收缓冲区中 读取数据, 当第一接收缓冲区中的数据处理完成后, 控制器从第二接收缓冲区读取数 据。 步骤 S507,将读取到的数据转换为光栅数据并存储到与该接收缓冲区对应的打印 缓冲区中。 本步骤与步骤 S503相同, 此处不再复述。 步骤 S508, 判断是否接收到切刀指令或票面结束指令, 如果是, 执行步骤 S509, 否则, 执行步骤 S506。 判断是否读取到表示该面数据结束的票面结束指令。当打印机配置有切刀装置时, 票面结束指令可以是用于指示切刀装置切断介质的切刀指令。 当判断出该面数据结束
时, 执行步骤 S509, 执行打印; 否则执行步骤 S506, 继续从当前接收缓冲区中读取 数据。 步骤 S509, 在介质的两面执行打印。 当第一接收缓冲区和第二接收缓冲区的数据都完成处理分别保存在第一打印缓冲 区和第二打印缓冲区后,控制器将第一打印缓冲区的第一光栅数据发送给第一打印头, 其中, 第一打印头与介质的一面相对; 控制器将第二打印缓冲区的第二光栅数据发送 给第二打印头, 其中第二打印头与介质的另一面相对; 同时, 控制器控制介质运动, 在介质运动过程中, 第一打印头和第二打印头分别在介质的两面打印, 形成图像或字 符。 需要说明的是, 第一打印头或第二打印头执行打印过程中, 控制器将打印机的状 态信息设置为正在打印状态; 当打印正常完成后, 控制器将打印机的状态信息设置为 打印正常结束状态及打印机空闲状态。 步骤 S510, 判断等待时间是否超过时间阈值。 如果另一接收缓冲区不存在数据时,控制器判断是否等待时间是否超过时间阈值, 如果没有, 执行步骤 S511 , 等待设定时间。 否则, 执行步骤 S512。 控制器可以通过读 取保存在打印机的存储器中的等待时间与时间阈值比较判断是否等待时间是否超过时 间阈值。 步骤 S511 , 等待设定时间。 控制器开始计时, 等待设定时间, 并将等待时间保存在打印机的存储器中。 如果 存储器中已存储有等待时间, 则在原等待时间的基础上累加设定时间得到新的等待时 间保存在打印机的存储器中。 当等待设定时间后, 控制器重新查询另一接收缓冲区是 否存在数据。 步骤 S512, 按设定操作执行打印。 当另一接收缓冲区不存在数据时, 控制器控制打印机执行设定操作。 设定操作可以是控制器将存在数据的接收缓冲区对应的打印缓冲区中的光栅数据 发送给该打印缓冲区对应的打印头执行打印, 因此, 打印机仅在介质的一面打印。 比 如, 第一打印缓冲区与第一打印头对应, 第二打印缓冲区与第二打印头对应。
设定操作也可以是控制器将存在数据的接收缓冲区对应的打印缓冲区中的光栅数 据发送给该打印缓冲区对应的打印头执行打印, 同时, 将保存在 FLASH存储器中的 预定义打印数据发送到与不存在数据的接收缓冲区对应的打印头打印, 因此, 打印机 同时在介质的两面打印。 预定义数据可以是优惠券信息、 折扣信息、 比赛信息、 广告 信息等。 图 8是根据本发明的打印机的打印过程的第二实施例的流程图, 如图所示, 该方 法包括: 步骤 S601 , 判断第一接收缓冲区是否存在数据, 如果是, 执行步骤 602, 否则, 继续判断。 步骤 S602, 读取第一接收缓冲区的数据。 第一接收缓冲区接收到的是由第一生成单元生成的第一打印数据。 步骤 S603 , 将读取到的数据转换为光栅数据并存储到与第一打印缓冲区中。 控制器将第一打印数据转换成第一光栅数据存储在第一打印缓冲区中。 步骤 S604, 判断是否读取到票面结束指令, 如果是, 执行步骤 S605, 否则, 执 行步骤 S602。 步骤 S605, 记录第一接收缓冲区数据处理完成。 记录第一接收缓冲区数据处理完成的具体方法可以是在打印机的 FLASH存储器 或 RAM存储器中用一个字节的不同值表示。 当第一接收缓冲区数据处理完成后, 该 字节设置为 1, 否则, 设置为 0。 当一次打印任务完成后, 该字节清零。 步骤 S611, 判断第二接收缓冲区是否存在数据, 如果是, 执行步骤 612, 否则, 继续判断。 步骤 S612, 读取第二接收缓冲区的数据。 第二接收缓冲区接收到的是由第二生成单元生成的第二打印数据。 步骤 S613 , 将读取到的数据转换为光栅数据并存储到与第二打印缓冲区中。 控制器将第二打印数据转换成第二光栅数据存储在第二打印缓冲区中。
步骤 S614, 判断是否读取到票面结束指令, 如果是, 执行步骤 S615, 否则, 执 行步骤 S612。 步骤 S615, 记录第二接收缓冲区数据处理完成。 记录第二接收缓冲区数据处理完成的具体方法可以是在打印机的 FLASH存储器 或 RAM存储器中用一个字节的不同值表示。 当第二接收缓冲区数据处理完成后, 该 字节设置为 1, 否则, 设置为 0。 当一次打印任务完成后, 该字节清零。 步骤 S601至步骤 S605与步骤 S611至步骤 S615并行执行。 步骤 S606, 判断第一接收缓冲区和第二接收缓冲区数据处理是否完成, 如果是, 执行步骤 S607, 否则, 执行步骤 S608。 控制器通过读取表示第一接收缓冲区和第二接收缓冲区数据处理状态的字节的 值, 即可得知第一接收缓冲区和第二接收缓冲区数据处理是否完成。 步骤 S607, 执行打印。 如果第一打印缓冲区和第二打印缓冲区均存在光栅数据, 控制器将第一打印缓冲 区中的第一光栅数据发送给第一打印头, 第一打印头在介质的一面执行打印, 将第二 打印缓冲区的中的第二光栅数据发送给第二打印头, 第二打印头在介质的另一面执行 打印。 如果第一打印缓冲区和第二打印缓冲区二者中只有一个存在光栅数据, 控制器将 该光栅数据发送给其对应的打印头, 该打印头在介质的一面执行打印, 另一个打印头 不工作。 或者, 如果第一打印缓冲区和第二打印缓冲区二者中只有一个存在数据, 控制器 将该光栅数据发送给其对应的打印头, 该打印头在介质的一面执行打印; 同时, 控制 器将保存在 FLASH存储器中的预定义打印数据发送到与不存在数据的打印缓冲区对 应的打印头打印, 因此, 打印机同时在介质的两面打印。 预定义数据可以是优惠券信 息、 折扣信息、 比赛信息、 广告信息等。 步骤 S608, 判断等待时间是否超过时间阈值。 当第一接收缓冲区和第二接收缓冲区中仅有一个数据处理完成, 控制器判断是否 等待时间是否超过时间阈值, 如果没有, 执行步骤 S609, 等待设定时间。 否则, 执行
步骤 S607。控制器可以通过读取保存在打印机的存储器中的等待时间与时间阈值比较 判断是否等待时间是否超过时间阈值。 步骤 S609, 等待设定时间。 由于第一接收缓冲区和第二接收缓冲区接收到的数据量可能不同, 因此两个接收 缓冲区处理数据所需的时间可能也不同, 因此, 可以设定一等待时间, 以便使第一接 收缓冲区和第二接收缓冲区中的数据处理都完成。 从以上的描述中,可以看出,本发明能够减小主机与打印机之间的数据传输负担, 提高打印速度, 而且能够在不改变单面打印系统应用程序的基础上实现双面打印, 以 及可以实现将现有的单面打印系统方便地切换为双面打印系统。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
Claims
1. 一种双面打印系统, 其特征在于, 所述双面打印机包括主机和打印机, 其中, 所述主机包括:
第一生成单元, 用于生成打印在介质的第一面的第一打印数据; 以及 第二生成单元, 用于生成打印在介质的第二面的第二打印数据, 所述打印机包括:
控制器;
第一数据缓冲区, 经由所述控制器与所述第一生成单元连接, 用于接收并 缓存所述第一打印数据;
第二数据缓冲区, 经由所述控制器与所述第二生成单元连接, 用于接收并 缓存所述第二打印数据;
第一打印头, 经由所述控制器与所述第一数据缓冲区连接, 用于在介质的 第一面打印所述第一打印数据; 以及
第二打印头, 经由所述控制器与所述第二数据缓冲区连接, 用于在介质的 第二面打印所述第二打印数据。
2. 根据权利要求 1所述的双面打印系统, 其特征在于:
所述主机还包括:
第一接口, 与所述第一生成单元相连接; 以及
第二接口, 与所述第二生成单元相连接,
所述打印机还包括:
第三接口, 与所述主机的第一接口相连接; 以及
第四接口, 与所述主机的第二接口相连接,
其中, 所述第一打印头经由所述第三接口接收所述第一打印数据, 所述第 二打印头经由所述第四接口接收所述第二打印数据。
3. 根据权利要求 2所述的双面打印系统, 其特征在于, 所述主机还用于查询所述 打印机的状态信息, 以及在所述打印机处于空闲状态时, 通过第一接口和第二 接口将所述第一打印数据和所述第二打印数据分别发送至所述打印机的第三接 口和第四接口。
4. 根据权利要求 2所述的双面打印系统, 其特征在于, 所述控制器还用于对所述 第一打印数据进行解析处理, 得到第一光栅数据, 以及对所述第二打印数据进 行解析处理, 得到第二光栅数据,
所述第一数据缓冲区包括:
第一接收缓冲区, 经由所述控制器与所述第三接口相连接, 用于缓存所述 第一打印数据; 以及
第一打印缓冲区, 与所述控制器相连接, 用于缓存所述第一光栅数据, 所述第二数据缓冲区包括:
第二接收缓冲区, 经由所述控制器与所述第四接口相连接, 用于缓存所述 第二打印数据; 以及
第二打印缓冲区, 与所述控制器相连接, 用于缓存所述第二光栅数据。
5. 根据权利要求 4所述的双面打印系统, 其特征在于所述控制器还用于: 查询所述第一接收缓冲区和所述第二接收缓冲区, 从所述第一接收缓冲区 和所述第二接收缓冲区中最早存在数据的接收缓冲区中读取数据, 将读取到的 数据转换为光栅数据, 以及将所述光栅数据存储至相应的打印缓冲区中。
6. 根据权利要求 5述的双面打印系统, 其特征在于所述打印机的控制器还用于: 在所述最早存在数据的接收缓冲区为第一接收缓冲区时, 判断所述第二接收缓 冲区中是否存在数据, 以及在预设时间内所述第二接收缓冲区中均不存在数据 时, 按照预设的操作执行打印。
7. 根据权利要求 6所述的双面打印系统, 其特征在于所述打印机的控制器还用于 在预设时间内所述第二接收缓冲区中不存在数据时控制所述第二打印头在介质 的第二面上打印预设数据。
8. 根据权利要求 4所述的双面打印系统, 其特征在于所述打印机的控制器还用于 分别判断所述第一接收缓冲区和所述第二接收缓冲区中的打印数据是否完成解 析处理, 以及在所述第一接收缓冲区和所述第二接收缓冲区中的打印数据均完 成解析处理后, 执行打印操作。
9. 根据权利要求 1所述的双面打印系统, 其特征在于, 所述主机和所述打印机之 间通过第五接口相连接, 其中, 所述第五接口用于在所述主机和所述打印机之 间建立第一数据传输通道和第二数据传输通道, 所述第一数据传输通道用于传 输所述第一打印数据, 所述第二数据传输通道用于传输所述第二打印数据。
10. 一种双面打印系统的控制方法, 其特征在于包括:
利用第一生成单元生成用于打印在介质的第一面的第一打印数据, 利用第 二生成单元生成用于打印在介质的第二面的第二打印数据;
将所述第一打印数据发送至第一打印头, 将所述第二打印数据发送至第二 打印头; 以及
利用所述第一打印头和所述第二打印头分别在介质的第一面和介质的第二 面打印所述第一打印数据和所述第二打印数据。
11. 根据权利要求 10所述的双面打印系统的控制方法,其特征在于所述第一打印数 据和所述第二打印数据通过相同或不同的接口分别发送至所述第一打印头和所 述第二打印头。
12. 根据权利要求 10所述的双面打印系统的控制方法,其特征在于:利用不同的接 收缓冲区分别缓存所述第一打印数据和所述第二打印数据, 以及利用不同的打 印缓冲区分别缓存控制器对所述第一打印数据和所述第二打印数据解析处理之 后的第一光栅数据和第二光栅数据。
13. 一种打印机, 其特征在于, 所述打印机为用于权利要求 1至 9中任一项所述双 面打印系统的打印机。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/002,232 US20140043624A1 (en) | 2011-03-01 | 2012-02-27 | Double-sided printing system and control method thereof |
EP12752622.6A EP2682857A4 (en) | 2011-03-01 | 2012-02-27 | DOUBLE-SIDED PRINTING SYSTEM AND ITS CONTROL METHOD |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110049565.5A CN102103476B (zh) | 2011-03-01 | 2011-03-01 | 双面打印系统及其控制方法 |
CN201110049565.5 | 2011-03-01 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012116620A1 true WO2012116620A1 (zh) | 2012-09-07 |
Family
ID=44156281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/071677 WO2012116620A1 (zh) | 2011-03-01 | 2012-02-27 | 双面打印系统及其控制方法 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20140043624A1 (zh) |
EP (1) | EP2682857A4 (zh) |
CN (1) | CN102103476B (zh) |
WO (1) | WO2012116620A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019019217A1 (zh) * | 2017-07-28 | 2019-01-31 | 广州市中崎商业机器股份有限公司 | 基于双面打印机的智能广告系统及方法 |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103476B (zh) * | 2011-03-01 | 2015-12-16 | 山东新北洋信息技术股份有限公司 | 双面打印系统及其控制方法 |
CN102886990B (zh) * | 2011-07-22 | 2015-04-01 | 山东新北洋信息技术股份有限公司 | 双面打印机及其控制方法 |
CN103129161B (zh) * | 2011-12-05 | 2015-06-03 | 北大方正集团有限公司 | 一种双面印刷方法及装置 |
CN103777908B (zh) * | 2012-10-25 | 2016-10-05 | 山东新北洋信息技术股份有限公司 | 双面打印控制方法及装置和双面打印机 |
CN103802496B (zh) * | 2012-11-12 | 2016-01-13 | 北大方正集团有限公司 | 一种调整数码印刷系统走纸速度的方法及装置 |
CN103660600B (zh) * | 2013-12-05 | 2015-12-02 | 北京亿赫伟信科技发展有限公司 | 热转印标识打印机 |
JP6424433B2 (ja) * | 2014-01-29 | 2018-11-21 | 株式会社リコー | 情報処理システム、情報処理方法及びプログラム |
EP3114557B1 (en) * | 2014-03-07 | 2021-06-30 | Canon Production Printing Netherlands B.V. | Method for application in a cut sheet printing system |
JP6451251B2 (ja) * | 2014-11-20 | 2019-01-16 | セイコーエプソン株式会社 | 印刷装置、及び、印刷システム |
CN109311332B (zh) * | 2016-06-22 | 2021-01-22 | 惠普发展公司,有限责任合伙企业 | 浓度调制的自动双面打印 |
JP6702211B2 (ja) * | 2017-01-30 | 2020-05-27 | 京セラドキュメントソリューションズ株式会社 | 画像形成システム及び画像形成装置 |
CN111708288B (zh) * | 2020-05-18 | 2021-11-26 | 慧灵科技(深圳)有限公司 | 数据处理的方法、装置、电子设备及存储介质 |
CN115320265A (zh) * | 2022-07-18 | 2022-11-11 | 北京博源恒芯科技股份有限公司 | 双面异步打印控制方法、装置及打印机 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08318643A (ja) * | 1995-05-26 | 1996-12-03 | Hitachi Microcomput Syst Ltd | 印刷装置 |
CN1739974A (zh) * | 2004-08-27 | 2006-03-01 | 精工爱普生株式会社 | 打印机和打印机控制方法 |
CN1868757A (zh) * | 2005-05-23 | 2006-11-29 | 国际商业机器公司 | 管理变速打印机的打印速度的系统、方法和介质 |
CN1892571A (zh) | 2005-06-28 | 2007-01-10 | 星精密株式会社 | 打印系统 |
US20080297583A1 (en) * | 2007-06-04 | 2008-12-04 | Dale Lyons | Two-sided thermal print command |
JP2009148911A (ja) * | 2007-12-18 | 2009-07-09 | Seiko Epson Corp | 印刷装置、印刷制御方法、ホストコンピュータおよび印刷装置制御用プログラム |
CN101663169A (zh) * | 2006-12-22 | 2010-03-03 | Ncr公司 | 两面热打印感应 |
CN102103476A (zh) * | 2011-03-01 | 2011-06-22 | 山东新北洋信息技术股份有限公司 | 双面打印系统及其控制方法 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100576690B1 (ko) * | 1998-12-16 | 2006-05-03 | 실버브룩 리서치 피티와이 리미티드 | 제한된 액세스를 갖는 시스템내로의 통합을 위한 프린터 |
JP2005193559A (ja) * | 2004-01-08 | 2005-07-21 | Oki Data Corp | 画像形成装置 |
US20090066996A1 (en) * | 2005-05-17 | 2009-03-12 | Seiko Epson Corporation | Printing System, POS System, Connection Device, Control Method of Printing System, and Program Therefor |
JP4529808B2 (ja) * | 2005-06-10 | 2010-08-25 | 富士ゼロックス株式会社 | 画像生成装置、画像形成装置、情報処理装置、印刷媒体、画像生成方法、及びプログラム |
JP5512133B2 (ja) * | 2006-03-03 | 2014-06-04 | カタリナ マーケティング コーポレーション | 印刷およびハイライト化を含むposネットワーク |
US7782349B2 (en) * | 2006-05-31 | 2010-08-24 | Toshiba Tec Kabushiki Kaisha | Thermal printer and method of controlling the same |
EP2026615B1 (en) * | 2007-07-30 | 2014-10-29 | Ricoh Company, Ltd. | Information processing apparatus, information processing system, and program product |
US8645210B2 (en) * | 2010-05-17 | 2014-02-04 | Xerox Corporation | Method of providing targeted communications to a user of a printing system |
US8276808B2 (en) * | 2010-11-29 | 2012-10-02 | Ncr Corporation | Methods of two-sided printing |
-
2011
- 2011-03-01 CN CN201110049565.5A patent/CN102103476B/zh active Active
-
2012
- 2012-02-27 EP EP12752622.6A patent/EP2682857A4/en not_active Withdrawn
- 2012-02-27 WO PCT/CN2012/071677 patent/WO2012116620A1/zh active Application Filing
- 2012-02-27 US US14/002,232 patent/US20140043624A1/en not_active Abandoned
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08318643A (ja) * | 1995-05-26 | 1996-12-03 | Hitachi Microcomput Syst Ltd | 印刷装置 |
CN1739974A (zh) * | 2004-08-27 | 2006-03-01 | 精工爱普生株式会社 | 打印机和打印机控制方法 |
CN1868757A (zh) * | 2005-05-23 | 2006-11-29 | 国际商业机器公司 | 管理变速打印机的打印速度的系统、方法和介质 |
CN1892571A (zh) | 2005-06-28 | 2007-01-10 | 星精密株式会社 | 打印系统 |
CN101663169A (zh) * | 2006-12-22 | 2010-03-03 | Ncr公司 | 两面热打印感应 |
US20080297583A1 (en) * | 2007-06-04 | 2008-12-04 | Dale Lyons | Two-sided thermal print command |
JP2009148911A (ja) * | 2007-12-18 | 2009-07-09 | Seiko Epson Corp | 印刷装置、印刷制御方法、ホストコンピュータおよび印刷装置制御用プログラム |
CN102103476A (zh) * | 2011-03-01 | 2011-06-22 | 山东新北洋信息技术股份有限公司 | 双面打印系统及其控制方法 |
Non-Patent Citations (1)
Title |
---|
See also references of EP2682857A4 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019019217A1 (zh) * | 2017-07-28 | 2019-01-31 | 广州市中崎商业机器股份有限公司 | 基于双面打印机的智能广告系统及方法 |
US10803712B2 (en) | 2017-07-28 | 2020-10-13 | Guangzhou Zonerich Business Machine Co., Ltd. | Intelligent advertisement system and method based on duplex printer |
Also Published As
Publication number | Publication date |
---|---|
EP2682857A4 (en) | 2014-10-15 |
CN102103476B (zh) | 2015-12-16 |
US20140043624A1 (en) | 2014-02-13 |
EP2682857A1 (en) | 2014-01-08 |
CN102103476A (zh) | 2011-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012116620A1 (zh) | 双面打印系统及其控制方法 | |
TW200424919A (en) | Apparatus, method and program product for controlling printing | |
US9001171B2 (en) | Double-sided receipt printing method and double-sided receipt printer | |
CN101081575B (zh) | 热敏印刷机及其控制方法 | |
JP5929431B2 (ja) | 画像記録装置、画像記録装置の制御方法、及び制御プログラム | |
US8705101B2 (en) | Printing system and printing device having two information transmission paths | |
EP2634729A1 (en) | Method and device for print control, and printing device | |
US10046577B2 (en) | Printing device, printing system, and control method of a printing device | |
US8587804B2 (en) | Printing device and control method for a printing device | |
US8553271B2 (en) | Printing device and control method for a printing device for distributing print data | |
US8253961B2 (en) | Printer and printer control method | |
JP6347161B2 (ja) | 印刷制御装置、印刷制御装置の制御方法および記録媒体 | |
JP4232532B2 (ja) | 印刷ジョブ分配システム、印刷ジョブ分配方法、サーバ装置、印刷装置、及びプログラム | |
CN102886990A (zh) | 双面打印机及其控制方法 | |
JP2002244821A (ja) | プリントサーバを利用した印刷方法、プリントサーバ、プログラム、及び、記録媒体 | |
JP2001191573A (ja) | サーマルプリンタ | |
JP5786394B2 (ja) | 印刷装置、印刷システム、印刷方法およびプログラム | |
JP2009137235A (ja) | 印刷装置 | |
JP2017151743A (ja) | 印刷制御装置、印刷制御装置の制御方法、プログラム | |
JP2012196886A (ja) | 印刷装置、印刷装置の制御方法、およびプログラム | |
CN100546834C (zh) | 热敏印刷机及其控制方法 | |
US20180067709A1 (en) | Control device, image forming system, and non-transitory recording medium | |
JP2004216693A (ja) | 印刷装置 | |
JP2000322210A (ja) | プリンタ制御方法 | |
JP2000355143A (ja) | インクジェット記録装置及び画像形成装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12752622 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 14002232 Country of ref document: US |