A method, device, printer and storage medium for printing concentration debugging
Through automated debugging methods, the initial heating time is determined and the timing waveform diagram is analyzed, which solves the problem of manual error in thermal printer concentration debugging, and improves debugging efficiency and printer reliability and stability.
Patent Information
- Application Number
- CN202311265349.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2043-09-27
AI Technical Summary
In the prior art, the concentration debugging process of thermal printers relies on manual adjustment of heating timing, which is cumbersome and time-consuming and prone to manual errors, requiring high professional knowledge, resulting in insufficient reliability and stability of the printer.
By determining the initial heating time of the concentration gear, outputting the timing waveform chart and automatically parsing it, adjusting the heating time based on the current concentration value and the target concentration value, realizing automatic debugging of the concentration gear, avoiding manual errors, and improving debugging efficiency and printer reliability.
It realizes automated concentration gear debugging without high professional knowledge, improves debugging reliability and production efficiency, and ensures the reliability and stability of the printer.
Smart Images

Figure CN117301727B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image printing, and particularly to a method and device for debugging printing concentration, a printer, and a storage medium. Background Art
[0002] A thermal printer usually heats the printer head chip component and conducts the heating energy to the thermal medium, finally achieving the effect of color development on the thermal medium. Among them, the heating energy depends on the heating duration of the printer head chip, and the magnitude of the heating energy will affect the color development concentration of the thermal medium, that is, different color development concentrations require different heating times.
[0003] There is a maximum limit for the continuous heating duration of the printer head chip. When the maximum limit is exceeded, it will cause damage to the head chip and even pose environmental hazards, etc. To solve this defect, the existing solution is that the debugger first adjusts the heating timing on the target debug board, and then connects the head chip for actual printing after the heating timing adjustment is completed. However, the existing solution has many manual links, is prone to omissions, cumbersome and time-consuming, and due to the empirical nature of the heating timing adjustment, the debugger needs to have high professional knowledge. Therefore, how to automatically debug the concentration level to reach the corresponding target concentration value has become an urgent problem to be solved. Summary of the Invention
[0004] The present application provides a method and device for debugging printing concentration, a printer, and a storage medium, which can avoid the high professional knowledge requirements and manual errors of the debugger, improve the reliability of the concentration level debugging, can automatically debug the concentration level, can improve the debugging efficiency, further improve the production efficiency, and ensure the reliability and stability of the printer.
[0005] In a first aspect, the present application provides a method for debugging printing concentration, which is applied to a printer. The method includes:
[0006] During the debugging process of the concentration level, determine the initial heating time of the concentration level;
[0007] Based on the initial heating time, heat the printer to output a corresponding timing waveform diagram;
[0008] Analyze the timing waveform diagram to obtain the current concentration value of the concentration level;
[0009] Based on the current concentration value and the target concentration value of the concentration level, adjust the initial heating time to obtain the target heating time of the concentration level.
[0010] Further, parsing the timing waveform diagram to obtain the current concentration value of the concentration level includes: converting the timing waveform diagram into a corresponding digital signal, where the timing waveform diagram includes at least one of a Serial Peripheral Interface (SPI) frequency, a strobe level, a latch level, and a motor phase level; calculating a first heating energy corresponding to the digital signal; determining a cold point energy, a hot point energy, and an ambient temperature energy of the printer; adding the first heating energy, the cold point energy, the hot point energy, and the ambient temperature energy to obtain a total heating energy, and calculating a current concentration value corresponding to the total heating energy.
[0011] Further, the method further includes: during the adjustment of the heating time, printing a preset pattern at the current concentration value corresponding to the heating time to obtain a concentration effect diagram corresponding to the concentration level.
[0012] Further, the timing waveform diagram further includes a motor phase level; printing a preset pattern at the current concentration value corresponding to the heating time to obtain a concentration effect diagram corresponding to the concentration level includes: converting the timing waveform diagram of the motor phase level into a stepping value of the paper; constructing a reference axis with the stepping value, and printing a preset pattern on the reference axis based on the current concentration value corresponding to the initial heating time; if it is detected that the heating time is adjusted, printing a preset separator line on the reference axis, and then printing the preset pattern based on the current concentration value corresponding to the heating time; until the debugging of the heating time of the concentration level is completed to obtain a concentration effect diagram corresponding to the concentration level.
[0013] Further, printing the preset pattern based on the current concentration value corresponding to the heating time includes: determining the color of the preset pattern based on a concentration difference between the current concentration value and the target concentration value; printing the preset pattern based on the color and the current concentration value.
[0014] Further, adjusting the initial heating time based on the current concentration value and the target concentration value of the concentration level to obtain the target heating time of the concentration level includes: determining whether the concentration difference between the current concentration value and the target concentration value is within the error range; if it is within the error range, determining the initial heating time as the target heating time; if it is not within the error range, determining a time adjustment value based on the proportional relationship between the concentration difference and the current concentration value; performing a numerical operation on the time adjustment value and the initial heating time to obtain an intermediate heating time, and repeatedly executing the operation of heating based on the initial heating time to output a corresponding timing waveform diagram and analyzing the timing waveform diagram to obtain the current concentration value of the concentration level until the concentration difference between the current concentration value and the target concentration value is within the error range, and determining the intermediate heating time as the target heating time.
[0015] Further, determining the initial heating time of the concentration level includes: obtaining the specification parameters of the printhead in the printer, where the specification parameters at least include the maximum heating time and the number of concentration levels; when the concentration level is the first concentration level, determining the initial heating time of the concentration level according to the specification parameters; when the concentration level is not the first concentration level, determining the initial heating time of the concentration level according to the specification parameters and the target heating time of the previous concentration level.
[0016] In a second aspect, the present application provides a printing concentration debugging device integrated in a printer, and the device includes:
[0017] An initial time determination module, configured to determine the initial heating time of the concentration level during the debugging process of the concentration level;
[0018] A waveform diagram output module, configured to heat the printer based on the initial heating time to output a corresponding timing waveform diagram;
[0019] A concentration value analysis module, configured to analyze the timing waveform diagram to obtain the current concentration value of the concentration level;
[0020] A target time determination module, configured to adjust the initial heating time based on the current concentration value and the target concentration value of the concentration level to obtain the target heating time of the concentration level.
[0021] In a third aspect, the present application provides a printer, and the printer includes:
[0022] At least one processor; and
[0023] A memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores a computer program executable by the at least one processor. When executed by the at least one processor, the computer program enables the at least one processor to execute the printing concentration debugging method according to any embodiment of the present application.
[0025] In a fourth aspect, the present application provides a computer-readable storage medium storing computer instructions for causing a processor to implement the printing concentration debugging method according to any embodiment of the present application when executed.
[0026] To solve the defects of the prior art in the background art, the embodiments of the present application provide a printing concentration debugging method. Executing this method can bring the following beneficial effects: The present application first determines the initial heating time of the current concentration gear according to the specification parameters of the printhead, and then outputs the corresponding timing waveform diagram and automatically analyzes the timing waveform diagram, which can avoid the high professional knowledge requirements and manual errors of the debug personnel and improve the reliability of the concentration gear debugging; The present application can perform automated debugging of the concentration gear, which can improve the debugging efficiency, further improve the production efficiency, and ensure the reliability and stability of the printer.
[0027] It should be noted that the above computer instructions can be stored in whole or in part on a computer-readable storage medium. Among them, the computer-readable storage medium can be packaged together with the processor of the printing concentration debugging device or separately packaged with the processor of the printing concentration debugging device. The present application does not make any limitations in this regard.
[0028] The descriptions of the second, third, and fourth aspects in the present application can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, and fourth aspects can refer to the beneficial effect analysis of the first aspect, which will not be elaborated here.
[0029] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understood through the following description.
[0030] It can be understood that before using the technical solutions disclosed in the embodiments of the present application, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present application should be informed to users and the authorization of the users should be obtained in an appropriate manner in accordance with relevant laws and regulations. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0032] Figure 1 It is the first process schematic diagram of a printing density debugging method provided by an embodiment of the present application;
[0033] Figure 2 It is the second process schematic diagram of a printing density debugging method provided by an embodiment of the present application;
[0034] Figure 3 It is the schematic diagram of the density effect diagram of the density gear provided by an embodiment of the present application;
[0035] Figure 4 It is the structural schematic diagram of a printing density debugging device provided by an embodiment of the present application;
[0036] Figure 5 It is the block diagram of a printer used to implement a printing density debugging method in an embodiment of the present application. Specific embodiments
[0037] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0038] It should be noted that the terms "first", "second", "target", and "original" in the specification and claims of the present application and the above accompanying drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "include", "have", and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0039] Figure 1The first flowchart of a printing concentration debugging method provided by an embodiment of the present application. This embodiment is applicable to debugging the concentration level by adjusting the heating time to make it reach the corresponding target concentration value to ensure the reliable stability of the printer. The printing concentration debugging method provided by this embodiment can be executed by the printing concentration debugging device provided by the embodiment of the present application. The device can be implemented in software and / or hardware and integrated in the electronic device executing this method. Preferably, the electronic device in the embodiment of the present application can be a printer, such as a thermal printer, and the execution subject of executing this method is the microcontroller in the printer.
[0040] See Figure 1 , the method of this embodiment includes but is not limited to the following steps:
[0041] S110. During the debugging of the concentration level, determine the initial heating time of the concentration level.
[0042] Among them, the concentration level is the level corresponding to the color development concentration of the printer. The color development concentration of the printer is divided into several levels according to the color depth. One concentration level corresponds to one color development concentration, and the number of concentration levels is not limited. Optionally, there are five concentration levels. The heating time refers to the heating time of the head in the thermal printer, so that the heating energy is conducted to the thermal medium and finally a color development effect is achieved on the thermal medium.
[0043] During the production debugging of the printer, or when a printer has been used for a long time and needs to be repaired, it is necessary to debug the concentration level of the printer so that each concentration level can correspond to its target concentration value one by one. Then, the microcontroller needs to debug the concentration level by adjusting the heating time to make it reach the corresponding target concentration value to ensure the reliable stability of the printer.
[0044] Specifically, determining the initial heating time of the concentration level includes: the microcontroller obtains the specification parameters of the head in the printer; sorts the concentration levels according to the color depth. When the concentration level is the first concentration level (such as the lowest concentration level or the highest concentration level), the microcontroller determines the initial heating time of the concentration level according to the specification parameters; when the concentration level is not the first concentration level, the microcontroller determines the initial heating time of the concentration level according to the specification parameters and the target heating time of the previous concentration level.
[0045] Among them, the specification parameters at least include the maximum heating time and the number of concentration levels, and may also include the Serial Peripheral Interface (SPI) frequency, the number of effective heating points, the effective level of the strobe, the latch time, the temperature conduction and heat dissipation characteristics, etc. The initial heating time includes the initial cold point heating time and the initial hot point heating time. The maximum heating time includes the maximum cold point heating time and the maximum hot point heating time. The calculation processes of the initial cold point heating time and the initial hot point heating time are similar. The present application exemplarily explains the adjustment process of the heating time, which actually includes the adjustment processes of the cold point heating time and the hot point heating time.
[0046] Exemplarily, taking the determination process of the initial cold point heating time as an example, assuming that the number of concentration levels is five, and they are sorted from low to high according to the color development depth as level 1, level 2,..., level 5; obtain the maximum cold point heating time in the specification parameters, denoted as T; then, one-fifth of the maximum cold point heating time T is the initial cold point heating time t1 of level 1; after the concentration level is debugged, the target cold point heating time T1 of level 1 is obtained from t1; the initial cold point heating time (denoted as t2) of level 2 is the average value after subtracting the target cold point heating time of the previous concentration level from the maximum cold point heating time, that is, t2 = (T - T1) / 4. Based on the same method, the initial cold point heating time t3 of level 3 = (T - T2) / 3, the initial cold point heating time t4 of level 4 = (T - T3) / 2, and the initial cold point heating time t5 of level 5 = (T - T4), where T2 is the target cold point heating time of level 2, T3 is the target cold point heating time of level 3, and T4 is the target cold point heating time of level 4. The initial hot point heating time and the initial cold point heating time can be calculated similarly.
[0047] S120. Heat the printer based on the initial heating time and output the corresponding timing waveform diagram.
[0048] In the embodiment of the present application, after the microcontroller determines the initial heating time of the current concentration level, it then heats the printhead of the printer based on the initial heating time, and uses a signal device to detect the heating process of the printer and output the corresponding timing waveform diagram.
[0049] Among them, the signal device includes but is not limited to a logic analyzer, a digital oscilloscope, and a signal acquisition device, etc. The timing waveform diagram includes but is not limited to digital waveform diagrams such as SPI frequency, strobe level, latch level, and motor phase level. In this step, the printer can be without a printhead, which can ensure that there is no risk of burning out the printhead.
[0050] S130. Analyze the timing waveform diagram to obtain the current concentration value of the concentration level.
[0051] Among them, the timing waveform diagram includes at least one of the serial peripheral interface (SPI) frequency, strobe level, latch level, and motor phase level.
[0052] Specifically, analyzing the timing waveform diagram to obtain the current concentration value of the concentration gear includes: taking the timing waveform diagram of the strobe level as an example, the microcontroller converts the timing waveform diagram of the strobe level into a corresponding strobe digital signal based on a preset signal conversion method, and then calculates the first heating energy corresponding to the strobe digital signal based on a preset energy calculation method; optionally, the microcontroller can directly calculate the current concentration value corresponding to the first heating energy based on a preset concentration calculation method. Preferably, the microcontroller can also first obtain the current environmental state of the printer, determine the cold point energy, hot point energy, and environmental temperature energy of the printer based on the current environmental state; then add the first heating energy, cold point energy, hot point energy, and environmental temperature energy to obtain the total heating energy; finally, calculate the current concentration value corresponding to the total heating energy based on a preset concentration calculation method. This can further improve the concentration change during actual printing.
[0053] S140. Adjust the initial heating time based on the current concentration value and the target concentration value of the concentration gear to obtain the target heating time of the concentration gear.
[0054] In the embodiments of the present application, a target concentration value can be preset for each concentration gear in the printer, and the target concentration value corresponding to each concentration gear is stored in the storage unit of the microcontroller. When the microcontroller determines that the current concentration value is lower than the target concentration value, the heating time needs to be increased; when the microcontroller determines that the current concentration value is higher than the target concentration value, the heating time needs to be reduced; if the current concentration value is equal to the target concentration value, or the error value is within the allowable range, it is determined that the current concentration gear is successfully debugged, and the debugging task of the next concentration gear is entered until all the concentration gears are debugged.
[0055] Specifically, adjusting the initial heating time based on the current concentration value and the target concentration value of the concentration level to obtain the target heating time of the concentration level includes: determining whether the concentration difference between the current concentration value and the target concentration value is within the error range; if it is within the error range, directly determining the initial heating time as the target heating time; if it is not within the error range, determining the time adjustment value based on the proportional relationship between the concentration difference and the current concentration value; performing a numerical operation on the time adjustment value and the initial heating time to obtain the intermediate heating time, and repeatedly executing the operation of heating based on the initial heating time to output the corresponding timing waveform diagram and analyzing the timing waveform diagram to obtain the current concentration value of the concentration level until the concentration difference between the current concentration value and the target concentration value is within the error range, and determining the intermediate heating time as the target heating time. Optionally, if the target heating time exceeds the maximum heating time of the print head in the printer, a warning is issued to achieve the purpose of protecting the print head.
[0056] The technical solution provided in this embodiment determines the initial heating time of the concentration level during the debugging process of the concentration level; heats the printer based on the initial heating time to output the corresponding timing waveform diagram; analyzes the timing waveform diagram to obtain the current concentration value of the concentration level; and adjusts the initial heating time based on the current concentration value and the target concentration value of the concentration level to obtain the target heating time of the concentration level. This application first determines the initial heating time of the current concentration level according to the specification parameters of the print head, and then outputs the corresponding timing waveform diagram and automatically analyzes the timing waveform diagram, which can avoid the high professional knowledge requirements and manual errors of the debugging personnel and improve the reliability of the concentration level debugging; this application can perform automatic debugging of the concentration level, improve the debugging efficiency, further improve the production efficiency, and ensure the reliability and stability of the printer.
[0057] The following further describes the print concentration debugging method provided in the embodiments of the present application. Figure 2 This is the second process schematic diagram of a print concentration debugging method provided in the embodiments of the present application. The embodiments of the present application are optimized based on the above embodiments. Specifically, the optimization is as follows: This embodiment provides a detailed explanation of the process of visually displaying the concentration effect diagram corresponding to the concentration level. Specifically, during the heating time adjustment process, a preset pattern is printed with the current concentration value corresponding to the heating time to obtain the concentration effect diagram corresponding to the concentration level.
[0058] See Figure 2 , the method of this embodiment includes but is not limited to the following steps:
[0059] S210. Convert the timing waveform diagram of the motor phase level into the step value of the paper.
[0060] In an embodiment of the present application, the microcontroller heats the printhead of the printer based on the initial heating time, and uses a signal device to detect the heating process of the printer and output a corresponding timing waveform diagram. The timing waveform diagram also includes the timing waveform diagram of the motor phase level. The microcontroller converts the timing waveform diagram of the motor phase level into the step value of the paper.
[0061] S220. Construct a reference axis with the step value, and print a preset pattern on the reference axis corresponding to the current concentration value based on the initial heating time.
[0062] Among them, the reference axis is used to sort the concentration effect diagrams corresponding to different heating times during the debugging process of a certain concentration gear; in other words, different heating times are obtained in the order of debugging, and the concentration effect diagrams corresponding to different heating times are displayed in sequence. The preset pattern is to express the concentration effect of the current concentration value, and the concentration effects of different concentration values are displayed in the way of printing the same preset pattern. The shape and content of the preset pattern are not limited, including but not limited to pictures and videos, etc. Optionally, it can be a diagonal line with a printing rate of 12.5%.
[0063] In an embodiment of the present application, the microcontroller constructs a reference axis with the step value, and takes the paper output direction in the printer as the positive direction of the reference axis. During the adjustment process of the heating time, a preset pattern is printed on the reference axis corresponding to the current concentration value corresponding to the heating time, so as to visually display the concentration effect diagram corresponding to the concentration gear. First, a preset pattern is printed on the reference axis corresponding to the current concentration value corresponding to the initial heating time; then, a preset pattern is printed based on the current concentration value corresponding to the adjusted heating time (such as Figure 1 the intermediate heating time and the target heating time mentioned in the corresponding embodiment).
[0064] S230. If it is detected that the heating time is adjusted, a preset separation line is printed on the reference axis, and then a preset pattern is printed based on the current concentration value corresponding to the heating time until the debugging of the heating time of the concentration gear is completed, and the concentration effect diagram corresponding to the concentration gear is obtained.
[0065] Among them, the preset separation line is used to separate the concentration effect diagrams before and after the adjustment of the heating time. The shape and concentration of the preset separation line are not limited. Optionally, it can be a long black line with a preset width.
[0066] In an embodiment of the present application, in order to distinguish the concentration effect diagram corresponding to the initial heating time from the concentration effect diagram corresponding to the intermediate heating time or the target heating time, after the concentration effect diagram corresponding to the initial heating time is displayed, when the microprocessor detects that the heating time is adjusted, a preset separation line is first printed on the reference axis, and then a preset pattern is printed based on the current concentration value corresponding to the intermediate heating time or the target heating time.
[0067] Preferably, when each heating point of the head piece adopts the same heating time parameter (optional different parameters), the formed concentration effect diagram is an image with a width of 1 pixel, which is not convenient to observe at this time. An image mask is introduced in this part. The pixels of the mask image are divided into two cases, simply referred to as 0 and 1. The mask image is merged with the image of the concentration effect diagram. For pixels with 0 in the mask, the final image is white; for pixels with 1 in the mask, the final image is a gray value. Finally, an image virtualized by the heating time can be obtained, and the preliminary printing effect can be confirmed through this image.
[0068] Optionally, the cold point energy and the hot point energy can be added on the basis of the concentration effect diagram to further view the printing effects of the cold and hot points. The effects of energy such as structural heat dissipation and ambient temperature on the concentration can also be added to the concentration effect diagram.
[0069] Such as Figure 3 The figure shows a schematic diagram of the concentration effect diagram of the concentration level. When visually displaying the concentration effect diagram, the figure shows the concentration effect diagram of the debugging process of a certain concentration level. The preset pattern is a slanted line with a printing rate of 12.5%, and the preset dividing line is a long black line with a preset width, that is, Seg in the figure. Figure 3 In it, M1 is the concentration effect diagram corresponding to the concentration value at the initial heating time under the first motor timing, Figure 3 In it, M2 is the concentration effect diagram corresponding to the concentration value at the intermediate heating time (that is, after the first adjustment of the initial heating time) under the second motor timing, Figure 3 In it, M3 is the concentration effect diagram corresponding to the concentration value at the intermediate heating time (that is, after the second adjustment of the initial heating time) under the third motor timing. M2 in 3 is the concentration effect diagram corresponding to the target heating time (that is, after the third adjustment of the initial heating time) under the fourth motor timing. As the number of steps of the motor is improved, a concentration effect diagram of the debugging process of this concentration level can be formed.
[0070] Combined with Figure 3 Exemplarily, assume that the target concentration value is 80. It is detected that the concentration of the concentration effect diagram M1 at the initial heating time t1 is 10, which is lower than the target value of 80; analyze the difference and feedback to increase the heating time; in the next round of adjustment, the concentration of the concentration effect diagram M2 increases to 60, and continue to increase the heating time; when it is detected that the concentration of the concentration effect diagram M3 reaches 110, which is greater than the target concentration value of 80; at this time, feedback to reduce the heating time. Through multiple gradual approximation adjustments, finally the concentration effect diagram M4 reaches the target value concentration, completing the debugging task of the current concentration level and entering the debugging task of the next concentration level.
[0071] Specifically, printing a preset pattern based on the heating time corresponding to the current concentration value includes: an indication of the concentration difference can be added on the basis of visualizing the concentration effect diagram, and the color of the preset pattern is determined based on the concentration difference between the current concentration value and the target concentration value; the preset pattern is printed based on the color and the current concentration value. Specifically: when the current concentration value in the concentration effect diagram is higher than the target concentration value, the first color (such as red) is used, and the preset pattern is printed with the first color and the current concentration value; when the current concentration value in the concentration effect diagram is lower than the target concentration value, the second color (such as blue) is used, and the preset pattern is printed with the second color and the current concentration value; when the current concentration value in the concentration effect diagram is equal or the concentration difference is within the error range, the third color (such as gray) is used, and the preset pattern is printed with the third color and the current concentration value. Among them, the intensity of the first color and the second color represents the size of the concentration difference, so that the deviation of the concentration effect diagram can be quickly obtained. The advantage of this setting is that the concentration difference and the adjustment of the decision heating time can be quickly analyzed.
[0072] The technical solution provided in this embodiment converts the timing waveform diagram of the motor phase level into the step value of the paper; constructs a reference axis with the step value, and prints a preset pattern on the reference axis based on the current concentration value corresponding to the initial heating time; if it is detected that the heating time is adjusted, a preset dividing line is printed on the reference axis, and then a preset pattern is printed based on the heating time corresponding to the current concentration value until the debugging of the heating time of the concentration gear is completed, and the concentration effect diagram corresponding to the concentration gear is obtained. This application visualizes the output of the timing waveform diagram, and then visualizes and displays the concentration effect diagrams corresponding to different heating times during the debugging process of the concentration gear, which can intuitively reflect the concentration effect of the concentration gear, assist the debugging personnel to view the printing effect of the concentration gear, and can also quickly analyze the concentration difference and the adjustment of the decision heating time.
[0073] Figure 4 This is a schematic structural diagram of a printing concentration debugging device provided by an embodiment of the present application, integrated in printing, such as Figure 4 As shown, the device 400 may include:
[0074] An initial time determination module 410, configured to determine the initial heating time of the concentration gear during the debugging process of the concentration gear;
[0075] A waveform diagram output module 420, configured to heat the printer based on the initial heating time and output a corresponding timing waveform diagram;
[0076] A concentration value analysis module 430, configured to analyze the timing waveform diagram to obtain the current concentration value of the concentration gear;
[0077] A target time determination module 440, configured to adjust the initial heating time based on the current concentration value and the target concentration value of the concentration level, so as to obtain the target heating time of the concentration level.
[0078] Further, the above-mentioned concentration value parsing module 430 may specifically be configured to: convert the timing waveform diagram into a corresponding digital signal, where the timing waveform diagram includes at least one of a serial peripheral interface (SPI) frequency, a strobe level, a latch level, and a motor phase level; calculate a first heating energy corresponding to the digital signal; determine a cold point energy, a hot point energy, and an ambient temperature energy of the printer; add the first heating energy, the cold point energy, the hot point energy, and the ambient temperature energy to obtain a total heating energy, and calculate a current concentration value corresponding to the total heating energy.
[0079] Further, the above-mentioned printing concentration debugging device may further include: a display module;
[0080] The display module is configured to print a preset pattern at the current concentration value corresponding to the heating time during the heating time adjustment process, so as to obtain a concentration effect diagram corresponding to the concentration level.
[0081] Optionally, the timing waveform diagram further includes a motor phase level;
[0082] Further, the above-mentioned display module may specifically be configured to: convert the timing waveform diagram of the motor phase level into a stepping value of the paper; construct a reference axis with the stepping value, and print a preset pattern on the reference axis based on the current concentration value corresponding to the initial heating time; if it is detected that the heating time is adjusted, print a preset dividing line on the reference axis, and then print the preset pattern based on the current concentration value corresponding to the heating time; until the debugging of the heating time of the concentration level is completed, so as to obtain a concentration effect diagram corresponding to the concentration level.
[0083] Further, the above-mentioned display module may further specifically be configured to: determine a color of the preset pattern based on a concentration difference between the current concentration value and the target concentration value; print the preset pattern based on the color and the current concentration value.
[0084] Further, the above-mentioned target time determination module 440 may specifically be configured to: determine whether the concentration difference between the current concentration value and the target concentration value is within the error range; if it is within the error range, determine the initial heating time as the target heating time; if it is not within the error range, determine a time adjustment value based on the proportional relationship between the concentration difference and the current concentration value; perform a numerical operation on the time adjustment value and the initial heating time to obtain an intermediate heating time, and repeatedly execute the operation of heating based on the initial heating time to output a corresponding timing waveform diagram, parsing the timing waveform diagram to obtain the current concentration value of the concentration level, until the concentration difference between the current concentration value and the target concentration value is within the error range, and determine the intermediate heating time as the target heating time.
[0085] Further, the above-mentioned initial time determination module 410 may specifically be configured to: obtain the specification parameters of the printhead in the printer, where the specification parameters at least include the maximum heating time and the number of concentration levels; when the concentration level is the first concentration level, determine the initial heating time of the concentration level according to the specification parameters; when the concentration level is not the first concentration level, determine the initial heating time of the concentration level according to the specification parameters and the target heating time of the previous concentration level.
[0086] The print concentration debugging device provided in this embodiment can be applied to the print concentration debugging method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0087] Figure 5 It is a block diagram of a printer for implementing a print concentration debugging method according to an embodiment of the present application. The printer 10 is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The printer may also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described herein and / or claimed.
[0088] Such as Figure 5As shown, the printer 10 includes at least one processor 11 and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the printer 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0089] Multiple components in the printer 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the printer 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0090] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the print density debugging method.
[0091] In some embodiments, the print density debugging method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the printer 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the print density debugging method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the print density debugging method by any other appropriate means (e.g., by means of firmware).
[0092] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0093] The computer programs for implementing the methods of this application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0094] In the context of this application, a computer-readable storage medium can be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0095] To provide interaction with a user, the systems and techniques described herein can be implemented on a printer that has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the printer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0096] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0097] A computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship between the client and the server is created by computer programs that run on the respective computers and have a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0098] Note that the above are only the preferred embodiments of this application and the technical principles applied. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of this application. For example, those skilled in the art can use the various forms of processes shown above, reorder, add, or delete steps; the steps described in this application can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this application can be achieved, which is not restricted herein.
[0099] The above specific embodiments do not constitute a limitation on the protection scope of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims
1. A method for debugging printing concentration, characterized in that, Applied to a printer, the method includes: During the debugging of the concentration level, determining the initial heating time of the concentration level; Based on the initial heating time, heating the printer to output a corresponding timing waveform diagram; Analyzing the timing waveform diagram to obtain the current concentration value of the concentration level; Adjusting the initial heating time based on the current concentration value and the target concentration value of the concentration level to obtain the target heating time of the concentration level; Wherein, determining the initial heating time of the concentration level includes: obtaining the specification parameters of the printhead in the printer, the specification parameters at least including the maximum heating time and the number of concentration levels; when the concentration level is the first concentration level, determining the initial heating time of the concentration level according to the specification parameters; when the concentration level is not the first concentration level, determining the initial heating time of the concentration level according to the specification parameters and the target heating time of the previous concentration level.
2. The printing concentration debugging method according to claim 1, wherein The analyzing the timing waveform diagram to obtain the current concentration value of the concentration level includes: Converting the timing waveform diagram into a corresponding digital signal, the timing waveform diagram including at least one of the serial peripheral interface (SPI) frequency, strobe level, latch level, and motor phase level; Calculating the first heating energy corresponding to the digital signal; Determining the cold point energy, hot point energy, and ambient temperature energy of the printer; Adding the first heating energy, the cold point energy, the hot point energy, and the ambient temperature energy to obtain the total heating energy, and calculating the current concentration value corresponding to the total heating energy.
3. The printing density debugging method according to claim 1, characterized in that The method further includes: During the adjustment of the heating time, printing a preset pattern with the current concentration value corresponding to the heating time to obtain the concentration effect diagram corresponding to the concentration level.
4. The printing density debugging method according to claim 3, characterized in that The timing waveform diagram further includes the motor phase level; the printing a preset pattern with the current concentration value corresponding to the heating time to obtain the concentration effect diagram corresponding to the concentration level includes: Converting the timing waveform diagram of the motor phase level into the step value of the paper; Constructing a reference axis with the step value, and printing a preset pattern on the reference axis based on the current concentration value corresponding to the initial heating time; If it is detected that the heating time is adjusted, printing a preset dividing line on the reference axis, and then printing the preset pattern based on the current concentration value corresponding to the heating time; Until the debugging of the heating time of the concentration level is completed to obtain the concentration effect diagram corresponding to the concentration level.
5. The printing density debugging method according to claim 4, characterized in that The printing the preset pattern based on the current concentration value corresponding to the heating time includes: Determining the color of the preset pattern based on the concentration difference between the current concentration value and the target concentration value; Printing the preset pattern based on the color and the current concentration value.
6. The printing density debugging method according to claim 1, characterized in that The adjusting the initial heating time based on the current concentration value and the target concentration value of the concentration level to obtain the target heating time of the concentration level includes: Determining whether the concentration difference between the current concentration value and the target concentration value is within the error range; If it is within the error range, determining the initial heating time as the target heating time; If it is not within the error range, determine a time adjustment value based on the proportional relationship between the concentration difference and the current concentration value; Perform a numerical operation on the time adjustment value and the initial heating time to obtain an intermediate heating time, and repeatedly execute the operation of heating based on the initial heating time to output a corresponding timing waveform diagram, and analyze the timing waveform diagram to obtain the current concentration value of the concentration level until the concentration difference between the current concentration value and the target concentration value is within the error range, and determine the intermediate heating time as the target heating time.
7. A printing concentration debugging device, characterized in that, Integrated in a printer, the device includes: An initial time determination module, configured to determine the initial heating time of the concentration level during the debugging of the concentration level; A waveform diagram output module, configured to heat the printer based on the initial heating time to output a corresponding timing waveform diagram; A concentration value analysis module, configured to analyze the timing waveform diagram to obtain the current concentration value of the concentration level; A target time determination module, configured to adjust the initial heating time based on the current concentration value and the target concentration value of the concentration level to obtain the target heating time of the concentration level; Wherein, the initial time determination module is specifically configured to obtain the specification parameters of the printhead in the printer, and the specification parameters at least include the maximum heating time and the number of concentration levels; when the concentration level is the first concentration level, determine the initial heating time of the concentration level according to the specification parameters; when the concentration level is not the first concentration level, determine the initial heating time of the concentration level according to the specification parameters and the target heating time of the previous concentration level.
8. A printer, characterized in that, The printer includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the print concentration debugging method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to execute the print concentration debugging method according to any one of claims 1 to 6 when executed.
Citation Information
Patent Citations
Printing density adjustment method, controller and printer
CN102416774A
Thermal printer and thermal printing method
CN105984241A