[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110774789A - Low-temperature printing method of thermal printer - Google Patents

Low-temperature printing method of thermal printer Download PDF

Info

Publication number
CN110774789A
CN110774789A CN201911182782.4A CN201911182782A CN110774789A CN 110774789 A CN110774789 A CN 110774789A CN 201911182782 A CN201911182782 A CN 201911182782A CN 110774789 A CN110774789 A CN 110774789A
Authority
CN
China
Prior art keywords
data
printing
printed
printer
bits
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
CN201911182782.4A
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.)
Aitiwell Electronic Technology (beijing) Co Ltd
Vanstone Electronic Beijing Co Ltd
Original Assignee
Aitiwell Electronic Technology (beijing) 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 Aitiwell Electronic Technology (beijing) Co Ltd filed Critical Aitiwell Electronic Technology (beijing) Co Ltd
Priority to CN201911182782.4A priority Critical patent/CN110774789A/en
Publication of CN110774789A publication Critical patent/CN110774789A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41MPRINTING, DUPLICATING, MARKING, OR COPYING PROCESSES; COLOUR PRINTING
    • B41M5/00Duplicating or marking methods; Sheet materials for use therein
    • B41M5/0041Digital printing on surfaces other than ordinary paper
    • B41M5/0052Digital printing on surfaces other than ordinary paper by thermal printing

Landscapes

  • Physics & Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Electronic Switches (AREA)

Abstract

The invention discloses a low-temperature printing method of a thermal printer, which comprises the steps that an upper computer processes printing data and obtains at least one line of dot matrix data, wherein each line of dot matrix data comprises at least N bits; reading the current temperature of a printing head of the printer and the current electric quantity percentage of the printer; judging whether the current temperature of a printing head of the printer is lower than a set temperature and the current electric quantity percentage of the printer is lower than the set electric quantity percentage, if so, equally dividing N bits into X groups of data bits to be printed, and sequentially heating and printing all the groups of data bits to be printed until all the data bits to be printed are heated and printed; if not, printing the dot matrix data of the whole line at one time; and the like. The advantages are that: the data bit group to be printed can be heated and printed under the low-temperature condition, the load current is reduced, the output voltage of the lithium battery under the low-temperature condition is prevented from having a very large voltage drop, the system power supply is ensured to be normal, and the conditions of abnormal power failure, sudden shutdown or restarting and the like are avoided.

Description

Low-temperature printing method of thermal printer
Technical Field
The invention relates to the technical field of thermal printer printing, in particular to a low-temperature printing method of a thermal printer.
Background
The thermal printer has the working principle that heating elements are arranged on a printing head according to a dot matrix, and the printing head can print required patterns after being heated and contacting thermal printing paper. Characters and patterns are generated by heating and generating chemical reactions on the thermal sensitive paper coated with chemical elements. This chemical reaction is carried out at a certain temperature. High temperatures accelerate this chemical reaction. When the temperature reaches a certain value, the chemical reaction can be completed within hundreds of microseconds. And when the heating is controlled, the stepping motor is controlled to feed paper, so that the printing of the pattern on the whole paper can be finished. The thermal printer thermal head has tiny heating elements arranged in a linear manner, such as fine-work LTP02-245, for a total of 384 heating dots. Then for the heating head. The minimum size of each heating spot is 0.125mm by 0.0625mm (width). The total width was 384 × 0.125mm to 48 mm.
In recent years, thermal printers are becoming more widely used with the spread of mobile payments. Thermal printers are used in many scenarios, such as supermarket cashiers, POS tickets, take-away tickets, express tickets, and the like. The thermal printer has low noise, stability and high printing speed; clear handwriting, no need of ink adding, convenient use and small volume. The system is well catered to various scenes such as mobile payment, outdoor printing, mobile equipment printing and the like.
When the thermal printer works, the printing head is required to be heated to a high temperature state instantly, the working voltage range is 4-9V, and the load current can reach 5-10A. Such a large load current is a huge impact for mobile devices powered by lithium batteries. Under the condition of normal temperature, the lithium battery has high activity and small internal resistance, and the impact current during printing has little influence on the system. However, the lithium battery activity is greatly influenced by temperature, the lithium battery activity is reduced and the internal resistance is increased in a low-temperature environment, so that the output voltage of the lithium battery generates a very large voltage drop due to impact current during printing, the system power supply is greatly influenced, and the system is abnormally powered off, suddenly shut down or restarted.
Disclosure of Invention
The invention aims to provide a low-temperature printing method of a thermal printer, so as to solve the problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a low-temperature printing method of a thermal printer comprises the following steps,
s1, processing the print data by the upper computer, and obtaining at least one line of dot matrix data, wherein each line of dot matrix data comprises at least N bits;
s2, reading the current temperature of the printing head of the printer and the current electric quantity percentage of the printer;
s3, judging whether the current temperature of the printing head of the printer is lower than the set temperature and the current electric quantity percentage of the printer is lower than the set electric quantity percentage, if so, equally dividing the N bits in the step S1 into X groups of data bits to be printed, and sequentially heating and printing all the data bits to be printed until all the data bits to be printed are heated and printed; if not, printing the dot matrix data of the whole line at one time;
and S4, after each group of data bits to be printed of the dot matrix data in one row are completely heated and printed, heating and printing the dot matrix data in the next row until all the dot matrix data in each row in the printing data are completely heated and printed.
Preferably, the set temperature is-5 ℃.
Preferably, the set percentage charge is 50%.
Preferably, the upper computer is a mobile terminal which is independently powered by a battery.
Preferably, each heating point on the print head corresponds to each bit in the dot matrix data, the heating point corresponding to the high-order data in the bits needs to be heated, and the heating point corresponding to the low-order data in the bits does not need to be heated.
Preferably, a thermistor is arranged on a printing head of the printer, and the thermistor can detect the current temperature of the printing head.
The invention has the beneficial effects that: the printing method provided by the invention can realize heating printing of the data bits to be printed in groups under the low-temperature condition, reduce the load current, avoid very large voltage drop of the output voltage of the lithium battery under the low-temperature condition, ensure normal power supply of the system, and avoid the conditions of abnormal power failure, sudden shutdown or restart and the like.
Drawings
Fig. 1 is a schematic flow chart of a printing method in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Example one
As shown in fig. 1, the present embodiment provides a low-temperature printing method for a thermal printer, the printing method including the steps of,
s1, processing the print data by the upper computer, and obtaining at least one line of dot matrix data, wherein each line of dot matrix data comprises at least N bits;
s2, reading the current temperature of the printing head of the printer and the current electric quantity percentage of the printer;
s3, judging whether the current temperature of the printing head of the printer is lower than the set temperature and the current electric quantity percentage of the printer is lower than the set electric quantity percentage, if so, equally dividing the N bits in the step S1 into X groups of data bits to be printed, and sequentially heating and printing all the data bits to be printed until all the data bits to be printed are heated and printed; if not, printing the dot matrix data of the whole line at one time;
and S4, after each group of data bits to be printed of the dot matrix data in one row are completely heated and printed, heating and printing the dot matrix data in the next row until all the dot matrix data in each row in the printing data are completely heated and printed.
In this example, the set temperature was-5 ℃.
In this embodiment, the percentage of the set electric quantity is 50%.
In this embodiment, the upper computer is a mobile terminal powered by a battery alone.
In this embodiment, each heating point on the print head corresponds to each bit in the dot matrix data, the heating point corresponding to the higher data in the bits needs to be heated, and the heating point corresponding to the lower data in the bits does not need to be heated.
In this embodiment, a thermistor is disposed on a print head of the printer, and the thermistor can detect a current temperature of the print head.
Example two
In this embodiment, the upper computer processes the print data to obtain a line of dot matrix data, where the line of dot matrix data includes N bits, that is, the number of heating dots on the print head. Each heating point of the printing head corresponds to each bit of data one by one, the heating point corresponding to the high-order data '1' needs to be heated, and the heating point corresponding to the low-order data '0' does not need to be heated; then, reading the current temperature T of the printing head and the current percentage level SOC of the electric quantity of the equipment, and if the current temperature is lower than-5 ℃ and the SOC is lower than 50%, conceivably, if a line of dot matrix data in S1 is heated at the same time, the load current is very large; therefore, it is necessary to group the data of N bits (data bits to be printed) in groups of every N/8 high bits to form X groups of data bits to be printed.
In this embodiment, taking the fine LTP02-245 thermal printer as an example, when printing a whole line of solid lines, because all the heating points need to be heated, bit is 384 '1', the bit is divided into 8 groups of data bits to be printed, and each group has 48 data bits to be printed. It should be noted that, since it is impossible to precisely control whether each point is heated, other bits need to be supplemented with 0; that is, the data bits to be printed can be completely heated and printed by 8 groups. Thus, the data of one heating is divided into a plurality of heating, and the load current is greatly reduced.
In this embodiment, after the grouped heating is completed, the stepping motor is controlled to move by one step, and the dot matrix data of the next line is heated and printed, and so on.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained:
the invention provides a low-temperature printing method of a thermal printer, which can realize heating printing of data bits to be printed in groups under the low-temperature condition, reduce load current, avoid very large voltage drop of output voltage of a lithium battery under the low-temperature condition, ensure normal power supply of a system, and avoid abnormal power failure, sudden shutdown or restart and other conditions.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (6)

1. A low-temperature printing method of a thermal printer is characterized by comprising the following steps: the printing method comprises the following steps of,
s1, processing the print data by the upper computer, and obtaining at least one line of dot matrix data, wherein each line of dot matrix data comprises at least N bits;
s2, reading the current temperature of the printing head of the printer and the current electric quantity percentage of the printer;
s3, judging whether the current temperature of the printing head of the printer is lower than the set temperature and the current electric quantity percentage of the printer is lower than the set electric quantity percentage, if so, equally dividing the N bits in the step S1 into X groups of data bits to be printed, and sequentially heating and printing all the data bits to be printed until all the data bits to be printed are heated and printed; if not, printing the dot matrix data of the whole line at one time;
and S4, after each group of data bits to be printed of the dot matrix data in one row are completely heated and printed, heating and printing the dot matrix data in the next row until all the dot matrix data in each row in the printing data are completely heated and printed.
2. The thermal printer cryogenic printing method of claim 1, wherein: the set temperature was-5 ℃.
3. The thermal printer cryogenic printing method of claim 1, wherein: the set percentage charge is 50%.
4. The thermal printer cryogenic printing method of claim 1, wherein: the upper computer is a mobile terminal which is independently powered by a battery.
5. The thermal printer cryogenic printing method of claim 2, wherein: each heating point on the printing head corresponds to each bit in the dot matrix data, the heating point corresponding to the high-order data in the bits needs to be heated, and the heating point corresponding to the low-order data in the bits does not need to be heated.
6. The thermal printer cryogenic printing method of claim 3, wherein: a thermistor is arranged on a printing head of the printer and can detect the current temperature of the printing head.
CN201911182782.4A 2019-11-27 2019-11-27 Low-temperature printing method of thermal printer Pending CN110774789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911182782.4A CN110774789A (en) 2019-11-27 2019-11-27 Low-temperature printing method of thermal printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911182782.4A CN110774789A (en) 2019-11-27 2019-11-27 Low-temperature printing method of thermal printer

Publications (1)

Publication Number Publication Date
CN110774789A true CN110774789A (en) 2020-02-11

Family

ID=69392837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911182782.4A Pending CN110774789A (en) 2019-11-27 2019-11-27 Low-temperature printing method of thermal printer

Country Status (1)

Country Link
CN (1) CN110774789A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111391533A (en) * 2020-03-30 2020-07-10 珠海趣印科技有限公司 Method for improving image uniformity of thermal printer
CN112571972A (en) * 2020-12-12 2021-03-30 深圳市捷诚技术服务有限公司 Thermal printer heating control method and device and thermal printer

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1200986A (en) * 1997-05-30 1998-12-09 三菱电机株式会社 Serial heat recording device
JP2001018434A (en) * 1999-07-08 2001-01-23 Alps Electric Co Ltd Method for controlling generated heat of thermal head and thermal transfer printer
CN101596811A (en) * 2008-06-03 2009-12-09 韩燕� A kind of energy-storing USB thermal sensitive printer
CN102649369A (en) * 2012-05-02 2012-08-29 青岛海信智能商用系统有限公司 Portable thermal printer power supply circuit and method
CN205768087U (en) * 2016-06-21 2016-12-07 深圳市美格智能技术股份有限公司 A kind of thermal printing head control system
CN106781123A (en) * 2016-12-30 2017-05-31 广州云移信息科技有限公司 A kind of thermal-sensitive printer printing method
CN106827826A (en) * 2015-12-06 2017-06-13 陕西芝麻粒企业咨询服务有限公司 A kind of intelligent portable printer
CN207875160U (en) * 2016-06-01 2018-09-18 大数据奥尼尔公司 Thermal printer and control system for thermal printer
CN207997683U (en) * 2018-02-01 2018-10-23 厦门盈趣科技股份有限公司 Thermal printer
CN108773194A (en) * 2018-05-04 2018-11-09 飞天诚信科技股份有限公司 A kind of printer and the method for improving print speed
CN110450553A (en) * 2019-07-02 2019-11-15 福建联迪商用设备有限公司 A kind of print control program, control module, machine core and terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1200986A (en) * 1997-05-30 1998-12-09 三菱电机株式会社 Serial heat recording device
JP2001018434A (en) * 1999-07-08 2001-01-23 Alps Electric Co Ltd Method for controlling generated heat of thermal head and thermal transfer printer
CN101596811A (en) * 2008-06-03 2009-12-09 韩燕� A kind of energy-storing USB thermal sensitive printer
CN102649369A (en) * 2012-05-02 2012-08-29 青岛海信智能商用系统有限公司 Portable thermal printer power supply circuit and method
CN106827826A (en) * 2015-12-06 2017-06-13 陕西芝麻粒企业咨询服务有限公司 A kind of intelligent portable printer
CN207875160U (en) * 2016-06-01 2018-09-18 大数据奥尼尔公司 Thermal printer and control system for thermal printer
CN205768087U (en) * 2016-06-21 2016-12-07 深圳市美格智能技术股份有限公司 A kind of thermal printing head control system
CN106781123A (en) * 2016-12-30 2017-05-31 广州云移信息科技有限公司 A kind of thermal-sensitive printer printing method
CN207997683U (en) * 2018-02-01 2018-10-23 厦门盈趣科技股份有限公司 Thermal printer
CN108773194A (en) * 2018-05-04 2018-11-09 飞天诚信科技股份有限公司 A kind of printer and the method for improving print speed
CN110450553A (en) * 2019-07-02 2019-11-15 福建联迪商用设备有限公司 A kind of print control program, control module, machine core and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111391533A (en) * 2020-03-30 2020-07-10 珠海趣印科技有限公司 Method for improving image uniformity of thermal printer
CN111391533B (en) * 2020-03-30 2021-04-30 珠海趣印科技有限公司 Method for improving image uniformity of thermal printer
CN112571972A (en) * 2020-12-12 2021-03-30 深圳市捷诚技术服务有限公司 Thermal printer heating control method and device and thermal printer

Similar Documents

Publication Publication Date Title
CN110774789A (en) Low-temperature printing method of thermal printer
WO2006135936A1 (en) Error based supply regulation
CN101357543A (en) Thermal printer sectional drive printing method and system
CN109613352A (en) Method, device and system for testing service life of power module in converter
CN109933109A (en) A kind of temprature control method of PCIe card, system and relevant device
CN107390852B (en) Control method, electronic device and computer readable storage medium
CN105620060A (en) Printer control circuit
CN113434096B (en) Printer, adapter work control method and device thereof, and readable storage medium
CN102080648B (en) Method for predicating service life of fan
CN117984675A (en) Printing control method, system and device
CN116061570A (en) Method for self-adapting printing effect of thermal printing
CN118226311A (en) Early warning method for lithium ion battery
CN115377462A (en) Method and device for processing disconnection fault of fuel cell inspection system and electronic equipment
CN112016054A (en) License authentication device and license authentication method
CN114646477A (en) Method and system for testing automobile hybrid power system
CN112339442A (en) Printing method and printer
JP2008080696A (en) Mobile terminal
JP2008183770A (en) Wire breaking checker of thermal head
CN111483246A (en) Method for heating thermosensitive point according to temperature interval range and content ratio
JPH02258357A (en) Method for controlling plotting head in thermal plotter
JPH06985A (en) Printing method of thermal printer
JPS61112649A (en) Printer
CN116414324A (en) Data printing control method and system and electronic equipment
CN111391533B (en) Method for improving image uniformity of thermal printer
CN115760859A (en) Printing control method and device of thermal printer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211

RJ01 Rejection of invention patent application after publication