CN101554804B - General printing drive module - Google Patents

General printing drive module Download PDF

Info

Publication number
CN101554804B
CN101554804B CN2009101114047A CN200910111404A CN101554804B CN 101554804 B CN101554804 B CN 101554804B CN 2009101114047 A CN2009101114047 A CN 2009101114047A CN 200910111404 A CN200910111404 A CN 200910111404A CN 101554804 B CN101554804 B CN 101554804B
Authority
CN
China
Prior art keywords
dot
printing
module
matrix
general
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
CN2009101114047A
Other languages
Chinese (zh)
Other versions
CN101554804A (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.)
FUJIAN SHIDA COMPUTER EQUIPMENT Co Ltd
Original Assignee
FUJIAN SHIDA COMPUTER 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 FUJIAN SHIDA COMPUTER EQUIPMENT Co Ltd filed Critical FUJIAN SHIDA COMPUTER EQUIPMENT Co Ltd
Priority to CN2009101114047A priority Critical patent/CN101554804B/en
Publication of CN101554804A publication Critical patent/CN101554804A/en
Application granted granted Critical
Publication of CN101554804B publication Critical patent/CN101554804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a general printing drive module, including a printing API module, a character dot-matrix analysis module and a deck mechanism drive module. The drive module is characterized in that: the printing API module provides an application program interface unrelated to a specific hardware platform and packs the functions provided by the lower character dot-matrix analysis module and the deck mechanism drive module into various printing APIs for realizing specific functions according to the requirement of a system application program; the character dot-matrix analysis module converts printing operation and paper feed operation into a general dot-matrix information unit GDU offered to the deck mechanism drive module for use; and the deck mechanism drive module receives the general dot-matrix information unit GDU output by the dot-matrix analysis module and controls a printing deck mechanism to complete the printing operation. The drive module adopts modular design, provides favorable interface environment for future product upgrading, and dramatically improves the printing speed with comparatively high practical value.

Description

General printing drive module
Technical field
The present invention relates to the printed driver field, particularly a kind of driver that is applicable to miniature impact printer and minitype thermal printer.
Background technology
At present mini-printer is widely used in various occasions, prints various documents, invoice, with bar etc.Miniature stylus printer and thermal printer are modal.The difference of the operation principle of stylus printer and temperature-sensitive movement; Cause the print driver difference of two kinds of movements bigger, make stylus printer drive and temperature-sensitive driving design respectively, and the non-Module Design scheme of the general employing of driver; The autgmentability that drives is very poor; In case driving needs to increase other movements, often need coding code again, debug in a large number then.Print speed is important performance of printer, and actual print speed often can't reach theoretical print speed.Print procedure just has only two kinds of operations in fact for movement: pure paper feed (Feed) and pure printing (Print).Little to play driving often independent respectively with the control of paper feed and printing, and promptly driving the backstage has two independently control flows, sees Fig. 1.Two control flows can not be mutually nested, just can print operation after walking EO, just can carry out the paper feed operation after perhaps printing finishes.In print procedure, the variation of chart drive motor duty is: stop-quickening-at the uniform velocity-slow down-stop.Because there is the process that stops, quickening and slow down in chart drive motor, and make chart drive motor average speed can't reach theoretical maximum chart drive speed, and the speed of chart drive motor has determined print speed, causes print speed less than theoretical print speed.
Summary of the invention
The purpose of this invention is to provide a kind of general printing drive module, adopt modularized design, the product up-gradation that is not merely from now on provides the excellent interface environment, and has improved print speed greatly, has higher utility.
The present invention realizes like this; A kind of general printing drive module; Comprise and print API module, character pattern parsing module and movement driver module, it is characterized in that: described printing API module provides the application programming interfaces with the particular hardware platform independence, according to the demand of system application; To the function that lower character dot-matrix parsing module and movement driver module provide, be packaged into the printing API of various realization concrete functions; Described character pattern parsing module converts printing and paper feed operation into general dot-matrix information unit GDU, offers the movement driver module and uses; Described movement driver module receives the general dot-matrix information unit GDU of character pattern parsing module output, and the control printer core is accomplished printing.
Described general dot-matrix information unit GDU comprises universal some array element GFDU of paper feed operation and universal some array element GPDU of printing; After general dot-matrix information unit GDU forms,
Described character pattern parsing module can merge continuous GFDU, and adjacent GPDU and GFDU merge;
The form of described general dot-matrix information unit GDU has following characteristic, comprising:
One dot matrix number is represented the dot matrix number that this row need be printed;
One dot matrix data are represented the dot matrix content of this line printing;
The paper feed amount is represented the paper feed step number that this line printing is intact;
The movement drive controlling flow process of described movement driver module comprises following step;
(1) general dot-matrix information unit GDU prints, and whether inspection dot matrix number is 0, and words that no are printed;
(2) the dot matrix number is 0, continues whether inspection paper feed amount is 0, and no talks about paper feed;
(3) the paper feed amount is 0, finishes general dot-matrix information unit GDU and prints.
The present invention adopts the print drive of modularized design, and exploitation, upgrading and the maintenance that drives brought facility: (1) is if increase new type fount, as long as independent character pattern parsing module does not influence other two modules; (2) if increase new movement and drive, as long as movement driver module of stand-alone development adds bottom movement module then and gets final product.(3) print the influence that API has shielded print drive upgrading application programs.
Description of drawings
Fig. 1 is existing printer driver control flow chart.
Fig. 2 is the structural principle block diagram of the embodiment of the invention.
Fig. 3 is the movement control flow chart of the embodiment of the invention.
Fig. 4 is that traditional prints drives chart drive motor control method and motor control method sequential chart of the present invention.
The specific embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done and to further describe.
As shown in Figure 2; The present invention provides a kind of general printing drive module; The various impact printers that the operation principle difference is very big drive unified integration with thermal printer and become a cover to drive, and specifically comprise and print API module, character pattern parsing module and movement driver module, it is characterized in that: described printing API module (Print API Modules; PAM) application programming interfaces with the particular hardware platform independence are provided, its major function is that lower floor's device driver is encapsulated.It drives the printing API that the function that provides is packaged into various realization concrete functions with character pattern parsing driving and movement, for example: character printing, image printing, paper feed etc. according to the demand of application program.
(Dot Convert Modules DCM), can be divided into 3 sub-module to described character pattern parsing module: get the character pattern submodule, realize obtaining from holder according to the input character ISN dot matrix of this character; Dot matrix gyrator module realizes the dot matrix spinfunction, can support 90 degree, 180 degree and 270 degree dot matrix rotations; Dot matrix expansion submodule is realized the dot matrix enlarging function, can support multiple times wide, high, wide times of high font doubly doubly.This character pattern parsing module is with printing and paper feed operation, and (General Dot Unit GDU), offers the movement driver module and uses to convert general dot-matrix information unit into.Described general dot-matrix information unit form:
Figure GSB00000273752600031
Dot matrix number (DotNum): represent the dot matrix number that this row need be printed; Dot array data (DotData): the dot matrix content of representing this line printing; Paper feed amount (Steps): represent the paper feed step number that this line printing is intact.
(DotData is any for General FeedDot Unit, GFDU) form: DotNum=0, Steps=paper feed amount for universal some array element of paper feed operation (Feed);
(General PrintDot Unit, GPDU) form: DotNum=N, DotData are the dot matrix content to universal some array element of printing (Print), Steps=paper feed amount.
After general dot-matrix information unit GDU formed, described character pattern parsing module can merge continuous GFDU, and adjacent GPDU and GFDU merge.Therefore the various paper feeds and the printing of print procedure converts a minimum GDU tabulation of item number at last to, offers the movement driver module again.
(Printer Driver Modules PDM) receives character pattern parsing module output general dot-matrix information unit GDU to described movement driver module, and the control printer core is accomplished printing.After adopting the GDU of consolidation form, the exploitation movement drives and becomes very simple, and the single step inserting needle is beaten, the little movement such as beat of two stepping stylus printer, temperature-sensitive only is to go out pin (or heating) and motor sequential according to GDU control movement in driving, the realization printing function.The drive controlling flow process is as shown in Figure 3, and it comprises following step;
(1) general dot-matrix information unit GDU prints, and whether inspection dot matrix number is 0, and words that no are printed;
(2) the dot matrix number is 0, continues whether inspection paper feed amount is 0, and no talks about paper feed;
(3) the paper feed amount is 0, finishes general dot-matrix information unit GDU and prints.
In sum, characteristics of the present invention are that the operation of movement paper feed is converted into printing, have simplified the drive controlling flow process; Because the print procedure chart drive motor adopts optimized control sequential, reduced stop, quickening, slow down, the number of times of the switching of state at a slow speed, improved the average speed of chart drive motor; Naturally improved print speed; As shown in Figure 4, paper feed 1, paper feed 2 and print 1 operation and be merged into GDU1 are printed 2 and are merged into GDU2 with paper feed 3.The operation shown in Figure 4 of traditional prints driving execution, chart drive motor need 6 stop phases, 3 boost phases, 3 decelerating phases, 3 stages at the uniform velocity, 1 stage at a slow speed; And after adopting general printing to drive, chart drive motor only needs 3 stop phases, 2 boost phases, and 2 decelerating phases, 2 stages at the uniform velocity, thus improved the speed of chart drive motor greatly.Adopt modular design method in addition, reduced the degree of coupling of each module, make and the realization level to develop between a plurality of modules that drive, not only accelerate development progress and also saved development cost.
The above is merely preferred embodiment of the present invention, and all equalizations of doing according to claim of the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (3)

1. general printing drive module; Comprise and print API module, character pattern parsing module and movement driver module; It is characterized in that: described printing API module provides the application programming interfaces with the particular hardware platform independence; According to the demand of system application,, be packaged into the printing API of various realization concrete functions to the function that lower character dot-matrix parsing module and movement driver module provide; Described character pattern parsing module converts printing and paper feed operation into general dot-matrix information unit (GDU), offers the movement driver module and uses; Described movement driver module receives the general dot-matrix information unit (GDU) of character pattern parsing module output, and the control printer core is accomplished printing;
Described general dot-matrix information unit (GDU) comprises the universal some array element (GFDU) of paper feed operation and the universal some array element (GPDU) of printing; After general dot-matrix information unit (GDU) forms,
Described character pattern parsing module can merge the universal some array element (GFDU) of continuous paper feed operation, and the universal some array element (GFDU) of the universal some array element (GPDU) of adjacent printing and paper feed operation merges;
The form of described general dot-matrix information unit (GDU) has following characteristic, comprising:
One dot matrix number is represented the dot matrix number that this row need be printed;
One dot matrix data are represented the dot matrix content of this line printing;
The paper feed amount is represented the paper feed step number that this line printing is intact;
The movement drive controlling flow process of described movement driver module comprises following step;
(1) general dot-matrix information unit (GDU) is printed, and whether inspection dot matrix number is 0, and words that no are printed;
(2) the dot matrix number is 0, continues whether inspection paper feed amount is 0, and no talks about paper feed;
(3) the paper feed amount is 0, finishes general dot-matrix information unit (GDU) and prints.
2. general printing drive module according to claim 1 is characterized in that: described character pattern parsing module comprises:
Get the character pattern submodule, realize obtaining from holder the dot matrix of this character according to the input character ISN;
Dot matrix gyrator module realizes the dot matrix spinfunction;
Dot matrix expansion submodule is realized the dot matrix enlarging function.
3. general printing drive module according to claim 2 is characterized in that: described spinfunction comprises 90 degree, 180 degree and 270 degree dot matrix rotations.
CN2009101114047A 2009-04-02 2009-04-02 General printing drive module Active CN101554804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101114047A CN101554804B (en) 2009-04-02 2009-04-02 General printing drive module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101114047A CN101554804B (en) 2009-04-02 2009-04-02 General printing drive module

Publications (2)

Publication Number Publication Date
CN101554804A CN101554804A (en) 2009-10-14
CN101554804B true CN101554804B (en) 2012-04-18

Family

ID=41173152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101114047A Active CN101554804B (en) 2009-04-02 2009-04-02 General printing drive module

Country Status (1)

Country Link
CN (1) CN101554804B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901803B (en) * 2019-03-12 2022-09-09 南京沁恒微电子股份有限公司 Additional printing processing method for micro printer and computer readable storage medium
CN115402019A (en) * 2022-08-30 2022-11-29 广州浩崎电子科技有限公司 Printing exception processing method and device based on image scanning, printer and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4074067A (en) * 1976-06-25 1978-02-14 Arthur Speckhard Digital printout arrangement with magnetic field carriage drive
US5625399A (en) * 1992-01-31 1997-04-29 Intermec Corporation Method and apparatus for controlling a thermal printhead

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4074067A (en) * 1976-06-25 1978-02-14 Arthur Speckhard Digital printout arrangement with magnetic field carriage drive
US5625399A (en) * 1992-01-31 1997-04-29 Intermec Corporation Method and apparatus for controlling a thermal printhead

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
冯静等.微型打印机打印技术分析.《电子工程师》.2006,第32卷(第11期),第56-58页. *
叶华峰等.基于Linux的金融税控收款机的打印机驱动程序开发.《自动化技术与应用》.2008,第27卷(第4期),第59-61页. *
胡新宇等.针式打印机软件开发的关键技术.《中国水运》.2007,第5卷(第5期),第177-178页. *
蔡成章.基于ARM主控芯片的微型热敏打印驱动及系统设计.中国优秀硕士学位论文全文数据库.2008,第59-61页. *

Also Published As

Publication number Publication date
CN101554804A (en) 2009-10-14

Similar Documents

Publication Publication Date Title
JP3513266B2 (en) Print control system, print control method, and print processing method
CN102145593A (en) Control device, method of controlling a recording device, and a storage medium
CN101554804B (en) General printing drive module
CN1172231C (en) Portable 2-byte character encoding
EP1187059B1 (en) Method and apparatus for printing computer generated images
CN102591603A (en) Printing method and printing system for micro printer
CN101620520B (en) Printing control device, control method for a printing device, and a control program
CN100498808C (en) Printing circuit board element height outputting method and device thereof
CN1797321A (en) System and method for controlling operation of a printer by using external memory
CN1803460A (en) Transverse typeset printing technology of minitype printer
CN1892582A (en) Image forming method and system using xhtml-print data
CN101004582A (en) Printing method with small margin or no margin
CN202923132U (en) Flatbed printer with man-machine interaction function
CN103413504A (en) Mechanical dot-matrix displayer
CN104615458B (en) A kind of method and system based on json data format module loadings
CN100377129C (en) Method of computer transmission text to portable browsing apparatus and its device
Thacker et al. Alto: A personal computer
CN100433035C (en) System, method, and program for generating barcode data
CN104461406B (en) A kind of print-out method and device
CN101853244A (en) Method and device for generating page file
CN109598406A (en) A kind of nuclear power plant's operating instruction system based on planar graph coding techniques
CN103455290A (en) Visio document-based general report template print method
CN2720517Y (en) Printing controller
US20050206940A1 (en) Printer driving method for fast release of control privilege
CN116775028A (en) UI design implementation method and system of automobile data recorder

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant