A printing speed determination method, apparatus, device and storage medium

By determining the charging protocol of the power adapter and the number of pixels in the content to be printed, the printing speed of the thermal printer is dynamically adjusted, which solves the problem of decreased print quality and waste of resources caused by replacing or mixing power adapters, and improves the user experience.

CN117246054BActive Publication Date: 2026-02-17XIAMEN HANIN CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311178690.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2026-02-17
Estimated Expiration
2043-09-13

AI Technical Summary

Technical Problem

When the power adapter is changed or mixed, the fixed printing speed of existing thermal printers cannot match the power supply current, resulting in a decrease in print quality or waste of resources, which affects the user experience.

Method used

By determining the power adapter connected to the printing device, the printing current is determined according to its charging protocol. Combined with the number of pixels in the content to be printed and the operating current of the printing device, the printing speed is dynamically adjusted to ensure print quality and reduce resource waste.

Benefits of technology

It enables dynamic adjustment of printing speed based on the power adapter and the content to be printed, ensuring print quality while reducing resource waste and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117246054B_ABST
    Figure CN117246054B_ABST
Patent Text Reader

Abstract

The application discloses a printing speed determination method, device and equipment and a storage medium, and relates to the technical field of printers. The method comprises the following steps: determining a power adapter connected to a printing device, determining a printing current according to the power adapter, and determining a printing speed of the printing device for printing content to be printed according to the content to be printed and the printing current. According to the technical scheme, when the current adapter is connected to the printing device to supply power for printing, the printing current that can be provided by the power adapter, i.e., the printing current of the printing device, is determined. According to the number of pixels contained in each group of content to be printed in the content to be printed and the printing current of the printing device, the printing speed of the printing device for printing each group of content to be printed is determined, and then the printing speed of the printing device for printing the content to be printed is determined. The printing speed is dynamically adjusted according to the printing current and the content to be printed, the waste of printing resources is reduced while the printing quality is ensured, and the printing experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of printer technology, and more particularly to a method, apparatus, device, and storage medium for determining printing speed. Background Technology

[0002] Thermal printers use a thermal printhead to heat the ink, generating energy to develop the ink in the printing medium and thus print the content. For thermal printers, the higher the printing speed, the greater the current required. If the printing speed exceeds the maximum speed the power supply can provide, printing at that speed will result in insufficient or uneven ink density and a decrease in color quality. Therefore, the magnitude of the power supply current directly affects the printer's printing speed.

[0003] To ensure that the current required for printing does not exceed the power supply current, existing thermal printers set a fixed upper limit for the printer's printing speed based on the maximum power supply current that the power adapter configured at the factory can provide.

[0004] When the printer uses a power adapter that is not the factory-configured one, the printer's power supply current changes, and a fixed printing speed will affect the print quality. For example, if the printer's current power supply current is greater than the maximum power supply current that the factory-configured power adapter can provide, continuing to print at a fixed speed will waste resources and negatively impact the printing experience; conversely, if the printer's current power supply current is less than the maximum power supply current that the factory-configured power adapter can provide, continuing to print at a fixed speed will result in a decrease in print quality. Summary of the Invention

[0005] This invention provides a method, apparatus, device, and storage medium for determining printing speed, so as to dynamically adjust the printing speed according to the printing current and the content to be printed, ensuring print quality while reducing printing resource waste and improving the user's printing experience.

[0006] In a first aspect, embodiments of the present invention provide a method for determining printing speed, including:

[0007] Determine the power adapter connected to the printing device, and determine the printing current based on the power adapter;

[0008] The printing speed at which the printing device prints the content to be printed is determined based on the content to be printed and the printing current.

[0009] The technical solution of this invention provides a method for determining printing speed, including: determining the power adapter connected to the printing device; determining the printing current based on the power adapter; and determining the printing speed at which the printing device prints the content to be printed based on the content to be printed and the printing current. This technical solution, when the power adapter is connected to the printing device to supply power for printing, determines the printing current that the power adapter can provide, i.e., determines the printing current of the printing device. Based on the number of pixels contained in each group of content to be printed and the printing current of the printing device, the printing speed at which the printing device prints each group of content to be printed is determined, thereby determining the printing speed at which the printing device prints the content to be printed. This achieves dynamic adjustment of the printing speed based on the printing current and the content to be printed, ensuring print quality while reducing printing resource waste and improving the user's printing experience.

[0010] Further, determining the printing current based on the power adapter includes:

[0011] The charging mode supported by the power adapter is determined according to the charging protocol of the power adapter, and the printing current is determined according to the charging mode.

[0012] Further, determining the printing speed of the printing device for printing the content to be printed based on the content to be printed and the printing current includes:

[0013] The maximum number of printing points that can work simultaneously is determined based on the printing current and the operating current of each printing point in the printing device.

[0014] The number of segments to be printed for each group of content to be printed is determined based on the maximum number of print points that can work simultaneously and the number of pixels contained in each group of content to be printed.

[0015] Based on the number of segments to be printed and the working time of each printing point in the printing device, the printing time required for the printing device to print each group of content to be printed in the content to be printed is obtained.

[0016] The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed.

[0017] Further, determining the printing speed of the printing device for printing the content to be printed based on the content to be printed and the printing current includes:

[0018] The allocation current for each group of content to be printed is determined based on the printing current and the number of pixels contained in each group of content to be printed.

[0019] For each group of content to be printed in the content to be printed, if the current allocation current corresponding to the current group of content to be printed is not greater than the current threshold, the printing time required for the printing device to print the current group of content to be printed is determined according to the current allocation current, so as to obtain the printing time required for the printing device to print each group of content to be printed in the content to be printed.

[0020] The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed.

[0021] Furthermore, after determining the allocated current for each group of printable content based on the printing current and the number of pixels contained in each group of printable content, the method further includes:

[0022] If the current allocated current corresponding to the content to be printed in the current group is greater than the current threshold, the current printing speed of the printing device for printing the content to be printed in the current group is determined as the speed threshold of the printing device.

[0023] Further, determining the printing speed of the printing device for printing the content to be printed based on the printing time required for the printing device to print each group of content to be printed includes:

[0024] Based on the printing time required for the printing device to print each group of content to be printed and the printing distance of each group of content to be printed, the printing speed required for the printing device to print each group of content to be printed is determined, and the printing speed of the printing device to print the content to be printed is determined.

[0025] Furthermore, the charging mode includes a fast charging attribute, which may be either supporting fast charging or not supporting fast charging; when the fast charging attribute supports fast charging, the charging mode also includes a fast charging protocol.

[0026] Secondly, embodiments of the present invention also provide a printing speed determining device, comprising:

[0027] A determination module is used to determine the power adapter connected to the printing device and determine the printing current based on the power adapter.

[0028] An execution module is used to determine the printing speed required by the printing device to print the content to be printed based on the content to be printed and the printing current.

[0029] Thirdly, embodiments of the present invention also provide a printing device, the printing device comprising:

[0030] One or more processors;

[0031] Storage device for storing one or more programs;

[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the printing speed determination method as described in any of the first aspects.

[0033] Fourthly, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the printing speed determination method as described in any of the first aspects.

[0034] Fifthly, this application provides a computer program product including computer instructions that, when executed on a computer, cause the computer to perform the printing speed determination method provided in the first aspect.

[0035] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the printing speed determining device, or it may be packaged separately from the processor of the printing speed determining device; this application does not impose any limitations on this.

[0036] The descriptions of the second, third, fourth, and fifth aspects in this application can be referred to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, fourth, and fifth aspects can be referred to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0037] In this application, the name of the aforementioned printing speed determining device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the function of each device or functional module is similar to that of this application, it falls within the scope of the claims of this application and its equivalents.

[0038] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 A flowchart illustrating a method for determining printing speed according to an embodiment of the present invention;

[0041] Figure 2 A flowchart illustrating another method for determining printing speed provided in an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of the print head of the printing device and the content to be printed in another printing speed determination method provided in an embodiment of the present invention;

[0043] Figure 4 This is a schematic diagram of a printing speed determining device provided in an embodiment of the present invention;

[0044] Figure 5 This is a schematic diagram of a printing device provided in an embodiment of the present invention. Detailed Implementation

[0045] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0046] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0047] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0048] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0049] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc. Moreover, embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0050] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0051] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0052] With the standardization of USB interfaces, more and more electronic devices are adopting USB power adapters, and printers now widely use USB as their power interface. On the one hand, users often mix and match adapters because they own multiple adapters; on the other hand, if the original adapter is lost or damaged, users want to find a replacement more easily. This results in printers using adapters that are not the original factory settings. The fixed print speed may not match the power adapter's capacity. If the fixed print speed is too high, it may lead to a decrease in print quality; if it is too low, it will waste resources and affect the printing experience.

[0053] Therefore, this application proposes a method for determining printing speed, which determines the printing speed based on the power adapter connected to the printing device and the content to be printed, thereby ensuring print quality while reducing waste of printing resources.

[0054] Figure 1 This is a flowchart illustrating a method for determining printing speed according to an embodiment of the present invention. This embodiment is applicable to situations where the printing speed needs to be determined based on the power adapter of the printing device and the content to be printed. This method can be executed by a printing speed determining device, such as... Figure 1 As shown, the specific steps include the following:

[0055] Step 110: Determine the power adapter connected to the printing device, and determine the printing current based on the power adapter.

[0056] Different power adapters support different charging protocols and can provide different charging currents.

[0057] Specifically, the power adapter connects to the printing device via a charging cable to provide power for printing. When the power adapter connects to the printing device via the charging cable, the charging mode supported by the power adapter can be determined according to the power adapter's charging protocol, thereby determining the printing current that the power adapter can provide. This printing current can be understood as the maximum current that the power adapter can provide. When the printing device is printing, the printing speed can be determined based on the content to be printed and the printing current.

[0058] In this embodiment of the invention, when the current adapter is connected to the printing device to provide power for printing, the printing current that the power adapter can provide is determined, that is, the printing current of the printing device is determined.

[0059] Step 120: Determine the printing speed of the printing device for printing the content to be printed based on the content to be printed and the printing current.

[0060] The number of pixels contained in each group of content to be printed affects the current at each printing point in the print head when printing each group of content. The current at each printing point in the print head can be determined based on the number of pixels in each group of content. The heat required to print each pixel is fixed; therefore, the printing time for each group of content can be determined based on the current at each printing point in the print head. A higher current at each printing point in the print head results in a shorter printing time, and a lower current results in a longer printing time. Furthermore, the printing speed of the print head for each group of content can be determined based on the distance of each group of content in the printing direction and the aforementioned printing time, thus determining the printing speed of the print head for printing the content.

[0061] In this embodiment of the invention, the printing speed of the printing device when printing each group of content to be printed is determined based on the number of pixels contained in each group of content to be printed and the printing current of the printing device. This allows for dynamic adjustment of the printing speed according to the printing current and the content to be printed, ensuring print quality while reducing waste of printing resources and improving the user's printing experience.

[0062] The printing speed determination method provided in this invention includes: determining the power adapter connected to the printing device; determining the printing current based on the power adapter; and determining the printing speed at which the printing device prints the content to be printed based on the content to be printed and the printing current. This technical solution, when the power adapter is connected to the printing device to supply power for printing, determines the printing current that the power adapter can provide, i.e., determines the printing current of the printing device. Based on the number of pixels contained in each group of content to be printed and the printing current of the printing device, the printing speed at which the printing device prints each group of content to be printed is determined, thereby determining the printing speed at which the printing device prints the content to be printed. This achieves dynamic adjustment of the printing speed based on the printing current and the content to be printed, ensuring print quality while reducing printing resource waste and improving the user's printing experience.

[0063] Figure 2 This is a flowchart illustrating another method for determining printing speed according to an embodiment of the present invention. This embodiment is a specific modification based on the above embodiments. Figure 2 As shown, in this embodiment, the method may further include:

[0064] Step 210: Determine the power adapter connected to the printing device.

[0065] The power adapter connected to the printing device can be a USB Type-C power adapter.

[0066] Specifically, when a power adapter is connected to a printing device via a charging cable to provide power for printing, information such as the type and model of the power adapter can be determined.

[0067] In this embodiment of the invention, when the current adapter is connected to the printing device to provide power for printing, the specific information of the power adapter is determined.

[0068] Step 220: Determine the printing current based on the power adapter.

[0069] In one implementation, step 220 may specifically include:

[0070] The charging mode supported by the power adapter is determined according to the charging protocol of the power adapter, and the printing current is determined according to the charging mode.

[0071] Optionally, the charging mode includes a fast charging attribute, which may be either supporting fast charging or not supporting fast charging.

[0072] Optionally, when the fast charging attribute supports fast charging, the charging mode may also include a fast charging protocol.

[0073] The fast charging attribute included in the charging modes of various USB Type-C power adapters can determine the output current of the USB Type-C power adapter. The fast charging attribute of the USB Type-C power adapter is whether it supports fast charging or not. When the charging attribute of the USB Type-C power adapter supports fast charging, the charging mode also includes the fast charging protocol, which can be USB-PB fast charging protocol, QC fast charging protocol, etc., and the corresponding output current is 5A, 3A, etc.

[0074] Specifically, the charging protocol of a power adapter can determine the charging modes it supports, and thus its output current. Specifically, firstly, the charging protocol of the power adapter can be used to determine whether its charging mode supports fast charging or not. If it supports fast charging, the fast charging protocol can be further identified, and the output current can be determined based on that protocol, thus determining the printing current of the printer. If the charging mode does not support fast charging, its maximum output current is generally 1A. Therefore, its output current is 1A, and consequently, the printing current of the printer is 1A.

[0075] In this embodiment of the invention, the output current of the power adapter is determined based on the charging mode supported by the power adapter, and then the printing current of the printing device is determined.

[0076] Step 230: Determine the printing speed of the printing device for printing the content to be printed based on the content to be printed and the printing current.

[0077] In one implementation, step 230 may specifically include:

[0078] The maximum number of print points that can operate simultaneously is determined based on the printing current and the operating current of each print point in the printing device. The number of segments to be printed for each group of content to be printed is determined based on the maximum number of print points that can operate simultaneously and the number of pixels contained in each group of content to be printed. The printing time required for the printing device to print each group of content to be printed is obtained based on the number of segments to be printed and the operating time of each print point in the printing device. The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed.

[0079] Since the resistance of each print point in the print head is the same, and the voltage applied to each print point is the same during normal operation, the current passing through each print point when energized is the same; according to Joule's law Q = I... 2 To ensure uniform print density, the power-on time for each print point can be controlled to be equal each time, so that the heat generated by each print point is consistent during each print.

[0080] When the current flowing through each print point is i, the power-on time is T1, and the output current of the power adapter is I, the maximum number of print points that can work simultaneously is n = I / i. The number of pixels in any line of the content to be printed is m. If m ≤ n, all print points can be heated simultaneously when printing that line, and the total time required to print that line is T1. If n < m ≤ 2n, the output current of the power adapter cannot heat all print points simultaneously, and printing needs to be done in two segments: the first segment prints n pixels, and the second segment prints the remaining pixels (mn), with a total time of 2*T1. If 2n < m ≤ 3n, the output current of the power adapter still cannot heat all print points simultaneously, and printing needs to be done in three segments: the first and second segments print n pixels, and the third segment prints the remaining pixels (m-2n), with a total time of 3*T1. Therefore, the total time to print that line is x*T1, where x is determined by the number of pixels in that line.

[0081] For example, if the power adapter's output current I = 5A, the current passing through each print point when powered on is i = 0.1A, and the power-on time is T1 = 0.1s, then the maximum number of print points that can work simultaneously is n = 5 / 0.1 = 50. If the first line of content to be printed has 10 pixels, the second line has 60 pixels, and the third line has 120 pixels, then the time required to print the first line is 0.1s, the time required to print the second line is 0.2s, and the time required to print the third line is 0.3s.

[0082] If the power adapter's output current I = 1A, the current passing through each print point when powered on is i = 0.1A, and the power-on time is T1 = 0.1s, then the maximum number of print points working simultaneously is n = 1 / 0.1 = 10. If the first line of content to be printed has 10 pixels, the second line has 60 pixels, and the third line has 120 pixels, then the time required to print the first line is 0.1s, the time required to print the second line is 0.6s, and the time required to print the third line is 1.2s.

[0083] In this invention, the maximum number of print dots that can work simultaneously is adjusted based on the output current of the power adapter. This changes the number of segments when printing each line of the content to be printed, thereby altering the time required to print each line. This achieves dynamic adjustment of the printing speed based on the input current and the content to be printed, ensuring print quality while reducing printing resource waste and improving the user's printing experience.

[0084] In another implementation, step 230 may specifically include:

[0085] The allocated current for each group of content to be printed is determined based on the printing current and the number of pixels contained in each group of content to be printed. For each group of content to be printed, if the current allocated current corresponding to the current group of content to be printed is not greater than the current threshold, the printing time required for the printing device to print the current group of content to be printed is determined based on the current allocated current, thus obtaining the printing time required for the printing device to print each group of content to be printed. The printing speed of the printing device is determined based on the printing time required for the printing device to print each group of content to be printed. If the current allocated current corresponding to the current group of content to be printed is greater than the current threshold, the current printing speed of the printing device for printing the current group of content to be printed is determined as the speed threshold of the printing device.

[0086] Further, determining the printing speed of the printing device for printing the content to be printed based on the printing time required for the printing device to print each group of content to be printed includes:

[0087] Based on the printing time required for the printing device to print each group of content to be printed and the printing distance of each group of content to be printed, the printing speed required for the printing device to print each group of content to be printed is determined, and the printing speed of the printing device to print the content to be printed is determined.

[0088] Figure 3 This is a schematic diagram of the print head of the printing device and the content to be printed in another printing speed determination method provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the print head has multiple printing dots, and the number of printing dots determines the maximum number of pixels that can be printed in a single print. When the printing device prints each group of content to be printed based on the print head, it can selectively energize the printing dots in the print head according to the pixels contained in each group of content to be printed, so as to generate heat based on the energized printing dots, thereby displaying the content to be printed at the corresponding position on the printing paper.

[0089] For example, when printing the first set of content to be printed, printing points 1-5 are powered on; when printing the second set of content to be printed, printing points 1-8 are powered on; and when printing the Nth set of content to be printed, printing points 6-100 are powered on.

[0090] When the power adapter output current is 5A, to print the first set of content, 5 print dots need to be powered, and each print dot can be allocated a current of 1A; when printing the second line, 8 print dots need to be powered, and each print dot can be allocated a current of 0.625A; when printing the Nth line, 95 print dots need to be powered, and each print dot can be allocated a current of 0.06A.

[0091] According to Joule's law, Q = I 2 RT, the heat required for each print point to print each pixel (the heat required for the printing paper to display the image), is related to current and time. The higher the current, the shorter the time required; the lower the current, the longer the time required. Since the heat required for each print point to print each pixel is fixed, the printing time for each set of content to be printed can be determined based on the current at each print point in the print head when the printing device prints each set of content to be printed.

[0092] In actual printing, to avoid printhead malfunctions in the printing equipment, a current threshold can be set. When it is determined that the current of each printhead does not exceed the current threshold when printing each group of content, the printing speed of the printing equipment for each group of content is determined based on the distance of each group of content in the printing direction and the previously determined printing time of each group of content. Thus, the printing speed of the printing equipment for printing the content is determined. When it is determined that the current of each printhead exceeds the current threshold when printing any group of content, the printing speed of the printing equipment for that group of content is determined as the speed threshold of the printing equipment. Thus, the printing speed of the printing equipment for printing the content is determined.

[0093] The current threshold can be set according to the actual printing device. For example, it can be set to 1A. When it is determined that the current of each print head is greater than the current threshold when the printing device prints any set of content to be printed, the set of content to be printed can be printed according to the speed threshold of the printing device.

[0094] In this embodiment of the invention, the printing speed of the printing device when printing each group of content to be printed is determined based on the number of pixels contained in each group of content to be printed and the printing current of the printing device. This allows for dynamic adjustment of the printing speed according to the printing current and the content to be printed, ensuring print quality while reducing waste of printing resources and improving the user's printing experience.

[0095] The printing speed determination method provided in this embodiment of the invention includes: determining the power adapter connected to the printing device; determining the charging mode supported by the power adapter according to the charging protocol of the power adapter, and determining the printing current according to the charging mode; determining the allocated current corresponding to each group of printable content according to the printing current and the number of pixels contained in each group of printable content in the printable content; for each group of printable content in the printable content, if it is determined that the current allocated current corresponding to the current group of printable content is not greater than a current threshold, determining the printing time required by the printing device to print the current group of printable content according to the current allocated current, thereby obtaining the printing time required by the printing device to print each group of printable content in the printable content; determining the printing speed of the printing device to print the printable content according to the printing time required by the printing device to print each group of printable content in the printable content; and if it is determined that the current allocated current corresponding to the current group of printable content is greater than a current threshold, determining the current printing speed of the printing device to print the current group of printable content as the speed threshold of the printing device. The above technical solution determines the specific information of the power adapter when it is connected to the printing device to provide power. It then determines the output current of the power adapter based on the charging mode it supports, thereby determining the printing current of the printing device. Based on the number of pixels in each group of content to be printed and the printing current of the printing device, it determines the printing speed of each group of content, thus determining the printing speed of the printing device. This allows for dynamic adjustment of the printing speed according to the printing current and the content to be printed, ensuring print quality while reducing printing resource waste and improving the user's printing experience.

[0096] Figure 4 This is a schematic diagram of a printing speed determining device provided in an embodiment of the present invention. This device is applicable to situations where the printing speed needs to be determined based on the power adapter of the printing device and the content to be printed. The device can be implemented through software and / or hardware and is generally integrated into the printing device.

[0097] like Figure 4 As shown, the device includes:

[0098] The determination module 410 is used to determine the power adapter connected to the printing device and determine the printing current based on the power adapter.

[0099] The execution module 420 is used to determine the printing speed required by the printing device to print the content to be printed based on the content to be printed and the printing current.

[0100] The printing speed determining device provided in this embodiment determines the power adapter connected to the printing device, determines the printing current based on the power adapter, and determines the printing speed at which the printing device prints the content to be printed based on the content to be printed and the printing current. This technical solution, when the current adapter is connected to the printing device to supply power for printing, determines the printing current that the power adapter can provide, i.e., determines the printing current of the printing device. Based on the number of pixels contained in each group of content to be printed and the printing current of the printing device, the printing speed at which the printing device prints each group of content to be printed is determined, thereby determining the printing speed at which the printing device prints the content to be printed. This achieves dynamic adjustment of the printing speed based on the printing current and the content to be printed, ensuring print quality while reducing printing resource waste and improving the user's printing experience.

[0101] Based on the above embodiments, the determining module 410 is specifically used for:

[0102] The charging mode supported by the power adapter is determined according to the charging protocol of the power adapter, and the printing current is determined according to the charging mode.

[0103] Based on the above embodiments, the execution module 420 is specifically used for:

[0104] The maximum number of printing points that can work simultaneously is determined based on the printing current and the operating current of each printing point in the printing device; the number of segments to be printed for each group of content to be printed is determined based on the maximum number of printing points that can work simultaneously and the number of pixels contained in each group of content to be printed in the content to be printed; the printing time required by the printing device to print each group of content to be printed in the content to be printed is obtained based on the number of segments to be printed and the operating time of each printing point in the printing device; and the printing speed of the printing device for printing the content to be printed is determined based on the printing time required by the printing device to print each group of content to be printed in the content to be printed.

[0105] Based on the above embodiments, the execution module 420 is specifically used for:

[0106] The allocated current for each group of content to be printed is determined based on the printing current and the number of pixels contained in each group of content to be printed. For each group of content to be printed, if the current allocated current corresponding to the current group of content to be printed is not greater than the current threshold, the printing time required for the printing device to print the current group of content to be printed is determined based on the current allocated current, thus obtaining the printing time required for the printing device to print each group of content to be printed. The printing speed of the printing device is determined based on the printing time required for the printing device to print each group of content to be printed. If the current allocated current corresponding to the current group of content to be printed is greater than the current threshold, the current printing speed of the printing device for printing the current group of content to be printed is determined as the speed threshold of the printing device.

[0107] Further, determining the printing speed of the printing device for printing the content to be printed based on the printing time required for the printing device to print each group of content to be printed includes:

[0108] Based on the printing time required for the printing device to print each group of content to be printed and the printing distance of each group of content to be printed, the printing speed required for the printing device to print each group of content to be printed is determined, and the printing speed of the printing device to print the content to be printed is determined.

[0109] Optionally, the charging mode includes a fast charging attribute, which may be either supporting fast charging or not supporting fast charging; when the fast charging attribute supports fast charging, the charging mode may also include a fast charging protocol.

[0110] The printing speed determination device provided in this embodiment of the invention can execute the printing speed determination method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the printing speed determination execution method.

[0111] It is worth noting that in the embodiments of the above-mentioned printing speed determination device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.

[0112] Figure 5 This is a schematic diagram of a printing device provided in an embodiment of the present invention. Figure 5 A block diagram of an exemplary printing apparatus 5 suitable for implementing embodiments of the present invention is shown. Figure 5The printing device 5 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0113] like Figure 5 As shown, the printing device 5 is represented in the form of a general-purpose computing electronic device. The components of the printing device 5 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0114] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0115] Printing device 5 typically includes a variety of computer-readable media. These media can be any available media that can be accessed by printing device 5, including volatile and non-volatile media, removable and non-removable media.

[0116] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Printing device 5 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 5 Not shown; usually referred to as a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0117] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.

[0118] The printing device 5 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the printing device 5, and / or with any device that enables the printing device 5 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through the input / output (I / O) interface 22. Furthermore, the printing device 5 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via the network adapter 20. Figure 5 As shown, network adapter 20 communicates with other modules of printing device 5 via bus 18. It should be understood that, although... Figure 5 As not shown in the diagram, other hardware and / or software modules can be used in conjunction with printing device 5, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0119] Processing unit 16 executes various functional applications and page displays by running programs stored in system memory 28, such as implementing the printing speed determination method provided in this embodiment, which includes:

[0120] Determine the power adapter connected to the printing device, and determine the printing current based on the power adapter;

[0121] The printing speed at which the printing device prints the content to be printed is determined based on the content to be printed and the printing current.

[0122] Of course, those skilled in the art will understand that the processor can also implement the technical solution of the printing speed determination method provided in any embodiment of the present invention.

[0123] This invention provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements, for example, the printing speed determination method provided in this embodiment, the method comprising:

[0124] Determine the power adapter connected to the printing device, and determine the printing current based on the power adapter;

[0125] The printing speed at which the printing device prints the content to be printed is determined based on the content to be printed and the printing current.

[0126] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0127] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0128] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0129] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0130] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0131] Furthermore, the acquisition, storage, use, and processing of data in the technical solution of this invention all comply with the relevant provisions of national laws and regulations.

[0132] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A method for determining printing speed, characterized in that, include: Determine the power adapter connected to the printing device, and determine the printing current based on the power adapter; The maximum number of printing points that can work simultaneously is determined based on the printing current and the operating current of each printing point in the printing device. The number of segments to be printed for each group of content to be printed is determined based on the maximum number of print points that can work simultaneously and the number of pixels contained in each group of content to be printed. Based on the number of segments to be printed and the working time of each printing point in the printing device, the printing time required for the printing device to print each group of content to be printed in the content to be printed is obtained. The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed. Alternatively, the allocation current corresponding to each group of content to be printed can be determined based on the printing current and the number of pixels contained in each group of content to be printed. For each group of content to be printed in the content to be printed, if the current allocation current corresponding to the current group of content to be printed is not greater than the current threshold, the printing time required for the printing device to print the current group of content to be printed is determined according to the current allocation current, so as to obtain the printing time required for the printing device to print each group of content to be printed in the content to be printed. The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed.

2. The printing speed determination method according to claim 1, characterized in that, Determining the printing current based on the power adapter includes: The charging mode supported by the power adapter is determined according to the charging protocol of the power adapter, and the printing current is determined according to the charging mode.

3. The printing speed determination method according to claim 1, characterized in that, After determining the allocated current for each group of content to be printed based on the printing current and the number of pixels contained in each group of content to be printed, the process further includes: If the current allocated current corresponding to the content to be printed in the current group is greater than the current threshold, the current printing speed of the printing device for printing the content to be printed in the current group is determined as the speed threshold of the printing device.

4. The printing speed determination method according to claim 1, characterized in that, The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed, including: Based on the printing time required for the printing device to print each group of content to be printed and the printing distance of each group of content to be printed, the printing speed required for the printing device to print each group of content to be printed is determined, and the printing speed of the printing device to print the content to be printed is determined.

5. The printing speed determination method according to claim 2, characterized in that, The charging mode includes a fast charging attribute, which may be either supporting fast charging or not supporting fast charging; when the fast charging attribute supports fast charging, the charging mode may also include a fast charging protocol.

6. A printing speed determining device, characterized in that, include: A determination module is used to determine the power adapter connected to the printing device and determine the printing current based on the power adapter. The execution module is used to determine the maximum number of printing points that can work simultaneously based on the printing current and the operating current of each printing point in the printing device. The number of segments to be printed for each group of content to be printed is determined based on the maximum number of print points that can work simultaneously and the number of pixels contained in each group of content to be printed. Based on the number of segments to be printed and the working time of each printing point in the printing device, the printing time required for the printing device to print each group of content to be printed in the content to be printed is obtained. The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed. Alternatively, the allocation current corresponding to each group of content to be printed can be determined based on the printing current and the number of pixels contained in each group of content to be printed. For each group of content to be printed in the content to be printed, if the current allocation current corresponding to the current group of content to be printed is not greater than the current threshold, the printing time required for the printing device to print the current group of content to be printed is determined according to the current allocation current, so as to obtain the printing time required for the printing device to print each group of content to be printed in the content to be printed. The printing speed of the printing device for printing the content to be printed is determined based on the printing time required for the printing device to print each group of content to be printed.

7. A printing device, characterized in that, The printing device includes: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the printing speed determination method as described in any one of claims 1-5.

8. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the printing speed determination method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Printing control method, printing control device, and printer

    CN106476455A