Control method and system for variable speed printing of thermal printer

Through the relationship between mobile phones and thermal printers, the printing rate is dynamically adjusted, which solves the problem of poor printing synchronization of thermal printers in different environments, and achieves efficient printing and synchronization, taking into account the orderliness of printing rate changes.

CN118656043BActive Publication Date: 2024-11-05ZHUHAI XPRINTER ELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411137854.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-05
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

Existing thermal printers cannot match the transmission rate and printing rate of printed files in different environments, resulting in the impact of printing synchronization and the inability to efficient printing.

Method used

Through the association between mobile phones and thermal printers, the transmission rate of printed files is collected, the printing delay rate and delay level is defined, the variable speed printing mode is triggered, and the printing rate is dynamically adjusted to match the transmission rate of printed files, and efficient printing and synchronization of printed files is achieved. sex.

Benefits of technology

It realizes efficient printing of thermal printers when receiving printed files, ensures printing synchronization, and through the regulation of the printing rate change trajectory, the orderly change of printing rate is achieved, and compatible with the transmission rate of printed files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656043B_ABST
    Figure CN118656043B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method and system for variable speed printing of a thermal printer. The method defines a printing delay rate according to the transmission rate of a printing file and the printing rate of the thermal printer; defines a delay level according to the printing delay rate and the printing parameters of the thermal printer, triggers the variable speed printing mode of the thermal printer according to the delay level, and matches the corresponding variable speed printing mode according to the delay level, so as to perform corresponding variable printing control for the printing delay rate, so as to dynamically adjust the printing rate of the thermal printer, so as to realize the efficient printing of the printing file by the thermal printer while receiving the printing file. At the same time, dynamic interaction is performed based on the transmission rate of the printing file and the printing rate of the thermal printer, so as to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and to control the printing delay rate in real time, so as to further ensure the printing synchronization of the thermal printer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of control systems for variable speed printing of thermal printers, and in particular to a control method and system for variable speed printing of thermal printers. Background Art

[0002] With the development of science and technology, thermal printers are used in people's lives and print on printing paper. At this time, the thermal printer has a corresponding printing rate during the printing process. In the prior art, the printing rate of a general thermal printer is preset and remains unchanged during the printing process of the thermal printer. However, the interaction between the mobile phone and the thermal printer in different environments will affect the transmission rate of the print file. The transmission rate is variable and cannot match a single printing rate. The thermal printer cannot achieve efficient printing of the print file while receiving the print file, which affects the printing synchronization of the thermal printer. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a control method and system for variable speed printing of a thermal printer. The method is based on associating a thermal printer with a mobile phone and collecting the transmission rate of the print file of the thermal printer; defining a printing delay rate according to the transmission rate of the print file and the print rate of the thermal printer; defining a delay level according to the print delay rate and the printing parameters of the thermal printer, triggering the variable speed printing mode of the thermal printer according to the delay level, thereby matching the corresponding variable speed printing mode according to the delay level, so as to perform corresponding variable printing control for the print delay rate, so as to dynamically adjust the print rate of the thermal printer, so as to realize the thermal printer to perform efficient printing of the print file while receiving the print file, and ensure the printing synchronization of the thermal printer.

[0004] At the same time, in the variable speed printing mode of the thermal printer, the working level of the corresponding variable speed printing mode is matched based on the delay level; the printing rate change trajectory of the thermal printer is defined according to the transmission rate of the printing file and the working level of the variable speed printing mode; the printing rate is regulated based on the printing rate change trajectory, and dynamic interaction is performed based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and the printing delay rate is managed and controlled in real time, which further ensures the printing synchronization of the thermal printer, and regulates the printing rate according to the printing rate change trajectory, realizes the orderly change of the printing rate, and is compatible with the consideration of the transmission rate of the printing file.

[0005] The embodiment of the present invention provides a control method for variable speed printing of a thermal printer, which is applied to the control scenario of variable speed printing of a thermal printer;

[0006] The control method for variable speed printing of the thermal printer comprises:

[0007] Based on the mobile phone, the thermal printer is associated and the transmission rate of the printed file of the thermal printer is collected;

[0008] Define the printing delay rate according to the transmission rate of the print file and the printing rate of the thermal printer;

[0009] Defining a delay level according to the printing delay rate and the printing parameters of the thermal printer, and triggering a variable speed printing mode of the thermal printer according to the delay level;

[0010] In a variable speed printing mode of a thermal printer, a corresponding working level of the variable speed printing mode is matched based on the delay level;

[0011] Define the print speed change track of the thermal printer according to the transmission speed of the print file and the working level of the variable speed print mode;

[0012] The printing rate is regulated based on the printing rate change trajectory, and dynamic interaction is performed based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and to control the printing delay rate in real time.

[0013] Optionally, the step of associating the mobile phone with the thermal printer and collecting the transmission rate of the print file of the thermal printer includes:

[0014] Locate the mobile phone and the thermal printer. At this time, collect the interaction signals between the mobile phone and the thermal printer, and define the interaction level according to the interaction signals;

[0015] Collect multiple environmental parameters of mobile phones and thermal printers, and define environmental levels based on the multiple environmental parameters;

[0016] Match the interaction level and the environment level and define the matching coefficient;

[0017] If the matching coefficient is lower than the preset matching coefficient, the interaction mode between the mobile phone and the thermal printer is adjusted until the matching coefficient reaches the preset matching coefficient;

[0018] Based on associating the mobile phone with the thermal printer, the print file is transferred from the mobile phone to the thermal printer;

[0019] In a thermal printer, the transmission rate of the print file of the thermal printer is collected, and the printing work of the print head of the thermal printer is triggered according to the print file.

[0020] Optionally, defining the printing delay rate according to the transmission rate of the print file and the printing rate of the thermal printer includes:

[0021] The transfer rate of the fixed-frame print file;

[0022] Real-time monitoring of the printing work of the thermal printer's print head;

[0023] defining a first rate according to an operating rate of the print head;

[0024] Collect the print content printed by the print head and define the completion degree of the print content and the deviation amount of the print content;

[0025] defining a second rate based on the degree of completion of the printed content and the amount of deviation of the printed content;

[0026] defining a printing rate of the thermal printer according to a first rate and a second rate;

[0027] Correlate the printing rate of the thermal printer and the transmission rate of the printed file;

[0028] Compare the thermal printer's printing rate with the print file transfer rate and define the print delay rate.

[0029] Optionally, defining a delay level according to the printing delay rate and printing parameters of the thermal printer, and triggering a variable speed printing mode of the thermal printer according to the delay level, includes:

[0030] Traverse thermal printers and define the model information of thermal printers;

[0031] defining printing parameters of the thermal printer based on model information of the thermal printer and the age of the thermal printer;

[0032] Correlating print delay rates with print parameters of thermal printers;

[0033] Delay levels are defined based on the printing delay rate and printing parameters of the thermal printer;

[0034] Determine the delay level, compare the delay level with the first preset delay level, and define the delay level difference amount;

[0035] The variable speed printing mode of the thermal printer is defined according to the delay level difference amount and the printing parameters of the thermal printer, and the variable speed printing mode of the thermal printer is triggered.

[0036] Optionally, in the variable speed printing mode of the thermal printer, matching the corresponding working level of the variable speed printing mode based on the delay level includes:

[0037] In the variable speed printing mode of the thermal printer, the delay level is collected;

[0038] Determine the delay type based on the delay level and the current printing rate of the thermal printer;

[0039] Define variable speed print workloads based on delay types and print file transfer rates;

[0040] Correlate variable speed printing workload and printing parameters of thermal printers;

[0041] The working level of the corresponding variable speed printing mode is matched according to the variable speed printing workload and the printing parameters of the thermal printer.

[0042] Optionally, the step of defining the print speed change trajectory of the thermal printer according to the transmission speed of the print file and the working level of the variable speed print mode includes:

[0043] Working level of fixed-frame variable-speed printing mode;

[0044] Defining the variable speed rate based on the working level of the variable speed printing mode and the printing parameters of the thermal printer;

[0045] Correlate the speed change rate and the transmission rate of the print file;

[0046] A plurality of speed-changing nodes are defined according to the speed-changing rate and the transmission rate of the print file.

[0047] Optionally, the step of defining the print rate change trajectory of the thermal printer according to the transmission rate of the print file and the working level of the variable speed print mode further includes:

[0048] Arrange multiple speed-changing nodes according to printing time, and define the printing content of two adjacent speed-changing nodes;

[0049] Define the phased change trajectory of the thermal printer according to the printing content, the transmission rate of the printing file, and the printing parameters of the thermal printer;

[0050] The printing rate change trajectory of the thermal printer is defined according to the positions of the plurality of speed change nodes and the corresponding staged change trajectories.

[0051] Optionally, the printing rate is regulated based on the printing rate change trajectory, and a dynamic interaction is performed based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain synchronization between the transmission rate of the printing file and the printing rate of the thermal printer, and to control the printing delay rate in real time, including:

[0052] Freeze the trajectory of printing rate changes;

[0053] Matching multiple target printing rates according to the printing rate variation trajectory and the printing parameters of the thermal printer;

[0054] Regulating the current printing rate of the thermal printer according to a plurality of target printing rates, and triggering the regulation of the printing rate;

[0055] In the regulation of the printing rate, the transmission rate of the printing file and the printing rate of the thermal printer are dynamically associated.

[0056] Optionally, the controlling of the printing rate based on the printing rate change trajectory and the dynamic interaction based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer and to control the printing delay rate in real time also include:

[0057] Dynamically interacting based on the transmission rate of the print file and the printing rate of the thermal printer, and building a dynamic balance relationship between the transmission rate of the print file and the printing rate of the thermal printer;

[0058] The quality of the printed content of the thermal printer is controlled according to the dynamic balance relationship, and at the same time, the corresponding balance level is defined according to the dynamic balance relationship;

[0059] Maintain the synchronization of the transmission rate of the print file and the printing rate of the thermal printer according to the balance level, and monitor the printing delay rate in real time;

[0060] The change amount of the printing delay rate is collected, and the dynamic change of the balance level is defined according to the change amount of the printing delay rate and the balance level.

[0061] In addition, an embodiment of the present invention further provides a control system for variable speed printing of a thermal printer, the control system for variable speed printing of the thermal printer comprising:

[0062] A collection module, used to associate a thermal printer with a mobile phone and collect the transmission rate of a print file of the thermal printer;

[0063] A printing delay rate module, used for defining a printing delay rate according to a transmission rate of a print file and a printing rate of a thermal printer;

[0064] A delay level module, used for defining a delay level according to a printing delay rate and printing parameters of the thermal printer, and triggering a variable speed printing mode of the thermal printer according to the delay level;

[0065] A print rate change trajectory module, used for matching a corresponding working level of the variable speed printing mode based on the delay level in the variable speed printing mode of the thermal printer;

[0066] A second abnormal parameter module is used to define a print rate change trajectory of the thermal printer according to a transmission rate of the print file and a working level of the variable speed print mode;

[0067] The synchronization module is used to control the printing rate based on the printing rate change trajectory, and dynamically interact based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and to control the printing delay rate in real time.

[0068] In an embodiment of the present invention, through the method in the embodiment of the present invention, a thermal printer is associated with a mobile phone, and the transmission rate of the print file of the thermal printer is collected; the print delay rate is defined according to the transmission rate of the print file and the print rate of the thermal printer; the delay level is defined according to the print delay rate and the printing parameters of the thermal printer, and the variable speed printing mode of the thermal printer is triggered according to the delay level, so as to match the corresponding variable speed printing mode according to the delay level, so as to perform corresponding variable printing control for the print delay rate, so as to dynamically adjust the print rate of the thermal printer, so as to realize the thermal printer to perform efficient printing of the print file while receiving the print file, and ensure the printing synchronization of the thermal printer.

[0069] At the same time, in the variable speed printing mode of the thermal printer, the working level of the corresponding variable speed printing mode is matched based on the delay level; the printing rate change trajectory of the thermal printer is defined according to the transmission rate of the printing file and the working level of the variable speed printing mode; the printing rate is regulated based on the printing rate change trajectory, and dynamic interaction is performed based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and the printing delay rate is managed and controlled in real time, which further ensures the printing synchronization of the thermal printer, and regulates the printing rate according to the printing rate change trajectory, realizes the orderly change of the printing rate, and is compatible with the consideration of the transmission rate of the printing file. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0071] Figure 1 is a flow chart of a method for controlling variable speed printing of a thermal printer in an embodiment of the present invention;

[0072] Figure 2 is a flow chart of S11 in the control method for variable speed printing of a thermal printer in an embodiment of the present invention;

[0073] Figure 3is a flow chart of S12 in the variable speed printing control method of the thermal printer in an embodiment of the present invention;

[0074] Figure 4 is a flow chart of S13 in the control method for variable speed printing of a thermal printer in an embodiment of the present invention;

[0075] Figure 5 is a flow chart of S14 in the control method for variable speed printing of a thermal printer in an embodiment of the present invention;

[0076] Figure 6 is a flow chart of S15 in the control method for variable speed printing of a thermal printer in an embodiment of the present invention;

[0077] Figure 7 is a flow chart of S16 in the control method for variable speed printing of a thermal printer in an embodiment of the present invention;

[0078] Figure 8 Schematic diagram of the structure of a control system for variable speed printing of a thermal printer in an embodiment of the present invention;

[0079] Fig. 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0081] Method Embodiment

[0082] See also Figures 1 to 9 , a control method for variable speed printing of a thermal printer, applied to the control scenario of variable speed printing of a thermal printer; the control method for variable speed printing of a thermal printer comprises:

[0083] Step S11: associating the thermal printer with the mobile phone and collecting the transmission rate of the print file of the thermal printer;

[0084] Step S12: defining a printing delay rate according to a transmission rate of the print file and a printing rate of the thermal printer;

[0085] Step S13: defining a delay level according to the printing delay rate and the printing parameters of the thermal printer, and triggering a variable speed printing mode of the thermal printer according to the delay level;

[0086] Step S14: in the variable speed printing mode of the thermal printer, matching the corresponding working level of the variable speed printing mode based on the delay level;

[0087] Step S15: defining a print speed change trajectory of the thermal printer according to the transmission speed of the print file and the working level of the variable speed print mode;

[0088] Step S16: Regulate the printing rate based on the printing rate change trajectory, and dynamically interact based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain synchronization between the transmission rate of the printing file and the printing rate of the thermal printer, and control the printing delay rate in real time.

[0089] In an embodiment of the present invention, through the method in the embodiment of the present invention, a thermal printer is associated with a mobile phone, and the transmission rate of the print file of the thermal printer is collected; the print delay rate is defined according to the transmission rate of the print file and the print rate of the thermal printer; the delay level is defined according to the print delay rate and the printing parameters of the thermal printer, and the variable speed printing mode of the thermal printer is triggered according to the delay level, so as to match the corresponding variable speed printing mode according to the delay level, so as to perform corresponding variable printing control for the print delay rate, so as to dynamically adjust the print rate of the thermal printer, so as to realize the thermal printer to perform efficient printing of the print file while receiving the print file, and ensure the printing synchronization of the thermal printer.

[0090] At the same time, in the variable speed printing mode of the thermal printer, the working level of the corresponding variable speed printing mode is matched based on the delay level; the printing rate change trajectory of the thermal printer is defined according to the transmission rate of the printing file and the working level of the variable speed printing mode; the printing rate is regulated based on the printing rate change trajectory, and dynamic interaction is performed based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and the printing delay rate is managed and controlled in real time, which further ensures the printing synchronization of the thermal printer, and regulates the printing rate according to the printing rate change trajectory, realizes the orderly change of the printing rate, and is compatible with the consideration of the transmission rate of the printing file.

[0091] refer to Figure 2 , in step S11, the mobile phone is associated with the thermal printer, and the transmission rate of the print file of the thermal printer is collected;

[0092] In the specific implementation process of the present invention, the specific steps may be:

[0093] S111: locating the mobile phone and the thermal printer. At this time, collecting interaction signals between the mobile phone and the thermal printer, and defining an interaction level according to the interaction signals;

[0094] S112: collecting multiple environmental parameters of the mobile phone and the thermal printer, and defining an environmental level according to the multiple environmental parameters;

[0095] S113: Matching the interaction level and the environment level, and defining a matching coefficient;

[0096] S114: If the matching coefficient is lower than the preset matching coefficient, adjusting the interaction mode between the mobile phone and the thermal printer until the matching coefficient reaches the preset matching coefficient;

[0097] S115: associating the mobile phone with the thermal printer and transmitting the print file from the mobile phone to the thermal printer;

[0098] S116: In the thermal printer, the transmission rate of the printing file of the thermal printer is collected, and the printing work of the print head of the thermal printer is triggered according to the printing file.

[0099] In an embodiment of the present application, a mobile phone and a thermal printer are located. At this time, interaction signals between the mobile phone and the thermal printer are collected, and interaction levels are defined based on the interaction signals, so as to define the degree of interaction between the mobile phone and the thermal printer based on the interaction level, thereby managing and controlling the transmission of print files between the mobile phone and the thermal printer.

[0100] At this time, multiple environmental parameters of the mobile phone and thermal printer are collected, and environmental levels are defined based on the multiple environmental parameters, so as to define the environment in which the mobile phone and thermal printer are located according to the environmental level, so as to define the impact of the environment in which the mobile phone and thermal printer are located on the transmission between the mobile phone and the thermal printer.

[0101] Furthermore, the interaction level and the environment level are matched, and a matching coefficient is defined; if the matching coefficient is lower than a preset matching coefficient, the interaction mode of the mobile phone and the thermal printer is adjusted until the matching coefficient reaches the preset matching coefficient, thereby ensuring that the interaction between the mobile phone and the thermal printer is in a theoretical state, so as to facilitate the control of the matching coefficient according to the interaction mode of the mobile phone and the thermal printer, thereby ensuring the interaction between the mobile phone and the thermal printer and the transmission of printed files.

[0102] At the same time, the mobile phone is associated with the thermal printer, and the print file is transmitted from the mobile phone to the thermal printer; in the thermal printer, the transmission rate of the print file of the thermal printer is collected, and the printing work of the print head of the thermal printer is triggered according to the print file, thereby ensuring the working effect of the print head of the thermal printer on the printing paper.

[0103] refer to Figure 3 , in step S12, a printing delay rate is defined according to a transmission rate of the print file and a printing rate of the thermal printer;

[0104] In the specific implementation process of the present invention, the specific steps may be:

[0105] S121: freeze the transmission rate of the print file;

[0106] S122: real-time monitoring of the printing work of the print head of the thermal printer;

[0107] S123: defining a first rate according to a working rate of the print head;

[0108] S124: collecting the print content printed by the print head, and defining the completion degree of the print content and the deviation amount of the print content;

[0109] S125: defining a second rate based on the degree of completion of the printed content and the deviation of the printed content;

[0110] S126: defining a printing rate of the thermal printer according to the first rate and the second rate;

[0111] S127: Associating the printing rate of the thermal printer and the transmission rate of the printed file;

[0112] S128: Compare the printing rate of the thermal printer and the transmission rate of the print file, and define a printing delay rate.

[0113] In an embodiment of the present application, the transmission rate of the print file is fixed, and the transmission rate of the print file is controlled. At the same time, the printing work of the print head of the thermal printer is monitored in real time; a first rate is defined according to the working rate of the print head, so as to define the working condition of the print head based on the first rate, thereby controlling the working condition of the print head.

[0114] In addition, the print content printed by the print head is collected, and the completion degree of the print content and the deviation of the print content are defined, so as to introduce the completion degree of the print content and the deviation of the print content, thereby associating the completion degree of the print content and the deviation of the print content, and then defining a second rate based on the completion degree of the print content and the deviation of the print content, so as to define the working effect of the print head based on the second rate, thereby controlling the working effect of the print head.

[0115] Further, the first rate and the second rate are fixed so as to associate the first rate with the second rate, thereby defining the printing rate of the thermal printer according to the first rate and the second rate, so as to clarify the printing rate of the thermal printer.

[0116] Therefore, the printing rate of the thermal printer and the transmission rate of the print file are associated; the printing rate of the thermal printer and the transmission rate of the print file are compared, and the printing delay rate is defined, thereby introducing the printing delay rate, so as to present the delay degree of the thermal printer under printing through the printing delay rate, so as to further process the printing delay rate.

[0117] refer to Figure 4 , in step S13, a delay level is defined according to the printing delay rate and the printing parameters of the thermal printer, and a variable speed printing mode of the thermal printer is triggered according to the delay level;

[0118] In the specific implementation process of the present invention, the specific steps may be:

[0119] S131: traverse thermal printers and define model information of thermal printers;

[0120] S132: defining printing parameters of the thermal printer based on the model information of the thermal printer and the service life of the thermal printer;

[0121] S133: Correlating the printing delay rate with the printing parameters of the thermal printer;

[0122] S134: defining a delay level according to a printing delay rate and printing parameters of the thermal printer;

[0123] S135: fixing the delay level, comparing the delay level with the first preset delay level, and defining a delay level difference amount;

[0124] S136: defining a variable speed printing mode of the thermal printer according to the delay level difference and the printing parameters of the thermal printer, and triggering the variable speed printing mode of the thermal printer.

[0125] In an embodiment of the present application, thermal printers are traversed and model information of thermal printers is defined so as to introduce the model information of the thermal printer, thereby combining the model information of the thermal printer and the service life of the thermal printer, so as to define the printing parameters of the thermal printer based on the model information of the thermal printer and the service life of the thermal printer, thereby clarifying the printing parameters of the thermal printer.

[0126] At this time, the printing delay rate and the printing parameters of the thermal printer are associated to facilitate the interaction of the printing delay rate and the printing parameters of the thermal printer, so as to define the delay level according to the printing delay rate and the printing parameters of the thermal printer, and then clarify the delay level, so as to present the extension degree through the delay level.

[0127] Therefore, the delay level is fixed, and the delay level is compared with the first preset delay level, and the delay level difference is defined; the variable speed printing mode of the thermal printer is defined according to the delay level difference and the printing parameters of the thermal printer, and the variable speed printing mode of the thermal printer is triggered, so as to introduce the variable speed printing mode of the thermal printer, thereby triggering the variable speed printing of the thermal printer based on the variable speed printing mode of the thermal printer, and realizing the dynamic change of the printing speed of the thermal printer.

[0128] Therefore, the thermal printer is associated with the mobile phone, and the transmission rate of the print file of the thermal printer is collected; the print delay rate is defined according to the transmission rate of the print file and the print rate of the thermal printer; the delay level is defined according to the print delay rate and the printing parameters of the thermal printer, and the variable speed printing mode of the thermal printer is triggered according to the delay level, so as to match the corresponding variable speed printing mode according to the delay level, so as to perform corresponding variable printing control for the print delay rate, so as to dynamically adjust the print rate of the thermal printer, so as to realize the thermal printer to efficiently print the print file while receiving the print file, thereby ensuring the printing synchronization of the thermal printer.

[0129] refer to Figure 5 , S14: in the variable speed printing mode of the thermal printer, matching the corresponding working level of the variable speed printing mode based on the delay level;

[0130] In the specific implementation process of the present invention, the specific steps may be:

[0131] S141: In the variable speed printing mode of the thermal printer, collecting the delay level;

[0132] S142: defining a delay type according to the delay level and the current printing rate of the thermal printer;

[0133] S143: defining a variable speed printing workload based on the delay type and the transmission rate of the print file;

[0134] S144: Associating the variable speed printing workload and the printing parameters of the thermal printer;

[0135] S145: Matching the corresponding working level of the variable speed printing mode according to the variable speed printing workload and the printing parameters of the thermal printer.

[0136] In an embodiment of the present application, in the variable speed printing mode of the thermal printer, the delay level is collected; the delay type is defined according to the delay level and the current printing rate of the thermal printer, thereby clarifying the delay type, so as to control the delay factors corresponding to the delay type, and thus carry out targeted optimization for the delay factors.

[0137] At this time, the variable speed printing workload is defined based on the delay type and the transmission rate of the print file; the variable speed printing workload and the printing parameters of the thermal printer are associated; the corresponding working level of the variable speed printing mode is matched according to the variable speed printing workload and the printing parameters of the thermal printer, so as to control multiple dimensions based on the variable speed printing workload and the printing parameters of the thermal printer, so as to facilitate the overall consideration of the variable speed printing workload and the printing parameters of the thermal printer, thereby ensuring the working level of the variable speed printing mode and further ensuring the accuracy of the working level of the variable speed printing mode.

[0138] refer to Figure 6 , S15: defining a print rate change trajectory of the thermal printer according to the transmission rate of the print file and the working level of the variable speed print mode;

[0139] In the specific implementation process of the present invention, the specific steps may be:

[0140] S151: Working level of fixed-frame variable-speed printing mode;

[0141] S152: defining a variable speed rate based on the working level of the variable speed printing mode and the printing parameters of the thermal printer;

[0142] S153: Associating the speed change rate with the transmission rate of the print file;

[0143] S154: defining a plurality of speed change nodes according to the speed change rate and the transmission rate of the print file;

[0144] S155: Arrange multiple speed-changing nodes according to printing time, and define the printing content of two adjacent speed-changing nodes;

[0145] S156: defining a phased change trajectory of the thermal printer according to the printing content, the transmission rate of the printing file, and the printing parameters of the thermal printer;

[0146] S157: defining a print rate change trajectory of the thermal printer according to the positions of the plurality of speed change nodes and the corresponding staged change trajectories.

[0147] In an embodiment of the present application, the working level of the variable speed printing mode is fixed to facilitate the introduction of the working level of the variable speed printing mode, thereby defining the variable speed rate based on the working level of the variable speed printing mode and the printing parameters of the thermal printer, and controlling the variable speed rate.

[0148] At this time, the speed change rate and the transmission rate of the print file are associated; multiple speed change nodes are defined according to the speed change rate and the transmission rate of the print file, so as to introduce multiple speed change nodes, and control the multiple speed change nodes, thereby defining the main node positions of the print rate change trajectory.

[0149] Furthermore, multiple speed change nodes are arranged according to printing time, and the printing content of two adjacent speed change nodes is defined; the phased change trajectory of the thermal printer is defined according to the printing content, the transmission rate of the printing file, and the printing parameters of the thermal printer, so as to facilitate in-depth control of the printing content of the two adjacent speed change nodes, thereby performing overall control of the printing content, the transmission rate of the printing file, and the printing parameters of the thermal printer, so as to define the phased change trajectory of the thermal printer based on the printing content, the transmission rate of the printing file, and the printing parameters of the thermal printer, thereby ensuring the accuracy of the phased change trajectory of the thermal printer.

[0150] Therefore, the printing rate change trajectory of the thermal printer is defined according to the positions of multiple speed change nodes and the corresponding stage-by-stage change trajectories. At this time, the positions of multiple speed change nodes and the corresponding stage-by-stage change trajectories are associated to facilitate matching the corresponding stage-by-stage change trajectories according to the speed change nodes, thereby constructing the printing rate change trajectory of the thermal printer and ensuring the accuracy of the printing rate change trajectory of the thermal printer.

[0151] refer to Figure 7 , S16: regulating the printing rate based on the printing rate change trajectory, and dynamically interacting based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and controlling the printing delay rate in real time;

[0152] In the specific implementation process of the present invention, the specific steps may be:

[0153] S161: freeze the print rate change trajectory;

[0154] S162: Matching multiple target printing rates according to the printing rate change trajectory and the printing parameters of the thermal printer;

[0155] S163: regulating the current printing rate of the thermal printer according to the multiple target printing rates, and triggering the regulation of the printing rate;

[0156] S164: In the control of the printing rate, dynamically associating the transmission rate of the printing file and the printing rate of the thermal printer;

[0157] S165: Dynamically interacting based on the transmission rate of the print file and the printing rate of the thermal printer, and establishing a dynamic balance relationship between the transmission rate of the print file and the printing rate of the thermal printer;

[0158] S166: controlling the quality of the printed content of the thermal printer according to the dynamic balance relationship, and defining a corresponding balance level according to the dynamic balance relationship;

[0159] S167: maintaining synchronization between a transmission rate of the print file and a printing rate of the thermal printer according to the balance level, and monitoring a printing delay rate in real time;

[0160] S168: Collect the change amount of the printing delay rate, and define the dynamic change of the balance level according to the change amount of the printing delay rate and the balance level.

[0161] In the specific implementation process of the present invention, in the variable speed printing mode of the thermal printer, the working level of the corresponding variable speed printing mode is matched based on the delay level; the printing rate change trajectory of the thermal printer is defined according to the transmission rate of the print file and the working level of the variable speed printing mode; the printing rate is regulated based on the printing rate change trajectory, and dynamic interaction is performed based on the transmission rate of the print file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the print file and the printing rate of the thermal printer, and the printing delay rate is managed in real time, which further ensures the printing synchronization of the thermal printer, and regulates the printing rate according to the printing rate change trajectory, realizes the orderly change of the printing rate, and is compatible with the consideration of the transmission rate of the print file.

[0162] At this time, the print rate change trajectory is frozen, and multiple target print rates are matched according to the print rate change trajectory and the printing parameters of the thermal printer, so as to freeze multiple target print rates, thereby comparing the multiple target print rates and the corresponding current print rates.

[0163] Furthermore, the current printing rate of the thermal printer is regulated according to multiple target printing rates, and the regulation of the printing rate is triggered to facilitate dynamic regulation of the printing rate. Therefore, in the regulation of the printing rate, the transmission rate of the print file and the printing rate of the thermal printer are dynamically associated.

[0164] Therefore, a dynamic interaction is performed based on the transmission rate of the print file and the printing rate of the thermal printer, and a dynamic balance relationship between the transmission rate of the print file and the printing rate of the thermal printer is constructed, so as to introduce a dynamic balance relationship, thereby controlling the quality of the printed content of the thermal printer according to the dynamic balance relationship, and at the same time, defining a corresponding balance level according to the dynamic balance relationship;

[0165] In addition, the transmission rate of the print file and the printing rate of the thermal printer are kept synchronized according to the balance level, and the printing delay rate is monitored in real time; the change in the printing delay rate is collected, and the dynamic change of the balance level is defined according to the change in the printing delay rate and the balance level, so as to make corresponding changes to the balance level to meet the changes in the printing delay rate during the printing process.

[0166] In an embodiment of the present invention, through the method in the embodiment of the present invention, a thermal printer is associated with a mobile phone, and the transmission rate of the print file of the thermal printer is collected; the print delay rate is defined according to the transmission rate of the print file and the print rate of the thermal printer; the delay level is defined according to the print delay rate and the printing parameters of the thermal printer, and the variable speed printing mode of the thermal printer is triggered according to the delay level, so as to match the corresponding variable speed printing mode according to the delay level, so as to perform corresponding variable printing control for the print delay rate, so as to dynamically adjust the print rate of the thermal printer, so as to realize the thermal printer to perform efficient printing of the print file while receiving the print file, and ensure the printing synchronization of the thermal printer.

[0167] At the same time, in the variable speed printing mode of the thermal printer, the working level of the corresponding variable speed printing mode is matched based on the delay level; the printing rate change trajectory of the thermal printer is defined according to the transmission rate of the printing file and the working level of the variable speed printing mode; the printing rate is regulated based on the printing rate change trajectory, and dynamic interaction is performed based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and the printing delay rate is managed and controlled in real time, which further ensures the printing synchronization of the thermal printer, and regulates the printing rate according to the printing rate change trajectory, realizes the orderly change of the printing rate, and is compatible with the consideration of the transmission rate of the printing file.

[0168] System Example

[0169] See also Figure 8 , Figure 8 It is a schematic diagram of the structure of a control system for variable speed printing of a thermal printer in an embodiment of the present invention.

[0170] like Figure 8 As shown, a control system for variable speed printing of a thermal printer, the control system for variable speed printing of the thermal printer comprises:

[0171] The acquisition module 21 is used to associate the thermal printer with the mobile phone and acquire the transmission rate of the print file of the thermal printer;

[0172] A printing delay rate module 22, for defining a printing delay rate according to a transmission rate of a print file and a printing rate of a thermal printer;

[0173] A delay level module 23, used to define a delay level according to a printing delay rate and printing parameters of the thermal printer, and trigger a variable speed printing mode of the thermal printer according to the delay level;

[0174] The printing rate change track module 24 is used to match the corresponding working level of the variable speed printing mode based on the delay level in the variable speed printing mode of the thermal printer;

[0175] A second abnormal parameter module 25, for defining a print rate change trajectory of the thermal printer according to a transmission rate of the print file and a working level of the variable speed print mode;

[0176] The synchronization module 26 is used to control the printing rate based on the printing rate change trajectory, and dynamically interact based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and to control the printing delay rate in real time.

[0177] Device Embodiment

[0178] See also Fig. 9 , refer to the following Fig. 9 The electronic device 40 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0179] like Fig. 9 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).

[0180] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.

[0181] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0182] The storage unit 42 may also include a program / utility 424 having a set of (at least one) synchronization modules 425, such synchronization modules 425 including but not limited to: an operating system, one or more application programs, other synchronization modules, and program data, each of which or some combination may include the implementation of a network environment.

[0183] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0184] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Fig. 9 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.

[0185] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure 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 a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0186] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.

[0187] In addition, the above is a detailed introduction to the control method and system for variable speed printing of the thermal printer provided in the embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A control method for variable speed printing of a thermal printer, characterized in that: Applied to the control scenario of variable speed printing of thermal printers; The control method for variable speed printing of the thermal printer comprises: Based on the mobile phone, the thermal printer is associated and the transmission rate of the printed file of the thermal printer is collected; Define the printing delay rate according to the transmission rate of the print file and the printing rate of the thermal printer; Defining a delay level according to the printing delay rate and the printing parameters of the thermal printer, and triggering a variable speed printing mode of the thermal printer according to the delay level; In a variable speed printing mode of a thermal printer, a corresponding working level of the variable speed printing mode is matched based on the delay level; Define the print speed change track of the thermal printer according to the transmission speed of the print file and the working level of the variable speed print mode; The printing speed is regulated based on the printing speed change trajectory, and dynamic interaction is performed based on the transmission speed of the printing file and the printing speed of the thermal printer to maintain the synchronization of the transmission speed of the printing file and the printing speed of the thermal printer, and to control the printing delay rate in real time; The method of associating a thermal printer based on a mobile phone and collecting the transmission rate of a print file of the thermal printer includes: locating the mobile phone and the thermal printer, at this time, collecting the interaction signal between the mobile phone and the thermal printer, and defining the interaction level according to the interaction signal; collecting multiple environmental parameters of the mobile phone and the thermal printer, and defining the environmental level according to the multiple environmental parameters; matching the interaction level and the environmental level, and defining a matching coefficient; if the matching coefficient is lower than a preset matching coefficient, adjusting the interaction mode of the mobile phone and the thermal printer until the matching coefficient reaches the preset matching coefficient; associating the thermal printer based on the mobile phone, and transmitting the print file from the mobile phone to the thermal printer; in the thermal printer, collecting the transmission rate of the print file of the thermal printer, and triggering the printing work of the print head of the thermal printer according to the print file; The method of defining a printing delay rate according to a transmission rate of a print file and a printing rate of a thermal printer includes: freezing the transmission rate of a print file; monitoring the printing work of a print head of a thermal printer in real time; defining a first rate according to the working rate of the print head; collecting print content printed by the print head, and defining a degree of completion of the print content and a deviation of the print content; defining a second rate based on the degree of completion of the print content and a deviation of the print content; defining the printing rate of the thermal printer according to the first rate and the second rate; associating the printing rate of the thermal printer and the transmission rate of the print file; comparing the printing rate of the thermal printer and the transmission rate of the print file, and defining a printing delay rate.

2. The control method for variable speed printing of a thermal printer according to claim 1, characterized in that: Defining a delay level according to the printing delay rate and the printing parameters of the thermal printer, and triggering the variable speed printing mode of the thermal printer according to the delay level, includes: Traverse thermal printers and define the model information of thermal printers; defining printing parameters of the thermal printer based on model information of the thermal printer and the age of the thermal printer; Correlating print delay rates with print parameters of thermal printers; Delay levels are defined based on the printing delay rate and printing parameters of the thermal printer; Determine the delay level, compare the delay level with the first preset delay level, and define the delay level difference amount; The variable speed printing mode of the thermal printer is defined according to the delay level difference amount and the printing parameters of the thermal printer, and the variable speed printing mode of the thermal printer is triggered.

3. The control method for variable speed printing of a thermal printer according to claim 1, characterized in that: In the variable speed printing mode of the thermal printer, matching the corresponding working level of the variable speed printing mode based on the delay level includes: In the variable speed printing mode of the thermal printer, the delay level is collected; Determine the delay type based on the delay level and the current printing rate of the thermal printer; Define variable speed print workloads based on delay types and print file transfer rates; Correlate variable speed printing workload and printing parameters of thermal printers; The working level of the corresponding variable speed printing mode is matched according to the variable speed printing workload and the printing parameters of the thermal printer.

4. The control method for variable speed printing of a thermal printer according to claim 3, characterized in that: Defining the print speed change trajectory of the thermal printer according to the transmission rate of the print file and the working level of the variable speed print mode includes: Working level of fixed-frame variable-speed printing mode; Defining the variable speed rate based on the working level of the variable speed printing mode and the printing parameters of the thermal printer; Correlate the speed change rate and the transmission rate of the print file; A plurality of speed-changing nodes are defined according to the speed-changing rate and the transmission rate of the print file.

5. The control method for variable speed printing of a thermal printer according to claim 4, characterized in that: The method of defining the change track of the printing speed of the thermal printer according to the transmission speed of the print file and the working level of the variable speed printing mode also includes: Arrange multiple speed-changing nodes according to printing time, and define the printing content of two adjacent speed-changing nodes; Define the phased change trajectory of the thermal printer according to the printing content, the transmission rate of the printing file, and the printing parameters of the thermal printer; The printing rate change trajectory of the thermal printer is defined according to the positions of the plurality of speed change nodes and the corresponding staged change trajectories.

6. The control method for variable speed printing of a thermal printer according to claim 5, characterized in that: The method of regulating the printing rate based on the printing rate change trajectory and dynamically interacting based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer and to control the printing delay rate in real time includes: Freeze the trajectory of printing rate changes; Matching multiple target printing rates according to the printing rate variation trajectory and the printing parameters of the thermal printer; Regulating the current printing rate of the thermal printer according to a plurality of target printing rates, and triggering the regulation of the printing rate; In the regulation of the printing rate, the transmission rate of the printing file and the printing rate of the thermal printer are dynamically associated.

7. The control method for variable speed printing of a thermal printer according to claim 6, characterized in that: The method of regulating the printing rate based on the printing rate change trajectory and dynamically interacting based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain synchronization between the transmission rate of the printing file and the printing rate of the thermal printer and to control the printing delay rate in real time also includes: Dynamically interacting based on the transmission rate of the print file and the printing rate of the thermal printer, and building a dynamic balance relationship between the transmission rate of the print file and the printing rate of the thermal printer; The quality of the printed content of the thermal printer is controlled according to the dynamic balance relationship, and at the same time, the corresponding balance level is defined according to the dynamic balance relationship; Maintain the synchronization of the transmission rate of the print file and the printing rate of the thermal printer according to the balance level, and monitor the printing delay rate in real time; The change amount of the printing delay rate is collected, and the dynamic change of the balance level is defined according to the change amount of the printing delay rate and the balance level.

8. A control system for variable speed printing of a thermal printer, characterized in that: The variable speed printing control system of the thermal printer is applied to the variable speed printing control method of the thermal printer as claimed in any one of claims 1 to 7, and the variable speed printing control system of the thermal printer comprises: A collection module, used to associate a thermal printer based on a mobile phone and collect the transmission rate of a print file of the thermal printer; A printing delay rate module, used for defining a printing delay rate according to a transmission rate of a print file and a printing rate of a thermal printer; A delay level module, used for defining a delay level according to a printing delay rate and printing parameters of the thermal printer, and triggering a variable speed printing mode of the thermal printer according to the delay level; A print rate change trajectory module, used for matching a corresponding working level of the variable speed printing mode based on the delay level in the variable speed printing mode of the thermal printer; A second abnormal parameter module is used to define a print rate change trajectory of the thermal printer according to a transmission rate of the print file and a working level of the variable speed print mode; A synchronization module, which is used to control the printing rate based on the printing rate change trajectory, and dynamically interact based on the transmission rate of the printing file and the printing rate of the thermal printer to maintain the synchronization of the transmission rate of the printing file and the printing rate of the thermal printer, and to control the printing delay rate in real time; The method of associating a thermal printer based on a mobile phone and collecting the transmission rate of a print file of the thermal printer includes: locating the mobile phone and the thermal printer, at this time, collecting the interaction signal between the mobile phone and the thermal printer, and defining the interaction level according to the interaction signal; collecting multiple environmental parameters of the mobile phone and the thermal printer, and defining the environmental level according to the multiple environmental parameters; matching the interaction level and the environmental level, and defining a matching coefficient; if the matching coefficient is lower than a preset matching coefficient, adjusting the interaction mode of the mobile phone and the thermal printer until the matching coefficient reaches the preset matching coefficient; associating the thermal printer based on the mobile phone, and transmitting the print file from the mobile phone to the thermal printer; in the thermal printer, collecting the transmission rate of the print file of the thermal printer, and triggering the printing work of the print head of the thermal printer according to the print file; The method of defining a printing delay rate according to a transmission rate of a print file and a printing rate of a thermal printer includes: freezing the transmission rate of a print file; monitoring the printing work of a print head of a thermal printer in real time; defining a first rate according to the working rate of the print head; collecting print content printed by the print head, and defining a degree of completion of the print content and a deviation of the print content; defining a second rate based on the degree of completion of the print content and a deviation of the print content; defining the printing rate of the thermal printer according to the first rate and the second rate; associating the printing rate of the thermal printer and the transmission rate of the print file; comparing the printing rate of the thermal printer and the transmission rate of the print file, and defining a printing delay rate.