CN106274088B - Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation - Google Patents

Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation Download PDF

Info

Publication number
CN106274088B
CN106274088B CN201610673758.0A CN201610673758A CN106274088B CN 106274088 B CN106274088 B CN 106274088B CN 201610673758 A CN201610673758 A CN 201610673758A CN 106274088 B CN106274088 B CN 106274088B
Authority
CN
China
Prior art keywords
print
protocol frame
data protocol
thermal
data
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
CN201610673758.0A
Other languages
Chinese (zh)
Other versions
CN106274088A (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.)
Changshu intellectual property operation center Co.,Ltd.
Original Assignee
Jiangsu University of Science and Technology
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 Jiangsu University of Science and Technology filed Critical Jiangsu University of Science and Technology
Priority to CN201610673758.0A priority Critical patent/CN106274088B/en
Publication of CN106274088A publication Critical patent/CN106274088A/en
Application granted granted Critical
Publication of CN106274088B publication Critical patent/CN106274088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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

Landscapes

  • Electronic Switches (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a kind of thermal-sensitive printer printing velocity optimization methods based on timeslice segmentation, include the following steps:Print data is handled, the word of pre-print or picture are converted into two-dimensional lattice array;Two-dimensional lattice array in step a is converted into one-dimensional data stream, and is packaged into data protocol frame and is sent to thermal printer;By the data protocol frame block transmission in step b, a data protocol frame is often transferred, first judges whether also data protocol frame, print command is first sent if also having, then according to printing content selection timeslice delay, remaining data protocol frame is retransmited after delay, until printing is completed.The present invention improves print speed by setting different delay times for different print datas under the premise of ensureing to fail to print mistake.

Description

Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation
Technical field
The invention belongs to print field more particularly to a kind of thermal-sensitive printer printing speed-optimization divided based on timeslice Method.
Background technology
Thermal printing technique originates from last century 60, after 50 development, one of oneself printing technique through becoming mainstream. It starts to walk in the U.S., Japan and some other developed country's thermal printing techniques early, products application is extensive, and update is very fast, And thermal printing technique is also constantly promoted.Thermal printing technique is very extensive in foreign applications, is related to many aspects of society, Including various POS sale terminals, gas station, water power charge, hotel tourism, postal service etc..Thermal printer manufacturer famous at present There is a Hewlett-Packard HP in the U.S., Japanese Canon Canon, Epson EPSON, Fuji are applied, brother Brother, these companies possess phase To ripe thermal printing technique, at home and abroad, larger share is also occupied in market to product.
With respect to some developed countries, it is not late that the temperature-sensitive in China ingeniously prints technical research.The miniature temperature-sensitive in China was beaten in recent years Print machine production has quick development, some domestic thermal printer manufacturers, such as the good rich, northeast part of China, gradually gathers around There are an advanced thermal printing techniques of T, the share in product market at home is also being stepped up.At present, China's thermal printing Import brand EPSON is in the majority, they have the advantage of performance with respect to domestic brand, and price is also generally higher than domestic brand.In state It is interior, thermal printer oneself through at the supermarket, telecommunications inquiry, Industry Control, gas station, lottery industry, logistics system etc. it is multiple It is centainly applied in field.
Just at present, the main trend of thermal printing technique development is low-power consumption, high reliability, high speed, high image quality, ring It protects, the thermal printing technique in China also has very big room for promotion, and with the rapid development of domestic economy, every field is in information Demand in terms of printing is on the increase, and the thermal printing technique in China can be ripe day by day, and minitype thermal printer product will also be gathered around There is vast market prospect.
Invention content
Goal of the invention:Present invention proposition is a kind of to promote thermal-sensitive printer printing speed, while ensures to print accuracy Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation.
Technical solution:A kind of thermal-sensitive printer printing velocity optimization method based on timeslice segmentation, includes the following steps:
A, print data is handled, the word of pre-print or picture is converted into two-dimensional lattice array;
B, the two-dimensional lattice array in step a is converted into one-dimensional data stream, and is packaged into data protocol frame and is sent to heat Quick printer;
C, by the data protocol frame block transmission in step b, a data protocol frame is often transferred, first judges whether also have Data protocol frame first sends print command if also having, and then according to printing content selection timeslice delay, is sent out again after delay Remaining data protocol frame is sent, until printing is completed.
Advantageous effect:The present invention is ensureing to fail to print by setting different delay times for different print datas Print speed is improved under the premise of mistake.
Compared with prior art the invention has the advantages that:
(1) present invention is according to the different different biographies for setting print datas of print data thermal-sensitive printer printing required time Defeated delay time improves the print speed of thermal printer, and can guarantee the accuracy of printing compared with unified be delayed.
(2) present invention realizes simple, without increasing additional hardware controls, it is only necessary to be modified slightly in upper computer software It can realize.
Description of the drawings
Fig. 1 is schematic diagram of the present invention;
Fig. 2 is the flow chart of the method for the present invention.
Specific embodiment
Below in conjunction with attached drawing, the case study on implementation of the present invention is described in detail;
As shown in Figure 1, host computer (PC or mobile phone) is communicated by serial ports with bottom thermal printer, host computer passes through certain Data protocol control bottom printer complete printing.Main communication protocol includes transmission data and print command.
As shown in Fig. 2, the present invention includes print data pretreatment into byte stream, dot matrix bytes of stream data segmentation transmission, number It is selected according to transmission delay, print command transmission.Mainly include the following steps:
A, to the processing of print data, the word or picture that will be printed uniformly are converted into two-dimensional lattice array.
B, two-dimensional lattice array is converted into one-dimensional data stream, is packaged into data protocol frame and is ready for sending to thermal printing Machine.
C, by the data protocol frame block transmission of abovementioned steps b, a data protocol frame is often transferred, is first judged whether also There is data protocol frame, print command is first sent if also having, then according to printing content selection timeslice delay, be delayed later again Remaining data protocol frame is sent, until printing is completed.Difference of the present invention according to printer print data, selects different prolong When the time, control the transmission of host computer data according to this delay time, promote thermal-sensitive printer printing speed.
The present invention according to thermal-sensitive printer printing speed as reticular density increases and continuous slack-off characteristic, by upper Machine adjusts the delay of transferring printing data according to different data, to adapt to the variation of the print speed of bottom printer, both avoids heat There is leakage row due to host computer transmission speed is too fast in quick printer, and can be obviously improved print speed.

Claims (1)

1. a kind of thermal-sensitive printer printing velocity optimization method based on timeslice segmentation, which is characterized in that include the following steps:
A, print data is handled, the word of pre-print or picture is converted into two-dimensional lattice array;
B, the two-dimensional lattice array in step a is converted into one-dimensional data stream, and is packaged into data protocol frame and is sent to temperature-sensitive and beat Print machine;
C, by the data protocol frame block transmission in step b, a block number is often transferred according to protocol frame, first judges whether also data Protocol frame first sends print command if also having, and then according to printing content selection timeslice delay, is retransmited after delay surplus Remaining data protocol frame, until printing is completed.
CN201610673758.0A 2016-08-16 2016-08-16 Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation Active CN106274088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610673758.0A CN106274088B (en) 2016-08-16 2016-08-16 Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610673758.0A CN106274088B (en) 2016-08-16 2016-08-16 Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation

Publications (2)

Publication Number Publication Date
CN106274088A CN106274088A (en) 2017-01-04
CN106274088B true CN106274088B (en) 2018-07-06

Family

ID=57670715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610673758.0A Active CN106274088B (en) 2016-08-16 2016-08-16 Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation

Country Status (1)

Country Link
CN (1) CN106274088B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018161837A (en) * 2017-03-27 2018-10-18 カシオ計算機株式会社 Printing device, printing system, printing control method, and program
CN109062521B (en) * 2018-07-20 2022-05-27 珠海智汇网络设备有限公司 Print data processing method and device, computer device and storage medium
CN111391533B (en) * 2020-03-30 2021-04-30 珠海趣印科技有限公司 Method for improving image uniformity of thermal printer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508625A (en) * 2011-10-26 2012-06-20 苏州工业园区鑫海胜电子有限公司 Double-face printing method based on conventional printer
CN103530070A (en) * 2012-07-06 2014-01-22 柯尼卡美能达株式会社 Print servers and print data transmission method
CN103631545A (en) * 2013-11-26 2014-03-12 深圳市科曼医疗设备有限公司 Printing method and system
CN103974831A (en) * 2011-09-13 2014-08-06 富士胶卷迪马蒂克斯股份有限公司 Fluid jetting with delays
CN104191824A (en) * 2014-09-19 2014-12-10 青岛海信智能商用系统有限公司 Thermal printer and method for controlling same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5899748B2 (en) * 2011-09-27 2016-04-06 セイコーエプソン株式会社 Medium processing apparatus and method for controlling medium processing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974831A (en) * 2011-09-13 2014-08-06 富士胶卷迪马蒂克斯股份有限公司 Fluid jetting with delays
CN102508625A (en) * 2011-10-26 2012-06-20 苏州工业园区鑫海胜电子有限公司 Double-face printing method based on conventional printer
CN103530070A (en) * 2012-07-06 2014-01-22 柯尼卡美能达株式会社 Print servers and print data transmission method
CN103631545A (en) * 2013-11-26 2014-03-12 深圳市科曼医疗设备有限公司 Printing method and system
CN104191824A (en) * 2014-09-19 2014-12-10 青岛海信智能商用系统有限公司 Thermal printer and method for controlling same

Also Published As

Publication number Publication date
CN106274088A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106274088B (en) Thermal-sensitive printer printing velocity optimization method based on timeslice segmentation
CN102984151B (en) Method and the server of image data are provided to computing terminal
CN100586108C (en) A method and device for updating port address in address parsing protocol table
CN103729373B (en) A kind of database broker method and apparatus
CN106034199B (en) A kind of image collecting device and method of analog data source
WO2020244233A1 (en) Data storage method and apparatus
CN105848191A (en) Communication apparatus and control method
KR20200020704A (en) Methods, systems, and apparatus for reducing memory latency when fetching pixel kernels
CN112799840B (en) Method, apparatus, device and storage medium for transmitting data
CN103391487B (en) A kind of method and device of the transmission services under multi-logical link markers
CN114356829B (en) Protocol self-adaptive identification, cross-platform and standardization system based on serial port transceiving
CN102844748A (en) Packet based data transfer system and method for host-slave interface
CN106131137A (en) Method of data synchronization, system and for the user terminal of data syn-chronization and service end
CN106569984A (en) Method, apparatus, and system for generating and transmitting color word stock automatically
CN104468404B (en) A kind of buffer configuration method and device
CN101645935A (en) Web service combined method based on QoS indexes and Web service output parameters and device thereof
CN101521744A (en) Video capture controller
CN105930100B (en) A kind of implementation method optimizing usim card file read-write speed and frequency
CN108109106B (en) Picture generation method and device and computer equipment
WO2023138001A1 (en) Novel interface skin changing system and method thereof
JP2020141305A5 (en)
CN107256131B (en) A kind of performance optimization method based on TCMU virtual disk distributed block storage system
CN104442054A (en) Two-dimension code printing method and device based on mainframe platform
CN107610004A (en) A kind of commodity are really weighed and acquisition methods, computer
CN111258937B (en) Transmission method and system of ring type linked list DMA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zhong Haixiao

Inventor after: Han Bin

Inventor after: Liu Qinghua

Inventor after: He Qihong

Inventor before: Liu Qinghua

Inventor before: Han Bin

Inventor before: Zhong Haichi

Inventor before: Hao Qihong

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201020

Address after: 215500 No.13, Caotang Road, Changshu, Suzhou, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: 212003, No. 2, Mengxi Road, Zhenjiang, Jiangsu

Patentee before: JIANGSU University OF SCIENCE AND TECHNOLOGY

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 215500 5th floor, building 4, 68 Lianfeng Road, Changfu street, Changshu City, Suzhou City, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: No.13 caodang Road, Changshu City, Suzhou City, Jiangsu Province

Patentee before: Changshu intellectual property operation center Co.,Ltd.