Database-based printer control parameter translation method, apparatus, and storage medium
By establishing a database to integrate printer control parameters, the problem of brand-specific printer control programs was solved, enabling unified management and convenient setting of parameters, reducing costs and improving operational efficiency.
Patent Information
- Application Number
- CN202411411941.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-10-10
AI Technical Summary
Existing printer control programs are brand-specific, resulting in high production and maintenance costs, cumbersome parameter settings, and difficulty in compatibility with printers from different brands.
Establish a database, integrate control parameters of different printers, and achieve unified parameter management and dynamic generation of UI components through parameter mapping tables and control modules, thereby reducing maintenance costs and providing a unified parameter library system.
It enables unified management of parameters for printers from different brands, reducing development and maintenance costs and improving operational efficiency and the ease of parameter setting.
Smart Images

Figure CN119322596B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of printing device manufacturing, and in particular to a printer control parameter conversion method based on a database, a device and a storage medium. BACKGROUND
[0002] With the development of the times and the progress of science and technology, printing output is also developing towards intelligence and networking. Users can complete printing functions through data sharing by connecting to the Internet or a local area network, which provides a new way of thinking for the research and development of printing devices. One computer can manage multiple printing devices at the same time to meet the needs of social development. However, most printers on the market are single-use, that is, each type of printer corresponds to a separate control program. If you want to use two different printers, you need to equip two identical control programs. This approach not only increases production costs but also wastes resources. In addition, for some large units, due to large business volume and complex office environments, in order to improve work efficiency and avoid mistakes, multiple printers of the same type need to be configured for assistance, which increases procurement costs and additional maintenance costs. Therefore, how to solve the above problems has become one of the problems to be solved. In view of the above situation, some corresponding technical solutions have been put forward in the prior art to solve this technical problem. Therefore, the parameter table tool often needs to add new UI components to set these new parameters, which is simple but tedious. The parameter name, input range, parameter description and prompt, selectable drop-down list items, UI components for setting, text translation, parameter classification, permission settings, position placement, and many other details need to be designed perfectly. A multifunctional printer parameter definition method disclosed in Chinese Patent Publication No. CN207435969U includes the following steps: (1) determining user information; (2) classifying the user according to the user information and a preset user category; wherein the operation mode of the user is divided into a regular mode and a subset of a stable mode; (3) setting operation parameters for each subset; and adjusting the operation parameters in the corresponding subset when the operation mode of the user changes. This method uses multiple ways to realize the combination of parameters and enables ordinary users to quickly understand their printing habits and preferences, making printing tasks more in line with individual preferences. However, this scheme still has some shortcomings, such as being incompatible with other brands of products and only being effective for self-brand printing products. SUMMARY
[0003] The present application provides a printer control parameter conversion method based on a database, a device and a storage medium to solve the above technical problems.
[0004] The technical solution of the present application is implemented as follows:
[0005] The database-based printer control parameter conversion method comprises the following steps:
[0006] S1, establishing a database, incorporating existing printer control parameters, and establishing a parameter table for the control parameters in the database;
[0007] S2, establishing a parameter mapping table for the parameters of different printer control systems based on the parameter table established in S1;
[0008] S3, establishing a parameter control module based on the parameter mapping table established in S2, and embodying each independent parameter of the parameter mapping table in the parameter control module;
[0009] S4, connecting the parameter control module established in S3 with the parameter setting unit of the printer control system and obtaining modification authority.
[0010] Preferably, in S1, the existing printer control parameters are incorporated and the parameter types and characteristics are analyzed: the collected parameters are analyzed in detail to determine the types of the parameters, such as print quality parameters, resolution, color mode, ink drop size, speed parameters, print speed, paper feed speed, paper handling parameters, paper size, type, thickness, ink cartridge parameters, ink capacity, color. At the same time, the value range, unit, influencing factors and other characteristics of each parameter are understood.
[0011] Preferably, in S2, the process of establishing the parameter mapping table needs to analyze and compare the parameters of different printer control systems in depth, and determine the parameter range that needs to be mapped, select parameters such as resolution, color mode, print speed and paper size, and for each parameter, find out the corresponding relationship between parameters of the same type by comparing the parameter documents and actual tests of different printers.
[0012] Preferably, in S3, all the determined parameters are put into the parameter control module, and the parameter control module displays and organizes the data of these parameters in the form of software control. At the same time, the parameter control module provides a parameter calling interface for the user, which is convenient for program calling and use.
[0013] A database-based printer control parameter conversion device, comprising at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of any one of the above.
[0014] A storage medium comprising computer program instructions which, when executed by a processor, implement the method of any one of the above.
[0015] The application has the advantages of reducing the cumbersome process of modifying parameters and adding new parameters, directly using the way of loading and dynamically generating UI components by the database, reducing the maintenance cost of the parameter table tool, and reducing the error and maintenance cost of the universal program without repeatedly compiling multiple versions of the tool. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 is a schematic diagram of the database-based printer control parameter conversion method of the application. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the application clearer and more understandable, the application is further described below in combination with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the application and do not limit the application.
[0018] Embodiment 1
[0019] As shown in the database-based printer control parameter conversion method, the method comprises the following steps: Figure 1
[0020] S1, establishing a database, incorporating existing printer control parameters, and establishing a parameter table for the control parameters in the database;
[0021] S2, establishing a parameter mapping table for the parameters of different printer control systems according to the parameter table established in S1;
[0022] S3, establishing a parameter control module according to the parameter mapping table established in S2, and embodying each independent parameter of the parameter mapping table in the parameter control module;
[0023] S4, connecting the parameter control module established in S3 with the parameter setting unit of the printer control system and obtaining the modification authority.
[0024] Preferably, in S1, the existing printer control parameters are incorporated and the parameter types and characteristics are analyzed: the collected parameters are analyzed in detail to determine the types of the parameters, such as print quality parameters, resolution, color mode, ink drop size, speed parameters, print speed, paper feed speed, paper handling parameters, paper size, type, thickness, ink cartridge parameters, ink capacity, color. At the same time, the value range, unit, influencing factors and other characteristics of each parameter are understood.
[0025] Preferably, the process of establishing the parameter mapping table in step S2 requires in-depth analysis and comparison of parameters of different printer control systems, and determining the parameter range that needs to be mapped, selecting parameters such as resolution, color mode, printing speed and paper size, and for each parameter, finding the corresponding relationship between parameters of the same type by comparing the parameter documents of different printers and actual testing. For example, there is a mapping relationship between resolution and page width, so it is very convenient to adjust the page width based on the resolution; similarly, the speed parameter can also be converted to the same number of pages or quality in the same way. For example, the paper size can be converted into an area parameter, and then the actual number of pages can be calculated together with the page width and resolution.
[0026] Further, the database of step S1 also includes a definition data source link, which uses ADO.NET to provide a data interface for the program to access external databases, so that the information in the external database can be directly referenced as an internal variable.
[0027] Preferably, the parameter mapping table of step S2 also includes a general parameter representation and a parameter interpretation corresponding to the current printer type.
[0028] Preferably, the parameter control module of step S3 includes a general parameter representation and a parameter interpretation corresponding to the current printer type, and an editing unit for editing parameter values and the names or codes of general parameter representations, so that the corresponding another parameter can be found in the parameter mapping table according to the edited names or codes, or the parameter value corresponding to the parameter name can be edited and saved.
[0029] Preferably, the parameter control module of step S3 also includes an automatic updating function, which automatically synchronizes the changed parameter in the parameter mapping table to the current parameter control module and prompts whether to overwrite the currently set parameter value.
[0030] Preferably, the parameter control module of step S4 also includes an output unit for outputting the currently set parameter value for user reference.
[0031] A device for converting printer control parameters based on a database, comprising at least one processor, at least one memory and computer program instructions stored in the memory, which when executed by the processor implement any of the above-mentioned methods.
[0032] A storage medium comprising computer program instructions which when executed by a processor implement any of the above-mentioned methods.
[0033] In the scheme, since the database is established, and some key control parameters in the existing printer control system are sorted and summarized, a new database is formed, so that these parameters can be uniformly managed, and it is convenient for the operator to check and use, and the work efficiency is improved. In addition, the parameter mapping table is provided, so that different printer control systems can share the same parameter system, which greatly reduces the development cost and simplifies the software design process. Moreover, on the basis of the parameter control module, the functions of quickly querying, setting and modifying the parameter values are realized, so that the operator can more intuitively and conveniently set and manage various parameters.
[0034] Embodiment 2
[0035] The printer control parameter conversion method based on the database comprises the following steps:
[0036] S1, according to the existing printer types and models, the printer parameters are classified, including numerical type parameters, enumeration type parameters and Boolean type parameters;
[0037] The numerical type parameters include resolution and printing speed, the enumeration type parameters include color mode and paper type, and the Boolean type parameters include double-sided printing and automatic paper feeding;
[0038] For the resolution parameter, it can be explained as "the number of dots a printer can print per inch of length, reflecting the clarity of the printout. The range of possible options varies from printer to printer, generally from hundreds of dpi for low-resolution to thousands of dpi for high-resolution. The default value is usually set according to the type and intended use of the printer, for example, an office printer may default at around 600 dpi, while a professional photo printer may default at 1200 dpi or above. If the printer supports multiple resolution modes, such as standard, high definition and ultra-high definition, each mode corresponds to different dpi values."
[0039] The printing speed parameter can be explained as "the number of pages a printer can print per minute, affected by printer hardware performance, print quality settings and paper type, etc. The possible options range from a few pages per minute for slower printers to dozens of pages per minute for faster ones. The default value is usually set by considering the printer performance and common printing task requirements, for example, under normal paper and standard quality settings, the default printing speed may be 20 ppm. The printing speed can be further divided into black and white printing speed and color printing speed, because in many cases the color printing speed will be relatively slow."
[0040] Color Mode: The color mode that a printer can use determines the color representation of the printed output. Common options include RGB (Red, Green, Blue), CMYK (Cyan, Magenta, Yellow, Black), grayscale, etc. Each color mode is suitable for different printing needs, such as RGB mode for color photos and images, and CMYK mode for professional printing. The default value is usually RGB mode, which is suitable for most daily printing tasks. If the printer supports special color modes like Adobe RGB or ProPhoto RGB, these modes usually have a wider color range and are suitable for professional photography and graphic design.
[0041] Paper Type: The types of paper that a printer can accommodate vary widely, including regular paper, photo paper, cardstock, envelopes, etc. Different paper types have different characteristics, such as thickness, glossiness, water absorption, etc., which affect the printing quality and the way the printer feeds the paper. The default value is usually regular paper, which is suitable for general document printing. If the printer supports special paper types, such as label paper, transparent film, etc., these paper types usually require special printing settings.
[0042] S2, according to the parameters classified in S1, through the semantic analysis system, make parameter definition interpretation for each category of parameter item;
[0043] According to the characteristics and definition of the parameters, the parameters of the external printer are classified into the corresponding parameter definition interpretation category. If the parameter completely matches the defined category, it can be directly classified into the category. For example, if the resolution of the external printer is 1200 dpi, which meets the definition of the resolution in the numerical parameter, it can be classified into the resolution category.
[0044] If the parameter does not completely match the defined category, but has similar characteristics, it can be appropriately adjusted and classified. For example, if the color mode of the external printer is not exactly the same as the defined RGB, CMYK, etc. mode, but has similar color representation methods, it can be classified into the closest color mode category according to its characteristics;
[0045] For parameters classified into the same parameter definition interpretation category, it can be further judged whether they belong to the same group. For example, in the numerical parameter, if the resolutions of two printers are both in the high-resolution range (such as 1200 dpi and above), they can be considered to belong to the same group. Parameters in the same group usually have similar performance and application scenarios, and can be compared and analyzed.
[0046] For different parameter definitions, the category of the parameter can be explained, and it can be determined whether they are related or have an impact. For example, the double-sided printing function in the Boolean parameter may affect the selection of paper type, as double-sided printing usually requires the use of paper of a specific thickness and quality. This association can help users make more reasonable decisions when setting parameters.
[0047] S3, according to the parameter definition explanation of S2, establish the parameter items of each category;
[0048] For each parameter definition explanation, establish the parameter items of that definition explanation, such as resolution, which needs to be divided into, numerical parameter items, and small categories expressed in simple semantics or words: resolution parameter, while color mode, when divided into enumeration type parameter items, and establish the corresponding options, such as RBG mode, CMYK mode, and smaller categories, material class or scene mode class, specifically: enumeration type parameter-color mode-scene mode, and because the enumeration type parameter is composed of multiple single numerical type parameters, it is also possible to select and modify a single value.
[0049] S4, according to the parameter categories and small category parameter items of each parameter category established in S1-S3, establish a complete parameter editing module;
[0050] The parameter editing module includes creating a parameter table to store detailed information of all printer parameters. The table fields can include parameter ID, parameter name, parameter type (numerical, enumeration, Boolean, etc.), value range, default value, description, etc.
[0051] For enumeration type parameters, an additional association table can be created to record the specific meaning of each enumeration value and the corresponding display name.
[0052] Establish a UI component setting table to associate parameters with specific UI components. The table fields can include parameter ID, UI component type (dropdown box, input box, checkbox, etc.), display attributes (such as label name, placeholder, etc.), validation rules, etc.
[0053] Permission and model association table:
[0054] Create a permission and device model association table to determine the corresponding accessible parameters for different user permissions and device models. The table fields can include model ID, permission level, parameter ID list, etc.
[0055] When the program starts, read the data of the parameter table and UI component setting table from the database. According to the parameter type and UI component settings, dynamically generate the corresponding UI components, and display the default value of the parameter in the corresponding component.
[0056] Including the following functions:
[0057] Pagination:
[0058] If there are a large number of parameters, pagination can be implemented. According to the total number of parameters stored in the database and the number of parameters displayed per page, the total number of pages is calculated. Provide pagination navigation buttons on the UI to allow users to switch between different pages to view parameters.
[0059] Grouping function:
[0060] Parameters can be grouped according to their type, function or other classification criteria. Define the grouping information of parameters in the database, and the program reads these information and displays the parameters in the form of groups on the UI, making it easier for users to find parameters of a specific type.
[0061] Parameter setting:
[0062] Users can set parameters through the generated UI components. When users enter numerical values in input boxes, select options in drop-down boxes, or switch checkbox states, the program updates the parameter values in memory in real time.
[0063] Save function:
[0064] When the user finishes setting the parameters, click the save button. The program saves the updated parameter values back to the parameter table in the database. At the same time, information such as the modification time and the modifying user can be recorded to facilitate version control and auditing.
[0065] Permission and model control:
[0066] When the program loads parameters, according to the current user's permission level and the connected device model, determine the accessible parameter list from the permission and model association table. Only generate and display the UI components corresponding to these parameters to ensure that users can only modify the parameters they have access to
[0067] S5, establish an external connection unit of the parameter editing module, connect the corresponding printer operating system.
[0068] In the parameter editing module, provide a connection button or menu option that users can click to connect the printer operating system. When the user connects the printer operating system, the parameter editing module will automatically detect the model and parameter settings of the printer and display them on the user interface. Users can modify these parameters and send the modified parameter values back to the printer operating system.
[0069] After establishing a connection, the status and parameter changes of the printer can be monitored in real time, and when the parameters of the printer change, the parameter editing module will automatically update the corresponding parameter settings to ensure that users can always see the latest parameter information
[0070] Preferably, in the step S1, the enumerated type parameters and the Boolean type parameters are combined by a plurality of individual parameters.
[0071] Preferably, in the step S1, the numerical type parameter is composed of a single parameter.
[0072] Preferably, in the step S2, the parameter definition explanation includes the possible options contained in each parameter item and its default, default parameter item, and if the default is missing, the display marker is missing.
[0073] Preferably, the step S5 is the external user interface of the parameter editing module.
[0074] Preferably, in the step S5, after connecting to the corresponding printer operating system, the parameter editing module obtains the control parameters of the printer operating system, and analyzes the control parameters of the current printer operating system through the semantic analysis system, and gives a definition explanation;
[0075] Further, the semantic analysis system analyzes the control parameters of the current printer operating system and gives a definition explanation, and classifies the definition explanation through the semantic analysis system into the parameter category of the current parameter editing module and the small parameter item under the category;
[0076] Further, the classification of the definition explanation through the semantic analysis system, when the same category parameter item is not found, self-defined editing or automatic analysis of the parameter is performed, the self-defined editing is manually classified, and the parameter is manually operated to be classified into the corresponding category and parameter item; or classified by automatic analysis;
[0077] Further, the automatic analysis includes modifying the parameter value that cannot be classified, and then automatically printing the same pattern by the printer after modifying the parameter value, and analyzing and comparing the pre-printed pattern, i.e. the pattern without modifying the parameter value, and the pattern after modifying the parameter value, through image recognition, the analysis result is expressed in text form, the text description is explained through the semantic analysis system, and is classified into the existing category, if still cannot be classified, a new category is opened, and the text description of the category is recorded.
[0078] In the above scheme, since statistical analysis is made on all controllable parameters of the printer according to the existing printer types and models, each parameter in each category is marked with a code, and then a complete and practical database system is formed. On this basis, the design of the parameter editing window generated is very simple and clear, and only a few simple drag and click operations are needed to complete the modification of the parameters, and the parameters can be backed up at any time, thereby ensuring the reliability and timeliness of the work. In addition, this flexible parameter writing method also provides a huge expansion space, and more types of parameters can be added in the later stage, thereby improving the adaptability and maintainability. The above disclosure is only a few specific embodiments of the present application, but the embodiments of the present application are not limited thereto, and any changes that can be thought of by those skilled in the art should fall within the protection scope of the present application.
Claims
1. A database-based method for converting printer control parameters, comprising the following steps: S1. Based on the existing printer types and models, classify the printer parameters into numerical parameters, enumerated parameters, and Boolean parameters; The numerical parameters include resolution and printing speed; the enumerated parameters include color mode and paper type; and the Boolean parameters include duplex printing and automatic paper feeding. S2, based on the parameters classified in S1, uses a semantic analysis system to define and explain the parameters for each category; Based on the characteristics and definitions of the parameters, the parameters of the external printer are classified into the corresponding parameter definition interpretation categories. If a parameter completely matches a defined category, it is directly classified into that category. If a parameter does not completely match a defined category but has similar characteristics, it is adjusted and classified. Specifically, if the color mode of the external printer is not exactly the same as the defined RGB and CMYK modes, but has a similar color representation, it is classified into the closest color mode category according to its characteristics. For parameters that fall into the same parameter definition and explanation category, further determine whether they belong to the same group. Specifically, in numerical parameters, if the resolutions of two printers are both in the high-resolution range, they are considered to belong to the same group. Parameters in the same group have similar performance and application scenarios, and can be compared and analyzed. For parameters with different parameter definition interpretation categories, determine whether there is a correlation or influence between them; S3, based on the parameter definition interpretation of S2, establish the parameter items for each category; For each parameter definition, an explanation is provided, and a parameter item for that definition explanation is created; S4. Based on the parameter categories established in S1-S3 and the sub-parameter items of each parameter category, establish a complete parameter editing module; The parameter editing module includes creating a parameter table to store detailed information about all printer parameters. The table fields include parameter ID, parameter name, parameter type, value range, default value, and description. The parameter types include numeric, enumerated, and boolean. For enumeration parameters, an additional association table is created to record the specific meaning of each enumeration value and its corresponding display name; Create a UI component settings table to associate parameters with specific UI components. The table fields include parameter ID, UI component type, display attributes, and validation rules. The parameter editing module also includes creating a permission and device model association table to determine the accessible parameters corresponding to different user permissions and device models. The table fields include device ID, permission level, and parameter ID list. When the parameter editing module starts, it reads data from the parameter table and UI component settings table from the database. Based on the parameter type and UI component settings, it dynamically generates the corresponding UI components and displays the default values of the parameters in the corresponding components. S5 establishes an external connection unit for the parameter editing module, connecting to the corresponding printer operating system; The parameter editing module provides a connection button or menu option. Users click this button or option to connect to the printer operating system. When the user connects to the printer operating system, the parameter editing module will automatically detect the printer model and parameter settings and display them on the user interface. Users can modify these parameters and send the modified parameter values back to the printer operating system. After the connection is established, the printer's status and parameter changes are monitored in real time. When the printer's parameters change, the parameter editing module will automatically update the corresponding parameter settings to ensure that the user can always see the latest parameter information.
2. The database-based printer control parameter conversion method according to claim 1, characterized in that, In step S1, the enumeration type parameter and the Boolean type parameter are composed of a combination of multiple individual parameters.
3. The database-based printer control parameter conversion method according to claim 1, characterized in that, In step S1, the numerical parameter consists of a single parameter.
4. The database-based printer control parameter conversion method according to claim 1, characterized in that, In step S2, the parameter definition explanation includes the possible options contained in each parameter item and its default and default parameter items. If a parameter is missing, a display mark is not provided.
5. The database-based printer control parameter conversion method according to claim 1, characterized in that, Step S5 is the external user interface of the parameter editing module.
6. The database-based printer control parameter conversion method according to claim 1, characterized in that, In step S5, after connecting to the corresponding printer operating system, the parameter editing module obtains the control parameters of the printer operating system, analyzes the control parameters of the current printer operating system through the semantic analysis system, and provides definitions and explanations.
7. The database-based printer control parameter conversion method according to claim 6, characterized in that, The semantic analysis system analyzes the control parameters of the current printer operating system and provides definitions and explanations. The semantic analysis system then categorizes these definitions and explanations into the parameter categories of the current parameter editing module and the subcategories of parameter items under those categories. The definition is categorized using a semantic analysis system. When no similar parameter item is found, the parameter is either manually edited or automatically analyzed. The manual editing involves manually categorizing the parameter into the corresponding category and parameter item; or the parameter is categorized after automatic analysis. The automatic analysis includes modifying unclassifiable parameter values, then automatically printing the same pattern on the printer after the parameter values have been modified. Through image recognition, the pre-printed pattern (i.e., the pattern without modified parameter values) and the pattern after the parameter values have been modified are analyzed and compared. The analysis results are expressed in text form. Through a semantic analysis system, the textual expression is interpreted and classified into an existing category. If it still cannot be classified, a new category is created and a textual description of the category is recorded.
8. A device for converting printer control parameters based on a database, characterized in that, The method includes at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method described in any one of claims 1-7.
9. A storage medium, characterized in that, This includes implementing the method described in any one of claims 1-7 when computer program instructions are executed by a processor.
Citation Information
Patent Citations
Road box stall
CN207435969U
Local express sheet printing method, device and equipment and storage medium
CN111324317A