Label printer control method and device, storage medium and label printer
By detecting the installation status of the wire tube in the label printer and automatically adjusting the status of the print head and fixing parts, the problem of insufficient intelligence of the existing label printer is solved, and the printing success rate and user experience are improved.
Patent Information
- Application Number
- CN202411954325.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-27
AI Technical Summary
The existing label printers are not intelligent enough, and users need to learn to use them correctly, which affects the user experience.
By checking whether the wire tube has been installed in the label printer and when it is confirmed that it has been installed, the print head and/or fixing parts are automatically controlled to switch to the pressed state to tighten the wire tube to ensure the smooth progress of the printing process.
It prevents poor printing results caused by the failure of the cable tube to run smoothly, reduces the possibility of user misoperation and improves the printing success rate.
Smart Images

Figure CN119883148A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printer control, and in particular to a label printer control method, device, storage medium and electronic device. Background Art
[0002] A label printer is a device specifically used to print various labels, barcodes, QR codes, RFID tags, etc. It is widely used in retail, warehousing, logistics, manufacturing, medical and other fields, mainly used to mark goods, items, documents and other contents for easy management, tracking and identification.
[0003] The structure of a label printer usually includes the following main parts: the print head, which is responsible for transferring heat or ink to the label to print out the required content; the fixed parts, which are responsible for fixing the wire tube and ribbon during printing. When printing, the label printer also needs to install: 1. The ribbon, taking the carbon ribbon as an example, the carbon ribbon is a thin tape coated with ink. In the thermal transfer label printer, the carbon ribbon transfers the ink to the label paper through heated contact with the print head; 2. The wire tube is the medium for printing content, which can be paper or PVC tube, with a thermal layer or other coating suitable for transfer on the surface.
[0004] However, existing label printers all have the problem of insufficient intelligence, and users need a certain amount of learning to use the label printer correctly, which greatly affects the user experience. Summary of the invention
[0005] The embodiments of the present application provide a label printer control method, device, storage medium and electronic device, which can solve the above problems. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a label printer control method, the method comprising:
[0007] Obtaining a printing instruction for instructing the label printer to start printing;
[0008] In response to the printing instruction, detecting whether a wire tube has been installed in the label printer;
[0009] When it is determined that the wire tube has been installed in the label printer, control the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube;
[0010] According to the printing instruction, the label printer is controlled to start printing on the wire tube.
[0011] In a second aspect, an embodiment of the present application provides a label printer control device, the device comprising:
[0012] An instruction acquisition module, used to acquire a printing instruction instructing the label printer to start printing;
[0013] An installation detection module is used to detect whether the wire tube has been installed in the label printer in response to the printing instruction;
[0014] A wire tube pressing module, used for controlling the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube when it is determined that the wire tube has been installed in the label printer;
[0015] The printing start module is used to control the label printer to start printing on the wire tube according to the printing instruction.
[0016] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0017] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0018] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0019] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 It is a structural schematic diagram of a print head and mounting components in a label printer provided in an embodiment of the present application;
[0022] Figure 2 It is a flowchart of a label printer control method provided in an embodiment of the present application;
[0023] Figure 3 It is a flowchart of a label printer control method provided in an embodiment of the present application;
[0024] FIG4 is a flow chart of a label printer control method provided in an embodiment of the present application;
[0025] Figure 5 It is a flowchart of a label printer control method provided in an embodiment of the present application;
[0026] Figure 6 It is a flowchart of a label printer control method provided in an embodiment of the present application;
[0027] Figure 7 It is a flowchart of a label printer control method provided in an embodiment of the present application;
[0028] Figure 8 It is a structural schematic diagram of a label printer control device provided in an embodiment of the present application;
[0029] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. 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 optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0032] The present application is described in detail below with reference to specific embodiments.
[0033] 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 relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the features, information and data involved in this specification are all obtained with full authorization.
[0034] like Figure 1 , which is a schematic diagram of the structure of a print head and a fixing component in a label printer provided by an embodiment of the present application. It can be understood that, Figure 1 The structure shown is only an example. A label printer is a device specifically used to print various labels, barcodes, QR codes, RFID tags, etc. It is widely used in retail, warehousing, logistics, manufacturing, medical and other fields, mainly used to mark goods, items, documents and other contents for easy management, tracking and identification.
[0035] The structure of a label printer usually includes the following main parts: a print head 102 disposed on a plate 1032, which is responsible for transferring heat or ink to the label to print out the required content; a fixed component disposed on a plate 1031, which is responsible for fixing the wire tube and the ribbon during printing, and moving the wire tube by rotating itself during printing. When printing, a label printer also needs to install: 1. The ribbon, taking the carbon ribbon as an example, is a thin tape coated with ink. In a thermal transfer label printer, the carbon ribbon transfers the ink to the label paper through heated contact with the print head; 2. The wire tube, which is the medium for printing content, can be paper or a PVC tube, with a thermal layer or other coating suitable for transfer on the surface.
[0036] In one embodiment, Figure 2 The figure is a flow chart of a label printer control method provided by an embodiment of the present application, which can be implemented by a computer program and can be run on a label printer control device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0037] Specifically, the label printer control method includes:
[0038] S101: Obtain a printing instruction for instructing a label printer to start printing.
[0039] The user interacts with the communication interface of the printer by direct touch or remote control, so that the label printer obtains a print instruction for instructing the label printer to start printing. For example, the label printer receives the print instruction sent by the user through wireless technology, and the wireless technology can be any wireless technology such as infrared remote control, Bluetooth, Wi-Fi, Zigbee, NFC, etc. For another example, the label printer obtains the print instruction through a trigger instruction on a touch screen or a button.
[0040] The content of the printing instruction includes specific content that instructs the label printer to print on the line tube, for example, instructing the label printer to print a barcode, a price tag, a date and time, a production batch number or a serial number, an address and contact information, etc. on the line tube.
[0041] S102. In response to the printing instruction, detect whether the wire tube has been installed in the label printer?
[0042] The label printer can detect whether a wire tube is installed inside the label printer through a sensor. For example, the label printer is equipped with a sensor to monitor whether there is a wire tube in the tube inlet path, or to detect whether the wire tube state indicates that the wire tube is installed in the label printer.
[0043] For example, a label printer may include a mechanical switch sensor that can detect a switch configured as Figure 1Whether there is a wire tube in the channel formed by the print head 102 and the fixing component 101; the photoelectric sensor determines whether there is a wire tube blocking the channel formed by the print head 102 and the fixing component 101 by reflecting the light beam; the infrared sensor: similar to the photoelectric sensor, it uses infrared rays to detect whether the wire tube is installed in the label printer.
[0044] It is understandable that the embodiment of the present application does not impose any limitation on the method for detecting whether the wire tube has been installed in the label printer, and the above is only an example.
[0045] S103: When it is determined that the wire tube has been installed in the label printer, control the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube.
[0046] When you have confirmed that the wire tube has been installed in the label printer, Figure 1 As shown, when a wire tube has been installed in the channel formed by the print head 102 and the fixing component 101 and the installation of the wire tube meets the installation standard, the print head 102 or the fixing component 101 of the label printer is controlled to switch to a pressing state to press the wire tube.
[0047] The active state indicates that the print head or the fixed component can move or rotate along at least one direction. The pressed state indicates that the print head or the fixed component is fixed at a certain position in space.
[0048] In one embodiment, the print head gradually switches from the active state to the pressed state, for example, the print head moves in a direction close to the fixed component until the wire tube is pressed onto the fixed component when switching to the pressed state.
[0049] In another embodiment, the fixing member gradually switches from the movable state to the compressed state to compress the wire tube. For example, the fixing member is two movable rods, the wire tube is installed between the channels formed by the two movable rods, and the two movable rods move in the direction of approaching the wire tube respectively until the wire tube is compressed when switching to the compressed state.
[0050] In another embodiment, the fixing component and the print head gradually switch from the active state to the compressed state, thereby compressing the wire tube. For example, the print head moves in a direction close to the fixing component, and the fixing component moves in a direction close to the print head until the wire tube is compressed.
[0051] S104. According to the printing instruction, the label printer is controlled to start printing on the line tube.
[0052] According to the content of the print instruction, the label printer is controlled to start printing the content of the print instruction on the wire tube. The preparation work for starting printing includes: ribbon installation, component self-test, and printing parameter configuration. When printing, the print head transfers the pigment to the wire tube by heating a specific area on the ribbon. When the heating element contacts the ribbon, the pigment on the ribbon is transferred to the surface of the wire tube through heat to form patterns, text, etc. And during the printing process, the wire tube is moved by rotating the fixed component or other means to send the printed wire tube out of the label printer.
[0053] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate.
[0054] In one embodiment, Figure 3 The figure is a flow chart of a label printer control method provided by an embodiment of the present application, which can be implemented by a computer program and can be run on a label printer control device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0055] Specifically, the label printer control method includes:
[0056] S201: Obtain a printing instruction for instructing a label printer to start printing.
[0057] Refer to the above S101, which will not be repeated here.
[0058] S202. In response to a print instruction, detect whether a ribbon has been installed in the label printer.
[0059] The label printer can detect whether a ribbon is installed inside the label printer through a sensor. For example, a sensor is provided inside the label printer to monitor whether there is a ribbon in the label printer, or to detect the state of a ribbon box containing a ribbon to detect whether a wire tube is installed in the label printer.
[0060] S203: When it is determined that the ribbon is not installed in the label printer, prompt the user to install the ribbon.
[0061] When it is determined that the ribbon is not installed in the label printer or the ribbon is installed incorrectly, the user is prompted to install the ribbon.
[0062] In one embodiment, the method of prompting the user to install the ribbon may be through a display screen of the label printer. For example, the label printer may display a warning message on the display screen: "No ribbon detected, please install the ribbon and try again". This prompt method is intuitive and clear, and the user can directly see the action to be taken.
[0063] In another embodiment, the method of prompting the user to install the ribbon can also be through the flashing / changing of the LED indicator light of the label printer. The label printer uses LED indicator lights of different colors or flashing patterns to attract the user's attention. For example, when it is detected that the ribbon is not installed, the indicator light of the label printer can flash or change color (such as flashing red) to prompt the user.
[0064] In another embodiment, the method of prompting the user to install the ribbon can also be a sound prompt. The label printer can issue a specific audio prompt to remind the user to perform an operation. For example, when it is detected that the ribbon is not installed, the label printer emits a beep to prompt the user to install the ribbon.
[0065] It is understandable that the embodiment of the present application does not impose any limitation on the method for detecting whether a color tube has been installed in a label printer, and the above is only an example.
[0066] When it is determined that the ribbon is not installed in the label printer, after prompting the user to install the ribbon, S202 is continued to be executed to detect whether the ribbon is installed in the label printer until it is determined that the ribbon is installed in the label printer.
[0067] S204: When it is determined that the ribbon has been installed in the label printer, tighten the ribbon.
[0068] When it is determined that the ribbon has been installed in the label printer, tightening the ribbon can be understood as tightening a portion of the leaked ribbon, which is placed in a channel formed between the print head and the fixed component.
[0069] In this embodiment, by tightening the ribbon, a part of the loosened ribbon is prevented from blocking the passage for placing the wire tube, so that it is convenient for users to install the wire tube.
[0070] S205. In response to the printing instruction, detect whether the wire tube has been installed in the label printer?
[0071] Refer to the above S102, which will not be repeated here.
[0072] S206: When it is determined that the wire tube is not installed in the label printer, control the print head and the fixed component to switch to an active state.
[0073] The active state indicates that the print head and the fixed component can move or rotate in at least one direction. When it is determined that the line tube is not installed in the label printer, the print head and the fixed component are controlled to switch to the active state, which is convenient for the user to install the line tube.
[0074] In one embodiment, when it is determined that no wire tube is installed in the label printer, the print head and the fixing component of the label printer are controlled to switch to an active state, and the cutter of the label printer is controlled to return to an initial position.
[0075] The cutter (or paper cutter) of the label printer is mainly used to cut the printed labels. During the printing process, the cutter will cut or half-cut the tube after each small section of the label is printed, that is, cut the blank part between the labels, so as to ensure that each label is separated and not connected together, so that each label can be used independently.
[0076] The cutter moves from the initial position along the cross section of the wire tube to the half-cut position, that is, performs the half-cut task, only cuts half of the wire tube, and does not completely separate a certain section of the wire tube from another section of the wire tube. The cutter moves from the initial position along the cross section of the wire tube to the half-cut position and then to the full-cut position, that is, performs the full-cut task, which can cut the wire tube and completely separate a certain section of the wire tube from another section of the wire tube.
[0077] In this embodiment, when it is determined that the wire tube is not installed in the label printer, the print head and the fixing components of the label printer are controlled to switch to an active state, and the cutter needs to be lifted to an initial position to facilitate the user to install the wire tube.
[0078] S207: When it is determined that the wire tube has been installed in the label printer, control the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube.
[0079] Refer to the above S103, which will not be repeated here.
[0080] S208. According to the printing instruction, control the label printer to start printing on the line tube.
[0081] Refer to the above S104, which will not be repeated here.
[0082] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate.
[0083] In one embodiment, Figure 4A As shown, it is a flowchart of a label printer control method provided by an embodiment of the present application, which can be implemented by a computer program and can be run on a label printer control device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0084] Specifically, the label printer control method includes:
[0085] S301: Obtain a printing instruction for instructing a label printer to start printing.
[0086] Refer to the above S101, which will not be repeated here.
[0087] In one embodiment, before obtaining the printing instruction to instruct the label printer to start printing, it also includes: when it is determined that the preset condition is met, detecting whether the ribbon has been installed in the label printer; when it is determined that the ribbon has been installed in the label printer, tightening the ribbon.
[0088] The preset condition may be receiving a start instruction of the label printer, and detecting whether the ribbon has been installed in the label printer in response to the start instruction. The preset condition may also be receiving a detection instruction for detecting whether the ribbon has been installed in the label printer. The preset condition may also be any other condition, and the embodiments of the present application do not impose any limitation on this.
[0089] In other words, in this embodiment, the ribbon has been installed and tightened in the label printer before the print instruction instructing the label printer to start printing is obtained.
[0090] S302. In response to the printing instruction, detect whether the wire tube has been installed in the label printer?
[0091] Refer to the above S102, which will not be repeated here.
[0092] In this application, if Figure 4AAs shown, after executing S302, continue to execute:
[0093] S3031. When it is determined that the wire tube has been installed in the label printer, control a fixing component in the label printer for fixing the wire tube to switch to a tightened state.
[0094] In this embodiment, the print head is in an active state, and the fixed component gradually switches from the active state to the pressing state to press the wire tube. For example, the fixed component is two movable rods, the wire tube is installed between the channels formed by the two movable rods, and the two movable rods move in the direction of approaching the wire tube respectively until they switch to the pressing state to press the wire tube.
[0095] S3041. Control the print head to switch to a pressing state so as to press the ribbon and wire tube installed in the label printer onto a fixed component for printing.
[0096] The active print head is controlled to switch to the clamping state. The active print head is used to pull out the tightened ribbon. The print head switched to the clamping state is used to press the ribbon onto the bobbin and continue to clamp the ribbon and the bobbin onto the fixed component. Thus, during printing, the print head transfers the pigment to the bobbin by heating a specific area on the ribbon, completing the printing task corresponding to the printing instruction.
[0097] In another embodiment, Figure 4B As shown, after executing S302, continue to execute:
[0098] S3032. When it is determined that the wire tube has been installed in the label printer, the print head is controlled to switch to a pressed state.
[0099] In this embodiment, the fixing component is in an active state, and the print head gradually switches from the active state to the pressed state, for example, the print head moves in a direction close to the fixing component until it switches to the pressed state and presses the wire tube onto the fixing component.
[0100] S3042, according to the printing instruction, controlling the print head to switch from a pressed state to an active state, so as to pull out the ribbon installed in the label printer;
[0101] The print head in the clamping state is controlled to switch to the clamping state, thereby pulling out the tightened ribbon.
[0102] S3052, control the print head to switch from an active state to a pressed state, so as to press the ribbon and the wire tube onto a fixed component for printing.
[0103] The print head is controlled to switch to the pressing state, so as to press the ribbon onto the bobbin, and the ribbon and the bobbin are pressed onto the fixed component. Thus, during printing, the print head transfers the pigment onto the bobbin by heating a specific area on the ribbon, thus completing the printing task corresponding to the printing instruction.
[0104] In other words, in this embodiment, with respect to the two possible implementations of controlling the print head or switching to a clamping state to clamp the wire tube after determining that the wire tube has been installed, different implementations are separately explained for how to pull out the tightened ribbon and clamp the ribbon and the wire tube to a fixed component during printing, thereby completing the printing task and improving the working reliability of the label printer.
[0105] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate.
[0106] In one embodiment, Figure 5 The figure is a flow chart of a label printer control method provided by an embodiment of the present application, which can be implemented by a computer program and can be run on a label printer control device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0107] Specifically, the label printer control method includes:
[0108] S401, obtaining a start instruction for instructing the label printer to start;
[0109] The user interacts with the communication interface of the printer by direct touch or remote control, so that the label printer obtains a startup instruction for instructing the label printer to start. For example, the label printer receives the startup instruction sent by the user through wireless technology, and the wireless technology can be any wireless technology such as infrared remote control, Bluetooth, Wi-Fi, Zigbee, NFC, etc. For another example, the label printer obtains the startup instruction through a trigger instruction on a touch screen or a button.
[0110] S402: In response to the start instruction, detect whether the cover of the label printer is in an open state or a closed state.
[0111] When the box cover of the label printer is in an open state, it means that the user can see part of the internal structure of the label printer and the installation wire tube, but when the box cover of the label printer is in a closed state, the user cannot see it.
[0112] In one embodiment, a mechanical switch can be used to detect whether the box cover of the label printer is in an open or closed state. Specifically, a mechanical switch is usually designed inside the label printer, located at the edge of the box cover or near the box cover. When the box cover is switched from an open state to a closed state, the switch is pressed or triggered, indicating that the box cover is in a closed state; when the box cover is switched from a closed state to an open state, the switch is no longer pressed, indicating that the box cover is in an open state. This method is simple, direct, and common in many label printers.
[0113] In one embodiment, a magnetic switch can be used to detect whether the box cover of the label printer is in an open or closed state. This switch works on the principle of magnets. Specifically, a magnet may be installed on the box cover, and a magnetic sensor is installed on the main body of the label printer. When the box cover switches from an open state to a closed state, the magnet approaches the magnetic sensor, and the sensor can detect the change in the magnetic field to determine that the box cover is in a closed state; if the box cover switches from a closed state to an open state, the magnet is away from the sensor, and the label printer cannot detect the change in the magnetic field, indicating that the box cover is in an open state.
[0114] It is understandable that the embodiments of the present application also include other detection methods for detecting whether the box cover of the label printer is in an open state or a closed state, and the above are only examples.
[0115] S403: When it is determined that the box cover is in the open state, prompt the user to switch the box cover to the closed state.
[0116] When it is determined that the box cover of the label printer is in the open state, the user is prompted to switch the box cover to the closed state, and the user is prompted to close the box cover.
[0117] In one embodiment, the method of prompting the user to switch the box cover to the closed state can be through a display screen prompt of the label printer. For example, the label printer can display a warning message on the display screen: "Please close the box cover". This prompting method is intuitive and clear, and the user can directly see the action to be taken.
[0118] When it is determined that the box cover is in the open state, after prompting the user to switch the box cover to the closed state, S402 is continued to be executed to detect that the box cover of the label printer is already in the closed state.
[0119] S404: When it is determined that the box cover is in the closed state, the cutter of the label printer is controlled to return to the initial position, and the print head and the fixed component are controlled to switch to the active state.
[0120] When it is determined that the box cover is in the closed state, the cutter of the label printer is controlled to return to the initial position, and the print head and the fixed component are controlled to switch to the active state.
[0121] The cutter (or paper cutter) of the 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, that 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, that is, to perform the full-cut task.
[0122] After the label printer completes the last printing task, the cutter may be in the half-cut position and the full-cut position. At this time, when the label printer receives the start command, it is necessary 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 wire tube.
[0123] However, if the label printer controls the cutter to return to the initial position when the box cover is not in the closed state, the user may be scratched. Therefore, in the present embodiment, the cutter is only retracted when the box cover of the label printer is in the closed state, effectively protecting the safety of the user.
[0124] S405: According to the start instruction, instruct the label printer to be in a standby state.
[0125] According to the start-up instruction, the label printer is instructed to be in a standby state. The label printer in the standby state can receive instructions such as print instructions and process them.
[0126] S406: Obtain a printing instruction that instructs the label printer to start printing.
[0127] Participate in the above S101, which will not be repeated here.
[0128] S407. In response to the printing instruction, detect whether the wire tube has been installed in the label printer?
[0129] Refer to the above S102, which will not be repeated here.
[0130] S408: When it is determined that the wire tube has been installed in the label printer, control the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube.
[0131] Refer to the above S103, which will not be repeated here.
[0132] S409, according to the printing instruction, control the label printer to start printing on the line tube.
[0133] Refer to the above S104 and will not be repeated here.
[0134] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate.
[0135] In one embodiment, Figure 6 The figure is a flow chart of a label printer control method provided by an embodiment of the present application, which can be implemented by a computer program and can be run on a label printer control device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0136] Specifically, the label printer control method includes:
[0137] S501: Obtain a printing instruction for instructing a label printer to start printing.
[0138] Participate in the above S101, which will not be repeated here.
[0139] S502: In response to the printing instruction, detect whether the wire tube has been installed in the label printer?
[0140] Refer to the above S102, which will not be repeated here.
[0141] S503: When it is determined that the wire tube has been installed in the label printer, control the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube.
[0142] Refer to the above S103, which will not be repeated here.
[0143] S504: According to the printing instruction, control the label printer to start printing on the line tube.
[0144] Refer to the above S104 and will not be repeated here.
[0145] S505, controlling the cutter of the label printer to return to the initial position, and controlling the print head to switch to the active state and continue to switch to the pressing state, so as to press the wire tube and the ribbon installed in the label printer onto the fixed component.
[0146] Control the cutter of the label printer to return to the initial position, and control the print head to switch to the active state, ensuring that the states of the cutter and the print head are reset to the initial state when printing starts. And control the print head to switch to the active state to pull out the tightened ribbon, further switch the print head to the pressing state to press the ribbon onto the wire tube, and continue to press the ribbon and the wire tube onto the fixed component.
[0147] S506, heating the print head and moving the wire tube, pausing printing when repeatedly detecting that the wire tube has moved a preset distance and controlling the cutter to half-cut the wire tube, and stopping printing when it is determined that the printing task corresponding to the printing instruction is completed.
[0148] When printing, the print head transfers the pigment to the tube by heating a specific area on the ribbon. When the heating element contacts the ribbon, the pigment on the ribbon is transferred to the surface of the tube through heat, forming patterns, text, etc.
[0149] During the printing process, the wire tube is moved a preset distance multiple times by rotating the fixed component or by other means, and the printing is paused and the cutter is controlled to half-cut the wire tube. For example, the printing task corresponding to the printing instruction includes printing 100 labels, and it is determined according to the content of the label that the tube needs to be moved X centimeters when printing a single label. Therefore, during the printing process, each time the tube moves X centimeters, the printing is paused and the cutter is controlled to half-cut the wire tube, until 100 labels are printed, the wire tube is fully cut to complete the printing task.
[0150] In one embodiment, the print head is heated and the wire tube is moved. When it is repeatedly detected that the wire tube has moved a preset distance, printing is paused and the cutter is controlled to half-cut the wire tube. When it is detected that printing of a target sub-wire tube among multiple sub-wire tubes included in the wire tube is completed, it is determined that the printing task corresponding to the printing instruction is completed, printing is stopped and the cutter is controlled to half-cut at the position of the target sub-wire tube, and the wire tube is continued to be moved to the reserved distance and the cutter is controlled to fully cut the wire tube.
[0151] When it is detected that the printing of the target sub-line tube among the multiple sub-line tubes included in the line tube is completed, it is determined that the printing task corresponding to the printing instruction is completed. For example, the printing task corresponding to the printing instruction includes printing 100 labels. After the half-cut action is performed 99 times on the line tube, 99 sub-line tubes are obtained, and the 100th line tube is the target sub-line tube, after it is determined that the printing of the target sub-line tube is completed, it is determined that the printing task corresponding to the printing instruction is completed.
[0152] Furthermore, the printing is stopped and the cutter is controlled to perform half-cut at the position where the target sub-line tube is located, and the line tube is continued to be moved to the reserved distance and the cutter is controlled to perform full-cut on the line tube. The reserved position can be understood as continuing to move the tube for a short distance after performing the half-cut task, and the line tube position corresponding to the distance is the position for performing the full-cut task.
[0153] For example, continuing with the above example, the 100th wire tube is the target sub-wire tube. After determining that the printing of the target sub-wire tube is completed, the tube is moved for X cm and then half-cut. The tube is continued to be moved to a reserved distance (for example, 5 cm) and the cutter is controlled to fully cut the wire tube, completely cutting off the first 100 sub-wire tubes and the rear section of the wire tube.
[0154] In this embodiment, after printing is completed, the wire tube is first half-cut and then fully cut after the tube is moved. The purpose is to prevent the printed content on the last section of the wire tube as the target sub-wire tube from being cut when the full cutting is directly performed on the last section of the wire tube, thereby preventing the section of the wire tube from being scrapped and affecting user use.
[0155] Based on this embodiment, Figure 7 FIG. 1 is a flow chart of a label printer control method provided in an embodiment of the present application, and the flow chart includes the following steps:
[0156] A101, turn on the computer.
[0157] A102, the print head moves and the cutter returns to its initial position.
[0158] A103. Tighten the ribbon and compress the wire tube.
[0159] A104. Do you have any printing tasks?
[0160] A105. When it is confirmed that there is a printing task, the printing process is entered.
[0161] A106, the print head presses the ribbon onto the wire tube.
[0162] A107, pipe routing, turn on heating and print a section of wire pipe.
[0163] A108. This section of wire tube has been printed.
[0164] A109. Make sure the wire tube is delivered to the cutting position.
[0165] During the printing process, it is determined in real time whether the printed wire tube has reached the cutter position. The judgment condition can be determined by the distance from the print head to the cutter, and whether the wire tube has reached the cutter position based on the current printed length.
[0166] A110, control the cutter to perform half-cutting to cut the wire tube.
[0167] During printing, the cutter action has the highest priority. If the cutter action needs to be executed during printing, printing needs to be paused and the cutter action is executed. The cutter action includes half cut and full cut.
[0168] A111. Are all the wire tubes printed?
[0169] When it is determined that the wire tube has not been printed, continue to execute A107-A111.
[0170] A112. When it is determined that all the wire tubes have been printed, control the cutter to perform full cutting and cut off the wire tubes.
[0171] After the last section of the wire tube is printed, the tube is continued to be sent to the cutter position. The cutter is controlled to perform a half cut first, and then the tube is controlled to send the wire tube out for example 5mm, and a full cut is performed to cut the wire tube.
[0172] A113. Tighten the ribbon.
[0173] At the same time, the print head moves and the cutter returns to its initial position.
[0174] A114. Exit the printing process.
[0175] During the printing process, the abnormal status of the label printer will be detected in real time. If abnormal conditions such as the box cover is open, the tube is blocked, the tube is missing, the ribbon is missing, high temperature, etc. are detected, the current printing task will be stopped and the printing process will be exited.
[0176] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate.
[0177] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0178] See also Figure 8, which shows a schematic diagram of the structure of a label printer control device provided by an exemplary embodiment of the present application. The label printer control device can be implemented as all or part of the device through software, hardware or a combination of both. The device includes an instruction acquisition module 601, an installation detection module 602, a wire tube pressing module 603 and a printing start module 604.
[0179] The instruction acquisition module 601 is used to acquire a printing instruction instructing the label printer to start printing;
[0180] An installation detection module 602 is used to detect whether the wire tube has been installed in the label printer in response to the printing instruction;
[0181] The wire tube pressing module 603 is used to control the print head of the label printer and / or the fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube when it is determined that the wire tube has been installed in the label printer;
[0182] The printing start module 603 is used to control the label printer to start printing on the wire tube according to the printing instruction.
[0183] In one embodiment, the label printer control device further includes:
[0184] a ribbon detection module, for detecting whether a ribbon has been installed in the label printer in response to the printing instruction;
[0185] A ribbon tightening module, used to tighten the ribbon when it is determined that the ribbon has been installed in the label printer
[0186] In one embodiment, when it is determined that the wire tube has been installed in the label printer, a fixing component for fixing the wire tube in the label printer is controlled to switch to a pressed state;
[0187] The printing start module 603 includes:
[0188] The first printing unit is used to control the print head to switch to a pressing state according to the printing instruction, so as to press the ribbon and the wire tube installed in the label printer onto the fixed component to start printing.
[0189] In one embodiment, when it is determined that the wire tube has been installed in the label printer, the print head is controlled to switch to a pressed state;
[0190] The printing start module 603 includes:
[0191] a second printing unit, configured 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;
[0192] The third printing unit is used to control the print head to switch from an active state to a pressed state, so as to press the ribbon and the wire tube onto the fixed component for printing.
[0193] In one embodiment, the label printer control device further includes:
[0194] A ribbon detection module, used to detect whether a ribbon has been installed in the label printer when a preset condition is met;
[0195] The ribbon tightening module is used to tighten the ribbon when it is determined that the ribbon has been installed in the label printer.
[0196] In one embodiment, the label printer control device further includes:
[0197] The active installation module is used to control the print head and the fixing component to switch to an active state when it is determined that the wire tube is not installed in the label printer.
[0198] In one embodiment, the activity installation module includes:
[0199] The retracting unit is used to control the print head and the fixing component of the label printer to switch to an active state and control the cutter of the label printer to retract to an initial position when it is determined that the wire tube is not installed in the label printer.
[0200] In one embodiment, the label printer control device further includes:
[0201] A startup acquisition module, used to acquire a startup instruction instructing the label printer to start;
[0202] A box cover detection module, used for detecting whether the box cover of the label printer is in an open state or a closed state in response to the start instruction;
[0203] A knife retracting activity module, used for controlling the cutter of the label printer to retract to an initial position and controlling the print head and the fixed component to switch to an active state when determining that the box cover is in a closed state;
[0204] The startup standby module is used to instruct the label printer to be in a standby state according to the startup instruction.
[0205] In one embodiment, the label printer control device further includes:
[0206] The user prompting module is used to prompt the user to switch the box cover to a closed state when it is determined that the box cover is in an open state.
[0207] In one embodiment, the label printer control device further includes:
[0208] A knife retracting and pressing module, used for controlling the cutter of the label printer to retract to an initial position, and controlling the print head to switch to an active state and continue to switch to a pressing state, so as to press the wire tube and the ribbon installed in the label printer onto the fixed component;
[0209] The heating printing module is used to heat the print head and move the wire tube. When it is repeatedly detected that the wire tube has moved a preset distance, the printing is paused and the cutter is controlled to half-cut the wire tube, and the printing is stopped when it is determined that the printing task corresponding to the printing instruction is completed.
[0210] In one embodiment, a heated printing module comprises:
[0211] A first printing unit, used for heating the print head and moving the wire tube, pausing printing and controlling the cutter to half-cut the wire tube when repeatedly detecting that the wire tube has moved a preset distance;
[0212] The second printing unit is used to determine that the printing task corresponding to the printing instruction is completed when it is detected that the printing of the target sub-line tube among the multiple sub-line tubes included in the line tube is completed, stop printing and control the cutter to perform half-cut at the position where the target sub-line tube is located, and continue to move the line tube to a reserved distance and control the cutter to fully cut the line tube.
[0213] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate.
[0214] It should be noted that the label printer control device provided in the above embodiment only uses the division of the above functional modules as an example 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 provided in the above embodiment and the label printer control method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0215] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0216] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1 - Figure 7 The label printer control method of the embodiment shown in the figure can be found in the specific execution process. Figure 1 - Figure 7 The specific description of the illustrated embodiment will not be repeated here.
[0217] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1 - Figure 7 The label printer control method of the embodiment shown in the figure can be found in the specific execution process. Figure 1 - Figure 7 The specific description of the illustrated embodiment will not be repeated here.
[0218] See also Fig. 9 , is a schematic diagram of the structure of a label printer provided in an embodiment of the present application. Fig. 9 As shown, 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 .
[0219] The communication bus 702 is used to realize the connection and communication between these components.
[0220] The user interface 703 may include a display screen (Display) and a camera (Camera), and the optional user interface 703 may also include a standard wired interface and a wireless interface.
[0221] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0222] Among them, the processor 701 may include one or more processing cores. The processor 701 uses various interfaces and lines to connect various parts within the entire server 700, and executes various functions and processes data of the server 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 705, and calling data stored in the memory 705. Optionally, the processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 701 can integrate one or more combinations of processors (Central Processing Unit, CPU), image processors (Graphics Processing Unit, GPU) and modems. Among them, the CPU mainly processes operating systems, user interfaces, and applications; the GPU is responsible for rendering and drawing the content that needs to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 701, and it can be implemented separately through a chip.
[0223] Among them, the memory 705 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 705 may optionally be at least one storage device located away from the aforementioned processor 701. As Fig. 9 As shown, 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.
[0224] exist Fig. 9In the label printer 700 shown, the user interface 703 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 701 can be used to call the label printer control application stored in the memory 705 and specifically perform the following operations:
[0225] Obtaining a printing instruction for instructing the label printer to start printing;
[0226] In response to the printing instruction, detecting whether a wire tube has been installed in the label printer;
[0227] When it is determined that the wire tube has been installed in the label printer, control the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube;
[0228] According to the printing instruction, the label printer is controlled to start printing on the wire tube.
[0229] In one embodiment, after the processor 701 executes the step of obtaining the printing instruction instructing the label printer to start printing, the processor 701 further executes:
[0230] In response to the printing instruction, detecting whether a ribbon has been installed in the label printer;
[0231] When it is determined that the ribbon has been installed in the label printer, the ribbon is tightened.
[0232] In one embodiment, when it is determined that the wire tube has been installed in the label printer, a fixing component for fixing the wire tube in the label printer is controlled to switch to a pressed state;
[0233] The processor 701 executes the printing instruction to control the label printer to start printing on the wire tube, specifically performing:
[0234] According to the printing instruction, the print head is controlled to switch to a pressing state so as to press the ribbon and the wire tube installed in the label printer onto the fixed component to start printing.
[0235] In one embodiment, when it is determined that the wire tube has been installed in the label printer, the print head is controlled to switch to a pressed state;
[0236] The processor 701 executes the printing instruction to control the label printer to start printing on the wire tube, specifically performing:
[0237] According to the printing instruction, the print head is controlled to switch from a pressed state to an active state so as to pull out the ribbon installed in the label printer;
[0238] The print head is controlled to switch from an active state to a pressed state, so as to press the ribbon and the wire tube onto the fixed component for printing.
[0239] In one embodiment, before the processor 701 executes the step of obtaining the printing instruction instructing the label printer to start printing, the processor 701 further executes:
[0240] When it is determined that the preset condition is met, detecting whether a ribbon has been installed in the label printer;
[0241] When it is determined that the ribbon has been installed in the label printer, the ribbon is tightened.
[0242] In one embodiment, after the processor 701 executes the step of responding to the printing instruction and detecting whether the wire tube has been installed in the label printer, before controlling the print head of the label printer and / or the fixing component in the label printer for fixing the wire tube to switch to a pressed state when it is determined that the wire tube has been installed in the label printer, the processor 701 further executes:
[0243] When it is determined that the wire tube is not installed in the label printer, the print head and the fixing component are controlled to switch to an active state.
[0244] In one embodiment, the processor 701 controls the print head and the fixing component of the label printer to switch to an active state when determining that the wire tube is not installed in the label printer, specifically performing:
[0245] When it is determined that the wire tube is not installed in the label printer, the print head and the fixing component of the label printer are controlled to switch to an active state, and the cutter of the label printer is controlled to return to an initial position.
[0246] In one embodiment, before the processor 701 executes the step of obtaining the printing instruction instructing the label printer to start printing on the thread tube, the processor 701 further executes:
[0247] Obtaining a start instruction for instructing the label printer to start;
[0248] In response to the start instruction, detecting whether the cover of the label printer is in an open state or a closed state;
[0249] When it is determined that the box cover is in the closed state, controlling the cutter of the label printer to return to the initial position, and controlling the print head and the fixed component to switch to the active state;
[0250] According to the startup instruction, the label printer is instructed to be in a standby state.
[0251] In one embodiment, after the processor 701 executes the response to the start instruction and detects whether the box cover of the label printer is in an open state or a closed state, when determining that the box cover is in a closed state, controlling the cutter of the label printer to return to an initial position, and before controlling the print head to switch to an active state, further executes:
[0252] When it is determined that the box cover is in the open state, the user is prompted to switch the box cover to the closed state.
[0253] In one embodiment, after the processor 701 executes the step of controlling the label printer to start printing on the wire tube according to the printing instruction, it further executes:
[0254] Controlling the cutter of the label printer to return to the initial position, and controlling the print head to switch to an active state and continue to switch to a pressing state, so as to press the wire tube and the ribbon installed in the label printer onto the fixed component;
[0255] The print head is heated and the wire tube is moved. When it is repeatedly detected that the wire tube has moved a preset distance, printing is paused and the cutter is controlled to half-cut the wire tube, and printing is stopped when it is determined that the printing task corresponding to the printing instruction is completed.
[0256] In one embodiment, the processor 701 performs the steps of heating the print head and moving the wire tube, pausing printing when determining that the wire tube has moved a preset distance and controlling the cutter to half-cut the wire tube, and stopping printing when determining that the printing task corresponding to the printing instruction is completed, specifically performing:
[0257] The printing head is heated and the wire tube is moved, and when it is repeatedly detected that the wire tube has moved a preset distance, the printing is paused and the cutter is controlled to half-cut the wire tube;
[0258] When it is detected that printing of a target sub-line tube among the multiple sub-line tubes included in the line tube is completed, it is determined that the printing task corresponding to the printing instruction is completed, printing is stopped and the cutter is controlled to perform half-cutting at the position of the target sub-line tube, and the line tube is continued to be moved to a reserved distance and the cutter is controlled to perform full cutting of the line tube.
[0259] In an embodiment of the present application, it is detected whether the wire tube has been installed in the label printer according to the printing instruction. When it is determined that the wire tube has been installed in the label printer and printing can be performed, the print head of the label printer is controlled to switch to a compacted state, or the fixing component used to fix the wire tube in the label printer is controlled to switch to a compacted state, or the print head and the fixing component are controlled to switch to a compacted state at the same time to compact the wire tube, and the print head is further controlled to print the content corresponding to the printing instruction on the wire tube. In this embodiment, in response to the printing instruction, the print head and / or the fixing component are automatically controlled to switch to a compacted state to compact the wire tube, which can prevent the problem of poor printing effect caused by the wire tube not being able to run smoothly when the label printer prints on the wire tube, reduce the possibility of user misoperation, and improve the printing success rate.
[0260] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0261] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.
[0262] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A label printer control method, characterized in that: The method comprises: Obtaining a printing instruction for instructing the label printer to start printing; In response to the printing instruction, detecting whether a wire tube has been installed in the label printer; When it is determined that the wire tube has been installed in the label printer, control the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube; According to the printing instruction, the label printer is controlled to start printing on the wire tube.
2. The label printer control method according to claim 1, characterized in that: After obtaining the printing instruction instructing the label printer to start printing, the method further includes: In response to the printing instruction, detecting whether a ribbon has been installed in the label printer; When it is determined that the ribbon has been installed in the label printer, the ribbon is tightened.
3. The label printer control method according to claim 1, characterized in that: When it is determined that the wire tube has been installed in the label printer, controlling a fixing component in the label printer for fixing the wire tube to switch to a pressed state; According to the printing instruction, controlling the label printer to start printing on the wire tube includes: According to the printing instruction, the print head is controlled to switch to a pressing state so as to press the ribbon and the wire tube 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 wire tube has been installed in the label printer, controlling the print head to switch to a pressed state; According to the printing instruction, controlling the label printer to start printing on the wire tube includes: According to the printing instruction, the print head is controlled to switch from a pressed 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 pressed state, so as to press the ribbon and the wire 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 for instructing the label printer to start printing, the method further includes: When it is determined that the preset condition is met, detecting whether a ribbon has been installed in the label printer; When it is determined that the ribbon has been installed in the label printer, the ribbon is tightened.
6. The label printer control method according to claim 1, characterized in that: After detecting whether the wire tube has been installed in the label printer in response to the printing instruction, before controlling the print head of the label printer and / or the fixing component for fixing the wire tube in the label printer to switch to a pressed state when it is determined that the wire tube has been installed in the label printer, the method further includes: When it is determined that the wire tube is not installed in the label printer, the print head and the fixing component are controlled to switch to an active state.
7. The label printer control method according to claim 6, characterized in that: When it is determined that the wire tube is not installed in the label printer, controlling the print head and the fixing component of the label printer to switch to an active state includes: When it is determined that the wire tube is not installed in the label printer, the print head and the fixing component of the label printer are controlled to switch to an active state, and the cutter of the label printer is controlled to return to an initial position.
8. The label printer control method according to claim 1, characterized in that: Before obtaining the printing instruction instructing the label printer to start printing on the wire tube, the method further includes: Obtaining a start instruction for instructing the label printer to start; In response to the start instruction, detecting whether the cover of the label printer is in an open state or a closed state; When it is determined that the box cover is in the closed state, controlling the cutter of the label printer to return to the initial position, and controlling the print head and the fixed component to switch to the active state; According to the startup instruction, the label printer is instructed to be in a standby state.
9. The label printer control method according to claim 8, characterized in that: After responding to the start instruction and detecting whether the box cover of the label printer is in an open state or a closed state, when determining that the box cover is in a closed state, controlling the cutter of the label printer to return to an initial position, and before controlling the print head to switch to an active state, the method further includes: When it is determined that the box cover is in the open state, the user is prompted to switch the box cover 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 wire tube according to the printing instruction, the method further includes: Controlling the cutter of the label printer to return to the initial position, and controlling the print head to switch to an active state and continue to switch to a pressing state, so as to press the wire tube and the ribbon installed in the label printer onto the fixed component; The print head is heated and the wire tube is moved. When it is repeatedly detected that the wire tube has moved a preset distance, printing is paused and the cutter is controlled to half-cut the wire tube, and printing is stopped when it is determined that the printing task corresponding to the printing instruction is completed.
11. The label printer control method according to claim 10, characterized in that: The step of heating the print head and moving the wire tube, pausing printing when it is determined that the wire tube has moved a preset distance, and controlling the cutter to half-cut the wire tube, and stopping printing when it is determined that the printing task corresponding to the printing instruction is completed, includes: The printing head is heated and the wire tube is moved, and when it is repeatedly detected that the wire tube has moved a preset distance, the printing is paused and the cutter is controlled to half-cut the wire tube; When it is detected that printing of a target sub-line tube among the multiple sub-line tubes included in the line tube is completed, it is determined that the printing task corresponding to the printing instruction is completed, printing is stopped and the cutter is controlled to perform half-cutting at the position of the target sub-line tube, and the line tube is continued to be moved to a reserved distance and the cutter is controlled to perform full cutting of the line tube.
12. A label printer control device, characterized in that: The device comprises: An instruction acquisition module, used to acquire a printing instruction instructing the label printer to start printing; An installation detection module is used to detect whether the wire tube has been installed in the label printer in response to the printing instruction; A wire tube pressing module, used for controlling the print head of the label printer and / or a fixing component in the label printer for fixing the wire tube to switch to a pressing state to press the wire tube when it is determined that the wire tube has been installed in the label printer; The printing start module is used to control the label printer to start printing on the wire tube according to the printing instruction.
13. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to 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, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 11.
Citation Information
Patent Citations
Comprehensive detecting system for portable label printing machine and working method thereof
CN106393999A
Number tube machine control system, number tube machine and automatic wiring harness machine
CN109582255A
Wire casing pipe marking machine capable of automatically identifying printing data
CN109760428A
Printing equipment, printing equipment cutter control method and device and storage medium
CN112848703A
Printing control device and printing control method
CN113879011A
Cited By
Label printer control method and apparatus, storage medium and electronic device
WO2026138421A1