Method and apparatus for implementing thermal printing

By rationally arranging the parallel execution of the heating and motor drive sub-processes, the problem of slow printing speed and font distortion caused by asynchronous heating and motor operation in thermal printers has been solved, thus improving the printing effect.

WO2026065640A1PCT designated stage Publication Date: 2026-04-02FEITIAN TECHNOLOGIES CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

Existing thermal printers suffer from slow printing speeds, distorted fonts, and poor print quality due to asynchronous heating and motor operation.

Method used

By acquiring printing information and the number of printable dots, the number of print runs and the number of dots printed each time are determined. The heating time and motor stepping time for each print run are calculated, and the sub-processes of heating, stopping heating, and driving the motor are arranged in a reasonable manner. These processes are executed in parallel to complete the printing.

Benefits of technology

It improved printing efficiency, solved the problems of font stretching and compression, and enhanced the printing effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024128269_02042026_PF_FP_ABST
    Figure CN2024128269_02042026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present disclosure are a method and apparatus for implementing thermal printing. The method comprises: on the basis of current information to be printed, determining the number of printing passes and heating time required for printing; on the basis of the number of printing passes, motor stepping time, and the heating time required for current printing, determining sub-processes to be executed for printing the current information to be printed and sub-process execution time, wherein the sub-processes include a heating process, a heating stop process and a motor driving process, and the sub-process execution time comprises a sub-process execution start time and a sub-process execution duration; and on the basis of the determined sub-process execution time, executing the sub-processes in parallel to complete a printing operation. The solution of the present disclosure solves the problems in the prior art of low printing efficiency and font stretching and compression, thereby improving the printing efficiency and improving the printing effect.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for thermal printing Cross-reference to related applications

[0001] This application claims priority to Chinese Patent Application No. 202411365628.1, filed on September 29, 2024, entitled "Method and device for thermal printing", the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

[0002] The present disclosure relates to the field of printing technology, and in particular, to a method and device for thermal printing. BACKGROUND

[0003] The thermal printer is a commonly used printing device for printing bills. The thermal printer has no consumables and fast printing speed. Currently, due to the limitation of printing current, the portable thermal printer on the market usually adopts a segmented heating method, which heats a fixed number of points at a time. Printing half a point row of data requires multiple transmissions to the printer. Generally, multiple timers are used to control the printhead to perform paper feeding and heating in sequence or independently. However, this method of controlling paper feeding and heating by multiple timers has the problems of slow printing speed, discontinuous motor rotation, and deformed (elongated or compressed) font, resulting in poor printing effect. SUMMARY

[0004] To solve the above technical problems, the present disclosure provides a method and device for thermal printing. The technical solution is as follows:

[0005] According to a first aspect of the present disclosure, a method for thermal printing is provided, comprising:

[0006] Step S1, obtaining current to-be-printed information and print-bearing point number;

[0007] Step S2, determining printing times and each printing point number according to the print-bearing point number and the current to-be-printed information;

[0008] Step S3, determining heating time required for each printing according to the each printing point number, and obtaining motor stepping time;

[0009] Step S4, determining sub-processes and sub-process execution time to be executed for printing the current to-be-printed information according to the printing times, the motor stepping time, and the heating time required for each printing, wherein the sub-processes include a heating process, a stopping heating process, and a driving motor process, and the sub-process execution time includes sub-process execution start time and sub-process execution duration;

[0010] Step S5, executing each sub-process in parallel according to the determined sub-process execution time to complete the printing operation.

[0011] According to a second aspect of the present disclosure, the embodiments of the present disclosure provide a device for implementing thermal printing, characterized in that the device comprises:

[0012] an acquisition module, configured to acquire current information to be printed and a print endurance point number;

[0013] a first determination module, configured to determine a printing number and a printing point number per time according to the print endurance point number and the current information to be printed;

[0014] a second determination module, configured to determine a heating time required per time according to the printing point number per time, and acquire a motor stepping time;

[0015] a third determination module, configured to determine a sub-process and a sub-process execution time of a sub-process to be executed for printing the current information to be printed according to the printing number, the motor stepping time and the heating time required per time, the sub-process comprising a heating process, a stopping heating process and a driving motor process, and the sub-process execution time comprising a sub-process execution start time and a sub-process execution duration;

[0016] an execution module, configured to execute the sub-processes in parallel according to the determined sub-process execution time to complete the printing operation.

[0017] According to a third aspect of the present disclosure, the embodiments of the present disclosure provide a computer device, comprising a memory, a processor and a computer program stored in the memory, the processor executes the computer program to implement the method for implementing thermal printing according to the first aspect.

[0018] According to a fourth aspect of the present disclosure, the embodiments of the present disclosure provide a computer readable storage medium, having a computer program / instruction stored thereon, the computer program / instruction is executed by a processor to implement the method for implementing thermal printing according to the first aspect.

[0019] According to a fifth aspect of the present disclosure, the embodiments of the present disclosure provide a computer program product, comprising a computer program / instruction, the computer program / instruction is executed by a processor to implement the method for implementing thermal printing according to the first aspect.

[0020] The technical scheme provided by the embodiments of the present disclosure has at least the following beneficial effects:

[0021] The method and device for realizing thermal printing are provided, and the number of printable dots and the number of printing times are obtained according to the information to be printed, and the heating time of each printing is obtained, the sub-process to be executed for the current information to be printed and the sub-process execution time are determined according to the motor step time, the number of printing times, the heating time required for printing, and the cumulative statistical time, the heating, driving motor and stopping heating processes are executed in parallel in the whole printing process according to the determined sub-process execution time to complete the printing operation, the problems of low printing efficiency, existence of font stretching and compression caused by the asynchronization of heating and motor in the prior art are solved, and the printing efficiency is improved, and the printing effect is improved. BRIEF DESCRIPTION OF DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor.

[0023] Fig. 1 is a flowchart of a method for realizing thermal printing according to an embodiment of the present disclosure;

[0024] Fig. 2 is a flowchart of a method for realizing thermal printing according to an embodiment of the present disclosure;

[0025] Fig. 3 is a flowchart of a method for realizing thermal printing according to an embodiment of the present disclosure;

[0026] Fig. 4 is a schematic diagram of an implementation process for determining the sub-process to be executed for the current information to be printed and the sub-process execution time in the method for realizing thermal printing according to an embodiment of the present disclosure;

[0027] Fig. 5 is a signal diagram of a printer running according to the printing, paper feeding and heating table data according to an embodiment of the present disclosure;

[0028] Fig. 6 is a comparison effect diagram of thermal printing realized by the technical solution of the present disclosure and thermal printing realized by the prior art according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the drawings.

[0030] The following description refers to the accompanying drawings. Unless otherwise noted, like elements in different drawings have the same or similar numbering. No embodiment described in the following examples represents all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as described in the appended claims.

[0031] At present, the working principle of the thermal printer is that different positions on the print head of the thermal printer are provided with heating elements, and the control circuit can control the heating elements at different positions of the print head to be powered on. When the heating elements pass through a certain current, high temperature will be generated quickly. When the coating layer of the thermal paper meets the powered-on heating elements, the temperature will rise in a very short time, and the coating layer on the thermal paper will react chemically to show color. Then the control circuit controls the motor to rotate to make the print head contact other parts of the thermal printing paper (i.e. control the motor to feed the paper), and then print a complete pattern on the entire thermal paper.

[0032] As the thermal printer powering on one heating element is equivalent to heating one point (i.e. printing one ink dot), and as the thermal printer powering on multiple heating elements at the same time is equivalent to heating multiple points at the same time (i.e. printing multiple ink dots). The power and time required for heating each point are determined by the supply voltage, the ambient temperature, and the heating element (such as a heating resistor). Due to the limitation of the actual power supply power, the number of points heated at the same time is limited.

[0033] In an example, generally due to the limitation of the printing current, the thermal printer usually adopts a segmented heating mode, and a fixed number of points are heated each time. The data for printing half a point row needs to be transmitted to the printer multiple times, and the paper feeding and heating process is performed by multiple timers in sequence or independently. However, if the paper feeding and heating process is performed in sequence, there will be problems of slow printing speed and discontinuous motor rotation. If the paper feeding and heating process is performed independently, there will be problems of deformed font (elongated or compressed font) and poor printing effect.

[0034] To make the objectives, technical solutions, and advantages of the present disclosure clearer, a method for realizing thermal printing provided by the embodiments of the present disclosure will be described in detail below with reference to the drawings.

[0035] Embodiment One

[0036] Embodiment One of the present disclosure provides a method for realizing thermal printing, as shown in FIG. 1, the method comprises:

[0037] Step 101, obtaining current to-be-printed information and print bearing point number;

[0038] Step 102, determining the printing times and the number of points printed each time according to the print bearing point number and the current to-be-printed information.

[0039] Step 103, determining the heating time required for each printing according to the printing points, and obtaining the motor stepping time;

[0040] Step 104, determining the sub-processes and the sub-process execution time to be executed for printing the current information to be printed according to the printing times, the motor stepping time and the heating time required for each printing, the sub-processes including a heating process, a stopping heating process and a driving motor process, and the sub-process execution time including a sub-process execution start time and a sub-process execution duration;

[0041] Step 105, executing the sub-processes in parallel according to the determined sub-process execution time to complete the printing operation.

[0042] In an implementable manner, before Step 103, the method further includes: determining whether the current information to be printed is an empty data line, and if yes, obtaining the motor stepping time, determining that the sub-process to be executed for printing the current information to be printed is the driving motor process, determining that the driving motor process execution time is the motor stepping time, executing the driving motor process according to the motor stepping time to complete the printing operation, and if not, executing Step 103.

[0043] In an implementable manner, the determining the sub-processes and the sub-process execution time to be executed for printing the current information to be printed according to the printing times, the motor stepping time and the heating time required for each printing specifically includes:

[0044] Step 1041, setting the current heating cumulative time and the current cumulative printing times as first preset values, determining that the executed sub-processes include the driving motor process, determining that the driving motor process execution start time is the first preset value, and determining that the driving motor process execution duration is the motor stepping time;

[0045] Step 1042, determining whether the current cumulative printing times is the printing times determined for the current information to be printed, and if yes, executing Step 1044, and if not, executing Step 1043;

[0046] Step 1043, determining whether the current printing meets a first condition according to the current heating cumulative time and the motor stepping time, and determining the sub-processes and the sub-process execution time to be executed for the current printing according to the determination result, updating the current heating cumulative time and the current cumulative printing times, and returning to Step 1042;

[0047] Step 1044, determining whether the current printing meets a second condition according to the current heating cumulative time and the motor stepping time, and determining the sub-processes and the sub-process execution time to be executed for the current printing according to the determination result, and ending.

[0048] Specifically, the motor step time includes a first motor step time and a second motor step time, and the determination of whether the current printing meets the first condition according to the current heating cumulative time and the motor step time is specifically: determining whether the current heating cumulative time is less than the first motor step time and whether the sum of the current heating cumulative time and the heating time required by the current printing is greater than the first motor step time, if yes, the first condition is met, if not, the first condition is not met.

[0049] The determination result is specifically that the first condition is met, and the determination of the sub-process to be executed by the current printing and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed by the current printing includes a heating process and a motor driving process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the heating time required by the current printing, determining that the execution start time of the motor driving process is the end time point of the first motor step time, determining that the execution duration of the motor driving process is the second motor step time, updating the current heating cumulative time to the heating time required by the current printing, and updating the current cumulative printing number.

[0050] The determination result is specifically that the first condition is not met, and the determination of the sub-process to be executed by the current printing and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed by the current printing includes a heating process, determining that the execution start time of the heating process is the current heating cumulative time point, and the execution duration is the heating time required by the current printing, updating the current heating cumulative time to the heating time required by the current printing, and updating the current cumulative printing number.

[0051] Specifically, the motor step time includes a first motor step time and a second motor step time, and the determination of whether the current printing meets the second condition according to the current heating cumulative time and the motor step time is specifically: determining whether the current heating cumulative time is less than the first motor step time, if yes, the second condition is met, if not, the second condition is not met.

[0052] The determination result is specifically that the second condition is met, and the determination of the sub-process to be executed by the current printing and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed by the current printing includes a heating process and a motor driving process, determining that the execution start time of the heating process is the current heating cumulative time point, and the execution duration is the difference between the first motor step time and the current heating cumulative time, determining that the execution start time of the motor driving process is the end time point of the first motor step time, and determining that the execution duration of the motor driving process is the second motor step time.

[0053] The determination result is specifically that the second condition is not met, and the determining the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes a stop heating process, determining that the execution start time of the stop heating process is the current heating cumulative time point, and the execution duration is the difference between the sum of the first motor step time and the second motor step time and the current heating cumulative time.

[0054] In an implementable manner, step 105 specifically includes:

[0055] Step 1051, obtaining the first executed sub-process as the current sub-process according to the sub-process start execution time, and sending a corresponding execution signal according to the current sub-process;

[0056] Step 1052, determining a to-be-executed sub-process when the sub-process execution duration corresponding to the current sub-process is completed;

[0057] Step 1053, taking the to-be-executed sub-process as the current sub-process, determining whether the current sub-process includes a heating process, if yes, the heating process does not send an execution signal, other sub-processes send corresponding execution signals, and step 1054 is executed, otherwise, a corresponding execution signal is sent according to the current sub-process, and step 1054 is executed;

[0058] Step 1054, determining whether there is a to-be-executed sub-process when the current sub-process execution duration is completed, if yes, determining the to-be-executed sub-process, and executing step 1053, otherwise, the current to-be-printed information is printed and ends.

[0059] Specifically, the execution signal corresponding to the driving motor process is a first signal, the execution signal corresponding to the heating process is a second signal, and the execution signal corresponding to the stop heating process is a third signal.

[0060] The sending of the corresponding execution signal according to the current sub-process specifically includes: if the current sub-process is the driving motor process, the first signal is sent, if the current sub-process is the heating process, the second signal is sent, and if the current sub-process is the stop heating process, the third signal is sent.

[0061] Further, the first signal is specifically: driving the motor to change the phase and the paper feed signal.

[0062] The second signal is specifically: a control printing head opening heating signal.

[0063] The third signal is specifically: a control printing head stop heating signal.

[0064] In the embodiment, each sub-process overlaps in execution time during execution, and each sub-process is synchronously performed in the time overlapping part.

[0065] Embodiment two

[0066] The second embodiment of the present disclosure provides a method for implementing thermal printing, as shown in FIG. 2 and FIG. 3,

[0067] Step 201, receiving a printing instruction, obtaining to-be-printed data and a printing bearing point number;

[0068] In the embodiment, the execution subject is a printer, specifically a thermal printer device or a terminal device with a thermal printing function;

[0069] In the embodiment, the printing bearing point number of the printer is determined according to the stable electric power provided by the hardware to the thermal print head. Due to the performance of the printer and the limitation of the paper, the printing bearing point number of the printer will be different. For example, the printing point number of the printer for printing each point row of data is 384 points or 600+ points. In the present disclosure, the printing bearing point number of the printer is preset in advance, specifically a second preset value, which is less than 384, for example, the second preset value is 192.

[0070] Step 202: converting the to-be-printed data into a two-dimensional dot matrix pattern, and taking the first row of information in the two-dimensional dot matrix pattern as current to-be-printed information;

[0071] In the embodiment, step 202 further includes: judging whether the current to-be-printed information is an empty data row. If yes, obtaining a motor stepping time, determining that the sub-process to be executed for printing the current to-be-printed information is a motor driving process, the execution time of the motor driving process is the motor stepping time, executing the motor driving process to complete the printing operation of the current to-be-printed information, otherwise, executing step 203;

[0072] The embodiment of the present disclosure mainly describes the case that the to-be-printed information is a row of data with black dots. Only the row of data with black dots involves heating. If it is an empty data row, it does not involve heating, but only involves motor driving a paper feeding roller.

[0073] In the embodiment, the first row of information can be a full dot row of data or a half dot row of data.

[0074] Step 203, determining the printing times and the printing point number of each time according to the printing bearing point number and the current to-be-printed information;

[0075] For example, if the printing point number corresponding to the current to-be-printed information is 384, the printing point is a full black dot row, one dot row needs to print an upper half dot row and a lower half dot row, the printing times of the upper half dot row is 2, and one time prints 192 points.

[0076] Step 204, determining the heating time required for each printing according to the printing point number of each time, and obtaining a motor stepping time;

[0077] In the embodiment, the time required for heating each dot is calculated based on the supply voltage, the ambient temperature, the heating element (e.g., a heating resistor), and the heat energy required for heating the dot.

[0078] For example, the time S required for heating 192 black dots each time is calculated to be 387 us.

[0079] Step 205: determining the sub-process to be executed for printing the current information to be printed and the execution time of the sub-process according to the number of times of printing, the motor stepping time, and the heating time required for each printing, wherein the sub-process includes a heating process, a stopping heating process, and a driving motor process, and the execution time of the sub-process includes a starting time and a duration of the execution of the sub-process.

[0080] In the embodiment, the motor stepping motor can be 1-1 phase or 1-2 phase.

[0081] Specifically, the stepping time of the motor is related to the driving pulse rate of the motor, and the cumulative statistical time is related to the heating time of the dot row data.

[0082] In an implementable manner, as shown in FIG. 3, step 205 is specifically:

[0083] Step 301: setting the current heating cumulative time and the current cumulative statistical number of times of printing as first preset values, determining that the sub-process to be executed includes the driving motor process, determining that the starting time of the execution of the driving motor process is the first preset value, and determining that the duration of the execution of the driving motor process is the motor stepping time.

[0084] Step 302: determining whether the current cumulative statistical number of times of printing is the number of times of printing corresponding to the current information to be printed, and if yes, executing step 304, and if no, executing step 303.

[0085] Step 303: determining whether the current printing meets the first condition according to the current heating cumulative time and the motor stepping time, determining the sub-process to be executed for the current printing and the execution time of the sub-process according to the determination result, updating the current heating cumulative time and the current cumulative statistical number of times of printing, and returning to step 302.

[0086] In the embodiment, the motor stepping time includes a first motor stepping time and a second motor stepping time.

[0087] In an implementable manner, determining whether the current printing meets the first condition according to the current heating cumulative time and the motor stepping time is specifically: determining whether the current heating cumulative time is less than the first motor stepping time and whether the sum of the current heating cumulative time and the heating time required for the current printing is greater than the first motor stepping time, and if yes, the first condition is met, and if no, the first condition is not met.

[0088] Specifically, the determination result is specifically that the first condition is met, and the determining the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes the heating process and the motor driving process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the current printing required heating time, determining that the execution start time of the motor driving process is the motor first step time end time point, determining that the execution duration of the motor driving process is the motor second step time, updating the current heating cumulative time as the current printing required heating time, and updating the current cumulative printing number.

[0089] Specifically, the determination result is specifically that the first condition is not met, and the determining the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes the heating process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the current printing required heating time, updating the current heating cumulative time as the current printing required heating time, and updating the current cumulative printing number.

[0090] Step 304, determining whether the current printing meets the second condition according to the current heating cumulative time and the motor step time, and determining the sub-process to be executed and the execution time of the sub-process according to the determination result, and ending.

[0091] In the embodiment, the step time of the motor includes the motor first step time and the motor second step time.

[0092] In an implementable manner, the determining whether the current printing meets the second condition according to the current heating cumulative time and the motor step time specifically includes: judging whether the current heating cumulative time is less than the motor first step time, and if yes, the second condition is met, and if not, the second condition is not met.

[0093] Specifically, the determination result is specifically that the second condition is met, and the determining the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes the stopping heating process and the motor driving process, determining that the execution start time of the stopping heating process is the current heating cumulative time point, determining that the execution duration of the stopping heating process is the difference between the motor first step time and the current heating cumulative time, determining that the execution start time of the motor driving process is the motor first step time end time point, and determining that the execution duration of the motor driving process is the motor second step time.

[0094] Specifically, the determination result is specifically that the second condition is not met, and the determining the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes a stop heating process, determining that the execution start time of the stop heating process is the current heating cumulative time point, and determining that the execution duration of the stop heating process is the difference between the sum of the first motor step time and the second motor step time and the current heating cumulative time.

[0095] Step 206, obtaining the first executed sub-process as the current sub-process according to the sub-process execution start time, and sending the corresponding execution signal according to the current sub-process;

[0096] Specifically, the execution signal corresponding to the driving motor process is a first signal, the execution signal corresponding to the heating process is a second signal, and the execution signal corresponding to the stop heating process is a third signal.

[0097] The sending of the corresponding execution signal according to the current sub-process specifically includes: if the current sub-process is the driving motor process, sending the first signal, if the current sub-process is the heating process, sending the second signal, and if the current sub-process is the stop heating process, sending the third signal.

[0098] Further, the first signal is specifically: driving the motor to change the phase and the paper feed signal.

[0099] The second signal is specifically: controlling the print head to start heating signal.

[0100] The third signal is specifically: controlling the print head to stop heating signal.

[0101] Step 207, determining the to-be-executed sub-process when the sub-process execution duration corresponding to the current sub-process is completed.

[0102] Specifically, the to-be-executed sub-process includes the heating process, the stop heating process, and the driving motor process.

[0103] Step 208, taking the to-be-executed sub-process as the current sub-process, determining whether the current sub-process includes the heating process, if yes, the heating process does not send the execution signal, the other sub-process sends the corresponding execution signal, and step 209 is executed, otherwise, the corresponding execution signal is sent according to the current sub-process, and step 209 is executed.

[0104] Step 209, determining whether there is a to-be-executed sub-process when the current sub-process execution duration is completed, if yes, determining the to-be-executed sub-process, and executing step 208, otherwise, the current to-be-printed information is printed.

[0105] Further, the following is a detailed description of the specific example using a 1-2 phase stepping motor as the motor, the specific example driving the motor in an 8 step manner, each step time changing a driving phase, two driving phase motors driving the roller to walk half a dot row of paper, four driving phase motors driving the roller to walk one dot row of paper, one dot row being heated in the upper half dot row and the lower half dot row respectively, each heating half a dot row, driving the motor to walk two steps; specifically, the sum of the two step times is greater than the product of the maximum value of the printing times and the heating time required for printing.

[0106] As the number of printed dots is 384 dots, the upper half dot row and the lower half dot row are printed, the upper half dot row needs to be printed 2 times, each time printing 192 upper half dots, the lower half dot row needs to be printed 2 times, each time printing 192 lower half dots; as shown in FIG. 4, the implementation process of determining the sub-process to be executed by the current to-be-printed information and the sub-process execution time includes:

[0107] Step 401, setting the current heating cumulative time and the current cumulative statistical printing times as first preset values, determining that the executed sub-process includes the motor driving process, determining that the execution start time of the motor driving process is the first preset value, and determining that the execution duration of the motor driving process is the motor first step time;

[0108] For example, the motor first step time and the motor second step time are obtained, the motor first step time M1 is 433us, the motor second step time M2 is 430us, the current heating cumulative time T=0, and the current cumulative statistical printing times P=0.

[0109] Step 402, determining whether the current cumulative statistical printing times is the printing times corresponding to the current to-be-printed dot row data, if yes, executing step 406, otherwise executing step 403;

[0110] Step 403, determining whether the current heating cumulative time is less than the motor first step time and the sum of the current heating cumulative time and the heating time required for the current printing is greater than the motor first step time, if yes, executing step 405, otherwise executing step 404;

[0111] Step 404, determining that the sub-process to be executed by the current printing includes the heating process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the heating time required for the current printing, updating the current heating cumulative time as the heating time required for the current printing, updating the current cumulative statistical printing times, and executing step 402;

[0112] In the embodiment, the motor driving process is executed at the beginning of the first printing, the execution start time of the motor driving process is the first preset value, wherein the first preset value is 0, and the execution duration is the motor first step time.

[0113] Step 405, determining that the sub-process to be executed in the current printing includes the heating process and the motor driving process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the heating time required in the current printing, determining that the execution start time of the motor driving process is the end time point of the first motor stepping time, determining that the execution duration of the motor driving process is the second motor stepping time, updating the current heating cumulative time as the heating time required in the current printing, updating the current cumulative statistical printing number, and executing step 402;

[0114] Step 406, determining whether the current heating cumulative time is less than the first motor stepping time, if yes, executing step 407, otherwise executing step 408;

[0115] Step 407, determining that the sub-process to be executed in the current printing includes the stopping heating process and the motor driving process, determining that the execution start time of the stopping heating process is the current heating cumulative time point, determining that the execution duration of the stopping heating process is the difference between the first motor stepping time and the current heating cumulative time, determining that the execution start time of the motor driving process is the end time point of the first motor stepping time, and the execution duration is the second motor stepping time, and ending;

[0116] Step 408, determining that the sub-process to be executed in the current printing includes the stopping heating process, determining that the execution start time of the stopping heating process is the current heating cumulative time point, determining that the execution duration of the stopping heating process is the difference between the sum of the first motor stepping time and the second motor stepping time and the current heating cumulative time, and ending;

[0117] For example, in the embodiment, the printing point number is 384 points, which is divided into upper half point row and lower half point row printing, the upper half point row needs to be printed 2 times, each time printing 192 upper half points, the lower half point row needs to be printed 2 times, each time printing 192 lower half points, and the printing of the upper half point row and the lower half point row is the same;

[0118] The upper half point row printing condition is as follows:

[0119] The first printing heating condition is as follows: S=387us, M1=433us, M2=430us, T=0, P=0, determining whether it conforms to T

[0120] The second printing heating condition is counted: S=387us, M1=433us, M2=430us, T=S=387us, P=1, whether T

[0121] The condition after the two heating conditions are counted: S=387us, M1=433us, M2=430us, T1=774us, P=2, whether the current heating cumulative time T1 is less than the first motor stepping time M1, if not, it is determined that the current printing process to be executed includes the stop heating process, and the execution start time of the stop heating process is the current heating cumulative time point T1, and the execution duration is the difference between the sum of the first motor stepping time and the second motor stepping time and the current heating cumulative time, that is, M1+M2-T1=433+430-774=89us.

[0122] In the embodiment, after determining the sub-process to be executed for printing the current to-be-printed information and the sub-process execution time, the method can further include constructing a printing paper feeding and heating table, where the printing paper feeding and heating table includes a plurality of table entries, and each table entry includes a sub-process type and a sub-process execution time.

[0123] The printing paper feeding and heating table is shown in the following table.

[0124]

[0125] Specifically, the synchronous execution of the printing operation according to the determined sub-process and sub-process execution time specifically includes:

[0126] In step M1, a first sub-process in the printing paper feeding and heating table is obtained, the first sub-process is taken as a current sub-process, and a corresponding execution signal is sent according to the current sub-process.

[0127] The first sub-process is a first-executed sub-process, and there can be a plurality of first sub-processes, for example, the driving motor process and the heating process are performed synchronously; the execution signal corresponding to the driving motor process is a first signal, and the execution signal corresponding to the heating process is a second signal; the sending of the corresponding execution signal according to the current sub-process specifically includes: the driving motor process sends the first signal, and the heating process sends the second signal.

[0128] Step M2, determining the to-be-executed sub-process at the end of the sub-process execution duration corresponding to the current sub-process;

[0129] For example, there are two current sub-processes, and the to-be-executed sub-process is determined at the end of the sub-process execution time corresponding to the two sub-processes. One sub-process is a motor driving process, and the motor driving process ends at 433 us. At this time, the to-be-executed sub-process is determined to be the next motor driving process. Another sub-process is a heating process, and the heating process ends at 387 us. At this time, the to-be-executed sub-process is determined to be the next heating process.

[0130] Step M3, taking the to-be-executed sub-process as the current sub-process, determining whether the current sub-process includes a heating process. If yes, the heating process does not send an execution signal, and other sub-processes send corresponding execution signals. Otherwise, the corresponding execution signal is sent according to the current sub-process, and step M4 is executed.

[0131] For example, taking the to-be-executed sub-process (motor driving process and heating process) as the current sub-process, determining whether the current sub-process (motor driving process and heating process) includes a heating process. If yes, the heating process does not send a second signal, i.e., continues to heat, and other sub-processes (motor driving process) send corresponding execution signals (first signals).

[0132] Step M4, determining whether there is a to-be-executed sub-process at the end of the current sub-process execution duration. If yes, the to-be-executed sub-process is determined, and step M3 is executed. Otherwise, the current to-be-printed information is printed.

[0133] For example, at the end of the current sub-process (heating process) execution time (the heating process execution time ends at 744 us), it is determined that there is a to-be-executed sub-process (stop heating process). Taking the to-be-executed sub-process (stop heating process) as the current sub-process, it is determined that the current sub-process does not include a heating process, and a third signal is sent. At the end of the current sub-process (stop heating process) execution duration (the stop heating process execution time ends at 863 us), it is determined that there is no to-be-executed sub-process, and the process ends. At the end of the current sub-process (motor driving process) execution time (the motor driving process execution time ends at 863 us), it is determined that there is no to-be-executed sub-process, and the current to-be-printed information is printed.

[0134] In this embodiment, the first signal is specifically A+, A-, B+, and B- signals of driving the motor, so that the turntable performs paper feeding.

[0135] The second signal comprises a heating signal; specifically, the heating signal comprises sending point data requiring heating through SPI, controlling the print head LAT signal to latch the point data, and controlling the print head STROBE signal to heat;

[0136] Specifically, the third signal comprises controlling the print head STROBE signal to stop heating;

[0137] Further, as shown in FIG. 5, the signal diagram of the printer running when printing point row data according to the above specific example, wherein the first four signal lines are the signal lines of the motor stepping running, the fifth line is the data latch signal line, the sixth line is the print head heating time signal line, the seventh line is the data transmission signal line, the first dashed line is the start time of the first sub-process execution, the signal diagram running when printing the upper half of the point row is between the first dashed line and the second dashed line, and the signal diagram running when printing the lower half of the point row is between the second dashed line and the third dashed line;

[0138] First printing: the motor starts running when the fourth line changes from high level to low level, the driving motor process execution duration is S = 433us, and the driving motor process comprises driving the motor B-signal to make the turntable run, and the heating process comprises sending point data requiring heating through SPI, controlling the print head LAT signal to latch the point data, and controlling the print head STROBE signal to heat, and the heating process execution duration is S = 387us; during the process, the driving motor process and the heating process are performed synchronously;

[0139] Second printing: after the signal execution time on the sixth line reaches 387us, the printer continues to perform the heating process, specifically, by sending point data requiring heating through SPI, controlling the print head LAT signal to latch the point data, and controlling the print head STROBE signal to heat, and the heating process execution duration is 387us, and after the signal execution time on the sixth line reaches 433us, the first motor step rotation is completed, the second motor step rotation is started, and the driving motor process is started, and the execution duration is S = 430us, and when the low level on the third line changes to high level, the motor starts to change phase and rotate to run, specifically, after the signal execution time reaches 433us, the printer drives the motor A-signal to make the turntable run synchronously with heating; after the heating process is completed, i.e., when the execution time reaches 774us, the printer performs the stop heating process, and the stop heating process execution duration is 89us, and the stop heating process comprises controlling the print head STROBE signal to stop heating, and at this time, the stop heating process and the driving motor process are performed synchronously when the execution time reaches 774us, and the motor continues to run;

[0140] As shown in FIG. 5, the left part of the second dashed line is a signal diagram of printing a half dot row, the motor rotates 2 steps, and the heating signal is synchronized with the motor driving signal during the rotation of the motor.

[0141] The method provided by the present disclosure solves the problem of font stretching and compression in the prior art. As shown in FIG. 6, the right part of the figure is the effect of the prior art, and the left part of the figure is the effect of the present disclosure.

[0142] The method for realizing thermal printing provided by the present disclosure, according to the printable point number and the printing number of the to-be-printed information, and the heating time of each printing, the motor step time, the printing number, the heating time required for printing, and the cumulative statistical time are used to determine the sub-process to be executed for printing the current to-be-printed information and the sub-process execution time, and the heating, driving the motor, and stopping the heating process are executed in parallel according to the determined sub-process execution time, thereby solving the problem of font stretching and compression in the prior art and improving the printing effect.

[0143] The following is an embodiment of the device of the present disclosure, which can be used to execute the method embodiment of the present disclosure. For details not disclosed in the device embodiment of the present disclosure, reference can be made to the method embodiment of the present disclosure.

[0144] An example embodiment of the present disclosure provides a device for realizing thermal printing, which comprises:

[0145] The acquisition module is configured to acquire the current to-be-printed information and the printing bearing point number.

[0146] The first determination module is configured to determine the printing number and the point number of each printing according to the printing bearing point number and the current to-be-printed information.

[0147] The second determination module is configured to determine the heating time required for each printing according to the point number of each printing, and acquire the motor step time.

[0148] The third determination module is configured to determine the sub-process to be executed for printing the current to-be-printed information and the sub-process execution time according to the printing number, the motor step time, and the heating time required for each printing, wherein the sub-process includes a heating process, a stopping heating process, and a driving motor process, and the sub-process execution time includes a sub-process execution start time and a sub-process execution duration.

[0149] The execution module is configured to execute each sub-process in parallel according to the determined sub-process execution time to complete the printing operation.

[0150] Optionally, the apparatus further comprises a first determining module configured to determine whether the current to-be-printed information is a null data row, and further configured to obtain a motor stepping time when the current to-be-printed information is a null data row, determine that a sub-process to be executed for printing the current to-be-printed information is a motor driving process and an execution time of the motor driving process is the motor stepping time, execute the motor driving process according to the motor stepping time to complete the printing operation, and further configured to trigger a second determining module when the current to-be-printed information is not a null data row;

[0151] Optionally, the third determining module specifically comprises a first obtaining unit, a first determining unit, a first determining unit and a second determining unit.

[0152] The first obtaining unit is configured to set the current heating cumulative time and the current cumulative printing number as first preset values, determine that the sub-process to be executed comprises the motor driving process, determine that an execution start time of the motor driving process is the first preset value, and determine that an execution duration of the motor driving process is the motor stepping time.

[0153] The first determining unit is configured to determine whether the current cumulative printing number is a printing number determined for the current to-be-printed information. If yes, the second determining unit is triggered. If no, the first determining unit is triggered.

[0154] The first determining unit further comprises a first determining sub-unit and a first determining sub-unit.

[0155] The first determining sub-unit is configured to determine whether the current printing conforms to a first condition according to the current heating cumulative time and the motor stepping time.

[0156] The first determining sub-unit is configured to determine a sub-process to be executed for the current printing and an execution time of the sub-process according to a determination result, and update the current heating cumulative time and the current cumulative printing number.

[0157] The second determining unit further comprises a second determining sub-unit and a second determining sub-unit.

[0158] The second determining sub-unit is configured to determine whether the current printing conforms to a second condition according to the current heating cumulative time and the motor stepping time.

[0159] The second determining sub-unit is configured to determine a sub-process to be executed for the current printing and an execution time of the sub-process according to a determination result.

[0160] Further, the motor stepping time comprises a first motor stepping time and a second motor stepping time. The first determining sub-unit is specifically configured to determine whether the current heating cumulative time is less than the first motor stepping time and a sum of the current heating cumulative time and a heating time required for the current printing is greater than the first motor stepping time. If yes, the first condition is met. If no, the first condition is not met.

[0161] The determination result is specifically that the first condition is met, the first determination subunit is specifically configured to determine that the sub-process to be executed in the current printing includes a heating process and a motor driving process, the execution start time of the heating process is the current heating cumulative time point, the execution duration of the heating process is the current printing required heating time, the execution start time of the motor driving process is determined as the motor first step time end time point, and the execution duration of the motor driving process is determined as the motor second step time, the current heating cumulative time is updated as the current printing required heating time, and the current cumulative statistical printing number is updated.

[0162] The determination result is specifically that the first condition is not met, the first determination subunit is specifically configured to determine that the sub-process to be executed in the current printing includes a heating process, the execution start time of the heating process is determined as the current heating cumulative time point, the execution duration of the heating process is determined as the current printing required heating time, the current heating cumulative time is updated as the current printing required heating time, and the current cumulative statistical printing number is updated.

[0163] The first judgment subunit is specifically configured to judge whether the current heating cumulative time is less than the motor first step time, if yes, the second condition is met, and if not, the second condition is not met.

[0164] The determination result is specifically that the second condition is met, the second determination subunit is specifically configured to determine that the sub-process to be executed in the current printing includes a stopped heating process and a motor driving process, the execution start time of the stopped heating process is determined as the current heating cumulative time point, the execution duration of the stopped heating process is determined as the difference between the motor first step time and the current heating cumulative time, the execution start time of the motor driving process is determined as the motor first step time end time point, and the execution duration of the motor driving process is determined as the motor second step time.

[0165] The determination result is specifically that the second condition is not met, the second determination subunit is specifically configured to determine that the sub-process to be executed in the current printing includes a stopped heating process, the execution start time of the stopped heating process is determined as the current heating cumulative time point, and the execution duration of the stopped heating process is determined as the difference between the sum of the motor first step time and the motor second step time and the current heating cumulative time.

[0166] Optionally, the execution module specifically includes a third determination unit, a second judgment unit and a third judgment unit.

[0167] The third determination unit is configured to acquire, according to the sub-process execution start time, a first executed sub-process as a current sub-process, send a corresponding execution signal according to the current sub-process, and determine a to-be-executed sub-process when the sub-process execution time corresponding to the current sub-process ends.

[0168] The second determining unit is configured to determine whether the current sub-process includes the heating process when the to-be-executed sub-process is taken as the current sub-process, and if yes, the heating process does not send an execution signal, and other sub-processes send corresponding execution signals to trigger the third determining unit, and if not, the current sub-process sends a corresponding execution signal to trigger the third determining unit.

[0169] The third determining unit is configured to determine whether there is a to-be-executed sub-process when the current sub-process execution time ends, and if yes, determine the to-be-executed sub-process to trigger the second determining unit, and if not, the current to-be-printed information is printed to end.

[0170] Further, the execution signal corresponding to the driving motor process is a first signal, the execution signal corresponding to the heating process is a second signal, and the execution signal corresponding to the stopping heating process is a third signal.

[0171] The third determining unit is configured to send a corresponding execution signal according to the current sub-process, and if the current sub-process is the driving motor process, send the first signal, if the current sub-process is the heating process, send the second signal, and if the current sub-process is the stopping heating process, send the third signal.

[0172] The first signal is specifically a control printing head to start heating signal.

[0173] The second signal is specifically a control printing head to stop heating signal.

[0174] The third signal is specifically a driving motor to feed paper signal.

[0175] The method and device for implementing thermal printing provided by the present disclosure determine the to-be-printed information to obtain the printable point number and the printing number, and the heating time of each printing, determine the sub-process to be executed and the sub-process execution time of the current to-be-printed information according to the motor step time, the printing number, the heating time required for printing, and the cumulative statistical time, and execute the heating and the driving motor to feed paper process in parallel according to the determined sub-process execution time, thereby solving the problems of printing efficiency, existence of font stretching and compression in the prior art, improving the printing efficiency, and improving the printing effect.

[0176] It should be noted that the device for implementing thermal printing provided in the above embodiments is only used as an example for the division of the above functional modules in the implementation of the method for implementing thermal printing, and in actual application, the above functions can be allocated and completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for implementing thermal printing provided in the above embodiments and the method for implementing thermal printing belong to the same concept, and the implementation process is described in detail in the method embodiments, which will not be repeated here.

[0177] The above sequence numbers of the embodiments of the present disclosure are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0178] The embodiment of the present disclosure further provides a computer device, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to realize the method for realizing thermal printing disclosed in any of the foregoing embodiments.

[0179] The embodiment of the present disclosure further provides a computer readable storage medium, which stores a computer program / instruction, and the program / instruction is executed by a processor to realize the method for realizing thermal printing disclosed in any of the foregoing embodiments. The computer readable storage medium can include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nano system (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0180] The embodiment of the present disclosure further provides a computer program product, which comprises a computer program / instruction, and the computer program / instruction is executed by a processor to realize the method for realizing thermal printing disclosed in any of the foregoing embodiments.

[0181] In the present disclosure, the terms "first", "second" and the like are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or sequence; the term "multiple" refers to two or more, unless otherwise explicitly limited. The term "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A existing alone, A and B existing together, and B existing alone. The character " / " generally represents an "or" relationship between the associated objects before and after it. The terms "mounting", "connecting", "connecting", "fixing" and the like should be understood in a broad sense, for example, "connecting" can be fixed connection, or detachable connection, or integral connection; "connecting" can be direct connection, or indirect connection through an intermediate medium. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to the specific circumstances.

[0182] In the description of the present disclosure, it should be understood that the positions or location relationships indicated by the terms "upper", "lower" and the like are based on the positions or location relationships shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the devices or units referred to must have a particular direction, be constructed and operated in a particular position, therefore, cannot be understood as a limitation on the present disclosure.

[0183] The above merely provides the specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present disclosure, which should be covered in the protection scope of the present disclosure. Therefore, the equivalent changes made according to the claims of the present disclosure are still covered in the scope of the present disclosure.

Claims

1. A method for implementing thermal printing, the method comprising: Step S1, obtaining current information to be printed and a print endurance point number; Step S2, determining a printing number and a printing point number per printing according to the print endurance point number and the current information to be printed; Step S3, determining a heating time required per printing according to the printing point number per printing, and obtaining a motor stepping time; Step S4, determining a sub-process to be executed for printing the current information to be printed and a sub-process execution time according to the printing number, the motor stepping time and the heating time required per printing, the sub-process comprising a heating process, a stopping heating process and a driving motor process, the sub-process execution time comprising a sub-process execution start time and a sub-process execution duration; Step S5, executing the sub-processes in parallel according to the determined sub-process execution time to complete the printing operation.

2. The method of claim 1, wherein the step S3 is preceded by the further step of: determining whether the current information to be printed is empty data, if yes, obtaining the motor stepping time, determining that the sub-process to be executed for printing the current information to be printed is the driving motor process and the driving motor process execution time is the motor stepping time, and executing the driving motor process according to the motor stepping time to complete the printing operation, otherwise, executing Step S3.

3. The method for implementing thermal printing according to claim 1, wherein the determining the sub-process to be executed for printing the current information to be printed and the sub-process execution time according to the printing number, the motor stepping time and the heating time required per printing specifically comprises: Step S41, setting a current heating cumulative time and a current cumulative printing number to be first preset values, determining that the sub-process to be executed comprises the driving motor process, determining that the driving motor process execution start time is the first preset value, and determining that the driving motor process execution duration is the motor stepping time; Step S42, determining whether the current cumulative printing number is the printing number determined for the current information to be printed, if yes, executing Step S44, otherwise, executing Step S43; Step S43, determining whether the current printing meets a first condition according to the current heating cumulative time and the motor stepping time, and determining the sub-process to be executed for the current printing and the sub-process execution time according to the determination result, updating the current heating cumulative time and the current cumulative printing number, and returning to Step S42; Step S44, determining whether the current printing meets a second condition according to the current heating cumulative time and the motor stepping time, and determining the sub-process to be executed for the current printing and the sub-process execution time according to the determination result, and ending.

4. The method for implementing thermal printing according to claim 3, wherein the motor stepping time comprises a first motor stepping time and a second motor stepping time, and the determining whether the current printing meets the first condition according to the current heating cumulative time and the motor stepping time specifically comprises: determining whether the current heating cumulative time is less than the first motor stepping time and a sum of the current heating cumulative time and the heating time required per printing is greater than the first motor stepping time, if yes, the first condition is met, otherwise, the first condition is not met. The determination result is specifically that the first condition is met, and the determination of the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes a heating process and a motor driving process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the current printing required heating time, determining that the execution start time of the motor driving process is the end time point of the first motor step time, determining that the execution duration of the motor driving process is the second motor step time, updating the current heating cumulative time to the current printing required heating time, and updating the current cumulative printing number. The determination result is specifically that the first condition is not met, and the determination of the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes a heating process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the current printing required heating time, updating the current heating cumulative time to the current printing required heating time, and updating the current cumulative printing number.

5. The method for implementing thermal printing according to claim 3, wherein the motor step time includes a first motor step time and a second motor step time, and the determination of whether the current printing meets the second condition according to the current heating cumulative time and the motor step time specifically includes: determining whether the current heating cumulative time is less than the first motor step time, and if yes, the second condition is met, and if not, the second condition is not met. The determination result is specifically that the second condition is met, and the determination of the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes a heating process and a motor driving process, determining that the execution start time of the heating process is the current heating cumulative time point, determining that the execution duration of the heating process is the difference between the first motor step time and the current heating cumulative time, determining that the execution start time of the motor driving process is the end time point of the first motor step time, and determining that the execution duration of the motor driving process is the second motor step time. The determination result is specifically that the second condition is not met, and the determination of the sub-process to be executed and the execution time of the sub-process according to the determination result specifically includes: determining that the sub-process to be executed includes a heating process, determining that the execution start time of the heating process is the current heating cumulative time point, and determining that the execution duration of the heating process is the difference between the sum of the first motor step time and the second motor step time and the current heating cumulative time.

6. The method for implementing thermal printing according to claim 1, wherein the step S5 specifically includes: Step S51, acquiring a first executed sub-process as a current sub-process according to a sub-process execution start time, and sending a corresponding execution signal according to the current sub-process; Step S52, determining a to-be-executed sub-process when the execution time of the current sub-process ends. Step S53, taking the sub-process to be executed as a current sub-process, judging whether the current sub-process includes a heating process, if yes, the heating process does not send an execution signal, other sub-processes send corresponding execution signals, and step S54 is executed, otherwise, corresponding execution signals are sent according to the current sub-process, and step S54 is executed. Step S54, judging whether there is a sub-process to be executed when the current sub-process execution time ends, if yes, determining the sub-process to be executed, and step S53 is executed, otherwise, ending.

7. The method for implementing thermal printing according to claim 6, wherein the execution signal corresponding to the driving motor process is a first signal, the execution signal corresponding to the heating process is a second signal, and the execution signal corresponding to the stopping heating process is a third signal. The corresponding execution signals sent according to the current sub-process are specifically: if the current sub-process is the driving motor process, a first signal is sent, if the current sub-process is the heating process, a second signal is sent, and if the current sub-process is the stopping heating process, a third signal is sent.

8. The method for implementing thermal printing according to claim 7, wherein the first signal is specifically: a control printing head opening heating signal. The second signal is specifically: a control printing head stopping heating signal. The third signal is specifically: a driving motor paper feeding signal.

9. An apparatus for implementing thermal printing, the apparatus comprising: a memory, a processor, and a computer program stored on the memory, wherein the processor executes the computer program to perform the following operations: obtaining current to-be-printed information and a printing bearing point number; determining a printing number and a printing point number each time according to the printing bearing point number and the current to-be-printed information; determining a heating time required each time for printing according to the printing point number each time, and obtaining a motor step time; determining sub-processes to be executed for printing the current to-be-printed information and sub-process execution times according to the printing number, the motor step time, and the heating time required each time for printing, the sub-processes including a heating process, a stopping heating process, and a driving motor process, and the sub-process execution times including sub-process execution start times and sub-process execution durations; performing the printing operation in parallel according to the determined sub-process execution times and the sub-processes.

10. A computer device comprising a memory, a processor, and a computer program stored on the memory, wherein the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 8.

11. A computer readable storage medium having a computer program / instruction stored thereon, wherein the computer program / instruction is executed by a processor to implement the steps of the method according to any one of claims 1 to 8.

12. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instruction is executed by a processor to implement the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Thermal printer sectional drive printing method and system

    CN101357543A

  • Printing control method, printing control device, and printer

    CN106476455A

  • Storage, heat-sensitive printer and printing control method thereof

    CN109016890A

  • Printer heating operation processing method based on inverted sequence logic control

    CN114889347A

  • Printing device

    JP1995314837A