CN114506159B - Dual-color printing driving method, thermal printer, and computer-readable storage medium - Google Patents

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

Info

Publication number
CN114506159B
CN114506159B CN202111629396.2A CN202111629396A CN114506159B CN 114506159 B CN114506159 B CN 114506159B CN 202111629396 A CN202111629396 A CN 202111629396A CN 114506159 B CN114506159 B CN 114506159B
Authority
CN
China
Prior art keywords
concentration
frame
printing
data
heating
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.)
Active
Application number
CN202111629396.2A
Other languages
Chinese (zh)
Other versions
CN114506159A (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 invention provides a dual-color printing driving method, a thermal printer and a computer readable storage medium, 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 row form a frame-by-frame heating signal, and the frame-by-frame heating signal is sequentially sent to the corresponding row heating bodies 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 increment of the heating time of each point, so that a plurality of images with concentration levels from light red to black are printed, and the effective double-color printing control is realized.

Description

Dual-color printing driving method, thermal printer, and computer-readable storage medium
Technical Field
The present invention relates to the field of thermal printing, and more particularly, to a dual-color printing driving method, a thermal printer, and a computer-readable storage medium.
Background
Along with the popularization and application of thermal printers in various industries, the thermal printer is not only used in automatic cash dispensers, cash receiving terminals, takeaway terminals, catering terminals and electronic commerce delivery terminals of banks, but also especially used for printing in the catering, electronic commerce and express industry, the thermal printer has the advantages that the requirements on the diversity of printing contents are greatly increased, the general thermal printer is used for black-and-white printing, ink jet printing is often needed for realizing color printing and multicolor printing, the consumable cost of an ink box is high, the printing speed is limited by an imaging principle, and the printing cannot be performed rapidly.
Disclosure of Invention
A first object of the present invention is to provide a method of implementing a two-color printing driving method for a two-color thermal paper.
A second object of the present invention is to provide a thermal printer implementing 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 printing driving method.
In order to achieve the first object of the present invention, the present invention provides a two-color printing driving method 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 row form a frame-by-frame heating signal, and the frame-by-frame heating signal is sequentially sent to the corresponding row heating bodies according to the sequence.
Still further, the concentration value is divided into 10 stages, which include concentration 1, concentration 2 … to 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; concentration 4:1111000000; concentration 5:1111100000; concentration 6:1111110000; concentration 7:1111111000; concentration 8:1111111100; concentration 9:1111111110; concentration 10:1111111111.
still 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 for implementing the steps of the dual color printing driving method according to the above scheme 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 printing driving method of the above-described scheme.
The invention has the advantages that when the heating element is driven to generate heat according to red-black dual-color image data, every point of the current line needs to be distinguished from 10 concentration levels from light red to black when each point is printed, the heating element is driven by multi-frame heating signals of the current line, the multi-section heating time of the heating element is effectively controlled, and the printing effect is gradually changed from light red to black along with the increment of the heating time of each point, so that a plurality of concentration levels from light red to black are printed, and the effective dual-color printing control is realized.
Drawings
Fig. 1 is a flowchart of an embodiment of the present two-color printing driving method.
Fig. 2 is a diagram showing the effect of red-black two-color printing according to the embodiment of the driving method of two-color printing.
Fig. 3 is a truth table of a driving pulse sequence corresponding to density values in the embodiment of the present dual-color printing driving method.
Fig. 4 is a timing chart of the first 5-frame-by-frame heating signal in the embodiment of the present two-color printing driving method.
Fig. 5 is a timing chart of the last 5-frame-by-frame heating signal in the embodiment of the present two-color printing driving method.
The invention is further described below with reference to the drawings and examples.
Detailed Description
Referring to fig. 1 to 5, the dual-color printing driving method is applied to a thermal printer, and is mainly used for dual-color printing on additive-color thermal paper, wherein the color development is first color when the heat applied is low, the color development is second color when the heat applied is high, and when the heat applied to the thermal paper is low, the thermal paper is light red, the red gradually gets deeper along with the increase of the heat, and the thermal paper is black when the heat applied is highest.
When the two-color printing driving method is performed, step S11 is first performed, and print data including font information, pattern information, and color information including red information, black information, gradation information, and the like is received. In the editing stage, the color of the fonts or the patterns can be set, namely, the black, the red and the depth degree of the red can be set.
Step S12 is then executed, where the image data is a dot matrix map obtained by converting the print data according to the conversion result, and in this case, each row has 11 pixels as an example, and according to the density value of each pixel of the current print row of the image data and the driving pulse sequence corresponding to the density value (as shown in fig. 3), that is, the density value is divided into 10 levels, which includes from shallow to deep density 1, density 2 … to density 10, the corresponding density value is heated and driven by a 10-frame heating signal, the driving pulse sequence corresponding to the density value is as follows:
concentration 1:1000000000;
concentration 2:1100000000;
concentration 3:1110000000;
concentration 4:1111000000;
concentration 5:1111100000;
concentration 6:1111110000;
concentration 7:1111111000;
concentration 8:1111111100;
concentration 9:1111111110;
concentration 10:1111111111.
and then obtaining multi-frame driving pulse data of each pixel point in the current printing row.
Then, step S13 is executed, the same-frame driving pulse data of each pixel point in the current printing row forms a frame-by-frame heating signal, taking FIG. 2 as an example of a target printing pattern, which has 11 pixel points, from left to right, the first two second pixel points are black with the concentration of 10, the hexadecimal color code is #231915, the tenth pixel point is light red with the concentration of 2, the hexadecimal color code is # ef8575, the eleventh pixel point is light red with the concentration of 1, the hexadecimal color code is # f3bbb2, the heating is performed through 10 frames of heating on-off signals, thus, when one row of heating bodies is driven, the frame-by-frame heating signals of 10 frames are respectively 1 st frame data1 "11111111", 2 nd frame data2"11111111110", 3 rd frame data3"11111111100", 4 th frame data4"11111111000", 5 th frame data5"11111110000", 6 th frame data6"11111100000", 7 th frame data7"11111000000", 8 th frame data8"11110000000", 9 th frame data9"11100000000", 10 th frame data10"11000000000", and the driving of 5 th frame data5"11111110000" is exemplified, the heating bodies of 1 st to 7 are driven to generate heat, and the heating bodies of 8 th to 11 are not generated heat of "0" from left to right.
Finally, step 14 is executed, in which frame-by-frame heating signals are sequentially sent to the corresponding row of heating bodies, and referring to fig. 4 and 5, EN is a thermal printhead enable signal, CLK is a CLOCK input signal, DAT is a DATA image DATA input signal, LAT is a LATCH register LATCH signal, and STB is a stream frame-by-frame heating signal. The main control chip of the printer sends an EN enabling signal to enable the thermal printing head, then each CLK clock signal sends a bit of DAT image data until the image data of the current line is sent, the LAT register latches the image data in a low level, finally the STB heating element heating signal 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 for 10 times, the density is 10 levels, the dots are black, the rightmost one dot is heated only once, the density is 1 level, and the dots are light red. Of course, in this embodiment, other additive color type thermal paper may be used, such as blue-black dual-color printing and yellow-black dual-color printing. And in practical application of the thermal sheet, the 58-type thermal sheet is generally used, and 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 practical printing, and the heating elements in the same line are driven simultaneously during driving. And the driving pulse sequences with corresponding concentrations can be multiple or different frames are used for driving and heating.
The thermal printer includes a processor for implementing the steps of the dual color printing driving method as described above when executing the computer program stored in the 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 printing driving method of the scheme described above.

Claims (3)

1. A two-color printing driving method, comprising:
receiving print data, the print data including color information, the color information including red information and black information;
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 row forms a frame-by-frame heating signal,
sequentially sending frame-by-frame heating signals to the corresponding heating bodies according to the sequence;
the concentration values are divided into 10 stages, which include concentration 1, concentration 2 … to 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;
concentration 4:1111000000;
concentration 5:1111100000;
concentration 6:1111110000;
concentration 7:1111111000;
concentration 8:1111111100;
concentration 9:1111111110;
concentration 10:1111111111.
2. a thermal printer comprising a processor for implementing the steps of the two-color printing driving method of claim 1 when executing a computer program stored in a memory.
3. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the two-color printing driving method as claimed in claim 1.
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 CN114506159A (en) 2022-05-17
CN114506159B true 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)

Family Cites Families (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
JP3619690B2 (en) * 1998-11-19 2005-02-09 株式会社サトー Thermal paper printing method
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
ATE412527T1 (en) * 2001-01-26 2008-11-15 Seiko Epson Corp PRINTING SYSTEM, THERMAL PRINTER, PRINT CONTROL METHOD AND DATA STORAGE MEDIUM
ATE353770T1 (en) * 2001-05-30 2007-03-15 Zink Imaging Llc THERMAL IMAGING SYSTEM
US7369145B2 (en) * 2005-01-10 2008-05-06 Polaroid Corporation Method and apparatus for controlling the uniformity of print density of a thermal print head array
JP6387731B2 (en) * 2014-08-01 2018-09-12 セイコーエプソン株式会社 Print medium unit and printing apparatus
CN106681673B (en) * 2016-12-21 2019-08-30 福建升腾资讯有限公司 A kind of thermal printer gray level printing method
CN110626078B (en) * 2019-10-21 2020-09-22 威海哲文智能科技有限公司 Thermal printing control method and thermal recording device

Also Published As

Publication number Publication date
CN114506159A (en) 2022-05-17

Similar Documents

Publication Publication Date Title
US5181045A (en) Bleed alleviation using pH-sensitive dyes
US6942310B2 (en) Ink-jet printing method and apparatus
JP2001054956A (en) Image recording method, image recorder, control method therefor, computer readable storage medium, and image processing method
JP3478573B2 (en) Image recording method and apparatus
JPH06135126A (en) Two-way ink jet printer, ink jet method, and its printed matter
US5075698A (en) Method of driving a recording head and a recording apparatus utilizing this method
US8305634B2 (en) Image processing device, image recording system, image processing method and computer-readable medium
US20080123117A1 (en) Image Processing Method, Computer-Readable Program, Image Processing Apparatus, Image Forming Apparatus and Image Forming System
JP5311980B2 (en) Inkjet recording device
CN114506159B (en) Dual-color printing driving method, thermal printer, and computer-readable storage medium
US9117163B2 (en) Printing apparatus and method configured for re-halftone image data
US20040135845A1 (en) Method and apparatus for processing images having color combinations
JP3450387B2 (en) Color information processing method and apparatus
CN114274692B (en) Gray scale printing method of thermal printer
US7367645B2 (en) Printing method and printing apparatus
CN112571972B (en) Thermal printer heating control method and device and thermal printer
JP3005165B2 (en) Recording data processing method, inkjet recording apparatus and method
US11017277B2 (en) Image processing apparatus, image processing method and storage medium, with correction amount for correcting line width in accordance with color of line
JP2013166263A (en) Inkjet recording device and inkjet recording method
JP2004082346A (en) Print controller, print system and its controlling method, and program for performing the control method
US11917115B1 (en) Shift compensation mechanism
US20230150270A1 (en) Printing apparatus and printing method
JP2011031530A (en) Printer, method of printing, and image processing apparatus
JPH10217584A (en) Recorder and record controlling method
CN115610096A (en) Printing apparatus and printing 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