Jet printing control method and device, readable storage medium and program product
By configuring printing interface services and general templates, supporting remote calls and unified templates, the problems of inefficient printing efficiency and inability to intervene in the existing technology are solved, and efficient printing operations and intelligent manufacturing are achieved.
Patent Information
- Application Number
- CN202411276426.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-20
AI Technical Summary
The existing printing technology is inefficient and requires manual operation of the inkjet printer to enter printing information. It cannot be intervened through third-party systems, resulting in reduced production efficiency. Each production order needs to create a separate printing template, which increases maintenance and production costs.
By configuring the printing interface service, using the universal printing template and pre-configured fixed parameters, it supports remote settings and third-party platform calls, and sends printing instructions carrying target incoming parameters to the ink printer device to realize unified templates and remote entry Function.
It simplifies printing operations, supports third-party systems to connect to inkjet printers, improves production efficiency, reduces manual entry time, and realizes the business needs of intelligent manufacturing.
Smart Images

Figure CN119159920A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cable production technology, and in particular to a printing control method, device, readable storage medium and program product. Background Art
[0002] When using an inkjet printer to enter printing information in the prior art, manual operation is required on the inkjet printer device interface to manually write the printing information according to the production order requirements. Since customer requirements for different production orders are different, including various combinations of information such as language and characters, manual entry of printing information is extremely inefficient and prone to errors, resulting in reduced production efficiency. In addition, a new printing template needs to be created for each production order, and the printing template cannot be unified. Only the "text content" in the template can be modified, and other information must be set in the template in advance, which increases the time cost and production cost of maintaining the printing template.
[0003] The related solutions in the prior art can input little information (only text information is supported), and the printing templates need to be frequently switched during the production process to meet production needs. Most of them adopt the client / server architecture (C / S software architecture), which cannot be provided to third-party programs for calling and can only meet self-sufficiency. As a result, during the production process, the third-party system cannot interfere with the inkjet printer to meet the needs of intelligent production.
[0004] In summary, the traditional production method in the prior art can only input printing information through manual operation of the inkjet printer, and cannot be intervened by other means, resulting in low production efficiency. Summary of the invention
[0005] The purpose of this application is to provide a printing control method, device, readable storage medium and program product to solve the problem of low printing efficiency in related technologies.
[0006] In a first aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application provides a printing control method, comprising:
[0007] Configuring a printing interface service; the printing interface service includes pre-configured fixed parameters and dynamic variables determined using a universal printing template;
[0008] In response to a usage call request of a remotely set third-party platform, calling the printing interface service to determine target input parameter information corresponding to the production order requirement; the usage call request carries the production order requirement;
[0009] Send a printing instruction to the inkjet printer device, and receive response information fed back by the inkjet printer device; the printing instruction carries the target input parameter information.
[0010] Optionally, before configuring the printing interface service, the method further includes:
[0011] Defining different types of dynamic variables; the dynamic variables include dynamic information of text information, picture information, meter information, date information and batch number information; each type of the dynamic variables includes at least two subtypes;
[0012] Each of the dynamic variables is inserted into a preset position in the basic template to determine the universal printing template.
[0013] Optionally, configure the printing interface services, including:
[0014] Determining parameter information of the dynamic variable according to the universal printing template;
[0015] Determine the fixed parameters; the fixed parameters include font information and device number information of the inkjet printer device;
[0016] Constructing an input parameter format according to the parameter information of the dynamic variable and the fixed parameter;
[0017] Configure the printing interface service according to the input parameter format.
[0018] Optionally, the response information is used to indicate feedback success information or feedback failure information;
[0019] The feedback success information is used to indicate that the inkjet printer device can continue to perform the printing operation;
[0020] The feedback failure information is used to indicate that the inkjet printer device cannot perform the printing operation due to target conditions; the target conditions include one or more of the following: the text variable in the target input parameter information exceeds a preset threshold, the coordinate format of the target input parameter information is incorrect, the type of the dynamic variable of the target input parameter information does not exist, and the variable value format of the target input parameter information is incorrect.
[0021] Optionally, the method further comprises:
[0022] The printing interface service is used to receive the log call request of the third-party platform; the log call request is used to provide the third-party platform with the sending information and the receiving information of the inkjet printer device.
[0023] Optionally, determine target incoming parameter information corresponding to the production order requirements, including:
[0024] Obtaining the production order requirements; the production order requirements include: one or more of the following information: order number, cable segment length, cable total length, cable reel quantity, printing font, and printing content;
[0025] The printing interface service is called to determine the target input parameter information corresponding to the production order requirement according to each information required by the production order and the preset input parameter format in the printing interface service.
[0026] Optionally, the method further comprises:
[0027] Acquire characteristic information of the current third-party platform corresponding to the target input parameter information, and determine the type of the current third-party platform based on the characteristic information;
[0028] If the current third-party platform is a first-category platform, security authentication is performed on the first-category platform based on a first security authentication rule; wherein the first-category platform is a third-party platform that is called for the first time;
[0029] If the current third-party platform is a second-category platform, security authentication is performed on the second-category platform based on a second security authentication rule; wherein the priority of the second security authentication rule is higher than the first security authentication rule, and the second-category user is not a first-time login user.
[0030] In a second aspect, an embodiment of the present application provides a printing control device, comprising:
[0031] A first processing module, for configuring a printing interface service; the printing interface service includes pre-configured fixed parameters and dynamic variables determined using a universal printing template;
[0032] The second processing module is used to respond to a call request from a remotely set third-party platform, call the printing interface service, and determine the target input parameter information corresponding to the production order requirement; the call request carries the production order requirement;
[0033] The third processing module is used to send a printing instruction to the inkjet printer device and receive response information fed back by the inkjet printer device; the printing instruction carries the target input parameter information.
[0034] In a third aspect, an embodiment of the present application provides a readable storage medium having a program or instruction stored thereon, wherein the program or instruction, when executed by a processor, implements the steps in the method described in the first aspect.
[0035] In a fourth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0036] The beneficial effects of the above technical solution of the present application are as follows:
[0037] In an embodiment of the present application, the method includes: configuring a printing interface service, the printing interface service includes pre-configured fixed parameters and dynamic variables determined by using a universal printing template, that is, the present application implements the use of a printing interface service and defines a unified template; the present application calls the printing interface service to determine the target incoming parameter information corresponding to the production order requirements, and can receive a usage scheduling request from a third-party platform, support remote calls, and meet production needs; a printing instruction carrying the target incoming parameter information is sent to the inkjet printer device, and the inkjet printer device is controlled by the printing instruction to perform a response action. In traditional production, the printing information can only be entered by manually operating the inkjet printer, and no other means can be used to intervene. The present application can be used by any third-party system to connect to the inkjet printer device. It only needs to follow the platform interface specification to remotely enter the printing information, which simplifies the cumbersome entry operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flow chart of a printing control method provided in an embodiment of the present application;
[0039] Figure 2 A flowchart for determining a universal printing template provided in an embodiment of the present application;
[0040] Figure 3 A schematic diagram of a first specific embodiment of the present invention;
[0041] Figure 4 A schematic diagram of a second specific embodiment provided for the present application;
[0042] Figure 5 A schematic diagram of the principle flow of calling the printing interface service provided in the embodiment of the present application;
[0043] Figure 6 A schematic diagram of the structure of the printing control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the technical problems, technical solutions and advantages to be solved by the present application clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0045] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0046] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0047] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] The embodiments of the present application provide a printing control method, device, readable storage medium and program product. The method and device are based on the same application concept. Since the method and device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0050] Reference Figure 1 As shown, the printing control method provided in the embodiment of the present application includes:
[0051] Step 11, configure the printing interface service; the printing interface service includes pre-configured fixed parameters and dynamic variables determined using a universal printing template.
[0052] The printing interface service in this application can provide a calling service for a third-party platform. A unified printing template needs to be configured or pre-configured in the printing interface service. The unified printing template includes fixed parameters and optional dynamic variables in the production order to meet the calling and use requirements of different third-party platforms. This application avoids the need to create a separate printing template for each production order in the related technology, which increases the time cost of maintaining the printing template. This application uses a unified printing template using a printing interface service to be compatible with the printing layout information in all orders.
[0053] Step 12, in response to a usage call request from a remotely set third-party platform, calling the printing interface service to determine target input parameter information corresponding to the production order requirements; the usage call request carries the production order requirements.
[0054] The present application receives a usage call request from a remotely set third-party platform, receives the usage call request, and parses the usage call request to determine whether the third-party platform meets the protocol requirements of the printing interface service. If the protocol requirements are met, the application responds to the usage call request from the remotely set third-party platform, agrees to the calling service of the third-party platform, obtains the target input parameter information, and determines the production order requirements carried in the target input parameter information.
[0055] This application solves the technical defects of the host computer program in the related technology. The coupling effect between the host computer program and the inkjet printer causes mutual influence, which can only support self-sufficiency and cannot be provided to third-party platforms. This application uses the inkjet printing interface service, which can be flexibly called by third-party platforms to meet the business needs of intelligent manufacturing.
[0056] Step 13, sending a printing instruction to the inkjet printer device, and receiving response information fed back by the inkjet printer device; the printing instruction carries the target input parameter information.
[0057] This application uses printing instructions to carry target input parameter information. The printing instructions are used to control the corresponding inkjet printer device to perform the corresponding printing operation. Since the printing operation performed by the inkjet printer device may fail or succeed, it is necessary to judge the response information fed back by the inkjet printer device to determine whether the printing operation can be continued in the future to prevent wasting too many printing cables. This application provides an interface service platform for any third-party system to connect to the inkjet printer device. It only needs to follow the platform interface specification to remotely enter the printing information, which simplifies the cumbersome entry operation and can support remote calls to meet production needs according to production business requirements.
[0058] It should be noted that the present application is used for printing on cables, and the above-mentioned cables can be optical cables or electrical cables. That is, the present application is applicable to the printing of optical cables and also to the printing of electrical cables.
[0059] Optionally, the response information in the present application is used to indicate feedback success information or feedback failure information; wherein, the feedback success information is used to indicate that the inkjet printer device can continue to perform the printing operation; the feedback failure information is used to indicate that the inkjet printer device cannot perform the printing operation due to target conditions; the target conditions include one or more of the text variables in the target input parameter information exceeding a preset threshold, the coordinate format of the target input parameter information is incorrect, the type of the dynamic variable of the target input parameter information does not exist, and the variable value format of the target input parameter information is incorrect.
[0060] In the embodiment of the present application, the third-party platform connects to the "printing interface service", refers to the input parameter format defined in the interface service, organizes the input parameters according to the production order requirements, and calls the "printing interface service". When the call is successful, feedback is given that the delivery is successful, and when the call fails, feedback is given of the specific reason for the failure.
[0061] Specifically, based on the above principle, several situations of input parameters are simulated: (1) In the input parameters, the number of variables exceeds the established number of variables. For example, the text type variable is limited to no more than 3, but the number of text variables in the input parameters exceeds 3, then the verification fails and the failure reason is returned (for example, it can be expressed as: Failed to send: the number of text variables exceeds the maximum value of 3!). (2) The transmission parameter coordinate format is wrong. The variable coordinate format must conform to (x, y) data and be separated by ",". The lower left corner of the inkjet printer is the origin. x represents the horizontal axis coordinate and y represents the vertical axis coordinate. If the variable coordinates in the input parameters do not meet the (x, y) format, then the verification fails and the failure reason is returned (for example, it can be expressed as: Failed to send: the coordinate format of variables "text1" and "text2" is wrong!). (3) In the input parameters, if the variable type does not exist, then the verification fails and the failure reason is returned. (4) In the input parameters, the variable value format is incorrect. For example, the printing interface service will search the preset font library in the inkjet printer (search whether the font "A1" or "A2" exists) and the picture library (search whether the picture name "Pic" exists). The meter and batch number variable value format must be a positive integer within 9 digits. If the verification fails, the delivery fails and the corresponding failure reason is prompted.
[0062] In summary, under the premise that the printing service and the device network are unobstructed (if the printing interface service and the inkjet printer device network are not connected, the connection fails and the download fails. Please check the network situation!), 4 abnormal situations are listed. For the matching check between the incoming parameters and the variables in the general template, if the check succeeds, the download is successful. If it fails, the reason for the failure is returned. The third-party platform needs to correct the incoming parameters before continuing to send until it succeeds.
[0063] It should be noted that since the main application scenario of this application is in the cable production industry, each production line is equipped with an inkjet printer. In the actual production scenario, only one production order is produced at the same time. In short, in the same time period, one machine, one line, and one order. From the business scenario point of view, there is no concurrent call.
[0064] It should also be noted that the current production scenario is in a semi-automatic state. The printing interface service only sends printing information. The actual printing order and priority can ultimately be achieved through the call request sent by the third-party platform carrying the printing order parameters and priority parameters to implement the sequential operation of printing.
[0065] Optionally, before step 11 of the present application, the method further includes:
[0066] Defining different types of dynamic variables; the dynamic variables include dynamic information of text information, picture information, meter information, date information and batch number information; each type of the dynamic variables includes at least two subtypes;
[0067] Each of the dynamic variables is inserted into a preset position in the basic template to determine the universal printing template.
[0068] In the embodiment of the present application, different types of dynamic variables need to be defined. The dynamic variables of the present application include five types, namely text information, image information, meter information, date information and batch number information. Each dynamic variable includes at least two types. Before the inkjet printer device of the present application performs the printing operation, a universal printing template must be set. The universal printing template of the unified inkjet printer device can refer to Figure 2 As shown, the universal printing template is composed of five dynamic variables or five variable types, namely text, picture, meter count, date, and batch number. For example, it may include: 3 text variables, 2 picture variables, 2 meter count variables, 2 date variables, and 2 batch number variables. Next, a total of 11 variables of these 5 dynamic variables or variable types are uniformly inserted into the preset positions in the basic template and named "Universal Printing Template".
[0069] For example, 3 text variables can support the input of three texts, such as inputting three types of text. 2 picture variables can support the insertion of two preset pictures. 2 meter variables can support the input of two meter variables, such as the total meter and the current meter. 2 date variables can support the input of two types of dates. 2 batch number variables can support the input of two types of batch numbers.
[0070] The universal printing template set up in the present application solves the problem that the sending function implemented by the upper computer program in the related technology is too single, wherein information such as pictures, dates, meter values, batch numbers, etc. can only be realized by modifying the template and cannot be flexibly modified during the production process. The present application supports the modification function of all printed information and is not limited to modifying only the text content.
[0071] Reference Figure 3In the first specific embodiment shown, a universal printing template is first defined in the present application, and then a printing interface service is defined. The interface is called through a third-party platform to achieve connection with the printing interface service of the present application. The universal printing template is used through the third-party platform to define the target input parameters corresponding to the current production order, the target input parameters are processed, the target instructions are generated, the target instructions are sent to the inkjet printer device, and the feedback results of the inkjet printer device are received to find out whether the execution operation corresponding to the target instruction can continue to be executed, thereby achieving the purpose of remote calling and simplifying the input operation, and improving the work efficiency in cable production.
[0072] Optionally, step 11 in the present application includes:
[0073] Determining parameter information of the dynamic variable according to the universal printing template;
[0074] Determine the fixed parameters; the fixed parameters include font information and device number information of the inkjet printer device;
[0075] Constructing an input parameter format according to the parameter information of the dynamic variable and the fixed parameter;
[0076] Configure the printing interface service according to the input parameter format.
[0077] In an embodiment of the present application, a universal printing template is used to determine the parameter information of the dynamic variables, and the parameter information includes the type of dynamic variables, variable values and variable coordinates. The types of the dynamic variables include at least: dynamic information including text information, image information, meter information, date information and batch number information; each type of the dynamic variables includes at least two subtypes. Determine the fixed parameters. The fixed parameters of this application include the font information that needs to be printed on the inkjet printer device, including one or more of English fonts, Chinese fonts, etc. The inkjet printer device number information is the authentication information for sending instructions to the inkjet printer device in the future. The inkjet printer device number information can be used to send instructions to the corresponding inkjet printer device. The input parameter format constructed by this application consists of fixed parameters and parameter information of multiple dynamic variables. The input parameter format can be used as a unified format to call the third-party platform that accesses the printing interface service.
[0078] The definition and variable value description of the dynamic variables and fixed parameters in the parameter format passed into this application can be shown in Table 1 below.
[0079] Table 1:
[0080]
[0081]
[0082] Optionally, determine target incoming parameter information corresponding to the production order requirements, including:
[0083] Obtaining the production order requirements; the production order requirements include: one or more of the following information: order number, cable segment length, cable total length, cable reel quantity, printing font, and printing content;
[0084] The printing interface service is called to determine the target input parameter information corresponding to the production order requirement according to each information required by the production order and the preset input parameter format in the printing interface service.
[0085] In an embodiment of the present application, the target incoming parameter information is determined according to the production order requirements. According to the production order requirements and in combination with a preset incoming parameter format (i.e., the incoming parameter format determined above), one or more of the order number, cable segment length, cable total length, number of cable reels, printing font, and printing content can be determined to thereby determine the target incoming parameter information corresponding to the production order requirements.
[0086] Specifically, refer to Figure 4 In the second specific embodiment shown, the printing interface service is defined, and according to the characteristics of the determined universal printing template, 5 types of variables are summarized and sorted out, and 3 general parameters are used as input parameters of the interface service, wherein the variable type includes 3 attributes (variable type, variable value, variable coordinates). The universal printing template is composed of 5 types of variables, namely text, picture, meter count, date, and batch number. For example, it can be set to 10 text variables, 4 picture variables, 3 meter count variables, 2 date variables, and 2 batch number variables. Next, these 5 types of variables, a total of 21 variables, as well as the Chinese font, English font and device number of fixed parameters, are uniformly defined as the incoming parameter format, and the incoming parameter format is used as the unified format. The format content is "text 1...text 3, picture 1, picture 2, meter count 1, meter count 2, date 1, date 2, batch number 1, batch number 2". In order to facilitate the description of the template format, the "," separator is added, which does not exist in actual operation. Here, it is also necessary to define the format and specification of the incoming parameters of the printing interface service, which are defined according to specific needs, and this application does not limit it.
[0087] According to the printing interface service defined in Example 2, the third-party platform organizes the interface to pass parameters according to the production order requirements, and calls the printing interface service to achieve the effect of remotely controlling the inkjet printer and issuing printing information. The specific operation steps are as follows:
[0088] Step (1), production order is shown in Table 2:
[0089] Table 2:
[0090]
[0091] According to the production order information in Table 2, the segment length represents the length of each cable reel, which is 1,000 meters. The number of reels represents the total number of cable reels that need to be produced. The printing information represents the overall printing layout.
[0092] Step (2), through the production order description in step (1), the input parameters of the organization interface are shown in Table 3:
[0093] Table 3:
[0094]
[0095]
[0096] In the production order, "disk number" represents the variable "batch number" in the input parameter. The variable value "0001" indicates that the disk number is 4 digits long and the starting value starts from 1. In the production order, "meter" represents the variable "meter count" in the input parameter. The variable value "1000" indicates that the length of each cable reel is 1000 meters. The number of reels increases by 1 every time "1000 meters" is printed. Among them, "Chinese font" and "English font" are general parameters, which are used to set the font and size of the English and Chinese in the "text" variable value. According to the input parameters organized in step (2), the printing interface service is called, where the principle is as follows: Figure 5 shown.
[0097] according to Figure 5 As shown in , the general template of the incoming parameter format is represented by "general template", then "text 1" in the incoming parameter corresponds to "text 1" in the general template, and "text 1" is displayed, "meter count 1" in the incoming parameter corresponds to "meter count 1" in the general template, and "meter count 1" is displayed, "batch number 1" in the incoming parameter corresponds to "batch number 1" in the general template, and "batch number 1" is displayed, and the unused variables "text 2, text 3, picture 1, picture 2, meter count 1, meter count 2, date 1, date 2, batch number 1, batch number 2" in the general template are hidden, and the general parameter "Chinese font, English font" variable value is set for the Chinese and English fonts of all text variables in the general template. The printing interface service sends relevant instructions to the inkjet printer device according to the incoming parameters, and the interface service returns response information. If the call is successful, it returns a successful status, and if the call fails, it returns an abnormal status and abnormal information.
[0098] Optionally, after step 13, the method further includes:
[0099] The printing interface service is used to receive the log call request of the third-party platform; the log call request is used to provide the third-party platform with the sending information and the receiving information of the inkjet printer device.
[0100] In the embodiment of the present application, the printing interface service adds an audit log function for the third-party platform call, and uses the printing interface service to receive the log call request of the third-party platform to implement the log call function. Each call information is recorded in the log file, which is mainly used for tracing the printing information issued by the production, and for checking abnormal information when the issued information is inconsistent with the information received by the inkjet printer.
[0101] Since the printing interface service of this application is a universal middleware that implements the single responsibility principle, its main function is to forward printing information to the inkjet printer. It is practical and easy to use, and does not involve production business functions. Customized functions, such as order content reuse, are mainly implemented by upstream systems.
[0102] Optionally, the method of the present application further includes:
[0103] If multiple call requests for the printing interface service are received within the same time unit; each call request is used to request to call the printing interface service, and the multiple call requests carry operation information for the same inkjet printer device;
[0104] Determine at least some of the call requests from the multiple call requests; the types of operation information carried by at least some of the call requests are the same, and the corresponding requesting parties are different;
[0105] Aggregating at least part of the call requests to obtain a target call request; the target call request includes operation information of the same type of production order for the same inkjet printer device and information of multiple requesting parties;
[0106] The target call request is sent to the printing interface service, triggering the printing interface service to perform corresponding production order processing operations on the same inkjet printer device according to the operation information carried by the target call request and multiple requester information.
[0107] The time unit may also be referred to as a time slice, which may be a time period whose time span is less than a preset threshold. The operation information may indicate a production order processing operation to be performed on the inkjet printer device.
[0108] In the embodiment of the present application, in actual application, when the requester (third-party platform) intends to perform production processing operations on a specified inkjet printer device, it can be implemented by calling the inkjet interface service. For example, the inkjet interface service may include a network application program interface (Web API). Specifically, the requester can generate a call request for the interface, and the request can carry operation information for the same specified inkjet printer device, and then the requester can send a call request to the inkjet interface service.
[0109] Accordingly, the platform of the printing interface service can receive multiple calls from the same requester or different requesters, and the multiple call requests may be call requests initiated for the printing interface service at the same time or at different times. If multiple call requests are received in different time units and request to perform production processing operations on the same or different inkjet printer devices, for example, call request 1 and call request 2 for performing production processing operations on inkjet printer device A are received in time unit t1 and time unit t2 respectively, the platform of the printing interface service can process each request in turn. However, if multiple call requests are received within the same time unit, and the multiple call requests carry operation information for the same inkjet printer device, the multiple call requests within this time unit can be called concurrent requests. If all concurrent requests are sent directly to the interface, it is easy to cause loss of the device corresponding to the interface, and even cause data overwriting.
[0110] Based on this, in this step, the platform of the printing interface service can first obtain multiple call requests for the printing interface service within the same time unit, and the multiple call requests carry operation information for the same inkjet printer.
[0111] As an example, the type of operation information may include at least one of the following: adding an order, starting to process an order, deleting an order, starting an inkjet printer device, and stopping an inkjet printer device.
[0112] In a specific implementation, multiple call requests for the same production order within the same time unit may come from at least two requesters, and the types of operation information of the multiple call requests may be the same or different. For different types of operation information, if different types of order processing operations are performed at the same time, the called interface will eventually have to implement the processing of the generated order in different ways, which may easily lead to the problem of data overwriting each other; and, if there are multiple call requests from the same requester (for example, the same requester sends multiple call requests with the same or different types of operation information within a time unit), it will significantly increase the pressure on the interface and aggravate concurrency problems, which can be regarded as repeated and invalid calls.
[0113] In this step, after obtaining multiple call requests for the printing interface service within the same time unit, at least some of the call requests that carry the same type of operation information and have different corresponding requesting parties can be determined from the multiple call requests. On the one hand, it can be ensured that the screened call requests come from different requesting parties. Without affecting the business results, by filtering the call requests from the same requesting party, the multiple repeated and invalid calls to the printing interface service by the same requesting party in a short period of time can be reduced, thereby reducing the pressure on the downstream interface. On the other hand, by obtaining multiple call requests with the same type of operation information, it can provide a basis for the subsequent successful execution of the production order processing operations indicated by the operation information carried by each call request, thereby preventing data overwrite due to different types of operation information.
[0114] The above-mentioned interface call request processing method can obtain multiple call requests for a preset interface within the same time unit, wherein each call request is used to request a call interface, and multiple call requests carry operation information for the same resource, and then at least some call requests can be determined from the multiple call requests; the type of operation information carried by at least some call requests is the same, and the corresponding request parties are different, and at least some call requests are aggregated to obtain a target call request, which contains the same type of operation information for the same inkjet printer device and multiple request party information, and then the target call request can be sent to the interface, and the trigger interface performs corresponding resource processing operations on the generated order according to the operation information and multiple request party information carried by the target call request. In this embodiment, by aggregating multiple call requests with the same type of operation information into a target call request and then sending it to the interface, the trigger interface performs corresponding operations on the production order according to the operation information and multiple request party information carried by the target call request, and the call of multiple request parties to the interface can be converted into a one-time batch call covering multiple request party information, which not only avoids affecting the call request processing volume, but also significantly reduces the performance consumption of the interface by multiple call requests, and can effectively improve the processing efficiency of call requests and improve the cable production efficiency.
[0115] In actual applications, the types of operation information of various call requests from the same third-party platform can be the same or different. For example, requester A requests to call the interface multiple times instantly to mark and cancel the production order. The order of multiple call requests from early to late is: add mark → cancel mark → add mark, or it can be: add mark → add mark.
[0116] That is, obtaining a call request from various call requests from the requester as the actual call request of the requester may include the following steps: determining the request time of each call request from the requester, and taking the call request with the latest request time as the actual call request of the requester.
[0117] In this embodiment, by determining the request time of each call request from the requester, and taking the call request with the latest request time as the actual call request of the requester, while filtering multiple call requests from the same requester, the latest call request from the requester is responded to and processed in a timely manner to avoid affecting business results.
[0118] In summary, in the embodiments of the present application, an interface service platform including a printing interface service is provided, for any third-party system to connect to the inkjet printer equipment. It only needs to follow the platform interface specification to remotely input the printing information, which simplifies the cumbersome input operation, and can support remote calls to meet production needs according to production business requirements, eliminating the need to manually input printing information in the inkjet printer equipment interface, and ultimately achieve the effect of unattended production. This application supports third-party platform access by unifying the printing template of the inkjet printer equipment, defining the printing interface service (unified interface input parameter format), and executing the printing interface service.
[0119] This application unifies the printing template, dynamically displays and hides the variables in the template according to the printing information of the production order, and is compatible with the printing layout information in all orders. This application provides a unified printing interface service that can be flexibly called by third-party systems to meet the business needs of intelligent manufacturing. This application supports the modification function of all printing information, not limited to modifying only the text content.
[0120] Reference Figure 6 As shown, the embodiment of the present application provides a printing control device, comprising:
[0121] The first processing module 61 is used to configure a printing interface service; the printing interface service includes pre-configured fixed parameters and dynamic variables determined using a universal printing template;
[0122] The second processing module 62 is used to call the printing interface service in response to a call request from a remotely set third-party platform, and determine target input parameter information corresponding to the production order requirement; the call request carries the production order requirement;
[0123] The third processing module 63 is used to send a printing instruction to the inkjet printer device and receive response information fed back by the inkjet printer device; the printing instruction carries the target input parameter information.
[0124] In the embodiment of the present application, the above-mentioned printing control device further includes:
[0125] The fourth processing module is used to define different types of dynamic variables; the dynamic variables include text information, picture information, meter information, date information and batch number information; each type of the dynamic variables includes at least two subtypes;
[0126] The first determination module is used to insert each of the dynamic variables into a preset position in the basic template to determine the universal printing template.
[0127] Optionally, the first processing module 61 in the present application includes:
[0128] A first determining unit, configured to determine parameter information of the dynamic variable according to the universal printing template;
[0129] A second determining unit is used to determine the fixed parameters; the fixed parameters include font information and device number information of the inkjet printer device;
[0130] A first processing unit, configured to construct an input parameter format according to the parameter information of the dynamic variable and the fixed parameter;
[0131] The second processing unit is used to configure the printing interface service according to the input parameter format.
[0132] Optionally, the response information is used to indicate feedback success information or feedback failure information;
[0133] The feedback success information is used to indicate that the inkjet printer device can continue to perform the printing operation;
[0134] The feedback failure information is used to indicate that the inkjet printer device cannot perform the printing operation due to target conditions; the target conditions include one or more of the following: the text variable in the target input parameter information exceeds a preset threshold, the coordinate format of the target input parameter information is incorrect, the type of the dynamic variable of the target input parameter information does not exist, and the variable value format of the target input parameter information is incorrect.
[0135] In the embodiment of the present application, the above-mentioned printing control device further includes:
[0136] The fifth processing module is used to receive the log call request of the third-party platform by using the printing interface service; the log call request is used to provide the third-party platform with the sending information and the receiving information of the inkjet printer device.
[0137] Optionally, the second processing module 62 in the present application includes:
[0138] A first acquisition unit is used to acquire the production order requirements; the production order requirements include: one or more information of order number, cable segment length, cable total length, number of cable reels, printing font and printing content;
[0139] The third processing unit is used to call the printing interface service, and determine the target input parameter information corresponding to the production order requirements according to each information required by the production order and the preset input parameter format in the printing interface service.
[0140] In the embodiment of the present application, the above-mentioned printing control device further includes:
[0141] A sixth processing module is used for receiving multiple call requests for the printing interface service within the same time unit; each call request is used to request to call the printing interface service, and the multiple call requests carry operation information for the same inkjet printer device;
[0142] a seventh processing module, configured to determine at least some of the call requests from the multiple call requests; the types of operation information carried by the at least some of the call requests are the same, and the corresponding requesting parties are different;
[0143] An eighth processing module is used to aggregate at least part of the call requests to obtain a target call request; the target call request includes operation information of the same type of production order for the same inkjet printer device and information of multiple requesting parties;
[0144] The ninth processing module is used to send the target call request to the printing interface service, triggering the printing interface service to perform corresponding production order processing operations on the same inkjet printer device according to the operation information carried by the target call request and multiple requester information.
[0145] Among them, the implementation embodiments of the above-mentioned printing control method are all applicable to the embodiments of the printing control device and can achieve the same technical effects.
[0146] A readable storage medium in an embodiment of the present application stores a program or instruction thereon. When the program or instruction is executed by a processor, the steps in the printing control method as described above are implemented and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0147] The processor is the processor in the printing control method described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0148] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0149] In the embodiment of the present application, module can be implemented with software so that it can be performed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different locations, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0150] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0151] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0152] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present application. Therefore, the present application should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present application will be perfect and complete, and the scope of the present application will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "comprising" and / or "including" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0153] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A printing control method, characterized in that: include: Configuring a printing interface service; the printing interface service includes pre-configured fixed parameters and dynamic variables determined using a universal printing template; In response to a usage call request of a remotely set third-party platform, calling the printing interface service to determine target input parameter information corresponding to the production order requirements; The usage call request carries the production order requirement; Send a printing instruction to the inkjet printer device, and receive response information fed back by the inkjet printer device; the printing instruction carries the target input parameter information.
2. The method according to claim 1, characterized in that: Before configuring the printing interface service, the method further includes: Defining different types of dynamic variables; the dynamic variables include dynamic information of text information, picture information, meter information, date information and batch number information; each type of the dynamic variables includes at least two subtypes; Each of the dynamic variables is inserted into a preset position in the basic template to determine the universal printing template.
3. The method according to claim 1, characterized in that: Configure printing interface services, including: Determining parameter information of the dynamic variable according to the universal printing template; Determine the fixed parameters; the fixed parameters include font information and device number information of the inkjet printer device; Constructing an input parameter format according to the parameter information of the dynamic variable and the fixed parameter; Configure the printing interface service according to the input parameter format.
4. The method according to claim 1, characterized in that: The response information is used to indicate feedback success information or feedback failure information; The feedback success information is used to indicate that the inkjet printer device can continue to perform the printing operation; The feedback failure information is used to indicate that the inkjet printer device cannot perform the printing operation due to target conditions; the target conditions include one or more of the following: the text variable in the target input parameter information exceeds a preset threshold, the coordinate format of the target input parameter information is incorrect, the type of the dynamic variable of the target input parameter information does not exist, and the variable value format of the target input parameter information is incorrect.
5. The method according to claim 1, characterized in that The method further comprises: The printing interface service is used to receive the log call request of the third-party platform; the log call request is used to provide the third-party platform with the sending information and the receiving information of the inkjet printer device.
6. The method according to claim 1, characterized in that Determine the target incoming parameter information corresponding to the production order requirements, including: Obtaining the production order requirements; the production order requirements include: one or more of the following information: order number, cable segment length, cable total length, cable reel quantity, printing font, and printing content; The printing interface service is called to determine the target input parameter information corresponding to the production order requirement according to each information required by the production order and the preset input parameter format in the printing interface service.
7. The method according to claim 1, characterized in that The method further comprises: If multiple call requests for the printing interface service are received within the same time unit; each call request is used to request to call the printing interface service, and the multiple call requests carry operation information for the same inkjet printer device; Determine at least some of the call requests from the multiple call requests; the types of operation information carried by at least some of the call requests are the same, and the corresponding requesting parties are different; Aggregating at least part of the call requests to obtain a target call request; the target call request includes operation information of the same type of production order for the same inkjet printer device and information of multiple requesting parties; The target call request is sent to the printing interface service, triggering the printing interface service to perform corresponding production order processing operations on the same inkjet printer device according to the operation information carried by the target call request and multiple requester information.
8. A printing control device, characterized in that: include: A first processing module, for configuring a printing interface service; the printing interface service includes pre-configured fixed parameters and dynamic variables determined using a universal printing template; A second processing module is used to respond to a call request from a remotely set third-party platform, call the printing interface service, and determine target input parameter information corresponding to the production order requirements; The call request carries the production order requirement; The third processing module is used to send a printing instruction to the inkjet printer device and receive response information fed back by the inkjet printer device; the printing instruction carries the target input parameter information.
9. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.
