Printing head heating control method and related equipment
By allocating multiple printing energy levels and heating energy segments to each pixel point, dynamically adjusting the heating intensity, the problem of the inability to effectively control the balance between the accuracy and power consumption of the heating process in the prior art is solved, and efficient and accurate printing effects are achieved.
Patent Information
- Application Number
- CN202411812320.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-28
AI Technical Summary
Existing thermal printers cannot dynamically adjust the heating intensity according to different printing contents, resulting in unsatisfactory printing results. Especially when high-precision image printing, it is easy to have problems such as image blur, overheating damage to the print head or paper discoloration.
Dynamic heating control is achieved by assigning multiple printing energy levels to each pixel point according to the image to be printed and assigning at least one heating energy segment to each pixel point according to these energy levels, heating is performed on the printing paper.
It realizes precise control of the printing process, avoids the problems of overheating or insufficient heating, improves printing effect, saves energy and reduces emissions, and extends the service life of the print head.
Smart Images

Figure CN119704890A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer and communication technology, and in particular to a print head heating control method and related equipment. Background Art
[0002] Thermal printers are widely used in ticket printing, barcode printing, label printing and other occasions. Its working principle is to control the temperature of the heating element of the thermal print head to conduct heat with the thermal paper, produce a chemical reaction and display the image and text. Most existing thermal printers use a simple constant temperature heating control, which cannot dynamically adjust the heating intensity according to the different requirements of the printing content. This method can easily lead to unsatisfactory printing effects, especially when high-precision image printing, problems such as blurred images, overheating damage to the print head, or paper discoloration. In the prior art, there are still many deficiencies in flexible heating control for different printing needs. Especially when the printing content is complex or different types of thermal paper are used, how to effectively control the balance between the accuracy and power consumption of the heating process has become a difficulty in the technical field. Summary of the invention
[0003] The embodiments of the present application provide a print head heating control method and related equipment, thereby overcoming the problem of the prior art that the balance between the accuracy and power consumption of the heating process cannot be effectively controlled to a certain extent.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a print head heating control method is provided, comprising: according to the image to be printed, allocating a printing energy level to each pixel in the image to be printed, wherein there are multiple printing energy levels; according to the printing energy level of each pixel, allocating at least one corresponding heating energy segment to each pixel; according to the corresponding heating energy segment, heating each pixel on the printing paper.
[0006] In some feasible embodiments of the present application, the print head heating control method further includes: determining a total heating energy according to printing parameters; and determining a heating energy corresponding to each heating energy segment according to the total heating energy.
[0007] In some feasible embodiments of the present application, the printing parameters include print head temperature, battery voltage, and paper type; and determining the total heating energy according to the printing parameters specifically includes:
[0008] Acquire the print head temperature, battery voltage, and paper type; and determine the total heating energy according to the print head temperature, battery voltage, and paper type.
[0009] In some feasible embodiments of the present application, determining the heating energy corresponding to each heating energy segment based on the total heating energy specifically includes: allocating the heating energy to each heating energy segment in proportion based on the total heating energy, and the sum of the energies of all the heating energy segments is equal to the total heating energy.
[0010] In some feasible embodiments of the present application, the heating energy segment includes a first energy segment, a second energy segment and a third energy segment, and the heating energy is distributed to each heating energy segment in proportion according to the total heating energy, specifically including: distributing heating energy to the first energy segment according to a first proportion; distributing heating energy to the second energy segment according to a second proportion; and distributing heating energy to the third energy segment according to a third proportion.
[0011] In some feasible embodiments of the present application, the heating energy segment includes a heating time period, and determining the heating energy corresponding to each heating energy segment based on the total heating energy specifically includes: determining the heating time corresponding to each heating time period based on the total heating energy.
[0012] In some feasible embodiments of the present application, the heating energy segment includes a heating power segment, and determining the heating energy corresponding to each heating energy segment based on the total heating energy specifically includes: determining the heating power corresponding to each heating power segment based on the total heating energy.
[0013] In some feasible embodiments of the present application, the allocating at least one corresponding heating energy segment to each pixel point according to the printing energy level of each pixel point specifically includes: determining the printing energy corresponding to each pixel point according to the printing energy level of each pixel point; allocating at least one heating energy segment to each pixel point according to the printing energy, and the sum of the energies of all the heating energy segments allocated to each pixel point is equal to the printing energy corresponding to the pixel point.
[0014] In some feasible embodiments of the present application, allocating a printing energy level to each pixel in the image to be printed according to the image to be printed specifically includes: allocating a printing energy level to each pixel line by line according to the image to be printed to form pixel data corresponding to each printing energy level.
[0015] In some feasible embodiments of the present application, at least one corresponding heating energy segment is allocated to each pixel according to the printing energy level of each pixel, specifically including: according to the pixel data corresponding to each printing energy level, a heating energy segment is allocated to each pixel to form pixel data corresponding to each heating energy segment.
[0016] In some feasible embodiments of the present application, the method of allocating a printing energy level to each pixel in the image to be printed according to the image to be printed specifically includes: performing information processing on the image to be printed and dividing the image to be printed into pixels; dividing the image to be printed into pixels and allocating a printing energy level to each pixel.
[0017] In some feasible embodiments of the present application, each pixel point on the printing paper is heated according to the corresponding heating energy segment, specifically including: in response to the start of printing, the paper is fed back to align the paper head with the printing line; the number of paper feed lines is counted, and when the number of lines with data is counted, the pixel points of the line are heated according to the corresponding heating energy segment.
[0018] In some feasible embodiments of the present application, before allocating a printing energy level to each pixel in the image to be printed according to the image to be printed, the method further includes: receiving the image to be printed sent by a user, where the image to be printed is edited by the user.
[0019] According to one aspect of an embodiment of the present application, a print head heating control device is provided, and the print head heating control device includes: an energy level allocation module, which is used to allocate a printing energy level to each pixel in the image to be printed according to the image to be printed, and the printing energy levels are multiple; an energy segmentation module, which is used to allocate at least one corresponding heating energy segment to each pixel according to the printing energy level of each pixel; and a pixel heating module, which is used to heat each pixel on the printing paper according to the corresponding heating energy segment.
[0020] In some feasible embodiments of the present application, the print head heating control device also includes: a total amount determination module, used to determine the total heating energy according to the printing parameters; an energy distribution module, used to determine the heating energy corresponding to each heating energy segment according to the total heating energy.
[0021] In some feasible embodiments of the present application, the printing parameters include print head temperature, battery voltage, and paper type; the total amount determination module specifically includes: a parameter acquisition submodule, used to acquire the print head temperature, battery voltage, and paper type; a total amount determination submodule, used to determine the total heating energy based on the print head temperature, battery voltage, and paper type.
[0022] In some feasible embodiments of the present application, the energy distribution module specifically includes: an energy distribution submodule, which is used to distribute heating energy to each heating energy segment in proportion according to the total heating energy, and the sum of the energies of all heating energy segments is equal to the total heating energy.
[0023] In some feasible embodiments of the present application, the heating energy segment includes a first energy segment, a second energy segment and a third energy segment, and the energy distribution submodule specifically includes: a first distribution unit, used to distribute heating energy to the first energy segment according to a first ratio; a second distribution unit, used to distribute heating energy to the second energy segment according to a second ratio; and a third distribution unit, used to distribute heating energy to the third energy segment according to a third ratio.
[0024] In some feasible embodiments of the present application, the heating energy segment includes a heating time period, and the energy allocation module is specifically used to execute: determining the heating time corresponding to each heating time period according to the total heating energy.
[0025] In some feasible embodiments of the present application, the heating energy segment includes a heating power segment, and the energy allocation module is specifically used to execute: determining the heating power corresponding to each heating power segment according to the total heating energy.
[0026] In some feasible embodiments of the present application, the energy segmentation module specifically includes: an energy determination submodule, which is used to determine the printing energy corresponding to each pixel point according to the printing energy level of each pixel point; an energy segmentation submodule, which is used to allocate at least one heating energy segment to each pixel point according to the printing energy, and the sum of the energies of all the heating energy segments allocated to each pixel point is equal to the printing energy corresponding to the pixel point.
[0027] In some feasible embodiments of the present application, the energy level allocation module is specifically used to execute: according to the image to be printed, the printing energy level is allocated to each pixel point line by line to form pixel point data corresponding to each printing energy level.
[0028] In some feasible embodiments of the present application, the energy segmentation module is specifically used to execute: according to the pixel point data corresponding to each printing energy level, a heating energy segment is allocated to each pixel point to form pixel point data corresponding to each heating energy segment.
[0029] In some feasible embodiments of the present application, the energy level allocation module specifically includes: a pixel division submodule, used to perform information processing on the image to be printed and divide the image to be printed into pixels; an energy level allocation submodule, used to divide the pixels according to the image to be printed and allocate a printing energy level to each pixel.
[0030] In some feasible embodiments of the present application, the pixel heating module specifically includes: a paper feeding alignment submodule, which is used to feed the paper and align the paper head with the printing line in response to the start of printing; a pixel heating submodule, which is used to count the number of paper feeding rows, and when the number of rows with data is counted, the pixel points of the row are heated according to the corresponding heating energy segment.
[0031] In some feasible embodiments of the present application, the print head heating control device further includes: an image receiving module, used to receive an image to be printed sent by a user, and the image to be printed is edited by the user.
[0032] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the print head heating control method as described in the above embodiment is implemented.
[0033] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the print head heating control method as described in the above embodiments.
[0034] According to one aspect of an embodiment of the present application, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a processor, the print head heating control method as described in the above embodiment is implemented.
[0035] In the technical solutions provided in some embodiments of the present application, by accurately allocating printing energy levels and heating energy segments and combining dynamic heating control, it is possible to flexibly respond to different image contents, environmental conditions and paper types, improve printing effects, save energy and reduce emissions, and extend the service life of the print head, effectively control the balance between the accuracy of the heating process and power consumption, and ensure the consistency of print quality.
[0036] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0038] Figure 1 An exemplary implementation environment diagram is shown to which the technical solution of the embodiments of the present application can be applied.
[0039] Figure 2 A flow chart of a print head heating control method provided in an embodiment of the present application is shown.
[0040] Figure 3A schematic diagram showing energy level distribution for an image to be printed is shown.
[0041] Figure 4 A flow chart of another print head heating control method provided in an embodiment of the present application is shown.
[0042] Figure 5 A diagram showing the relationship between sensor acquisition and heating control provided by an embodiment of the present application is shown.
[0043] Figure 6 An energy level heating control timing diagram provided by an embodiment of the present application is shown.
[0044] Figure 7 A schematic diagram of energy level heating control provided by an embodiment of the present application is shown.
[0045] Figure 8 A schematic structural diagram of a print head heating control device provided in an embodiment of the present application is shown.
[0046] Fig. 9 A structural schematic diagram of a computer system of a water softener provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0047] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0048] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0049] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0050] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0051] Figure 1 FIG. 1 is an implementation environment diagram of a print head heating control method provided in an embodiment, such as Figure 1 As shown, in this implementation environment, a thermal printer is included, and the thermal printer includes a control mechanism 100 , an execution mechanism 200 and a collection mechanism 300 .
[0052] The control mechanism 100 is connected to the execution mechanism 200 and the collection mechanism 300 by electrical signals, and is used to obtain various data information obtained by the collection mechanism 300, and control the execution mechanism 200 to execute various instructions. The control mechanism 100 can be various integrated circuits and circuit boards such as a single chip microcomputer, a processor, and a system on chip (System on Chip SoC).
[0053] The actuator 200 may include a print head, a motor, a paper feeding mechanism, a paper returning mechanism and other mechanisms for executing printing.
[0054] The acquisition mechanism 300 includes a touch panel, various sensors, a communication chip and other mechanisms for acquiring various data information from the outside world.
[0055] When the user sends the image to be printed to the thermal printer, the control mechanism 100 obtains the image to be printed through the acquisition mechanism 300, and then allocates a printing energy level to each pixel in the image to be printed according to the image to be printed. After the printing energy level is allocated, the execution mechanism 200 can be controlled to execute the printing task. Specifically, at least one corresponding heating energy segment will be allocated to each pixel according to the printing energy level of each pixel. When the execution mechanism 200 prints, each pixel on the printing paper will be heated according to the corresponding heating energy segment to complete the printing of the image to be printed.
[0056] It should be noted that there are multiple printing energy levels allocated above.
[0057] The control system 400 can also be a device connected to the printer body such as a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The control mechanism 100, the actuator 200 and the acquisition mechanism 300 can be connected via Bluetooth, USB or other communication connection methods, and the present invention does not limit this.
[0058] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0059] Figure 2 A flow chart of a print head heating control method according to an embodiment of the present application is shown. The print head heating control method can be executed by a printer. The printer can be Figure 1 The printer shown in . Figure 2 As shown, the print head heating control method at least includes:
[0060] S100, according to the image to be printed, assigning a printing energy level to each pixel in the image to be printed, wherein there are multiple printing energy levels.
[0061] S200, allocating at least one corresponding heating energy segment to each pixel according to the printing energy level of each pixel.
[0062] S300, heating each pixel on the printing paper according to the corresponding heating energy segment.
[0063] By assigning appropriate energy levels and heating segments to each pixel, the present application can ensure that each area in printing receives appropriate heating, thereby avoiding the problem of overheating or insufficient heating, so that high-precision images can be printed completely and clearly, especially with more accurate details.
[0064] Since the heating energy of each pixel is allocated according to actual needs, it avoids using too much heating energy for the entire image, thereby reducing energy consumption. Especially for large background areas, low-energy pixels will reduce the heating intensity and improve overall energy efficiency.
[0065] This precise heating control avoids overheating and also helps protect the print head from damage caused by overheating, thereby extending the service life of the device.
[0066] At the same time, whether it is simple text or complex images or barcodes, through different energy level distribution and control of heating energy segments, ideal printing effects can be obtained to meet different printing needs.
[0067] In summary, in the embodiments of the present application, the heating intensity is dynamically adjusted according to the different printing contents to ensure that the image details can be fully displayed, reduce the occurrence of overheating, blurring and other problems, and avoid damage to the print head due to overheating through temperature feedback and multi-level control, thereby extending the service life of the device. The heating parameters can also be automatically adjusted according to different thermal paper types and environmental conditions, so that the printer can maintain a stable printing effect under various conditions.
[0068] In S100, by assigning appropriate printing energy levels to each pixel according to the characteristics of the image, it is possible to avoid using the same heating intensity for the entire image, thereby accurately controlling the amount of heating for each area during the printing process. For example, for areas with rich details (such as text, barcodes, lines), a higher energy level can be assigned to ensure print clarity; while the background area can be assigned a lower energy level to avoid wasting energy or overheating.
[0069] In some embodiments of the present application, before step S100, the method further includes:
[0070] An image to be printed sent by a user is received, where the image to be printed is edited by the user.
[0071] In this embodiment, by receiving the image edited by the user, the printing system can process and print the image according to the specific needs of the user. Whether it is the adjusted color, brightness or complex graphic content, the printing process can automatically optimize the heating control according to these adjustments to ensure that the printing effect is consistent with the user's expectations. Different users may edit a variety of images, such as colorful pictures or graphics with complex details. Receiving and processing the image edited by the user can ensure that the printer can accurately heat different areas according to the user's edited content, avoiding the deviation of the printing effect caused by the unified heating strategy. Because the user has edited the image, the image may have specific details or color adjustments. By receiving these edited images, the printer can accurately analyze the needs of each pixel point to ensure that the distribution of heat conforms to the characteristics of the edited image, thereby improving the detail performance and color consistency of the print. After the image is edited by the user, especially when it involves the adjustment of color and details, the printer can optimize the heating energy according to these adjustments to avoid printing errors caused by standardization. In this way, the print output can be more faithful to the user's creation and present a higher quality print effect.
[0072] Specifically, in some embodiments, the specific implementation of step S100 can refer to the following embodiments. Figure 2 The detailed description of step S100 in the print head heating control method shown in the corresponding embodiment, in the print head heating control method, step S100 may include the following steps:
[0073] Information processing is performed on the image to be printed, and pixel points are divided on the image to be printed.
[0074] Pixel points are divided according to the image to be printed, and a printing energy level is allocated to each pixel point.
[0075] In this embodiment, if Figure 3As shown, by first dividing the image into pixels and allocating printing energy levels, the printer can more accurately control every detail in the printing process, effectively avoiding printing errors caused by image complexity or different shades of color in traditional printing methods, and improving the overall quality of printing. Then, by allocating energy levels pixel by pixel, the printer can provide different printing energy levels according to the needs of different areas, ensuring that each area can be printed with appropriate printing energy, thereby improving printing accuracy. The printing energy level of each pixel is accurately allocated, avoiding overheating or insufficient heating of certain areas, effectively avoiding energy waste, and improving resource utilization efficiency in the printing process. Therefore, this embodiment can be flexibly adjusted according to different types of images (such as color complexity, contrast, degree of detail, etc.), adapt to various printing needs, and improve printing speed and quality.
[0076] In some embodiments, the heating power of the thermal print head can be controlled by the PWM method according to the heating intensity level (printing energy level) of each heating point (pixel point). By adjusting the duty cycle of the pulse and changing the power-on time of the heating element, accurate temperature control of different areas can be achieved. The more complex the print content and the higher the density, the longer the heating time, and vice versa. When printing high-precision images, the heating intensity of the fine part and the background part is different, which can effectively avoid overheating or insufficient heating.
[0077] In some embodiments of the present application, Figure 4 As shown, before step S200 or step S300, the method further includes:
[0078] S400, determining the total heating energy according to the printing parameters.
[0079] S500: Determine the heating energy corresponding to each heating energy segment according to the total heating energy.
[0080] In this embodiment, by determining the total heating energy according to the specific parameters of the printing task and reasonably allocating it to each heating energy segment, the heating intensity of each area during the printing process can be better controlled, thereby ensuring that the details and quality of the image are clearer. For complex areas, the energy distribution is more reasonable, avoiding the problem of blurred or unclear images caused by excessive or insufficient heating. The total heating energy is dynamically adjusted and allocated to different energy segments according to demand, avoiding energy waste during the heating process. By reducing unnecessary energy output, not only the energy efficiency of the printer is improved, but also the burden on the thermal print head can be reduced, thereby extending the service life of the equipment.
[0081] This embodiment can flexibly adjust the heating energy according to different printing parameters (such as paper type, image content, etc.), so that the device can maintain stable output and high-quality printing effects in a variety of printing scenarios. Whether it is complex image printing or simple text printing, the best heating control can be obtained. And through reasonable energy distribution, not only the printing quality is improved, but also the stability and speed of printing are improved. It avoids paper jams, paper damage or printing errors caused by uneven heating, ensuring the long-term stable operation of the device.
[0082] Specifically, in some embodiments, before printing begins, the thermal printer analyzes the image or text information to be printed, extracts its density, content complexity and detail level, and generates heating requirement parameters. Based on a preset printing parameter library, different image contents are classified, such as high-density images, text, barcodes, etc., to determine the heating intensity required for each part.
[0083] At the same time, the thermal printer detects the temperature and humidity conditions of the printing environment through temperature sensors and humidity sensors, and adjusts the heating parameters according to the detection results to adapt to different environmental conditions. Specifically, the heating intensity is appropriately increased in low-temperature environments, and the heating intensity is reduced in high-temperature environments to prevent overheating. The thermal printer also identifies the type of thermal paper by reading the identification information on the thermal paper (such as barcodes, RFID) or user presets. Different thermal papers respond differently to temperature, so the system adjusts the heating curve of the print head according to the characteristics of the thermal paper.
[0084] In S400, by adjusting the total heating energy according to different printing tasks and environmental conditions, the problem of overheating or underheating caused by fixed energy settings can be avoided. For example, when printing complex images or high-resolution text, a higher total heating energy may be required, while when printing simple text or barcodes, the total heating energy can be reduced to achieve optimal use of energy. At the same time, according to changes in paper type (such as plain paper, thermal paper, special coated paper) or ambient temperature, the total heating energy is adjusted to ensure print quality and stability of device operation.
[0085] Specifically, in some embodiments, the specific implementation of step S400 can refer to the following embodiments. Figure 4 The detailed description of step S400 in the print head heating control method shown in the corresponding embodiment, in the print head heating control method, the printing parameters include the print head temperature, the battery voltage, and the paper type, and step S400 may include the following steps:
[0086] Get print head temperature, battery voltage, paper type.
[0087] The total heating energy is determined according to the print head temperature, battery voltage, and paper type.
[0088] In this embodiment, by monitoring and adjusting (the monitoring and adjustment can be real-time) the print head temperature, battery voltage and paper type, it is ensured that the heating control of each printing task is carried out in the optimal state. The problem of overheating or insufficient heating caused by fixed energy allocation is avoided. According to the changes in different paper types and print head temperatures, the total heating energy can be dynamically adjusted to improve the stability and clarity of the printing effect and avoid printing problems such as color difference and blur. By optimizing the use of battery voltage, not only can the battery be avoided from being over-discharged, but the heating energy can also be dynamically adjusted according to the actual state of the battery, thereby reducing energy consumption and extending the service life of the device.
[0089] Specifically, if Figure 5 As shown, the determination of the total heating energy in the present application mainly includes the environmental condition detection corresponding to the print head temperature and the battery voltage and the paper type detection corresponding to the paper type.
[0090] The thermal printer can collect the temperature of the print head through the temperature sensor 501, collect the voltage through the circuit instrument 502 on the battery side, and obtain the type of printing paper by scanning the label through the scanning mechanism 503. Then, the main control device 504 performs a comprehensive analysis to obtain the total energy (which can be in the form of time) and the energy of each pixel. Finally, the main control device 504 can control the print head 505 to perform multi-stage heating.
[0091] Environmental condition detection mainly includes print head temperature detection and battery voltage detection. Environmental condition detection is a key step to ensure printing quality and equipment performance. The working environment of the print head will directly affect its heating effect and life, especially the print head temperature and battery voltage play an important role in the stability and efficiency of the thermal printing process.
[0092] Specifically, before printing a piece of content, the temperature of the print head and the battery voltage are first detected, assuming that they are T and V respectively. When T is less than the reference temperature Tr, it means that the ambient temperature is too low. In order to achieve the reference heating energy, the heating time needs to be increased, and vice versa. Similarly, when V is less than the reference voltage Vr, it means that the battery voltage is too low. In order to achieve the reference heating energy, the heating time also needs to be increased.
[0093] Different paper types may have different materials and processes, and the required heating energy will be different. Therefore, it is necessary to detect the paper type before printing and give the corresponding heating parameters according to the paper type. There are two ways to detect the paper type: automatic identification and manual input. Automatic identification is to identify the RFID tag with parameters written in advance on the thermal paper. The tag records information such as the paper type, thickness, and applicable temperature. By reading this information, the system can automatically identify the paper type; the manual input method is that the user edits the paper information in advance on the mobile phone App. When the mobile phone is connected to the printer for printing, the App sends the paper information edited by the user to the printer. After the printer obtains this information, it will give a specific heating time to the label paper to be printed. Alternatively, the user can send the paper information to the printer through the printer's control panel.
[0094] This embodiment can cope with printing needs in various environments and conditions. Whether it is low voltage, complex paper or high temperature environment, it can automatically adjust the total heating energy to ensure printing stability and efficiency.
[0095] In S500, more refined heating control can be achieved by dynamically adjusting the distribution of heating energy segments. For example, in high-density images or high-contrast areas, stronger heating energy may be required, while in low-density areas or background parts, the energy demand is lower. Reasonable energy distribution can ensure the delicate and accurate printing effect while avoiding waste. By precisely controlling the energy value of each heating energy segment, different printing contents can be more effectively responded to, ensuring that the heating process of the entire image is more balanced, and preventing overheating or underheating of certain areas. In addition, since different paper types or printing modes may have different requirements for heating (such as thermal paper requires a lower temperature, ordinary paper may require a higher temperature), the distribution of total heating energy can ensure the adaptability and efficient operation of the device under various conditions.
[0096] Specifically, in some embodiments, the specific implementation of step S500 can refer to the following embodiments. Figure 4 The detailed description of step S500 in the print head heating control method shown in the corresponding embodiment, in the print head heating control method, step S500 may include the following steps:
[0097] According to the total heating energy, the heating energy is distributed to each heating energy section in proportion, and the sum of the energies of all the heating energy sections is equal to the total heating energy.
[0098] In this embodiment, first, the energy allocation of each heating energy segment is determined based on the total heating energy (i.e., the total heat that the heating system needs to provide). Then, the total heating energy is allocated in a certain proportion based on the specific needs of the heating segment (such as area size, heat consumption characteristics, etc.). Among them, the sum of the allocated energy segments must be equal to the preset total heating energy. This embodiment ensures that the heating process of the print head is more uniform and effective, avoiding the problem of too much or too little heat. Through reasonable energy allocation, the printing quality is improved, the equipment failure rate is reduced, and the thermal management of the printing equipment is optimized, thereby achieving higher printing efficiency and stability.
[0099] In some specific embodiments, the heating energy segment includes a first energy segment, a second energy segment and a third energy segment, and the energy distribution scheme specifically includes:
[0100] The heating energy is distributed to the first energy segment according to a first ratio.
[0101] The heating energy is distributed to the second energy segment according to a second ratio.
[0102] The heating energy is distributed to the third energy segment according to a third ratio.
[0103] In this embodiment, at least three heating energy sections are included, and heating energy is distributed to the three heating sections according to corresponding proportions. The energy distributed to each heating energy section is different and in a certain proportional relationship, so as to more accurately adjust the distribution of heating energy and ensure that each heating section obtains an appropriate amount of heat. Each heating section distributes different energy according to specific needs, thereby improving the uniformity of the heating process, avoiding local overheating or overcooling, and improving the printing effect. Through precise heating control, equipment damage or failure caused by uneven heating can be avoided, and the service life of the equipment can be extended.
[0104] For example, in one embodiment, the heating energy segment only includes three energy segments, namely, the first energy segment, the second energy segment and the third energy segment, and the heating energy allocated thereto may conform to the following formula: 4E1=2E2=E3, wherein E1 is the heating energy of the first energy segment, E2 is the heating energy of the second energy segment, and E3 is the heating energy of the third energy segment.
[0105] According to the above-mentioned heating energy segment allocation scheme, the total heating energy is equal to 7 times the heating energy of the first energy segment. Through the combination of the first energy segment, the second energy segment and the third energy segment, a variety of energy allocation schemes can be obtained.
[0106] In some embodiments, the heating energy segment includes a heating time period, and the above-mentioned determination of the heating energy corresponding to each heating energy segment based on the total heating energy is to determine the heating time corresponding to each heating time period based on the total heating energy.
[0107] Specifically, taking the above-mentioned first energy segment, second energy segment and third energy segment as an example, when the heating energy segment includes a heating time period, the first energy segment, the second energy segment and the third energy segment correspond to the first time period, the second time period and the third time period respectively. When distributing energy, different heating times can be allocated to them, while other heating parameters (such as power, distance, etc.) remain constant, so that the heating energy in each heating time period can be ensured to be different.
[0108] That is, the heating time allocated to the first time period, the second time period and the third time period can meet the following formula: 4T1=2T2=T3, where T1 is the heating time of the first time period, T2 is the heating time of the second time period, and T3 is the heating time of the third time period.
[0109] It should be noted that the first time period, the second time period and the third time period are three consecutive different time periods without overlap. Generally, they are sorted in the order of the first time period, the second time period and the third time period.
[0110] In the above-mentioned embodiment, by reasonably allocating the heating time, it is ensured that the temperature of each heating section can be raised to the required temperature within an appropriate time, thereby avoiding excessive or insufficient temperature fluctuations that affect the printing quality, and also ensuring that the heating process is more efficient. Accurate and reasonable heating time allocation enables each heating section to obtain the required heat within an appropriate time, helps to avoid overheating or underheating, thereby avoiding overheating or overcooling of the heating section, improving the energy efficiency of the device, and ensuring the stability of the device.
[0111] In other embodiments, the heating energy segment includes a heating power segment, and the above-mentioned determination of the heating energy corresponding to each heating energy segment based on the total heating energy is to determine the heating power corresponding to each heating power segment based on the total heating energy.
[0112] Specifically, taking the above-mentioned first energy segment, second energy segment and third energy segment as an example, when the heating energy segment includes the heating power segment, the first energy segment, the second energy segment and the third energy segment correspond to the first power segment, the second power segment and the third power segment respectively. When distributing energy, different heating powers can be allocated to them, while other heating parameters (such as power, distance, etc.) remain constant, so that the heating energy of each heating power segment can be different.
[0113] That is, the heating power allocated to the first power range, the second power range and the third power range can meet the following formula: 4P1=2P2=P3, where P1 is the heating power of the first power range, P2 is the heating power of the second power range, and P3 is the heating power of the third power range.
[0114] It should be noted that the first power range, the second power range and the third power range are three different power ranges.
[0115] In some embodiments, the three power segments also correspond to three consecutive time periods. The time periods corresponding to the three power segments are equal in length and are generally arranged in the order of time: the first power segment, the second power segment, and the third power segment, so as to comply with the rule of gradually increasing heating power and reduce the warm-up time.
[0116] In other embodiments, the three power sections correspond to the same time period, and when heating is performed, heating is performed correspondingly with heating heads of different powers (or the powers can also be superimposed by the same heating head).
[0117] In the above-mentioned embodiment, the total heating energy is distributed according to the heating power segments, so that the power of each heating segment can be made more accurate, avoiding overheating or overcooling, and ensuring that the temperature rises evenly. By reasonably setting the power level of each heating power segment, the heating process can reach the required temperature in the shortest time, reducing ineffective heating time and improving energy efficiency. Excessive heating power may cause the equipment to overheat or even cause damage. By reasonably controlling the heating power, this problem can be avoided and the service life of the equipment can be extended. Too high or too low temperature will affect the printing quality. By accurately controlling the heating power, it can be ensured that the temperature of the print head remains within the ideal range, thereby ensuring the stability of the printing process and high-quality output.
[0118] In S200, by assigning specific heating energy segments to each pixel, the heating output of the print head can be precisely controlled. For example, pixels with high energy levels may require stronger heating energy segments (high energy output), while pixels with low energy levels correspond to lower heating energy segments (low energy output). This allocation method avoids uneven heating, allowing the details and complex areas of the image to be fully displayed without overheating the background area.
[0119] Specifically, in some embodiments, the specific implementation of step S200 can refer to the following embodiments. Figure 2 The detailed description of step S200 in the print head heating control method shown in the corresponding embodiment, in the print head heating control method, step S200 may include the following steps:
[0120] According to the printing energy level of each pixel, the printing energy corresponding to each pixel is determined.
[0121] At least one heating energy segment is allocated to each pixel according to the printing energy, and the sum of energies of all heating energy segments allocated to each pixel is equal to the printing energy corresponding to the pixel.
[0122] In this embodiment, by allocating heating energy according to the printing energy level of each pixel, it is possible to ensure that each pixel obtains appropriate heating energy, which not only improves the accuracy of heating, but also avoids overheating or underheating. Allocating heating energy to each pixel in the form of allocating corresponding heating energy segments to each pixel can more effectively utilize the heating energy, making the overall heating process more efficient and not wasting energy. The heating energy segments of different pixels can be adjusted according to actual conditions, which can make the temperature control during the heating process more accurate, avoid temperature fluctuations, and ensure the stable operation of the device.
[0123] Since the heating energy of each pixel is precisely distributed, the energy distribution during printing is more uniform, which can effectively avoid printing defects caused by uneven temperature, such as image color cast, printing failure, etc., thereby improving the printing quality. At the same time, precise energy distribution also reduces the risk of overheating of the device due to excessive heating, which helps to extend the service life of the device.
[0124] Specifically, in some embodiments, the three time periods, namely the first time period, the second time period and the third time period, are used for illustration.
[0125] In the above-mentioned embodiment, we have known that the heating time allocated to the first time period, the second time period and the third time period can meet the following formula: 4T1=2T2=T3. According to the combination of each heating time period, we can get the heating time period allocation scheme corresponding to 7 different energy levels. Here, we define these 7 different energy levels from low to high as the first energy level, the second energy level, the third energy level, the fourth energy level, the fifth energy level, the sixth energy level, and the seventh energy level, and define the heating time corresponding to the first time period as 1 unit time length.
[0126] Among them, for the first energy level, the heating time period allocated thereto is only the first time period, and the total heating time is 1 unit time.
[0127] For the second energy level, the heating time period allocated thereto is only the second time period, and the total heating time is 2 unit time periods.
[0128] For the third energy level, the heating time period allocated thereto is the first time period plus the second time period, and the total heating time is 3 unit time periods.
[0129] For the fourth energy level, the heating time period allocated thereto is only the third time period, and the total heating time is 4 unit time periods.
[0130] For the fifth energy level, the heating time period allocated thereto is the first time period plus the third time period, and the total heating time is 5 unit time periods.
[0131] For the sixth energy level, the heating time period allocated thereto is the second time period plus the third time period, and the total heating time is 6 unit time periods.
[0132] For the seventh energy level, the heating time period allocated thereto is the first time period plus the second time period plus the third time period, and the total heating time is 7 unit time periods.
[0133] That is, this embodiment realizes 7 levels of control of unit time duration through the combination of the first time period, the second time period and the third time period, making the temperature control during the heating process more precise.
[0134] Specifically, in other embodiments, the three power ranges, namely the first power range, the second power range and the third power range, are used for illustration.
[0135] In the above-mentioned embodiment, we have known that the heating power allocated to the first power section, the second power section and the third power section can meet the following formula: 4P1=2P2=P3. According to the combination of each heating power section, we can get the heating power section allocation scheme corresponding to 7 different energy levels. Here, we define these 7 different energy levels from low to high as the first energy level, the second energy level, the third energy level, the fourth energy level, the fifth energy level, the sixth energy level, and the seventh energy level, and the heating power corresponding to the first power section is defined as 1 unit power.
[0136] Among them, for the first energy level, the heating power segment allocated thereto is only the first power segment, and the total heating power is 1 unit power.
[0137] For the second energy level, the heating power segment allocated thereto is only the second power segment, and the total heating power is 2 unit powers.
[0138] For the third energy level, the heating power section allocated thereto is the first power section plus the second power section, and the total heating power is 3 unit powers.
[0139] For the fourth energy level, the heating power segment allocated to it is only the third power segment, and the total heating power is 4 unit powers.
[0140] For the fifth energy level, the heating power segment allocated thereto is the first power segment plus the third power segment, and the total heating power is 5 unit powers.
[0141] For the sixth energy level, the heating power segment allocated thereto is the second power segment plus the third power segment, and the total heating power is 6 unit powers.
[0142] For the seventh energy level, the heating power section allocated thereto is the first power section plus the second power section plus the third power section, and the total heating power is 7 unit powers.
[0143] To summarize, this embodiment effectively solves the problems of uneven energy distribution and inaccurate heating during the printing process by allocating at least one heating energy segment to each pixel according to the printing energy level of the pixel, making the printing process more refined, which not only improves the heating efficiency and printing quality, but also optimizes the temperature control process, avoids equipment damage and extends the service life of the equipment.
[0144] In S300, according to the printing energy level and heating energy range of each pixel, the print head heats the paper with different intensities to achieve the best printing effect.
[0145] Among them, pixels with high energy levels will be fully heated to ensure accurate display of details and colors; pixels with low energy levels will not be overheated, avoiding problems such as image blur or excessive darkening of the background area, ensuring precise control of the heating process.
[0146] Specifically, in some embodiments, the specific implementation of step S300 can refer to the following embodiments. Figure 2 The detailed description of step S300 in the print head heating control method shown in the corresponding embodiment, in the print head heating control method, step S300 may include the following steps:
[0147] In response to the start of printing, the paper is fed back to align the leading edge of the paper with the print line.
[0148] The number of paper feeding rows is counted, and when the number of rows with data is counted, the pixels of the row are heated according to the corresponding heating energy segment.
[0149] In this embodiment, the pixels of each row are heated according to the heating energy segment, which can ensure that the heat distribution of each row during printing meets the requirements of the image. Pixels in different areas may require different heating energies according to the content of the image to avoid overheating or underheating. By counting the number of paper feeding rows and accurately controlling the heating area, it can be ensured that the print head heats the paper at the right time without causing unnecessary energy waste. At the same time, the synchronization of paper feeding and printing process is ensured, and printing efficiency is improved. Through precise heating control, color difference problems or missing details can be avoided, and the consistency and accuracy of the printed image with the original image can be guaranteed. During the heating process, on-demand heating is adopted to avoid unnecessary heating, reduce energy waste, and extend the service life of the equipment.
[0150] It should be noted that during the printing process, attention should also be paid to the printing timing control, which mainly includes the control of the print head SPI_CLK pin, SPI_MOSI pin, LATCH pin, and STB pin. Among them, SPI_CLK is the SPI communication clock line for printing data transmission; SPI_MOSI is the SPI communication data line for printing data transmission; LATCH is the print data latch pin, and the falling edge latches the data to the print head; STB is the heating control pin, and the high level starts the heating.
[0151] The timing of printing a line of data is as follows Figure 6 As shown, during the idle period, the data to be heated in stage I is first sent to the print head, and before the start of stage I, a LATCH signal is sent to latch the data to the print head. During stage I, the data to be heated in stage II is sent to the print head, and before the start of stage II, a LATCH signal is sent to latch the data to the print head. During stage II, the data to be heated in stage III is sent to the print head, and the cooling stage is entered after the last stage of data heating is completed in stage III.
[0152] In some embodiments of the present application, the above step S100 may specifically include:
[0153] According to the image to be printed, a printing energy level is allocated to each pixel point line by line to form pixel point data corresponding to each printing energy level.
[0154] In this embodiment, the printing energy level allocation method line by line and pixel by pixel makes the printing demand of each pixel accurately considered. This refined processing method can make full use of the heating capacity of the printer and improve the printing quality. Therefore, this embodiment can reasonably allocate the heating energy according to the specific content and characteristics of each row of images by allocating pixels line by line. This can reduce ineffective heating and overheating, while maintaining temperature control accuracy to ensure a more uniform printing effect. The fine distribution of printing energy levels for each row of pixels can effectively improve the accuracy of energy allocation during the printing process, avoid problems such as printing defects and image unevenness that may occur in traditional methods due to ignoring differences in local area demand, thereby improving the overall printing effect. At the same time, the fine energy level allocation reduces unnecessary energy waste during the printing process. The heating demand of each pixel can be accurately met, which helps to improve heating efficiency and save energy and resources.
[0155] In some other embodiments corresponding to the above embodiments, the above step S200 may specifically include:
[0156] According to the pixel point data corresponding to each printing energy level, a heating energy segment is allocated to each pixel point to form the pixel point data corresponding to each heating energy segment.
[0157] In this embodiment, by further allocating the printing energy level to different heating energy segments, the heating process can be controlled at a finer granularity. This helps to achieve more precise heating control and avoid print quality problems caused by too high or too low heating energy (such as burning caused by overheating, too low color caused by shallow, etc.). By specifying one or more heating energy segments for each pixel, the heating process can be finely adjusted according to the specific characteristics of the image to ensure that the heating of each pixel is more uniform and meets the requirements. This helps to solve problems such as uneven heating and poor printing effects that may occur in traditional methods. By accurately allocating heating energy segments, waste of resources and energy is avoided. Each pixel is allocated to a suitable heating energy segment according to its printing needs, thereby improving the efficiency of energy use, while reducing the pressure on the printer hardware and extending its service life. Through the refined allocation of heating energy segments, printing tasks can be completed more quickly and accurately, especially when processing complex images (such as images with rich details and diverse color levels), high printing accuracy and speed can be maintained.
[0158] Specifically, Figure 7 As shown, for two rows of pixels, the printing energy level is assigned to each pixel row by row. The eight pixels in the first row are all assigned a printing energy level of 7, which can be converted into a binary form, and the printing data corresponding to the seventh energy level is represented as 11111111, where 1 indicates that the pixel is printed using the corresponding seventh energy level.
[0159] When printing, the corresponding heating energy segments are converted to that all pixels are heated using the first heating energy segment, the second heating energy segment, and the third heating energy segment. Converted into binary form, the printing data corresponding to the first heating energy segment is represented as 11111111, where 1 indicates that the pixel is printed using the corresponding first heating energy segment; the printing data corresponding to the second heating energy segment is represented as 11111111, where 1 indicates that the pixel is printed using the corresponding second heating energy segment; the printing data corresponding to the third heating energy segment is represented as 11111111, where 1 indicates that the pixel is printed using the corresponding third heating energy segment.
[0160] The eight pixels in the second row are assigned printing energy levels one by one, namely the sixth energy level, the fifth energy level, the fourth energy level, the third energy level, the third energy level, the fourth energy level, the fifth energy level, and the sixth energy level.
[0161] It can be converted into binary form, and the printing data corresponding to the sixth energy level is represented as 10000001, where 1 indicates that the pixel is printed using the corresponding sixth energy level; the printing data corresponding to the fifth energy level is represented as 01000010, where 1 indicates that the pixel is printed using the corresponding fifth energy level; the printing data corresponding to the fourth energy level is represented as 00100100, where 1 indicates that the pixel is printed using the corresponding fourth energy level; the printing data corresponding to the third energy level is represented as 00011000, where 1 indicates that the pixel is printed using the corresponding third energy level.
[0162] When printing, the corresponding heating energy segment is converted to that the first pixel and the last pixel are not heated in the first heating energy segment, the second pixel and the second last pixel are not heated in the second heating energy segment, the third pixel and the third last pixel are heated in the third heating energy segment, and the middle two pixels are not heated in the third heating energy segment. Converted into binary form, the printing data corresponding to the first heating energy segment is represented as 01011010, where 1 indicates that the pixel is printed using the corresponding first heating energy segment; the printing data corresponding to the second heating energy segment is represented as 10011001, where 1 indicates that the pixel is printed using the corresponding second heating energy segment; the printing data corresponding to the third heating energy segment is represented as 11100111, where 1 indicates that the pixel is printed using the corresponding third heating energy segment.
[0163] The following describes an apparatus embodiment of the present application, which can be used to execute the print head heating control method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the print head heating control method of the present application.
[0164] Figure 8 A block diagram of a print head heating control device according to an embodiment of the present application is shown.
[0165] Reference Figure 8 As shown, a print head heating control device 800 according to an embodiment of the present application includes: an energy level allocation module 810 , an energy segmentation module 820 , and a pixel heating module 830 .
[0166] Among them, the energy level allocation module 810 is used to allocate a printing energy level to each pixel in the image to be printed according to the image to be printed, and there are multiple printing energy levels; the energy segmentation module 820 is used to allocate at least one corresponding heating energy segment to each pixel according to the printing energy level of each pixel; the pixel heating module 830 is used to heat each pixel on the printing paper according to the corresponding heating energy segment.
[0167] In some feasible embodiments of the present application, the print head heating control device also includes: a total amount determination module, used to determine the total heating energy according to the printing parameters; an energy distribution module, used to determine the heating energy corresponding to each heating energy segment according to the total heating energy.
[0168] In some feasible embodiments of the present application, the printing parameters include print head temperature, battery voltage, and paper type; the total amount determination module specifically includes: a parameter acquisition submodule, used to acquire the print head temperature, battery voltage, and paper type; a total amount determination submodule, used to determine the total heating energy based on the print head temperature, battery voltage, and paper type.
[0169] In some feasible embodiments of the present application, the energy distribution module specifically includes: an energy distribution submodule, which is used to distribute heating energy to each heating energy segment in proportion according to the total heating energy, and the sum of the energies of all heating energy segments is equal to the total heating energy.
[0170] In some feasible embodiments of the present application, the heating energy segment includes a first energy segment, a second energy segment and a third energy segment, and the energy distribution submodule specifically includes: a first distribution unit, used to distribute heating energy to the first energy segment according to a first ratio; a second distribution unit, used to distribute heating energy to the second energy segment according to a second ratio; and a third distribution unit, used to distribute heating energy to the third energy segment according to a third ratio.
[0171] In some feasible embodiments of the present application, the heating energy segment includes a heating time period, and the energy allocation module is specifically used to execute: determining the heating time corresponding to each heating time period according to the total heating energy.
[0172] In some feasible embodiments of the present application, the heating energy segment includes a heating power segment, and the energy allocation module is specifically used to execute: determining the heating power corresponding to each heating power segment according to the total heating energy.
[0173] In some feasible embodiments of the present application, the energy segmentation module specifically includes: an energy determination submodule, which is used to determine the printing energy corresponding to each pixel point according to the printing energy level of each pixel point; an energy segmentation submodule, which is used to allocate at least one heating energy segment to each pixel point according to the printing energy, and the sum of the energies of all the heating energy segments allocated to each pixel point is equal to the printing energy corresponding to the pixel point.
[0174] In some feasible embodiments of the present application, the energy level allocation module is specifically used to execute: according to the image to be printed, the printing energy level is allocated to each pixel point line by line to form pixel point data corresponding to each printing energy level.
[0175] In some feasible embodiments of the present application, the energy segmentation module is specifically used to execute: according to the pixel point data corresponding to each printing energy level, a heating energy segment is allocated to each pixel point to form pixel point data corresponding to each heating energy segment.
[0176] In some feasible embodiments of the present application, the energy level allocation module specifically includes: a pixel division submodule, used to perform information processing on the image to be printed and divide the image to be printed into pixels; an energy level allocation submodule, used to divide the pixels according to the image to be printed and allocate a printing energy level to each pixel.
[0177] In some feasible embodiments of the present application, the pixel heating module specifically includes: a paper feeding alignment submodule, which is used to feed the paper and align the paper head with the printing line in response to the start of printing; a pixel heating submodule, which is used to count the number of paper feeding rows, and when the number of rows with data is counted, the pixel points of the row are heated according to the corresponding heating energy segment.
[0178] In some feasible embodiments of the present application, the print head heating control device further includes: an image receiving module, used to receive an image to be printed sent by a user, and the image to be printed is edited by the user.
[0179] By assigning appropriate energy levels and heating segments to each pixel, the present application can ensure that each area in printing receives appropriate heating, thereby avoiding the problem of overheating or insufficient heating, so that high-precision images can be printed completely and clearly, especially with more accurate details.
[0180] Since the heating energy of each pixel is allocated according to actual needs, it avoids using too much heating energy for the entire image, thereby reducing energy consumption. Especially for large background areas, low-energy pixels will reduce the heating intensity and improve overall energy efficiency.
[0181] This precise heating control avoids overheating and also helps protect the print head from damage caused by overheating, thereby extending the service life of the device.
[0182] At the same time, whether it is simple text or complex images or barcodes, through different energy level distribution and control of heating energy segments, ideal printing effects can be obtained to meet different printing needs.
[0183] In summary, in the embodiments of the present application, the heating intensity is dynamically adjusted according to the different printing contents to ensure that the image details can be fully displayed, reduce the occurrence of overheating, blurring and other problems, and avoid damage to the print head due to overheating through temperature feedback and multi-level control, thereby extending the service life of the device. The heating parameters can also be automatically adjusted according to different thermal paper types and environmental conditions, so that the printer can maintain a stable printing effect under various conditions.
[0184] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0185] It should be noted that Fig. 9 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0186] like Fig. 9 As shown, the computer system includes a central processing unit (CPU) 1801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1802 or the program loaded from the storage part 1808 to the random access memory (RAM) 1803, such as executing the method described in the above embodiment. In RAM 1803, various programs and data required for system operation are also stored. CPU 1801, ROM 1802 and RAM 1803 are connected to each other through bus 1804. Input / output (I / O) interface 1805 is also connected to bus 1804.
[0187] The following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed so that a computer program read therefrom is installed into the storage section 1808 as needed.
[0188] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1809, and / or installed from a removable medium 1811. When the computer program is executed by a central processing unit (CPU) 1801, various functions defined in the system of the present application are executed.
[0189] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0190] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0191] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0192] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0193] The present specification also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1 to Figure 7 The method of the embodiment shown in the figure can be specifically executed by referring to Figure 1 to Figure 7 The specific description of the illustrated embodiment will not be repeated here.
[0194] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0195] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0196] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0197] It should be understood that the present application is not limited to the precise 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 application is limited only by the appended claims.
Claims
1. A print head heating control method, characterized in that: include: According to the image to be printed, assigning a printing energy level to each pixel in the image to be printed, wherein there are multiple printing energy levels; According to the printing energy level of each pixel point, at least one corresponding heating energy segment is allocated to each pixel point; Each pixel point on the printing paper is heated according to the corresponding heating energy segment.
2. The print head heating control method according to claim 1, characterized in that: The print head heating control method further comprises: Determine the total heating energy according to the printing parameters; The heating energy corresponding to each heating energy segment is determined according to the total heating energy.
3. The print head heating control method according to claim 2, characterized in that: The printing parameters include print head temperature, battery voltage, and paper type; Determining the total heating energy according to the printing parameters specifically includes: Get print head temperature, battery voltage, paper type; The total heating energy is determined according to the print head temperature, battery voltage, and paper type.
4. The print head heating control method according to claim 2, characterized in that: Determining the heating energy corresponding to each heating energy segment according to the total heating energy specifically includes: According to the total heating energy, the heating energy is distributed to each heating energy section in proportion, and the sum of the energies of all the heating energy sections is equal to the total heating energy.
5. The print head heating control method according to claim 4, characterized in that: The heating energy segment includes a first energy segment, a second energy segment and a third energy segment, and the heating energy is distributed to each heating energy segment in proportion according to the total heating energy, specifically including: Allocating heating energy to the first energy segment according to a first ratio; distributing heating energy to the second energy segment according to a second ratio; The heating energy is distributed to the third energy segment according to a third ratio.
6. The print head heating control method according to any one of claims 2 to 5, characterized in that: The heating energy segment includes a heating time period, and determining the heating energy corresponding to each heating energy segment according to the total heating energy specifically includes: The heating time corresponding to each heating time period is determined according to the total heating energy.
7. The print head heating control method according to any one of claims 2 to 5, characterized in that: The heating energy section includes a heating power section, and determining the heating energy corresponding to each heating energy section according to the total heating energy specifically includes: The heating power corresponding to each heating power section is determined according to the total heating energy.
8. The print head heating control method according to claim 1, characterized in that: The allocating at least one corresponding heating energy segment to each pixel point according to the printing energy level of each pixel point specifically includes: Determine the printing energy corresponding to each pixel point according to the printing energy level of each pixel point; At least one heating energy segment is allocated to each pixel according to the printing energy, and the sum of energies of all heating energy segments allocated to each pixel is equal to the printing energy corresponding to the pixel.
9. The print head heating control method according to claim 1, characterized in that: The allocating a printing energy level to each pixel in the image to be printed according to the image to be printed specifically includes: According to the image to be printed, a printing energy level is allocated to each pixel point line by line to form pixel point data corresponding to each printing energy level.
10. The print head heating control method according to claim 9, characterized in that: According to the printing energy level of each pixel, at least one corresponding heating energy segment is allocated to each pixel, specifically including: According to the pixel point data corresponding to each printing energy level, a heating energy segment is allocated to each pixel point to form the pixel point data corresponding to each heating energy segment.
11. The print head heating control method according to claim 1, characterized in that: The allocating a printing energy level to each pixel in the image to be printed according to the image to be printed specifically includes: Performing information processing on the image to be printed, and dividing the image to be printed into pixels; Pixel points are divided according to the image to be printed, and a printing energy level is allocated to each pixel point.
12. The print head heating control method according to claim 1, characterized in that: The step of heating each pixel on the printing paper according to the corresponding heating energy segment specifically includes: In response to the start of printing, the paper is fed back to align the paper head with the print line; The number of paper feeding rows is counted, and when the number of rows with data is counted, the pixels of the row are heated according to the corresponding heating energy segment.
13. The print head heating control method according to claim 1, characterized in that: Before allocating a printing energy level to each pixel in the image to be printed according to the image to be printed, the method further includes: An image to be printed sent by a user is received, where the image to be printed is edited by the user.
14. A print head heating control device, characterized in that: The print head heating control device comprises: An energy level allocation module, used for allocating a printing energy level to each pixel in the image to be printed according to the image to be printed, wherein there are multiple printing energy levels; An energy segmentation module, used for allocating at least one corresponding heating energy segment to each pixel point according to the printing energy level of each pixel point; The pixel heating module is used to heat each pixel on the printing paper according to the corresponding heating energy segment.
15. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the print head heating control method according to any one of claims 1 to 13 is implemented.
16. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the print head heating control method as described in any one of claims 1 to 13.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the print head heating control method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Thermal printer
CN107571634A
Thermal printing method and device capable of dynamically adjusting heating duration, equipment and medium
CN115071300A
Printing speed determination method and device, equipment and storage medium
CN117246054A
Thermal printer and printing controller
JP2008162107A
Printing system, thermal printer, printing control method, and data storage medium
US20020126197A1
Cited By
Printhead heating control method and related device
WO2026124233A1