CN109703205B - Printing method, printing device, printer and storage medium - Google Patents

Printing method, printing device, printer and storage medium Download PDF

Info

Publication number
CN109703205B
CN109703205B CN201811638874.4A CN201811638874A CN109703205B CN 109703205 B CN109703205 B CN 109703205B CN 201811638874 A CN201811638874 A CN 201811638874A CN 109703205 B CN109703205 B CN 109703205B
Authority
CN
China
Prior art keywords
printing
print
driving pulse
current
random value
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
CN201811638874.4A
Other languages
Chinese (zh)
Other versions
CN109703205A (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.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic Technology 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 Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202010616511.1A priority Critical patent/CN111923605B/en
Priority to CN201811638874.4A priority patent/CN109703205B/en
Publication of CN109703205A publication Critical patent/CN109703205A/en
Application granted granted Critical
Publication of CN109703205B publication Critical patent/CN109703205B/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
    • B41J2/35Typewriters 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 providing current or voltage to the thermal head
    • 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

Abstract

The invention discloses a printing method, a printing device, printing equipment and a storage medium, wherein the method comprises the following steps: acquiring printing data of a current line; the current line of printing data comprises at least one printing point data, and each printing point data has a printing order M corresponding to the color depth of the printing point data; dividing the preset heating time of the current row into N sub-periods; generating a print driving pulse sequence of each print dot data such that a heating time of each print dot data is randomly allocated to a sub-period of the N-part sub-periods corresponding to the print driving pulse sequence, in accordance with the print order M, N of each print dot data and a random number allocated to each print dot data; and driving corresponding heating elements of the printing head to heat according to the printing driving pulse sequence so as to reproduce the current line of printing data on a printing medium. The invention can avoid the situation that all printing point data are heated simultaneously and reduce the situation that the heating pulse distribution is consistent, so that the image points are full.

Description

Printing method, printing device, printer and storage medium
Technical Field
The invention relates to the technical application field of printers, in particular to a printing method, a printing device, a printer and a storage medium.
Background
The working principle of the thermal printer is that a semiconductor heating element is arranged on a printing head, the printing head can print required patterns after heating and contacting thermal printing paper, and the principle of the thermal printer is similar to that of a thermal fax machine: the image is generated by heating to cause a chemical reaction in the film. The chemical reaction of the thermal printer is carried out at a certain temperature, the chemical reaction is accelerated by high temperature, when the temperature is lower than 60 ℃, the printing paper needs to be changed into dark color for a long time, even for several years, and when the temperature is 200 ℃, the reaction is completed within a few microseconds.
The defects of the prior art are as follows:
1. conventional heating methods, where only the first portion of the heating cycle of a row is heating, produce insufficiently filled image dots, resulting in fine spacing between rows.
2. In the conventional heating method, all printing points are heated at the same time in the first stage during one line printing, and the required peak current is large, namely the instantaneous current required by printing is large.
Disclosure of Invention
The printing method, the printing device, the printer and the storage medium provided by the embodiment of the invention can avoid the situation that all printing point data are heated simultaneously and reduce the situation that the heating pulse distribution is consistent.
In a first aspect, an embodiment of the present invention provides a printing method, including:
acquiring printing data of a current line; the current line of printing data comprises at least one printing point data, and each printing point data has a printing order M corresponding to the color depth of the printing point data; wherein, the preset heating time of the current row is divided into N sub-periods;
generating a print driving pulse sequence of each print dot data such that a heating time of each print dot data is randomly allocated to a sub-period of the N-part sub-periods corresponding to the print driving pulse sequence, in accordance with the print order M, N of each print dot data and a random number allocated to each print dot data;
and driving corresponding heating elements of the printing head to heat according to the printing driving pulse sequence so as to reproduce the current line of printing data on a printing medium.
Preferably, the generating a print driving pulse sequence of each print dot data according to the print order M, N of each print dot data and the random number assigned to each print dot data so that the heating time of each print dot data is randomly assigned to the sub-period of the N-part sub-periods corresponding to the print driving pulse sequence includes:
for each print dot data:
judging whether the printing order M is larger than a random value of the current judgment times; when the current judgment frequency is the first time, the random value is the random number;
when the printing order is larger than or equal to the random value of the current judgment times, configuring a first printing driving pulse code for heating for the current judgment times, and generating a random value of the next judgment times according to N, M and the random value of the current judgment times;
when the printing order is smaller than the random value of the current judgment times, configuring a second printing driving pulse code for non-heating for the current judgment times, and generating a random value of the next judgment times according to M and the random value of the current judgment times;
repeating the steps until the current judgment frequency is Nth;
and obtaining a printing driving pulse sequence of each printing point data according to the printing driving pulse code configured at each judgment time in sequence, so that the heating time of each printing point data is randomly distributed into the sub-period corresponding to the printing driving pulse sequence of N parts of sub-periods.
Preferably, the method further comprises the following steps:
and taking the random value with the current judgment frequency of the Nth time as the random number when the judgment frequency of the next line is the first time.
Preferably, the corresponding heating elements of the print head are driven to heat according to the print driving pulse sequence so as to reproduce the current line of print data on the print medium, specifically:
reading a current printing driving pulse code of the printing driving pulse sequence;
when the current printing driving pulse code is a first printing driving pulse code, driving a corresponding heating element of a printing head to heat;
and when the current printing driving pulse code is the second printing driving pulse code, not driving the corresponding heating element of the printing head to heat.
Preferably, the method further comprises the following steps:
adjusting the duty ratio of the printer according to the temperature and the load condition of a driving printing head of the printer;
and calculating the actual heating time in each sub-period according to the duty ratio and the sub-period heating time.
Preferably, the random number ranges from 0 to N, where N is greater than the maximum value of the print order.
Preferably, the expression for generating the random value of the next judgment number from N, M and the random value of the current judgment number is: N-M + random value of current judgment times;
the expression for generating the random value of the next judgment number according to the M and the random value of the current judgment number is as follows: random value-M of the current judgment times.
In a second aspect, an embodiment of the present invention provides a printing apparatus, including:
a print data acquisition unit for acquiring the print data of the current line; the current line of printing data comprises at least one printing point data, and each printing point data has a printing order M corresponding to the color depth of the printing point data; wherein, the preset heating time of the current row is divided into N sub-periods;
a print drive pulse sequence generating unit configured to generate a print drive pulse sequence of each print dot data such that a heating time of each print dot data is randomly allocated to a subinterval corresponding to the print drive pulse sequence of N subintervals, based on a print order M, N of each print dot data and a random number allocated to each print dot data;
and the heating element heating unit is used for driving corresponding heating elements of the printing head to heat according to the printing driving pulse sequence so as to reproduce the current line of printing data on a printing medium.
Preferably, the printing driving pulse sequence generating unit specifically includes:
for each print dot data:
judging whether the printing order M is larger than a random value of the current judgment times; when the current judgment frequency is the first time, the random value is the random number;
when the printing order is larger than or equal to the random value of the current judgment times, configuring a first printing driving pulse code for heating for the current judgment times, and generating a random value of the next judgment times according to N, M and the random value of the current judgment times;
when the printing order is smaller than the random value of the current judgment times, configuring a second printing driving pulse code for non-heating for the current judgment times, and generating a random value of the next judgment times according to M and the random value of the current judgment times;
repeating the steps until the current judgment frequency is Nth;
and obtaining a printing driving pulse sequence of each printing point data according to the printing driving pulse code configured at each judgment time in sequence, so that the heating time of each printing point data is randomly distributed into the sub-period corresponding to the printing driving pulse sequence of N parts of sub-periods.
Preferably, the heating element heating unit is, in particular:
reading a current printing driving pulse code of the printing driving pulse sequence;
when the current printing driving pulse code is a first printing driving pulse code, driving a corresponding heating element of a printing head to heat;
and when the current printing driving pulse code is the second printing driving pulse code, not driving the corresponding heating element of the printing head to heat.
Preferably, the method further comprises the following steps:
the proportion air conditioner integral unit is used for adjusting the duty ratio of the printer according to the temperature and the load condition of a driving printing head of the printer;
and the calculating unit is used for calculating the actual heating time in each sub-period according to the duty ratio and the sub-period heating time.
Preferably, the random value of which the current determination number is the nth number is used as the random number of the first time of the next row determination.
Preferably, the random number ranges from 0 to N, where N is greater than the maximum value of the print order.
Preferably, the expression for generating the random value of the next judgment number from N, M and the random value of the current judgment number is: N-M + random value of current judgment times; the expression for generating the random value of the next judgment number according to the M and the random value of the current judgment number is as follows: random value-M of the current judgment times.
In a third aspect, an embodiment of the present invention provides a printer, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the printing method according to the first aspect when executing the computer program.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the printing method according to the first aspect.
The embodiment of the invention has the following beneficial effects:
in this embodiment, a printing driving pulse sequence of each printing dot data is generated by the printing order M, N of each printing dot data and the random number allocated to each printing dot data, so that the heating time of each printing dot data is randomly allocated to the sub-period corresponding to the printing driving pulse sequence of N sub-periods, and then the corresponding heating element of the printing head is driven to heat according to the printing driving pulse sequence to complete printing.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a printing method according to a first embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a printing apparatus according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment of the present invention:
referring to fig. 1, a first embodiment of the present invention provides a printing method, which is executed by a printer and includes at least the steps of:
s10, acquiring the printing data of the current line; the current line printing data comprises at least one printing point data, and each printing point data has a printing order M corresponding to the color depth of the printing point data; wherein the preset printing time of the current line is divided into N sub-periods.
In this embodiment, the printer may be a thermal printer, particularly a photo printer or the like, which may receive print data of an image to be printed sent by a user terminal to perform printing according to the print data.
In this embodiment, the print data generally includes a plurality of lines of print data, each line includes a plurality of print dot data, and the print data is printed line by line during printing to reproduce each print dot data on the print medium. Further, for a photo printer, a thermal sublimation printing principle is adopted, and the thermal sublimation printing works by arranging pigments of three colors (cyan, magenta, yellow, CMY for short) on a color ribbon, and when the temperature of a heating element is raised to a certain degree, the pigments are directly converted into a gaseous state and then the gaseous state is sprayed onto a printing medium, so that when a photo is printed, three times of entering and exiting of the printing medium are performed, namely three times of printing, the Y color is printed for the first time, the M color is printed for the second time, and the C color is printed for the third time. At this time, the print data of the image to be printed is divided into three, Y data, M data, and C data.
In the present embodiment, since each print data corresponds to a print dot having a different color depth, the print dot data corresponding thereto has a different print order. For example, for darker colored printed dots, it has a relatively large print order (i.e., requires a longer warm-up time), and for lighter colored printed dots, it has a relatively small print order (i.e., requires a shorter warm-up time). In the present embodiment, assuming that the data range of the color depth of each color is 0 to 255, the corresponding printing order may also be 0 to 255. Of course, it should be noted that, in other embodiments of the present invention, the data range of the color depth of each color may be set according to practical situations, such as 0 to 128, 0 to 64, and the present invention is not limited in particular.
In this embodiment, the printer configures a predetermined printing time for each line of print data, and the printing time is divided into N sub-periods, and the duration of each sub-period is the same. For example: when the predetermined printing time is 1S and 300-part sub-periods are divided, the duration of each part sub-period is 1/300 seconds, and the heating energy in each part sub-period is also the same. Of course, it should be noted that in other embodiments of the present invention, the duration of each sub-period may also be different, and the present invention is not limited in particular.
S20, generating a print driving pulse sequence for each print dot data such that the heating time of each print dot data is randomly allocated to a subinterval of the N subintervals corresponding to the print driving pulse sequence, in accordance with the print order M, N of each print dot data and the random number allocated to each print dot data.
And S30, driving the corresponding heating elements of the printing head to heat according to the printing driving pulse sequence so as to reproduce the current line of printing data on the printing medium.
In this embodiment, for each print order of print dot data, it is generally necessary to allocate a corresponding sub-period to heat it to meet the color depth requirement. For example, if each sub-period is set to correspond to a 1-dot printing order, printing dot data with a printing order of M needs to be printed in M sub-periods to achieve complete printing. Of course, it should be noted that, in the embodiment of the present invention, it may also be set that each sub-period corresponds to a 2-dot printing order, and the printing dot data with the printing order M needs to use M/2 sub-periods to implement complete printing. For convenience of explanation, the present invention is described by taking an example in which each sub-period corresponds to a 1-dot printing order.
According to the existing method, M sub-periods corresponding to printing point data with the printing order of M are intensively distributed to the front M sub-periods of each printing time, so that only the front period of a heating period of a line is heated, image points generated by heating are not full enough, fine intervals exist between every two lines, and the problem that all printing points are heated at the front stage simultaneously when a line is printed occurs, the required peak current is large, namely the instantaneous current required by printing is large.
For this reason, in the present embodiment, a random number is introduced, and the sub-period corresponding to each print dot data is randomly allocated to all N sub-periods according to the print order M, N of each print dot data and the random number allocated to each print dot data, so that heating of all heating elements in some time period does not occur, the requirement for the peak current of the power supply is reduced, and the heating image is made fuller by distributed heating.
In this embodiment, a printing driving pulse sequence of each printing dot data is generated by the printing order M, N of each printing dot data and the random number allocated to each printing dot data, so that the heating time of each printing dot data is randomly allocated to the sub-period corresponding to the printing driving pulse sequence of N sub-periods, and then the corresponding heating element of the printing head is driven to heat according to the printing driving pulse sequence to complete printing.
On the basis of the first embodiment, in a preferred embodiment of the present invention, the method further includes:
for each print dot data:
judging whether the printing order M is larger than a random value of the current judgment times; when the current judgment frequency is the first time, the random value is the random number;
when the printing order is larger than or equal to the random value of the current judgment times, configuring a first printing driving pulse code for heating for the current judgment times, and generating a random value of the next judgment times according to N, M and the random value of the current judgment times;
when the printing order is smaller than the random value of the current judgment times, configuring a second printing driving pulse code for non-heating for the current judgment times, and generating a random value of the next judgment times according to M and the random value of the current judgment times;
and repeating the steps until the current judgment frequency is Nth.
And obtaining a printing driving pulse sequence of each printing point data according to the printing driving pulse code configured at each judgment time in sequence, so that the heating time of each printing point data is randomly distributed into the sub-period corresponding to the printing driving pulse sequence of N parts of sub-periods.
In this embodiment, when the print order is equal to or greater than the random value of the current determination number, a first print driving pulse code (for example, the number 1) for heating is output, and a random value of the next determination number is generated from N, M and the random value of the current determination number for comparison with the print order of the next determination number. Wherein, the expression for generating the random value of the next judgment times according to N, M and the random value of the current judgment times is as follows: N-M + random value of current judgment times.
In this embodiment, when the printing order is smaller than the random value of the current determination number, a second print driving pulse code (for example, a number 0) for heating is output, and a random value of the next determination number is generated from M and the random value of the current determination number for comparison with the printing order of the next determination number. Wherein, the expression for generating the random value of the next judgment times according to M and the random value of the current judgment times is as follows: random value-M of the current judgment times. Of course, it should be noted that the first print driving pulse code is different from the second print driving pulse code.
On the basis of the first embodiment, in a preferred embodiment of the present invention, the method further includes: and taking the random value with the current judgment frequency of the Nth time as the random number when the judgment frequency of the next line is the first time. It should be noted that, in other embodiments, the random number generated when the next row determines the first digit may also be a random number generated randomly according to a random algorithm, and the present invention is not limited in this respect.
On the basis of the first embodiment, in a preferred embodiment of the present invention, the method further includes: reading a current printing driving pulse code of the printing driving pulse sequence; when the current printing driving pulse code is a first printing driving pulse code, driving a corresponding heating element of a printing head to heat; and when the current printing driving pulse code is the second printing driving pulse code, not driving the corresponding heating element of the printing head to heat.
To facilitate understanding of the present invention, the following description is made by way of practical examples:
example 1: for example, it is assumed that the first print driving pulse code is a value 1, the second print driving pulse code is a value 0, the heating time N is 5, and the print order M of the first print dot data is 2. Then, the printing order of the first printing point data is randomly distributed into the sub-period corresponding to the printing driving pulse sequence in N sub-periods, for example, when the printing order of the first printing point data in the first sub-period is greater than or equal to the random value of the current judgment number, the printing driving pulse code of the point is 1, when the printing order of the second printing point data in the second sub-period is less than the random value of the current judgment number, the printing driving pulse code of the point is 0, when the printing order of the third printing point data in the third sub-period is less than the random value of the current judgment number, the printing driving pulse code of the point is 0, when the printing order of the fourth printing point data in the fourth sub-period is less than the random value of the current judgment number, the printing driving pulse code of the point is 0, and when the printing order of the fifth printing point data in the fifth sub-period is greater than or equal to the random value of the current judgment number, then the print drive pulse code for that dot is the value 1 and the print drive pulse sequence is 11000. Example 2: for example, a line of data has 600 dots of print dot data, then there are 600 print orders: m1, M2 … … M600, data 1 representing the first print driving pulse code, data 0 representing the second print driving pulse code, each print dot data generating a corresponding driving waveform, taking the data M1 of the first print dot as an example, the method is as follows:
when the N is 1, if the random number R1 is less than or equal to M1, outputting a first printing driving pulse code 1, and updating the random value R2 to N-M1+ R1 for the time when the N is 2;
if the random number R1 is greater than M1, outputting a second printing driving pulse code 0, and updating the random value R2 to be R1-M1 for the time when N is 2;
when the time is N2, if the random number R2 is less than or equal to M1, outputting the first printing driving pulse code 1, and updating the random value R3 to N-M1+ R2 for the time when the time is N3;
if the random number R2 is larger than M1, outputting a second printing driving pulse code 0, and updating the random value R2 to be R2-M1 for the time when N is 3;
if the random number RN is not greater than M1, outputting the first print driving pulse code 1, and updating the random value R1 to N-M1+ R (N-1) for the next line of print data N to 1;
if the random number R (N-1) > M1, the second print driving pulse code 0 is output, and the random value R ═ R (N-1) -M1 is updated for use at the time when the next line of print data N ═ 1. In the present embodiment, by implementing the above method for each print dot data, and by the print drive pulse code output at each sub-timing, the print drive pulse code sequence for each print dot data can be obtained.
On the basis of the first embodiment, a preferred embodiment of the present invention further includes:
adjusting the duty ratio of the printer according to the temperature and the load condition of a driving printing head of the printer; and calculating the actual heating time in each sub-period according to the duty ratio and the sub-period heating time. By adjusting the duty ratio of the printer at the same time, the load is balanced, and the influence on the power supply is reduced.
On the basis of the first embodiment, in a preferred embodiment of the present invention, the range of the random number is between 0 and N; wherein N is greater than the maximum value of the print order.
In this embodiment, if N ═ M, when the print order is at a maximum, then heating needs to be performed all over the time period, resulting in a maximum peak current and a too fast temperature rise. Therefore, N is set to be larger than M, and the heating process is discontinuous, so that the temperature rise can be controlled.
In this embodiment, the random number is a random number randomly generated according to a random algorithm. For example, a line of pseudo-random data is generated by a linear congruence method, and the data is subjected to modulo-N calculation to obtain a line of random numbers ranging from 0 to N.
An embodiment of the present invention further provides a printing apparatus, including:
a print data acquisition unit 100 for acquiring the current line print data; the current line of printing data comprises at least one printing point data, and each printing point data has a printing order M corresponding to the color depth of the printing point data; wherein, the preset heating time of the current row is divided into N sub-periods;
a print driving pulse sequence generating unit 200 for generating a print driving pulse sequence of each print dot data so that a heating time of each print dot data is randomly allocated to a subinterval corresponding to the print driving pulse sequence of N subintervals, based on the print order M, N of each print dot data and a random number allocated to each print dot data;
and a heating element heating unit 300 for driving corresponding heating elements of the print head to heat according to the print driving pulse sequence to reproduce the current line of print data on the print medium.
Preferably, the print driving pulse sequence generating unit 200 is specifically:
for each print dot data:
judging whether the printing order M is larger than a random value of the current judgment times; when the current judgment frequency is the first time, the random value is the random number;
when the printing order is larger than or equal to the random value of the current judgment times, configuring a first printing driving pulse code for heating for the current judgment times, and generating a random value of the next judgment times according to N, M and the random value of the current judgment times;
when the printing order is smaller than the random value of the current judgment times, configuring a second printing driving pulse code for non-heating for the current judgment times, and generating a random value of the next judgment times according to M and the random value of the current judgment times;
repeating the steps until the current judgment frequency is Nth;
and obtaining a printing driving pulse sequence of each printing point data according to the printing driving pulse code configured at each judgment time in sequence, so that the heating time of each printing point data is randomly distributed into the sub-period corresponding to the printing driving pulse sequence of N parts of sub-periods.
Preferably, the heating element heating unit 300, in particular:
reading a current printing driving pulse code of the printing driving pulse sequence;
when the current printing driving pulse code is a first printing driving pulse code, driving a corresponding heating element of a printing head to heat;
and when the current printing driving pulse code is the second printing driving pulse code, not driving the corresponding heating element of the printing head to heat.
Preferably, the method further comprises the following steps:
and taking the random value with the current judgment frequency of the Nth time as the random number when the judgment frequency of the next line is the first time.
Preferably, the method further comprises the following steps:
the proportion air conditioner integral unit is used for adjusting the duty ratio of the printer according to the temperature and the load condition of a driving printing head of the printer;
and the calculating unit is used for calculating the actual heating time in each sub-period according to the duty ratio and the sub-period heating time.
Preferably, the random number ranges from 0 to N, where N is greater than the maximum value of the print order.
Preferably, the expression for generating the random value of the next judgment number from N, M and the random value of the current judgment number is: N-M + random value of current judgment times; the expression for generating the random value of the next judgment number according to the M and the random value of the current judgment number is as follows: random value-M of the current judgment times.
An embodiment of the present invention further provides a printer, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the printing method according to the above embodiment is implemented.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the printing method according to the above embodiment.
Illustratively, the computer programs described herein can be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, the instruction segments describing the execution process of the computer program in the implementation server device. For example, the devices described in the third and fourth embodiments of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the control center of the printer, connecting the various parts of the overall printer using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the printing method by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the user terminal, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module for realizing the service device can be stored in a computer readable storage medium if it is realized in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of printing, comprising:
acquiring printing data of a current line; the current line of printing data comprises at least one printing point data, and each printing point data has a printing order M corresponding to the color depth of the printing point data; the preset heating time of the current row is divided into N sub-periods;
generating a print driving pulse sequence of each print dot data such that a heating time of each print dot data is randomly allocated to a sub-period of the N-part sub-periods corresponding to the print driving pulse sequence, in accordance with the print order M, N of each print dot data and a random number allocated to each print dot data; specifically, for each printing point data, judging whether the printing order M is larger than a random value of the current judgment times, so as to configure a printing driving pulse code for heating or not for the current judgment times, and sequentially generating a printing driving pulse sequence according to the printing driving pulse code configured for each judgment time; generating a random value of the next judgment frequency according to N, M and the random value of the current judgment frequency or M and the random value of the current judgment frequency; when the current judgment times is the first time, the random value is the random number;
and driving corresponding heating elements of the printing head to heat according to the printing driving pulse sequence so as to reproduce the current line of printing data on a printing medium.
2. The printing method according to claim 1, wherein the generating of the print driving pulse sequence for each print dot data based on the print order M, N of each print dot data and the random number assigned to each print dot data so that the heating time of each print dot data is randomly assigned to the subinterval corresponding to the print driving pulse sequence of N subintervals specifically is:
for each print dot data:
judging whether the printing order M is larger than a random value of the current judgment times; when the current judgment frequency is the first time, the random value is the random number;
when the printing order M is larger than or equal to the random value of the current judgment times, configuring a first printing driving pulse code for heating the current judgment times, and generating a random value of the next judgment times according to N, the printing order M and the random value of the current judgment times;
when the printing order M is smaller than the random value of the current judgment times, configuring a second printing driving pulse code for non-heating for the current judgment times, and generating a random value of the next judgment times according to the printing order M and the random value of the current judgment times;
repeating the steps until the current judgment frequency is Nth;
and obtaining a printing driving pulse sequence of each printing point data according to the printing driving pulse code configured at each judgment time in sequence, so that the heating time of each printing point data is randomly distributed into the sub-period corresponding to the printing driving pulse sequence of N parts of sub-periods.
3. The printing method of claim 2, further comprising:
and taking the random value with the current judgment frequency of the Nth time as the random number when the judgment frequency of the next line is the first time.
4. The printing method according to claim 2, wherein the corresponding heating elements of the print head are driven to heat according to the print driving pulse sequence to reproduce the current line of print data on the print medium, specifically:
reading a current printing driving pulse code of the printing driving pulse sequence;
when the current printing driving pulse code is a first printing driving pulse code, driving a corresponding heating element of a printing head to heat;
and when the current printing driving pulse code is the second printing driving pulse code, not driving the corresponding heating element of the printing head to heat.
5. The printing method of claim 1, further comprising:
adjusting the duty ratio of the printer according to the temperature and the load condition of a driving printing head of the printer;
and calculating the actual heating time in each sub-period according to the duty ratio and the heating time of the sub-period.
6. The printing method of claim 1, wherein the random number ranges between 0-N; wherein N is greater than the maximum value of the print order.
7. The printing method according to claim 2,
the expression for generating the random value of the next judgment number from N, M and the random value of the current judgment number is: N-M + random value of current judgment times;
the expression for generating the random value of the next judgment number according to the M and the random value of the current judgment number is as follows: random value-M of the current judgment times.
8. A printing apparatus, comprising:
a print data acquisition unit for acquiring the print data of the current line; the current line of printing data comprises at least one printing point data, and each printing point data has a printing order M corresponding to the color depth of the printing point data; wherein, the preset heating time of the current row is divided into N sub-periods;
a print drive pulse sequence generating unit configured to generate a print drive pulse sequence of each print dot data such that a heating time of each print dot data is randomly allocated to a subinterval corresponding to the print drive pulse sequence of N subintervals, based on a print order M, N of each print dot data and a random number allocated to each print dot data; the method specifically comprises the following steps: for each printing point data, judging whether the printing order M is larger than a random value of the current judgment times, configuring a printing driving pulse code for heating or not for the current judgment times, and sequentially generating a printing driving pulse sequence according to the printing driving pulse code configured for each judgment time; generating a random value of the next judgment frequency according to N, M and the random value of the current judgment frequency or M and the random value of the current judgment frequency; when the current judgment times is the first time, the random value is the random number;
and the heating element heating unit is used for driving corresponding heating elements of the printing head to heat according to the printing driving pulse sequence so as to reproduce the current line of printing data on a printing medium.
9. A printer comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the printing method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the printing method according to any one of claims 1 to 7.
CN201811638874.4A 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium Active CN109703205B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010616511.1A CN111923605B (en) 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium
CN201811638874.4A CN109703205B (en) 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811638874.4A CN109703205B (en) 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010616511.1A Division CN111923605B (en) 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium

Publications (2)

Publication Number Publication Date
CN109703205A CN109703205A (en) 2019-05-03
CN109703205B true CN109703205B (en) 2020-12-22

Family

ID=66260101

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201811638874.4A Active CN109703205B (en) 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium
CN202010616511.1A Active CN111923605B (en) 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010616511.1A Active CN111923605B (en) 2018-12-29 2018-12-29 Printing method, printing device, printer and storage medium

Country Status (1)

Country Link
CN (2) CN109703205B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110466260B (en) * 2019-07-23 2021-08-06 厦门汉印电子技术有限公司 Heating control method and device in printing process, printer and storage medium
CN112440584B (en) * 2020-11-24 2021-09-10 厦门喵宝科技有限公司 Circuit device and method for improving consistency of thermal printing density
CN113821182B (en) * 2021-11-23 2022-03-01 虎丘影像(苏州)有限公司 Printed image output method and device and electronic equipment
CN114312036B (en) * 2021-12-24 2022-11-08 福建新大陆支付技术有限公司 Method for controlling history of heating data of thermal print head, storage medium, and printer

Family Cites Families (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56115280A (en) * 1980-02-16 1981-09-10 Sony Corp Thermal head driving circuit for facsimile apparatus
DE3329311A1 (en) * 1983-08-13 1985-02-28 Ricoh Co., Ltd., Tokio/Tokyo System for activating a thermal printing head
JPS63317362A (en) * 1987-06-19 1988-12-26 Shinko Electric Co Ltd Printing method in thermal printer
JP3254913B2 (en) * 1993-07-21 2002-02-12 セイコーエプソン株式会社 Control method of print head
WO1995028283A1 (en) * 1994-04-15 1995-10-26 Rohm Co., Ltd. Thermal print head, driving ic used therefor, and control method of thermal print head
WO1996026073A1 (en) * 1995-02-23 1996-08-29 Rohm Co., Ltd. Method and device for controlling drive of thermal print head and driving ic chip
CN1289682A (en) * 1999-09-29 2001-04-04 华威光电股份有限公司 Device and method for voltage compensation of thermal print head in thermal sublimation type table printer
US7791626B2 (en) * 2001-05-30 2010-09-07 Zink Imaging, Inc. Print head pulsing techniques for multicolor printers
US7830405B2 (en) * 2005-06-23 2010-11-09 Zink Imaging, Inc. Print head pulsing techniques for multicolor printers
JP2003191517A (en) * 2001-12-27 2003-07-09 Seiko Epson Corp Thermal printer and its print control method
TWI222410B (en) * 2003-05-15 2004-10-21 Hi Touch Imaging Tech Co Ltd Thermal printer and method for transferring dyes on multiple dye blocks onto media
TW583104B (en) * 2003-07-30 2004-04-11 Hi Touch Imaging Tech Co Ltd Method for increasing thermal print quality
CN100519208C (en) * 2003-08-11 2009-07-29 诚研科技股份有限公司 Method for increasing hot-printing quality
KR100636195B1 (en) * 2004-11-20 2006-10-19 삼성전자주식회사 Method for driving printer head and image forming device employing the same
KR100788658B1 (en) * 2004-12-15 2007-12-26 삼성전자주식회사 Method for driving thermal head and image forming device employing the same
TWI245707B (en) * 2004-12-17 2005-12-21 Hi Touch Imaging Tech Co Ltd Method for image processing by adjusting heating time
JP4848705B2 (en) * 2005-08-19 2011-12-28 セイコーエプソン株式会社 Thermal printer, thermal printer control method and control program
TWI266704B (en) * 2005-10-19 2006-11-21 Lite On Technology Corp Driver circuit, control method, and related thermal print head
CN100453326C (en) * 2005-10-28 2009-01-21 光宝科技股份有限公司 Driving circuit and its control method and correlation thermal transfer printing head
JP2008046698A (en) * 2006-08-11 2008-02-28 Kyocera Mita Corp Printing system
TW200817199A (en) * 2006-10-04 2008-04-16 Lite On Technology Corp Thermal printing apparatuses and printing methods thereof
CN100548699C (en) * 2006-10-16 2009-10-14 光宝科技股份有限公司 Heat printing device and Method of printing thereof
CN100584627C (en) * 2008-09-25 2010-01-27 北京公达数码科技有限公司 Thermosensitive printer sectional drive printing method and system
CN102336064B (en) * 2010-07-19 2014-07-30 诚研科技股份有限公司 Method for heating thermal write head of dye-sublimation printer
CN104191824A (en) * 2014-09-19 2014-12-10 青岛海信智能商用系统有限公司 Thermal printer and method for controlling same
CN109016890B (en) * 2017-06-09 2020-08-07 深圳九磊科技有限公司 Memory, thermal printer and printing control method thereof
CN107878059B (en) * 2017-09-22 2020-01-31 福建联迪商用设备有限公司 Efficient printing method and storage medium
CN108773194B (en) * 2018-05-04 2019-07-12 飞天诚信科技股份有限公司 A kind of printer and the method for improving print speed
CN110466260B (en) * 2019-07-23 2021-08-06 厦门汉印电子技术有限公司 Heating control method and device in printing process, printer and storage medium

Also Published As

Publication number Publication date
CN111923605A (en) 2020-11-13
CN109703205A (en) 2019-05-03
CN111923605B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN109703205B (en) Printing method, printing device, printer and storage medium
EP0962323B1 (en) Printer, method of printing, and recording medium for implementing the method
US9030712B2 (en) Image processing apparatus, printing apparatus, and image processing method
US9462147B2 (en) Image processing apparatus, image processing method, recording apparatus, and non-transitory computer-readable storage medium
JPS62256576A (en) Thermosensitive recorder
US7607747B2 (en) Printing device, printing device control program, printing device control method, printing data producing device, printing data producing program, printing data producing method, correction information producing method, and correction information producing device
JP2001086338A (en) Density calibration chart
CN110303775B (en) Method for adjusting printing speed of thermal printer, computer device and computer readable storage medium
JP2004202795A (en) Image processor and its method
JP2018001653A (en) Thermal printer
JP2008126616A5 (en)
JP3040407B2 (en) Image recording device
JP2017030149A (en) Printing control device and printing control method
US8681382B1 (en) Threshold matrix diffusion halftoning
US20210283925A1 (en) Image processing apparatus, image processing method, and inkjet printing apparatus
WO2019012759A1 (en) Image-processing device and method, program, and image-recording device
EP3078498B1 (en) Thermal printer
US7319473B2 (en) Thermal recording system and method
JPH09254412A (en) Printing apparatus
CN103856684A (en) Image processing apparatus and image processing method
JP2013123831A (en) Image forming apparatus and image forming method
US20210300060A1 (en) Simultaneous color development for thermally activated print media
JP2007008171A (en) Printer, printing method and recording medium
JP5574347B2 (en) Device having a unit for controlling a thermal head
US20230249452A1 (en) Recording device and recording 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