Thermal printing method and chip

By determining the pixel image in the thermal printer and adjusting the heating parameters of the thermistor using the color rendering states of the target and reference pixels, the problems of low efficiency and insufficient accuracy in configuring the thermistor's working state are solved, achieving a more refined and efficient printing effect.

CN118906683BActive Publication Date: 2025-12-12APEX MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410980425.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2025-12-12
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The current thermal printers suffer from low efficiency and inaccuracy in configuring the thermistors, resulting in poor printing quality. In particular, the temperature is prone to being too high or too low when heating multiple lines continuously or when no heating is applied.

Method used

By determining the original image and converting it into a pixel image, the heating parameters of the thermistor are determined using the color rendering states of the target pixel and multiple reference pixels. This includes various printing modes to adjust the heating strategy and optimize the heating state signal configuration of the thermistor.

Benefits of technology

It improves the efficiency and accuracy of thermistor heating status signal configuration, enhances printing quality, and avoids problems such as uneven temperature and imprecise printing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118906683B_ABST
    Figure CN118906683B_ABST
Patent Text Reader

Abstract

The application provides a thermal printing method and a chip. A target pixel point to be printed is selected, and a reference pixel point is determined according to a selected printing mode. A heating parameter of the target pixel point is determined according to a color development state signal corresponding to the target pixel point and the reference pixel point. The target pixel point is printed according to the heating parameter, thereby realizing accurate configuration of the heating state signal. The heating state signal corresponding to the thermal resistor can be determined according to the distribution of the printed pixel points, the efficiency and effectiveness of the configuration of the heating state signal of the thermal resistor are improved, and the printing effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to a thermal printing method and a chip. BACKGROUND

[0002] A thermal printer prints by heating a thermistor, which leaves color on the printing paper after heating. The higher the temperature, the deeper the print, and the lower the temperature, the lighter the print.

[0003] The current thermal printer has only two working states of the thermistor: heating and not heating. When the same resistance is continuously heated for multiple lines, the next line may be tailing due to the excessively high temperature. When the same resistance is continuously not heated for multiple lines, the next line may be printed too lightly due to the excessively low temperature.

[0004] Therefore, there is a need for a thermal printing method to improve the thermal printing effect and improve the configuration efficiency and accuracy of thermal printing. SUMMARY

[0005] The present application provides a thermal printing method and a chip to improve the configuration accuracy of the heating working state of the thermistor.

[0006] In a first aspect, the present application provides a thermal printing method, which comprises:

[0007] determining an original image;

[0008] determining a pixel image according to the original image;

[0009] The pixel image comprises a plurality of pixel points, and the color development state of the pixel point is used to indicate the printing condition of the pixel point, including the printing state or the empty state.

[0010] determining a printing mode in at least one printing mode, and processing the pixel image according to the printing mode;

[0011] As an optional implementation, the at least one printing mode comprises a first printing mode:

[0012] determining the color development state of the pixel point, and further determining the heating parameter of the target pixel point;

[0013] determining the heating parameter of the target pixel point according to the color development state of the target pixel point and a reference pixel point, heating and printing the target pixel point according to the heating parameter of the target pixel point, and performing a printing operation according to each pixel point in the pixel image;

[0014] The reference pixel point comprises a first pixel point in the same column as the target pixel point in the previous line, and a second pixel point and a third pixel point adjacent to the left and right of the first pixel point.

[0015] The heating parameter of the target pixel point at least includes a first state parameter, a second state parameter and a third state parameter;

[0016] The first state parameter, the second state parameter and the third state parameter are used for indicating the heating degree of the target pixel point, and the heating degrees can be superimposed;

[0017] The first state parameter is determined by the color developing state of the target pixel point, the second state parameter is determined by the color developing state of the target pixel point and the color developing state of the first pixel point, and the third state parameter is determined by the color developing state of the target pixel point and the color developing state of the second pixel point and the third pixel point.

[0018] As an optional implementation, the at least one printing mode includes a second printing mode:

[0019] The heating parameter of the target pixel point at least includes a first state parameter and a second state parameter;

[0020] The reference pixel point includes a first pixel point;

[0021] The first state parameter is determined by the color developing state of the target pixel point, and the second state parameter is determined by the color developing state of the target pixel point and the color developing state of the first pixel point.

[0022] As an optional implementation, the at least one printing mode includes a third printing mode:

[0023] The heating parameter of the target pixel point at least includes a first state parameter, a second state parameter, a third state parameter and a fourth state parameter;

[0024] The reference pixel point includes a first pixel point and a fourth pixel point in the same column of the next row of the target pixel point;

[0025] The first state parameter is determined by the color developing state of the target pixel point, the second state parameter is determined by the color developing state of the target pixel point and the color developing state of the first pixel point and the fourth pixel point, the third state parameter is determined by the color developing state of the target pixel point and the color developing state of the first pixel point, and the fourth state parameter is determined by the color developing state of the target pixel point and the color developing state of the first pixel point and the fourth pixel point.

[0026] As an optional implementation, the at least one printing mode includes a fourth printing mode:

[0027] The heating parameter of the target pixel point at least includes a first state parameter, a second state parameter, a third state parameter and a fourth state parameter;

[0028] The reference pixel points include a first pixel point, a second pixel point, a third pixel point, a fourth pixel point, and a fifth pixel point in the same column and two rows above the target pixel point.

[0029] The first state parameter is determined by the color development state of the target pixel point, the second state parameter is determined by the color development state of the target pixel point and the color development states of the first pixel point and the fifth pixel point, the third state parameter is determined by the color development state of the target pixel point and the color development states of the first pixel point and the fifth pixel point, and the fourth state parameter is determined by the color development state of the target pixel point and the color development states of the first pixel point, the second pixel point, the third pixel point, the fourth pixel point, and the fifth pixel point.

[0030] As an optional implementation, the at least one printing mode includes a fifth printing mode.

[0031] The color development states of the pixel points in a row of the pixel image are determined.

[0032] The number of pixel points in the printing state is counted.

[0033] The number of pixel points in the printing state is compared with a number threshold of the printable pixel points in a row of the printing module, a printing frequency is obtained, and the printing module is controlled to print according to the printing frequency.

[0034] The control of the printing module to print according to the printing frequency includes:

[0035] The number of pixel points in the printing state is divided by the number threshold and rounded up to obtain that the pixel points in the printing state are divided into n times for printing.

[0036] In the first n-1 times of printing, the number of pixel points in the printing state is equal to the number threshold.

[0037] In the n-th time of printing, the remaining pixel points in the printing state are printed.

[0038] In each of the n times of printing, the pixel points in the printing state can be continuous or discontinuous.

[0039] As an optional implementation, the control of the printing module to print according to the printing frequency further includes:

[0040] The pixel points in a row of the pixel image are evenly divided into m groups in order, and the pixel points in the printing state are arranged in the corresponding groups according to the positions, where m is a preset number and can evenly divide the pixel points in the same row of the pixel image.

[0041] As an optional implementation, the at least one printing mode includes a sixth printing mode:

[0042] The printing status includes 2 N The heating parameters include N state parameters, representing a grayscale level.

[0043] The N state parameters are used to indicate N different heating levels;

[0044] Through the 2 N The N state parameters are determined by the grayscale levels, and the N different heating levels indicated by these N state parameters are superimposed to achieve the desired effect. N Printing in grayscale mode.

[0045] As an optional implementation, each pixel of the pixel image is indicated by N bits of binary data. N The grayscale state is indicated by each bit of the N-bit binary number, which is used to indicate the corresponding state parameter.

[0046] As an optional implementation method,

[0047] The process of processing the pixel image according to the printing mode and sending the processed data to the printing module for printing includes:

[0048] Based on the paper detection parameters continuously output by the analog-to-digital converter, calculate the difference between the current paper detection parameters and the paper detection parameters before the preset time, and compare it with the difference threshold.

[0049] When the difference is less than the difference threshold, the corresponding position is identified as a printable position on the paper.

[0050] When the difference is greater than the difference threshold, the corresponding position is identified as a non-printable position.

[0051] Secondly, this application provides a chip for implementing the thermal printing method as described in the first aspect.

[0052] The thermal printing method and chip provided in this application select the target pixel to be printed and determine the reference pixel according to the selected printing mode. Based on the color development status signal corresponding to the target pixel and the reference pixel, the heating parameters of the target pixel are determined. The target pixel is then printed according to the heating parameters. This achieves precise configuration of the heating status signal. It can determine the heating status signal corresponding to the thermistor based on the distribution of the printed pixels, improving the efficiency and effectiveness of thermistor heating status signal configuration, thereby improving the printing effect. Attached Figure Description

[0053] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate embodiments consistent with the application and, together with the description, further serve to explain the principles of the application.

[0054] Figure 1 is a flow chart of a thermal printing method according to an embodiment of the application;

[0055] Figure 2 is a flow chart of a thermal printing method according to an embodiment of the application;

[0056] Figure 3 is a flow chart of a thermal printing method according to an embodiment of the application;

[0057] Figure 4 is a flow chart of a thermal printing method according to an embodiment of the application;

[0058] Figure 5 is a flow chart of a thermal printing method according to an embodiment of the application;

[0059] Figure 6 is a flow chart of a thermal printing method according to an embodiment of the application;

[0060] Figure 7 is a flow chart of a thermal printing method according to an embodiment of the application;

[0061] Figure 8 is a flow chart of a thermal printing method according to an embodiment of the application.

[0062] The specific embodiments have been shown by way of illustration in the preceding drawings and will be described in greater detail below. These drawings and description do not impose on the scope of the concepts of the present application, but serve to explain the concepts of the present application to a person skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0063] The exemplary embodiments will be described in detail herein below with reference to the drawings. The following description is presented with reference to the accompanying drawings, in which a similar reference can indicate similar elements or features. The embodiments described in the following exemplary embodiments are not meant to represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the appended claims.

[0064] A thermal printer prints by heating a thermistor. The thermistor heats up and leaves a color on the printing paper. The higher the temperature, the darker the print. The lower the temperature, the lighter the print. When printing an image, the first line is printed, and then the second line is printed, and so on.

[0065] The current resistance working state only has two cases of heating and not heating. When the same resistance is continuously heated for multiple lines, the next line is not heated, which may cause tailing due to too high temperature. When the same resistance is continuously not heated for multiple lines, one line is suddenly heated, which may cause too light printing due to too low temperature. Therefore, the historical working state of the same resistance needs to be paid attention to during printing to adjust the heating strategy.

[0066] The current thermal printing method has low efficiency and low accuracy in configuring the historical working state of the thermistor, resulting in poor printing effect. In short, the printing is not fine enough, and the efficiency and accuracy of the heating state signal configuration corresponding to the thermistor are insufficient. Moreover, the existing technology mainly configures the heating state signal through software, resulting in a complex configuration process. Therefore, a thermal printing method is needed to improve the efficiency and accuracy of the historical working state configuration of the thermistor, thereby improving the effectiveness of printing.

[0067] Please refer to Figure 1 , Figure 1 is an effect diagram of a thermal printing method disclosed by an embodiment of the present application, which is used to illustrate the above-mentioned way of determining a pixel image according to an original image. As Figure 1 shown, taking the letter Y as an example, after pixelization, it can be converted into a pixel image represented by a digital quantity on the right side. Thus, the thermistor can be controlled according to the value on the pixel image, thereby completing printing.

[0068] By determining the original image and converting it into a pixel image, and then determining the heating parameters of the thermistor according to the printing situation of each pixel point on the pixel image and the reference pixel point corresponding to each target pixel point Q0, the printing operation can be completed by heating the thermistor according to the heating parameters. The printing situation corresponding to the reference pixel point can be used to indicate the historical working state within a certain time period in the past and / or the expected working state within a certain time period in the future of the thermistor. Thus, based on the distribution of the printing pixel points and the working state of the thermistor, the working parameters of the thermistor are determined, which improves the efficiency and effectiveness of the configuration of the working parameters of the thermistor, thereby improving the printing effect.

[0069] Embodiment one

[0070] The present application provides a thermal printing method, which comprises:

[0071] determining an original image;

[0072] determining a pixel image according to the original image;

[0073] wherein the pixel image comprises a plurality of pixel points, and the color development state of the pixel point is used to indicate the printing situation of the pixel point, including a printing state or an empty state.

[0074] determine a printing mode in at least one printing mode, and process the pixel image according to the printing mode;

[0075] Please refer to Figure 2 , Figure 2 is a thermal printing flowchart disclosed by the embodiment of the present application, as shown in the present application method includes: Figure 2

[0076] Step 101: determining a pixel image according to an original image;

[0077] Step 102: selecting a target pixel point and determining a reference pixel point according to the selected printing mode;

[0078] Step 103: determining the heating parameter of the target pixel point according to the color development state of the target pixel point and the reference pixel point;

[0079] Step 104: printing the target pixel point according to the heating parameter

[0080] By selecting different modes, the thermal printing needs in different situations can be adapted, the influence of different reference pixel points around the target pixel point on the target pixel point is considered, and then the heating parameter of the target pixel point is adjusted, so as to improve the printing effect and improve the configuration efficiency of thermal printing.

[0081] As a feasible implementation manner, in the at least one printing mode, the first printing mode is included:

[0082] determine the color development state of each pixel point, and then determine the heating parameter of the target pixel point Q0;

[0083] According to the heating parameter of the target pixel point Q0, the target pixel point Q0 is heated and printed, and the printing operation is performed according to each pixel point in the pixel image;

[0084] Specifically, the heating parameter of the target pixel point Q0 can be determined according to the color development state of the target pixel point Q0 and the reference pixel point;

[0085] The reference pixel point includes a first pixel point Q1 in the same column of the last row of the target pixel point Q0, and a second pixel point Q2 and a third pixel point Q3 adjacent to the left and right of the first pixel point Q1;

[0086] The heating parameter of the target pixel point Q0 at least includes a first state parameter, a second state parameter and a third state parameter;

[0087] The first state parameter, the second state parameter and the third state parameter are used to indicate the heating degree of the target pixel point Q0, and the heating degree can be superimposed; ​

[0088] The first state parameter is determined by the color developing state of the target pixel point Q0, the second state parameter is determined by the color developing state of the target pixel point Q0 and the color developing state of the first pixel point Q1, and the third state parameter is determined by the color developing state of the target pixel point Q0 and the color developing state of the second pixel point Q2 and the third pixel point Q3.

[0089] The printing mode can be selected by a configuration signal input by user interaction. The user can select a preset printing mode according to an original image.

[0090] In the present application, the pixel points can include a target pixel point Q0 and reference pixel points, the reference pixel points can include a plurality of pixel points around the target pixel point Q0, and a heating or preheating strategy of the thermistor can be determined according to the color developing state of the reference pixel points in the pixel image, thereby improving the effectiveness of printing. The selection manner of the reference pixel points will be described in each embodiment.

[0091] As an implementable embodiment, the at least one printing mode further includes a second printing mode, and the second printing mode is used to determine the reference pixel points, and the reference pixel points include a first pixel point Q1 in the same column of the previous row of the target pixel point Q0.

[0092] The at least one printing mode further includes a third printing mode, and the third printing mode is used to determine the reference pixel points, and the reference pixel points further include a fourth pixel point Q4 in the same column of the next row of the target pixel point.

[0093] The printing mode includes a fourth printing mode, and the fourth printing mode is used to determine the reference pixel points, and the reference pixel points further include the first pixel point Q1 in the same column of the previous row of the target pixel point Q0, the second pixel point Q2 and the third pixel point Q3 on both sides of the first pixel point Q1, the fourth pixel point Q4 in the same column of the next row of the target pixel point Q0, and a fifth pixel point Q5 in the two rows above the target pixel point Q0.

[0094] The foregoing embodiments can refer to the specific description hereinafter.

[0095] As an optional embodiment, the printing mode includes a first printing mode, and the first printing mode is used to indicate a printing mode in which each thermistor heating parameter is determined according to the target pixel point Q0, the first pixel point Q1 in the same column of the previous row of the target pixel point Q0, and the second pixel point Q2 and the third pixel point Q3 adjacent to the left and right of the first pixel point Q1.

[0096] The reference pixel points include a first pixel point Q1 in the same column as the target pixel point Q0 in the previous row and a second pixel point Q2 and a third pixel point Q3 adjacent to the left and right of the first pixel point Q1, and the heating parameters include a first state parameter, a second state parameter and a third state parameter.

[0097] The first state parameter is used to indicate the heating degree of the target pixel point Q0, and the heating degrees can be superimposed.

[0098] According to the color development states of the target pixel points Q0 and the corresponding reference pixel points, the heating parameters of the thermistors are determined, including:

[0099] According to the color development states of the target pixel points Q0, the first state parameters are determined.

[0100] According to the color development states of the target pixel points Q0 and the corresponding first pixel points Q1, the second state parameters are determined.

[0101] According to the color development states of the target pixel points Q0 and the corresponding first pixel points Q1, the second state parameters are determined.

[0102] According to the color development states of the target pixel points Q0 and the corresponding first pixel points Q1 and the second pixel points Q2 and the third pixel points Q3, the third state parameters are determined.

[0103] As shown in Table 1, one possible truth table can be:

[0104] Table 1

[0105]

[0106]

[0107] In the table, “0” represents that the printing condition of the corresponding pixel point is in an empty state, and “1” represents that the printing condition of the corresponding pixel point is in a printing state. For the sake of simplicity, the data corresponding to “previous row left and right Q2 / Q3” in the table is the result of the AND logic operation of the printing condition of the second pixel point Q2 and the printing condition of the third pixel point Q3. For the sake of convenience, the following will not be described in detail.

[0108] In the table, Da is the first state parameter, Db is the second state parameter, and Dc is the third state parameter. This implementation method requires a smaller amount of data to be calculated, and the color development states of the first pixel point Q1, the second pixel point Q2 and the third pixel point Q3 have a greater impact on the target pixel point Q0. The state parameters obtained by calculating the color development states of the first pixel point Q1, the second pixel point Q2 and the third pixel point Q3 have a better printing effect.

[0109] The color developing states of the target pixel point Q0 and the reference pixel point can be used to determine the first state parameter, the second state parameter and the third state parameter, and the first state parameter, the second state parameter and the third state parameter are used to indicate the heating degree of the target pixel point Q0, thereby improving the accuracy of the thermal printing

[0110] As an optional implementation, the printing mode includes a second printing mode, and the second printing mode is used to indicate a printing mode in which the heating parameters of the thermistors are determined according to the target pixel point Q0 and a first pixel point Q1 in the same column of the last row of the target pixel point Q0.

[0111] The second state parameter is determined according to the color developing states of the target pixel point Q0 and the corresponding first pixel point Q1.

[0112] As shown in Table 2, one possible truth table can be as follows:

[0113] Table 2

[0114]

[0115] All the state parameters of the thermal printing can be determined through the target pixel point Q0 and the first pixel point Q1, the data operation amount is small, the printing quality is ensured, the efficiency is higher, and the requirement for the equipment is lower.

[0116] As an optional implementation, the printing mode includes a third printing mode, and the third printing mode is used to indicate a printing mode in which the heating parameters of the thermistors are determined according to the target pixel point Q0, the first pixel point Q1 and a fourth pixel point Q4 in the same column of the next row of the target pixel point Q0.

[0117] In addition, the heating parameters further include a third state parameter and a fourth state parameter.

[0118] The heating parameters of the thermistors are determined according to the color developing states of the target pixel point Q0 and the corresponding reference pixel point, and the method further includes the following steps.

[0119] The first state parameter is determined according to the color developing state of the target pixel point Q0.

[0120] The second state parameter is determined according to the color developing states of the target pixel point Q0, the corresponding first pixel point Q1 and the fourth pixel point Q4.

[0121] The third state parameter is determined according to the color developing states of the target pixel point Q0 and the corresponding first pixel point Q1.

[0122] The fourth state parameter is determined according to the color developing states of the target pixel point Q0, the corresponding first pixel point Q1 and the fourth pixel point Q4.

[0123] According to the first state parameter, the second state parameter, the third state parameter and the fourth state parameter, the heating parameter of the thermistor corresponding to the target pixel point Q0 is determined.

[0124] As shown in Table 3 below, one possible truth table can be as follows:

[0125] Table 3

[0126]

[0127] In the case of continuous non-heating, if the next row needs to be printed, the third state parameter Dd indicates the preheating condition, and in combination with the first state parameter Da, the second state parameter Db and Dc, the problem of temperature unevenness caused by non-preheating can be avoided.

[0128] As a feasible implementation manner, the printing mode includes a fourth printing mode, and the fourth printing mode is used to indicate a printing mode in which the heating parameters of the thermistors are determined according to the target pixel point Q0 and the first pixel point Q1, the second pixel point Q2, the third pixel point Q3, the fourth pixel point Q4 and the fifth pixel point Q5 in the same column of the two previous rows of the target pixel point Q0.

[0129] According to the color development states of the target pixel points Q0 and the corresponding reference pixel points, the heating parameters of the thermistors are determined, and the method further includes:

[0130] According to the color development state of each target pixel point Q0, the first state parameter is determined.

[0131] According to the color development states of the target pixel point Q0 and the corresponding first pixel point Q1 and the fifth pixel point Q5, the second state parameter is determined.

[0132] According to the color development states of the target pixel point Q0 and the corresponding first pixel point Q1 and the fifth pixel point Q5, the third state parameter is determined.

[0133] According to the color development states of the target pixel point Q0 and the corresponding first pixel point Q1, the second pixel point Q2, the third pixel Q3, the fourth pixel point Q4 and the fifth pixel point Q5, the fourth state parameter is determined.

[0134] According to the first state parameter, the second state parameter, the third state parameter and the fourth state parameter, the heating parameter of the thermistor corresponding to the target pixel point Q0 is determined.

[0135] As shown in Table 4 below, one possible truth table can be as follows:

[0136] Table 4

[0137]

[0138]

[0139] Wherein, the first state parameter Da is the main heating parameter, Db and Dc are the second and third state parameters, which constitute a two-bit binary number, providing four heating levels for heating adjustment, and the fourth state parameter Dd is used for preheating.

[0140] It should be noted that the above table is only an example, and more reference pixel points and state parameters can be added to further refine the heating level and improve the printing effect.

[0141] As a feasible implementation, the printing mode includes a fifth printing mode, and the fifth printing mode includes:

[0142] Determine the color development state of the pixel points of a row of pixel images and count the number of pixel points in the printing state;

[0143] Compare the number of pixel points in the printing state with the number threshold of printable pixel points of the printing module in a row to obtain the number of prints, specifically including:

[0144] Suppose the number of pixel points in the printing state is L, and the number threshold of printable pixel points of the printing module in a row is M, the number of pixel points in the printing state is printed n=L / M times, n is an integer, and is rounded up in calculation;

[0145] When L>M, in the first n-1 prints, M pixel points in the printing state are printed each time, and in the nth print, the remaining pixel points in the printing state in a row are printed;

[0146] When L<M, it is obvious that n=1, and all pixel points in the printing state in a row are printed;

[0147] Optionally, the continuous pixel points in the printing state are printed in different prints;

[0148] The color depth change caused by the mutual influence of adjacent pixel points in the printing state when heated and printed can be avoided;

[0149] Optionally, the continuous pixel points in the printing state are printed in the same print;

[0150] In the n printing process, the printing paper is still moving, and when the adjacent pixel points in the printing state are printed in different prints, the movement of the printing paper may cause slight up and down fluctuations in the printing line, eventually making the printing effect of the printing line coarser than expected. Printing continuous pixel points in the printing state in the same print can avoid slight up and down fluctuations.

[0151] Please refer to Figure 3 ,Figure 3 is another effect diagram of the thermal printing method disclosed by the embodiment of the present application, and please refer to Figure 4 , Figure 4 is another effect diagram of the thermal printing method disclosed by the embodiment of the present application, which is used to illustrate the implementation of the discrete position and the continuous position.

[0152] As Figure 3 shown, Figure 3 shows a printing effect of the discrete position printing, and the pixel points of the printing state are distributed in two printing times to avoid the temperature overheat and color deepening caused by the simultaneous heating of the pixel points of the adjacent printing state.

[0153] As Figure 3 shown, Figure 3 shows a printing effect of the continuous position printing, and the pixel points of the adjacent printing state are printed in the same printing time to avoid the up and down fluctuation of the horizontal line position.

[0154] In addition, please refer to Figure 5 , Figure 5 is another effect diagram of the thermal printing method disclosed by the embodiment of the present application, and the printing of the control printing module according to the printing times further includes:

[0155] The pixel points of the pixel image in one row are evenly divided into m groups in order, and the pixel points of the color developing state in the pixel points of the pixel image in one row are arranged in the corresponding groups according to the positions, wherein m is a preset number and can evenly divide the pixel points in the same row of the pixel image.

[0156] Obviously, Figure 5 shows an application scenario of 8 pixels in one row divided into 4 groups, and there are three pixel points of the color developing state in one row, which can be divided according to the average interval in one row, so as to fall into the corresponding groups, thereby avoiding the influence between the pixel points, and load balancing can be realized at the same time.

[0157] As a feasible implementation, the heating state signal further includes the heating information of the pixel points of the printing state in different times.

[0158] As an optional implementation, the printing mode includes a sixth printing mode, the printing state includes 2 N order gray scale state, and the heating parameter includes N state parameters.

[0159] The N state parameters are used to indicate N different heating levels.

[0160] The sixth printing mode is used to determine the 2 N order gray scale of the pixel points according to the superposition of the N state parameters.

[0161] In one application scenario, in order to avoid distortion, the color depth of each point needs to be represented by a gray value,

[0162] For example, the gray value of each point can be 0-255, the larger the gray value, the deeper the color, and the combination of eight equal ratio pulses can be used to realize the difference printing of 0-255 gray values. For example, the eight equal ratio pulses are 1, 2, 4, 8, 16, 32, 64, 128, the above numbers can represent the width of the pulse, and the width of the pulse can represent the heating time, and any gray value of 0-255 can be realized by the unique combination of the above 8 numbers.

[0163] For example, in one instance, the gray value is 88, 88=64+16+8, and in the printing module, each point will be judged 8 times of pulse heating, and the pulse combination will be according to the gray value.

[0164] Since 88=64+16+8, the following 8 pulse judgments are made:

[0165] 128 pulse? No

[0166] 64 pulse? Yes

[0167] 32 pulse? No

[0168] 16 pulse? Yes

[0169] 8 pulse? Yes

[0170] 4 pulse? No

[0171] 2 pulse? No

[0172] 1 pulse? No

[0173] The gray value printing of each point can reduce the distortion of the picture, and the equal ratio pulse simplifies the printing control process.

[0174] And, please refer to Figure 6 , Figure 6 is another effect diagram of the thermal printing method disclosed by the embodiment of the present application, which is used to illustrate an actual application scenario, and the 8-bit binary number corresponding to the 8 state parameters is 00100101, and the 8 binary numbers also correspond to 8 different heating levels, i.e. 2 0 -2 7 The binary number corresponds to 0, and the heating level is not added, and the binary number corresponds to 1, and the heating level is added, and the heating level in the figure is added to 32+4+1=37.

[0175] Please refer to Figure 7 , Figure 7 is another effect diagram of the thermal printing method disclosed by the embodiment of the present application;

[0176] As an optional implementation,

[0177] The process of processing the pixel image according to the printing mode and sending the processed data to the printing module for printing comprises:

[0178] According to the paper detection parameters continuously output by the analog-to-digital converter, a difference value is calculated between the current paper detection parameter and the paper detection parameter before a preset time length, and compared with a difference value threshold;

[0179] When the difference value is less than the difference value threshold, the corresponding position is confirmed as a paper printable position;

[0180] When the difference value is greater than the difference value threshold, the corresponding position is confirmed as a non-printable position.

[0181] In the printing process, the position of the paper needs to be identified, and the printing module needs to print on the printing paper to avoid printing on the base paper;

[0182] Compared with the prior art which uses the average value of ADC sampling as the threshold and judges whether the paper is the face paper or the base paper according to whether the continuous value is higher or lower than the threshold, the comparison of the difference value and the difference value threshold can avoid the influence of the overall increase or decrease of the detection value caused by the replacement of the paper or the environmental interference on the detection result.

[0183] Embodiment two

[0184] Please refer to Figure 8 , Figure 8 is a structural schematic diagram of a micro processing chip disclosed by the embodiments of the present application. As shown in Figure 8 , the chip comprises the thermal printing method of any embodiment.

[0185] The chip can be an MCU, a DSP, an MPU, a micro CPU, etc. capable of processing digital signals, analog signals, or a micro central control chip, a system-on-chip, a thermal printing chip, etc. having the functions of signal control, instruction processing and operation, etc.

[0186] Other embodiments of the present application will be apparent to those skilled in the art upon consideration of the specification and practice of the present application disclosed herein. The present application is intended to cover any variations, uses or adaptive changes of the present application following the general principles of the present application and including known or customary technical means in the art not disclosed in the present application. The specification and examples are only considered as exemplary, and the true scope and spirit of the present application are indicated by the following claims.

[0187] It is to be understood that the application is not limited to the precise construction already described above and shown in the drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application should only be limited by the claims appended hereto.

Claims

1. A thermal printing method characterized by, The method comprises: determining an original image; determining a pixel image according to the original image; wherein the pixel image comprises a plurality of pixel points, and the color development state of the pixel points is used to indicate the printing condition of the pixel points, including a printing state or an empty state; determining a printing mode in at least one printing mode, and processing the pixel image according to the printing mode; the at least one printing mode comprises a first printing mode: determining the color development state of the pixel points, and further determining the heating parameter of the target pixel point; determining the heating parameter of the target pixel point according to the color development state of the target pixel point and the reference pixel point, heating printing the target pixel point according to the heating parameter of the target pixel point, and performing a printing operation according to each pixel point in the pixel image; the reference pixel point comprises a first pixel point in the same column of the last row of the target pixel point, and a second pixel point and a third pixel point adjacent to the left and right of the first pixel point; the heating parameter of the target pixel point comprises at least a first state parameter, a second state parameter and a third state parameter; the first state parameter, the second state parameter and the third state parameter are used to indicate the heating degree of the target pixel point, and the heating degree can be superimposed; the first state parameter is determined by the color development state of the target pixel point, the second state parameter is determined by the color development state of the target pixel point and the color development state of the first pixel point, and the third state parameter is determined by the color development state of the target pixel point and the color development state of the second pixel point and the third pixel point; the at least one printing mode comprises a second printing mode: the heating parameter of the target pixel point comprises at least a first state parameter and a second state parameter; the reference pixel point comprises a first pixel point; the first state parameter is determined by the color development state of the target pixel point, and the second state parameter is determined by the color development state of the target pixel point and the color development state of the first pixel point.

2. The method of claim 1, wherein, the at least one printing mode comprises a third printing mode: the heating parameter of the target pixel point comprises at least a first state parameter, a second state parameter, a third state parameter and a fourth state parameter; the reference pixel point comprises a first pixel point and a fourth pixel point in the same column of the next row of the target pixel point; the first state parameter is determined by the color development state of the target pixel point, the second state parameter is determined by the color development state of the target pixel point and the color development state of the first pixel point and the fourth pixel point, the third state parameter is determined by the color development state of the target pixel point and the color development state of the first pixel point, and the fourth state parameter is determined by the color development state of the target pixel point and the color development state of the first pixel point and the fourth pixel point.

3. The method of claim 1, wherein, the at least one printing mode comprises a fourth printing mode: the heating parameter of the target pixel point comprises at least a first state parameter, a second state parameter, a third state parameter and a fourth state parameter; the reference pixel point comprises a first pixel point, a second pixel point, a third pixel point, a fourth pixel point and a fifth pixel point in the same column of the two upper rows of the target pixel point. The first state parameter is determined by the color developing state of the target pixel point, the second state parameter is determined by the color developing state of the target pixel point and the color developing states of the first pixel point and the fifth pixel point, the third state parameter is determined by the color developing state of the target pixel point and the color developing states of the first pixel point and the fifth pixel point, and the fourth state parameter is determined by the color developing state of the target pixel point and the color developing states of the first pixel point, the second pixel point, the third pixel point, the fourth pixel point and the fifth pixel point.

4. The method of claim 1, wherein, The at least one printing mode includes a fifth printing mode. The color developing state of the pixel point in the row of the pixel image is determined. The number of pixel points in the printing state is counted. The number of pixel points in the printing state is compared with the number threshold of the printable pixel points in a row of the printing module, the printing times are obtained, and the printing module is controlled to print according to the printing times. The control of the printing module to print according to the printing times includes: The number threshold is divided by the number of pixel points in the printing state, and the number of pixel points in the printing state is rounded up to obtain n times of printing. In the first n-1 times of printing, the number of pixel points in the printing state is equal to the number threshold. In the n-th time of printing, the remaining pixel points in the printing state are printed. In each of the n times of printing, the pixel points in the printing state can be continuous or discontinuous.

5. The method of claim 4, wherein, The control of the printing module to print according to the printing times further includes: The pixel points in the row of the pixel image are divided into m groups in order, and the pixel points in the printing state are arranged in the corresponding groups according to the positions, wherein m is a preset number and can divide the pixel points in the same row of the pixel image.

6. The method of claim 1, wherein, The at least one printing mode includes a sixth printing mode. The print state includes 2 N gradation states, and the heating parameter includes N state parameters. The N state parameters are used to indicate N different heating levels. The 2 N N state parameters are determined by the 2 N N gray scale states, and the printing of 2 N N gray scale states is realized by the superposition of N different heating levels indicated by the N state parameters.

7. The method of claim 6, wherein, Each pixel point of the pixel image is indicated by N-bit binary data, and each bit of the N-bit binary data is used for indicating a corresponding state parameter. N gradation state, and each bit of the N-bit binary data is used for indicating a corresponding state parameter.

8. The method according to any one of claims 1 to 7, characterized in that, The process of processing the pixel image according to the printing mode and sending the processed data to the printing module for printing includes: According to the paper detection parameters continuously output by the analog-to-digital converter, the difference between the current paper detection parameter and the paper detection parameter before a preset time period is calculated, and the difference is compared with a difference threshold value. When the difference is less than the difference threshold value, the corresponding position is determined as a printable position of the paper. When the difference is greater than the difference threshold value, the corresponding position is determined as a non-printable position.

9. A chip, characterized by The chip is used to implement the thermal printing method according to any one of claims 1-8. The chip is used to implement the thermal printing method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Thermal printing method, micro-processing chip, system and equipment

    CN118144451A

  • Multi-gradation heat sensitive recorder and its density correcting method

    JP1996065516A