Continuous printing pausing method and device, printing equipment, storage medium and program product
By determining the pause type and predetermined position, the system precisely stops on the printing medium. Combined with a resume printing strategy, this solves the problem of positional deviation after a pause, achieving continuity of printed content and efficient resume printing.
Patent Information
- Application Number
- CN202512006968.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-05-08
AI Technical Summary
Existing printing technologies are prone to positional deviations and parameter fluctuations when pausing to resume printing, resulting in paper waste and poor print quality.
By responding to pause commands, the pause type is determined, and the system stops precisely at a predetermined position. The system then combines the pause type and the predetermined position to determine the resume printing strategy, ensuring that the pixel deviation between the resumed printing content and the already printed content in the paper output direction is less than a preset threshold.
It achieves physical continuity of printed content, reduces paper waste, and improves the printing effect and content continuity when pausing and resuming printing.
Smart Images

Figure CN121989569A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of print continuation technology, and more specifically, to a method, apparatus, printing equipment, computer-readable storage medium, and computer program product for pausing and resuming printing. Background Technology
[0002] With the popularization of information-based office work and the diversification of graphic output needs, printers have become essential equipment in various scenarios. From traditional dot matrix printing to the upgrading and iteration of inkjet and laser printing technologies, printers are constantly pursuing faster output speeds, higher resolutions, and more convenient operating experiences. Various printing devices have also developed accordingly to adapt to the needs of high-precision printing in different scenarios.
[0003] Existing printing technology may experience printing position deviations or parameter fluctuations when resuming printing after a pause, resulting in paper waste or blurry printed content and poor printing quality. Summary of the Invention
[0004] This application provides a method, apparatus, printing device, computer-readable storage medium, and computer program product for pausing and resuming printing, aiming to solve the technical problem of poor printing effect caused by positional deviation during pausing and resuming printing.
[0005] Firstly, a pause-and-resume method is provided, which includes: In response to a pause command, determine the pause type; Based on the pause type, perform a pause operation to stop the print media at the predetermined pause position; When a resume printing instruction is received from the printing media, a resume printing strategy is determined based on the pause type and / or the predetermined pause position; the resume printing strategy includes the resume printing position. The printing media and printhead are driven to start printing from the resume position so that the physical position of the resumed content is continuous with the physical position of the content that was printed before the pause, and the pixel deviation of the physical position in the paper output direction of the printing media is less than a preset pixel number threshold.
[0006] Optionally, in response to a pause command, determine the pause type, including: In response to a pause command, determine the triggering method of the pause command; the triggering method includes at least one of the following: receiving a paper shortage signal from the media balance detection module, receiving a planned pause command issued by the user through the operation interface, receiving an emergency stop signal issued when the user triggers the emergency stop button, or receiving a fault error signal generated by the printing device; The pause type is determined based on the triggering method.
[0007] Optionally, the pause types include a first type and a second type; The method also includes: If the triggering method is receiving a paper shortage signal from the media balance detection module and / or receiving a planned pause command issued by the user through the operation interface, then the pause type is the first type; If the triggering method is receiving an emergency stop signal from the user when pressing the emergency stop button and / or receiving a fault error signal generated by the printing device, then the pause type is the second type.
[0008] Optionally, the pause type includes the first type; Based on the pause type, perform a pause operation, including: Based on the first type, control the printing device to complete the printing of the current label; Drive the paper feeding assembly to move the printing medium so that the preset structure position on the printing medium is aligned with the preset reference position of the printing device; After the printing media has finished moving, control the printing media to stop at the predetermined pause position.
[0009] Optionally, the printing media includes multiple labels, and the preset structural positions include the gap positions between the labels or the preset marking positions on the back of the printing media; The preset reference position includes the cut position of the printing device or the position of the detection point of the optical sensor.
[0010] Optionally, the predetermined pause position includes the physical location at the time of stopping, and the pause type includes a second type; Based on the pause type, perform a pause operation, including: Upon receiving a pause command, based on the second type, the printing media is controlled to stop at its current physical position.
[0011] Optionally, upon receiving a pause command, based on the second type, control the printing media to stop at its current physical position, including: Upon receiving a pause command, based on the second type, the printhead power is interrupted and the paper feed assembly is braked to control the printing media to stop at the current physical position.
[0012] Optionally, the pause type includes a second type; When a resume print instruction is received from the print media, a resume print strategy is determined based on the pause type and / or the predetermined pause position, including: When a resume printing instruction is received from the printing media, a position calibration operation is performed based on the pause type and / or the predetermined pause position to obtain the resume printing position; Position calibration operations include: After controlling the printing medium to move a first preset distance in the first direction, it moves in the second direction so that the position of the detection point of the optical sensor is aligned with the label feature structure in the printing medium; the first direction is the opposite direction of the paper output direction of the printing medium, and the second direction is the paper output direction of the printing medium.
[0013] Optionally, the method also includes: Compare the continue position with the preset continue position, and calculate the positional offset between the continue position and the preset continue position; The continuation position of the continuation content is dynamically compensated based on the position offset to obtain the compensated continuation position.
[0014] Optionally, based on the pause type, performing a pause operation to stop the print media after a predetermined pause position also includes: A pause state snapshot is generated based on the pause type, the identification information of the last label printed at the time of the pause, and the predetermined pause position; the predetermined pause position includes the logical position and / or physical position when the printing media stops. Store the paused state snapshot to non-volatile memory.
[0015] Optionally, the pause types include a first type and a second type; When a resume print instruction is received from the print media, a resume print strategy is determined based on the pause type and / or the predetermined pause position, including: When a resume printing command is received from the printing media, a snapshot of the paused state is read from the non-volatile memory; If the pause type in the pause snapshot is type 1, then the starting position of the unprinted label is determined based on the pause snapshot, and the continuation position is obtained. If the pause type in the pause snapshot is type 2, a position calibration operation is triggered to obtain the calibrated resume position.
[0016] Optionally, before driving the print media and printhead to start printing from the continuous printing position, the following are also included: Display the printing media on the user interface and mark the continuation printing position on the printing media; Receive the user's adjustment operation for the continuation position and obtain the adjusted continuation position.
[0017] Optionally, before driving the print media and printhead to start printing from the continuous printing position, the following are also included: The sensor detects damage to the unprinted label closest to the next printing position in the printing medium. If the most recently printed unprinted label is damaged, the printing media is controlled to be fed out until the sensor detects an undamaged unprinted label.
[0018] Secondly, a pause-and-resume device is provided, the device comprising: The response module is used to determine the pause type in response to a pause command; The pause module is used to perform a pause operation based on the pause type, so that the printing media stops at a predetermined pause position; The strategy determination module is used to determine the continuation strategy based on the pause type and / or the predetermined pause position when a continuation instruction is received from the printing media; the continuation strategy includes the continuation position. The resume printing module is used to drive the printing media and printhead to resume printing from the resume printing position, so that the physical position of the resumed printing content is continuous with the physical position of the printed content before the pause and the pixel deviation of the physical position in the paper output direction of the printing media is less than a preset pixel number threshold.
[0019] Thirdly, a printing apparatus is provided, the printing apparatus comprising: A memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any of the methods in the first aspect of this application.
[0020] Fourthly, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the pause-and-resume method shown in any of the first aspects of this application.
[0021] Fifthly, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the steps of any one of the methods in the first aspect of this application.
[0022] The beneficial effects of the technical solutions provided in this application are: The pause-and-resume printing method provided in this application determines the pause type in response to a pause command and performs a pause operation based on the pause type, ensuring that the printing medium stops precisely at the predetermined pause position and avoiding positional deviations caused by positioning confusion during pauses. When a resume printing command is received, a resume printing strategy including the resume printing position is determined by combining the pause type and the predetermined pause position, clarifying the precise positioning logic of the resume printing start point, and driving the printing medium and print head to start printing from the resume printing position. The pixel deviation between the resumed printing content and the content printed before the pause in the paper output direction is controlled to be less than a preset threshold, achieving physical positional continuity. This avoids the content misalignment problem caused by positioning ambiguity in traditional resume printing, reduces paper waste caused by reprinting due to deviation, and ensures the continuity between the resumed printing content and the original content by controlling the pixel deviation to be less than a preset pixel number threshold, significantly improving the printing effect of pause-and-resume printing. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.
[0024] Figure 1 This is a schematic diagram illustrating an application scenario of a pause-and-resume method provided in an embodiment of this application; Figure 2 A flowchart illustrating a pause-and-resume method provided in an embodiment of this application; Figure 3 A flowchart illustrating an example of a pause-and-resume method provided in this application embodiment; Figure 4 This is a schematic diagram of a pause-and-resume device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a printing device to which a pause-and-resume printing method is applicable, as provided in an embodiment of this application. Detailed Implementation
[0025] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.
[0026] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in the embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The terms “or,” “and / or,” “including at least one of the following,” etc., as used in this application, can be interpreted as inclusive, or mean any one or any combination thereof. For example, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", and "A, B or C" or "A, B and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C".
[0027] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0028] In the specific embodiments of this application, any data related to the object, such as data involved in the use of the application, is required. When the embodiments of this application are applied to specific products or technologies, permission or consent from the object is required, and the collection, use, and processing of the relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. In other words, if any of the aforementioned object-related data is involved in the embodiments of this application, this data must be obtained with the object's authorization and consent, and in accordance with the relevant laws, regulations, and standards of the country and region.
[0029] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0030] In existing technologies, printing may be paused during label printing. When printing resumes after a pause, problems such as blurry content, uneven ink coverage, and missing barcodes or text often occur, rendering the label paper unusable and resulting in paper waste. Furthermore, during the pause, the paper feeding system and positioning module of the device may experience slight misalignment, leading to printing position deviations after printing resumes. For example, the printed content may deviate from the preset label area, or the content alignment of multiple labels may be inconsistent, affecting the readability of the labels.
[0031] The pause-and-resume printing method, apparatus, printing equipment, computer-readable storage medium, and computer program product provided in this application are intended to solve at least one of the above-mentioned technical problems of the prior art.
[0032] To address at least one of the aforementioned technical problems or areas requiring improvement in related technologies, this application proposes a pause-and-resume printing method, apparatus, printing device, computer-readable storage medium, and computer program product. The pause-and-resume printing method provides a method that determines the pause type in response to a pause command, performs a pause operation based on the pause type, ensures the printing medium stops precisely at a predetermined pause position, and avoids positional deviations caused by positioning confusion during pauses. When a resume printing command is received, a resume printing strategy including the resume printing position is determined by combining the pause type and the predetermined pause position, clarifying the precise positioning logic of the resume printing start point, driving the printing medium and print head to start printing from the resume printing position, and controlling the pixel deviation between the resumed printing content and the previously printed content in the paper output direction to be less than a preset threshold, achieving physical positional continuity. This avoids the content misalignment problem caused by positioning ambiguity in traditional resume printing, thereby reducing paper waste caused by reprinting due to deviations. Furthermore, by controlling pixel deviation, the continuity between the resumed printing content and the original content is ensured, significantly improving the printing effect of pause-and-resume printing.
[0033] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.
[0034] Figure 1 This is a schematic diagram of an application scenario for the pause-and-resume printing method provided in this application embodiment. The application environment may include a printing device 100, which includes a printhead.
[0035] Specifically, in response to a pause command, the printing device 100 determines the pause type and performs a pause operation based on the pause type to stop the printing media at a predetermined pause position. When a resume printing command is received from the printing media, the device determines a resume printing strategy based on the pause type and / or the predetermined pause position, including the resume printing position, and drives the printing media and print head to start printing from the resume printing position so that the physical position of the resumed content is continuous with the physical position of the content printed before the pause and the pixel deviation of the physical position in the paper output direction of the printing media is less than a preset pixel number threshold.
[0036] The above application scenario is just an example and does not limit the application scenarios of the pause-and-resume method in this application.
[0037] Those skilled in the art will understand that printing equipment can be label printers, barcode printers, thermal printers, thermal transfer printers, high-precision inkjet printers, industrial-grade laser printers, etc., and can be used to print various types of labels, tickets, documents, etc. Printing equipment can establish connections with computers, mobile terminals, industrial control equipment or other network devices via wired or wireless means such as USB, parallel port, serial port, Ethernet, Wi-Fi, Bluetooth, etc., but is not limited to these.
[0038] In some possible implementations, taking a printing device as an example, this application provides a pause-and-resume printing method, such as... Figure 2 As shown, it may include the following steps: S210, in response to a pause command, determines the pause type.
[0039] The pause types can include predictable pauses or emergency passive pauses. Predictable pauses include paper shortage pauses or planned pauses, while emergency passive pauses include emergency stop button triggers or fault triggers. By using different pause operations, the printing media is stopped in the appropriate position, which facilitates subsequent printing operations and improves printing efficiency.
[0040] S220, based on the pause type, performs a pause operation to stop the printing media at a predetermined pause position.
[0041] Specifically, the pause type of the pause command is determined, and the corresponding pause operation is determined based on the pause type. The print media is controlled to stop at the predetermined pause position. Preset pause operations or pause positions corresponding to different pause types can be preset to obtain a pause mapping table. When in application, the pause operation or pause position corresponding to the pause type is found based on the pause mapping table, thereby executing the pause operation, controlling the print media to move and stop at the predetermined pause position, and improving the efficiency of pause-to-resume printing.
[0042] S230, when receiving a resume printing instruction from the printing media, determines a resume printing strategy based on the pause type and / or the predetermined pause position.
[0043] Among them, the strategy for continuing to hit includes the position for continuing to hit.
[0044] Specifically, after receiving the resume printing instruction from the printing media, the pause type and / or pause position corresponding to the resume printing instruction are determined. Based on the printing requirements of the resume printing instruction, the resume printing strategy is determined, including the resume printing start position, resume printing method, and resume printing parameters. The resume printing method includes directly printing the content to be printed before the pause at the resume printing start position, or moving to another resume printing start position to reprint all the content that needs to be printed. The specific settings are made according to the actual situation.
[0045] In the specific implementation process, when a resume printing instruction is received from the printing media, the type of pause is determined, such as pause due to running out of consumables, manual pause, or pause due to equipment failure. Combined with the preset pause position information, such as whether it is in the middle of a single page, at a page break, or at a node in a batch of files, an appropriate resume printing strategy is determined. For example, if the consumables are exhausted and the pause is at a page break, the consumables can be replenished directly and the printing can be seamlessly resumed from the next page. If the pause is due to a failure and the breakpoint is in the middle of a single page, the integrity of the breakpoint data must be verified first before resuming the print job to avoid duplicate or missing content. If the pause is manual, the instructions in the resume printing instruction are followed first for positioning and resuming the print job.
[0046] S240 drives the printing media and printhead to start printing from the resume position, so that the physical position of the resumed content is continuous with the physical position of the previously printed content before the pause, and the pixel deviation of the physical position in the paper output direction of the printing media is less than a preset pixel number threshold.
[0047] Specifically, the print head is driven to move to the corresponding continuation position on the printing medium and start printing. The continuation position is precisely positioned so that the physical position of the continuation content is continuous with the physical position of the content that was printed before the pause, and the pixel deviation of the physical position in the paper output direction of the printing medium is less than a preset pixel number threshold.
[0048] In practice, the printing equipment drives the printing media and printhead to be precisely positioned at the reprint position and then starts the printing process. During the process, the paper feed speed of the printing media and the step size of the printhead need to be calibrated in real time. Based on the coordinate parameters of the end of the printed content recorded before the pause, the starting pixel of the reprinted content is precisely connected with the end pixel of the printed content. This ensures that the physical position of the two in the paper output direction of the printing media is continuous without any breaks, and the pixel deviation value is strictly controlled within the preset threshold range, thereby ensuring the integrity and aesthetics of the overall printed content.
[0049] In practice, the preset pixel number threshold can be set based on actual printing needs. For example, at a printing resolution of 300 DPI, the preset pixel number threshold can be set to 2 pixels, which corresponds to a physical deviation of about 0.017 mm, which can meet the requirements of clarity and continuity of label printing.
[0050] In some possible implementations, the step described above, in response to a pause command, determines the pause type, including: In response to a pause command, determine how the pause command is triggered; The pause type is determined based on the triggering method.
[0051] The triggering methods include at least one of the following: receiving a paper shortage signal from the media balance detection module, receiving a planned pause command issued by the user through the operation interface, receiving an emergency stop signal issued when the user triggers the emergency stop button, or receiving a fault error signal generated by the printing device.
[0052] Specifically, in response to a pause command, the triggering method of the pause command is determined, the pause type is determined based on the triggering method, and a pause operation is performed based on the pause type, so that the printing media stops at the predetermined pause position, making it convenient for subsequent reprint operations.
[0053] In the specific implementation process, in response to the print pause command, the specific triggering method of the pause command is identified. Specifically, it can cover the paper shortage signal received from the media balance detection module, the planned pause command issued by the user through the device operation interface, the emergency stop signal generated by the user triggering the emergency stop button, and the type of fault error signal generated when the printing device itself is malfunctioning. Then, the type of print pause is determined according to the different triggering methods. For example, the paper shortage signal corresponds to the consumable shortage pause, the planned pause command corresponds to the active planning pause, the emergency stop signal corresponds to the emergency intervention pause, and the fault error signal corresponds to the device malfunction pause.
[0054] In some possible implementations, the above method further includes: If the triggering method is receiving a paper shortage signal from the media balance detection module and / or receiving a planned pause command issued by the user through the operation interface, then the pause type is the first type; If the triggering method is receiving an emergency stop signal from the user when pressing the emergency stop button and / or receiving a fault error signal generated by the printing device, then the pause type is the second type.
[0055] The pause types include Type 1 and Type 2.
[0056] Specifically, the types of print pauses are clearly categorized according to their triggering methods: if the pause command is triggered by receiving a paper shortage signal from the media balance detection module, or by receiving a planned pause command from the user through the operation interface, or by both signals simultaneously, then the print pause is classified as Type 1; if the pause command is triggered by receiving an emergency stop signal from the user pressing the emergency stop button, or by receiving a fault error signal generated during the operation of the printing device, or by both signals simultaneously, then the print pause is classified as Type 2. The pause types are divided into predictable pauses (Type 1) and emergency passive pauses (Type 2), thereby determining different pause operations, pause positions, resume positions, and resume methods, and performing resume operations more accurately.
[0057] In some possible implementations, the above steps involve performing a pause operation based on the pause type, including: Based on the first type, control the printing device to complete the printing of the current label; Drive the paper feeding assembly to move the printing medium so that the preset structure position on the printing medium is aligned with the preset reference position of the printing device; After the printing media has finished moving, control the printing media to stop at the predetermined pause position.
[0058] Among them, the pause type includes the first type.
[0059] Specifically, if the triggering method is receiving a paper shortage signal from the media balance detection module and / or receiving a planned pause command issued by the user through the operation interface, the printer is controlled to complete the printing of the current label, and the paper feeding assembly is driven to move the printing media so that the preset structural position on the printing media is aligned with the preset reference position of the printing device. After the printing media has been moved, the printing media is controlled to stop at the predetermined pause position. Based on the first type of pause, this operation can achieve complete printing of the current content and avoid incomplete printing. By driving the paper feeding assembly to accurately align the preset structural position of the printing media with the preset reference position of the device, it can be ensured that the printing media stops at the predetermined pause position, providing a reliable benchmark for positioning calibration during subsequent printing, effectively reducing the positional deviation of the printed content, and improving the consistency and accuracy of the overall printing operation.
[0060] In the specific implementation process, for the first type of pause, the printing equipment is controlled to continue running until the current label is completely printed to avoid content interruption. Then, the paper feeding assembly is driven to move the printing medium precisely. By identifying the preset structure position on the printing medium, it is precisely aligned with the preset reference position of the printing equipment. After the position of the printing medium is calibrated, the paper feeding assembly is controlled to stop running, so that the printing medium is stably stopped at the predetermined pause position, preparing for seamless re-printing.
[0061] In the specific implementation process, if the pause type is the first type, when the resuming instruction of the printing medium is received, the resuming position is determined based on the predetermined pause position, thereby driving the printing medium and the print head to start printing from the resuming position, so that the physical position of the resuming content is continuous with the physical position of the already printed content before the pause and the pixel deviation of the physical position in the paper output direction of the printing medium is less than the preset pixel number threshold. The predetermined pause position can be the resuming position.
[0062] In some possible implementations, the printing medium in the above steps includes multiple labels, and the preset structural positions include the gap positions between the labels or the preset marking positions on the back of the printing medium; The preset reference position includes the cut position of the printing device or the position of the detection point of the optical sensor.
[0063] Specifically, the printing medium can have multiple labels arranged in a continuous manner. The preset structural position can be the gap between the labels or the marking position pre-printed on the back of the printing medium. The preset reference position of the printing device is set to the cutting position of the device or the detection point position of the optical sensor. The printing medium can be accurately positioned by matching the two.
[0064] In the specific implementation process, in the application scenario of label printing, the preset structural position can be the gap between labels or the black mark printed on the back of the label (preset marking position), and the preset reference position can be the cutting edge of the printing device or the fixed optical sensor detection point.
[0065] In some possible implementations, the above steps involve performing a pause operation based on the pause type, including: Upon receiving a pause command, based on the second type, the printing media is controlled to stop at its current physical position.
[0066] The predetermined pause location includes the physical location at the time of stopping, and the pause type includes the second type.
[0067] Specifically, upon receiving a pause command, if the triggering method is receiving an emergency stop signal from the user pressing the emergency stop button and / or receiving a fault error signal generated by the printing device, and the pause type is the second type, then the printing media is controlled to stop at the current physical position at the time the pause command is received. In emergency situations, such as paper jams or printing errors, printing is paused in time to avoid further waste of paper or damage to the equipment. The location information at the time of the fault or emergency stop is retained to provide a basis for subsequent troubleshooting.
[0068] In some possible implementations, after receiving the pause command in the above steps, based on the second type, controlling the printing media to stop at the current physical position includes: Upon receiving a pause command, based on the second type, the printhead power is interrupted and the paper feed assembly is braked to control the printing media to stop at the current physical position.
[0069] Specifically, upon receiving a pause command, if the triggering method is determined to be an emergency stop signal issued when the user triggers the emergency stop button and / or a fault error signal generated by the printing device, then the printhead energy is interrupted and the paper feed assembly is braked to control the printing media to stop at the current physical position.
[0070] In the actual implementation process, after receiving a pause command, the system determines that it belongs to the second type of pause and immediately interrupts the energy supply to the print head, so that it stops ink jetting or heating to avoid problems such as color residue on the printing medium. Simultaneously, it triggers the braking mechanism of the paper feeding assembly, quickly locks the paper feeding transmission structure, and controls the printing medium to stay at its current physical position with minimal inertia. This prevents additional displacement caused by inertia and printing misalignment, and also provides a stable reference for positioning calibration when printing is resumed later.
[0071] In some possible implementations, when a resume printing instruction is received from the printing media in the above steps, a resume printing strategy is determined based on the pause type and / or a predetermined pause position, including: When a resume printing instruction is received from the printing media, a position calibration operation is performed based on the pause type and / or the predetermined pause position to obtain the resume printing position; Position calibration operations include: After controlling the printing medium to move a first preset distance in the first direction, it moves in the second direction so that the position of the detection point of the optical sensor is aligned with the label feature structure in the printing medium.
[0072] Among them, the pause type includes the second type; the first direction is the opposite direction of the paper output direction of the printing medium, and the second direction is the paper output direction of the printing medium.
[0073] Specifically, when a re-printing command is received from the printing media, a position calibration operation is performed based on the pause type and / or a predetermined pause position. The printing media is then moved a first preset distance in the opposite direction of the paper output direction and then moved in the paper output direction to align the position of the optical sensor's detection point with the label feature structure in the printing media, thus determining the re-printing position. Through a series of actions including active pull-back and re-targeting, the unavoidable positioning error (such as inertial overshoot) during an emergency stop is eliminated, and the print head is re-aligned to the correct starting position, thereby achieving high-precision re-printing.
[0074] In the specific implementation process, when a reprint instruction is received from the printing media, the appropriate reprint execution strategy is determined by combining the current task's pause type and the preset pause position parameters. Based on the matching result of the pause type and the predetermined pause position, the position calibration operation is automatically initiated to accurately locate the reprint start point. The specific process of the position calibration operation is as follows: drive the paper feeding component to control the printing media to move a first preset distance in the opposite direction of the paper output direction (first direction) to eliminate possible position offset errors during pause. Then, control the printing media to turn to the paper output direction (second direction) and move slowly until the detection point of the optical sensor is accurately aligned with the label feature structure on the printing media, complete the position calibration, and lock the final reprint position, providing a reliable position reference for seamless connection of subsequent printing operations.
[0075] In some possible implementations, the above method further includes: Compare the continue position with the preset continue position, and calculate the positional offset between the continue position and the preset continue position; The continuation position of the continuation content is dynamically compensated based on the position offset to obtain the compensated continuation position.
[0076] Specifically, after completing position calibration and obtaining the actual continue printing position, the continue printing position is precisely compared with the pre-stored preset continue printing position. The positional offset between the two is calculated through coordinate difference calculation. Based on the positional offset, dynamic compensation adjustment is performed on the target output position of the continue printing content to be printed. Specifically, this can be achieved by fine-tuning the trigger timing of the print head and correcting the stepping distance of the paper feeding component, etc., to offset the positional errors caused by the pause and calibration process, and finally obtain the accurate continue printing position after compensation. This ensures seamless connection between the continue printing content and the already printed content, avoiding printing problems such as misalignment and ghosting. It not only moves the printing media to the correct position, but also aligns the calculated position with the physical position, ensuring the absolute position accuracy of the printed content on the label and avoiding content misprinting.
[0077] In some possible implementations, the above steps, which involve performing a pause operation based on the pause type to stop the printing media after a predetermined pause position, further include: Generate a snapshot of the pause status based on the pause type, the identification information of the last label printed at the time of the pause, and the predetermined pause position; Store the paused state snapshot to non-volatile memory.
[0078] The predetermined pause position includes the logical and / or physical position at which the printing media stops.
[0079] Specifically, based on the pause type, the identification information of the last label printed at the time of pause, and the predetermined pause position, a pause state snapshot is generated and stored in non-volatile memory. Even if the printer is completely powered off and restarted, it can accurately know what happened and where it stopped after recovery, ensuring the persistence of information.
[0080] In the specific implementation process, a state snapshot is formed by combining the pause type, the identification information of the last label printed when the pause occurs, and the logical and / or physical location information of the printing medium stopping (predetermined pause position) and saved to non-volatile memory.
[0081] In the specific implementation process, upon receiving a pause command and completing the pause operation, the system can integrate the current pause type, the unique identifier of the last label that has been printed at the pause time, and the coordinate data of the pre-set predetermined pause position. A pause state snapshot containing key pause states is generated according to a preset data format. This snapshot is then completely stored in non-volatile memory, ensuring that the snapshot data is not lost in scenarios such as power outages or prolonged pauses. This provides a comprehensive and reliable original state basis for strategy determination, position calibration, and error compensation when subsequent reprint commands are triggered. The unique identifier of the label includes the label number, content feature code, and printing parameter association information.
[0082] In some possible implementations, when a resume printing instruction is received from the printing media in the above steps, a resume printing strategy is determined based on the pause type and / or a predetermined pause position, including: When a resume printing command is received from the printing media, a snapshot of the paused state is read from the non-volatile memory; If the pause type in the pause snapshot is type 1, then the starting position of the unprinted label is determined based on the pause snapshot, and the continuation position is obtained. If the pause type in the pause snapshot is type 2, a position calibration operation is triggered to obtain the calibrated resume position.
[0083] The pause types include Type 1 and Type 2.
[0084] Specifically, when a reprint command for the printing media is received, a pause state snapshot is read from the non-volatile memory. If the pause type in the pause state snapshot is the first type, i.e., the triggering method is receiving a paper out signal from the media balance detection module and / or receiving a planned pause command issued by the user through the operation interface, then the starting position of the unprinted label is determined based on the pause state snapshot to obtain the reprint position. If the pause type in the pause state snapshot is the second type, i.e., the triggering method is receiving an emergency stop signal issued when the user triggers the emergency stop button and / or receiving a fault error signal generated by the printing device, then a position calibration operation is triggered to obtain the calibrated reprint position.
[0085] In the specific implementation process, if the pause type is determined to be the first type after parsing the snapshot, the precise starting position of the unprinted label is calculated and determined directly based on the identification information of the last printed label recorded in the snapshot, the predetermined pause position, and other key parameters. This position is used as the initial execution position for the next printing. If the pause type is determined to be the second type, the position data in the snapshot is no longer used directly. Instead, a preset position calibration operation is immediately triggered. The printing medium is controlled to move a first preset distance in the opposite direction of paper output and then move in the direction of paper output until the optical sensor detection point aligns with the label feature structure. The position calibration is completed and the reprint position after calibration is locked. Thus, a differentiated reprint position determination strategy is adopted for different pause types to ensure the accuracy and continuity of the reprint operation in various scenarios.
[0086] In some possible implementations, before driving the printing media and printhead to start printing from the continuous printing position in the above steps, the following steps are also included: Display the printing media on the user interface and mark the continuation printing position on the printing media; Receive the user's adjustment operation for the continuation position and obtain the adjusted continuation position.
[0087] Specifically, the system can display the printing media on the user interface and mark the pause and resume positions on the printing media. It can receive user adjustments to the resume position and obtain the adjusted resume position. This increases the user interaction, gives the final decision-making power to the user, and provides fine-tuning functions to deal with extreme situations. This greatly improves the reliability of the system and the user's sense of control, and avoids the waste of resources and consumables caused by the system's automatic judgment errors.
[0088] In practical implementation, the printing device may include a display unit. After completing the initial determination or calibration of the print continuation position, the display unit intuitively presents a preview of the printing media on the user interface. Simultaneously, based on the determined print continuation position information, the print continuation position is marked with prominent markings on the corresponding physical location in the preview image, such as highlighted lines, positioning boxes, color marks, etc., allowing the user to clearly see the relative relationship between the print continuation position and the already printed content. The device can receive print continuation position adjustment operations initiated by the user through interface buttons, touch drag, or parameter input in real time, automatically recognize the user's adjustment direction and magnitude, synchronously update the marked position on the preview image, and calculate and generate the adjusted precise print continuation position based on the user's operation instructions, providing a positional basis that fits the user's actual needs for print continuation operations.
[0089] In a specific implementation, the printing device can connect to a client, which can display a preview of the printing medium and the corresponding print continuation position to the user, and receive the user's adjustment operation for the print continuation position through the client to obtain the adjusted print continuation position.
[0090] In some possible implementations, before driving the printing media and printhead to start printing from the continuous printing position in the above steps, the following steps are also included: The sensor detects damage to the unprinted label closest to the next printing position in the printing medium. If the most recently printed unprinted label is damaged, the printing media is controlled to be fed out until the sensor detects an undamaged unprinted label.
[0091] Specifically, the sensor detects the damage of the nearest unprinted label in the printing medium to the next printing position. The detection range covers key quality indicators such as scratches, stains, edge defects, and damage to barcode or pattern areas on the label surface. If the nearest unprinted label is damaged, the paper feeding component is controlled to eject the paper, controlling the printing medium to be ejected until the sensor identifies an undamaged unprinted label. This avoids invalid printing on damaged labels, reduces waste of consumables and time, and ensures print quality.
[0092] In practice, sensors can be used to detect and identify the integrity of new unprinted labels in real time. Once the sensor detects an undamaged unprinted label that meets the quality requirements, the paper feed is stopped and the position of that label is used as the new reference position for reprinting, thus avoiding printing failures or quality issues caused by damaged labels.
[0093] In practical implementation, in thermal printing scenarios, paper jams may cause the print head to continuously heat the same spot, resulting in the label paper burning through. In this case, it is necessary to use a sensor to detect whether the label paper is intact. Specifically, the sensor can detect the transmission or reflection of the label paper to determine whether the label paper is damaged, thereby processing the damaged label paper and ensuring printing quality.
[0094] In the above embodiments, the pause type is determined by responding to the pause command, and the pause operation is performed based on the pause type to ensure that the printing medium stops accurately at the predetermined pause position, avoiding positional deviation caused by positioning confusion during the pause. When a resume command is received, the resume strategy including the resume position is determined by combining the pause type and the predetermined pause position, clarifying the precise positioning logic of the resume starting point, driving the printing medium and print head to start printing from the resume position, and controlling the pixel deviation between the resumed content and the content printed before the pause in the paper output direction to be less than a preset threshold, so as to achieve physical position continuity. This avoids the content misalignment problem caused by positioning ambiguity in traditional resume printing, thereby reducing paper waste caused by reprinting due to deviation. Furthermore, by controlling the pixel deviation, the continuity between the resumed content and the original content is ensured, significantly improving the printing effect of pause-resume printing.
[0095] In one example, the pause-and-resume method of this application is as follows: Figure 3 As shown, it may include: In response to a pause command, determine the pause type; If the pause type is the first type, control the printing device to complete the printing of the current label; Drive the paper feeding assembly to move the printing medium so that the preset structure position on the printing medium is aligned with the preset reference position of the printing device; After the printing media has finished moving, control the printing media to stop at the predetermined pause position; When a reprint command is received from the printing media, the reprint position is determined based on the predetermined pause position; If the pause type is type 2, the printing media is stopped at the current physical position; When a resume printing instruction is received from the printing media, a position calibration operation is performed based on the pause type and / or the predetermined pause position to obtain the resume printing position; The driver drives the printing media and printhead to start printing from the continuous printing position.
[0096] The above-described pause-and-resume printing method determines the pause type by responding to a pause command and performs a pause operation based on the pause type, ensuring that the printing media stops precisely at the predetermined pause position. This avoids positional deviations caused by positioning confusion during pauses. When a resume printing command is received, the system combines the pause type and the predetermined pause position to determine a resume printing strategy that includes the resume printing position. It clarifies the precise positioning logic of the resume printing start point and drives the printing media and print head to start printing from the resume printing position. It controls the pixel deviation between the resumed printing content and the content printed before the pause in the paper output direction to be less than a preset threshold, achieving physical positional continuity. This avoids the content misalignment problem caused by positioning ambiguity in traditional resume printing, thereby reducing paper waste caused by reprinting due to deviations. Furthermore, by controlling pixel deviation, it ensures the continuity between the resumed printing content and the original content, significantly improving the printing effect of pause-and-resume printing.
[0097] This application provides a pause-and-resume device, such as... Figure 4 As shown, the pause-and-resume device 40 may include: a response module 410, a pause module 420, a strategy determination module 430, and a resume module 440, wherein, Response module 410 is used to determine the pause type in response to a pause command; The pause module 420 is used to perform a pause operation based on the pause type, so that the printing media stops at a predetermined pause position; The strategy determination module 430 is used to determine a continuation strategy based on the pause type and / or a predetermined pause position when a continuation instruction for printing media is received; the continuation strategy includes the continuation position. The resume printing module 440 is used to drive the printing media and printhead to start printing from the resume printing position, so that the physical position of the resumed content is continuous with the physical position of the already printed content before the pause and the pixel deviation of the physical position in the paper output direction of the printing media is less than a preset pixel number threshold.
[0098] As an optional embodiment, in this device, the response module 410 is specifically used for: In response to a pause command, determine the triggering method of the pause command; the triggering method includes at least one of the following: receiving a paper shortage signal from the media balance detection module, receiving a planned pause command issued by the user through the operation interface, receiving an emergency stop signal issued when the user triggers the emergency stop button, or receiving a fault error signal generated by the printing device; The pause type is determined based on the triggering method.
[0099] As an optional embodiment, the device further includes a trigger module, specifically used for: Pause types include Type 1 and Type 2; If the triggering method is receiving a paper shortage signal from the media balance detection module and / or receiving a planned pause command issued by the user through the operation interface, then the pause type is the first type; If the triggering method is receiving an emergency stop signal from the user when pressing the emergency stop button and / or receiving a fault error signal generated by the printing device, then the pause type is the second type.
[0100] As an optional embodiment, in this device, the pause module 420 is specifically used for: pausing types including a first type; Based on the first type, control the printing device to complete the printing of the current label; Drive the paper feeding assembly to move the printing medium so that the preset structure position on the printing medium is aligned with the preset reference position of the printing device; After the printing media has finished moving, control the printing media to stop at the predetermined pause position.
[0101] As an optional embodiment, in this device, the pause module 420 is specifically used for: The printing media includes multiple labels, and the preset structural positions include the gap positions between the labels or the preset marking positions on the back of the printing media; The preset reference position includes the cut position of the printing device or the position of the detection point of the optical sensor.
[0102] As an optional embodiment, in this device, the pause module 420 is specifically used for: The scheduled pause location includes the physical location at the time of stopping, and the pause type includes the second type; Upon receiving a pause command, based on the second type, the printing media is controlled to stop at its current physical position.
[0103] As an optional embodiment, in this device, the pause module 420 is specifically used for: Upon receiving a pause command, based on the second type, the printhead power is interrupted and the paper feed assembly is braked to control the printing media to stop at the current physical position.
[0104] As an optional embodiment, in this device, the strategy determination module 430 is specifically used for: Pause types include the second type; When a resume printing instruction is received from the printing media, a position calibration operation is performed based on the pause type and / or the predetermined pause position to obtain the resume printing position; Position calibration operations include: After controlling the printing medium to move a first preset distance in the first direction, it moves in the second direction so that the position of the detection point of the optical sensor is aligned with the label feature structure in the printing medium; the first direction is the opposite direction of the paper output direction of the printing medium, and the second direction is the paper output direction of the printing medium.
[0105] As an optional embodiment, in this device, the strategy determination module 430 is specifically used for: Compare the continue position with the preset continue position, and calculate the positional offset between the continue position and the preset continue position; The continuation position of the continuation content is dynamically compensated based on the position offset to obtain the compensated continuation position.
[0106] As an optional embodiment, in this device, the pause module 420 is specifically used for: A pause state snapshot is generated based on the pause type, the identification information of the last label printed at the time of the pause, and the predetermined pause position; the predetermined pause position includes the logical position and / or physical position when the printing media stops. Store the paused state snapshot to non-volatile memory.
[0107] As an optional embodiment, in this device, the strategy determination module 430 is specifically used for: Pause types include Type 1 and Type 2; When a resume printing command is received from the printing media, a snapshot of the paused state is read from the non-volatile memory; If the pause type in the pause snapshot is type 1, then the starting position of the unprinted label is determined based on the pause snapshot, and the continuation position is obtained. If the pause type in the pause snapshot is type 2, a position calibration operation is triggered to obtain the calibrated resume position.
[0108] As an optional embodiment, the device further includes a visualization module, specifically used for: Display the printing media on the user interface and mark the continuation printing position on the printing media; Receive the user's adjustment operation for the continuation position and obtain the adjusted continuation position.
[0109] As an optional embodiment, the device further includes a damage detection module, specifically used for: The sensor detects damage to the unprinted label closest to the next printing position in the printing medium. If the most recently printed unprinted label is damaged, the printing media is controlled to be fed out until the sensor detects an undamaged unprinted label.
[0110] The pause-and-resume printing device provided in this application determines the pause type in response to a pause command and performs a pause operation based on the pause type, ensuring that the printing medium stops precisely at the predetermined pause position and avoiding positional deviations caused by positioning confusion during pauses. When a resume printing command is received, the device combines the pause type and the predetermined pause position to determine a resume printing strategy that includes the resume printing position, clarifies the precise positioning logic of the resume printing start point, drives the printing medium and print head to start printing from the resume printing position, and controls the pixel deviation between the resumed printing content and the content printed before the pause in the paper output direction to be less than a preset threshold, achieving physical positional continuity. This avoids the content misalignment problem caused by positioning ambiguity in traditional resume printing, thereby reducing paper waste caused by reprinting due to deviations. Furthermore, by controlling pixel deviation, the device ensures the continuity between the resumed printing content and the original content, significantly improving the printing effect of pause-and-resume printing.
[0111] The apparatus in this application embodiment can execute the method provided in this application embodiment, and its implementation principle is similar, and it has corresponding technical effects. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For a detailed functional description of each module of the apparatus, please refer to the description in the corresponding method shown above, which will not be repeated here.
[0112] This application provides a printing device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the method provided in any optional embodiment of this application. Compared with the prior art, it can achieve the following: by responding to a pause command, the pause type is determined, and a pause operation is performed based on the pause type, ensuring that the printing medium stops accurately at a predetermined pause position, avoiding positional deviations caused by positioning confusion during pauses. When a resume printing command is received, a resume printing strategy including a resume printing position is determined by combining the pause type and the predetermined pause position, clarifying the precise positioning logic of the resume printing start point, driving the printing medium and print head to start printing from the resume printing position, controlling the pixel deviation between the resumed printing content and the content printed before the pause in the paper output direction to be less than a preset threshold, achieving physical position continuity, avoiding the content misalignment problem caused by positioning ambiguity in traditional resume printing, thereby reducing paper waste caused by reprinting due to deviation, and ensuring the continuity between the resumed printing content and the original content by controlling the pixel deviation, significantly improving the printing effect of pause-resume printing.
[0113] In one alternative embodiment, a printing device is provided, such as Figure 5 As shown, Figure 5The illustrated printing device 5000 includes a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are connected, for example, via a bus 5002. Optionally, the printing device 5000 may further include a transceiver 5004, which can be used for data interaction between the printing device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 5004 is not limited to one type, and the structure of this printing device 5000 does not constitute a limitation on the embodiments of this application.
[0114] Processor 5001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 5001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0115] Bus 5002 may include a pathway for transmitting information between the aforementioned components. Bus 5002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 5002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0116] The memory 5003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.
[0117] The memory 5003 is used to store computer programs that execute the embodiments of this application, and its execution is controlled by the processor 5001. The processor 5001 is used to execute the computer programs stored in the memory 5003 to implement the steps shown in the foregoing method embodiments.
[0118] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.
[0119] It should be noted that the computer-readable storage medium described above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0120] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.
[0121] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the illustrations or text descriptions.
[0122] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0123] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.
[0124] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.
Claims
1. A pause-and-resume method, characterized in that, include: In response to a pause command, determine the pause type; Based on the pause type, a pause operation is performed to stop the printing media at a predetermined pause position; When a reprint command is received from the printing media, a reprint strategy is determined based on the pause type and / or the predetermined pause position; The continued-hitting strategy includes the continued-hitting position; The printing medium and printhead are driven to start printing from the resume position so that the physical position of the resumed content is continuous with the physical position of the previously printed content before the pause, and the pixel deviation of the physical position in the paper output direction of the printing medium is less than a preset pixel number threshold.
2. The method according to claim 1, characterized in that, The process of determining the pause type in response to a pause command includes: In response to the pause command, the triggering method of the pause command is determined; the triggering method includes at least one of receiving a paper shortage signal from the media balance detection module, receiving a planned pause command issued by the user through the operation interface, receiving an emergency stop signal issued when the user triggers the emergency stop button, or receiving a fault error signal generated by the printing device. The pause type is determined based on the triggering method.
3. The method according to claim 2, characterized in that, The pause types include a first type and a second type; The method further includes: If the triggering method is receiving a paper shortage signal from the media balance detection module and / or receiving a planned pause command issued by the user through the operation interface, then the pause type is the first type. If the triggering method is the emergency stop signal received when the user triggers the emergency stop button and / or the fault error signal generated by the printing device, then the pause type is the second type.
4. The method according to claim 1, characterized in that, The pause types include the first type; The step of performing a pause operation based on the pause type includes: Based on the first type, control the printing device to complete the printing of the current label; The paper feeding assembly is driven to move the printing medium so that a preset structural position on the printing medium is aligned with a preset reference position of the printing device. After the printing medium has finished moving, control the printing medium to stop at the predetermined pause position.
5. The method according to claim 4, characterized in that, The printing medium includes multiple labels, and the preset structural position includes the gap position between each label or the preset marking position on the back of the printing medium; The preset reference position includes the cut position of the printing device or the position of the detection point of the optical sensor.
6. The method according to claim 1, characterized in that, The predetermined pause position includes the physical location at the time of stopping, and the pause type includes a second type; The step of performing a pause operation based on the pause type includes: Upon receiving the pause command, based on the second type, the printing medium is controlled to stop at its current physical position.
7. The method according to claim 6, characterized in that, Upon receiving the pause command, based on the second type, controlling the printing medium to stop at the current physical position includes: Upon receiving the pause command, based on the second type, the power to the print head is interrupted and the paper feed assembly is braked to control the printing medium to stop at the current physical position.
8. The method according to claim 1, characterized in that, The pause type includes the second type; When a resume printing instruction is received from the printing media, determining a resume printing strategy based on the pause type and / or the predetermined pause position includes: When a resuming print instruction is received from the printing medium, a position calibration operation is performed based on the pause type and / or the predetermined pause position to obtain the resuming print position; The position calibration operation includes: After controlling the printing medium to move a first preset distance in a first direction, it moves in a second direction so that the position of the detection point of the optical sensor is aligned with the label feature structure in the printing medium; the first direction is the opposite direction of the paper output direction of the printing medium, and the second direction is the paper output direction of the printing medium.
9. The method according to claim 8, characterized in that, The method further includes: The continuing position is compared with the preset continuing position, and the positional offset between the continuing position and the preset continuing position is calculated; The continuation position of the continuation content is dynamically compensated based on the position offset to obtain the compensated continuation position.
10. The method according to claim 1, characterized in that, The step of performing a pause operation based on the pause type to stop the printing media after a predetermined pause position further includes: Based on the pause type, the identification information of the last label printed at the time of the pause, and the predetermined pause position, a pause state snapshot is generated; the predetermined pause position includes the logical position and / or physical position when the printing media stops. The paused state snapshot is stored in non-volatile memory.
11. The method according to claim 10, characterized in that, The pause types include a first type and a second type; When a resume printing instruction is received from the printing media, determining a resume printing strategy based on the pause type and / or the predetermined pause position includes: When a reprint command is received from the printing medium, the pause state snapshot is read from the non-volatile memory; If the pause type in the pause state snapshot is the first type, then the starting position of the unprinted label is determined based on the pause state snapshot, and the continuing printing position is obtained; If the pause type in the paused state snapshot is the second type, then a position calibration operation is triggered to obtain the calibrated resume position.
12. The method according to claim 1, characterized in that, Before driving the printing media and printhead to start printing from the continued printing position, the method further includes: The printing medium is displayed on the user interface, and the continuing print position is marked on the printing medium; The system receives the user's adjustment operation for the continuation position and obtains the adjusted continuation position.
13. The method according to claim 1, characterized in that, Before driving the printing media and printhead to start printing from the continued printing position, the method further includes: The sensor detects the damage of the unprinted label closest to the reprint position in the printing medium; If the nearest unprinted label is damaged, the printing medium is controlled to be printed out until the sensor detects an undamaged unprinted label.
14. A pause-and-resume device, characterized in that, include: The response module is used to determine the pause type in response to a pause command; A pause module is used to perform a pause operation based on the pause type, so that the printing medium stops at a predetermined pause position; The strategy determination module is used to determine a continuation strategy based on the pause type and / or the predetermined pause position when a continuation instruction is received from the printing medium. The continued-hitting strategy includes the continued-hitting position; The resume printing module is used to drive the printing medium and the print head to start printing from the resume printing position, so that the physical position of the resumed printing content is continuous with the physical position of the printed content before the pause and the pixel deviation of the physical position in the paper output direction of the printing medium is less than a preset pixel number threshold.
15. A printing apparatus, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the pause-and-resume method according to any one of claims 1-13.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the pause-and-resume method according to any one of claims 1-13.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the pause-and-resume method according to any one of claims 1-13.