Label printer control method and apparatus, storage medium and electronic device

By detecting whether the cable is installed in the label printer and switching to the clamping state, the problem of insufficient intelligence in label printers is solved, improving the printing success rate and user experience.

WO2026138421A1PCT designated stage Publication Date: 2026-07-02WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD
Filing Date
2025-12-04
Publication Date
2026-07-02

Smart Images

  • Figure CN2025139947_02072026_PF_FP_ABST
    Figure CN2025139947_02072026_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a label printer control method and apparatus, a storage medium, and an electronic device, and relate to the field of printer control. The printer control method comprises: acquiring a printing instruction instructing a label printer to start printing; in response to the printing instruction, detecting whether a tube has been installed in the label printer; when it is determined that a tube has been installed in the label printer, controlling a print head of the label printer and / or a fixing component in the label printer for fixing the tube to switch to a pressing state so as to press the tube; and, on the basis of the printing instruction, controlling the label printer to start printing on the tube. In the present embodiment, in response to the printing instruction, automatically controlling the print head and / or the fixing component to switch to the pressing state to press the tube can avoid the problem that when the label printer performs printing on the tube, the tube fails to smoothly move and thus results in a poor printing effect, reduce the possibility of misoperation of a user, and improve the printing success rate.
Need to check novelty before this filing date? Find Prior Art

Description

A label printer control method, apparatus, storage medium, and electronic device.

[0001] Related applications

[0002] This application claims priority to Chinese Patent Application No. 202411954325.3, filed on December 27, 2024, entitled “Label Printer Control Method, Apparatus, Storage Medium and Label Printer”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of printer control, and more particularly to a label printer control method, apparatus, storage medium, and electronic device. Background Technology

[0004] A label printer is a device specifically designed for printing various labels, barcodes, QR codes, RFID tags, etc. It is widely used in retail, warehousing, logistics, manufacturing, and medical fields, primarily for marking goods, items, documents, etc., to facilitate management, tracking, and identification.

[0005] A label printer typically consists of the following main parts: a printhead, responsible for transferring heat or ink to the label to print the desired content; and a mounting component, responsible for securing the tube and ribbon during printing. Label printers also require the following components: 1. Ribbon, for example, a carbon ribbon is a thin adhesive tape coated with ink. In a thermal transfer label printer, the ribbon transfers the ink to the label paper through heated contact with the printhead; 2. Tube, the medium for printing the content, which can be paper or PVC tubing with a thermal coating or other suitable transfer coating on its surface.

[0006] However, existing label printers suffer from insufficient intelligence, requiring users to learn how to use them correctly, which significantly impacts the user experience. Summary of the Invention

[0007] This application provides a label printer control method, apparatus, storage medium, and electronic device, which can solve the above-mentioned problems. The technical solution is as follows:

[0008] In a first aspect, embodiments of this application provide a label printer control method, the method comprising:

[0009] Obtain a printing instruction that instructs the label printer to begin printing;

[0010] In response to the print command, detect whether a conduit has been installed in the label printer;

[0011] When it is determined that the tubing has been installed in the label printer, the print head of the label printer and / or the fixing component in the label printer used to fix the tubing are switched to a clamping state to clamp the tubing.

[0012] According to the printing instruction, the label printer is controlled to start printing on the tube.

[0013] Secondly, embodiments of this application provide a label printer control device, the device comprising:

[0014] The instruction acquisition module is used to acquire the printing instruction that instructs the label printer to start printing;

[0015] An installation detection module is used to detect whether a conduit has been installed in the label printer in response to the printing command.

[0016] The tube clamping module is used to control the print head of the label printer and / or the fixing component in the label printer used to fix the tube to switch to a clamping state when it is determined that the tube has been installed in the label printer, so as to clamp the tube.

[0017] The print start module is used to control the label printer to start printing on the line tube according to the print instruction.

[0018] Thirdly, embodiments of this application provide a computer storage medium storing multiple instructions adapted for loading and execution of the above-described method steps by a processor.

[0019] Fourthly, embodiments of this application provide an electronic device that may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed by the above-described method steps.

[0020] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:

[0021] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate. Attached Figure Description

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

[0023] Figure 1 is a schematic diagram of the print head and mounting components in a label printer according to an embodiment of this application;

[0024] Figure 2 is a flowchart illustrating a label printer control method provided in an embodiment of this application;

[0025] Figure 3 is a flowchart illustrating a label printer control method provided in an embodiment of this application;

[0026] Figure 4 is a flowchart illustrating a label printer control method provided in an embodiment of this application;

[0027] Figure 5 is a flowchart illustrating a label printer control method provided in an embodiment of this application;

[0028] Figure 6 is a flowchart illustrating a label printer control method provided in an embodiment of this application;

[0029] Figure 7 is a flowchart illustrating a label printer control method provided in an embodiment of this application;

[0030] Figure 8 is a schematic diagram of the structure of a label printer control device provided in an embodiment of this application;

[0031] Figure 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0032] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0033] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. In the description of this application, it should be noted that, unless otherwise expressly specified and limited, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances. Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0034] The present application will now be described in detail with reference to specific embodiments.

[0035] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the features, information, and data involved in this specification were all obtained under full authorization.

[0036] Figure 1 shows a schematic diagram of the print head and fixing components in a label printer according to an embodiment of this application. It should be understood that the structure shown in Figure 1 is merely an example. A label printer is a device specifically designed for printing various labels, barcodes, QR codes, RFID tags, etc. It is widely used in retail, warehousing, logistics, manufacturing, medical, and other fields, primarily for marking goods, items, documents, etc., facilitating management, tracking, and identification.

[0037] A label printer typically consists of the following main parts: a printhead 102 mounted on plate 1032, responsible for transferring heat or ink to the label to print the desired content; and a fixing component mounted on plate 1031, responsible for securing the tube and ribbon during printing, and for moving the tube by rotation or other means during printing. A label printer also requires the following components: 1. Ribbon, for example, a carbon ribbon, which is a thin adhesive tape coated with ink. In a thermal transfer label printer, the ribbon transfers the ink to the label paper through heated contact with the printhead; 2. Tube, the medium for printing the content, which can be paper or PVC pipe, coated with a thermal layer or other coating suitable for transfer.

[0038] In one embodiment, as shown in Figure 2, a flowchart illustrating a label printer control method provided in this application embodiment is presented. This method can be implemented using a computer program and can run on a label printer control device based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application.

[0039] Specifically, the label printer control method includes:

[0040] S101. Obtain the printing instruction from the label printer to start printing.

[0041] Users interact with the printer's communication interface via direct touch or remote control to receive printing instructions from the label printer, instructing it to begin printing. For example, the label printer may receive printing instructions from the user wirelessly, using technologies such as infrared remote control, Bluetooth, Wi-Fi, Zigbee, or NFC. Alternatively, the label printer may receive printing instructions via a touchscreen or button press.

[0042] The print instructions specify the details to be printed on the inline tube of the label printer. For example, they may instruct the label printer to print barcodes, price tags, dates and times, production batch numbers or serial numbers, addresses, and contact information on the inline tube.

[0043] S102. In response to a print command, detect whether a cable conduit has been installed in the label printer.

[0044] Label printers can use sensors to detect whether tubing is installed inside the printer. For example, sensors can be installed inside the label printer to monitor the presence of tubing in the feed path or to detect the status of the tubing to indicate that tubing is installed inside the label printer.

[0045] For example, a label printer may include: a mechanical switch sensor that can detect whether a conduit is present in the channel formed by the print head 102 and the fixing component 101 as shown in Figure 1; a photoelectric sensor that determines whether a conduit is blocking the channel formed by the print head 102 and the fixing component 101 by reflecting a light beam; and an infrared sensor that, similar to the photoelectric sensor, uses infrared light to detect whether a conduit is installed in the label printer.

[0046] It is understood that the embodiments of this application do not impose any limitations on the detection method for detecting whether a conduit has been installed in a label printer; the above are merely examples.

[0047] S103. When it is determined that the cable conduit has been installed in the label printer, control the print head of the label printer and / or the fixing parts in the label printer used to fix the cable conduit to switch to the clamping state to clamp the cable conduit.

[0048] When it is confirmed that the cable conduit has been installed in the label printer, as shown in Figure 1, when the cable conduit has been installed in the channel formed by the print head 102 and the fixing component 101 and the installation of the cable conduit meets the installation standards, the print head 102 or the fixing component 101 of the label printer is switched to the clamping state to clamp the cable conduit.

[0049] The active state indicates that the printhead or stationary component can move or rotate in at least one direction. The clamped state indicates that the printhead or stationary component is fixed at a certain point in space.

[0050] In one embodiment, the printhead gradually switches from an active state to a clamping state, for example, by moving the printhead toward a fixed component until it switches to the clamping state and clamps the conduit to the fixed component.

[0051] In another embodiment, the fixing component gradually switches from an active state to a clamping state, clamping the conduit. For example, the fixing component consists of two movable rollers, with the conduit installed between the two rollers in a channel. The two rollers move along the direction close to the conduit until they switch to the clamping state, clamping the conduit.

[0052] In another embodiment, the retaining component and the printhead gradually switch from an active state to a clamping state, thereby clamping the tubing. For example, the printhead moves toward the retaining component, and the retaining component moves toward the printhead until the tubing is clamped.

[0053] S104. According to the printing instruction, control the label printer to start printing on the inline tube.

[0054] Based on the print instruction, the label printer is controlled to begin printing the instruction onto the printing tube. Preparation for printing includes: ribbon installation, component self-test, and print parameter configuration. During printing, the print head transfers ink to the printing tube by heating a specific area on the ribbon. When the heating element contacts the ribbon, the ink on the ribbon is transferred to the surface of the printing tube through heat, forming patterns, text, etc. During printing, the printed printing tube is fed out of the label printer by rotating fixed components or moving it in other ways.

[0055] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate.

[0056] In one embodiment, as shown in Figure 3, a flowchart illustrating a label printer control method provided in this application embodiment is presented. This method can be implemented using a computer program and can run on a label printer control device based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application.

[0057] Specifically, the label printer control method includes:

[0058] S201. Obtain the printing instruction from the label printer to start printing.

[0059] The above S101 will not be repeated here.

[0060] S202. In response to a print command, detect whether a ribbon has been installed in the label printer.

[0061] Label printers can use sensors to detect whether a ribbon is installed inside the printer. For example, a label printer may be equipped with sensors to monitor the presence of ribbon or the status of the ribbon cartridge to determine if a conduit is installed.

[0062] S203. When it is determined that no ribbon is installed in the label printer, prompt the user to install the ribbon.

[0063] If it is determined that the label printer does not have a ribbon installed or the ribbon is installed incorrectly, prompt the user to install the ribbon.

[0064] In one embodiment, prompting the user to install the ribbon can be done via the label printer's display screen. For example, the label printer could display a warning message on the screen: "Ribbon not detected. Please install the ribbon and try again." This prompt is intuitive and clear, allowing the user to directly see the action required.

[0065] In another embodiment, prompting the user to install the ribbon can also be done by flashing / changing the LED indicator light on the label printer. The label printer uses different colored LED indicators or flashing patterns to attract the user's attention; for example, when the ribbon is detected as not installed, the label printer's indicator light can flash or change color (e.g., flashing red) to alert the user.

[0066] In another embodiment, the method of prompting the user to install the ribbon can also be an audio prompt. The label printer can emit specific audio prompts to remind the user to perform the operation. For example, when it detects that the ribbon is not installed, the label printer emits a beeping sound to prompt the user to install the ribbon.

[0067] It is understood that the embodiments of this application do not impose any limitations on the detection method for detecting whether color tubes have been installed in the label printer; the above are merely examples.

[0068] If it is determined that no ribbon is installed in the label printer, the user is prompted to install the ribbon. Then, step S202 is executed to check whether the ribbon is installed in the label printer until it is determined that the ribbon is installed in the label printer.

[0069] S204. Once you are certain that the ribbon is installed in the label printer, tighten the ribbon.

[0070] Once it is confirmed that the ribbon has been installed in the label printer, tightening the ribbon can be understood as tautning the portion of the ribbon that is protruding, which is placed in the channel formed between the print head and the fixing component.

[0071] In this embodiment, by tightening the ribbon, some loose ribbon is prevented from blocking the channel for placing the conduit, making it easier for the user to install the conduit.

[0072] S205. In response to a print command, detect whether a cable conduit has been installed in the label printer.

[0073] The above S102 will not be repeated here.

[0074] S206. When it is determined that no conduit is installed in the label printer, control the print head and the fixed part to switch to the active state.

[0075] The active state indicates that the printhead and stationary components can move or rotate in at least one direction. When it is determined that no line tube is installed in the label printer, the control switches the printhead and stationary components to the active state to facilitate the user's installation of the line tube.

[0076] In one embodiment, when it is determined that no line tube is installed in the label printer, the print head and fixed parts of the label printer are switched to an active state, and the cutter of the label printer is controlled to return to the initial position.

[0077] The cutter (or paper cutter) of a label printer is mainly used to cut the printed labels. During the printing process, the cutter cuts or partially cuts the tube after each segment of the tube has been printed, thus separating the blank parts between the labels and ensuring that each label is separate and not stuck together, so that each label can be used independently.

[0078] The cutter moves from the initial position along the cross-section of the conduit to the half-cut position, which performs the half-cut task, only cutting the conduit in half, thus not completely separating one section of the conduit from another. The cutter moves from the initial position along the cross-section of the conduit to the half-cut position and then to the full-cut position, which performs the full-cut task, cutting the conduit completely and separating one section of the conduit from another.

[0079] In this embodiment, when it is determined that no cable conduit is installed in the label printer, while controlling the print head and fixed parts of the label printer to switch to the active state, the cutter also needs to be raised to the initial position to facilitate the user to install the cable conduit.

[0080] S207. When it is determined that the cable conduit has been installed in the label printer, control the print head of the label printer and / or the fixing parts in the label printer used to fix the cable conduit to switch to the clamping state to clamp the cable conduit.

[0081] The above S103 will not be repeated here.

[0082] S208. According to the printing instruction, control the label printer to start printing on the inline tube.

[0083] The above S104 will not be repeated here.

[0084] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate.

[0085] In one embodiment, as shown in Figure 4A, a flowchart illustrating a label printer control method provided in this application embodiment is presented. This method can be implemented using a computer program and can run on a label printer control device based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application.

[0086] Specifically, the label printer control method includes:

[0087] S301. Obtain the printing instruction from the label printer to start printing.

[0088] The above S101 will not be repeated here.

[0089] In one embodiment, before obtaining the printing instruction instructing the label printer to start printing, the method further includes: when a preset condition is met, detecting whether a ribbon has been installed in the label printer; and when it is determined that a ribbon has been installed in the label printer, tightening the ribbon.

[0090] The preset condition can be receiving a start command from the label printer, and in response to the start command, detecting whether a ribbon has been installed in the label printer. The preset condition can also be receiving a detection command to check whether a ribbon is installed in the label printer. The preset condition can also be any other condition, and this application embodiment does not impose any limitations on this.

[0091] In other words, in this embodiment, the ribbon has been installed and tightened in the label printer before the printing instruction indicating that the label printer should start printing is received.

[0092] S302. In response to a print command, detect whether a cable conduit has been installed in the label printer.

[0093] The above S102 will not be repeated here.

[0094] In this application, as shown in Figure 4A, after executing S302, the following continues:

[0095] S3031. When it is confirmed that the cable conduit has been installed in the label printer, control the fixing component in the label printer used to fix the cable conduit to switch to the clamping state.

[0096] In this embodiment, the printhead is in an active state, and the fixing component gradually switches from the active state to the clamping state to clamp the tubing. For example, the fixing component consists of two movable rollers, and the tubing is installed between the two movable rollers in the channel formed by the two rollers. The two rollers move along the direction close to the tubing until they switch to the clamping state and clamp the tubing.

[0097] S3041. Control the printhead to switch to the clamping state to clamp the ribbon and tubing installed in the label printer onto the fixed part for printing.

[0098] The control system switches the active printhead to a clamping state. The active printhead pulls out the tightened ribbon, while the clamping printhead presses the ribbon onto the tube and continues to press the ribbon and tube firmly against the fixed component. This allows the printhead to transfer ink to the tube by heating a specific area of ​​the ribbon during printing, thus completing the printing task corresponding to the print command.

[0099] In another embodiment, as shown in FIG4B, after executing S302, execution continues:

[0100] S3032. When it is confirmed that the cable has been installed in the label printer, control the print head to switch to the clamping state.

[0101] In this embodiment, the fixed component is in an active state, and the print head gradually switches from the active state to the pressing state. For example, the print head moves along the direction close to the fixed component until it switches to the pressing state and presses the tubing onto the fixed component.

[0102] S3042. According to the printing instruction, control the print head to switch from the clamping state to the active state so as to pull out the ribbon installed in the label printer.

[0103] The control switches the printhead from the clamped state to the clamped state, thereby pulling out the tightened ribbon.

[0104] S3052. Control the print head to switch from the active state to the clamping state to clamp the ribbon and tube onto the fixed part for printing.

[0105] Continue controlling the print head to switch to the clamping state, thereby pressing the ribbon onto the tube, and further pressing the ribbon and tube onto the fixing component. This achieves the printing process where, during printing, the print head heats a specific area on the ribbon to transfer ink onto the tube, completing the printing task corresponding to the printing command.

[0106] In other words, in this embodiment, for two possible implementations of controlling the print head or switching to a clamping state to clamp the tube after determining that the tube has been installed, it is explained separately how to pull out the tightened ribbon and clamp the ribbon and tube to the fixed part during printing under different implementations, thereby completing the printing task and improving the working reliability of the label printer.

[0107] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate.

[0108] In one embodiment, as shown in Figure 5, a flowchart illustrating a label printer control method provided in this application embodiment is presented. This method can be implemented using a computer program and can run on a label printer control device based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application.

[0109] Specifically, the label printer control method includes:

[0110] S401. Obtain the start command for the label printer to start;

[0111] Users interact with the printer's communication interface via direct touch or remote control to receive a start command instructing the label printer to begin operation. For example, the label printer may receive the start command wirelessly, using technologies such as infrared remote control, Bluetooth, Wi-Fi, Zigbee, or NFC. Alternatively, the label printer may receive the start command via a touchscreen or button press.

[0112] S402. In response to the start command, detect whether the label printer's cartridge cover is open or closed.

[0113] When the label printer cartridge cover is open, the user can see part of the internal structure of the label printer and the mounting cable. When the label printer cartridge cover is closed, this is not possible.

[0114] In one embodiment, a mechanical switch can be used to detect whether the label printer's cartridge lid is open or closed. Specifically, a mechanical switch is typically designed inside the label printer, located on the edge of the lid or near it. When the lid changes from an open to a closed state, the switch is pressed or triggered, indicating that the lid is closed; when the lid changes from a closed to an open state, the switch is no longer pressed, indicating that the lid is open. This method is simple, direct, and common in many label printers.

[0115] In one embodiment, a magnetic switch can be used to detect whether the label printer's cartridge lid is open or closed. This switch operates on the principle of magnetism. Specifically, a magnet may be mounted on the cartridge lid, while the label printer body has a magnetic sensor. When the lid switches from an open to a closed state, the magnet approaches the magnetic sensor, and the sensor detects the change in magnetic field, determining that the lid is closed. If the lid switches from a closed to an open state, the magnet moves away from the sensor, and the label printer does not detect the change in magnetic field, indicating that the lid is open.

[0116] It is understood that the embodiments of this application also include other detection methods for detecting whether the cover of the label printer is in an open or closed state; the above are merely examples.

[0117] S403. When it is determined that the lid is in the open state, prompt the user to switch the lid to the closed state.

[0118] Once the label printer's cartridge cover is confirmed to be open, prompt the user to switch the cover to the closed position and then prompt the user to close the cover.

[0119] In one embodiment, prompting the user to switch the lid to the closed position can be done via a prompt on the label printer's display screen. For example, the label printer could display a warning message on the screen: "Please close the lid." This prompt is intuitive and clear, allowing the user to directly see the action that needs to be taken.

[0120] When the lid is confirmed to be open, the user is prompted to switch the lid to the closed position. Then, step S402 is executed to check that the label printer lid is now closed.

[0121] S404. When the lid is confirmed to be closed, control the label printer's cutter to return to its initial position, and control the print head and fixed parts to switch to the active state.

[0122] When the lid is confirmed to be closed, the label printer's cutter is controlled to return to its initial position, and the printhead and stationary components are controlled to switch to the active state.

[0123] The cutter (or paper cutter) of a label printer is mainly used to cut the printed labels. The cutter moves from the initial position along the cross-section of the tube to the half-cut position, which is to perform the half-cut task. The cutter moves from the initial position along the cross-section of the tube to the half-cut position and then to the full-cut position, which is to perform the full-cut task.

[0124] After the label printer completes the previous printing task, the cutter may be in the half-cut or full-cut position. When the label printer starts again, it needs to control the cutter to return to the initial position and control the print head and fixed parts to switch to the active state to facilitate the user to install the cable.

[0125] However, if the label printer retracts the cutter to its initial position when the label cartridge lid is not closed, it could potentially injure the user. Therefore, in this embodiment, the cutter retracts only when the label printer lid is closed, effectively protecting the user's safety.

[0126] S405. According to the start command, the label printer is put into standby mode.

[0127] The startup command instructs the label printer to enter standby mode. A label printer in standby mode can receive and process commands such as print commands.

[0128] S406. Obtain the printing instruction that indicates the label printer will start printing.

[0129] Participation in the aforementioned S101 will not be repeated here.

[0130] S407. In response to a print command, detect whether a cable conduit has been installed in the label printer?

[0131] The above-mentioned S102 will not be repeated here.

[0132] S408. When it is determined that the cable conduit has been installed in the label printer, control the print head of the label printer and / or the fixing parts in the label printer used to fix the cable conduit to switch to the clamping state to clamp the cable conduit.

[0133] Participation in S103 mentioned above will not be repeated here.

[0134] S409. According to the printing instruction, control the label printer to start printing on the inline tube.

[0135] The above-mentioned S104 will not be repeated here.

[0136] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate.

[0137] In one embodiment, as shown in Figure 6, a flowchart illustrating a label printer control method provided in this application embodiment is presented. This method can be implemented using a computer program and can run on a label printer control device based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application.

[0138] Specifically, the label printer control method includes:

[0139] S501. Obtain the printing instruction from the label printer to start printing.

[0140] Participation in the aforementioned S101 will not be repeated here.

[0141] S502. In response to a print command, detect whether a cable conduit has been installed in the label printer.

[0142] The above-mentioned S102 will not be repeated here.

[0143] S503. When it is determined that the cable conduit has been installed in the label printer, control the print head of the label printer and / or the fixing parts in the label printer used to fix the cable conduit to switch to the clamping state to clamp the cable conduit.

[0144] Participation in S103 mentioned above will not be repeated here.

[0145] S504. According to the printing instruction, control the label printer to start printing on the inline tube.

[0146] The above-mentioned S104 will not be repeated here.

[0147] S505 controls the label printer's cutter to retract to its initial position and controls the printhead to switch to the active state and then to the clamping state to clamp the tubing and the ribbon installed in the label printer onto the fixed component.

[0148] The system controls the label printer's cutter to retract to its initial position and switches the print head to the active state, ensuring that the cutter and print head are reset to their initial states when printing begins. It also controls the print head to pull out the tightened ribbon when switched to the active state, further switches the print head to the clamping state to press the ribbon onto the tube, and continues to press the ribbon and tube firmly onto the retaining component.

[0149] S506: Heat the print head and move the tube. When the tube has been moved a preset distance repeatedly, pause printing and control the cutter to cut the tube in half until the printing task corresponding to the printing instruction is completed.

[0150] During printing, the print head transfers ink onto the tube by heating specific areas on the ribbon. When the heating element comes into contact with the ribbon, the ink on the ribbon is transferred to the surface of the tube through heat, forming patterns, text, etc.

[0151] During printing, the tube is moved a preset distance multiple times by rotating a fixed component or other means, and printing is paused while the cutter partially cuts the tube. For example, a printing task corresponding to a printing instruction might involve printing 100 labels, where the tube travels X centimeters when printing a single label. Therefore, during printing, each time the tube travels X centimeters, printing is paused and the cutter partially cuts the tube until all 100 labels are printed, at which point the tube is fully cut, completing the printing task.

[0152] In one embodiment, the print head is heated and the tube is moved. When the tube has been moved a preset distance repeatedly, printing is paused and the cutter is controlled to partially cut the tube. When the printing of the target sub-tube among the multiple sub-tubes included in the tube is completed, the printing task corresponding to the printing instruction is determined to be completed, printing is stopped and the cutter is controlled to partially cut the target sub-tube at its position. The tube is then moved to a reserved distance and the cutter is controlled to fully cut the tube.

[0153] When the printing of the target sub-tube among multiple sub-tubes included in the printing tube is detected to be completed, the printing task corresponding to the printing instruction is determined to be completed. For example, the printing task corresponding to the printing instruction includes printing 100 labels. After performing a half-cutting action on the printing tube 99 times to obtain 99 sub-tubes, and the 100th printing tube is the target sub-tube, the printing task corresponding to the printing instruction is determined to be completed after the printing of the target sub-tube is determined to be completed.

[0154] Furthermore, printing is stopped and the cutter is controlled to perform a partial cut at the target sub-tube location, and then the tube is moved to a predetermined distance and the cutter is controlled to perform a full cut. The predetermined position can be understood as the tube continuing to move a short distance after the partial cut is performed; the position of the tube corresponding to this distance is the position where the full cut is performed.

[0155] For example, following the example above, the 100th tube is the target sub-tube. After confirming that the target sub-tube has been printed, the tube is half-cut after running for X cm. The tube continues to run to the reserved distance (e.g., 5 cm) and the cutter is controlled to cut the tube completely, thus completely cutting off the first 100 sub-tubes and the remaining tube.

[0156] In this embodiment, after printing is completed, the conduit is partially cut before running through the conduit and then fully cut. The purpose is to prevent the printed content on the last segment of the conduit, which is the target sub-conduit, from being cut when it is fully cut, thus preventing the conduit segment from being scrapped and affecting the user's use.

[0157] Based on this embodiment, as shown in Figure 7, a flowchart of a label printer control method provided in this application embodiment is presented. The process includes the following steps:

[0158] A101, Power on.

[0159] A102, Print head moves, cutter returns to initial position.

[0160] A103. Tighten the ribbon and press the tubing.

[0161] A104, Is there a print job?

[0162] A105. When a print job is confirmed, proceed with the printing process.

[0163] A106. The print head presses the ribbon firmly onto the tube.

[0164] A107, Tube Printing: Turn on heating and print a section of tubing.

[0165] A108. This section of the conduit has been printed.

[0166] A109. Determine that the conduit has been delivered to the cutting position.

[0167] During the printing process, it can be determined in real time whether the printed tube has reached the cutter position. The determination can be based on the distance between the print head and the cutter, or on the length that has been printed so far.

[0168] A110. Control the cutter to perform a partial cut and cut the conduit.

[0169] During printing, the cutting action has the highest priority. If the cutting action is required during printing, printing must be paused before the cutting action can be performed. The cutting action includes partial cut and full cut.

[0170] A111. Confirm that all conduits have been printed.

[0171] If the printing of the conduit is not complete, continue with steps A107-A111.

[0172] A112. Once all tubing has been printed, control the cutter to cut the tubing completely.

[0173] After the last section of tubing is printed, continue the tubing feed to deliver the last section of tubing to the cutter position. First, control the cutter to perform a half cut, and then control the tubing feed to send the tubing out by 5mm, and perform a full cut to completely cut the tubing.

[0174] A113. Tighten the ribbon.

[0175] Simultaneously, the print head moves, and the cutter returns to its initial position.

[0176] A114. Exit the printing process.

[0177] During the printing process, the label printer will be monitored for abnormal status in real time. If abnormalities such as open cover, blocked tube, missing tube, missing ribbon, or high temperature are detected, the current printing task will be stopped and the printing process will be exited.

[0178] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate.

[0179] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0180] Please refer to Figure 8, which shows a schematic diagram of the structure of a label printer control device provided in an exemplary embodiment of this application. This label printer control device can be implemented as all or part of a device through software, hardware, or a combination of both. The device includes an instruction acquisition module 601, an installation detection module 602, a clamping tube module 603, and a printing start module 604.

[0181] The instruction acquisition module 601 is used to acquire a printing instruction that instructs the label printer to start printing;

[0182] Installation detection module 602 is used to detect whether a conduit has been installed in the label printer in response to the printing command;

[0183] The clamping tube module 603 is used to control the print head of the label printer and / or the fixing component in the label printer used to fix the tube to switch to a clamping state when it is determined that the tube has been installed in the label printer, so as to clamp the tube.

[0184] The print start module 603 is used to control the label printer to start printing on the line tube according to the print instruction.

[0185] In one embodiment, the label printer control device further includes:

[0186] A ribbon detection module is used to detect whether a ribbon has been installed in the label printer in response to the printing command.

[0187] The ribbon tightening module is used to tighten the ribbon when it is determined that the ribbon has been installed in the label printer.

[0188] In one embodiment, when it is determined that the conduit has been installed in the label printer, the fixing component in the label printer used to fix the conduit is switched to a clamping state.

[0189] Print start module 603 includes:

[0190] The first printing unit is configured to control the print head to switch to a clamping state according to the printing command, so as to clamp the ribbon and the tube installed in the label printer onto the fixing component to start printing.

[0191] In one embodiment, when it is determined that the conduit has been installed in the label printer, the print head is controlled to switch to a clamping state.

[0192] Print start module 603 includes:

[0193] The second printing unit is used to control the print head to switch from a pressed state to an active state according to the printing instruction, so as to pull out the ribbon installed in the label printer.

[0194] The third printing unit is used to control the print head to switch from an active state to a clamping state, so as to press the ribbon and the tube onto the fixed component for printing.

[0195] In one embodiment, the label printer control device further includes:

[0196] The ribbon detection module is used to detect whether a ribbon has been installed in the label printer when preset conditions are met.

[0197] A ribbon tightening module is used to tighten the ribbon when it is determined that the ribbon has been installed in the label printer.

[0198] In one embodiment, the label printer control device further includes:

[0199] The active installation module is used to control the print head and the fixed component to switch to an active state when it is determined that the line tube is not installed in the label printer.

[0200] In one embodiment, the active installation module includes:

[0201] The retraction unit is used to control the print head and the fixed component of the label printer to switch to an active state and to control the cutter of the label printer to retract to the initial position when it is determined that the line tube is not installed in the label printer.

[0202] In one embodiment, the label printer control device further includes:

[0203] The startup acquisition module is used to acquire the startup command that instructs the label printer to start.

[0204] The lid detection module is used to detect whether the lid of the label printer is open or closed in response to the start command.

[0205] The retraction module is used to control the cutter of the label printer to retract to the initial position when the lid is determined to be in the closed state, and to control the print head and the fixed component to switch to the active state;

[0206] The standby module is activated to instruct the label printer to enter standby mode according to the activation command.

[0207] In one embodiment, the label printer control device further includes:

[0208] The user prompt module is used to prompt the user to switch the lid to the closed state when it is determined that the lid is in the open state.

[0209] In one embodiment, the label printer control device further includes:

[0210] The blade retraction and clamping module is used to control the cutter of the label printer to retract to the initial position, and to control the print head to switch to the active state and continue to switch to the clamping state, so as to clamp the tubing and the ribbon installed in the label printer to the fixed component.

[0211] The heating printing module is used to heat the print head and move the tube. When the tube has been repeatedly detected to have moved a preset distance, printing is paused and the cutter is controlled to partially cut the tube until the printing task corresponding to the printing instruction is completed.

[0212] In one embodiment, the heating printing module includes:

[0213] The first printing unit is used to heat the print head and move the tube. When the tube has been repeatedly detected to have moved a preset distance, the printing is paused and the cutter is controlled to cut the tube in half.

[0214] The second printing unit is configured to, upon detecting that printing of a target sub-tube among the multiple sub-tubes included in the conduit is complete, determine that the printing task corresponding to the printing instruction has been completed, stop printing and control the cutter to perform a partial cut at the position of the target sub-tube, and continue to move the conduit to a reserved distance and control the cutter to perform a full cut on the conduit.

[0215] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate.

[0216] It should be noted that the label printer control device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the label printer control method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the label printer control device and the label printer control method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.

[0217] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0218] This application also provides a computer storage medium that can store multiple instructions. These instructions are adapted to be loaded and executed by a processor using the label printer control method described in the embodiments shown in Figures 1-7 above. For details of the execution process, please refer to the specific description of the embodiments shown in Figures 1-7, which will not be repeated here.

[0219] This application also provides a computer program product that stores at least one instruction, which is loaded by the processor and executed as described in the embodiments shown in Figures 1-7 above. For details of the execution process, please refer to the specific description of the embodiments shown in Figures 1-7, which will not be repeated here.

[0220] Please refer to Figure 9, which is a schematic diagram of the structure of a label printer provided in an embodiment of this application. As shown in Figure 9, the label printer 700 may include: at least one processor 701, at least one network interface 704, a user interface 703, a memory 705, and at least one communication bus 702.

[0221] The communication bus 702 is used to enable communication between these components.

[0222] The user interface 703 may include a display screen and a camera. Optionally, the user interface 703 may also include a standard wired interface and a wireless interface.

[0223] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0224] The processor 701 may include one or more processing cores. The processor 701 connects to various parts of the server 700 via various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 705, and by calling data stored in the memory 705. Optionally, the processor 701 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 701 may integrate one or a combination of several of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 701.

[0225] The memory 705 may include random access memory (RAM) or read-only memory. Optionally, the memory 705 may include a non-transitory computer-readable storage medium. The memory 705 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 705 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 705 may also be at least one storage device located remotely from the aforementioned processor 701. As shown in FIG9, the memory 705, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a label printer control application.

[0226] In the label printer 700 shown in Figure 9, the user interface 703 is mainly used to provide an input interface for the user and to obtain the user input data; while the processor 701 can be used to call the label printer control application stored in the memory 705 and specifically perform the following operations:

[0227] Obtain a printing instruction that instructs the label printer to begin printing;

[0228] In response to the print command, detect whether a conduit has been installed in the label printer;

[0229] When it is determined that the tubing has been installed in the label printer, the print head of the label printer and / or the fixing component in the label printer used to fix the tubing are switched to a clamping state to clamp the tubing.

[0230] According to the printing instruction, the label printer is controlled to start printing on the tube.

[0231] In one embodiment, after the processor 701 executes the print instruction that instructs the label printer to start printing, it also executes:

[0232] In response to the printing command, detect whether a ribbon has been installed in the label printer;

[0233] Once it is determined that the ribbon has been installed in the label printer, tighten the ribbon.

[0234] In one embodiment, when it is determined that the conduit has been installed in the label printer, the fixing component in the label printer used to fix the conduit is switched to a clamping state.

[0235] Processor 701 executes the print instruction to control the label printer to start printing on the line tube, specifically:

[0236] According to the printing command, the print head is controlled to switch to a clamping state to clamp the ribbon and the tubing installed in the label printer onto the fixed component to start printing.

[0237] In one embodiment, when it is determined that the conduit has been installed in the label printer, the print head is controlled to switch to a clamping state.

[0238] Processor 701 executes the print instruction to control the label printer to start printing on the line tube, specifically:

[0239] According to the printing command, the print head is controlled to switch from a clamping state to an active state so as to pull out the ribbon installed in the label printer;

[0240] The print head is controlled to switch from an active state to a clamping state to press the ribbon and the tube onto the fixed component for printing.

[0241] In one embodiment, before the processor 701 executes the print instruction instructing the label printer to begin printing, it also performs the following:

[0242] When the preset conditions are met, check whether the ribbon has been installed in the label printer;

[0243] Once it is determined that the ribbon has been installed in the label printer, tighten the ribbon.

[0244] In one embodiment, after processor 701 executes the step of detecting whether a tube has been installed in the label printer in response to the printing command, before controlling the print head of the label printer and / or the fixing component in the label printer for fixing the tube to switch to a clamping state when it is determined that the tube has been installed in the label printer, the following further actions are performed:

[0245] When it is determined that the line tube is not installed in the label printer, the print head and the fixed component are switched to the active state.

[0246] In one embodiment, when it is determined that the line tube is not installed in the label printer, the processor 701 controls the print head and the fixing component of the label printer to switch to an active state, specifically by:

[0247] When it is determined that the line tube is not installed in the label printer, the print head and the fixed component of the label printer are switched to the active state, and the cutter of the label printer is returned to the initial position.

[0248] In one embodiment, before the processor 701 executes the print instruction that instructs the label printer to begin printing on the infeed tube, it also executes:

[0249] Obtain the start command that instructs the label printer to start;

[0250] In response to the start command, the lid of the label printer is detected to be in an open or closed state;

[0251] When the lid is determined to be closed, the cutter of the label printer is controlled to retract to the initial position, and the print head and the fixed component are controlled to switch to the active state.

[0252] The start command instructs the label printer to enter standby mode.

[0253] In one embodiment, after the processor 701 executes the response to the start command and detects that the label printer's cartridge cover is in an open or closed state, before controlling the label printer's cutter to retract to its initial position when the cartridge cover is determined to be in a closed state, and before controlling the printhead to switch to an active state, the processor 701 further executes:

[0254] When the lid is determined to be open, the user is prompted to switch the lid to the closed state.

[0255] In one embodiment, after the processor 701 executes the command to control the label printer to start printing on the line tube, it further executes:

[0256] Control the cutter of the label printer to retract to the initial position, and control the print head to switch to the active state and continue to switch to the clamping state, so as to clamp the tubing and the ribbon installed in the label printer to the fixed component;

[0257] The print head is heated and the tube is moved. Printing is paused when the tube has moved a preset distance repeatedly, and the cutter is controlled to cut the tube in half until the printing task corresponding to the printing instruction is completed.

[0258] In one embodiment, the processor 701 executes the heating of the print head and the movement of the tubing. When it is determined that the tubing has moved a preset distance, printing is paused and the cutter is controlled to partially cut the tubing. Printing stops when it is determined that the printing task corresponding to the printing instruction has been completed. Specifically, the following steps are performed:

[0259] The print head is heated and the tube is moved. When the tube has been repeatedly detected to have moved a preset distance, printing is paused and the cutter is controlled to cut the tube in half.

[0260] When it is detected that the printing of the target sub-tube among the multiple sub-tubes included in the conduit is completed, it is determined that the printing task corresponding to the printing instruction is completed, the printing is stopped and the cutter is controlled to make a partial cut at the position of the target sub-tube, and the conduit is moved to the reserved distance and the cutter is controlled to make a full cut on the conduit.

[0261] In this embodiment, the label printer detects whether a tube is installed in the label printer according to the printing command. If it is determined that the tube is installed and printing can begin, the printer controls the print head to switch to a clamping state, or controls the fixing component for securing the tube to switch to a clamping state, or controls both the print head and the fixing component to switch to a clamping state simultaneously, to clamp the tube. This further controls the print head to print the content corresponding to the printing command onto the tube. In this embodiment, automatically controlling the print head and / or the fixing component to switch to a clamping state to clamp the tube in response to the printing command prevents the tube from failing to flow smoothly during printing, thus reducing the possibility of user error and improving the printing success rate.

[0262] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.

[0263] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0264] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application are still within the scope of this application.

Claims

1. A label printer control method, characterized in that, The method includes: Obtain a printing instruction that instructs the label printer to begin printing; In response to the print command, detect whether a conduit has been installed in the label printer; When it is determined that the tubing has been installed in the label printer, the print head of the label printer and / or the fixing component in the label printer used to fix the tubing are switched to a clamping state to clamp the tubing. According to the printing instruction, the label printer is controlled to start printing on the tube.

2. The label printer control method according to claim 1, characterized in that, After obtaining the printing instruction that instructs the label printer to start printing, the method further includes: In response to the printing command, detect whether a ribbon has been installed in the label printer; Once it is determined that the ribbon has been installed in the label printer, tighten the ribbon.

3. The label printer control method according to claim 1, characterized in that, When it is determined that the conduit has been installed in the label printer, the fixing component in the label printer used to fix the conduit is switched to a clamping state. The step of controlling the label printer to start printing on the line tube according to the printing instruction includes: According to the printing command, the print head is controlled to switch to a clamping state to clamp the ribbon and the tubing installed in the label printer onto the fixed component to start printing.

4. The label printer control method according to claim 1, characterized in that, When it is determined that the conduit has been installed in the label printer, the print head is controlled to switch to a clamping state. The step of controlling the label printer to start printing on the line tube according to the printing instruction includes: According to the printing command, the print head is controlled to switch from a clamping state to an active state so as to pull out the ribbon installed in the label printer; The print head is controlled to switch from an active state to a clamping state to press the ribbon and the tube onto the fixed component for printing.

5. The label printer control method according to claim 1, characterized in that, Before obtaining the printing instruction that instructs the label printer to start printing, the process also includes: When the preset conditions are met, check whether the ribbon has been installed in the label printer; Once it is determined that the ribbon has been installed in the label printer, tighten the ribbon.

6. The label printer control method according to claim 1, characterized in that, After detecting whether the cable conduit has been installed in the label printer in response to the printing command, before controlling the print head of the label printer and / or the fixing component in the label printer used to fix the cable conduit to switch to a clamping state when it is determined that the cable conduit has been installed in the label printer, the method further includes: When it is determined that the line tube is not installed in the label printer, the print head and the fixed component are switched to the active state.

7. The label printer control method according to claim 6, characterized in that, When it is determined that the conduit is not installed in the label printer, controlling the print head and the fixed component of the label printer to switch to an active state includes: When it is determined that the line tube is not installed in the label printer, the print head and the fixed component of the label printer are switched to the active state, and the cutter of the label printer is returned to the initial position.

8. The label printer control method according to claim 1, characterized in that, Before obtaining the printing instruction that instructs the label printer to start printing on the infeed tube, the process also includes: Obtain the start command that instructs the label printer to start; In response to the start command, the lid of the label printer is detected to be in an open or closed state; When the lid is determined to be closed, the cutter of the label printer is controlled to retract to the initial position, and the print head and the fixed component are controlled to switch to the active state. The start command instructs the label printer to enter standby mode.

9. The label printer control method according to claim 8, characterized in that, After responding to the start command and detecting whether the label printer's cartridge cover is in an open or closed state, before controlling the label printer's cutter to retract to its initial position when the cartridge cover is determined to be in a closed state, and before controlling the print head to switch to an active state, the method further includes: When the lid is determined to be open, the user is prompted to switch the lid to the closed state.

10. The label printer control method according to claim 1, characterized in that, After controlling the label printer to start printing on the liner according to the printing instruction, the method further includes: Control the cutter of the label printer to retract to the initial position, and control the print head to switch to the active state and continue to switch to the clamping state, so as to clamp the tubing and the ribbon installed in the label printer to the fixed component; The print head is heated and the tube is moved. Printing is paused when the tube has moved a preset distance repeatedly, and the cutter is controlled to cut the tube in half until the printing task corresponding to the printing instruction is completed.

11. The label printer control method according to claim 10, characterized in that, The process of heating the print head and moving the tube, pausing printing when the tube has moved a preset distance, and controlling the cutter to partially cut the tube, continues until the printing task corresponding to the printing instruction is completed, and then stopping printing, includes: The print head is heated and the tube is moved. When the tube has been repeatedly detected to have moved a preset distance, printing is paused and the cutter is controlled to cut the tube in half. When it is detected that the printing of the target sub-tube among the multiple sub-tubes included in the conduit is completed, it is determined that the printing task corresponding to the printing instruction is completed, the printing is stopped and the cutter is controlled to make a partial cut at the position of the target sub-tube, and the conduit is moved to the reserved distance and the cutter is controlled to make a full cut on the conduit.

12. A label printer control device, characterized in that, The device includes: The instruction acquisition module is used to acquire the printing instruction that instructs the label printer to start printing; An installation detection module is used to detect whether a conduit has been installed in the label printer in response to the printing command. The tube clamping module is used to control the print head of the label printer and / or the fixing component in the label printer used to fix the tube to switch to a clamping state when it is determined that the tube has been installed in the label printer, so as to clamp the tube. The print start module is used to control the label printer to start printing on the line tube according to the print instruction.

13. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the method steps as claimed in any one of claims 1 to 11.

14. A label printer, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1 to 11.