Method and system for storing printing data of thermal printer
By building a multi-dimensional data set and an autonomous storage system in the thermal printer, the accuracy problem caused by storing the printing data in the same space is solved, and the accurate storage and dynamic interaction of the printing data are achieved.
Patent Information
- Application Number
- CN202411855542.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In the prior art, multiple print data of a thermal printer are stored in the same space, which makes it impossible to ensure the accuracy of data compression and affects the accurate storage of the print data.
By detecting the printing space of the thermal printer, collecting multiple printing data, constructing data sets of different dimensions, defining data types and importance levels, using a compressor for compression, and building an autonomous storage system based on real-time load and adaptation coefficient, multi-dimensional storage of printing data is achieved.
It realizes the accurate storage of printing data, ensures the accuracy of the compressor and the dynamic interaction of the storage space, and improves the storage accuracy of printing data.
Smart Images

Figure CN119576244B_ABST
Abstract
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 perform dynamic printing on printing paper. At this time, printing data is collected, controlled according to the printing data, and corresponding printing information is defined based on the traceability of the printing data. In the existing technology, 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, makes it impossible to guarantee the accuracy of the compressor, and thus makes it impossible to achieve accurate storage of the printing data 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 storage method and system for the printing data of a thermal printer, which detects the thermal printer and collects the printing space of the thermal printer; collects multiple printing data based on the printing space, and constructs data sets of different dimensions based on the multiple printing data; defines corresponding data types based on the identification of multiple data sets; defines corresponding compressors based on the data type, the load of the data set and the corresponding importance level, and 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; the 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, which introduces precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizes multi-dimensional storage of printing data of the thermal printer, and ensures 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;
[0006] The method for storing print data of the thermal printer comprises:
[0007] Detect thermal printers and collect the printing space of thermal printers;
[0008] Collect multiple print data based on the print space, and construct data sets of different dimensions based on the multiple print data;
[0009] Defining corresponding data types based on the identification of multiple data sets;
[0010] Define the corresponding compressor according to the data type, the load of the data set and the corresponding importance level;
[0011] Defining compression progress for each data set based on the data set, the corresponding compressor, and the real-time load of the thermal printer, constructing corresponding compression combinations based on the compression progress of each data set; matching corresponding storage spaces based on multiple compression combinations, print spaces, and the printing mode of the thermal printer;
[0012] 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 pending print data, and dynamic interaction is performed on various storage spaces.
[0013] Optionally, detecting a thermal printer and collecting the printing space of the thermal printer includes:
[0014] Collect the location of the thermal printer;
[0015] Triggering the positioning detection of the thermal printer according to the location of the thermal printer;
[0016] Collecting the control space of the thermal printer based on the positioning detection of the thermal printer;
[0017] Match the corresponding acquisition mode according to the control space and model of the thermal printer;
[0018] 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.
[0019] 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:
[0020] Freeze print space;
[0021] Monitor the printing space in real time;
[0022] Collect multiple printing data according to the printing space and the corresponding time nodes;
[0023] Defining corresponding data dimensions according to the dynamic interaction of multiple print data;
[0024] Trigger corresponding data collection methods based on multiple print data and data dimensions;
[0025] According to the data collection method, multiple print data are used to construct data collections of different dimensions.
[0026] Optionally, defining corresponding data types based on the identification of multiple data sets includes:
[0027] Freeze multiple data sets;
[0028] A space for associating multiple data sets, models of thermal printers, and print spaces;
[0029] Matching corresponding recognition models based on multiple data sets, thermal printer models, and the spatial structure of the printing space;
[0030] Correlate multiple data sets and identify models;
[0031] Based on multiple data sets, recognition models and corresponding synchronization modes, synchronous recognition of multiple data sets is triggered, and corresponding data types are defined.
[0032] Optionally, defining a corresponding compressor according to the data type, the load of the data set, and the corresponding importance level includes:
[0033] Freeze each data type;
[0034] Defining the load of a data set based on dynamic detection of the data set;
[0035] Define corresponding importance levels according to the data set and the data classification mode of the print space;
[0036] Associate the data type, the load of the data set, and the corresponding importance level;
[0037] 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;
[0038] A corresponding compressor is defined according to the first compression parameter, the second compression parameter and the thermal printer.
[0039] Optionally, the steps of defining a compression schedule for 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 schedule of each data set, and matching a corresponding storage space based on multiple compression combinations, the print space, and the print mode of the thermal printer include:
[0040] Freeze multiple compressors and monitor multiple compressors in real time;
[0041] Associate data sets, corresponding compressors, and real-time loads of thermal printers;
[0042] The compression schedule for each data set is defined based on the data set, the corresponding compressor, and the real-time load of the thermal printer.
[0043] Optionally, the method further includes defining a compression schedule for 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 schedule of each data set, and matching corresponding storage spaces based on multiple compression combinations, print spaces, and the printing mode of the thermal printer, and further includes:
[0044] Construct corresponding compression combinations based on the compression progress of each data set;
[0045] Correlation constructs corresponding compression combinations based on the compression progress of each data set;
[0046] The corresponding storage space is matched based on multiple compression combinations, print spaces, and print modes of the thermal printer.
[0047] 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:
[0048] Freeze multiple storage spaces;
[0049] Associating multiple storage spaces, various data sets, and corresponding adaptation coefficients;
[0050] Build an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients.
[0051] 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, further comprising:
[0052] Real-time monitoring of pending print data in the print space;
[0053] Associating autonomous storage systems, various data sets, and pending print data;
[0054] Trigger autonomous allocation of print data based on autonomous storage systems, various data sets, and pending print data, and dynamically interact with various storage spaces.
[0055] 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 a thermal printer is applied to the storage method for print data of a thermal printer according to any one of claims 1 to 9, and the storage system for print data of a thermal printer includes:
[0056] An acquisition module is used to detect the thermal printer and acquire the printing space of the thermal printer;
[0057] A data module is used to collect multiple printing data based on the printing space and construct data sets of different dimensions according to the multiple printing data;
[0058] an identification module, configured to define corresponding data types according to the identification of multiple data sets;
[0059] A compression module, configured to define a corresponding compressor according to the data type, the load of the data set, and the corresponding importance level;
[0060] A storage module is configured to define a compression schedule for each data set based on the data set, the corresponding compressor, and the real-time load of the thermal printer, construct a corresponding compression combination based on the compression schedule of each data set, and match a corresponding storage space based on multiple compression combinations, the print space, and the print mode of the thermal printer;
[0061] The allocation module is used to build an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients; trigger the autonomous allocation of print data according to the autonomous storage system, various data sets and the print data to be processed, and dynamically interact with various storage spaces.
[0062] 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.
[0063] 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; the 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, which introduces precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizes multi-dimensional storage of printing data of the thermal printer, and ensures precise storage of printing data of the thermal printer. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.
[0065] Figure 1 1 is a flow chart of a method for storing print data of a thermal printer according to an embodiment of the present invention;
[0066] Figure 2 1 is a flow chart of S11 in the method for storing print data of a thermal printer in an embodiment of the present invention;
[0067] Figure 3 1 is a flow chart of S12 in the method for storing print data of a thermal printer in an embodiment of the present invention;
[0068] Figure 4 1 is a flow chart of step S13 in the method for storing print data of a thermal printer in an embodiment of the present invention;
[0069] Figure 5 1 is a flow chart of S14 in the method for storing print data of a thermal printer in an embodiment of the present invention;
[0070] Figure 6 1 is a flow chart of S15 in the method for storing print data of a thermal printer in an embodiment of the present invention;
[0071] Figure 7 1 is a flow chart of S16 in the method for storing print data of a thermal printer in an embodiment of the present invention;
[0072] Figure 81 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;
[0073] Figure 9 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0074] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making any creative efforts shall fall within the scope of protection of the present invention.
[0075] See also Figures 1 to 9 A method for storing print data of a thermal printer is applied to a storage scenario of print data of a thermal printer; the method for storing print data of a thermal printer comprises:
[0076] Step S11: Detecting the thermal printer and collecting the printing space of the thermal printer;
[0077] 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;
[0078] Step S13: defining corresponding data types according to the identification of multiple data sets;
[0079] Step S14: defining a corresponding compressor according to the data type, the load of the data set and the corresponding importance level;
[0080] Step S15: defining a compression schedule for 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 schedule of each data set; and matching corresponding storage spaces based on the plurality of compression combinations, the print space, and the print mode of the thermal printer;
[0081] Step 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.
[0082] 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.
[0083] 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; the 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, which introduces precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizes multi-dimensional storage of printing data of the thermal printer, and ensures precise storage of printing data of the thermal printer.
[0084] refer to Figure 2 , in step S11, detecting the thermal printer and collecting the printing space of the thermal printer;
[0085] In the specific implementation process of the present invention, the specific steps may be:
[0086] S111: collecting the location of the thermal printer;
[0087] S112: triggering a positioning detection of the thermal printer according to the location of the thermal printer;
[0088] S113: collecting the control space of the thermal printer based on the positioning detection of the thermal printer;
[0089] S114: matching a corresponding acquisition mode according to the control space of the thermal printer and the model of the thermal printer;
[0090] 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, and acquiring the printing space of the thermal printer.
[0091] In an embodiment of the present application, the location of the thermal printer is collected, the location of the thermal printer is introduced, and the location of the thermal printer is controlled. 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.
[0092] 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.
[0093] 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;
[0094] In the specific implementation process of the present invention, the specific steps may be:
[0095] S121: freeze printing space;
[0096] S122: monitor the printing space in real time;
[0097] S123: Collecting multiple printing data according to the printing space and the corresponding time nodes;
[0098] S124: defining corresponding data dimensions according to dynamic interaction of multiple print data;
[0099] S125: triggering a corresponding data collection method based on multiple print data and data dimensions;
[0100] S126: Constructing data sets of different dimensions according to the data collection method and the plurality of printing data.
[0101] 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.
[0102] 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 perform overall control on data collections of different dimensions.
[0103] refer to Figure 4 , in step S13, corresponding data types are defined according to the identification of the plurality of data sets;
[0104] In the specific implementation process of the present invention, the specific steps may be:
[0105] S131: freeze multiple data sets;
[0106] S132: Associating multiple data sets, the model of the thermal printer, and the space of the printing space;
[0107] S133: matching corresponding recognition models according to the multiple data sets, the model of the thermal printer, and the spatial structure of the printing space;
[0108] S134: Associating multiple data sets and identifying models;
[0109] S135: triggering synchronous recognition of multiple data sets based on the multiple data sets, recognition models, and corresponding synchronization modes, and defining corresponding data types.
[0110] In an embodiment of the present application, multiple data sets are frozen, and further processed. At the same time, the multiple data sets, the models of thermal printers, and the spaces of the printing spaces are associated; the corresponding recognition models are matched according to the multiple data sets, the models of thermal printers, and the spatial structures of the printing spaces, and the overall consideration of the multiple data sets, the models of thermal printers, and the spatial structures of the printing spaces is compatible, thereby realizing multi-dimensional control of the multiple data sets, the models of thermal printers, and the spatial structures of the printing spaces, and ensuring the accuracy of the recognition model.
[0111] 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.
[0112] 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;
[0113] In the specific implementation process of the present invention, the specific steps may be:
[0114] S141: freeze each data type;
[0115] S142: defining the load of the data set based on the dynamic detection of the data set;
[0116] S143: defining corresponding importance levels according to the data set and the data classification mode of the print space;
[0117] S144: Associate the data type, the load of the data set, and the corresponding importance level;
[0118] 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;
[0119] S146: Define a corresponding compressor according to the first compression parameter, the second compression parameter, and the thermal printer.
[0120] 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 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.
[0121] 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 classification pattern of the data set and the printing space are introduced to ensure the accuracy of the corresponding importance level.
[0122] 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.
[0123] refer to Figure 6S15: defining a compression schedule for 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 schedule of each data set; matching a corresponding storage space based on the plurality of compression combinations, the print space, and the print mode of the thermal printer;
[0124] In the specific implementation process of the present invention, the specific steps may be:
[0125] S151: freeze multiple compressors and monitor multiple compressors in real time;
[0126] S152: Associating the data set, the corresponding compressor, and the real-time load of the thermal printer;
[0127] S153: defining a compression schedule for each data set based on the data set, the corresponding compressor, and the real-time load of the thermal printer;
[0128] S154: Constructing corresponding compression combinations based on the compression progress of each data set;
[0129] S155: Correlate and construct corresponding compression combinations based on the compression progress of each data set;
[0130] S156: Matching corresponding storage spaces based on the plurality of compression combinations, the printing space, and the printing mode of the thermal printer.
[0131] In an embodiment of the present application, multiple compressors are fixed and monitored in real time; the real-time load of the data set, the corresponding compressor and the thermal printer are associated; the compression progress of each data set is defined based on the real-time load of the data set, the corresponding compressor and the thermal printer, and the real-time load of the data set, the corresponding compressor and the thermal printer are compatible, and the multi-dimensional control of the real-time load of the data set, the corresponding compressor and the thermal printer is realized, thereby ensuring the accuracy of the compression progress of each data set and realizing real-time control of the compression progress of each data set.
[0132] Therefore, corresponding compression combinations are constructed based on the compression progress of each data set; corresponding compression combinations are constructed based on the compression progress of each data set; 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.
[0133] refer to Figure 7S16: 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 print data to be processed, and dynamically interacting with various storage spaces;
[0134] In the specific implementation process of the present invention, the specific steps may be:
[0135] S161: freeze multiple storage spaces;
[0136] S162: Associating multiple storage spaces, various data sets, and corresponding adaptation coefficients;
[0137] S163: Building an autonomous storage system based on multiple storage spaces, various data sets, and corresponding adaptation coefficients;
[0138] S164: Real-time monitoring of the print data to be processed in the print space;
[0139] S165: Associating the autonomous storage system, each data set, and the print data to be processed;
[0140] 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.
[0141] During the specific implementation 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 spaces 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; the 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, which introduces precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizes multi-dimensional storage of printing data of the thermal printer, and ensures precise storage of printing data of the thermal printer.
[0142] 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 constructed 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.
[0143] Therefore, the print data to be processed in the print space is monitored in real time; the autonomous storage system, each data set and the print data to be processed are associated; the autonomous allocation of the print data is triggered according to the autonomous storage system, each data set and the print data to be processed, and dynamic interaction is performed on each storage space.
[0144] Furthermore, the autonomous allocation of print data is triggered based on the autonomous storage system, various data sets, and pending print data, and dynamic interaction is performed between the various storage spaces. This introduces precise control of each storage space, autonomous allocation of print data, and dynamic interaction between the various storage spaces, enabling multi-dimensional storage of thermal printer print data and ensuring accurate storage of thermal printer print data. At the same time, dynamic interaction is performed across the various storage spaces, allowing for coordinated management and control of each storage space, fully accounting for the coordination and full utilization of each storage space.
[0145] 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.
[0146] 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; the 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, which introduces precise control of each storage space, autonomous allocation of printing data and dynamic interaction of each storage space, realizes multi-dimensional storage of printing data of the thermal printer, and ensures precise storage of printing data of the thermal printer.
[0147] See also Figure 8 , Figure 8 FIG. 1 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.
[0148] like Figure 8As shown, a storage system for print data of a thermal printer, the storage system for print data of the thermal printer comprises:
[0149] The acquisition module 21 is used to detect the thermal printer and acquire the printing space of the thermal printer;
[0150] A data module 22 is 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;
[0151] an identification module 23, configured to define corresponding data types according to the identification of multiple data sets;
[0152] The compression module 24 is used to define a corresponding compressor according to the data type, the load of the data set and the corresponding importance level;
[0153] The storage module 25 is configured to define a compression schedule for each data set based on the data set, the corresponding compressor, and the real-time load of the thermal printer, construct a corresponding compression combination based on the compression schedule of each data set, and match a corresponding storage space based on multiple compression combinations, the print space, and the print mode of the thermal printer;
[0154] 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.
[0155] See also Figure 9 , refer to the following Figure 9 An electronic device 40 according to this embodiment of the present invention will be described. Figure 9 The electronic device 40 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.
[0156] like Figure 9 As shown, the electronic device 40 is a general-purpose computing device. Components of the electronic device 40 may include, but are not limited to, the at least one processing unit 41, the at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).
[0157] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 performs the steps according to various exemplary embodiments of the present invention described in the above “Example Method” section of this specification.
[0158] 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 .
[0159] 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.
[0160] 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.
[0161] The electronic device 40 may also communicate with one or more external devices (e.g., a keyboard, a pointing device, a Bluetooth device, 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., a router, a modem, 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. Figure 9 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. Figure 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.
[0162] Through the description of the above embodiments, it will be readily understood by those skilled in the art that the example embodiments described herein can be implemented via software or via a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, or mobile hard drive) or on a network and includes several instructions for enabling a computing device (such as a personal computer, server, terminal device, or network device) to execute the methods according to the embodiments of the present disclosure.
[0163] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Furthermore, the computer program instructions are stored therein, and when executed by a computer, the computer executes the above methods.
[0164] In addition, the above describes in detail the storage method and system for printing 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 methods and application scope. In summary, the content of this specification should not be understood as limiting 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: Detecting a thermal printer and collecting the printing space of the thermal printer includes: collecting the location of the thermal printer; triggering positioning detection of the thermal printer based on the location of the thermal printer; collecting the control space of the thermal printer based on the positioning detection of the thermal printer; matching a corresponding collection mode based on the control space of the thermal printer and the model of the thermal printer; associating the control space of the thermal printer with the corresponding collection mode, defining the printing space of the thermal printer based on the control space of the thermal printer and the corresponding collection mode, and collecting the printing space of the thermal printer; Collect multiple print data based on the print space, and construct data sets of different dimensions based on the multiple print data; Defining corresponding data types based on the identification of multiple data sets; Define the corresponding compressor according to the data type, the load of the data set and the importance level of the data; Defining compression progress for each data set based on the data set, the corresponding compressor, and the real-time load of the thermal printer, constructing corresponding compression combinations based on the compression progress of each data set; matching corresponding storage spaces based on multiple compression combinations, print spaces, 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 pending print data, and dynamic interaction is performed on various storage spaces.
2. The method for storing print data of a thermal printer according to claim 1, wherein: 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.
3. The method for storing print data of a thermal printer according to claim 2, wherein: The 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 based on multiple data sets, thermal printer models, and the spatial structure of the printing space; Correlate multiple data sets and identify models; Based on multiple data sets, recognition models and corresponding synchronization modes, synchronous recognition of multiple data sets is triggered, and corresponding data types are defined.
4. The method for storing print data of a thermal printer according to claim 3, wherein: The method of defining a corresponding compressor according to the data type, the load of the data set, and the importance level of the data includes: Freeze each data type; Defining the load of a data set based on dynamic detection of the data set; Defining the importance level of data based on the data collection and data classification scheme of the print space; Associate the data type, the load of the data set, and the importance level of the data; 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 of the data; A corresponding compressor is defined according to the first compression parameter, the second compression parameter and the thermal printer.
5. The method for storing print data of a thermal printer according to claim 4, wherein: The method further comprises defining a compression schedule of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, and constructing a corresponding compression combination based on the compression schedule of each data set; Based on multiple compression combinations, print spaces, and thermal printer print modes, the corresponding storage space is matched, including: Freeze multiple compressors and monitor multiple compressors in real time; Associate data sets, corresponding compressors, and real-time loads of thermal printers; The compression schedule for each data set is defined based on the data set, the corresponding compressor, and the real-time load of the thermal printer.
6. The method for storing print data of a thermal printer according to claim 5, wherein: The method further comprises defining a compression schedule of each data set based on the data set, the corresponding compressor and the real-time load of the thermal printer, and constructing a corresponding compression combination based on the compression schedule of each data set; Based on multiple compression combinations, print spaces, and thermal printer print modes, the corresponding storage space is matched, and further includes: Construct corresponding compression combinations based on the compression progress of each data set; Correlation constructs 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.
7. The method for storing print data of a thermal printer according to claim 6, wherein: 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 architecture, individual data sets, and pending print data, and dynamically interacting with each storage space, including: Freeze multiple storage spaces; Associating multiple storage spaces, various data sets, and corresponding adaptation coefficients; Build an autonomous storage system based on multiple storage spaces, various data sets and corresponding adaptation coefficients.
8. The method for storing print data of a thermal printer according to claim 7, wherein: 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, individual data sets, and pending print data, and dynamically interacting with each storage space, including: Real-time monitoring of pending print data in the print space; Associating autonomous storage systems, various data sets, and pending print data; Trigger autonomous allocation of print data based on autonomous storage systems, various data sets, and pending print data, and dynamically interact with various storage spaces.
9. A storage system for printing 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 the thermal printer according to any one of claims 1 to 8, and the storage system for print data of the thermal printer includes: A collection module is used to detect a thermal printer and collect the printing space of the thermal printer, including: collecting the location of the thermal printer; triggering a location detection of the thermal printer based on the location of the thermal printer; collecting the control space of the thermal printer based on the location detection of the thermal printer; matching a corresponding collection mode based on the control space of the thermal printer and the model of the thermal printer; associating the control space of the thermal printer with the corresponding collection mode, defining the printing space of the thermal printer based on the control space of the thermal printer and the corresponding collection mode, and collecting the printing space of the thermal printer; A data module is used to collect multiple printing data based on the printing space and construct data sets of different dimensions according to the multiple printing data; an identification module, configured to define corresponding data types according to the identification of multiple data sets; A compression module is used to define a corresponding compressor according to the data type, the load of the data set and the importance level of the data; A storage module is configured to define a compression schedule for each data set based on the data set, the corresponding compressor, and the real-time load of the thermal printer, construct a corresponding compression combination based on the compression schedule of each data set, and match a corresponding storage space based on multiple compression combinations, the print space, and the print 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 the autonomous allocation of print data according to the autonomous storage system, various data sets and the print data to be processed, and dynamically interact with various storage spaces.
Citation Information
Patent Citations
Self-adaptive printing method and system of printer
CN118819437A
Print data generation apparatus, printer, and print system
JP2008141594A