Method of using one hardware to realize thermosensitive printer driving

A technology for hardware timers and thermal printers, applied in printing devices, printing, etc., can solve the problems of occupying the internal space of the POS machine and increasing the volume of the POS machine, and achieve the effects of improving utilization rate, good real-time response effect, and improving performance

Active Publication Date: 2017-04-26
AITIWEIER ELECTRONICS TECH BEIJING
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, the traditional thermal printer installed on the POS machine needs at least two hardware timers, one is used to control the paper feeding motor, and the other is used to control the heating time. The increase in the number of hardware timers takes up the internal space of the POS machine, and increases the Machine volume

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of using one hardware to realize thermosensitive printer driving

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0026] In this embodiment, only one hardware timer is used to realize the method for driving a thermal printer, the method is implemented based on an interrupt processing program installed in the hardware timer, and the hardware timer is respectively connected to the paper feed motor and the heating head;

[0027] The interrupt processing program is specifically implemented according to the following steps: when printing each new dot line data, calculate the heating time T and the phase change time t of the paper feed motor required to print the new dot line, and at the same time, obtain the phase change of the paper feed motor time t 0 , from t 0 Start to split the overall time required to print a new dot row into two time periods: the phase change time t of the paper feed motor and the heating time T; from t 0 At the beginning, drive the paper feed motor to the specified position, and the time period for the paper feed motor to travel is less than or equal to t; from the he...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method of using only one hardware timer to realize thermosensitive printer driving and relates to the POS machine equipment driving program field. The method is realized based on an interruption processing program installed in the hardware timer. The hardware timer is connected to a paper feed motor and a heating head. The interruption processing program is characterized by when each new point row data is printed, calculating heating time T needed by new point row printing and paper feed motor phase change time t, and simultaneously, acquiring paper feed motor phase change time t0, splitting integral time needed by new point row printing into two time periods of the paper feed motor phase change time t and the heating time T from the t0; from the t0, driving a paper feed motor row to an assigned position, wherein the paper feed motor row walking time period is less than or equal to the t; from a heating time head T0, starting a heating head, loading new point row data and printing the data; and when printing is ended, closing the heating head and then closing the hardware timer. A utilization rate of a space is increased and system performance is increased too.

Description

technical field [0001] The invention relates to the field of POS device driver programs, in particular to a method for realizing thermal printer driving by using only one hardware timer. Background technique [0002] The existing POS machine system needs multiple hardware timers to realize the printing function during the printing process. Among them, the traditional thermal printer installed on the POS machine needs at least two hardware timers, one is used to control the paper feeding motor, and the other is used to control the heating time. The increase in the number of hardware timers takes up the internal space of the POS machine, and increases the The volume of the machine. Contents of the invention [0003] The purpose of the present invention is to provide a method for driving a thermal printer using only one hardware timer, so as to solve the aforementioned problems in the prior art. [0004] In order to achieve the above object, only one hardware timer is used ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): B41J2/32B41J29/38
CPCB41J2/32B41J29/38
Inventor 谭有宁
Owner AITIWEIER ELECTRONICS TECH BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products