CN103279312A - Method for implanting information into printing data - Google Patents

Method for implanting information into printing data Download PDF

Info

Publication number
CN103279312A
CN103279312A CN2013102298133A CN201310229813A CN103279312A CN 103279312 A CN103279312 A CN 103279312A CN 2013102298133 A CN2013102298133 A CN 2013102298133A CN 201310229813 A CN201310229813 A CN 201310229813A CN 103279312 A CN103279312 A CN 103279312A
Authority
CN
China
Prior art keywords
information
print data
mcu
data
printer
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
CN2013102298133A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2013102298133A priority Critical patent/CN103279312A/en
Publication of CN103279312A publication Critical patent/CN103279312A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention provides a method for implanting information into printing data. The method needs to be provided with an MCU (microprogrammed control unit), an RAM (random access memory) and a nonvolatile storage device and includes firstly, monitoring a printing peripheral interface of an upper computer in real time through the MCU; secondly, when the printing data is issued by the upper machine and monitored by the MCU, storing the print data into the buffer area inside the RAM; thirdly, when the printing data inside the buffer area reaches a complete data packet, reading implantation information from the nonvolatile storage device; fourthly, after the MCU packages the implantation information and the complete data packet of the upper computer, sending the packaged data to a printer through the printing peripheral interface of the printer; and lastly, printing the received packaged data through the printer. When applied to the field of receipt advertising, the method for implanting the information into the printing data can save the cost of back color printing, achieve small-quantity retail and be compatible with printers and printing paper of different specifications. Besides, the method for implanting the information into the printing data is not affected by software systems, so the compatibility is improved, the software development cost is saved and the large-scale network management can be achieved.

Description

A kind of method of in print data, implanting information
Technical field
The present invention relates to a kind of Design of Digital Circuit, embedded system technology field, relate in particular to a kind of method of in print data, implanting information.
Background technology
Billing information advertisement on the market at present mainly contains two kinds of patterns: preprint brush and the software control formula.
Preprint brush---refer to by batch color printing, in advance in the advertisement of receipt paper roll back up.It is as follows to preprint brush shortcoming:
The input threshold is higher, owing to adopt back up mode in advance, must just can send to press more than several thousand volumes at every turn, about 10 yuan of every volume printing cost, namely throwing in an advertisement needs 30,000 yuan of (3000 volume meter) advertisements can only be imprinted on the receipt back side at least, the user turns a blind eye to substantially, and to throw in the place single, only limits to the printer that the minority supermarket can not compatible different paper specification at present.
The software control formula---refer to by the cash register software control, generate advertisement automatically at every receipt afterbody.Its shortcoming is as follows: restricted by various cash register systems and the software compatibility; can only use in some inside, supermarkets, the cost of development height, medium and small supermarket and conventional store can't be born; can't form networked scale specialized operation, only have the big supermarket of only a few to manage voluntarily.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method of implanting information in print data, and it has saved the color printing cost, can realize retail in a small amount, can compatible different size printer and printer paper.
The present invention is achieved in that
Scheme one:
A kind of method of in print data, implanting information, described method need provide a MCU, a random access memory and a non-volatile memory device, and this method specifically comprises the steps:
Step 1, by MCU the printing Peripheral Interface of one host computer is monitored in real time;
Step 2, issue print data when host computer, when MCU has monitored print data, print data is stored in the random access memory in the buffer area;
Step 3, after the print data in the buffer area reaches complete packet, from described non-volatile memory device, read the information that will implant;
After the information that step 4, MCU will implant and the complete packet of host computer were packed, the printing Peripheral Interface by printer sent to printer;
Step 5, printer interface receive that the data of packing print.
Scheme two:
A kind of method of in print data, implanting information, described method need provide a MCU, a random access memory and a non-volatile memory device, and this method specifically comprises the steps:
Step 10, by MCU the printing Peripheral Interface of one host computer is monitored in real time;
Step 20, issue print data when host computer, when MCU has monitored print data, print data is stored in the random access memory in the buffer area;
Step 30, after the print data in the buffer area reaches complete packet, the printing Peripheral Interface of packet by printer sent to printer prints;
Step 40, when MCU monitor described packet print finish after, from described non-volatile memory device, read the information that will implant;
Step 50, the information that will the implant printing Peripheral Interface by printer sends to printer and prints.
The present invention has following advantage: the present invention adopts microcontroller as handling core, and the mode of repacking again by the intercepting print data stream realizes the implantation of billing information.At first the carrying out of the printing Peripheral Interface of the host computer of MCU monitored in real time, when having monitored data, data are carried out buffer memory, after receiving complete packet, in non-volatile memory device, read information to be implanted, this information and the host computer data that receive are packed together, send to printer by another printing Peripheral Interface that links to each other with printer, print list by printer.The present invention and traditional brush contrast, advantage: saved the color printing cost preprinted; Can realize retail in a small amount; Advertisement improves view rate in the front; Can compatible different size printer and printer paper.The present invention and the contrast of traditional software control formula, advantage: not influenced by software systems, compatibility is improved; Saved software development cost; Can realize the large scale network operation.
Description of drawings
Fig. 1 is frame principles figure of the present invention.
Fig. 2 is the present invention program one method flow synoptic diagram.
Fig. 3 is the present invention program two method flow synoptic diagram.
Embodiment
See also illustrated in figures 1 and 2ly, a preferable scheme of the present invention is: a kind of method of in print data, implanting information, and described method need provide a MCU, a random access memory and a non-volatile memory device, and this method specifically comprises the steps:
Step 1, at first be each hardware of first initialization, by MCU the printing Peripheral Interface of one host computer monitored in real time; This described host computer is PC or cashier's machine;
Step 2, issue print data when host computer, when MCU has monitored print data, print data is stored in the random access memory in the buffer area;
Step 3, after the print data in the buffer area reaches complete packet, from described non-volatile memory device, read the information that will implant;
After the information that step 4, MCU will implant and the complete packet of host computer were packed, the printing Peripheral Interface by printer sent to printer;
Step 5, printer interface receive that the data of packing print; Above-mentioned printing Peripheral Interface comprises: wave points such as parallel port, serial ports, USB, Ethernet interface and bluetooth; This print data is in the present invention based on the print data of bill.
In the present invention; the judgment mode that described print data reaches complete packet is: a time threshold value is set in MCU; after having monitored print data, MCU begins data are saved in buffer zone; begin to carry out timing by a timer after host computer stops to send data when monitoring; after the timing time of timer reaches described time threshold; the buffer zone of random access memory suspends buffer memory, and all print datas that then receive in this time threshold are complete packet.
Wherein, the described information that will implant comprises: advertising message, commonweal information, notice advertisement information, financing information or popular science knowledge information.
Here need to prove: print data can be the data that are presented at the print result on document or the document.
As shown in Figure 3, another program of the present invention: a kind of method of in print data, implanting information, described method need provide a MCU, a random access memory and a non-volatile memory device, and this method specifically comprises the steps:
Step 10, at first be each hardware of first initialization, by MCU the printing Peripheral Interface of one host computer monitored in real time; This described host computer is PC or cashier's machine;
Step 20, issue print data when host computer, when MCU has monitored print data, print data is stored in the random access memory in the buffer area;
Step 30, after the print data in the buffer area reaches complete packet, the printing Peripheral Interface of packet by printer sent to printer prints;
Step 40, when MCU monitor described packet print finish after, from described non-volatile memory device, read the information that will implant;
Step 50, the information that will the implant printing Peripheral Interface by printer sends to printer and prints; Above-mentioned printing Peripheral Interface comprises: wave points such as parallel port, serial ports, USB or Ethernet interface and bluetooth;
Wherein, the judgment mode that described print data reaches complete packet is: a time threshold value is set in MCU; after having monitored print data, MCU begins data are saved in buffer zone; begin to carry out timing by a timer after host computer stops to send data when monitoring; after the timing time of timer reaches described time threshold; the buffer zone of random access memory suspends buffer memory, and all print datas that then receive in this time threshold are complete packet.The described information that will implant comprises: advertising message, commonweal information, notice advertisement information, financing information or popular science knowledge information.
In a word, the present invention adopts microcontroller as handling core, the mode of repacking again by the intercepting print data stream or the implantation that realizes billing information in data stream afterbody adding information.It has saved the color printing cost, can realize retail in a small amount, the compatible different size printer of energy and printer paper; In addition, the present invention is not influenced by software systems, and compatibility is improved, and has saved software development cost, can realize the large scale network operation.
The above only is preferred embodiment of the present invention, and all equalizations of doing according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.

Claims (8)

1. method of implanting information in print data, it is characterized in that: described method need provide a MCU, a random access memory and a non-volatile memory device, and this method specifically comprises the steps:
Step 1, by MCU the printing Peripheral Interface of one host computer is monitored in real time;
Step 2, issue print data when host computer, when MCU has monitored print data, print data is stored in the random access memory in the buffer area;
Step 3, after the print data in the buffer area reaches complete packet, from described non-volatile memory device, read the information that will implant;
After the information that step 4, MCU will implant and the complete packet of host computer were packed, the printing Peripheral Interface by printer sent to printer;
Step 5, printer interface receive that the data of packing print.
2. a kind of method of implanting information in print data according to claim 1, it is characterized in that: described host computer is PC or cashier's machine.
3. a kind of method of in print data, implanting information according to claim 1; it is characterized in that: the judgment mode that described print data reaches complete packet is: a time threshold value is set in MCU; after having monitored print data, MCU begins data are saved in buffer zone; begin to carry out timing by a timer after host computer stops to send data when monitoring; after the timing time of timer reaches described time threshold; the buffer zone of random access memory suspends buffer memory, and all print datas that then receive in this time threshold are complete packet.
4. a kind of method of implanting information in print data according to claim 1, it is characterized in that: the described information that will implant comprises: advertising message, commonweal information, notice advertisement information, financing information or popular science knowledge information.
5. method of implanting information in print data, it is characterized in that: described method need provide a MCU, a random access memory and a non-volatile memory device, and this method specifically comprises the steps:
Step 10, by MCU the printing Peripheral Interface of one host computer is monitored in real time;
Step 20, issue print data when host computer, when MCU has monitored print data, print data is stored in the random access memory in the buffer area;
Step 30, after the print data in the buffer area reaches complete packet, the printing Peripheral Interface of packet by printer sent to printer prints;
Step 40, when MCU monitor described packet print finish after, from described non-volatile memory device, read the information that will implant;
Step 50, the information that will the implant printing Peripheral Interface by printer sends to printer and prints.
6. a kind of method of implanting information in print data according to claim 5, it is characterized in that: described host computer is PC or cashier's machine.
7. a kind of method of in print data, implanting information according to claim 5; it is characterized in that: the judgment mode that described print data reaches complete packet is: a time threshold value is set in MCU; after having monitored print data, MCU begins data are saved in buffer zone; begin to carry out timing by a timer after host computer stops to send data when monitoring; after the timing time of timer reaches described time threshold; the buffer zone of random access memory suspends buffer memory, and all print datas that then receive in this time threshold are complete packet.
8. a kind of method of implanting information in print data according to claim 5, it is characterized in that: the described information that will implant comprises: advertising message, commonweal information, notice advertisement information, financing information or popular science knowledge information.
CN2013102298133A 2013-06-09 2013-06-09 Method for implanting information into printing data Pending CN103279312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102298133A CN103279312A (en) 2013-06-09 2013-06-09 Method for implanting information into printing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102298133A CN103279312A (en) 2013-06-09 2013-06-09 Method for implanting information into printing data

Publications (1)

Publication Number Publication Date
CN103279312A true CN103279312A (en) 2013-09-04

Family

ID=49061857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102298133A Pending CN103279312A (en) 2013-06-09 2013-06-09 Method for implanting information into printing data

Country Status (1)

Country Link
CN (1) CN103279312A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462197A (en) * 2014-10-31 2015-03-25 王辉堂 Method for obtaining information from print data
CN105005889A (en) * 2015-07-03 2015-10-28 杭州玄日网络科技有限公司 Method for acquiring cashing data in rapid and low-cost way
CN110517419A (en) * 2019-08-07 2019-11-29 北京数衍科技有限公司 Interception serial ports cash register print data and the method and system for pursuing and attacking additional information
CN110533848A (en) * 2019-08-07 2019-12-03 北京数衍科技有限公司 Interception parallel port cash register print data and the method and system for pursuing and attacking additional information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050062906A (en) * 2003-12-19 2005-06-28 강선엽 Portable printer
CN101882059A (en) * 2009-05-05 2010-11-10 山东新北洋信息技术股份有限公司 Method and device for controlling and processing watermark printing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050062906A (en) * 2003-12-19 2005-06-28 강선엽 Portable printer
CN101882059A (en) * 2009-05-05 2010-11-10 山东新北洋信息技术股份有限公司 Method and device for controlling and processing watermark printing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵庆苓: "基于ARM的微型针式打印系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 1, 15 January 2013 (2013-01-15) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462197A (en) * 2014-10-31 2015-03-25 王辉堂 Method for obtaining information from print data
CN105005889A (en) * 2015-07-03 2015-10-28 杭州玄日网络科技有限公司 Method for acquiring cashing data in rapid and low-cost way
CN110517419A (en) * 2019-08-07 2019-11-29 北京数衍科技有限公司 Interception serial ports cash register print data and the method and system for pursuing and attacking additional information
CN110533848A (en) * 2019-08-07 2019-12-03 北京数衍科技有限公司 Interception parallel port cash register print data and the method and system for pursuing and attacking additional information

Similar Documents

Publication Publication Date Title
CN205981415U (en) Intelligence electronic scale with fruit vegetables recognition function
CN103279312A (en) Method for implanting information into printing data
CN105321272B (en) A kind of method and device that dynamic two-dimension code is printed according to cash register transaction data
CN110045915A (en) Refreshed using the back-end data of the system timestamp in storage device
TW533718B (en) Internal communication protocol for data switching equipment
WO2004049316A3 (en) System and method of creating, aggregating, and transferring environmental emission reductions
EP2447825A3 (en) Information processing apparatus, print data processing method therein and storage medium storing program thereof
CN103150278A (en) Submission method of descriptor of network interface card (NIC) based on mixing of PIO (process input output) and DMA (direct memory access)
CN106610789A (en) Data processing method, device and system
CN102262847A (en) Embedded light-emitting diode (LED) display control system and method for controlling same
CN203713264U (en) Portable temperature-sensitive label printer
CN107415489A (en) A kind of method and its printer of expanding printing content
CN104361505A (en) Method for automatically matching electronic bills from electronic bill card bag
AU2015415125A1 (en) XML file condensing
CN203179158U (en) Self-service type printing service terminal used in campus
CN203118128U (en) Card swiping type invoice printing integrated machine
CN102486719B (en) Intelligent memory card and transaction-writing method thereof
CN110481174A (en) Print control program, device, printer and computer readable storage medium
CN106507416A (en) Data pack transmission method and device
CN102592379A (en) Invoice information automatic input system and input method
CN201122314Y (en) Network tax controller device
CN102658733A (en) Method and device for increasing printing speed by using single chip serial FLASH
CN104850366A (en) Printing task generating and controlling system for printer
CN104376646B (en) Novel gas filling system and control method
CN202412933U (en) Printer with magnetic strip reading-writing function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130904