Printing control method and system of thermal printer core, and POS machine

By establishing a heating operation time model in a mobile terminal device, using temperature, voltage, heating spot number and time interval parameters, the heating time of the thermal printing movement is controlled, and the problems of uneven printing concentration and slow speed are solved, and more stable Print effect.

CN119078384APending Publication Date: 2024-12-06SHANGHAI XIANGCHENG COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411489762.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The printing control method of thermal printing movements in existing mobile terminal equipment leads to uneven printing concentration and slow speed, mainly due to speed, voltage and temperature stability problems.

Method used

The temperature, input voltage of the thermal printing movement, the average number of heating spots and time intervals of the heating operation are used as the influencing parameters, and the heating time of the heating operation is established, and the control target is determined by determining the heating time of the target heating operation.

Benefits of technology

In the case of dynamic influencing factors, the printing gray scale is ensured to be uniform, the overall printing speed is improved, the heating operation time exceeds the motor running time, and the problem of uneven printing concentration and slow speed is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119078384A_ABST
    Figure CN119078384A_ABST
Patent Text Reader

Abstract

The invention provides a printing control method and system of a thermal printer core and a POS machine. The printing control method comprises the steps that the temperature of a thermal printer core, the input voltage of the thermal printer core, the average heating point number of all heating operations corresponding to a current printing point row and the time interval from the previous heating operation to the current heating operation serve as influence parameters, and the purpose that the gray scale of a heating point reaches the expectation serves as a control target; establishing a heating operation time model; before the target heating operation is executed each time, the heating time of the target heating operation is determined according to the heating operation time model, and the target heating operation is not the first heating operation. According to the printing control system, the printing control method is realized when the processor executes the computer program stored in the memory. The POS machine comprises a thermal printer core and the printing control system. According to the invention, the problems of non-uniform printing concentration and low printing speed caused by the existing printing control method applied to the thermal printer core for the mobile terminal equipment can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of thermal printers, and more specifically, relates to a printing control method and system for a thermal printer mechanism and a POS machine. Background Art

[0002] Existing mobile terminal devices usually use 2-inch thermal printer mechanisms powered by 7V-9V, and follow the printing control strategy of the existing 24V thermal printer mechanisms. The printing control strategy of the existing 24V thermal printer mechanisms takes maintaining the desired speed / temperature as the control strategy and goal. This is because the printing control strategy assumes that a certain control method can be used to make the factors affecting the printing effect tend to a steady state after a period of time since the start of printing, that is, the thermal printer mechanism maintains a certain speed / temperature.

[0003] However, due to the low power of mobile terminal devices, the various factors affecting the printing effect cannot remain stable, which mainly involve speed stability, voltage stability and temperature stability. Regarding the speed stability issue, when there are many heating points in a row, the heating time will exceed the time corresponding to the expected speed, and the motor needs to be decelerated, resulting in unstable speed; regarding the voltage stability issue, mobile terminal devices are powered by batteries, and as the power is consumed, the input voltage of the printer mechanism will also change significantly, resulting in unstable voltage factors; regarding the temperature stability issue, if a lower-cost domestic alternative printer mechanism is used, compared with foreign first-line brands, the low-cost solution will have more drastic temperature changes due to differences in heating element performance and structural design, and the temperature rise will be more obvious during printing, making it difficult to maintain the temperature of the printer mechanism at the expected value.

[0004] Therefore, if the printing control strategy of 24V thermal printer mechanism is still adopted for the thermal printer mechanism of mobile terminal equipment, that is, maintaining the expected speed / temperature as the control strategy and goal, it will usually lead to problems such as uneven printing density and slow speed. Summary of the invention

[0005] The purpose of the present invention is to solve the problems of uneven printing density and slow printing speed caused by the existing printing control method for thermal printer mechanism used in mobile terminal equipment.

[0006] In order to achieve the above-mentioned object, the present invention provides a printing control method and system of a thermal printer mechanism and a POS machine.

[0007] According to a first aspect of the present invention, there is provided a printing control method for a thermal printer mechanism, the printing control method comprising the following steps:

[0008] The temperature of the thermal printer mechanism, the input voltage of the thermal printer mechanism, the average number of heating points of all heating operations corresponding to the current printing dot row, and the time interval from the last heating operation to the current heating operation are used as influencing parameters, and the grayscale of the heating point reaches the expected control target, and a heating operation time model is established;

[0009] Before each execution of the target heating operation, a heating time of the target heating operation is determined according to the heating operation time model, and the target heating operation is not the first heating operation.

[0010] Optionally, the heating operation time model is expressed as:

[0011] tx=F(Tx)F(Vx)F(Nx)F(TLx)

[0012] In the above formula, tx is the heating time of the heating operation, Tx is the temperature of the thermal printer mechanism, Vx is the input voltage of the thermal printer mechanism, Nx is the average number of heating points of all heating operations corresponding to the current printing dot row, and TLx is the time interval from the last heating operation to the current heating operation.

[0013] Optionally, the temperature-related influencing factor model is expressed as:

[0014] F(Tx)=A1-B1*(Tx-25)

[0015] In the above formula, A1 and B1 are fitting parameters.

[0016] Optionally, the voltage-related influencing factor model is expressed as:

[0017] F(Vx)=1 / (A2*Vx-B2)^2

[0018] In the above formula, A2 and B2 are fitting parameters.

[0019] Optionally, the model of influencing factors related to the average number of heating points is expressed as:

[0020] F(Nx)=(A3+B3*Nx)^2

[0021] In the above formula, A3 and B3 are fitting parameters.

[0022] Optionally, the time interval related influencing factor model is expressed as:

[0023] F(TLx)=(TLx-A4) / (TLx+B4)

[0024] In the above formula, A4 and B4 are fitting parameters.

[0025] According to a second aspect of the present invention, a printing control system for a thermal printer mechanism is provided, the printing control system comprising a processor and a memory, wherein the processor implements any of the above-mentioned printing control methods for a thermal printer mechanism when executing a computer program stored in the memory.

[0026] According to a third aspect of the present invention, there is provided a POS machine, the POS machine comprising a thermal printing mechanism and a printing control system of the thermal printing mechanism.

[0027] The beneficial effects of the present invention are:

[0028] The printing control method of the thermal printer mechanism of the present invention firstly takes the temperature of the thermal printer mechanism, the input voltage of the thermal printer mechanism, the average number of heating points of all heating operations corresponding to the current printing dot row, and the time interval from the last heating operation to the current heating operation as influencing parameters, takes the grayscale of the heating points reaching the expected level as the control target, and establishes a heating operation time model; then, before each execution of the target heating operation, determines the heating time of the target heating operation according to the heating operation time model, and the target heating operation is not the first heating operation.

[0029] The printing control method of the thermal printer mechanism of the present invention fully considers the factors that affect the heating operation time, namely, the temperature of the thermal printer mechanism, the input voltage of the thermal printer mechanism, the average number of heating points of all heating operations corresponding to the current printing dot row, and the time interval from the last heating operation to the current heating operation. It is assumed that each influencing factor of the heating operation time is dynamic, and a heating operation time model is established on the basis of taking the grayscale of the heating point reaching the expected control target. Determining the heating operation time based on the heating operation time model can ensure that the printing grayscale is uniform when various influencing factors change, and the heating time of a dot row will not be greater than the time of the printer mechanism motor running a dot row, and there is no need to slow down during printing, thereby improving the overall printing speed. According to the above, the printing control method of the thermal printer mechanism of the present invention can effectively solve the problems of uneven printing concentration and printing speed caused by the existing printing control method for the thermal printer mechanism used in mobile terminal devices.

[0030] The printing control system of the thermal printer mechanism and the printing control method of the POS machine and the above-mentioned thermal printer mechanism of the present invention belong to a general inventive concept, and have at least the same beneficial effects as the above-mentioned printing control method of the thermal printer mechanism, and its beneficial effects are not repeated here.

[0031] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present invention may be better understood by referring to the following description taken in conjunction with the accompanying drawings, in which the same or similar reference numerals are used throughout the drawings to represent the same or similar components.

[0033] Figure 1 A flow chart of an implementation of a printing control method for a thermal printer mechanism according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to more fully understand the technical solution of the present invention, the exemplary embodiments of the present invention will be described in more comprehensive and detailed in conjunction with the accompanying drawings below. Obviously, the one or more embodiments of the present invention described below are only one or more of the specific ways in which the technical solution of the present invention can be implemented, and are not exhaustive. It should be understood that other ways belonging to a general inventive concept can be used to implement the technical solution of the present invention, and should not be limited by the exemplary embodiments described. Based on one or more embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0035] Example: Figure 1 The following is a flowchart showing the implementation of the printing control method of the thermal printer mechanism according to the embodiment of the present invention. Figure 1 The printing control method of the thermal printer mechanism of the embodiment of the present invention comprises the following steps:

[0036] Step S100, taking the temperature of the thermal printer mechanism, the input voltage of the thermal printer mechanism, the average number of heating points of all heating operations corresponding to the current printing dot row, and the time interval from the last heating operation to the current heating operation as influencing parameters, taking the grayscale of the heating point reaching the expected level as the control target, and establishing a heating operation time model;

[0037] Step S200: before each execution of the target heating operation, determine the heating time of the target heating operation according to the heating operation time model, and the target heating operation is not the first heating operation.

[0038] Specifically, in the embodiment of the present invention, the temperature of the thermal printer mechanism is acquired from a temperature sensor of the thermal printer mechanism.

[0039] Specifically, in an embodiment of the present invention, due to the limitation of the maximum number of heating points, the thermal printing mechanism often requires multiple heating operations to complete the printing of the current printing dot row, and the average number of heating points of all heating operations corresponding to the current printing dot row is the average value of the number of heating points of all heating operations corresponding to the current printing dot row.

[0040] Further, in the embodiment of the present invention, the heating operation time model is expressed as:

[0041] tx=F(Tx)F(Vx)F(Nx)F(TLx)

[0042] In the above formula, tx is the heating time of the heating operation, Tx is the temperature of the thermal printer mechanism, Vx is the input voltage of the thermal printer mechanism, Nx is the average number of heating points of all heating operations corresponding to the current printing dot row, and TLx is the time interval from the last heating operation to the current heating operation.

[0043] Furthermore, in the embodiment of the present invention, the temperature-related influencing factor model is expressed as:

[0044] F(Tx)=A1-B1*(Tx-25)

[0045] In the above formula, A1 and B1 are fitting parameters.

[0046] Furthermore, in the embodiment of the present invention, the voltage-related influencing factor model is expressed as:

[0047] F(Vx)=1 / (A2*Vx-B2)^2

[0048] In the above formula, A2 and B2 are fitting parameters.

[0049] Furthermore, in the embodiment of the present invention, the model of influencing factors related to the average number of heating points is expressed as:

[0050] F(Nx)=(A3+B3*Nx)^2

[0051] In the above formula, A3 and B3 are fitting parameters.

[0052] Furthermore, in the embodiment of the present invention, the time interval related influencing factor model is expressed as:

[0053] F(TLx)=(TLx-A4) / (TLx+B4)

[0054] In the above formula, A4 and B4 are fitting parameters.

[0055] Specifically, in the embodiment of the present invention, A1, B1, A2, B2, A3, B3, A4 and B4 are all fitting parameters, which are constants. The fitting parameters are determined as follows:

[0056] Select a set of easily achievable benchmark parameters Tx1, Vx1, Nx1, TLx1;

[0057] Applying the single variable control method, for example, only controlling the voltage change, then tx2 / tx1=F(Vx2) / F(Vx1)=((A2*Vx1-B2) / (A2*Vx2-B2))^2;

[0058] By measuring multiple voltages, the constants A2 and B2 corresponding to the current system can be obtained. Similarly, this method can be used to obtain A1, B1, A3, B3, A4 and B4.

[0059] Accordingly, based on the printing control method of the thermal printer mechanism of the embodiment of the present invention, the embodiment of the present invention also proposes a printing control system of the thermal printer mechanism, which includes a processor and a memory, and the processor implements the printing control method of the thermal printer mechanism of the embodiment of the present invention when executing the computer program stored in the memory.

[0060] Accordingly, based on the printing control system of the thermal printer mechanism in the embodiment of the present invention, the embodiment of the present invention further proposes a POS machine, which includes a thermal printer mechanism and the printing control system of the thermal printer mechanism in the embodiment of the present invention.

[0061] Although one or more embodiments of the present invention are described above, it should be known to those skilled in the art that the present invention can be implemented in any other form without departing from its subject matter and scope. Therefore, the embodiments described above are illustrative rather than restrictive, and many modifications and substitutions are obvious to those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A printing control method for a thermal printer mechanism, It is characterized in that include: The temperature of the thermal printer mechanism, the input voltage of the thermal printer mechanism, the average number of heating points of all heating operations corresponding to the current printing dot row, and the time interval from the last heating operation to the current heating operation are used as influencing parameters, and the grayscale of the heating point reaches the expected control target, and a heating operation time model is established; Before each execution of the target heating operation, a heating time of the target heating operation is determined according to the heating operation time model, and the target heating operation is not the first heating operation.

2. The printing control method of the thermal printer mechanism according to claim 1, It is characterized in that The heating operation time model is expressed as: tx=F(Tx)F(Vx)F(Nx)F(TLx) In the above formula, tx is the heating time of the heating operation, Tx is the temperature of the thermal printer mechanism, Vx is the input voltage of the thermal printer mechanism, Nx is the average number of heating points of all heating operations corresponding to the current printing dot row, and TLx is the time interval from the last heating operation to the current heating operation.

3. The printing control method of the thermal printer mechanism according to claim 2, It is characterized in that The temperature-related influencing factor model is expressed as: F(Tx)=A1-B1*(Tx-25) In the above formula, A1 and B1 are fitting parameters.

4. The printing control method of the thermal printer mechanism according to claim 3, It is characterized in that The voltage-related influencing factor model is expressed as: F(Vx)=1 / (A2*Vx-B2)^2 In the above formula, A2 and B2 are fitting parameters.

5. The printing control method of the thermal printer mechanism according to claim 4, It is characterized in that The model of influencing factors related to the average number of heating points is expressed as: F(Nx)=(A3+B3*Nx)^2 In the above formula, A3 and B3 are fitting parameters.

6. The printing control method of the thermal printer mechanism according to claim 5, It is characterized in that The time interval related influencing factor model is expressed as: F(TLx)=(TLx-A4) / (TLx+B4) In the above formula, A4 and B4 are fitting parameters.

7. A printing control system for a thermal printer mechanism, It is characterized in that The invention comprises a processor and a memory, wherein when the processor executes a computer program stored in the memory, the printing control method of the thermal printer mechanism according to any one of claims 1 to 6 is implemented.

8. A POS machine, It is characterized in that A printing control system comprising a thermal printer mechanism and the thermal printer mechanism as claimed in claim 7.