Thermal printing method, microprocessor chip, system and equipment
By adjusting the total heating time according to the heating information of the current, previous and next lines in the thermal printer, the print quality problem caused by temperature instability is solved, and more stable temperature control and higher print quality are achieved.
Patent Information
- Application Number
- CN202410279204.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-03-11
AI Technical Summary
Unstable temperature of the thermal printer results in poor print quality, which may lead to print tailings due to excessive temperatures, or may lead to too shallow prints due to low temperatures.
By obtaining the printing request, the printing information is determined, including the heating information of the current line, the previous line and the next line, based on this information, the total heating time required for the current line, including the actual heating time of at least three pulses, and the current line is printed according to the total heating time.
During the printing process, by paying attention to the printing situation of the same resistor on the previous line and the next line, adjust the pulse time of the current line, keep the printing temperature in the appropriate range, avoid the problem of excessive or low temperature, and improve the printing quality.
Smart Images

Figure CN118144451B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to thermal printing technology, and in particular to a thermal printing method, microprocessor chip, system and equipment. Background Art
[0002] At present, the working principle of thermal printers is that a semiconductor heating element is installed on the print head. After the print head is heated and contacts the thermal printing paper, the required pattern can be printed out. Its principle is similar to that of thermal fax machines. The image is generated by heating and chemical reactions in the film. This thermal printer chemical reaction is carried out at a certain temperature. High temperature will accelerate this chemical reaction. When the temperature is below 60°C, it takes a long time, even several years, for the paper to turn dark; when the temperature is 200°C, this reaction will be completed in a few microseconds.
[0003] In the prior art, generally, a thermal printer has only one row of resistors. After the resistors heat up, they leave color on the printing paper. The higher the temperature, the darker the print, and the lower the temperature, the lighter the print. The resistors have only two conditions: heated and unheated. When printing an image, the second line is printed after the first line is printed, and so on.
[0004] However, in the prior art, when the same resistor is heated for multiple rows in a row but the next row is not heated, the next row may be printed with tailing due to excessively high temperature, or when the same resistor is not heated for multiple rows in a row but one row is suddenly heated, the next row may be printed too lightly due to excessively low temperature. Therefore, the temperature of the resistor is unstable, resulting in poor printing quality. Summary of the invention
[0005] The present application provides a thermal printing method, a microprocessor chip, a system and a device, which are used to solve the technical problem that the temperature of a thermal printer is unstable and causes poor printing quality.
[0006] In a first aspect, the present application provides a thermal printing method, comprising:
[0007] Get print request;
[0008] Determine printing information according to the printing request; wherein the printing information includes heating information of a current line to be printed, a line above the current line, and a line below the current line;
[0009] Determine the total heating time required for the current row according to the printing information; the total heating time includes the actual heating time of at least three pulses;
[0010] Print the current line according to the total heating time.
[0011] Furthermore, the actual heating duration indicates whether each pulse is heated within the respective actual pulse time width.
[0012] Furthermore, the heating information indicates whether heating is performed;
[0013] The step of determining the total heating time required for the current row according to the printing information includes:
[0014] Determining an actual heating duration of a first pulse of the current row according to heating information of the current row in the printing information;
[0015] Determine the actual heating duration of the second pulse of the current row according to the heating information of the current row and the heating information of the previous row in the printing information;
[0016] The actual heating duration of the third pulse of the current row is determined according to the heating information of the current row, the heating information of the previous row and the heating information of the next row in the printing information.
[0017] Further, determining the total heating time required for the current row according to the printing information includes:
[0018] determining a target heating level for the current row according to the printing information;
[0019] Determining the actual heating duration of each pulse of the current row based on a mapping relationship between a preset heating level and an actual heating duration of each pulse;
[0020] Wherein, the heating level includes a preset number of levels, and the heating level is determined according to a preset correspondence with the printing information and the printing information. Further, printing the current line according to the total heating time includes:
[0021] According to the total heating time, the actual heating time of each pulse is obtained in sequence;
[0022] The current line is printed according to the actual heating duration of each pulse.
[0023] Furthermore, the acquisition order of each pulse is a preset order or a random order.
[0024] Furthermore, the preset pulse time widths of the pulses are equal or unequal.
[0025] In a second aspect, the present application provides a thermal printing device, comprising:
[0026] An acquisition module, used for acquiring a print request;
[0027] A first determining module, configured to determine printing information according to the printing request; wherein the printing information includes heating information of a current line to be printed, a line above the current line, and a line below the current line;
[0028] A second determination module is used to determine the total heating time required for the current line according to the printing information; the total heating time includes the actual heating time of at least three pulses;
[0029] A printing module is used to print the current line according to the total heating time.
[0030] Furthermore, the actual heating duration indicates whether each pulse is heated within the respective actual pulse time width.
[0031] Furthermore, the heating information indicates whether heating is performed;
[0032] The second determining module includes:
[0033] A first determining unit, configured to determine an actual heating duration of a first pulse of a current row according to heating information of a current row in the printing information;
[0034] A second determining unit, configured to determine an actual heating duration of the second pulse of the current row according to the heating information of the current row and the heating information of the previous row in the printing information;
[0035] The third determining unit is used to determine the actual heating duration of the third pulse of the current row according to the heating information of the current row, the heating information of the previous row and the heating information of the next row in the printing information.
[0036] Furthermore, the second determining module includes:
[0037] a fourth determining unit, configured to determine a target heating level of the current row according to the printing information;
[0038] a fifth determining unit, configured to determine the actual heating duration of each pulse of the current row based on a mapping relationship between a preset heating level and an actual heating duration of each pulse;
[0039] The heating level includes a preset number of grades, and the heating level is confirmed according to a preset corresponding relationship with the printing information and the printing information.
[0040] Furthermore, the printing module comprises:
[0041] An acquisition unit, used for sequentially acquiring the actual heating duration of each pulse according to the total heating duration;
[0042] The printing unit is used to print the current line according to the actual heating duration of each pulse.
[0043] Furthermore, the acquisition order of each pulse is a preset order or a random order.
[0044] Furthermore, the preset pulse time widths of the pulses are equal or unequal.
[0045] In a third aspect, the present application provides a microprocessor chip, wherein the microprocessor chip is used to execute the thermal printing method described in the first aspect.
[0046] In a fourth aspect, the present application provides a thermal printing device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0047] In a fifth aspect, the present application provides a thermal printing system, which includes the thermal printing device described in the fourth aspect.
[0048] In a sixth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0049] In a seventh aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0050] The present application provides a thermal printing method, microprocessor chip, system and device for obtaining a print request. According to the print request, the print information is determined; wherein the print information includes the heating information of the current line to be printed, the line above the current line and the line below the current line. According to the print information, the total heating time required for the current line is determined; the total heating time includes the actual heating time of at least three pulses. According to the total heating time, the current line is printed. In this solution, when printing the current line, attention is paid to the printing of the same resistor in the previous line and the next line, and according to the printing of the current line, the previous line and the next line, the pulse time of the current line is arbitrarily combined to determine the pulse heating information of the current line, so that the printing temperature can be maintained within a suitable range within the printing cycle, avoiding the problem of print tailing due to excessively high temperature and printing too light due to excessively low temperature, and solving the technical problem of poor print quality caused by unstable temperature of thermal printers. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0052] Figure 1 A schematic diagram of a thermal printing method provided in an embodiment of the present application;
[0053] Figure 2 A schematic flow chart of another thermal printing method provided in an embodiment of the present application;
[0054] Figure 3 A temperature curve diagram of a thermal printing method provided in an embodiment of the present application;
[0055] Figure 4 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application;
[0056] Figure 5 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application;
[0057] Figure 6 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application;
[0058] Figure 7 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application;
[0059] Figure 8 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application;
[0060] Fig. 9 A schematic diagram of the structure of a thermal printing device provided in an embodiment of the present application;
[0061] Fig.10 A schematic diagram of the structure of another thermal printing device provided in an embodiment of the present application;
[0062] Fig.11 A schematic diagram of the structure of a thermal printing device provided in an embodiment of the present application;
[0063] Fig.12 A block diagram of a thermal printing device provided in an embodiment of the present application.
[0064] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0065] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0066] At present, the working principle of thermal printers is that a semiconductor heating element is installed on the print head. After the print head is heated and contacts the thermal printing paper, the required pattern can be printed out. Its principle is similar to that of thermal fax machines. The image is generated by heating and chemical reactions in the film. This thermal printer chemical reaction is carried out at a certain temperature. High temperature will accelerate this chemical reaction. When the temperature is below 60°C, it takes a long time, even several years, for the paper to turn dark; when the temperature is 200°C, this reaction will be completed in a few microseconds.
[0067] In one example, generally, a thermal printer has only one row of resistors. After the resistors heat up, they leave color on the printing paper. The higher the temperature, the darker the print, and the lower the temperature, the lighter the print. The resistors only have two conditions: heated and unheated. When printing an image, the second row is printed after the first row is printed, and so on. However, in the prior art, when the same resistor is heated for multiple consecutive rows and the next row is not heated, the next row may be printed tailing due to excessive temperature, or, when the same resistor is not heated for multiple consecutive rows and then one row is suddenly heated, the next row may be printed too lightly due to too low temperature. Therefore, the temperature of the resistor is unstable, resulting in poor printing quality.
[0068] The present application provides a thermal printing method, microprocessor chip, system and equipment, which are intended to solve the above technical problems in the prior art.
[0069] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0070] Figure 1 A schematic diagram of a thermal printing method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0071] Step 101: Get a print request.
[0072] Exemplarily, the execution subject of this embodiment can be a thermal printing device, or a terminal device, or a thermal printing device or equipment, or other devices or equipment that can execute this embodiment, and there is no limitation on this. In this embodiment, the execution subject is introduced as a thermal printing device. First, a print request needs to be obtained. The print request is used to print the original image data.
[0073] Step 102: Determine printing information according to the printing request; wherein the printing information includes heating information of the current line to be printed, the line above the current line, and the line below the current line.
[0074] Exemplarily, the printing information includes heating information of the current line to be printed, the previous line of the current line, and the next line of the current line. The current line, the previous line, and the next line all refer to each line of thermal dots on the thermal paper. When printing each line of the original image data, according to the print request, three lines of printing information, i.e., the heating information of the current line, the previous line, and the next line are recorded, "0" is used to indicate that the corresponding point is not heated, and "1" is used to indicate that the corresponding point is heated, as shown in Table 1 below:
[0075] Table 1
[0076]
[0077] Step 103: Determine the total heating time required for the current row according to the printing information, where the total heating time includes the actual heating time of at least three pulses.
[0078] Exemplarily, printing a line requires at least three pulses, and the preset pulse time widths of the three pulses are equal or unequal, which is not limited to this, and the pulse time width is the heating time. The total heating time includes the actual heating time of at least three pulses, that is, the total heating time can be determined according to whether each pulse is heated within the respective actual heating time.
[0079] In this step, the pulse heating information of the current row can be directly calculated according to the heating information of the current row, the previous row and the next row in the print information. Alternatively, among the preset multiple heating levels, the target heating level of the current row can be determined according to the heating information of the current row, the previous row and the next row in the print information, and the actual heating duration of each pulse of the current row can be determined based on the mapping relationship between the preset heating level and the actual heating duration of each pulse.
[0080] Step 104: Print the current line according to the total heating time.
[0081] For example, during the total heating time, the current of the print head is turned on and the current line is printed. Similarly, after the current line is printed, the next line is the new current line, and step 102 is repeated, which will not be described in detail here.
[0082] In an embodiment of the present application, a print request is obtained. Based on the print request, print information is determined; wherein the print information includes heating information of the current line to be printed, the line above the current line, and the line below the current line. Based on the print information, the total heating time required for the current line is determined, and the total heating time includes the actual heating time of at least three pulses. Based on the total heating time, the current line is printed. In this solution, when printing the current line, attention is paid to the printing of the same resistor in the previous line and the next line, and the pulse heating information of the current line is determined by any combination of the pulse time of the current line according to the printing of the current line, the previous line, and the next line, so that the printing temperature can be maintained within a suitable range within the printing cycle, avoiding the problem of print tailing due to excessively high temperature and printing too shallow due to excessively low temperature, and solving the technical problem of poor print quality caused by unstable temperature of thermal printers.
[0083] Figure 2 A schematic diagram of another thermal printing method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:
[0084] Step 201: Get a print request.
[0085] For example, this step can be referred to Figure 1 Step 101 in the above is not described in detail.
[0086] Step 202: Determine printing information according to the printing request; wherein the printing information includes heating information of the current line to be printed, the line above the current line, and the line below the current line.
[0087] For example, this step can be referred to Figure 1 Step 102 in the above is not described in detail.
[0088] Step 203: Determine the total heating time required for the current row according to the printing information; the total heating time includes the actual heating time of at least three pulses.
[0089] In one example, the actual heating duration indicates whether each pulse is heated within the respective actual pulse time width.
[0090] Step 203 includes two implementations:
[0091] The first implementation method of step 203: the heating information indicates whether heating is performed; based on the heating information of the current line in the printing information, the actual heating duration of the first pulse of the current line is determined; based on the heating information of the current line in the printing information and the heating information of the previous line, the actual heating duration of the second pulse of the current line is determined; based on the heating information of the current line, the heating information of the previous line and the heating information of the next line in the printing information, the actual heating duration of the third pulse of the current line is determined.
[0092] The second implementation method of step 203: determine the target heating level of the current row according to the printing information; determine the actual heating duration of each pulse of the current row based on the mapping relationship between the preset heating level and the actual heating duration of each pulse; wherein the heating level includes a preset number of grades, and the heating level is confirmed based on the preset correspondence with the printing information and the printing information.
[0093] Exemplarily, printing a line requires at least three pulses, and the preset pulse time widths of the three pulses are equal or unequal, which is not limited to this, and the pulse time width is the heating time. The pulse heating information represents the total heating time required to print the current line, and the total heating time includes the actual heating time of at least three pulses, that is, the total heating time can be determined based on whether each pulse is heated within its respective actual heating time.
[0094] In the first implementation, the heating information, that is, the truth value "0" or "1", represents whether heating is performed. Table 2 is a truth table. As can be seen from Table 2 below, the actual heating duration of the first pulse of the current row is determined based on the heating information of the current row in the print information. For example, in the truth value of the first row in Table 2, the heating information of the current row E is "0". Since PulseA=E=0, it can be determined that the truth value of the actual heating duration PulseA of the first pulse of the current row is "0". Alternatively, in the truth value of the third row in Table 2, the heating information of the current row E is "1". Since PulseA=E=1, it can be determined that the truth value of the actual heating duration PulseA of the first pulse PA of the current row is "1".
[0095] According to the heating information of the current line and the heating information of the previous line in the printing information, the true value of the actual heating duration PulseB of the second pulse PB of the current line is determined. For example, in the true value of the first line in Table 2, the heating information of the current line E is "0", and the heating information of the previous printed line D is "0", because It can be determined that the actual heating duration PulseB of the second pulse of the current line is "0". Alternatively, in the third line truth value in Table 2, the heating information of the current line E is "1", and the heating information of the previous printed line D is "0", because It can be determined that the true value of the actual heating duration PulseB of the second pulse of the current row is "1".
[0096] According to the heating information of the current line, the heating information of the previous line and the heating information of the next line in the printing information, the true value of the actual heating duration PulseC of the third pulse PC of the current line is determined. For example, in the true value of the first line in Table 2, the heating information of the current line E is "0", the heating information of the previous printing line D is "0", and the heating information of the next printing line F is "0", that is, because It can be determined that the true value of the actual heating duration PulseC of the third pulse of the current line is "0". Alternatively, according to the true value of the second row in Table 2, the heating information of the current line E is "0", the heating information of the previous printed line D is "0", and the heating information of the next printed line F is "1", that is, because It can be determined that the true value of the actual heating duration PulseC of the third pulse of the current line is "1", so when the printing information of the current line E and the previous line D are not printed and the next printing line F is printed, it is determined that the third pulse PC needs to be heated.
[0097] Table 2
[0098]
[0099] Therefore, the logic of determining each pulse is simple, and the actual heating time of each pulse can be obtained by directly calculating the heating information, and then printing can be performed according to the actual heating time of each pulse, which is convenient and quick.
[0100] In the second implementation, based on the printing information, it can be determined whether the current row, the previous row, and the next row are heated, and then the target heating level of the current row is determined. The target heating level corresponds to a preset total heating time, and the total heating time can be divided into N levels (2≤N≤8). Based on the mapping relationship between the preset heating level and the actual heating time of each pulse, the actual heating time of each pulse in the current row is determined. Therefore, different combinations of at least three pulses can be used to control the heating temperature during printing using the total heating time. As shown in Table 3 below, if N=5, the corresponding situation between the printing information of three rows and the three pulses is as follows:
[0101] Table 3
[0102]
[0103] If the accuracy of the printing temperature is high, N=6, and the correspondence between the three lines of printing information and the three pulses is shown in Table 4:
[0104] Table 4
[0105]
[0106] Among them, "1" represents the corresponding pulse control heating, and "0" represents the corresponding pulse control no heating. Therefore, the printing accuracy can be flexibly adjusted according to actual needs; in addition, the corresponding relationship between the printing level and the printing information can be adjusted according to different printing environments to improve the printing effect in different environments.
[0107] Step 204: According to the total heating time, the actual heating time of each pulse is obtained in sequence.
[0108] In one example, the order of acquiring each pulse is a preset order or a random order.
[0109] For example, according to the total heating time, the actual heating time of each pulse can be obtained in sequence according to a preset order. Alternatively, the actual heating time of each pulse can be obtained in sequence according to a random order, and the order is not limited. That is, the heating order of the pulses is not distinguished, and it is only necessary to ensure that the total heating time is correct.
[0110] For example, Figure 3 A temperature curve diagram of a thermal printing method provided in an embodiment of the present application, such as Figure 3 As shown, taking the high level representing heating as an example, a pulse situation and a heating situation are included when the high level durations of the first pulse PA, the second pulse PB, and the third pulse PC are the same, and the sending order of PA, PB, and PC is not distinguished.
[0111] Step 205: Print the current line according to the actual heating time of each pulse.
[0112] In one example, the preset pulse time widths of the pulses are equal or unequal.
[0113] Exemplarily, the preset pulse time widths of the pulses may be equal or unequal, and this is not limited. The thermal printing device may turn on the current of the print head and print the current line during the total heating time. Similarly, after the current line is printed, the next line becomes the new current line, and step 202 is repeated, which is not described in detail here. Therefore, the present application can complete thermal history printing with a minimum number of pulses, thereby improving the printing speed.
[0114] In an embodiment of the present application, a print request is obtained. Based on the print request, print information is determined; wherein the print information includes heating information of the current line to be printed, the line above the current line, and the line below the current line. Based on the print information, the total heating time required for the current line is determined; the total heating time includes the actual heating time of at least three pulses. Based on the total heating time, the actual heating time of each pulse is obtained in turn. Based on the actual heating time of each pulse, the current line is printed. In this solution, when printing the current line, attention is paid to the printing of the same resistor in the previous line and the next line, and the pulse heating information of the current line is determined by any combination of the pulse time of the current line according to the printing of the current line, the previous line, and the next line, so that the printing temperature can be maintained within a suitable range within the printing cycle, avoiding the problem of print tailing due to excessively high temperature and printing too shallow due to excessively low temperature, and solving the technical problem of poor print quality caused by unstable temperature of thermal printers.
[0115] Exemplarily, the duration of the pulse high level or low level represents the heating time, and here the high level represents heating as an example. Based on the above Table 3, Figure 4 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application, such as Figure 4 As shown, N=5, the pulse conditions and heating conditions when the temperature level is 5, specifically including the temperature curves of the first pulse PA, the second pulse PB, and the third pulse PC within the preset temperature range. Figure 4 It can be seen that when the temperature level is 5, the temperature of the previous line of printing has been completely cooled. It should be noted that the temperature range can be between 85°C and 100°C, and there is no limitation on this.
[0116] For example, based on Table 3 above, Figure 5 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application, such as Figure 5 As shown, N=5, the pulse situation and heating situation when the temperature level is 3, specifically including the temperature curve diagram of the first pulse PA, the second pulse PB, and the third pulse PC within the preset temperature range. Figure 5 It can be seen that when the temperature level is 3, the temperature of the previous line of printing is not completely cooled. It should be noted that the temperature range can be between 85°C and 100°C, and this is not limited.
[0117] For example, Figure 6 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application, such as Figure 6 As shown, it includes the temperature curves of the first pulse PA and the second pulse PB when the current line E is printed and the previous line D is not printed. Figure 6It can be seen that since the previous line D is not printed, the true value of the previous line D is "0", so the current printing temperature is lower than the preset temperature range. When printing the current line E, E = 1, PA = E = 1,
[0118] For example, Figure 7 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application, such as Figure 7 As shown, it includes a temperature curve diagram of the first pulse PA when the current line is printed and the previous line is also printed. Figure 7 It can be seen that, since the previous line is also printed, when the current line is printed, the current printing temperature is still within the preset temperature range.
[0119] For example, Figure 8 A temperature curve diagram of another thermal printing method provided in an embodiment of the present application, such as Figure 8 As shown, it is a temperature curve diagram of the third pulse PC when the current line and the previous line are not printed and the next line needs to be printed.
[0120] Fig. 9 A schematic diagram of the structure of a thermal printing device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the device comprises:
[0121] The acquisition module 31 is used to acquire a print request.
[0122] The first determining module 32 is used to determine the printing information according to the printing request; wherein the printing information includes heating information of the current line to be printed, the line above the current line, and the line below the current line.
[0123] The second determination module 33 is used to determine the total heating time required for the current line according to the printing information; the total heating time includes the actual heating time of at least three pulses.
[0124] The printing module 34 is used to print the current line according to the total heating time.
[0125] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0126] Fig.10 A schematic diagram of the structure of another thermal printing device provided in an embodiment of the present application, Fig. 9 Based on the embodiment shown, Fig.10 As shown, the actual heating duration indicates whether each pulse is heated within its respective actual pulse time width.
[0127] In one example, the heating information indicates whether heating is performed.
[0128] The second determining module 33 includes:
[0129] The first determining unit 331 is used to determine the actual heating duration of the first pulse of the current row according to the heating information of the current row in the printing information.
[0130] The second determining unit 332 is used to determine the actual heating duration of the second pulse of the current row according to the heating information of the current row and the heating information of the previous row in the printing information.
[0131] The third determining unit 333 is used to determine the actual heating duration of the third pulse of the current row according to the heating information of the current row, the heating information of the previous row and the heating information of the next row in the printing information.
[0132] In one example, the second determining module 33 includes:
[0133] The fourth determining unit 334 is used to determine the target heating level of the current line according to the printing information.
[0134] The fifth determination unit 335 is used to determine the actual heating duration of each pulse in the current row based on the mapping relationship between the preset heating level and the actual heating duration of each pulse; wherein the heating level includes a preset number of grades, and the heating level is confirmed based on the preset correspondence with the printing information and the printing information.
[0135] In one example, the printing module 34 includes:
[0136] The acquisition unit 341 is used to sequentially acquire the actual heating duration of each pulse according to the total heating duration.
[0137] The printing unit 342 is used to print the current line according to the actual heating duration of each pulse.
[0138] In one example, the order of acquiring each pulse is a preset order or a random order.
[0139] In one example, the preset pulse time widths of the pulses are equal or unequal.
[0140] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0141] Exemplarily, the present application provides a microprocessor chip, which is used to execute the thermal printing method indicated in the above embodiment. For example, the microprocessor chip can be a microcontroller unit (MCU), a digital signal processor (DSP), an MPU (including a microprocessor unit and a memory protection unit), a micro central processing unit (CPU), etc., which can process digital signals, analog signals, or perform signal control functions, instruction processing and calculation functions, etc., and can be a micro central control chip or a system-on-chip chip.
[0142] Fig.11 A schematic diagram of the structure of a thermal printing device provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the thermal printing device includes: a memory 51 and a processor 52.
[0143] The memory 51 stores a computer program that can be executed on the processor 52 .
[0144] The processor 52 is configured to execute the method provided in the above embodiment.
[0145] The thermal printing device further includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by an external device, and the transmitter 54 is used to send instructions and data to the external device.
[0146] Illustratively, the present application provides a thermal printing system, which includes the thermal printing device mentioned in the above embodiment.
[0147] Fig.12 This is a block diagram of a thermal printing device provided in an embodiment of the present application. The thermal printing device can be a mobile phone, a computer, a digital broadcast terminal, a message sending and receiving device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0148] The device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power 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 .
[0149] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0150] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device 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 memory, flash memory, magnetic disk or optical disk.
[0151] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0152] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0153] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0154] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0155] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600 and the temperature change of the device 600. The sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0156] 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 a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range 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.
[0157] In an exemplary embodiment, the apparatus 600 may 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, microcontrollers, microprocessors or other electronic components to perform the above method.
[0158] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 620 of the device 600 to perform the above method. 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 disk, an optical data storage device, etc.
[0159] The embodiment of the present application also provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the thermal printing device, the thermal printing device can execute the method provided in the above embodiment.
[0160] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of the thermal printing device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the thermal printing device executes the solution provided in any of the above embodiments.
[0161] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0162] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A thermal printing method, characterized in that: include: Get print request; Determine printing information according to the printing request; wherein the printing information includes heating information of a current line to be printed, a line above the current line, and a line below the current line; Determine the total heating time required for the current row according to the printing information; the total heating time includes the actual heating time of at least three pulses; Print the current line according to the total heating time; The heating information indicates whether heating is performed, the heating information includes "1" for indicating heating, and the heating information also includes "0" for indicating no heating, the states of the three pulses include "1" for indicating pulse heating, and the states of the three pulses also include "0" for indicating pulse no heating; The step of determining the total heating time required for the current row according to the printing information includes: Determining the actual heating duration of the first pulse of the current row according to the heating information of the current row in the printing information, comprising: the true value of the actual heating duration of the first pulse = the heating information of the current row; According to the heating information of the current line and the heating information of the previous line in the printing information, determining the actual heating time length of the second pulse of the current line, including: the true value of the actual heating time length of the second pulse = the heating information of the current line The heating information of the previous row is negated. According to the heating information of the current line, the heating information of the previous line and the heating information of the next line in the printing information, the actual heating duration of the third pulse of the current line is determined, including: the true value of the actual heating duration of the third pulse = the negation result of the heating information of the previous line The heating information of the current row is negated. Heating information for the next line.
2. The method according to claim 1, characterized in that The actual heating duration indicates whether each pulse is heated within the respective actual pulse time width.
3. The method according to claim 2, characterized in that The step of determining the total heating time required for the current row according to the printing information includes: determining a target heating level for the current row according to the printing information; Determining the actual heating duration of each pulse of the current row based on a mapping relationship between a preset heating level and an actual heating duration of each pulse; The heating level includes a preset number of grades, and the heating level is confirmed based on a preset corresponding relationship with the printing information and the printing information.
4. The method according to claim 1 or 3, characterized in that: Printing the current line according to the total heating time includes: According to the total heating time, obtaining the actual heating time of each pulse; The current line is printed according to the actual heating duration of each pulse.
5. The method according to claim 1, characterized in that The acquisition order of each pulse is a preset order or a random order.
6. The method according to claim 5, characterized in that The preset pulse time widths of the pulses are equal or different.
7. A microprocessor chip, characterized in that: The microprocessor chip is used to execute the thermal printing method as described in any one of claims 1-6.
8. A thermal printing device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.
9. A thermal printing system, characterized in that: The thermal printing system comprises the thermal printing device as claimed in claim 8.
Citation Information
Patent Citations
Thermal history control method for thermal printing head, thermal printer and computer-readable storage medium
CN111688362A