A calling method based on sending instructions to inkjet printers
Through the call method of sending instructions to the inkjet printer in the cloud, the problem of high printing error rate and manual duty caused by manual operation in the prior art is solved, and automatic printing is realized, which reduces the error rate and learning cost and increases the Worker utilization rate.
Patent Information
- Application Number
- CN202410721296.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-05
AI Technical Summary
The existing printing technology based on board or sheet paper requires manual operation of the inkjet printer, resulting in high error rates, workers need to learn equipment from different manufacturers, unable to effectively control the printer, and manual monitoring is required, resulting in unsatisfactory final results.
The call method of sending instructions to the inkjet printer in the cloud, the administrator initializes the equipment and plans the printing content in the data link anti-counterfeiting system, and the worker sends encryption instructions to the cloud server through the mobile terminal. The cloud server transmits the instructions to the corresponding inkjet according to the manufacturer's adapter. The codec terminal replaces manual operation, reduces error rate and learning costs, and avoids human duty.
The automated printing process is realized, which reduces the error rate and worker learning costs, improves worker utilization, and does not require manual duty, ensuring the accuracy and efficiency of the printing content.
Smart Images

Figure CN118295610B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer software technology, and in particular to a calling method for sending instructions to an inkjet printer based on the cloud. Background Art
[0002] Under the current background of industrial digitalization, the printing and coding technology based on sheet materials or sheet paper is usually manually operated by the printer. The content of the printer is edited on the interactive page of the printer to adjust the target printing content to execute the printing process. This printing method has strict requirements and a high error rate. In addition, workers are required to learn the printers of different manufacturers and to manually start and end the operations. This directly leads to unsatisfactory final printing effects or errors in the printing content in most cases. Workers are also unable to control the start and pause of the printer well, and the factory also needs to appoint special personnel to manually guard the printer. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a calling method for sending instructions to an inkjet printer based on the cloud.
[0004] The object of the present invention is achieved by the following technical solution: A calling method for sending instructions to an inkjet printer based on the cloud comprises the following steps:
[0005] S1: The administrator initializes the factory equipment and enters the equipment type in the data link anti-counterfeiting system;
[0006] S2: The factory administrator plans the printing content for the next few days through the data link anti-counterfeiting system. The administrator accesses the data link anti-counterfeiting system and creates a text printing demand instruction or a picture printing demand instruction, and enters or uploads the corresponding specific text content or picture content;
[0007] S3: The data link anti-counterfeiting system initializes the device type information according to the printing device database, and identifies whether the printing requirement instruction matches the device type initialized by the factory in step S1. If the device can print the corresponding printing requirement, the creation is successful;
[0008] S4: Based on the successfully created printing demand instructions, the administrator enters the worker's mobile phone number in the data link anti-counterfeiting system and assigns specific workers according to the daily shift schedule;
[0009] S5: The worker selects the assigned printing data entry through the mobile terminal, and the start printing command on the mobile terminal sends a request to the data link anti-counterfeiting system command controller deployed on the cloud server. After receiving the sending request, it identifies the sending category and assembles the sending content;
[0010] S6: The sent content is encrypted using an asymmetric algorithm, and the factory receiver identifies the printing instructions that need to be executed;
[0011] S7: Decrypt the received instructions and transmit them to the manufacturer adapter deployed in each factory by the data link anti-counterfeiting system according to the factory where the worker is located. The manufacturer adapter enters different manufacturer adapters according to the manufacturer mark carried by the data, sends instructions for assembly, and transmits them to the corresponding manufacturer's inkjet printer terminal.
[0012] Preferably, in step S1, the factory equipment includes TIJ factory equipment, Sojet factory equipment, InkDraw factory equipment and MarkTool factory equipment.
[0013] Preferably, step S3 further includes the following steps:
[0014] S31: Obtain the worker's printing demand application through the interface and obtain basic printing instruction information;
[0015] S32: query the printing machine information and the printing content type information in the printing content according to the basic printing instruction information, and judge whether the current printing type is consistent with the printing content. If not, return to the page pop-up window, and inform the user that the printing information content is incorrect;
[0016] S33: Determine whether to print based on the printing machine information. If the device status is offline, a pop-up window will be returned to the page, informing the user that the printing device is offline and contacting the administrator.
[0017] S34: If the device status is online, different instruction constructors are entered for assembly according to the content type.
[0018] Preferably, in step S31, the basic printing instruction information is the printing content ID.
[0019] Preferably, in step S32, the printing machine information includes the device IP and the device online status.
[0020] Preferably, in step S34, the instruction constructor includes a text instruction constructor, a QR code constructor and a barcode constructor.
[0021] Preferably, step S7 further includes the following steps:
[0022] S71: The printing instruction is decrypted by an asymmetric algorithm to obtain the printing content and the manufacturer of the device to which it belongs;
[0023] S72: Send instructions through the corresponding manufacturer adapter according to the manufacturer tag carried by the data, and decouple and aggregate the instructions.
[0024] The present invention has the following advantages: the present invention plans the printing content in advance by the factory administrator, and the workers click on the mobile phone to send a request to the data link anti-counterfeiting system command controller, and assemble the sent content to encrypt it, thereby ensuring security. After the factory receiver identifies the printing instruction, it is sent to the corresponding manufacturer's inkjet printer terminal through the corresponding manufacturer's adapter, thereby replacing the manual operation of the inkjet printer, avoiding errors in manual editing of content, reducing the learning cost of workers, and at the same time, no human supervision is required, thereby improving the utilization rate of workers. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a structural diagram of the calling method flow for sending instructions to the inkjet printer;
[0026] Figure 2 It is a structural schematic diagram of the method flow of step S3;
[0027] Figure 3 It is a structural schematic diagram of the method flow of step S7. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0029] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0031] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0032] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use, or the positions or positional relationships commonly understood by those skilled in the art, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0033] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0034] In this embodiment, if Figure 1 As shown, a calling method for sending instructions to an inkjet printer based on the cloud includes the following steps:
[0035] S1: The administrator initializes the factory equipment and enters the equipment type in the data link anti-counterfeiting system; further, the factory equipment includes TIJ factory equipment, Sojet factory equipment, InkDraw factory equipment and MarkTool factory equipment.
[0036] S2: The factory administrator plans the printing content for the next few days through the data link anti-counterfeiting system. The administrator accesses the data link anti-counterfeiting system and creates a text printing demand instruction or a picture printing demand instruction, and enters or uploads the corresponding specific text content or picture content;
[0037] S3: The data link anti-counterfeiting system initializes the device type information according to the printing device database, and identifies whether the printing requirement instruction matches the device type initialized by the factory in step S1. If the device can print the corresponding printing requirement, the creation is successful;
[0038] S4: Based on the successfully created printing demand instructions, the administrator enters the worker's mobile phone number in the data link anti-counterfeiting system and assigns specific workers according to the daily shift schedule;
[0039] S5: The worker selects the assigned printing data entry through the mobile terminal, and the start printing command on the mobile terminal sends a request to the data link anti-counterfeiting system command controller deployed on the cloud server. After receiving the sending request, it identifies the sending category and assembles the sending content;
[0040] S6: The sent content is encrypted using an asymmetric algorithm, and the factory receiver identifies the printing instructions that need to be executed;
[0041] S7: Decrypt the received instructions and transmit them to the manufacturer adapter deployed in each factory by the data link anti-counterfeiting system according to the factory where the worker is located. The manufacturer adapter enters different manufacturer adapters according to the manufacturer tag carried by the data, sends instructions for assembly, and transmits them to the corresponding manufacturer's inkjet printer terminal. The factory administrator plans the printing content in advance, and the worker clicks on the mobile phone to send a request to the data link anti-counterfeiting system instruction controller, assembles the sent content and encrypts it, thereby ensuring security. After the factory receiver recognizes the printing instruction, it is sent to the corresponding manufacturer's inkjet printer terminal through the corresponding manufacturer adapter, thereby replacing the manual operation of the inkjet printer, avoiding errors when manually editing content, reducing the learning cost of workers, and at the same time, no human supervision is required, improving the utilization rate of workers. In this embodiment, the data chain anti-counterfeiting system is realized through IoT technology, that is, the factory administrator determines different coding scenarios according to the actual order situation and the factory printing equipment: some orders need to print pictures, some orders need to print text, and some orders need to print QR codes; some orders may also have requirements on where to print: some need to print on sheet paper, and some orders need to print on ordinary paper. Through this method, the administrator can choose according to the printer equipment models of different factories. When it is necessary to print pictures, call the sojet factory equipment to print pictures, and when it is necessary to print text, call the sojet factory equipment or TIJ factory equipment to print text. The administrator can also choose according to the printer scenarios of different factories. When it is necessary to print on sheet paper, call the MarTool factory equipment or call the InkDraw factory equipment to complete the printing call.
[0042] Further, if Figure 2 As shown, step S3 also includes the following steps:
[0043] S31: Obtain the worker's printing demand application through the interface to obtain basic printing instruction information; preferably, the basic printing instruction information is the printing content ID.
[0044] S32: query the printing machine information and the printing content type information in the printing content according to the basic printing instruction information, and judge whether the current printing type is consistent with the printing content. If not, return to the page pop-up window, and inform the user that the printing information content is incorrect;
[0045] S33: Determine whether to print based on the printing machine information. If the device status is offline, a pop-up window will be returned to the page, informing the user that the printing device is offline and contacting the administrator.
[0046] S34: If the device status is online, different instruction constructors are entered for assembly according to the content type. In this embodiment, in step S34, the instruction constructor includes a text instruction constructor, a QR code constructor, and a barcode constructor. Specifically, the text instruction constructor converts the printing content into text and splices other basic parameters; the QR code constructor reserves future multi-code type expansion according to different QR code formats, and then splices other basic parameters; the barcode constructor forms a parameter communication header with barcode type identification according to the input text, and then splices other basic parameters.
[0047] In this embodiment, if Figure 3 As shown, step S7 also includes the following steps:
[0048] S71: The printing instruction is decrypted by an asymmetric algorithm to obtain the printing content and the manufacturer of the device to which it belongs;
[0049] S72: Send instructions through the corresponding manufacturer adapter according to the manufacturer tag of the data, and decouple and aggregate the instructions. Specifically, the main purpose of decoupling and aggregating instructions is to adapt to more manufacturers, to ensure that the manufacturers that have been connected or will be connected use the same set of call sequence steps, and to ensure that the code logic is completely consistent. For example, the following is an example of an instruction from a connected manufacturer:
[0050] (1) TIJ factory: The transmission instructions of the TIJ factory, all visible characters are transmitted in the form of ASCII code hexadecimal, the rules are as follows:
[0051] 1B02 (STX): Start of message
[0052] Machine number: 1 byte
[0053] Command ID: 1 byte
[0054] -- 01 Send print content
[0055] -- 11 Start printing
[0056] -- 12 Stop printing
[0057] -- 26FF Get status
[0058] Data description: >=0 bytes
[0059] 1B03 (ETX): End of message
[0060] If you need to send the print content, the code is 1B02 01 01 01 0B 54 49 4A 1B03; if you need to start printing, the code is 1B02 01 11 1B03;
[0061] (2) InkDraw Factory: The transmission instructions of the InkDraw Factory are transmitted in the form of long link Commands and need to be marked with the # symbol to end. The rules are as follows:
[0062] Fixed header: COMMAND
[0063] Send Type:
[0064] -- Text: OBJECT:%s;TEX;%s#
[0065] -- Barcode: OBJECT:%s;CON;%s#
[0066] Command Hex content:
[0067] COMMAND: R# (send print content)
[0068] COMMAND:start# (start printing)
[0069] If you need to send printed content, the code is
[0070] OBJECT:%s;TEX;%s#
[0071] COMMAND: R#;
[0072] If you need to start printing, the code is COMMAND:start#;
[0073] (3) MarkTool Factory: The transmission instructions of MarkTool Factory are transmitted through the communication data command format of Ethernet. The instruction type of TIJ Factory is to translate the ASCII code into hexadecimal and send it in a fixed header. The rules are as follows:
[0074] Fixed header: 2e2f
[0075] Command code: 01
[0076] Command length: 03 00 00 00
[0077] Command Hex:
[0078] --06 Start printing, it will be sent only in idle state
[0079] --07 Stop printing, send valid in printing state
[0080] --01 print data stream, send valid in printing state
[0081] --08 Query the current operation status. After sending 01, the command is valid.
[0082] If you need to send the print content, the code is 2e 2f 01 03 00 00 00 31 32 33; if you need to start printing, the code is: 2e 2f 06 00 00 00 00.
[0083] (4) Sojet Factory: Sojet Factory makes service calls in the form of TCP on the client's http server, so it opens http calls to trusted clients in the local area network. The rules are as follows:
[0084] Command method: http
[0085] Request content:
[0086] --Get status: http: / / %s:%s / info / status
[0087] --Send text: http: / / %s:%s / data / text
[0088] --Start printing: http: / / %s:%s / engine / printjob (POST)
[0089] --Pause printing: http: / / %s:%s / engine / printjob (DELETE)
[0090] If you need to send the print content, the code is http: / / factory LAN device IP / data / text / and bring the request parameter json; if you need to start printing, the code is http: / / factory LAN device IP / engine / printjob.
[0091] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A calling method for sending instructions to an inkjet printer based on the cloud, characterized in that: The following steps are involved: S1: The administrator initializes the factory equipment and enters the equipment type in the data link anti-counterfeiting system; S2: The factory administrator plans the printing content for the next few days through the data link anti-counterfeiting system. The administrator accesses the data link anti-counterfeiting system and creates a text printing demand instruction or a picture printing demand instruction, and enters or uploads the corresponding specific text content or picture content; S3: The data link anti-counterfeiting system initializes the device type information according to the printing device database, and identifies whether the printing requirement instruction matches the device type initialized by the factory in step S1. If the device can print the corresponding printing requirement, the creation is successful; S4: Based on the successfully created printing demand instructions, the administrator enters the worker's mobile phone number in the data link anti-counterfeiting system and assigns specific workers according to the daily shift schedule; S5: The worker selects the assigned printing data entry through the mobile terminal, and the start printing command on the mobile terminal sends a request to the data link anti-counterfeiting system command controller deployed on the cloud server. After receiving the sending request, it identifies the sending category and assembles the sending content; S6: The sent content is encrypted using an asymmetric algorithm, and the factory receiver identifies the printing instructions that need to be executed; S7: Decrypt the received instructions and transmit them to the manufacturer adapter deployed in each factory by the data link anti-counterfeiting system according to the factory where the worker is located. The manufacturer adapter enters different manufacturer adapters according to the manufacturer mark carried by the data, sends instructions for assembly, and transmits them to the corresponding manufacturer's inkjet printer terminal.
2. The calling method for sending instructions to the inkjet printer based on the cloud according to claim 1 is characterized in that: In the step S1, the factory equipment includes TIJ factory equipment, Sojet factory equipment, InkDraw factory equipment and MarkTool factory equipment.
3. The calling method for sending instructions to the inkjet printer based on the cloud according to claim 2 is characterized in that: The step S3 further includes the following steps: S31: Obtain the worker's printing demand application through the interface and obtain basic printing instruction information; S32: query the printing machine information and the printing content type information in the printing content according to the basic printing instruction information, and judge whether the current printing type is consistent with the printing content. If not, return to the page pop-up window, and inform the user that the printing information content is incorrect; S33: Determine whether to print based on the printing machine information. If the device status is offline, a pop-up window will be returned to the page, informing the user that the printing device is offline and contacting the administrator. S34: If the device status is online, different instruction constructors are entered for assembly according to the content type.
4. The calling method for sending instructions to the inkjet printer based on the cloud according to claim 3 is characterized in that: In the step S31, the basic printing instruction information is the printing content ID.
5. The calling method for sending instructions to the inkjet printer based on the cloud according to claim 4 is characterized in that: In step S32, the printing machine information includes the device IP and the device online status.
6. The calling method for sending instructions to the inkjet printer based on the cloud according to claim 5 is characterized in that: In step S34, the instruction constructor includes a text instruction constructor, a two-dimensional code constructor and a barcode constructor.
7. The calling method for sending instructions to the inkjet printer based on the cloud according to claim 6 is characterized in that: The step S7 further includes the following steps: S71: The printing instruction is decrypted by an asymmetric algorithm to obtain the printing content and the manufacturer of the device to which it belongs; S72: Send instructions through the corresponding manufacturer adapter according to the manufacturer tag carried by the data, and decouple and aggregate the instructions.
Citation Information
Patent Citations
Remote implementation method based on industrial inkjet printer control system
CN103802509A
Method for controlling printing of code spraying and printing equipment by utilizing satellite positioning
CN109263315A
Data processing method based on block chain network and related equipment
CN111740966A
Monitoring and early warning system for anti-counterfeiting traceability production line
CN213276355U
Resource management for a printing system via job ticket
US6917437B1
