CN114506159A - Two-color printing driving method, thermal printer, and computer-readable storage medium - Google Patents

Two-color printing driving method, thermal printer, and computer-readable storage medium Download PDF

Info

Publication number
CN114506159A
CN114506159A CN202111629396.2A CN202111629396A CN114506159A CN 114506159 A CN114506159 A CN 114506159A CN 202111629396 A CN202111629396 A CN 202111629396A CN 114506159 A CN114506159 A CN 114506159A
Authority
CN
China
Prior art keywords
concentration
frame
driving method
data
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111629396.2A
Other languages
Chinese (zh)
Other versions
CN114506159B (en
Inventor
丁鹏
李菁
林健辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baiyin Automation Equipment Co ltd
Original Assignee
Zhuhai Smarnet Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Smarnet Equipment Co ltd filed Critical Zhuhai Smarnet Equipment Co ltd
Priority to CN202111629396.2A priority Critical patent/CN114506159B/en
Publication of CN114506159A publication Critical patent/CN114506159A/en
Application granted granted Critical
Publication of CN114506159B publication Critical patent/CN114506159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • B41J2/32Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present invention provides a two-color printing driving method, a thermal printer and a computer-readable storage medium, including: receiving print data; converting the printing data to obtain image data; obtaining multi-frame driving pulse data of each pixel point in the current printing line according to the concentration value of each pixel point of the current printing line of the image data and the driving pulse sequence corresponding to the concentration value; the same-frame driving pulse data of each pixel point in the current printing line form a frame-by-frame heating signal, and the frame-by-frame heating signals are sequentially sent to the corresponding line heating elements according to the sequence. By controlling the multi-section heating time of the heating body, the printing effect is gradually changed from light red to black along with the increasing of the heating time of each point, so that images with a plurality of concentration levels from light red to black are printed, and effective double-color printing control is realized.

Description

Two-color printing driving method, thermal printer, and computer-readable storage medium
Technical Field
The present invention relates to the field of thermal printing, and in particular, to a two-color printing driving method, a thermal printer, and a computer-readable storage medium.
Background
Along with the popularization and application of thermal printer in each industry, not only all use the thermal printing structure at the automatic cash dispenser of bank, receive silver terminal, takeaway terminal, food and beverage terminal and electricity merchant's delivery terminal, especially print the rapid growth to food and beverage, electricity merchant, express delivery trade, higher demand has been proposed to printing content variety, general heat sensitivity is black and white printing, and in order to realize that colour is printed, polychrome printing often need adopt the inkjet to print, and ink horn consumptive material cost is higher, and the printing speed receives the restriction of formation of image principle, can't print fast.
Disclosure of Invention
The first purpose of the invention is to provide a driving method for realizing two-color printing on the two-color thermal paper.
A second object of the present invention is to provide a thermal printer that realizes the above-described two-color printing driving method.
A third object of the present invention is to provide a computer-readable storage medium storing a two-color print driving method.
In order to achieve the first object of the present invention, the present invention provides a two-color printing driving method including: receiving print data; converting the printing data to obtain image data; obtaining multi-frame driving pulse data of each pixel point in the current printing line according to the concentration value of each pixel point of the current printing line of the image data and the driving pulse sequence corresponding to the concentration value; the same-frame driving pulse data of each pixel point in the current printing line form a frame-by-frame heating signal, and the frame-by-frame heating signals are sequentially sent to the corresponding line heating elements according to the sequence.
Further, the concentration value is divided into 10 grades, and the concentration value comprises a concentration 1, a concentration 2 … and a concentration 10 from shallow to deep; the driving pulse sequence corresponding to the concentration value is as follows: concentration 1: 1000000000; degree 2: 1100000000; concentration 3: 1110000000, respectively; concentration 4: 1111000000, respectively; concentration 5: 1111100000, respectively; concentration 6: 1111110000, respectively; concentration 7: 1111111000, respectively; concentration 8: 1111111100, respectively; concentration 9: 1111111110, respectively; concentration 10: 1111111111.
further, the print data includes color information including red information and black information.
In order to achieve the second object of the present invention, the present invention provides a thermal printer including a processor, the thermal printer being configured to implement the steps of the two-color print driving method as described above when executing a computer program stored in a memory.
In order to achieve the third object of the present invention, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the two-color print driving method as in the above-described aspect.
The invention has the advantages that when the heating element is driven to generate heat according to the image data of red and black, 10 density levels from light red to black need to be distinguished when each point of the current line is printed, the heating element is driven through the multi-frame heating signal of the current line, the multi-section heating time of the heating element is effectively controlled, the printing effect is gradually changed from light red to black along with the increasing of the heating time of each point, and therefore, images of a plurality of density levels from light red to black are printed, and effective two-color printing control is realized.
Drawings
Fig. 1 is a flowchart of an embodiment of the present two-color print driving method.
Fig. 2 is a diagram showing the effect of printing in two colors of red and black according to the embodiment of the two-color printing driving method.
Fig. 3 is a truth table of a driving pulse sequence corresponding to a density value in the present two-color printing driving method embodiment.
Fig. 4 is a timing chart of the first 5-frame-by-frame heating signal in the present two-color printing driving method embodiment.
Fig. 5 is a timing chart of the latter 5-frame-by-frame heating signal in the present two-color printing driving method embodiment.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
Referring to fig. 1 to 5, the two-color printing driving method of the present disclosure is applied to a thermal printer, and mainly performs two-color printing on additive thermal paper, where the color is a first color when the applied heat is low, and the color is a second color when the applied heat is high, and for example, red and black thermal paper is used.
When the two-color print driving method is executed, step S11 is first executed to receive print data including font information, pattern information, and color information, for which color information includes red information, black information, gradation information, and the like. In the editing stage, the color of the font or the pattern can be set, namely black, red and the shade degree thereof can be set.
Subsequently, step S12 is executed, image data is obtained by converting the print data, the image data is a dot diagram obtained by converting the print data, each line has 11 pixels as an example, the present application is described as follows, according to a density value of each pixel of a current print line of the image data and a driving pulse sequence (as shown in fig. 3) corresponding to the density value, that is, the density value is divided into 10 levels, which include, from light to deep, density 1, density 2 … to density 10, the corresponding density value is heated and driven by a 10-frame heating signal, and the driving pulse sequence corresponding to the density value is as follows:
concentration 1: 1000000000;
concentration 2: 1100000000;
concentration 3: 1110000000, respectively;
concentration 4: 1111000000, respectively;
concentration 5: 1111100000, respectively;
concentration 6: 1111110000, respectively;
concentration 7: 1111111000, respectively;
concentration 8: 1111111100, respectively;
concentration 9: 1111111110, respectively;
concentration 10: 1111111111.
and then obtaining multi-frame driving pulse data of each pixel point in the current printing line.
Then step S13 is executed, the same-frame driving pulse data of each pixel point in the current printing line forms a frame-by-frame heating signal, taking fig. 2 as an example of a target printing pattern, the pattern has 11 pixel points, starting from left to right, the first and second pixel points are black with the density of 10, the hexadecimal color code thereof is #231915, the tenth pixel point is light red with the density of 2, the hexadecimal color code thereof is # ef8575, the eleventh pixel point is light red with the density of 1, the hexadecimal color code thereof is # f3bbb2, the frame-by-frame heating signal is heated by a 10-frame heating on-off signal, so that when a row of heating elements are driven, the 10-frame-by-frame heating signals are respectively the 1-frame data1 "11111111111111111", the 2-frame data2 "11111111110", the 3-frame 3 "11111111111111111111111111100", the 4-frame data4 "11111111000", the 5-frame data5 "11111110000", the 6-frame data6 "11100000000", the 7378 "11100000000",23 ", the 10 th frame data10 "11000000000" takes the drive of the 5 th frame data5 "11111110000" as an example, and from left to right, the 1 st to 7 th heat generating elements generate heat by being driven by "1", and the 8 th to 11 th heat generating elements do not generate heat by being driven by "0".
And finally, executing a step 14, and sequentially sending frame-by-frame heating signals to the heating elements in the corresponding row according to the sequence, referring to fig. 4 and 5, wherein EN is a thermal printing head enabling signal, CLK is fully called CLOCK input signal, DAT is fully called DATA image DATA input signal, LAT is fully called LATCH register LATCH signal, and STB is fully called STROBE frame-by-frame heating signal. The printer main control chip sends an EN enabling signal to enable the thermal printing head, then each CLK clock signal sends one bit of DAT image data until one frame of image data of the current line is sent, the LAT register latches the image data at a low level, and finally, a heating signal of the STB heating body is sent to the thermal printing head, and the low level is effective.
Finally, as shown in fig. 2, the leftmost two dots are heated 10 times, the density is 10 levels, and the dots are black, and the rightmost one dot is heated only once, the density is 1 level, and the dots are light red. Of course, in addition to the embodiment, other additive color type thermal paper may be adopted, and the driving method of the present embodiment may be adopted for both blue-black and yellow-black printing. And in the actual application of the thermal sheet, the 58-type thermal sheet is generally used, the width of a printing line is 48MM, and 8 heating elements are generally arranged in 1MM, so that a plurality of heating points are arranged in one line during actual printing, and the heating elements in the same line are driven simultaneously during driving. And the driving pulse sequence corresponding to the concentration can be various, or different frame numbers are adopted for driving and heating.
The thermal printer includes a processor for implementing the steps of the two-color print driving method according to the above-described aspect when executing a computer program stored in a memory.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the two-color print driving method according to the above-described aspect.

Claims (5)

1. A two-color printing driving method is characterized by comprising:
receiving print data;
converting the printing data to obtain image data;
obtaining multi-frame driving pulse data of each pixel point in the current printing line according to the concentration value of each pixel point of the current printing line of the image data and the driving pulse sequence corresponding to the concentration value;
the same frame driving pulse data of each pixel point in the current printing line form a frame-by-frame heating signal,
and sequentially sending heating signals frame by frame to the corresponding row heating elements according to the sequence.
2. The two-color print driving method according to claim 1, characterized in that:
the concentration values are divided into 10 grades, which comprise a concentration 1, a concentration 2 … to a concentration 10 from shallow to deep;
the driving pulse sequence corresponding to the concentration value is as follows:
concentration 1: 1000000000;
concentration 2: 1100000000;
concentration 3: 1110000000, respectively;
concentration 4: 1111000000, respectively;
concentration 5: 1111100000, respectively;
concentration 6: 1111110000, respectively;
concentration 7: 1111111000, respectively;
concentration 8: 1111111100, respectively;
concentration 9: 1111111110, respectively;
concentration 10: 1111111111.
3. the two-color print driving method according to claim 1 or 2, characterized in that:
the print data includes color information including red information and black information.
4. A thermal printer comprising a processor, said thermal printer being adapted to implement the steps of the dual color print driving method according to any one of claims 1 to 3 when executing a computer program stored in a memory.
5. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the bi-color print driving method according to any one of claims 1 to 3.
CN202111629396.2A 2021-12-27 2021-12-27 Dual-color printing driving method, thermal printer, and computer-readable storage medium Active CN114506159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111629396.2A CN114506159B (en) 2021-12-27 2021-12-27 Dual-color printing driving method, thermal printer, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111629396.2A CN114506159B (en) 2021-12-27 2021-12-27 Dual-color printing driving method, thermal printer, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN114506159A true CN114506159A (en) 2022-05-17
CN114506159B CN114506159B (en) 2023-05-16

Family

ID=81547950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111629396.2A Active CN114506159B (en) 2021-12-27 2021-12-27 Dual-color printing driving method, thermal printer, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN114506159B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5617276A (en) * 1979-07-20 1981-02-19 Mitsubishi Electric Corp Heat-sensitive recording system
JPS61175055A (en) * 1985-01-31 1986-08-06 Tokyo Electric Co Ltd Thermal printer
JPH11334128A (en) * 1998-05-27 1999-12-07 Nec Data Terminal Ltd Thermal head of multicolor simultaneous print type and thermal printer using the same
JP2000153631A (en) * 1998-11-19 2000-06-06 Sato Corp Printing method on thermal sheet
US6166753A (en) * 1998-01-30 2000-12-26 Toshiba Tec Kabushiki Kaisha Thermal printer
JP2001010095A (en) * 1999-06-28 2001-01-16 Toshiba Tec Corp Dichroic heat-sensitive paper printer
JP2001080098A (en) * 1999-09-14 2001-03-27 Toshiba Tec Corp Electronic apparatus with thermal printer
CN1367081A (en) * 2001-01-26 2002-09-04 精工爱普生株式会社 Printing system, thermosensitive printer, printing method and information recording medium
CN1537059A (en) * 2001-05-30 2004-10-13 Thermal imaging system
US20060152573A1 (en) * 2005-01-10 2006-07-13 Polaroid Corporation Method and apparatus for controlling the uniformity of print density of a thermal print head array
CN106660384A (en) * 2014-08-01 2017-05-10 精工爱普生株式会社 Print medium, print medium unit, and printing apparatus
CN106681673A (en) * 2016-12-21 2017-05-17 福建升腾资讯有限公司 Grayscale printing method of thermosensitive printer
CN110626078A (en) * 2019-10-21 2019-12-31 威海哲文智能科技有限公司 Thermal printing control method and thermal recording device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5617276A (en) * 1979-07-20 1981-02-19 Mitsubishi Electric Corp Heat-sensitive recording system
JPS61175055A (en) * 1985-01-31 1986-08-06 Tokyo Electric Co Ltd Thermal printer
US6166753A (en) * 1998-01-30 2000-12-26 Toshiba Tec Kabushiki Kaisha Thermal printer
JPH11334128A (en) * 1998-05-27 1999-12-07 Nec Data Terminal Ltd Thermal head of multicolor simultaneous print type and thermal printer using the same
JP2000153631A (en) * 1998-11-19 2000-06-06 Sato Corp Printing method on thermal sheet
JP2001010095A (en) * 1999-06-28 2001-01-16 Toshiba Tec Corp Dichroic heat-sensitive paper printer
JP2001080098A (en) * 1999-09-14 2001-03-27 Toshiba Tec Corp Electronic apparatus with thermal printer
CN1367081A (en) * 2001-01-26 2002-09-04 精工爱普生株式会社 Printing system, thermosensitive printer, printing method and information recording medium
CN1537059A (en) * 2001-05-30 2004-10-13 Thermal imaging system
US20060152573A1 (en) * 2005-01-10 2006-07-13 Polaroid Corporation Method and apparatus for controlling the uniformity of print density of a thermal print head array
CN106660384A (en) * 2014-08-01 2017-05-10 精工爱普生株式会社 Print medium, print medium unit, and printing apparatus
CN106681673A (en) * 2016-12-21 2017-05-17 福建升腾资讯有限公司 Grayscale printing method of thermosensitive printer
CN110626078A (en) * 2019-10-21 2019-12-31 威海哲文智能科技有限公司 Thermal printing control method and thermal recording device

Also Published As

Publication number Publication date
CN114506159B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
JP3323625B2 (en) Color inkjet recording method
US20110018951A1 (en) Thermal print head, thermal printer and printer system
JPH1110842A (en) Method and apparatus for ink jet recording
JPH1110858A (en) Ink jet recorder and ink jet recording method
US5075698A (en) Method of driving a recording head and a recording apparatus utilizing this method
JPH1071730A (en) Ink jet recording, its device, and ink jet recording head
JP2012051211A (en) Inkjet recording apparatus and inkjet recording method
JPH06135126A (en) Two-way ink jet printer, ink jet method, and its printed matter
JPH08118684A (en) Recording head, recorder using the same and recording method therefor
CN101588435B (en) Image processing device, image recording system and image processing method
JP2003237059A (en) Inkjet recorder and method of inkjet recording
CN100450780C (en) Method of driving print head and image forming apparatus employing the same
JP2002283599A (en) Image recorder and method of recording image
JP2001253096A (en) Print using ink of different coloring materials
CN114506159A (en) Two-color printing driving method, thermal printer, and computer-readable storage medium
EP0193343B1 (en) Thermal printer
CN112571972B (en) Thermal printer heating control method and device and thermal printer
JPH10211721A (en) Driving device of printer and printer
CN114274692B (en) Gray scale printing method of thermal printer
US7643045B2 (en) Thermal printing apparatus and printing methods thereof
US20050219347A1 (en) Image recording apparatus
US5646671A (en) Thermal transfer recording apparatus and method for regularly assigning blank dots
JP3387764B2 (en) Ink jet recording apparatus and ink jet recording method
JP2004082346A (en) Print controller, print system and its controlling method, and program for performing the control method
JP2013166263A (en) Inkjet recording device and inkjet recording method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240305

Address after: 519000 Zone G, second floor, No. 1 plant, No. 15, Nanping Pingbei Second Road, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Baiyin automation equipment Co.,Ltd.

Country or region after: China

Address before: 519000 production workshop on the fourth floor of plant 3, Chuangye East Road, Shuanglin District, LIANGANG Industrial Zone, Hongqi Town, Jinwan District, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI SMARNET EQUIPMENT CO.,LTD.

Country or region before: China