Printer control parameter conversion method and device based on database and storage medium

By establishing a database and parameter mapping table, the unified management of printer control parameters is achieved, which solves the cumbersome settings and compatibility of printer control parameters, reduces costs and work difficulties, improves efficiency, and supports the unified management of multi-brand printers.

CN119322596AActive Publication Date: 2025-01-17GUANGZHOU SENYANG ELECTRONIC TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411411941.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-17
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

The existing printer control parameters are cumbersome and cannot be compatible with products of different brands, which increases production and maintenance costs, and for large units, the complexity and resource waste of managing multiple printers is difficult to solve.

Method used

By establishing a database, existing printer control parameters are included and parameter tables are formed, parameter mapping tables and parameter control modules are established, unified management of parameters and dynamic generation of UI components, reducing the cumbersomeness of parameter settings and maintenance costs, and supporting multiple brands Unified printer management.

Benefits of technology

It realizes rapid query, setting and modification of parameters, reduces work difficulty and cost, improves work efficiency, and supports unified management of multi-brand printers, simplifying the software design process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119322596A_ABST
    Figure CN119322596A_ABST
Patent Text Reader

Abstract

The invention discloses a database-based printer control parameter conversion method and device and a storage medium, and the method comprises the following steps: S1, incorporating existing printer control parameters, and dividing the existing printer control parameters into a plurality of categories according to the characteristics of the existing printer control parameters; s2, analysis is carried out according to different printer control systems, and parameters needing to be converted are determined; s3, constructing corresponding parameter pages according to the determined parameters, and combining the independent pages into a whole to form a configuration file existing in a file form; and S4, storing the configuration file to a database or a mobile hard disk for subsequent operator access, and according to the application, a single data structure is utilized to meet various business requirements, so that the development efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of printing equipment manufacturing, and in particular to a printer control parameter conversion method, equipment and storage medium based on a database. Background Art

[0003] With the development of the times and the advancement of science and technology, print output is also developing in the direction of intelligence and networking. Users can complete the printing function by connecting to the Internet or LAN through data sharing, which provides new ideas for the research and development of printing equipment, so that one computer can manage multiple printing devices at the same time to meet the needs of social development. However, most of the printers on the market are used alone, that is, each model 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 practice not only increases production costs, but also causes waste of resources; in addition, for some large units, due to the large business volume and complex and diverse office environment, in order to improve work efficiency and avoid work errors, it is necessary to configure multiple printers of the same type for assistance, which will increase procurement costs and additional maintenance costs. Therefore, how to solve the above problems has become one of the problems that need to be solved urgently. In view of the above situation, some corresponding technical solutions have been introduced 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. The process is simple but complicated and trivial; from parameter name, input range, parameter description and prompt, selectable drop-down list items, setting UI components, text translation, parameter classification, permission setting, position placement... and many other details need to be improved and designed. A multi-function printer parameter definition method with Chinese patent publication number CN207435969U includes the following steps: (1) determining user information; (2) classifying the user according to the user information and the preset user category; wherein the user's operation mode is divided into a subset of a normal mode and a stable mode; (3) setting the operation parameters of each subset; when the user's operation mode changes, adjusting the operation parameters in the corresponding subset. The method adopts a variety of ways to realize the combination of parameters, and can quickly let ordinary users understand their printing habits and preferences, so that the printing job is more in line with personal preferences. However, the solution still has certain disadvantages, such as it is not compatible with products of other brands, and can only have a good effect on the printing products of its own brand. Summary of the invention

[0004] In order to solve the above-mentioned technical problems, the present invention provides a printer control parameter conversion method, device and storage medium based on a database.

[0005] The technical solution of the present invention is achieved in this way:

[0006] The printer control parameter conversion method based on the database includes the following steps:

[0007] S1, establish a database, incorporate existing printer control parameters, and establish a parameter table for the control parameters in the database;

[0008] S2, establishing a parameter mapping table for parameters of different printer control systems using the parameter table established in S1;

[0009] S3, establishing a parameter control module according to the parameter mapping table established in S2, and reflecting each independent parameter in the parameter mapping table in the parameter control module;

[0010] S4, according to the parameter control module established in S3, connect with the parameter setting unit of the printer control system and obtain modification authority.

[0011] Preferably, in said 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 parameter types, such as print quality parameters, resolution, color mode, ink drop size, etc., speed parameters, printing speed, paper feed speed, etc., paper handling parameters, paper size, type, thickness, etc., ink cartridge parameters, ink capacity, color. At the same time, the value range, unit, influencing factors and other characteristics of each parameter are understood.

[0012] Preferably, the process of establishing the parameter mapping table in S2 requires in-depth analysis and comparison of the parameters of different printer control systems, and determining the parameter range that needs to be mapped. The selected parameters include resolution, color mode, print speed and paper size, and for each parameter, by comparing the parameter documents of different printers and actual tests, find out the correspondence between parameters of the same type.

[0013] Preferably, in S3, all determined parameters are put into a parameter control module, which will display and organize the data of these parameters in the form of software controls. At the same time, the parameter control module provides the user with a parameter calling interface to facilitate program calling and use.

[0014] A device for converting printer control parameters based on a database comprises at least one processor, at least one memory and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, any one of the above methods is implemented.

[0015] A storage medium comprises computer program instructions which, when executed by a processor, implement any of the methods described above.

[0016] The advantages of the present invention are: reducing the cumbersome process of modifying parameters and adding new parameters; directly using the method of loading and dynamically generating UI components from the database, reducing the maintenance cost of parameter table tools; general programs do not need to repeatedly compile multiple versions of tools, reducing errors and maintenance costs. This solution proposes a functional parameter library system that can uniformly manage multiple control parameters in the printing process through research on existing mainstream brand printers and control technologies. The system can integrate parameter information of various brands and provide operators with more options. More importantly, it makes parameter management more convenient and quick, reduces the difficulty and workload of staff, and improves work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of the printer control parameter conversion method based on database of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the specific implementation regulations described herein are only used to explain the present invention and are not used to limit the present invention.

[0019] Example 1

[0020] like Figure 1 The printer control parameter conversion method based on the database shown includes the following steps:

[0021] S1, establish a database, incorporate existing printer control parameters, and establish a parameter table for the control parameters in the database;

[0022] S2, establishing a parameter mapping table for parameters of different printer control systems using the parameter table established in S1;

[0023] S3, establishing a parameter control module according to the parameter mapping table established in S2, and reflecting each independent parameter in the parameter mapping table in the parameter control module;

[0024] S4, according to the parameter control module established in S3, connect with the parameter setting unit of the printer control system and obtain modification authority.

[0025] Preferably, in said 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 parameter types, such as print quality parameters, resolution, color mode, ink drop size, etc., speed parameters, printing speed, paper feed speed, etc., paper handling parameters, paper size, type, thickness, etc., ink cartridge parameters, ink capacity, color. At the same time, the value range, unit, influencing factors and other characteristics of each parameter are understood.

[0026] Preferably, the process of establishing the parameter mapping table in S2 requires in-depth analysis and comparison of the parameters of different printer control systems, and determines the parameter range that needs to be mapped. The selected parameters include resolution, color mode, print speed and paper size, and for each parameter, by comparing the parameter documents of different printers and actual tests, find out the corresponding relationship between the same type of parameters. For example, there is a mapping relationship between resolution and page width, so the page width can be easily adjusted 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 another example, the paper size can be converted into an area parameter, and then the actual number of pages is calculated together with the page width and resolution.

[0027] Furthermore, the database of step S1 also includes defining a data source link, using ADO.NET to provide a data interface for the program to access an external database, so that the information in the external database can be directly referenced as an internal variable.

[0028] Preferably, the parameter mapping table of step S2 further includes general parameter representation and parameter explanation corresponding to the current printer type.

[0029] Preferably, the parameter control module of step S3 includes a general parameter representation, a parameter interpretation corresponding to the current printer type, and an editing unit for editing parameter values ​​and editing the name or code of the general parameter representation. Another corresponding parameter can be found in the parameter mapping table based on the edited name or code, or the parameter value corresponding to the parameter name can be custom edited and saved.

[0030] Preferably, the parameter control module of step S3 also includes an automatic update function. When the user changes a parameter in the parameter mapping table, it will be automatically synchronized to the current parameter control module and prompt whether to overwrite the currently set parameter value.

[0031] Preferably, the parameter control module of step S4 further includes an output unit for outputting the currently set parameter value for user reference.

[0032] A device for converting printer control parameters based on a database comprises at least one processor, at least one memory and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, any one of the above methods is implemented.

[0033] A storage medium comprises computer program instructions which, when executed by a processor, implement any of the methods described above.

[0034] In this solution, a database is established and some key control parameters in the existing printer control system are sorted and summarized to form a new database, so that these parameters can be managed in a unified manner, which is convenient for operators to consult and use, and improves work efficiency. In addition, a parameter mapping table is provided so that different printer control systems can share the same set of parameter systems, greatly reducing development costs and simplifying the software design process. Moreover, based on the parameter control module, functions such as rapid query, setting, and modification of parameter values ​​are realized, so that operators can set and manage various parameters more intuitively and conveniently.

[0035] Example 2

[0036] The printer control parameter conversion method based on the database includes the following steps:

[0037] S1, classifying printer parameters according to existing printer types and models, including numerical parameters, enumeration parameters and Boolean parameters;

[0038] The numerical parameters include resolution and printing speed, the enumeration parameters include color mode and paper type, and the Boolean parameters include double-sided printing and automatic paper feeding;

[0039] The resolution parameter can be explained as "the number of dots that the printer can print per inch, reflecting the clarity of the printed output. 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 of printer and intended use. For example, an office printer may default to around 600dpi, while a professional photo printer may default to 1200dpi and above. If the printer supports multiple resolution modes, such as standard, high definition, and ultra-high definition, each mode corresponds to a different dpi value."

[0040] The print speed parameter can be explained as "the number of pages a printer can print per minute, which is affected by factors such as printer hardware performance, print quality settings, and paper type. Possible options range from a slow few pages per minute to a fast dozens of pages per minute. The default value is usually set based on a combination of printer performance and common printing task requirements. For example, under ordinary paper and standard quality settings, the default print speed may be 20ppm. The print speed can be further subdivided into black and white print speed and color print speed, because in many cases color print speed will be relatively slower."

[0041] Color Mode: The color mode that the 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, for example, RGB mode is suitable for color photos and image printing, and CMYK mode is more suitable 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, such as Adobe RGB or ProPhoto RGB, these modes usually have a wider color range and are suitable for professional photography and graphic design fields.

[0042] Paper Type: "The printer can accommodate a variety of paper types, including plain paper, photo paper, card stock, envelopes, and more. Different paper types have different characteristics, such as thickness, glossiness, and absorbency, which affect print quality and the way the printer feeds paper. The default value is usually plain paper, which is suitable for general document printing. If the printer supports special paper types, such as labels, transparencies, and so on, these paper types usually require specific print settings."

[0043] S2, based on the parameters classified in S1, uses the semantic analysis system to make parameter definition interpretations for each category of parameter items;

[0044] 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 1200dpi, it meets the definition of resolution in the numerical parameter, and it can be classified into the resolution category.

[0045] If the parameters do not completely conform to the defined categories, but have similar characteristics, they can be appropriately adjusted and classified. For example, if the color mode of an external printer is not exactly the same as the defined RGB, CMYK, etc. modes, but has similar color expressions, it can be classified into the closest color mode category based on its characteristics;

[0046] For parameters that fall into the same parameter definition and interpretation category, you can further determine whether they belong to the same group. For example, in numerical parameters, if the resolutions of two printers are both within the high-resolution range (such as 1200dpi 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.

[0047] For parameters with different parameter definition interpretation categories, you can determine whether they are associated or influenced. For example, the duplex printing function in a Boolean parameter may affect the choice of paper type, because duplex 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.

[0048] S3, establish the parameter items for each category according to the parameter definition interpretation of S2;

[0049] For the definition and explanation of each parameter, establish the parameter items of the definition and explanation, for example, resolution needs to be divided into numerical parameter items and small categories expressed with concise semantics or words: resolution parameters, and color mode should be divided into enumeration parameter items, and corresponding options should be established, such as RBG mode, CMYK mode, and smaller categories, material category or scenario mode category, such as: enumeration parameter-color mode-scenario mode, and, since the enumeration parameter is composed of multiple single numerical parameters, you can also choose to modify a single numerical value.

[0050] S4, establishing a complete parameter editing module according to the parameter categories established in S1-S3 and the sub-category parameter items of each parameter category;

[0051] The parameter editing module includes creating a parameter table for storing detailed information of all printer parameters. The fields in the table may include parameter ID, parameter name, parameter type (numeric type, enumeration type, Boolean type, etc.), value range, default value, description, etc.

[0052] For enumeration type parameters, you can create an additional association table to record the specific meaning of each enumeration value and the corresponding display name.

[0053] Create a UI component setting table to associate parameters with specific UI components. The fields in the table can include parameter ID, UI component type (drop-down box, input box, check box, etc.), display properties (such as label name, placeholder, etc.), validation rules, etc.

[0054] Table of association between permissions and models:

[0055] Create a table that associates permissions with device models to determine the accessible parameters for different user permissions and device models. The fields in the table can include model ID, permission level, parameter ID list, etc.

[0056] When the program starts, the data of the parameter table and UI component setting table are read from the database. According to the parameter type and UI component setting, the corresponding UI component is dynamically generated, and the default value of the parameter is displayed in the corresponding component.

[0057] Features include:

[0058] Paging function:

[0059] If there are a large number of parameters, you can implement paging. Calculate the total number of pages based on the total number of parameters stored in the database and the number of parameters displayed per page. Provide paging navigation buttons on the UI to allow users to switch to different pages to view parameters.

[0060] Grouping function:

[0061] Parameters can be grouped according to their type, function, or other classification criteria. Define the grouping information of parameters in the database. After the program reads this information, it displays the parameters in the form of groups on the UI, making it easier for users to find parameters of a specific type.

[0062] Parameter settings:

[0063] Users can set parameters through the generated UI components. When users enter a value in the input box, select an option in the drop-down box, or toggle the status of a checkbox, the program updates the parameter value in memory in real time.

[0064] Save function:

[0065] When the user completes the parameter setting, click the Save button. The program saves the updated parameter value back to the parameter table in the database. At the same time, the parameter modification time and modification user information can be recorded for version control and auditing.

[0066] Permission and model control:

[0067] When the program loads parameters, the list of accessible parameters is determined from the permission and model association table based on the current user's permission level and the connected device model. Only UI components corresponding to these parameters are generated and displayed to ensure that users can only modify the parameters they have permission to access.

[0068] S5, establishing an external connection unit of the parameter editing module, and connecting to the corresponding printer operating system.

[0069] In the parameter editing module, a connection button or menu option is provided, and the user can click the 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. The user can modify these parameters and send the modified parameter values ​​back to the printer operating system.

[0070] After the connection is established, the printer status and parameter changes can be monitored in real time. When the printer parameters change, the parameter editing module will automatically update the corresponding parameter settings to ensure that users can always see the latest parameter information.

[0071] Preferably, in step S1, the enumeration type parameter and the Boolean type parameter are composed of a plurality of separate parameters.

[0072] Preferably, in step S1, the numerical parameter consists of a single parameter.

[0073] Preferably, in step S2, the parameter definition explanation includes possible options contained in each parameter item and its default and default parameter items. If default, the display mark is missing.

[0074] Preferably, the step S5 is an external user interface of the parameter editing module.

[0075] Preferably, in 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;

[0076] Furthermore, the semantic analysis system analyzes the control parameters of the current printer operating system and provides a definition explanation, and the semantic analysis system classifies the definition explanation into the parameter category of the current parameter editing module and the sub-category parameter items under the category;

[0077] Furthermore, the definition interpretation is classified by the semantic analysis system. When no parameter item of the same category is found, custom editing is performed or the parameter is automatically analyzed. The custom editing is manually classified, and the parameter is manually classified into the corresponding category and parameter item; or the parameter is classified after automatic analysis;

[0078] Furthermore, the automatic analysis includes modifying the parameter values ​​that cannot be classified, and then automatically printing the same pattern on the printer after the parameter values ​​are modified. Through image recognition, the pre-printed pattern, that is, the pattern without modifying the parameter value, and the pattern after the parameter value is modified are analyzed and compared. The analysis results are expressed in text form. Through the semantic analysis system, the text description is interpreted and classified into the existing category. If it still cannot be classified, a new category is opened and the text description of the category is recorded.

[0079] In the above scheme, since the parameters of all controllable printers are statistically analyzed according to the existing printer types and models, the parameters in each category are respectively identified by codes, thereby forming a complete and practical database system. The design of the parameter editing window generated on this basis is very simple and clear. Only a few simple drags and clicks are needed to complete the modification of parameters, and the backup can be saved at any time, ensuring the reliability and timeliness of the work. In addition, this flexible and changeable parameter writing method also provides it with a huge expansion space, and more types of parameters can be added later to improve its adaptability and maintainability. The above discloses only a few specific embodiments of the present invention, but the embodiments of the present invention are not limited to this, and any changes that can be thought of by technicians in this field should fall within the protection scope of the present invention.

Claims

1. A printer control parameter conversion method based on a database, characterized in that: The steps include: S1, establish a database, incorporate existing printer control parameters, and establish a parameter table for the control parameters in the database; S2, establishing a parameter mapping table for parameters of different printer control systems using the parameter table established in S1; S3, establishing a parameter control module according to the parameter mapping table established in S2, and reflecting each independent parameter in the parameter mapping table in the parameter control module; S4, according to the parameter control module established in S3, connect with the parameter setting unit of the printer control system and obtain modification authority.

2. The printer control parameter conversion method based on database according to claim 1, characterized in that: 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 parameter types, such as print quality parameters, resolution, color mode, ink drop size, etc., speed parameters, printing speed, paper feed speed, etc., paper handling parameters, paper size, type, thickness, etc., ink cartridge parameters, ink capacity, color. At the same time, understand the value range, unit, influencing factors and other characteristics of each parameter.

3. The printer control parameter conversion method based on database according to claim 1, characterized in that: The process of establishing the parameter mapping table in S2 requires in-depth analysis and comparison of the parameters of different printer control systems, and determines the parameter range that needs to be mapped. The selected parameters include resolution, color mode, print speed and paper size. For each parameter, by comparing the parameter documents of different printers and actual tests, find out the corresponding relationship between the same type of parameters.

4. The printer control parameter conversion method based on database according to claim 1, characterized in that: In the step S3, all determined parameters are put into a parameter control module, and the parameter control module will display and organize the data of these parameters in the form of software controls.

5. The printer control parameter conversion method based on database according to claim 1, characterized in that: The parameter control module provides the user with a parameter calling interface, which is convenient for program calling and use.

6. The printer control parameter conversion method based on database according to claim 1, characterized in that: In S4, 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 gives a definition explanation. According to the definition explanation, the corresponding parameter item is found in the mapping table and automatically classified into the parameter item.

7. The printer control parameter conversion method based on database according to claim 1, characterized in that: The parameter mapping table in step S2 uniformly uses the semantic expression of the parameter mapping table for parameters belonging to the same category, and is uniformly controlled and edited and modified.

8. A device for converting printer control parameters based on a database, characterized in that: The method comprises at least one processor, at least one memory and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.

9. A storage medium, characterized in that: The method comprises implementing any one of claims 1 to 7 when the 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

  • Printing cartridge with an integrated circuit device

    CN1558829A

  • Method for online set of printer parameter

    CN1908886A

  • Printer controller, printer control method and storage medium

    CN1967462A