A label parallel printing method, device, printer and storage medium

By establishing a dedicated buffer for each interface and intelligently recognizing printing commands, the problem of existing label printers being unable to handle multiple interfaces and commands simultaneously has been solved, enabling parallel printing of multiple interfaces and commands and improving the printer's convenience.

CN118113234BActive Publication Date: 2026-03-24XIAMEN RONGTA TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing label printers cannot support multiple interfaces and multiple printing commands simultaneously, resulting in data corruption, garbled printing, and high learning costs for users.

Method used

By establishing a dedicated data receiving buffer for each communication interface, the system intelligently identifies and parses the printing instruction type, generates reconstructed label dot matrix data, processes printing data from multiple interfaces and instructions in parallel, and uses a FIFO buffer queue for data organization and printing.

Benefits of technology

It enables parallel printing of multiple interfaces and multiple instruction labels, improving printing convenience and eliminating the need for manual switching of settings instructions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118113234B_ABST
    Figure CN118113234B_ABST
Patent Text Reader

Abstract

The application provides a label parallel printing method and device, a printer and a storage medium, and comprises the following steps: receiving a printing data packet through a plurality of interfaces; establishing a data receiving buffer area according to different interfaces to form a buffer data packet; intelligently identifying the instruction type to which the buffer data packet belongs, separating the label instruction data set into single pages, and sending the label instruction data set to the instruction set FIFO buffer queue in units of pages; reading the single-page label instruction data set, parsing and generating reconstructed label page bitmap data, and buffering the reconstructed label page bitmap data to be printed; adding start and end marks to the label page in units of label pages and sending the label page to the label FIFO buffer queue for printing data organization and arrangement; and extracting the data of each label page from the label FIFO buffer queue in sequence, controlling the heating of the print head and the motor drive to print the label. By using the above scheme, the parallel printing of multiple interfaces and multiple instructions of the label can be realized without manually switching the setting instructions, and the convenience of label printing is fully improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of printing control methods, and in particular to a label parallel printing method, device, printer and storage medium. BACKGROUND

[0002] As shown in the prior art label printer (as shown in the prior art label printer), the following problems exist: Figure 1 Figure 1

[0003] 1. The label printer is usually configured with multiple interfaces (such as USB port, RS232 serial port, RJ45 network port, Bluetooth, WiFi, parallel port, etc.), but does not support simultaneous issuance of printing data for printing through multiple interfaces. If multiple interfaces simultaneously issue printing data for printing, data confusion and printing errors may occur.

[0004] 2. The prior art label printer usually has one built-in programming language (also known as a printing instruction), or has multiple built-in programming languages. However, the user must manually set or use tool software to select one of the printing instructions, and only the selected printing instruction data can be received and printed at any time. If another printing instruction is needed, the user must manually set or issue an instruction to select the other printing instruction.

[0005] 3. In actual application scenarios, multiple systems (such as workstation PCs and background management systems) require the use of multiple interfaces to multiplex label printing. In the event of interface data conflicts, instruction confusion, or when the label printer is moved to adapt to different host computer printing systems, the user must manually switch and set the instructions, which increases the user's learning cost and causes low efficiency.

[0006] In summary, although the conventional label printer is configured with multiple interfaces or multiple printing instructions, it can only process single-interface data at the same time and perform parsing and processing according to the set printing instruction. It cannot simultaneously support multiple-interface data reception and multiple-instruction parallel parsing for printing labels, and is equivalent to a single-interface single-instruction label printer. Therefore, it cannot be widely used with multiple interfaces and multiple instructions.

[0007] Therefore, the present application provides a label parallel printing method, device, printer and storage medium. SUMMARY

[0008] To solve the above problems, one of the technical solutions of the present application is as follows:

[0009] A label parallel printing method, device, printer and storage medium, comprising the following steps:

[0010] S1. Receiving corresponding print data packets through the interfaces of a plurality of different external systems;​​

[0011] S2, establishing a dedicated data receiving buffer area according to different types of interfaces, receiving a print data packet issued by an external system, and forming a buffered data packet;

[0012] S3, intelligently identifying the instruction type to which the buffered data packet of the different type of interface belongs, separating the buffered data packet after intelligent identification into a single-page label instruction data set, and sending the label instruction data set to the corresponding type of instruction set FIFO buffer queue in units of pages for buffering;

[0013] S4, reading the single-page label instruction data set from the instruction set FIFO buffer queue, parsing the single-page label instruction data set to generate reconstructed label page dot matrix data, and buffering the reconstructed label page dot matrix data to be printed;

[0014] S5, adding the reconstructed label page dot matrix data to the start and end identifiers and sending it to the label FIFO buffer queue for buffering, and arranging and arranging the print data in the form of label pages;

[0015] S6, extracting the data of each label page from the label FIFO buffer queue in the order of data entering time, and controlling the print head heating and motor driving to print the label.

[0016] Preferably, in step S3, the identification process of the instruction type to which the buffered data packet of the different type of interface belongs is:

[0017] S31, identifying the print instruction type to which the buffered data packet belongs according to a plurality of characteristic identifier sets of different label instruction data sets, or intelligently identifying the print instruction type to which the buffered data packet belongs through a lightweight neural network classification model.

[0018] Preferably, the print instruction type includes at least two of ZPL instructions, TSPL instructions, EPL instructions, and CPCL instructions.

[0019] Preferably, the interface includes at least two of USB, RS232, RJ45, Bluetooth, WiFi, parallel port, and 4G communication module.

[0020] The second technical solution of the application is as follows:

[0021] A label printing device for implementing a label parallel printing method, comprising a plurality of interfaces for connecting different external systems, an instruction type intelligent identification module, and a main controller, wherein:

[0022] The instruction type intelligent identification module is used to identify the instruction type to which the buffered data packet of each interface belongs;

[0023] The main controller adopts a microcontroller or microprocessor and realizes the label parallel printing method through multi-process and multi-thread parallel execution by running a multi-task real-time operating system.

[0024] The third technical solution of the present application is as follows:

[0025] A printer applying the label parallel printing method and comprising the label printing device.

[0026] The fourth technical solution of the present application is as follows:

[0027] A computer readable storage medium storing a computer program, the computer program being executed by a processor to realize the steps of the label parallel printing method.

[0028] The beneficial effects of the present application are as follows:

[0029] The present application establishes a dedicated data receiving buffer area for each communication interface, intelligently identifies and analyzes the instruction type of the printing instruction data, generates corresponding reconstructed label page dot matrix data, adds start and end identifiers to the label pages for printing data organization and arrangement, and finally extracts the data of each label page from the label FIFO cache queue for label printing, so as to realize the parallel printing of multiple interfaces and multiple instructions without manual switching and setting instructions, and fully improve the convenience of label printing. BRIEF DESCRIPTION OF DRAWINGS

[0030] The accompanying drawings, which are included to provide a further understanding of the present application, form a part of the present application and illustrate embodiments of the present application and together with the description serve to explain the present application. The present application is not intended to be unduly limited by the illustrative embodiments and description, which make use of the principles of the present application.

[0031] Wherein:

[0032] Figure 1 is a logical block diagram of the prior art solution;

[0033] Figure 2 is a logical block diagram of the present application. DETAILED DESCRIPTION

[0034] In order to make the technical problems to be solved by the present application, the technical solutions and beneficial effects more clear, specific embodiments will be described in detail below with reference to the drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0035] Embodiment one

[0036] Please refer to Figure 2 is a label parallel printing method, device, printer and storage medium as an embodiment of the present application, comprising the following steps:

[0037] S1, receiving corresponding print data packets through interfaces of several different external systems;

[0038] S2, establishing a dedicated data receiving buffer area according to different types of interfaces, receiving print data packets issued by external systems, and forming cache data packets;

[0039] S3, intelligently identifying the instruction type to which the cache data packets of different types of interfaces belong, separating the cache data packets after intelligent identification into single-page label instruction data sets, and sending the label instruction data sets to the corresponding type of instruction set FIFO cache queue for caching in units of pages;

[0040] S4, reading single-page label instruction data sets from the instruction set FIFO cache queue, parsing the single-page label instruction data sets to generate reconstructed label page bitmap data, and caching the reconstructed label page bitmap data to be printed;

[0041] S5, adding the reconstructed label page bitmap data to the start and end identifiers and sending it to the label FIFO cache queue for caching in units of label pages, and organizing and arranging the print data in the form of label pages;

[0042] S6, extracting the data of each label page from the label FIFO cache queue in the order of data entry time, and controlling the print head heating and motor transmission to print the label.

[0043] Specifically, the establishment of the cache area: an array or a structure is established in the memory space to construct a FIFO buffer area, the read and write addresses are cyclically incremented, and operations such as FIFO initialization, read and write operations, empty and full judgment, and element number acquisition are implemented, and are packaged into a module.

[0044] The principle of the FIFO cache queue is that a memory space of appropriate size can be used, such as 1M of RAM, and the size of the FIFO is determined by the size of the received data.

[0045] Preferably, in step S3, the identification process of the instruction type to which the cache data packets of different types of interfaces belong is:

[0046] S31, identifying the print instruction type to which the cache data packets belong according to a plurality of feature identifier sets of different label instruction data sets, or intelligently identifying the print instruction type to which the cache data packets belong through a lightweight neural network classification model.

[0047] Preferably, the print instruction type includes at least two of ZPL instructions, TSPL instructions, EPL instructions, and CPCL instructions.

[0048] Preferably, the interface includes at least two of USB, RS232, RJ45, Bluetooth, WiFi, parallel port, and 4G communication module.

[0049] Embodiment two

[0050] A label printing device for implementing a label parallel printing method, comprising a plurality of interfaces for connecting different external systems, an instruction type intelligent identification module, and a main controller, wherein:

[0051] The instruction type intelligent identification module is used to identify the instruction type to which the data packets cached by each interface belong, identify the instruction type to which the data flow belongs according to a plurality of characteristic identifier sets of different label instruction data sets, or intelligently identify the printing instruction type to which the printing data belongs through a lightweight neural network classification model.

[0052] The main controller adopts a microcontroller or a microprocessor, and implements the label parallel printing method through multi-process and multi-thread parallel execution by running a multitasking real-time operating system.

[0053] The microcontroller mainly refers to an MCU, the microprocessor mainly refers to a processor capable of running an embedded operating system, and the real-time operating system refers to various types of embedded real-time operating systems.

[0054] Embodiment three

[0055] A printer applying the label parallel printing method and comprising the label printing device of embodiment two.

[0056] Embodiment four

[0057] A computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps of the label parallel printing method of embodiment one.

[0058] The beneficial effects of the present application are as follows:

[0059] The present application intelligently identifies and analyzes the instruction type of the printing instruction data by establishing a dedicated data receiving buffer area for each communication interface, generates corresponding reconstructed label page dot matrix data, adds start and end identifiers to each label page for printing data organization and arrangement, and finally extracts the data of each label page from the label FIFO cache queue for label printing, so as to realize the parallel printing of labels with multiple interfaces and multiple instructions without manual switching and setting instructions, and fully improve the convenience of label printing.

[0060] The present application has been described above with reference to the accompanying drawings, and obviously the specific implementation of the present application is not limited by the above manner, as long as various non-essential improvements are made by adopting the method concept and technical solution of the present application, or the concept and technical solution of the present application is directly applied to other occasions without improvement, all of which are within the protection scope of the present application.

Claims

1. A method for parallel label printing, characterized in that, Includes the following steps: S1. Receive corresponding print data packets through interfaces of several different external systems; S2. Establish dedicated data receiving buffers for different types of interfaces, receive print data packets sent by external systems, and form cached data packets; S3. Intelligently identify the instruction type of the cached data packets of different types of interfaces, divide the intelligently identified cached data packets into single-page tag instruction datasets, and send the tag instruction datasets to the corresponding type of instruction set FIFO cache queue for caching in units of pages; S4. Read the single-page label instruction dataset from the instruction set FIFO cache queue, parse the single-page label instruction dataset to generate reconstructed label dot matrix data, and cache the reconstructed label dot matrix data to be printed. S5. The reconstructed tab page dot matrix data is added to the start and end markers in tab page units and sent to the tab FIFO cache queue for caching. The print data is organized and arranged in tab page manner. S6. Extract data from each label page sequentially from the label FIFO buffer queue according to the data entry time, and control the print head heating and motor drive to print the labels.

2. The label parallel printing method according to claim 1, characterized in that, In step S3, the process of identifying the instruction type to which the cached data packets of different types of interfaces belong is as follows: S31. Identify the type of print instruction to which the cached data packet belongs based on multiple feature identifier sets of different label instruction datasets, or intelligently identify the type of print instruction to which the cached data packet belongs through a lightweight neural network classification model.

3. The label parallel printing method according to claim 2, characterized in that, The printing instruction type includes at least two of the following: ZPL, TSPL, EPL, and CPCL instructions.

4. The label parallel printing method according to claim 1, characterized in that, The interface includes at least two of the following: USB, RS232, RJ45, Bluetooth, WiFi, parallel port, and 4G communication module.

5. A label printing device, characterized in that, The method for implementing the parallel label printing method as described in claim 1 includes several interfaces for connecting to different external systems, an intelligent instruction type recognition module, and a main controller, wherein: The instruction type intelligent identification module is used to identify the instruction type to which each interface cached data packet belongs; The main controller is a microcontroller or microprocessor, and it achieves parallel label printing by running a multi-tasking real-time operating system to perform multi-process and multi-threaded parallel execution.

6. A printer, characterized in that, The label parallel printing method as described in claim 1 is applied and includes the label printing apparatus as described in claim 5.

7. A computer-readable storage medium, characterized in that, The device contains a computer program that, when executed by a processor, implements the steps of the label parallel printing method according to any one of claims 1-4.

Citation Information

Patent Citations

  • System and method for managing and supporting virtual host bus adaptor (vhba) over infiniband (ib) and for supporting efficient buffer usage with a single external memory interface

    CN105793835A

  • Printing method, printing device, equipment and medium based on wireless connection mode

    CN116820361A