Printer label instruction parsing method and related apparatus

By acquiring user identity information and label attribute information, the printer label instruction parsing algorithm and control parameters are optimized, solving the problem of mechanization in the printer label instruction parsing process and improving the printer's intelligence and user experience.

CN119473179BActive Publication Date: 2026-06-02SHENZHEN ZMIN TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN ZMIN TECH
Filing Date
2024-10-11
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

The current printer label instruction parsing process is too mechanical and lacks flexibility, resulting in a poor user experience.

Method used

By acquiring the target user's identity information and tag attribute information, the corresponding tag instruction parsing algorithm and control parameters are determined, the tag instruction parsing process is optimized, and personalized parsing and processing are achieved.

Benefits of technology

It enhances the printer's intelligence and user experience, meets users' personalized needs, and improves the printer's adaptability and processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473179B_ABST
    Figure CN119473179B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a printer label instruction analysis method and a related device, applied to an electronic device, the method comprising: obtaining a target label instruction input by a target user for a target printer, the target label instruction comprising target identity information, target label attribute information and target label content of the target user; determining a target label instruction analysis algorithm corresponding to the target label attribute information; determining a target label instruction analysis control parameter corresponding to the target label instruction analysis algorithm according to the target identity information; performing analysis on the target label instruction by the target label instruction analysis algorithm according to the target label instruction analysis control parameter, to obtain a target processing parameter for the target label content and the target label content; and processing the target label content according to the target processing parameter to determine a target processing result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of printer control technology or computer technology, specifically to a printer label instruction parsing method and related apparatus. Background Technology

[0002] With the rapid development of electronic technology and the acceleration of industrialization, printers are becoming increasingly widespread. Therefore, the demand for efficient and accurate interpretation of printer label instructions is becoming more and more urgent. However, current printing technologies are relatively mechanized and lack flexibility, which reduces the user experience. Therefore, the question of how to improve the intelligence of printers urgently needs to be addressed. Summary of the Invention

[0003] This application provides a printer label instruction parsing method and related apparatus, which can improve the intelligence of the printer.

[0004] In a first aspect, embodiments of this application provide a printer label instruction parsing method, applied to electronic devices, the method comprising:

[0005] Obtain a target label instruction for a target printer input by a target user, wherein the target label instruction includes the target user's target identity information, target label attribute information, and target label content;

[0006] Determine the target tag instruction parsing algorithm corresponding to the target tag attribute information;

[0007] Based on the target identity information, determine the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;

[0008] The target tag instruction parsing algorithm is executed according to the target tag instruction parsing control parameters to parse the target tag instruction, thereby obtaining the target processing parameters for the target tag content and the target tag content;

[0009] The target tag content is processed according to the target processing parameters to determine the target processing result.

[0010] Secondly, embodiments of this application provide a printer label instruction parsing device, applied to an electronic device, the device comprising: an acquisition unit, a determination unit, a parsing unit, and a processing unit, wherein...

[0011] The acquisition unit is used to acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes the target user's target identity information, target label attribute information, and target label content;

[0012] The determining unit is configured to determine the target tag instruction parsing algorithm corresponding to the target tag attribute information; and to determine the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information.

[0013] The parsing unit is used to execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameters, so as to obtain the target processing parameters for the target tag content and the target tag content;

[0014] The processing unit is used to process the target tag content according to the target processing parameters and determine the target processing result.

[0015] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the first aspect of embodiments of this application.

[0016] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the first aspect of embodiments of this application.

[0017] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of embodiments of this application. The computer program product may be a software installation package.

[0018] Implementing the embodiments of this application has the following beneficial effects:

[0019] As can be seen, the printer label instruction parsing method and related apparatus described in this application embodiment are applied to electronic devices. They acquire target label instructions for a target printer input by a target user. The target label instructions include the target user's target identity information, target label attribute information, and target label content. A target label instruction parsing algorithm corresponding to the target label attribute information is determined. Target label instruction parsing control parameters corresponding to the target label instruction parsing algorithm are determined based on the target identity information. The target label instruction parsing algorithm is executed according to the target label instruction parsing control parameters to parse the target label instructions, obtaining target processing parameters and the target label content. The target label content is processed according to the target processing parameters to determine the target processing result. Firstly, corresponding label instruction parsing algorithms can be configured for different label instructions. Secondly, the label instruction parsing control parameters are optimized using identity information, giving the optimized label instruction parsing control parameters an identity attribute. Thirdly, since the corresponding label instruction parsing algorithm is executed using the optimized label instruction parsing control parameters based on identity information, the parsing effect is deeply adapted to the user's identity, and the processing effect is also deeply adapted to the user's identity. Therefore, it meets the user's personalized needs, helps improve the user experience, and enhances the printer's intelligence. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart illustrating a printer label instruction parsing method provided in an embodiment of this application;

[0022] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0023] Figure 3 This is a block diagram of the functional units of a printer label instruction parsing device provided in an embodiment of this application. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0025] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0026] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0027] The electronic devices described in this application embodiment may include printers, smartphones (such as Android phones, iOS phones, Windows Phones, etc.), tablet computers, PDAs, dashcams, laptops, mobile internet devices (MIDs) or wearable devices (such as smartwatches, Bluetooth headsets), etc. The above are merely examples and not exhaustive, and include but are not limited to the above-mentioned electronic devices. The electronic devices may also include servers, such as cloud servers.

[0028] In this application embodiment, the target printer may include at least one of the following: laser printer, inkjet printer, dot matrix printer, thermal printer, etc., without limitation.

[0029] In this embodiment, the target printer may include a label printer. The label printer does not need to be connected to a computer. The label printer has its own input module (such as a touch screen, keyboard, etc.), and has built-in fonts, font libraries, and a considerable number of label template formats. Then, the label content can be directly input, edited, and formatted as needed through its built-in LCD screen, and finally, it is a smart printer that directly prints the output.

[0030] The embodiments of this application will be described in detail below.

[0031] Please see Figure 1 , Figure 1 This is a flowchart illustrating a printer label instruction parsing method provided in an embodiment of this application. As shown in the figure, it is applied to electronic devices. This printer label instruction parsing method includes:

[0032] 101. Obtain the target label instruction for the target printer input by the target user, wherein the target label instruction includes the target user's target identity information, target label attribute information, and target label content.

[0033] In this embodiment, the target identity information may include at least one of the following: name, gender, position, age, employee number, department, job title, permissions, physical condition information, user profile, membership level, etc., which are not limited here. The physical condition information may include at least one of the following: visual acuity parameters, whether colorblind, etc., which are not limited here.

[0034] The target tag attribute information may include at least one of the following: tag type, tag function, tag format, etc., which are not limited here.

[0035] The target tag content may include at least one of the following: content that needs to be printed, content that needs to be edited, content that needs to be formatted, content that needs to be previewed for print, etc., without any limitation.

[0036] The electronic device can be the target printer itself, or it can be connected to the target printer via communication.

[0037] In practice, the target label instruction for the target printer can be obtained from the input of the target user. The target label instruction can carry the target user's target identity information, target label attribute information, and target label content. In this way, the target label instruction can carry user identity information and present instruction parsing effect corresponding to the user's identity information, which helps to meet the user's personalized needs and improve the user experience.

[0038] 102. Determine the target tag instruction parsing algorithm corresponding to the target tag attribute information.

[0039] Among them, the tag instruction parsing algorithm can be used to implement relevant algorithms for parsing tag instructions. One tag instruction can correspond to one or more tag instruction parsing algorithms.

[0040] In this embodiment, a pre-stored mapping relationship between preset label attribute information and label instruction parsing algorithms can be used. Then, the target label instruction parsing algorithm corresponding to the target label attribute information can be determined based on the mapping relationship. That is, the corresponding label instruction parsing algorithm can be configured for different label instructions, which helps to improve the personalized parsing of label instructions, improve the user experience, and enhance the intelligence of the printer.

[0041] 103. Determine the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information.

[0042] In this embodiment, different label instruction parsing algorithms can correspond to different label instruction parsing control parameters. The label instruction parsing control parameters can achieve at least one of the following functions: label instruction parsing speed control, label instruction parsing method control, label instruction parsing step control, label instruction parsing timing control, label instruction parsing priority control, label instruction parsing display effect control, etc., without limitation. Furthermore, the label instruction parsing control parameters can be optimized using identity information, so that the optimized label instruction parsing control parameters have identity attributes, meet the personalized needs of users, help improve user experience, and enhance the intelligence of the printer.

[0043] For example, if the priority of user identity information is higher than the priority of the task currently being processed by the printer, then the target instruction label parsing task can be processed first. To further illustrate, user identity information can reflect a user profile; therefore, during the parsing process, processing parameters corresponding to the user profile can be presented, and based on these parameters, a presentation effect corresponding to the user identity information can be obtained.

[0044] In some possible examples, step 102 above, which determines the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information, may include the following steps:

[0045] Obtain the initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;

[0046] Determine the first adjustment parameter corresponding to the target identity information;

[0047] The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameters.

[0048] In practice, different tag instruction parsing algorithms can correspond to different tag instruction parsing control parameters, and thus, the initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm can be obtained.

[0049] Different identity information can be used to adjust the initial label instruction parsing control parameters accordingly. Specifically, a pre-stored mapping relationship between preset identity information and adjustment parameters can be established. Based on this mapping relationship, a first adjustment parameter corresponding to the target identity information can be determined. Then, some or all parameters in the initial label instruction parsing control parameters can be adjusted according to the first adjustment parameter to obtain the target label instruction parsing control parameter. The target label instruction parsing control parameter = (1 + first adjustment parameter) * initial label instruction parsing control parameter. In this way, the label instruction parsing control parameters can be optimized using identity information, giving the optimized parameters an identity attribute, meeting users' personalized needs, improving user experience, and enhancing the printer's intelligence.

[0050] In some possible examples, the above steps, adjusting the initial tag instruction parsing control parameters according to the first adjustment parameter to obtain the target tag instruction parsing control parameters, may include the following steps:

[0051] The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameters to obtain the first tag instruction parsing control parameters;

[0052] Obtain the target environment parameters of the target printer;

[0053] Determine the first fine-tuning parameter corresponding to the target environmental parameters;

[0054] The target tag instruction parsing control parameters are obtained by adjusting the first tag instruction parsing control parameters according to the first fine-tuning parameters.

[0055] The environmental parameters of the target printer may include at least one of the following: hardware environmental parameters, software environmental parameters, physical environmental parameters, etc., without limitation. Hardware environmental parameters may include at least one of the following: the target printer model, processor parameters, memory parameters, etc., without limitation. Software environmental parameters may include at least one of the following: the target printer's software configuration parameters, system parameters, etc., without limitation. Physical environmental parameters may include at least one of the following: the target printer's printing temperature, printing humidity, ambient light level, ink parameters, etc., without limitation.

[0056] In specific implementation, the initial label instruction parsing control parameters can be adjusted according to the first adjustment parameter to obtain the first label instruction parsing control parameter. For example, the first label instruction parsing control parameter = (1 + first adjustment parameter) * initial label instruction parsing control parameter. Of course, the target environment parameters of the target printer can also be obtained. The mapping relationship between preset environment parameters and fine-tuning parameters can be stored in advance. Based on the mapping relationship, the first fine-tuning parameter corresponding to the target environment parameters can be determined. The first label instruction parsing control parameter can be adjusted according to the first fine-tuning parameter to obtain the target label instruction parsing control parameter. For example, the target label instruction parsing control parameter = (1 + first fine-tuning parameter) * first label instruction parsing control parameter. In this way, not only can the label instruction parsing control parameters be optimized using identity information, so that the optimized label instruction parsing control parameters have identity attributes to meet the user's personalized needs, but the label instruction parsing control parameters can also be dynamically fine-tuned based on the printer's own environment parameters, so that the final label instruction parsing control parameters are closely consistent with the actual printing environment, further improving the user experience and enhancing the printer's intelligence.

[0057] In some possible examples, the target environmental parameters include target external environmental parameters and target internal environmental parameters; determining the first fine-tuning parameter corresponding to the target environmental parameters includes:

[0058] Determine the initial fine-tuning parameters corresponding to the internal environmental parameters of the target;

[0059] Determine the first optimization parameter corresponding to the target external environment parameter;

[0060] Obtain the target network parameters between the electronic device and the target printer;

[0061] Determine the second optimization parameter corresponding to the target network parameters;

[0062] The first fine-tuning parameter is determined based on the first optimization parameter, the second optimization parameter, and the initial fine-tuning parameter.

[0063] The internal environmental parameters of the target printer may include at least one of the following: hardware environmental parameters, software environmental parameters, etc., which are not limited here.

[0064] The external environment parameters of the target printer may include: physical environment parameters.

[0065] The target network parameters may include at least one of the following: network bandwidth, network speed, packet loss rate, network path, network topology, etc., without limitation.

[0066] In specific implementation, a pre-stored mapping relationship between preset internal environment parameters and fine-tuning parameters can be used. Based on this mapping relationship, an initial fine-tuning parameter corresponding to the target internal environment parameters can be determined. Similarly, a pre-stored mapping relationship between preset external environment parameters and optimization parameters can be used. Based on this mapping relationship, a first optimization parameter corresponding to the target external environment parameters can be determined. The target network parameters between the electronic device and the target printer can be obtained. Furthermore, a pre-stored mapping relationship between preset network parameters and optimization parameters can be used. Based on this mapping relationship, a second optimization parameter corresponding to the target network parameters can be determined. Finally, the first fine-tuning parameter can be determined based on the first optimization parameter, the second optimization parameter, and the initial fine-tuning parameter, i.e., first fine-tuning parameter = (1 + first optimization parameter) * (1 + second optimization parameter) * initial fine-tuning parameter. This not only allows for the optimization of label instruction parsing control parameters using identity information, giving the optimized label instruction parsing control parameters identity attributes to meet users' personalized needs, but also enables dynamic fine-tuning of label instruction parsing control parameters based on the printer's own environmental parameters. This ensures that the final label instruction parsing control parameters deeply match the actual printing environment, further improving the user experience and enhancing the printer's intelligence.

[0067] 104. Execute the target tag instruction parsing algorithm according to the target tag instruction parsing control parameters to parse the target tag instruction, and obtain the target processing parameters for the target tag content and the target tag content.

[0068] In this embodiment, different label instructions can correspond to different processing parameters. For example, for a label instruction for the preview function, the processing parameters mainly target the preview effect; similarly, for a label instruction for the printing function, the processing parameters mainly target the printing effect, and so on. For instance, for a label instruction for the preview function, the target processing parameters may include at least one of the following: preview processing steps, preview font size, preview layout parameters, preview font color, preview duration, preview scrolling parameters, etc., without limitation. Similarly, for a label instruction for the printing function, the target processing parameters may include at least one of the following: printing processing steps, printing font size, printing layout parameters, printing font color, printing duration, printing temperature, printing ink control parameters, etc., without limitation.

[0069] In practice, the target label instruction parsing algorithm can be executed according to the target label instruction parsing control parameters to parse the target label instruction, thereby obtaining the target processing parameters and target label content for the target label content. In this way, the corresponding label instruction parsing algorithm can be executed using the label instruction parsing control parameters optimized with identity information, so that the parsing effect is deeply adapted to the user identity, meets the user's personalized needs, helps to improve the user experience, and enhances the intelligence of the printer.

[0070] In some possible examples, when the target label instruction includes a print instruction, the step of processing the target label content according to the target processing parameters and determining the target processing result includes:

[0071] Obtain the target attribute information of the target printing paper;

[0072] Determine the first feedback adjustment parameter corresponding to the target attribute information;

[0073] The target processing parameters are adjusted according to the first feedback adjustment parameters to obtain the first processing parameters;

[0074] The target tag content is processed according to the first processing parameters to determine the target processing result.

[0075] In this embodiment of the application, the attribute information of the target printing paper may include at least one of the following: paper brand, paper material, paper color, paper size, paper thickness, etc., which are not limited here.

[0076] In specific implementation, when the target label instruction includes a print instruction, the target attribute information of the target printing paper can be obtained, and the mapping relationship between preset attribute information and feedback adjustment parameters can be stored in advance. Then, based on the mapping relationship, the first feedback adjustment parameter corresponding to the target attribute information can be determined, and the target processing parameter can be adjusted according to the first feedback adjustment parameter to obtain the first processing parameter, that is, the first processing parameter = (1 + first feedback adjustment parameter) * target processing parameter. Finally, the target label content can be processed according to the first processing parameter to determine the target processing result. In this way, the control parameters (i.e., processing parameters) related to the printing effect can be optimized and adjusted in turn by combining the paper characteristics, so that the final printing effect depth matches the paper characteristics, further ensuring the printing effect, improving the user experience, and thus improving the intelligence of the printer.

[0077] 105. Process the target tag content according to the target processing parameters and determine the target processing result.

[0078] In this embodiment, the target label content can be processed according to the target processing parameters to determine the target processing result. Since the corresponding label instruction parsing algorithm is executed using the label instruction parsing control parameters optimized by the identity information, the parsing effect is deeply adapted to the user identity, and the processing effect is also deeply adapted to the user identity. Thus, it meets the user's personalized needs, helps to improve the user experience, and enhances the intelligence of the printer.

[0079] In some possible examples, the following steps may also be included:

[0080] Detect whether the target environment parameters meet the preset conditions corresponding to the target processing parameters;

[0081] When the target environment parameters meet the preset conditions, the step of processing the target tag content according to the target processing parameters and determining the target processing result is executed.

[0082] When the target environment parameters do not meet the preset conditions, a prompt will be displayed.

[0083] The preset conditions can be set in advance or left as system defaults. Different processing parameters correspond to different conditions; for example, the conditions required for previewing a label instruction are different from those required for printing a label instruction. Taking printing as an example, factors such as whether there is enough ink, enough paper, and sufficient ambient light need to be considered.

[0084] In this embodiment, it is possible to detect whether the target environment parameters meet the preset conditions corresponding to the target processing parameters. When the target environment parameters meet the preset conditions, it indicates that the conditions for completing the entire target label instruction are met, and the step of processing the target label content according to the target processing parameters and determining the target processing result is executed. Conversely, when the target environment parameters do not meet the preset conditions, it indicates that the conditions for completing the entire target label instruction are not met, and a prompt operation can be performed to prompt the user to troubleshoot the corresponding problem. Thus, when the target environment parameters meet the preset conditions, the step of processing the target label content according to the target processing parameters and determining the target processing result can be executed. This not only ensures that the label instruction can be processed smoothly, but also avoids queuing and waiting, which helps to improve the efficiency of the printer.

[0085] The prompting operation may include at least one of the following: prompting the user to replenish paper, prompting the user to replenish ink, prompting the printer to malfunction, prompting the printer network to malfunction, prompting the user to wait, prompting the user to terminate the current label instruction, etc., without limitation.

[0086] In practice, the difference parameters between the target environmental parameters and the preset conditions can also be determined. The difference parameters are used to reflect which environmental parameters do not meet the preset conditions. Then, based on the difference parameters, corresponding prompts are generated. In this way, timely, intelligent and targeted prompts can be given to users, which helps to improve the user experience and enhance the intelligence of printing.

[0087] As can be seen, the printer label instruction parsing method described in this application embodiment is applied to electronic devices. It acquires target label instructions for a target printer input by a target user. The target label instructions include the target user's target identity information, target label attribute information, and target label content. It determines a target label instruction parsing algorithm corresponding to the target label attribute information, determines target label instruction parsing control parameters corresponding to the target label instruction parsing algorithm based on the target identity information, executes the target label instruction parsing algorithm according to the target label instruction parsing control parameters to parse the target label instructions, obtains target processing parameters for the target label content and the target label content, processes the target label content according to the target processing parameters, and determines the target processing result. Firstly, it allows for the configuration of corresponding label instruction parsing algorithms for different label instructions. Secondly, it optimizes the label instruction parsing control parameters using identity information, giving the optimized label instruction parsing control parameters an identity attribute. Thirdly, since the corresponding label instruction parsing algorithm is executed using the optimized label instruction parsing control parameters based on identity information, the parsing effect deeply adapts to the user's identity, and the processing effect also deeply adapts to the user's identity. Therefore, it meets the user's personalized needs, helps improve the user experience, and enhances the printer's intelligence.

[0088] Consistent with the above embodiments, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. In this embodiment, the program includes instructions for performing the following steps:

[0089] Obtain a target label instruction for a target printer input by a target user, wherein the target label instruction includes the target user's target identity information, target label attribute information, and target label content;

[0090] Determine the target tag instruction parsing algorithm corresponding to the target tag attribute information;

[0091] Based on the target identity information, determine the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;

[0092] The target tag instruction parsing algorithm is executed according to the target tag instruction parsing control parameters to parse the target tag instruction, thereby obtaining the target processing parameters for the target tag content and the target tag content;

[0093] The target tag content is processed according to the target processing parameters to determine the target processing result.

[0094] In some possible examples, regarding the determination of the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information, the above procedure includes instructions for performing the following steps:

[0095] Obtain the initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;

[0096] Determine the first adjustment parameter corresponding to the target identity information;

[0097] The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameters.

[0098] In some possible examples, in adjusting the initial tag instruction parsing control parameters according to the first adjustment parameter to obtain the target tag instruction parsing control parameters, the above procedure includes instructions for performing the following steps:

[0099] The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameters to obtain the first tag instruction parsing control parameters;

[0100] Obtain the target environment parameters of the target printer;

[0101] Determine the first fine-tuning parameter corresponding to the target environmental parameters;

[0102] The target tag instruction parsing control parameters are obtained by adjusting the first tag instruction parsing control parameters according to the first fine-tuning parameters.

[0103] In some possible examples, the target environmental parameters include target external environmental parameters and target internal environmental parameters; in determining the first fine-tuning parameter corresponding to the target environmental parameters, the above procedure includes instructions for performing the following steps:

[0104] Determine the initial fine-tuning parameters corresponding to the internal environmental parameters of the target;

[0105] Determine the first optimization parameter corresponding to the target external environment parameter;

[0106] Obtain the target network parameters between the electronic device and the target printer;

[0107] Determine the second optimization parameter corresponding to the target network parameters;

[0108] The first fine-tuning parameter is determined based on the first optimization parameter, the second optimization parameter, and the initial fine-tuning parameter.

[0109] In some possible examples, when the target label instruction includes a print instruction, the above procedure includes instructions for performing the following steps in terms of processing the target label content according to the target processing parameters and determining the target processing result:

[0110] Obtain the target attribute information of the target printing paper;

[0111] Determine the first feedback adjustment parameter corresponding to the target attribute information;

[0112] The target processing parameters are adjusted according to the first feedback adjustment parameters to obtain the first processing parameters;

[0113] The target tag content is processed according to the first processing parameters to determine the target processing result.

[0114] In some possible examples, the above procedure may also include instructions for performing the following steps:

[0115] Detect whether the target environment parameters meet the preset conditions corresponding to the target processing parameters;

[0116] When the target environment parameters meet the preset conditions, the step of processing the target tag content according to the target processing parameters and determining the target processing result is executed.

[0117] When the target environment parameters do not meet the preset conditions, a prompt will be displayed.

[0118] As can be seen, the electronic device described in this application embodiment acquires a target label instruction for a target printer input by a target user. The target label instruction includes the target user's target identity information, target label attribute information, and target label content. It determines a target label instruction parsing algorithm corresponding to the target label attribute information, determines target label instruction parsing control parameters corresponding to the target label instruction parsing algorithm based on the target identity information, executes the target label instruction parsing algorithm to parse the target label instruction according to the target label instruction parsing control parameters, obtains target processing parameters for the target label content and the target label content, processes the target label content according to the target processing parameters, and determines the target processing result. Firstly, it allows for the configuration of corresponding label instruction parsing algorithms for different label instructions. Secondly, it optimizes the label instruction parsing control parameters using identity information, giving the optimized label instruction parsing control parameters an identity attribute. Thirdly, because the parsing effect is deeply adapted to the user's identity by executing the corresponding label instruction parsing algorithm using the optimized label instruction parsing control parameters using identity information, the processing effect is also deeply adapted to the user's identity. Therefore, it meets the user's personalized needs, helps improve the user experience, and enhances the printer's intelligence.

[0119] Figure 3 This is a functional unit block diagram of a printer label instruction parsing device 300 according to an embodiment of this application. The printer label instruction parsing device 300 is applied to an electronic device and includes: an acquisition unit 301, a determination unit 302, a parsing unit 303, and a processing unit 304.

[0120] The acquisition unit 301 is used to acquire a target label instruction for a target printer input by a target user. The target label instruction includes the target user's target identity information, target label attribute information, and target label content.

[0121] The determining unit 302 is used to determine the target tag instruction parsing algorithm corresponding to the target tag attribute information; and to determine the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information.

[0122] The parsing unit 303 is used to execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameters, so as to obtain the target processing parameters for the target tag content and the target tag content;

[0123] The processing unit 304 is used to process the target tag content according to the target processing parameters and determine the target processing result.

[0124] In some possible examples, in determining the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information, the determining unit 302 is specifically used for:

[0125] Obtain the initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm;

[0126] Determine the first adjustment parameter corresponding to the target identity information;

[0127] The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameters.

[0128] In some possible examples, in adjusting the initial tag instruction parsing control parameters according to the first adjustment parameter to obtain the target tag instruction parsing control parameters, the determining unit 302 is specifically used for:

[0129] The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameters to obtain the first tag instruction parsing control parameters;

[0130] Obtain the target environment parameters of the target printer;

[0131] Determine the first fine-tuning parameter corresponding to the target environmental parameters;

[0132] The target tag instruction parsing control parameters are obtained by adjusting the first tag instruction parsing control parameters according to the first fine-tuning parameters.

[0133] In some possible examples, the target environmental parameters include target external environmental parameters and target internal environmental parameters; in determining the first fine-tuning parameter corresponding to the target environmental parameters, the determining unit 302 is specifically used for:

[0134] Determine the initial fine-tuning parameters corresponding to the internal environmental parameters of the target;

[0135] Determine the first optimization parameter corresponding to the target external environment parameter;

[0136] Obtain the target network parameters between the electronic device and the target printer;

[0137] Determine the second optimization parameter corresponding to the target network parameters;

[0138] The first fine-tuning parameter is determined based on the first optimization parameter, the second optimization parameter, and the initial fine-tuning parameter.

[0139] In some possible examples, when the target label instruction includes a print instruction, the processing unit 304 is specifically used for processing the target label content according to the target processing parameters and determining the target processing result in the context of:

[0140] Obtain the target attribute information of the target printing paper;

[0141] Determine the first feedback adjustment parameter corresponding to the target attribute information;

[0142] The target processing parameters are adjusted according to the first feedback adjustment parameters to obtain the first processing parameters;

[0143] The target tag content is processed according to the first processing parameters to determine the target processing result.

[0144] In some possible examples, the printer label instruction parsing device 300 is also specifically used for:

[0145] Detect whether the target environment parameters meet the preset conditions corresponding to the target processing parameters;

[0146] When the target environment parameters meet the preset conditions, the step of processing the target tag content according to the target processing parameters and determining the target processing result is executed.

[0147] When the target environment parameters do not meet the preset conditions, a prompt will be displayed.

[0148] As can be seen, the printer label instruction parsing device described in this application embodiment is applied to an electronic device. It acquires target label instructions for a target printer input by a target user. The target label instructions include the target user's target identity information, target label attribute information, and target label content. It determines a target label instruction parsing algorithm corresponding to the target label attribute information, determines target label instruction parsing control parameters corresponding to the target label instruction parsing algorithm based on the target identity information, executes the target label instruction parsing algorithm according to the target label instruction parsing control parameters to parse the target label instructions, obtains target processing parameters for the target label content and the target label content, processes the target label content according to the target processing parameters, and determines the target processing result. Firstly, it allows for the configuration of corresponding label instruction parsing algorithms for different label instructions. Secondly, it optimizes the label instruction parsing control parameters using identity information, giving the optimized label instruction parsing control parameters an identity attribute. Thirdly, because the optimized label instruction parsing control parameters using identity information execute the corresponding label instruction parsing algorithm, the parsing effect deeply adapts to the user's identity, and the processing effect also deeply adapts to the user's identity. Therefore, it meets the user's personalized needs, helps improve the user experience, and enhances the printer's intelligence.

[0149] It is understood that the functions of each program module of the printer label instruction parsing device in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, and will not be repeated here.

[0150] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments.

[0151] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. This computer program product can be a software installation package.

[0152] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0153] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0154] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0155] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0156] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0157] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0158] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0159] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for parsing printer label instructions, characterized in that, Applied to electronic devices, the method includes: Obtain a target label instruction for a target printer input by a target user, wherein the target label instruction includes the target user's target identity information, target label attribute information, and target label content; Determine the target tag instruction parsing algorithm corresponding to the target tag attribute information; Based on the target identity information, determine the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm; The target tag instruction parsing algorithm is executed according to the target tag instruction parsing control parameters to parse the target tag instruction, thereby obtaining the target processing parameters for the target tag content and the target tag content; The target tag content is processed according to the target processing parameters to determine the target processing result; The step of determining the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information includes: Obtain the initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm; Determine the first adjustment parameter corresponding to the target identity information; The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameters.

2. The method according to claim 1, characterized in that, The step of adjusting the initial tag instruction parsing control parameters according to the first adjustment parameter to obtain the target tag instruction parsing control parameters includes: The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameters to obtain the first tag instruction parsing control parameters; Obtain the target environment parameters of the target printer; Determine the first fine-tuning parameter corresponding to the target environmental parameters; The target tag instruction parsing control parameters are obtained by adjusting the first tag instruction parsing control parameters according to the first fine-tuning parameters.

3. The method according to claim 2, characterized in that, The target environmental parameters include target external environmental parameters and target internal environmental parameters; The determination of the first fine-tuning parameter corresponding to the target environmental parameter includes: Determine the initial fine-tuning parameters corresponding to the internal environmental parameters of the target; Determine the first optimization parameter corresponding to the target external environment parameter; Obtain the target network parameters between the electronic device and the target printer; Determine the second optimization parameter corresponding to the target network parameters; The first fine-tuning parameter is determined based on the first optimization parameter, the second optimization parameter, and the initial fine-tuning parameter.

4. The method according to claim 3, characterized in that, When the target label instruction includes a print instruction, the step of processing the target label content according to the target processing parameters and determining the target processing result includes: Obtain the target attribute information of the target printing paper; Determine the first feedback adjustment parameter corresponding to the target attribute information; The target processing parameters are adjusted according to the first feedback adjustment parameters to obtain the first processing parameters; The target tag content is processed according to the first processing parameters to determine the target processing result.

5. The method according to any one of claims 2-4, characterized in that, The method further includes: Detect whether the target environment parameters meet the preset conditions corresponding to the target processing parameters; When the target environment parameters meet the preset conditions, the step of processing the target tag content according to the target processing parameters and determining the target processing result is executed. When the target environment parameters do not meet the preset conditions, a prompt will be displayed.

6. A printer label instruction parsing device, characterized in that, Applied to electronic devices, the device includes: an acquisition unit, a determination unit, a parsing unit, and a processing unit, wherein, The acquisition unit is used to acquire a target label instruction for a target printer input by a target user, wherein the target label instruction includes the target user's target identity information, target label attribute information, and target label content; The determining unit is configured to determine the target tag instruction parsing algorithm corresponding to the target tag attribute information; and to determine the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information. The parsing unit is used to execute the target tag instruction parsing algorithm to parse the target tag instruction according to the target tag instruction parsing control parameters, so as to obtain the target processing parameters for the target tag content and the target tag content; The processing unit is used to process the target tag content according to the target processing parameters and determine the target processing result; Specifically, in determining the target tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm based on the target identity information, the determining unit is used for: Obtain the initial tag instruction parsing control parameters corresponding to the target tag instruction parsing algorithm; Determine the first adjustment parameter corresponding to the target identity information; The initial tag instruction parsing control parameters are adjusted according to the first adjustment parameter to obtain the target tag instruction parsing control parameters.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory being used to store one or more programs and configured to be executed by the processor, the programs including instructions for performing the steps of the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, A computer program for storing electronic data interchange is provided, wherein the computer program causes a computer to perform the method as described in any one of claims 1-5.