Heating control method and printing chip

By generating sequentially executed heating commands in the thermal printer to control the heating action of pixels, the problem of excessive equipment load caused by simultaneous operation of heating units is solved, improving the stability and service life of the equipment, and ensuring the uniformity and accuracy of printing results.

CN119636258BActive Publication Date: 2025-10-24APEX MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing thermal printers suffer from the problem of excessive load on the equipment and reduced lifespan due to too many heating units operating simultaneously during the heating process.

Method used

By generating heating instructions that are executed sequentially, the heating action of pixels is controlled, and the number of pixels that can be executed simultaneously in each heating instruction is limited to avoid too many pixels being heated at the same time.

Benefits of technology

It effectively reduces the total power consumption of thermal printers, improves the stability and lifespan of the equipment, and ensures the uniformity and accuracy of printing results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119636258B_ABST
    Figure CN119636258B_ABST
Patent Text Reader

Abstract

The application provides a heating control method and a printing chip. The method comprises the following steps: in response to gray information of a pixel row and a preset heating point threshold, generating a plurality of heating instructions capable of being executed sequentially; the heating instructions are used for controlling whether each pixel point of the pixel row executes a heating action within a unit time; the heating point threshold is specifically a maximum number of pixel points capable of executing the heating action simultaneously in each heating instruction; sequentially executing the plurality of heating instructions to control each pixel point to execute the heating action; by using the method, the number of pixel points executing the heating action at the same time in the process of thermal printing is controlled to be not more than a predetermined number, and the problem that the total power is excessively high due to too many pixel points executing the heating action simultaneously is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of thermal printing, and more particularly to a heating control method and a printing chip. Background Art

[0002] Thermal printers can print not only black and white information, but also grayscale information. The principle behind this is that a thermal printer is equipped with a row of independently heated heating units. By controlling the temperature of each heating unit, the thermal paper is heated, and the corresponding grayscale pixels are printed on the thermal paper. Specifically, the higher the temperature of the heating unit, the darker the pixel printed on the thermal paper. Therefore, by controlling the heating time of the heating unit, the heating temperature of the heating unit can be controlled accordingly, indirectly adjusting the grayscale value of the pixel on the thermal paper.

[0003] In the prior art, in order to control the heating time of the heating unit, as Figure 4 As shown, a pulse signal is usually used to control the opening and closing of the heating unit. The high level of each pulse signal can be regarded as turning on the heating unit, and the low level of the pulse signal can be regarded as turning off the heating unit. Therefore, by controlling the number of pulse signals, the heating time of the heating unit can be controlled accordingly.

[0004] During thermal printing, the heating time of each heating unit can be independently controlled by outputting a pulse signal to each heating unit. There are two current heating unit control modes: Figure 4 As shown in the figure, all heating units start to output PWM signals at the same time. The heating units with shorter heating time return to the low level state after heating. After all heating units have finished heating, printing on the thermal printing paper will start. The second method is to randomly distribute the heating pulses of all points in a row of heating units within the total heating time.

[0005] Both of the above-mentioned heating methods have a common disadvantage, that is, during the heating process, there may be too many heating units that need to be heated simultaneously, which will cause the thermal printer to be in a high-load state and affect the service life of the thermal printer. Summary of the Invention

[0006] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a heating control method and a printing chip to overcome the disadvantage that during the printing heating process of the existing image forming device, too many heating units need to work simultaneously, resulting in excessive heating power of the device.

[0007] The above technical objectives of the present invention are achieved through the following technical solutions:

[0008] In a first aspect, a heating control method is provided.

[0009] generate a plurality of heating instructions capable of being executed sequentially in response to the gray scale information of the pixel row and a preset heating point threshold; the heating instructions are used to control whether each pixel point of the pixel row performs a heating action in a unit time; and the heating point threshold is specifically a maximum number of pixel points capable of simultaneously performing a heating action in each heating instruction;

[0010] sequentially execute the plurality of heating instructions to correspondingly control each pixel point to perform a heating action.

[0011] In an embodiment, the heating instructions include a heating point number , and a determination method of the heating point number , specifically includes:

[0012] based on the number of pixel points of the pixel row and the gray scale value corresponding to each pixel point , calculate the total sum of the gray scale values of all pixel points in the pixel row , including: ;

[0013] based on the total sum of the gray scale values and the number of instructions of the heating instructions , calculate the heating point number , including: .

[0014] In an embodiment, the gray scale information specifically includes the gray scale value of each pixel point of the pixel row.

[0015] In an embodiment, the number of instructions of the heating instructions is greater than, equal to, or less than the upper limit of the gray scale value.

[0016] When the number of instructions of the heating instructions is greater than the upper limit of the gray scale value in this embodiment, the heating point number at the same time can be further reduced, and the total power can be further reduced. When the number of instructions is less than the lower limit of the gray scale value, the printing speed can be accelerated.

[0017] In an embodiment, when the heating point number is not an integer, the heating point number is rounded up.

[0018] In an embodiment, when the heating point number is not an integer, the heating point number is rounded up to obtain a first heating point number , and the heating point number is rounded down to obtain a second heating point number ;

[0019] The heating instruction specifically comprises:

[0020] a first heating instruction for controlling a first heating point number of pixel points to perform a heating action;

[0021] a second heating instruction for controlling a second heating point number of pixel points to perform a heating action;

[0022] a first instruction number corresponding to the first heating instruction , and a second instruction number corresponding to the second heating instruction , satisfying the following conditions:

[0023] .

[0024] In the embodiment, the calculation of the heating point number is more accurate, and the heating point number at the same time is reduced.

[0025] In an embodiment, the sequentially executing a plurality of heating instructions specifically comprises:

[0026] rearranging the order of the first heating instruction and the second heating instruction based on the ratio of the first instruction number and the second instruction number ;

[0027] sequentially executing all the heating instructions after the rearrangement.

[0028] In an embodiment, each of the heating instructions is generated by the following steps:

[0029] based on the heating point number and the gray value of each pixel point in the current unit time, assigning the pixel points with the highest gray values of less than or equal to to perform a heating action, and assigning the remaining pixel points not to perform a heating action;

[0030] decreasing the gray value of each pixel point assigned to perform a heating action by one.

[0031] In an embodiment, the pixel row is divided into at least two pixel groups, and the pixels in each of the pixel groups are not adjacent; each of the pixel groups is driven to perform the heating control method as described in any one of the above embodiments.

[0032] In the embodiment, the heating heat is more uniform, and the concentration of heating is avoided.

[0033] In a second aspect, a printing chip is used to execute the heating control method as described in the first aspect.

[0034] In a third aspect, a thermal printing device comprises a memory, a processor, the memory stores a computer program executable on the processor, and the processor implements the method of the first aspect when executing the computer program.

[0035] In a fourth aspect, a thermal printing system comprises the thermal printing device of the fourth aspect.

[0036] In summary, the present application has the following beneficial effects: a heating control method, comprising: in response to a pixel row heating instruction containing gray scale information, generating a plurality of heating instructions capable of being executed sequentially based on a preset heating point threshold; the heating instruction is used to control whether each pixel point executes a heating action in a unit time; the heating point threshold is specifically the maximum number of pixel points capable of simultaneously executing a heating action in each heating instruction; sequentially executing a plurality of heating instructions corresponds to controlling each pixel point to execute a heating action; by using the method of the present application, the number of pixel points executing a heating action at the same time in the process of thermal printing can be controlled to not exceed a predetermined number, effectively solving the problem of excessive total power caused by too many pixel points simultaneously heating. BRIEF DESCRIPTION OF DRAWINGS

[0037] Figure 1 A flow chart of the heating control method of the present application;

[0038] Figure 2 A structural schematic diagram of the thermal printing device provided by the embodiment of the present application;

[0039] Figure 3 A block diagram of the thermal printing device provided by the embodiment of the present application;

[0040] Figure 4 A schematic diagram of the relationship between pixel gray scale and pulse signal in the embodiment of the present application;

[0041] Figure 5 A schematic diagram of the heating instruction queue in the embodiment of the present application;

[0042] Figure 6 A flow chart of generating all heating instructions in the embodiment of the present application;

[0043] Figure 7 A flow chart of generating a current unit time heating instruction in the embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the objects, features and advantages of the present application more clear, the specific embodiments of the present application are described in detail below with reference to the drawings. The drawings show several embodiments of the present application. However, the present application can be realized in many different forms and is not limited to the embodiments described herein.

[0045] In the embodiments of the present application, “at least one” means one or more, and “multiple” means two or more. “And / or” describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can represent the cases of A alone, A and B together, and B alone. Wherein A and B can be singular or plural. The character “ / ” generally represents an “or” relationship between the front and rear associated objects. “At least one of the following” and the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, and c can be single or multiple.

[0046] Those of ordinary skill in the art can realize that each unit and algorithm step described in the embodiments disclosed herein can be realized by electronic hardware, computer software and a combination of electronic hardware and computer software. Whether the functions are realized by hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0047] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.

[0048] In several embodiments provided in the present application, any function realized in the form of a software function unit and sold or used as an independent product can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts of the technical solutions that make contributions to the prior art or the parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing an apparatus (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0049] The above description is merely a specific embodiment of the present application. Any person skilled in the art may easily conceive of variations or substitutions within the technical scope disclosed in this application, and such variations or substitutions shall be within the scope of protection of this application. The scope of protection of this application shall be subject to the scope of protection of the claims.

[0050] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0051] Example 1

[0052] In order to solve the above problems, the present invention provides a heating control method, such as Figure 1 As shown, the method includes:

[0053] S1. In response to the grayscale information of the pixel row and a preset heating point number threshold, a plurality of heating instructions that can be executed sequentially are generated; the heating instructions are used to control whether each pixel in the pixel row performs a heating action within a unit time; the heating point number threshold is specifically: the maximum number of pixels that can simultaneously perform the heating action in each heating instruction;

[0054] S2. Execute several heating instructions in sequence to control each pixel to perform heating action.

[0055] In actual applications, when a pixel performs a heating action, it means that the printing unit on the thermal printer heats the corresponding area on the thermal printing paper. In order to limit the power of the thermal printer's pixels, this application first limits the number of pixels that can work simultaneously, that is, a preset threshold value of the number of heating points; grayscale information is used to specify the heating time of each pixel. The larger the grayscale value, the more pulses the pixel requires. The heating instruction refers to a specific instruction used to control which pixels perform the heating action and which pixels do not perform the heating action within a pulse signal time period. The specific reflection is in the pulse signal. Within the same time period, the pulse signal corresponding to the pixel that needs to perform the heating action is high, and the pulse signal corresponding to the pixel that does not need to perform the heating action is low (the high and low level pulses here do not constitute a limitation. A low level pulse can also be used to represent the pixel that performs the heating action, and a high level can be used to represent the pixel that does not need to perform the heating action). When the heating instructions are arranged in chronological order, the corresponding pixel can be controlled to perform the heating action within each pulse time period. In this application, the maximum number of pixels that can perform heating actions at the same time is limited by a preset heating point threshold, and corresponding heating instructions are generated under this limitation. This can avoid the problem of too many pixels working at the same time and the total power of the device being too large, which affects the stability and service life of the device during the heating process.

[0056] In one embodiment, the gray scale information specifically includes a gray scale value of each pixel point of the pixel row.

[0057] In actual application, since the pixel points are linearly arranged in a horizontal direction, each time the pixel points are printed, a row of pixels is printed. The number of pixels in the pixel row can determine the number of pixel points to be executed with the heating action. In this application, the gray scale value of the pixel is taken as an example of 256-order gray scale. The highest value of the gray scale is 255. When the gray scale is 0, it means that the pixel point is not heated, and the printed pixel is a white pixel. Whenever the gray scale of the pixel deepens by one degree, a corresponding pixel point can be correspondingly increased by one pulse signal, and after a certain heating time is prolonged, the temperature of the pixel point is higher, and the generated gray scale value of the printing is deeper.

[0058] In one embodiment, the number of instructions of the heating instruction is equal to the upper limit of the gray scale value.

[0059] In actual application, fixing the number of instructions as the upper limit of the gray scale value can reduce the complexity of the control system, avoid the need for dynamic calculation or adjustment of the number of instructions, thereby reducing the complexity of system implementation and improving the control efficiency. It can also ensure that the heating time is proportional to the gray scale value, and facilitate adjustment of the control instruction according to the image information.

[0060] In one embodiment, the heating instruction includes a heating point number , and a determination method of the heating point number , specifically includes:

[0061] based on the number of pixel points of the pixel row and the gray scale value of each pixel point , calculating the total gray scale value of all pixel points in the pixel row , including: ;

[0062] based on the total gray scale value and the number of instructions of the heating instruction , calculating the heating point number , including: .

[0063] In actual application, the heating point number is dynamically calculated based on the total gray scale value of the pixel row and the number of instructions , which can adapt to the needs of different gray scales and pixel rows, effectively balance the heating power and the heating speed. Moreover, while considering the total gray scale value

[0064] , this embodiment also considers the gray scale distribution of the pixel row, which can more accurately allocate the heating instruction, meet the printing needs, ensure the accuracy of the gray scale level, improve the printing effect, and improve the quality of the finished image.

[0064] In one embodiment, the number of heating points is not an integer, the number of heating points is rounded up.

[0065] In practical applications, since the number of pulses needs to be an integer, in the case where the maximum number of heating exists an upper limit, if the number of heating points is not an integer, the number of heating points needs to be rounded up to keep the number of heating points at the minimum value in each heating without exceeding the maximum number of heating. In this way, the power required in the heating process can be minimized to avoid the load of the thermal printer being too high to affect the service life.

[0066] In the actual generation of heating instructions, the heating instructions are determined according to the predetermined number of instructions N, so in the actual generation process, repeated actions of heating instructions in each unit time are needed to generate a predetermined number N of heating instructions, as shown in Figure 6 , first, the parameters need to be initialized, and then according to the parameters of the current unit time, a heating instruction is generated accordingly, after the generation, the number of heating instructions is counted , if the generated heating instructions are less than the number of instructions , the heating instructions continue to be generated, and if the number of generated heating instructions is equal to the number of instructions , it means that all the heating instructions of the current pixel row have been generated and the heating action can be performed.

[0067] In one embodiment, as shown in Figure 7 , each heating instruction is generated by the following steps:

[0068] S101, based on the number of heating points and the gray value of each pixel point in the current unit time, the pixel points with the highest gray value of or less are specified to perform the heating action, and the remaining pixel points are specified not to perform the heating action;

[0069] S102, the gray value of each pixel point specified to perform the heating action is reduced by one.

[0070] Specifically, in this application, if the heating action is performed less, the pixel points with more heating actions may not be able to perform the heating action, which may cause printing distortion, so in this application, the first The pixel performs the heating action. If the pixel performs the heating action within the current unit time, the grayscale value needs to be reduced by one until the number of times all the pixels are heated is 0, which means that the pixel has been heated and printing on the thermal paper begins.

[0071] In some cases, there may be two or more pixels with the same number of heating actions to be performed. In this case, one pixel can be randomly selected to perform the heating action, or based on the sequence number of the pixel, the pixel with a larger sequence number or the pixel with a smaller sequence number can be given priority, or other selection situations should all fall within the scope of protection of this application.

[0072] In some cases, due to It is a maximum number, not a fixed number, so when the number of heating actions to be executed for certain heating units is reset to zero, there is no need to execute the heating action and the counting action.

[0073] In this embodiment, a specific heating instruction is used to illustrate the above heating control process as an example: Figure 5 The figure shows a truth table for a set of heating instructions, which illustrates the process of pixel printing using 8 heating units. The vertical headers in the truth table represent the unit time corresponding to each pulse signal, and the horizontal headers in the truth table represent each heating unit. A value of 1 in the truth table indicates that the heating unit performs a heating action within the unit time, and a value of 0 in the truth table indicates that the heating unit does not perform a heating action within the unit time. During the printing process of a certain pixel row, the grayscale data of each pixel in the pixel row are 254, 5, 9, 4, 0, 185, 89, and 54 respectively; first, the total grayscale value needs to be calculated. ;Number of instructions = grayscale value upper limit = 255; then calculate the number of heating points, including: ;because For non-integer Round up to get ; Therefore, the number of heating units performing heating action each time is indivual.

[0074] Based on the number of heating points respectively, in each heating instruction, the pixel points are specified to perform the heating action, and specifically, from the heating instruction corresponding to the first pulse signal, three pixel points with the most gray values, that is, the three pixel points with the serial numbers 1, 6 and 7, are selected, the three pixel points are specified to perform the heating action in the time of the first heating instruction, then the number of times of the heating action to be performed by the three pixel points is reduced by one respectively, then the heating instruction corresponding to the second pulse signal is determined, the three pixel points with the serial numbers 1, 6 and 7 are still selected, and the above process is repeated until the number of times of the heating action to be performed by all the pixel points is 0.

[0075] In some cases, because is the maximum number, not a fixed number, when the number of times of the heating action to be performed by some pixel points is zero, the heating action and the counting action do not need to be performed any more, such as Figure 5 , as shown in the case corresponding to the 254th heating instruction, when only one pixel point has the number of times of the heating action to be performed that is not 0, only the one pixel point with the number of times of the heating action to be performed that is not 0 needs to be controlled to perform the heating action.

[0076] Based on the above process, the heating instructions in each unit time can be obtained, each heating instruction corresponds to the content of each horizontal row in the truth table, that is, in the unit time, which pixel points perform the heating action and which pixel points do not perform the heating action, after all the heating instructions are sorted according to time, the heating control method corresponding to the pixel row can be obtained.

[0077] In summary, the application provides a heating control method, the number of heating points is calculated based on the gray values of the pixel row, so as to control the maximum number of pixel points that can work simultaneously in a unit time, which can effectively solve the problem of too many pixel points working simultaneously and the problem of too large power of the thermal printing device, and effectively improve the defects of insufficient device stability and short service life.

[0078] Embodiment Two

[0079] Further, based on the embodiment one, the application further provides another specific embodiment, the technical solution in the embodiment two is similar to the technical solution in the embodiment one, the difference lies in that: when the number of heating points is not an integer, the number of heating points is rounded up to obtain a first number of heating points , and the number of heating points is rounded down to obtain a second number of heating points .

[0080] In the embodiment one, only the number of heating points The upward rounding is performed, which causes the heating instruction to continuously maintain the maximum M in the early stage to control the number of heated pixels, and the power is large, and the number of heated pixels controlled by the heating instruction in the subsequent part is less than M, and the power is small. In the embodiment, since the total sum of the gray values is fixed, the maximum printing number is also fixed in association with the upper limit of the gray value, so as to enable the number of simultaneously heated points to be as small as possible, the upward rounding and the downward rounding are respectively performed on the number of simultaneously heated points to obtain a first heating point number and a second heating point number .

[0081] In an embodiment, the heating instruction specifically comprises: a first heating instruction for controlling the first heating point number pixels to perform a heating action; a second heating instruction for controlling the second heating point number pixels to perform a heating action; a first instruction number corresponding to the first heating instruction, and a second instruction number corresponding to the second heating instruction, which satisfy the following conditions:

[0082] .

[0083] In actual application, after the upward rounding and the downward rounding are respectively performed on the heating point number M, since the total number of the heating instructions is unchanged, the first instruction number and the second instruction number need to satisfy: Since the total sum of the gray values is unchanged, the first instruction number and the second instruction number also need to satisfy .

[0084] Combined with the two equations, the first instruction number and the second instruction number can be calculated respectively.

[0085] As shown in Figure 5 , the heating point number can be calculated by the total sum of the gray values and the number of the heating instructions; then the first heating point number is obtained by upward rounding , and the second heating point number is obtained by downward rounding .

[0086] Based on the above equations, there are:

[0087] ​;

[0088] The calculation is as follows: (89.25 rounded up); (165.75 rounded down).

[0089] In actual application, based on the above steps, the number of heating instructions in which three pixel points perform heating actions simultaneously is greatly reduced from 138 in Embodiment One to 90, which effectively reduces the duration of high-power operation and effectively prolongs the service life of the thermal printing device.

[0090] Embodiment Three

[0091] Based on Embodiment Two, a plurality of heating instructions are sequentially executed, specifically including:

[0092] Based on the ratio of the number of first instructions to the number of second instructions , the order of the first heating instructions and the second heating instructions is rearranged;

[0093] All the heating instructions after rearrangement are sequentially executed.

[0094] In order to avoid the need for more pixel points to heat simultaneously, the present application rearranges the heating instructions based on the proportion of the two types of heating instructions, and divides the heating instructions into heating instruction sets based on the proportion of the two types of heating instructions, with the number of heating instructions in each heating instruction set being the sum of the two proportion elements. For example, in Embodiment Two, the number ratio of the first heating instructions to the second heating instructions is , so the number of heating instructions in each heating instruction set is 17. If the heating instructions are executed in the order of the heating instruction sets, 11 first heating instructions can be executed first, followed by 7 second heating instructions, and the cycle is repeated. In this way, the first heating instructions are separated by the second heating instructions, avoiding the long-term execution of multiple first heating instructions, which leads to the thermal printer being in a high-load state for a long time, making the heating power of the thermal printer more even, and effectively solving the problem of long-term high-load operation of the thermal printer.

[0095] In one embodiment, based on the ratio of the number of first instructions to the number of second instructions , the order of the first heating instructions and the second heating instructions is rearranged, and the first heating instructions and the second heating instructions can also be mixed in a heating instruction set. For example, the number ratio of the first heating instructions to the second heating instructions is 11:6, and the 17 heating instructions can be arbitrarily ordered, not limited to executing 11 first heating instructions first and then executing 6 second heating instructions.

[0096] In one embodiment, in order to make the pixel point working power of the thermal printer more even, the ratio can be further reduced on the basis of strict proportion limit, so that the elements on both sides of the ratio are as small as possible, for example: The number of heating instructions in each heating instruction set can be divided into 3, so that during the sequential execution of the heating instructions, three pixel points are not always heated, avoiding the high load state, making the heating power more even, and effectively solving the problem of long-time high load operation.

[0097] Embodiment four

[0098] Further, on the basis of embodiment one, the embodiment further provides a heating control method.

[0099] Therefore, the embodiment further proposes a heating point number determination method, the heating point number is determined by the following steps:

[0100] Based on the number of pixels in the pixel row to be printed and the corresponding gray value of each pixel point , the total sum of the gray values of all pixels is calculated , including: ;

[0101] Based on the total sum of the gray values , the number of instructions and the preset adjustment factor , the heating point number is calculated, including: . The number of instructions can be adjusted according to actual needs, and can be greater than, equal to or less than the upper limit of the gray value; when the number of instructions is greater than the upper limit of the gray value, compared with embodiment one, the heating point number M is reduced, which can further reduce the number of pixel points heated at the same time; when the number of instructions is less than the upper limit of the gray value, compared with embodiment one, the heating and printing speed can be accelerated.

[0102] Embodiment five

[0103] Further, since in the thermal printing device, the distance between each heating unit is relatively close and the volume is relatively small, in the heating process, adjacent heating units will usually affect each other, ultimately affecting the printing effect. Therefore, on the basis of embodiments 1-4, the present application further provides a specific implementation, which is a heating control method, including: dividing the pixel row into at least two pixel groups, and the pixels in each pixel group are not adjacent;

[0104] The heating control method of any one of embodiments 1-4 is sequentially driven to execute on each pixel group.

[0105] Specifically, in order to avoid the mutual influence of adjacent heating units when heating at the same time, resulting in inaccurate final temperature, the eight printing units shown in the embodiment are divided into three heating unit groups; wherein the first group is 1, 4, and 7; the second group is 2, 5, and 8; and the third group is 3 and 6. In the heating process, the three pixel points in the first group are first controlled to heat, and the specific heating control method adopts the heating method of any one of embodiments 1-4. After the heating of the three pixel points in the first group is completed, the second group performs the heating action, and after the heating of the second group is completed, the third group performs the heating action. The above specific embodiments and numerical examples are for the convenience of the technician to understand the scheme and should not be understood as limiting the application. Figure 5

[0106] By dividing the pixel points into multiple groups and the pixel points in each group being non-adjacent, the heating method in the embodiment can avoid the mutual influence of adjacent pixel points when heating at the same time, and better match the number of heating times with the gray scale of the pixel points.

[0107] Embodiment six

[0108] Please refer to Figure 2 , for example, the application provides a printing chip, the printing chip is used for executing the heating control method indicated in the above embodiments. For example, the micro-processing chip can be a microcontroller unit (MCU), a digital signal process (DSP), an MPU (including a microprocessor unit and a memory protection unit), a micro central processing unit (CPU), etc. A micro central control chip or a system-on-chip chip capable of processing digital signals, analog signals, or having the functions of signal control, instruction processing and operation.

[0109] Figure 2 A structure diagram of a thermal printing device provided in the embodiment of the application is shown in Figure 2 , the thermal printing device includes a memory 51 and a processor 52.

[0110] The memory 51 stores a computer program that can run on the processor 52.

[0111] The processor 52 is configured to execute the method provided in the above embodiments. ​

[0112] Exemplarily, the present application provides a thermal printing system, the thermal printing system comprising the thermal printing device indicated in the above embodiments.

[0113] Figure 3 is a block diagram of a thermal printing device provided by an embodiment of the present application, which can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0114] The apparatus 600 can include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.

[0115] The processing component 602 usually controls overall operations of the apparatus 600, such as operations associated with displaying, making phone calls, data communications, camera operations and recording operations. The processing component 602 can include one or more processors 620 to execute instructions to complete all or part of steps of the methods described above. Further, the processing component 602 can include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0116] The memory 604 is configured to store various types of data to support operations of the apparatus 600. Examples of these data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, videos, etc. The memory 604 can be realized by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0117] The power supply component 606 provides power for various components of the apparatus 600. The power supply component 606 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing power for the apparatus 600.

[0118] The multimedia component 608 includes a screen providing an output interface between the device 600 and a user. In some embodiments, the screen includes a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensor can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.

[0119] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC) configured to receive an external audio signal when the device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0120] The I / O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0121] The sensor component 614 includes one or more sensors to provide various state assessments for the device 600. For example, the sensor component 614 can detect an open / closed state of the device 600, relative positioning of components, such as a display and a keypad of the device 600, a change in position of the device 600 or a component of the device 600, presence or absence of user contact with the device 600, a change in orientation of the device 600 or acceleration / deceleration of the device 600, and a temperature change of the device 600. The sensor component 614 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 614 can further include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 614 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0122] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from external broadcast management systems via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate close proximity communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0123] In an exemplary embodiment, the device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements, for performing the above-described methods.

[0124] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 604 including instructions, is also provided, which can be executed by the processor 620 of the device 600 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0125] The embodiments of the present application also provide a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a thermal printing device, the thermal printing device is enabled to perform the method provided by the above-described embodiments.

[0126] The embodiments of the present application also provide a computer program product, which comprises: a computer program stored in a readable storage medium, at least one processor of a thermal printing device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to enable the thermal printing device to perform the scheme provided by any of the above-described embodiments.

[0127] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the present application cover any and all variations of the present disclosure including those variations which can be incorporated into the above detailed description and which are within the scope of the present disclosure. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

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

Claims

1. A heating control method, characterized in that, a plurality of heating instructions capable of being executed sequentially are generated in response to gray scale information of a pixel row and a preset heating point number threshold; the heating instructions are used to control whether each pixel point of the pixel row performs a heating action in a unit time; and the heating point number threshold is specifically a maximum number of pixel points capable of simultaneously performing a heating action in each heating instruction; The heating instruction includes a number of heating points The number of heating points The determination method specifically includes: The number of pixels in the pixel row , and a gray value corresponding to each pixel , calculating the sum of the gray values of all pixels in the pixel row , comprising: ; based on the sum of the gray values and the number of instructions of the heating instruction , calculate the number of heating points , comprising: ; a plurality of the heating instructions are executed sequentially to correspondingly control each pixel point to perform a heating action.

2. The heating control method of claim 1, wherein, The gray scale information specifically includes a gray scale value of each pixel point of the pixel row.

3. The heating control method of claim 1, wherein, The number of instructions of the heating instruction Greater than or equal to or less than the upper limit of the gray scale value.

4. The heating control method of claim 1, wherein, in the case where the heating point number is not an integer, the heating point number is rounded up.

5. The heating control method of claim 1, wherein, in the case that the heating point number is not an integer, the heating point number is rounded up to obtain a first heating point number , and in the case that the heating point number is not an integer, the heating point number is rounded down to obtain a second heating point number The heating instruction specifically includes: a first heating instruction for controlling a first number of heating points a heating action on a first pixel point; a second heating instruction for controlling a second number of heating points a heating action on a pixel point; The first heating instruction corresponds to a first instruction quantity , and the second heating instruction corresponds to a second instruction quantity , and the following conditions are met: 。 6. A heating control method according to claim 5, wherein, The sequential execution of a plurality of the heating instructions specifically includes: Based on the first instruction quantity and the second instruction number and rearranging the order of the first heating instruction and the second heating instruction; Sequential execution of all the reordered heating instructions.

7. The heating control method of claim 1, wherein, Each of the heating instructions is generated by the following steps: Based on the number of heating points , and the grayscale value of each pixel in the current unit time, specified to be less than or equal to The pixel with the highest gray value performs the heating action, and the remaining pixels are designated not to perform the heating action; The gray scale value of each pixel point designated to perform a heating action is reduced by one respectively.

8. The heating control method according to any one of claims 1-7, characterized in that, the pixel row is divided into at least two pixel groups, and the pixels in each of the pixel groups are not adjacent; each of the pixel groups is driven in sequence to perform the heating control method according to any one of claims 1-7.

9. A print chip, characterized by The printing chip is used to perform the heating control method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Simulation method, device and equipment of thermal printer core and medium

    CN116852870A

  • Improved thermal printer gray scale printing control method

    CN117644725A