Storage method and system for printing data of thermal printer

By detecting the printing space in the thermal printer, building a multi-dimensional data set and defining an appropriate compressor, the problem of inaccurate data compression in the prior art is solved, and multi-dimensional precise storage of thermal printer data is realized.

CN119576244AActive Publication Date: 2025-03-07ZHUHAI XPRINTER ELECTRONICS TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411855542.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-07
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

When existing thermal printers store multiple print data, they cannot effectively process data in different dimensions, resulting in inaccurate compression and inaccurate storage.

Method used

By detecting the printing space of the thermal printer, collecting multiple print data and building data sets of different dimensions, defining appropriate compressors based on data type, load capacity and important levels, realizing multi-dimensional data compression and storage.

Benefits of technology

It realizes multi-dimensional storage of thermal printer print data, ensures accurate compression and storage of data, and improves the accuracy of data management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576244A_ABST
    Figure CN119576244A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for storing printing data of a thermal printer, which are used for defining a corresponding compressor according to a data type, the load capacity of a data set and a corresponding importance level, so that the accuracy of the compressor is ensured. Constructing a corresponding compression combination based on the compression progress of each data set; the corresponding storage space is matched based on the multiple compression combinations, the printing space and the printing mode of the thermal printer; constructing an autonomous storage system based on the plurality of storage spaces, each data set and the corresponding adaptation coefficient; according to an autonomous storage system, each data set and to-be-processed printing data, autonomous distribution of the printing data is triggered, dynamic interaction is performed on each storage space, and accurate control of each storage space, autonomous distribution of the printing data and dynamic interaction of each storage space are introduced. The multi-dimensional storage of the printing data of the thermal printer is realized, and the accurate storage of the printing data of the thermal printer is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of thermal printers, and in particular to a method and system for storing print data of a thermal printer. Background Art

[0002] With the development of science and technology, thermal printers are used in people's lives, and dynamic printing is performed on printing paper. At this time, printing data is collected, controlled according to the printing data, and corresponding printing information is defined according to the tracing of the printing data. In the prior art, multiple printing data are stored in the same space of the thermal printer and managed according to time nodes. However, multiple printing data of different dimensions also exist in the same space, which affects the compression of multiple printing data, and the accuracy of the compressor cannot be guaranteed, and thus the accurate storage of the printing data of the thermal printer cannot be achieved. 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 storage method and system for the print data of a thermal printer, which detects the thermal printer and collects the print space of the thermal printer; collects multiple print data based on the print space, and constructs data sets of different dimensions according to the multiple print data; defines corresponding data types according to the identification of multiple data sets; defines corresponding compressors according to the data type, the load of the data set and the corresponding importance level, which is compatible with the overall consideration of the data type, the load of the data set and the corresponding importance level, realizes multi-dimensional control of the data type, the load of the data set and the corresponding importance level, and ensures the accuracy of the compressor.

[0004] Furthermore, the compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the corresponding compression combination is constructed based on the compression progress of each data set; the corresponding storage space is matched based on multiple compression combinations, printing space and the printing mode of the thermal printer; an autonomous storage system is constructed based on multiple storage spaces, each data set and the corresponding adaptation coefficient; autonomous allocation of printing data is triggered according to the autonomous storage system, each data set and the printing data to be processed, and dynamic interaction is performed on each storage space, thereby introducing precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizing multi-dimensional storage of printing data of the thermal printer and ensuring precise storage of printing data of the thermal printer.

[0005] An embodiment of the present invention provides a method for storing print data of a thermal printer, which is applied to a scenario of storing print data of a thermal printer; The method for storing print data of the thermal printer comprises: Detect thermal printers and collect the printing space of thermal printers; Collect multiple printing data based on the printing space, and construct data sets of different dimensions according to the multiple printing data; Defining corresponding data types according to the identification of multiple data sets; Define the corresponding compressor according to the data type, the load of the data set and the corresponding importance level; Defining compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing a corresponding compression combination based on the compression progress of each data set; matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer; An autonomous storage system is constructed based on multiple storage spaces, various data sets and corresponding adaptation coefficients; autonomous allocation of print data is triggered according to the autonomous storage system, various data sets and print data to be processed, and dynamic interaction is performed on various storage spaces.

[0006] Optionally, the detecting of the thermal printer and collecting the printing space of the thermal printer includes: Collect the location of the thermal printer; Triggering the positioning detection of the thermal printer according to the location of the thermal printer; Collecting the control space of the thermal printer based on the positioning detection of the thermal printer; Match the corresponding acquisition mode according to the control space of the thermal printer and the model of the thermal printer; The control space of the thermal printer and the corresponding acquisition mode are associated, and the print space of the thermal printer is defined according to the control space of the thermal printer and the corresponding acquisition mode to acquire the print space of the thermal printer.

[0007] Optionally, the collecting of multiple print data based on the print space and constructing data sets of different dimensions according to the multiple print data include: Freeze print space; Monitor the printing space in real time; Collect multiple printing data according to the printing space and the corresponding time nodes; Defining corresponding data dimensions according to the dynamic interaction of multiple print data; Trigger corresponding data collection methods based on multiple print data and data dimensions; According to the data collection method, multiple print data are used to construct data collections of different dimensions.

[0008] Optionally, defining corresponding data types according to the identification of multiple data sets includes: Freeze multiple data sets; A space for associating multiple data sets, models of thermal printers, and print spaces; Matching corresponding recognition models according to multiple data sets, models of thermal printers, and spatial structures of printing spaces; Correlate multiple data sets and identify patterns; Based on the multiple data sets, the recognition model and the corresponding synchronization mode, the synchronous recognition of the multiple data sets is triggered, and the corresponding data types are defined.

[0009] Optionally, defining a corresponding compressor according to a data type, a load amount of a data set, and a corresponding importance level includes: Freeze each data type; Defining the load of a data set based on dynamic detection of the data set; Defining corresponding importance levels according to the data set and the data classification mode of the print space; Associate data types, data set loads, and corresponding importance levels; A first compression parameter is defined according to the data type and the load of the data set, and a second compression parameter is defined according to the data type and the importance level; A corresponding compressor is defined according to the first compression parameter, the second compression parameter and the thermal printer.

[0010] Optionally, the step of defining the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing the corresponding compression combination based on the compression progress of each data set; and matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer includes: Freeze multiple compressors and monitor multiple compressors in real time; Associating data sets, corresponding compressors, and real-time loads of thermal printers; The compression schedule of each data set is defined based on the data set, the corresponding compressor, and the real-time load of the thermal printer.

[0011] Optionally, the method further comprises: defining the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing a corresponding compression combination based on the compression progress of each data set; and matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer, further comprising: Construct corresponding compression combinations based on the compression progress of each data set; Correlation builds corresponding compression combinations based on the compression progress of each data set; The corresponding storage space is matched based on multiple compression combinations, print spaces, and print modes of the thermal printer.

[0012] Optionally, the autonomous storage system is constructed based on multiple storage spaces, various data sets and corresponding adaptation coefficients; autonomous allocation of print data is triggered according to the autonomous storage system, various data sets and print data to be processed, and dynamic interaction is performed on various storage spaces, including: Freeze multiple storage spaces; Associating multiple storage spaces, various data sets, and corresponding adaptation coefficients; An autonomous storage system is built based on multiple storage spaces, various data sets and corresponding adaptation coefficients.

[0013] Optionally, the autonomous storage system is constructed based on multiple storage spaces, various data sets and corresponding adaptation coefficients; autonomous allocation of print data is triggered according to the autonomous storage system, various data sets and print data to be processed, and dynamic interaction is performed on various storage spaces, and further includes: Real-time monitoring of pending print data in the print space; Associating autonomous storage systems, various data sets, and pending print data; The autonomous allocation of print data is triggered according to the autonomous storage system, various data sets and the print data to be processed, and dynamic interaction is performed on various storage spaces.

[0014] In addition, an embodiment of the present invention further provides a storage system for print data of a thermal printer, characterized in that the storage system for print data of the thermal printer is applied to the storage method for print data of a thermal printer as described in any one of claims 1 to 9, and the storage system for print data of the thermal printer includes: A collection module, used for detecting a thermal printer and collecting the printing space of the thermal printer; A data module, used for collecting a plurality of printing data based on the printing space, and constructing data sets of different dimensions according to the plurality of printing data; An identification module, used to define corresponding data types according to the identification of multiple data sets; A compression module, used for defining a corresponding compressor according to a data type, a load amount of a data set and a corresponding importance level; A storage module, for defining the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing a corresponding compression combination based on the compression progress of each data set; matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer; The allocation module is used to build an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients; trigger autonomous allocation of print data according to the autonomous storage system, various data sets and to-be-processed print data, and dynamically interact with various storage spaces.

[0015] In an embodiment of the present invention, through the method in the embodiment of the present invention, a thermal printer is detected and the printing space of the thermal printer is collected; multiple printing data are collected based on the printing space, and data sets of different dimensions are constructed according to the multiple printing data; corresponding data types are defined according to the identification of multiple data sets; corresponding compressors are defined according to the data type, the load of the data set and the corresponding importance level, which is compatible with the overall consideration of the data type, the load of the data set and the corresponding importance level, realizes multi-dimensional control of the data type, the load of the data set and the corresponding importance level, and ensures the accuracy of the compressor.

[0016] Furthermore, the compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the corresponding compression combination is constructed based on the compression progress of each data set; the corresponding storage space is matched based on multiple compression combinations, printing space and the printing mode of the thermal printer; an autonomous storage system is constructed based on multiple storage spaces, each data set and the corresponding adaptation coefficient; autonomous allocation of printing data is triggered according to the autonomous storage system, each data set and the printing data to be processed, and dynamic interaction is performed on each storage space, thereby introducing precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizing multi-dimensional storage of printing data of the thermal printer and ensuring precise storage of printing data of the thermal printer. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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.

[0018] Figure 1 is a flow chart of a method for storing print data of a thermal printer in an embodiment of the present invention; Figure 2 is a flow chart of S11 in the method for storing print data of a thermal printer in an embodiment of the present invention; Figure 3 is a schematic flow chart of S12 in the method for storing print data of a thermal printer in an embodiment of the present invention; Figure 4 is a schematic flow chart of S13 in the method for storing print data of a thermal printer in an embodiment of the present invention; Figure 5 is a schematic flow chart of S14 in the method for storing print data of a thermal printer in an embodiment of the present invention; Figure 6 is a schematic flow chart of S15 in the method for storing print data of a thermal printer in an embodiment of the present invention; Figure 7 is a schematic flow chart of S16 in the method for storing print data of a thermal printer in an embodiment of the present invention; Figure 8 is a schematic diagram of the structure of a storage system for print data of a thermal printer in an embodiment of the present invention; Fig. 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0019] 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.

[0020] See also Figures 1 to 9 , a method for storing print data of a thermal printer, applied to a storage scenario of print data of a thermal printer; the method for storing print data of a thermal printer comprises: Step S11: Detecting the thermal printer and collecting the printing space of the thermal printer; Step S12: collecting a plurality of printing data based on the printing space, and constructing data sets of different dimensions according to the plurality of printing data; Step S13: defining corresponding data types according to the identification of multiple data sets; Step S14: defining a corresponding compressor according to the data type, the load of the data set and the corresponding importance level; Step S15: defining the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing a corresponding compression combination based on the compression progress of each data set; matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer; Step S16: construct an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients; trigger autonomous allocation of print data according to the autonomous storage system, various data sets and print data to be processed, and dynamically interact with various storage spaces.

[0021] In an embodiment of the present invention, through the method in the embodiment of the present invention, a thermal printer is detected and the printing space of the thermal printer is collected; multiple printing data are collected based on the printing space, and data sets of different dimensions are constructed according to the multiple printing data; corresponding data types are defined according to the identification of multiple data sets; corresponding compressors are defined according to the data type, the load of the data set and the corresponding importance level, which is compatible with the overall consideration of the data type, the load of the data set and the corresponding importance level, realizes multi-dimensional control of the data type, the load of the data set and the corresponding importance level, and ensures the accuracy of the compressor.

[0022] Furthermore, the compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the corresponding compression combination is constructed based on the compression progress of each data set; the corresponding storage space is matched based on multiple compression combinations, printing space and the printing mode of the thermal printer; an autonomous storage system is constructed based on multiple storage spaces, each data set and the corresponding adaptation coefficient; autonomous allocation of printing data is triggered according to the autonomous storage system, each data set and the printing data to be processed, and dynamic interaction is performed on each storage space, thereby introducing precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizing multi-dimensional storage of printing data of the thermal printer and ensuring precise storage of printing data of the thermal printer.

[0023] refer to Figure 2 , in step S11, detecting the thermal printer and collecting the printing space of the thermal printer; In the specific implementation process of the present invention, the specific steps may be: S111: collecting the location of the thermal printer; S112: triggering positioning detection of the thermal printer according to the location of the thermal printer; S113: collecting the control space of the thermal printer based on the positioning detection of the thermal printer; S114: matching a corresponding acquisition mode according to the control space of the thermal printer and the model of the thermal printer; S115: Associating the control space of the thermal printer and the corresponding acquisition mode, defining the printing space of the thermal printer according to the control space of the thermal printer and the corresponding acquisition mode, so as to acquire the printing space of the thermal printer.

[0024] In an embodiment of the present application, the location of the thermal printer is collected, the location of the thermal printer is introduced, the location of the thermal printer is controlled, and at the same time, the positioning detection of the thermal printer is triggered according to the location of the thermal printer; based on the positioning detection of the thermal printer, the control space of the thermal printer is collected, and further processing of the control space of the thermal printer is realized.

[0025] Therefore, the corresponding acquisition mode is matched according to the control space of the thermal printer and the model of the thermal printer; the control space of the thermal printer and the corresponding acquisition mode are associated, and the printing space of the thermal printer is defined according to the control space of the thermal printer and the corresponding acquisition mode to acquire the printing space of the thermal printer, which is compatible with the overall consideration of the control space of the thermal printer and the corresponding acquisition mode, realizes multi-dimensional control of the control space of the thermal printer and the corresponding acquisition mode, and ensures the accuracy of the printing space of the thermal printer.

[0026] refer to Figure 3 , in step S12, a plurality of printing data are collected based on the printing space, and data sets of different dimensions are constructed according to the plurality of printing data; In the specific implementation process of the present invention, the specific steps may be: S121: freeze-frame printing space; S122: monitor the printing space in real time; S123: Collecting a plurality of printing data according to the printing space and the corresponding time node; S124: defining corresponding data dimensions according to dynamic interaction of multiple print data; S125: triggering a corresponding data collection method based on multiple printing data and data dimensions; S126: constructing data sets of different dimensions according to the data collection method and multiple print data.

[0027] In an embodiment of the present application, the printing space is frozen; the printing space is monitored in real time; and multiple printing data are collected according to the printing space and the corresponding time nodes, thereby realizing multiple interactions of the printing space and the corresponding time nodes and ensuring the accuracy of the multiple printing data.

[0028] Therefore, corresponding data dimensions are defined based on the dynamic interaction of multiple printing data; corresponding data collection methods are triggered based on multiple printing data and data dimensions; data collections of different dimensions are constructed based on the data collection method and multiple printing data, and data collections of different dimensions are introduced to control the data collections of different dimensions as a whole.

[0029] refer to Figure 4, in step S13, corresponding data types are defined according to the identification of the plurality of data sets; In the specific implementation process of the present invention, the specific steps may be: S131: freeze multiple data sets; S132: Associating a plurality of data sets, a model of a thermal printer, and a space of a printing space; S133: matching corresponding recognition models according to the plurality of data sets, the model of the thermal printer, and the spatial structure of the printing space; S134: Associating multiple data sets and identifying models; S135: triggering synchronous recognition of multiple data sets based on multiple data sets, recognition models and corresponding synchronization modes, and defining corresponding data types.

[0030] In an embodiment of the present application, multiple data sets are frozen, and further processed. At the same time, multiple data sets, models of thermal printers, and the space of the printing space are associated; corresponding recognition models are matched according to multiple data sets, models of thermal printers, and the spatial architecture of the printing space, and the overall consideration of multiple data sets, models of thermal printers, and the spatial architecture of the printing space is compatible, thereby achieving multi-dimensional control of multiple data sets, models of thermal printers, and the spatial architecture of the printing space, and ensuring the accuracy of the recognition model.

[0031] Therefore, multiple data sets and recognition models are associated; synchronous recognition of multiple data sets is triggered based on multiple data sets, recognition models and corresponding synchronization modes, and corresponding data types are defined, thereby achieving compatibility of multiple data sets, recognition models and corresponding synchronization modes, ensuring multi-dimensional control of multiple data sets, recognition models and corresponding synchronization modes, and ensuring the accuracy of synchronous recognition of multiple data sets.

[0032] refer to Figure 5 , S14: defining a corresponding compressor according to the data type, the load of the data set and the corresponding importance level; In the specific implementation process of the present invention, the specific steps may be: S141: freeze each data type; S142: defining the load of the data set based on dynamic detection of the data set; S143: defining corresponding importance levels according to the data set and the data classification mode of the print space; S144: Associate data types, data set loads, and corresponding importance levels; S145: defining a first compression parameter according to the data type and the load of the data set, and defining a second compression parameter according to the data type and the importance level; S146: Define a corresponding compressor according to the first compression parameter, the second compression parameter and the thermal printer.

[0033] In an embodiment of the present application, a thermal printer is detected and the printing space of the thermal printer is collected; multiple printing data are collected based on the printing space, and data sets of different dimensions are constructed according to the multiple printing data; corresponding data types are defined according to the identification of multiple data sets; corresponding compressors are defined according to the data types, the load of the data sets, and the corresponding importance levels, which is compatible with the overall consideration of the data types, the load of the data sets, and the corresponding importance levels, realizes multi-dimensional control of the data types, the load of the data sets, and the corresponding importance levels, and ensures the accuracy of the compressor.

[0034] At this time, each data type is frozen; at the same time, the load of the data set is defined based on the dynamic detection of the data set; the corresponding importance level is defined according to the data classification pattern of the data set and the printing space, and multiple interactions of the data set and the data classification pattern of the printing space are introduced to ensure the accuracy of the corresponding importance level.

[0035] Therefore, the data type, the load of the data set and the corresponding importance level are associated; the first compression parameter is defined according to the data type and the load of the data set, and the second compression parameter is defined according to the data type and the importance level; the corresponding compressor is defined according to the first compression parameter, the second compression parameter and the thermal printer, which is compatible with the overall control of the data type, the load of the data set and the corresponding importance level, ensures the multi-dimensional control of the data type, the load of the data set and the corresponding importance level, and ensures the matching accuracy of the compressor.

[0036] refer to Figure 6 , S15: defining the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing the corresponding compression combination based on the compression progress of each data set; matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer; In the specific implementation process of the present invention, the specific steps may be: S151: freeze multiple compressors and monitor the multiple compressors in real time; S152: Associating a data set, a corresponding compressor, and a real-time load of a thermal printer; S153: defining the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer; S154: constructing a corresponding compression combination based on the compression progress of each data set; S155: Associating and constructing corresponding compression combinations based on the compression progress of each data set; S156: Matching corresponding storage spaces based on multiple compression combinations, print spaces, and print modes of the thermal printer.

[0037] In an embodiment of the present application, multiple compressors are fixed and monitored in real time; data sets, corresponding compressors and real-time loads of thermal printers are associated; the compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the data set, the corresponding compressor and the real-time load of the thermal printer are compatible, and multi-dimensional control of the data set, the corresponding compressor and the real-time load of the thermal printer is achieved, thereby ensuring the accuracy of the compression progress of each data set and achieving real-time control of the compression progress of each data set.

[0038] Therefore, corresponding compression combinations are constructed based on the compression progress of each data set; corresponding compression combinations based on the compression progress of each data set are associated; corresponding storage spaces are matched based on multiple compression combinations, printing spaces and printing modes of thermal printers, and multiple compression combinations, printing spaces and printing modes of thermal printers are introduced to achieve multiple interactions of multiple compression combinations, printing spaces and printing modes of thermal printers, thereby ensuring the matching accuracy of storage spaces.

[0039] refer to Figure 7 , S16: constructing an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients; triggering autonomous allocation of print data according to the autonomous storage system, various data sets and to-be-processed print data, and dynamically interacting with various storage spaces; In the specific implementation process of the present invention, the specific steps may be: S161: freeze multiple storage spaces; S162: Associating multiple storage spaces, various data sets, and corresponding adaptation coefficients; S163: constructing an autonomous storage system based on multiple storage spaces, various data sets, and corresponding adaptation coefficients; S164: real-time monitoring of the print data to be processed in the print space; S165: Associating the autonomous storage system, each data set, and the print data to be processed; S166: triggering autonomous allocation of print data according to the autonomous storage system, various data sets, and print data to be processed, and dynamically interacting with various storage spaces.

[0040] In the specific implementation process of the present invention, the compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the corresponding compression combination is constructed based on the compression progress of each data set; the corresponding storage space is matched based on multiple compression combinations, printing space and the printing mode of the thermal printer; an autonomous storage system is constructed based on multiple storage spaces, various data sets and corresponding adaptation coefficients; autonomous allocation of printing data is triggered according to the autonomous storage system, various data sets and the printing data to be processed, and dynamic interaction is performed on various storage spaces, thereby introducing precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizing multi-dimensional storage of printing data of the thermal printer and ensuring precise storage of printing data of the thermal printer.

[0041] At this time, multiple storage spaces are frozen; multiple storage spaces, various data sets and corresponding adaptation coefficients are associated; an autonomous storage system is built based on multiple storage spaces, various data sets and corresponding adaptation coefficients, and multiple storage spaces, various data sets and corresponding adaptation coefficients are introduced. Overall control is performed on multiple storage spaces, various data sets and corresponding adaptation coefficients, ensuring multi-dimensional control of multiple storage spaces, various data sets and corresponding adaptation coefficients, and realizing precise control of the autonomous storage system.

[0042] Therefore, the pending print data in the print space is monitored in real time; the autonomous storage system, various data sets and the pending print data are associated; the autonomous allocation of the print data is triggered according to the autonomous storage system, various data sets and the pending print data, and dynamic interaction is performed on various storage spaces.

[0043] Furthermore, the autonomous allocation of print data is triggered according to the autonomous storage system, each data set and the print data to be processed, and each storage space is dynamically interacted, which introduces the precise control of each storage space, the autonomous allocation of print data and the dynamic interaction of each storage space, realizes the multi-dimensional storage of the print data of the thermal printer, and ensures the precise storage of the print data of the thermal printer. At the same time, dynamic interaction is carried out for each storage space, and each storage space is collaboratively controlled, so as to fully consider the coordination of each storage space and make full use of each storage space.

[0044] In an embodiment of the present invention, through the method in the embodiment of the present invention, a thermal printer is detected and the printing space of the thermal printer is collected; multiple printing data are collected based on the printing space, and data sets of different dimensions are constructed according to the multiple printing data; corresponding data types are defined according to the identification of multiple data sets; corresponding compressors are defined according to the data type, the load of the data set and the corresponding importance level, which is compatible with the overall consideration of the data type, the load of the data set and the corresponding importance level, realizes multi-dimensional control of the data type, the load of the data set and the corresponding importance level, and ensures the accuracy of the compressor.

[0045] Furthermore, the compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the corresponding compression combination is constructed based on the compression progress of each data set; the corresponding storage space is matched based on multiple compression combinations, printing space and the printing mode of the thermal printer; an autonomous storage system is constructed based on multiple storage spaces, each data set and the corresponding adaptation coefficient; autonomous allocation of printing data is triggered according to the autonomous storage system, each data set and the printing data to be processed, and dynamic interaction is performed on each storage space, thereby introducing precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizing multi-dimensional storage of printing data of the thermal printer and ensuring precise storage of printing data of the thermal printer.

[0046] See also Figure 8 , Figure 8 Schematic diagram of the structure of the storage system of the print data of the thermal printer in the embodiment of the present invention.

[0047] like Figure 8 As shown, a storage system for printing data of a thermal printer, the storage system for printing data of the thermal printer comprises: The acquisition module 21 is used to detect the thermal printer and acquire the printing space of the thermal printer; A data module 22, configured to collect a plurality of printing data based on the printing space, and construct data sets of different dimensions according to the plurality of printing data; An identification module 23, used to define corresponding data types according to the identification of multiple data sets; A compression module 24, used to define a corresponding compressor according to the data type, the load of the data set and the corresponding importance level; The storage module 25 is used to define the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, and to construct a corresponding compression combination based on the compression progress of each data set; and to match the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer; The allocation module 26 is used to build an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients; trigger autonomous allocation of print data according to the autonomous storage system, various data sets and to-be-processed print data, and dynamically interact with various storage spaces.

[0048] 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.

[0049] 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).

[0050] 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.

[0051] 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 .

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

[0053] 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.

[0054] 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.

[0055] 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.

[0056] 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.

[0057] In addition, the above describes in detail the storage method and system for the print data 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 method for storing print data of a thermal printer, characterized in that: Applicable to storage scenarios of print data of thermal printers; The method for storing print data of the thermal printer comprises: Detect thermal printers and collect the printing space of thermal printers; Collect multiple printing data based on the printing space, and construct data sets of different dimensions according to the multiple printing data; Defining corresponding data types according to the identification of multiple data sets; Define the corresponding compressor according to the data type, the load of the data set and the corresponding importance level; Defining compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing a corresponding compression combination based on the compression progress of each data set; matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer; An autonomous storage system is constructed based on multiple storage spaces, various data sets and corresponding adaptation coefficients; autonomous allocation of print data is triggered according to the autonomous storage system, various data sets and print data to be processed, and dynamic interaction is performed on various storage spaces.

2. The method for storing print data of a thermal printer according to claim 1, characterized in that: The detecting of the thermal printer and collecting the printing space of the thermal printer includes: Collect the location of the thermal printer; Triggering the positioning detection of the thermal printer according to the location of the thermal printer; Collecting the control space of the thermal printer based on the positioning detection of the thermal printer; Match the corresponding acquisition mode according to the control space of the thermal printer and the model of the thermal printer; The control space of the thermal printer and the corresponding acquisition mode are associated, and the print space of the thermal printer is defined according to the control space of the thermal printer and the corresponding acquisition mode to acquire the print space of the thermal printer.

3. The method for storing print data of a thermal printer according to claim 1, characterized in that: The method of collecting a plurality of printing data based on the printing space and constructing data sets of different dimensions according to the plurality of printing data includes: Freeze print space; Monitor the printing space in real time; Collect multiple printing data according to the printing space and the corresponding time nodes; Defining corresponding data dimensions according to the dynamic interaction of multiple print data; Trigger corresponding data collection methods based on multiple print data and data dimensions; According to the data collection method, multiple print data are used to construct data collections of different dimensions.

4. The method for storing print data of a thermal printer according to claim 3, characterized in that: Defining corresponding data types according to the identification of multiple data sets includes: Freeze multiple data sets; A space for associating multiple data sets, models of thermal printers, and print spaces; Matching corresponding recognition models according to multiple data sets, models of thermal printers, and spatial structures of printing spaces; Correlate multiple data sets and identify patterns; Based on the multiple data sets, the recognition model and the corresponding synchronization mode, the synchronous recognition of the multiple data sets is triggered, and the corresponding data types are defined.

5. The method for storing print data of a thermal printer according to claim 4, characterized in that: Defining a corresponding compressor according to the data type, the load of the data set and the corresponding importance level includes: Freeze each data type; Defining the load of a data set based on dynamic detection of the data set; Defining corresponding importance levels according to the data set and the data classification mode of the print space; Associate data types, data set loads, and corresponding importance levels; A first compression parameter is defined according to the data type and the load of the data set, and a second compression parameter is defined according to the data type and the importance level; A corresponding compressor is defined according to the first compression parameter, the second compression parameter and the thermal printer.

6. The method for storing print data of a thermal printer according to claim 5, characterized in that: The compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the corresponding compression combination is constructed based on the compression progress of each data set; Based on multiple compression combinations, print spaces, and print modes of thermal printers, the corresponding storage spaces are matched, including: Freeze multiple compressors and monitor multiple compressors in real time; Associating data sets, corresponding compressors, and real-time loads of thermal printers; The compression schedule of each data set is defined based on the data set, the corresponding compressor, and the real-time load of the thermal printer.

7. The method for storing print data of a thermal printer according to claim 6, characterized in that: The compression progress of each data set is defined based on the data set, the corresponding compressor and the real-time load of the thermal printer, and the corresponding compression combination is constructed based on the compression progress of each data set; Based on multiple compression combinations, print spaces, and printing modes of thermal printers, the corresponding storage spaces are matched, and further include: Construct corresponding compression combinations based on the compression progress of each data set; Correlation builds corresponding compression combinations based on the compression progress of each data set; The corresponding storage space is matched based on multiple compression combinations, print spaces, and print modes of the thermal printer.

8. The method for storing print data of a thermal printer according to claim 7, characterized in that: The autonomous storage system is constructed based on multiple storage spaces, various data sets and corresponding adaptation coefficients; Triggering autonomous allocation of print data based on autonomous storage systems, various data sets, and pending print data, and dynamically interacting with various storage spaces, including: Freeze multiple storage spaces; Associating multiple storage spaces, various data sets, and corresponding adaptation coefficients; An autonomous storage system is built based on multiple storage spaces, various data sets and corresponding adaptation coefficients.

9. The method for storing print data of a thermal printer according to claim 8, characterized in that: The autonomous storage system is constructed based on multiple storage spaces, various data sets and corresponding adaptation coefficients; Triggering autonomous allocation of print data based on autonomous storage systems, various data sets, and pending print data, and dynamically interacting with various storage spaces, including: Real-time monitoring of pending print data in the print space; Associating autonomous storage systems, various data sets, and pending print data; The autonomous allocation of print data is triggered according to the autonomous storage system, various data sets and the print data to be processed, and dynamic interaction is performed on various storage spaces.

10. A storage system for printing data of a thermal printer, characterized in that: The storage system for printing data of the thermal printer is applied to the storage method for printing data of the thermal printer as claimed in any one of claims 1 to 9, and the storage system for printing data of the thermal printer comprises: A collection module, used for detecting a thermal printer and collecting the printing space of the thermal printer; A data module, used for collecting a plurality of printing data based on the printing space, and constructing data sets of different dimensions according to the plurality of printing data; An identification module, used to define corresponding data types according to the identification of multiple data sets; A compression module, used for defining a corresponding compressor according to a data type, a load amount of a data set and a corresponding importance level; A storage module, for defining the compression progress of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, constructing a corresponding compression combination based on the compression progress of each data set; matching the corresponding storage space based on multiple compression combinations, the printing space and the printing mode of the thermal printer; The allocation module is used to build an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients; trigger autonomous allocation of print data according to the autonomous storage system, various data sets and to-be-processed print data, and dynamically interact with various storage spaces.

Citation Information

Patent Citations

  • Printing system, information processing apparatus, control method, and computer-readable medium

    CN102736872A

  • Thermal printer and print data backup method thereof

    CN107436741A

  • Self-adaptive printing method and system of printer

    CN118819437A

  • Print data generation apparatus, printer, and print system

    JP2008141594A

  • Printing controller, printing control method, printing program, medium on which printing control program is recorded, image processor, and image processing computer

    US20060152540A1

Cited By

  • Pattern printing method and system based on real-time printing

    CN121092092A

  • A real-time printing based graphic printing method and system

    CN121092092B