Label paper gap positioning method and apparatus, storage medium, and electronic device
By determining the size and material type of the label paper and combining this with gap signals to determine the gap location, the problem of inaccurate gap positioning on the label paper was solved, thus improving print quality.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD
- Filing Date
- 2026-01-16
- Publication Date
- 2026-07-23
AI Technical Summary
In existing technologies, inaccurate positioning of the label paper gaps leads to offset or missing printed content, affecting label quality, and the detection results of photoelectric sensors are unstable.
By determining the size of the label paper, calculating the moving distance, and combining the gap signal to determine the gap location, the material type and gap detection threshold are obtained using the radio frequency identification module, and the gap detection sensor is used to accurately locate the gap.
It improves the accuracy of label paper gap positioning, reduces printing content offset and missing content, and enhances print quality.
Smart Images

Figure CN2026073167_23072026_PF_FP_ABST
Abstract
Description
Methods, devices, storage media, and electronic equipment for locating label gaps
[0001] This application claims priority to Chinese Patent Application No. 2025100788592, filed January 17, 2025, entitled "Method, Apparatus, Storage Medium, and Electronic Device for Positioning Label Paper Gaps," and also claims priority to Chinese Patent Application No. 2025105692257, filed April 30, 2025, entitled "Paper Jam Detection Method, Apparatus, Storage Medium, and Electronic Device for Label Printers," and further claims priority to Chinese Patent Application No. 2025105691, filed April 30, 2025. The patent application claims priority to Chinese Patent Application No. 2025105692261, filed on April 30, 2025, entitled "Label Paper Printing Method, Apparatus, Label Printer, and Storage Medium," and also claims priority to Chinese Patent Application No. 2025105692280, filed on April 30, 2025, entitled "Control Method, Apparatus, Label Printer, and Storage Medium for Label Printer." The patent application claims priority to Chinese Patent Application No. 2025105692295, filed on April 30, 2025, entitled "A Method, Apparatus, Storage Medium, and Electronic Device for Paper Feeding Positioning," and Chinese Patent Application No. 2025105692312, filed on April 30, 2025, entitled "A Method, Apparatus, Storage Medium, and Terminal for Paper Feeding Positioning," and Chinese Patent Application No. 2025105692276, filed on April 30, 2025, entitled "A Method, Apparatus, Storage Medium, and Electronic Device for Paper Feeding Positioning." Priority is claimed in Chinese patent applications filed on April 30, 2025, with application number 2025105691964 entitled "A Printing Control Method and Related Equipment" and Chinese patent applications filed on April 30, 2025, with application number 2025105692327 entitled "Printing Control Method, Apparatus, Storage Medium and Electronic Equipment", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of printing technology, and in particular to a method, apparatus, storage medium, and electronic device for positioning the gaps in label paper. Background Technology
[0003] In the label printing process, accurately positioning the gaps in the label paper is crucial for the printing task. Inaccurate gap positioning can lead to misalignment or missing content, affecting the quality of the printed labels. Related technologies typically rely on photoelectric sensors for gap positioning, aiming to identify the gap location by detecting the light transmission characteristics of the label paper gaps. However, the light transmission properties of the gaps can be affected by instability in the label paper manufacturing process or material variations, leading to unstable gap detection results from photoelectric sensors. This can result in false or missed detections, causing misalignment of the printed content. Therefore, accurately positioning the label paper gaps is a critical technical problem that urgently needs to be solved.
[0004] Application content
[0005] This application provides a method, apparatus, computer storage medium, and electronic device for locating gaps in label paper. The technical solution is as follows:
[0006] In a first aspect, embodiments of this application provide a method for locating the gap in a label paper, the method comprising:
[0007] The label sheet size is determined, and a preset sheet movement distance is determined based on the sheet size. The label sheet is moved according to the paper transport path, and the movement distance is calculated based on the sheet position. It is determined whether the movement distance is greater than or equal to the preset sheet movement distance, and whether a gap signal corresponding to the label sheet exists. If the movement distance is greater than or equal to the preset sheet movement distance, and the gap signal exists, the gap position indicated by the gap signal is determined as the actual gap position.
[0008] In one embodiment, the face paper position includes the face paper beginning position. The step of moving the label paper based on the paper transport path and calculating the moving distance of the label paper based on the face paper position includes: controlling the label paper to move based on the paper transport path and determining a first moment when the gap detection sensor detects the face paper beginning position; monitoring the total number of movement steps of the label paper after the first moment, and determining the moving distance of the label paper based on the total number of movement steps.
[0009] In one embodiment, determining whether the moving distance is greater than or equal to the preset face paper moving distance and detecting whether there is a gap signal corresponding to the label paper includes: determining whether the moving distance is greater than or equal to the preset face paper moving distance; if the moving distance is greater than or equal to the preset face paper moving distance, then starting to detect whether there is a gap signal corresponding to the label paper; if the moving distance is greater than or equal to the preset face paper moving distance and the gap signal exists, then determining the gap position indicated by the gap signal as the actual gap position includes: if a gap signal corresponding to the label paper is detected, then determining the gap position indicated by the gap signal as the actual gap position.
[0010] In one embodiment, determining whether the moving distance is greater than or equal to the preset moving distance of the face paper, and detecting whether there is a gap signal corresponding to the label paper, includes: determining whether the moving distance is greater than or equal to the preset moving distance of the face paper, and starting to detect whether there is a gap signal corresponding to the label paper.
[0011] In one embodiment, the method further includes: if there is no gap signal corresponding to the label paper after the moving distance is greater than or equal to the preset paper moving distance, then stop executing the step of controlling the label paper to move based on the paper transport path, and / or issue a preset alarm.
[0012] In one embodiment, determining whether the moving distance is greater than or equal to the face paper size and detecting whether there is a gap signal corresponding to the label paper includes: detecting whether there is a gap signal corresponding to the label paper; if a gap signal corresponding to the label paper is detected, determining whether the moving distance is greater than or equal to the preset face paper moving distance; and determining the gap position indicated by the gap signal as the actual gap position if the moving distance is greater than or equal to the preset face paper moving distance and the gap signal exists includes: if the moving distance is greater than or equal to the preset face paper moving distance, determining the gap position indicated by the gap signal as the actual gap position.
[0013] In one embodiment, the method further includes: if the moving distance is less than the preset face paper moving distance, then ignoring the gap signal, and performing the step of controlling the label paper to move based on the paper transport path, and calculating the moving distance of the label paper based on the face paper position of the label paper.
[0014] In one embodiment, determining the label paper's face sheet size includes: identifying the RFID chip integrated within the label paper roll using an RFID module to obtain the label paper's face sheet size; or, receiving a label paper parameter transmission instruction sent by a user terminal and obtaining the label paper's face sheet size from the label paper parameter transmission instruction; or, determining the label paper's face sheet model and determining the label paper's face sheet size based on the face sheet model.
[0015] In one embodiment, detecting whether a gap signal corresponding to the label paper exists includes: obtaining the target material type of the label paper; determining a gap detection threshold corresponding to the target material type from a preset gap detection mapping relationship; and using the gap detection threshold to detect whether a gap signal corresponding to the label paper exists.
[0016] In one embodiment, obtaining the target material type of the label paper includes: identifying the RFID chip integrated within the label paper roll using an RFID module to obtain the target material type of the label paper; or, receiving a label paper parameter transmission instruction sent by a user terminal and obtaining the target material type of the label paper from the label paper parameter transmission instruction; or, determining the label paper face paper model and determining the target material type of the label paper based on the face paper model.
[0017] In one embodiment, the method further includes: after the printer is paused, performing label paper retraction processing on the label paper based on the paper transport path, and locating the beginning position of the label paper's face paper using a gap detection sensor.
[0018] In one embodiment, after determining that the gap position indicated by the gap signal is the actual gap position if the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, the method further includes: performing label paper moving processing on the label paper based on the paper transport path; and performing printing processing on the label paper when the actual gap position matches the sensor position corresponding to the gap detection sensor.
[0019] In one embodiment, the above-mentioned label paper gap positioning method further includes: monitoring the number of steps the motor moves when the label paper is driven to move by the motor; determining the target moving distance of the label paper based on the number of steps; if the target moving distance is greater than or equal to a preset detection distance threshold, determining the gap detection result; determining the paper jam detection result based on the gap detection result; and if the paper jam detection result indicates a paper jam, performing a paper jam prompt operation.
[0020] In one embodiment, determining the gap detection result includes: determining whether the gap detection sensor detects an in-gap signal or an out-gap signal for the gap in the label paper; if the in-gap signal or the out-gap signal is detected, a gap detection result with a gap type is generated; if neither the in-gap signal nor the out-gap signal is detected, a gap detection result without a gap type is generated.
[0021] In one embodiment, determining the paper jam detection result based on the gap detection result includes: if the gap detection result is a seamless type, then generating a paper jam detection result with a paper jam type.
[0022] In one embodiment, determining the paper jam detection result based on the gap detection result includes: if the gap detection result indicates a gap type, determining the paper jam risk level corresponding to the label paper; if the paper jam risk level is greater than or equal to a preset risk level, acquiring a moving image of the label paper through a camera, and performing wrinkle paper jam detection processing on the moving image of the label paper to obtain a wrinkle paper jam detection result; if the wrinkle paper jam detection result indicates a wrinkled paper jam type, generating a paper jam detection result for the wrinkled paper jam type; if the wrinkled paper jam detection result indicates a non-wrinkled paper jam type, generating a paper jam detection result for the non-wrinkled paper jam type.
[0023] In one embodiment, determining the paper jam risk level corresponding to the label paper includes: obtaining the material type and paper size of the label paper, and obtaining printing environment parameters; wherein, the printing environment parameters include at least one of printing environment temperature and printing environment humidity; and using a paper jam risk assessment model to perform paper jam risk detection processing based on the material type, the paper size and the printing environment parameters to obtain the paper jam risk level corresponding to the label paper.
[0024] In one embodiment, the method further includes: if the paper jam risk level is less than a preset risk level, then generating a paper jam detection result of the paper jam type without paper jams.
[0025] In one embodiment, after monitoring the number of steps the motor moves, the method further includes: determining the anti-counterfeiting feature corresponding to the label, performing anti-counterfeiting identification processing based on the anti-counterfeiting feature to obtain the anti-counterfeiting identification result of the label; if the anti-counterfeiting identification result is a counterfeit product, then performing an anti-counterfeiting anomaly prompt operation; if the anti-counterfeiting identification result is a genuine product, then canceling the execution of the anti-counterfeiting anomaly prompt operation.
[0026] In one embodiment, the paper jam prompting operation includes at least one of the following: outputting a preset paper jam error prompting sound; controlling a preset paper jam error indicator light to flash; displaying a preset paper jam pattern on a display screen; and displaying a preset paper jam prompting text on a display screen.
[0027] In one embodiment, after performing the paper jam warning operation, the method further includes controlling the motor to rotate a preset number of steps in the opposite direction to the label paper movement direction.
[0028] In one embodiment, after performing the paper jam prompt operation, the method further includes: stopping the label printing task, obtaining the unprinted content corresponding to the label printing task, and saving the unprinted content to a memory.
[0029] In one embodiment, after performing the paper jam prompt operation, the method further includes: acquiring an image of the label paper in the paper jam state, determining the paper jam position based on the label paper image; obtaining printing environment parameters, acquiring the paper identification of the label paper; generating a paper jam analysis report based on the paper identification, the paper jam position, and the printing environment parameters, and sending the paper jam analysis report to the user terminal.
[0030] In one embodiment, determining the jam position based on the label image includes: determining the recognition position corresponding to the gap detection sensor in the label image, and determining the beginning position of the face paper; determining the image interval distance between the recognition position and the beginning position of the face paper in the label moving direction; obtaining the face paper size of the label, obtaining a preset distance conversion ratio corresponding to the face paper size; and determining the jam position of the recognition position in the label based on the preset distance conversion ratio and the image interval distance.
[0031] In one embodiment, after performing the paper jam warning operation, the method further includes controlling the printhead to stop heating.
[0032] In one embodiment, before monitoring the number of steps the motor moves when the label paper is driven to move by the motor, the method further includes: when the label paper is detected to be loaded into the label printer for the first time, obtaining the face paper size of the label paper, and configuring a preset detection distance threshold based on the face paper size.
[0033] In one embodiment, before monitoring the number of steps the motor takes when driving the label paper to move, the method further includes: when the label paper is detected to be loaded into the label printer for the first time, obtaining the face paper size of the label paper and configuring a movement distance conversion ratio based on the face paper size; the method of determining the target movement distance of the label paper based on the number of movement steps includes: determining the target movement distance of the label paper based on the number of movement steps and the movement distance conversion ratio.
[0034] In one embodiment, the above-described label paper gap positioning method is applied to a label printer, which includes a printing line, a first sensor, and a tearing blade arranged sequentially in the paper output direction. The method further includes: controlling the label paper to output and return based on the first sensor, so that the upper gap of the label paper's top sheet aligns with the first position where the tearing blade is located; the label paper includes multiple top sheets, with a gap between every two adjacent top sheets; the distance between the tearing blade and the first sensor is less than or equal to the length of the top sheet; continuing to control the label paper to return until a first preset condition is met, then controlling the label paper to output and starting printing on the top sheet based on the printing line.
[0035] In one embodiment, controlling the label paper to extend and retract based on the first sensor, so that the upper seam of the label paper's surface aligns with the first position where the tearing blade is located, includes: controlling the label paper to extend; when the first sensor detects a first edge of the surface paper, controlling the label paper to stop extending and retract; the first edge is perpendicular to the paper extension direction; when the first sensor detects a second edge of the surface paper, controlling the label paper to stop retracting; the second edge is perpendicular to the paper extension direction and is different from the first edge; controlling the label paper to extend until the upper seam of the label paper's surface aligns with the first position where the tearing blade is located.
[0036] In one embodiment, controlling the label paper to stop feeding and return when the first sensor detects the first edge of the face paper includes: controlling the label paper to stop feeding and return when the first sensor changes from detecting the face paper of the label paper to detecting the back paper corresponding to the gap of the label paper.
[0037] In one embodiment, controlling the label paper to stop returning when the first sensor detects the second edge of the face paper includes: controlling the label paper to stop returning when the first sensor changes from detecting the face paper of the label paper to detecting the back paper corresponding to the gap of the label paper.
[0038] In one embodiment, the first sensor includes a photoelectric sensor; the method further includes: sending a light signal to the label paper through the first sensor and obtaining a corresponding light response value; the light response value includes at least one of a reflection value and a transmission value; if the light response value changes from a first value to a second value, then it is determined that the first sensor changes from detecting the face paper of the label paper to detecting the back paper corresponding to the gap in the label paper; the first value is the light detection response value corresponding to the face paper; the second value is the light detection response value of the back paper corresponding to the gap.
[0039] In one embodiment, controlling the label paper to exit until the upper seam of the label paper aligns with the first position where the tearing blade is located includes: determining a target paper exit distance based on the distance between the first sensor and the tearing blade and the length of the seam; and controlling the label paper to exit until the upper seam of the label paper aligns with the first position where the tearing blade is located based on the target paper exit distance.
[0040] In one embodiment, the label printer includes a first information reading and writing device, and a second information reading and writing device is disposed on the label paper; before determining the target paper output distance based on the distance between the first sensor and the tear blade and the gap length, the method further includes: reading the second information reading and writing device on the label paper through the first information reading and writing device to obtain label paper information; the label paper information includes the length of the gap; and / or, receiving the label paper information input by a user on the label printer and / or on a terminal connected to the label printer.
[0041] In one embodiment, controlling the label paper to be extruded until the upper seam of the label paper aligns with the first position where the tearing blade is located includes: determining a corresponding paper output speed based on the length of the label paper in the paper output direction; and controlling the label paper to be extruded based on the paper output speed until the upper seam of the label paper aligns with the first position where the tearing blade is located.
[0042] In one embodiment, the method further includes: determining a return speed based on the length of the face paper in the paper output direction and the paper output speed; the return speed being less than or equal to a first preset speed threshold; and controlling the return of the label paper based on the return speed.
[0043] In one embodiment, the return paper speed is less than the output paper speed.
[0044] In one embodiment, controlling the label paper to extend and retract based on the first sensor, so that the upper seam of the label paper's surface aligns with the first position where the tearing blade is located, includes: controlling the label paper to extend; controlling the label paper to stop extending when the first sensor detects the first edge of the surface paper; determining a first retraction distance based on the distance between the tearing blade and the first sensor, the length of the surface paper, and the length of the seam; and controlling the label paper to retract based on the first retraction distance, so that the upper seam of the label paper's surface aligns with the first position where the tearing blade is located.
[0045] In one embodiment, the step of continuing to control the label paper return until a first preset condition is met, then controlling the label paper to be output and starting to print on the face paper based on the printing line, includes: continuing to control the label paper return until the second edge of the face paper aligns with the second position where the printing line is located, or until a preset printing position aligns with the second position where the printing line is located; the preset printing position is set on the face paper, and the preset printing position is different from the second edge; controlling the label paper to be output and starting to print on the face paper based on the printing line.
[0046] In one embodiment, the method further includes: recording the number of motor steps for the label paper to be sent out or returned; if the number of motor steps is greater than a first preset step threshold, issuing a paper jam warning signal; the paper jam warning signal is used to notify the user that the label printer has jammed.
[0047] In one embodiment, the above-described label paper gap positioning method is applied to a label printer, which includes a second sensor, a printing line, and a tearing blade arranged sequentially in the paper output direction. The method further includes: controlling the label paper feed based on the second sensor so that the upper gap of the label paper's top sheet aligns with a first position where the tearing blade is located; the label paper includes a base paper and multiple top sheets attached to the base paper, with a gap between each pair of adjacent top sheets; the distance between the tearing blade and the second sensor is less than or equal to the length of the top sheets; the duration of the label paper feed is determined based on the initial position of the label paper's top sheet detected by the second sensor; controlling the label paper return until a second preset condition is met, then controlling the label paper to be output, and starting printing on the top sheets based on the printing line.
[0048] In one embodiment, controlling the label paper feed based on the second sensor to align the upper seam of the label paper's top sheet with the first position where the tearing blade is located includes: controlling the label paper to exit the paper based on the second sensor; when the second sensor detects a first edge of the top sheet, controlling the label paper to stop exiting the paper; the first edge is perpendicular to the paper exit direction; controlling the label paper to return the paper until the second edge of the top sheet aligns with the second position where the printing line is located, controlling the label paper to stop returning the paper; the second edge is perpendicular to the paper exit direction, and the second edge is different from the first edge; controlling the label paper to exit the paper until the upper seam of the label paper's top sheet aligns with the first position where the tearing blade is located.
[0049] In one embodiment, controlling the label paper to stop feeding when the second sensor detects the first edge of the face paper includes: controlling the label paper to stop feeding when the second sensor switches from detecting the face paper of the label paper to detecting the back paper corresponding to the gap of the label paper.
[0050] In one embodiment, the second sensor includes a photoelectric sensor, and the method further includes: sending an optical signal to the label paper through the second sensor and receiving a corresponding optical response value; the optical response value includes a reflection value and / or a transmission value; if the optical response value received by the second sensor changes from a first value to a second value, it is determined that the second sensor has switched from detecting the face paper of the label paper to detecting the back paper corresponding to the gap in the label paper; the first value is the optical detection response value corresponding to the face paper; the second value is the optical detection response value of the back paper corresponding to the gap.
[0051] In one embodiment, controlling the label paper to return until the second edge of the face paper aligns with the second position where the printed line is located, and then controlling the label paper to stop returning, includes: determining a second return distance based on the distance between the second sensor and the tear blade and the length of the face paper; and controlling the label paper to return until the second edge of the face paper aligns with the second position where the printed line is located, based on the second return distance.
[0052] In one embodiment, controlling the label paper to exit the paper until the upper seam of the label paper aligns with the first position where the tearing blade is located includes: determining the paper exit distance based on the distance between the tearing blade and the printing line and the length of the seam; and controlling the label paper to exit the paper based on the paper exit distance until the upper seam of the label paper aligns with the first position where the tearing blade is located.
[0053] In one embodiment, controlling the label paper feed based on the second sensor to align the upper seam of the label paper's top sheet with the first position of the tearing blade includes: controlling the label paper to feed outwards; stopping the label paper feed when the second sensor detects the first edge of the top sheet; determining a target return distance based on the distance between the tearing blade and the second sensor, the length of the top sheet, and the length of the seam; and controlling the label paper to return to its original position based on the target return distance, so that the upper seam of the label paper's top sheet aligns with the first position of the tearing blade.
[0054] In one embodiment, the method further includes: determining a corresponding return speed based on the length of the face paper in the paper output direction; the return speed being less than or equal to a second preset speed threshold; controlling the return of the label paper based on the return speed; determining a paper output speed based on the length of the face paper and the return speed; the paper output speed being greater than the return speed; and controlling the label paper to be output based on the paper output speed.
[0055] In one embodiment, controlling the label paper to return until a second preset condition is met, then controlling the label paper to exit and starting printing on the face paper based on the printing line, includes: controlling the label paper to return until the second edge of the face paper aligns with the second position where the printing line is located, or until a preset printing position aligns with the second position where the printing line is located; the preset printing position is set on the face paper, and the preset printing position is different from the second edge; controlling the label paper to exit and starting printing on the face paper based on the printing line.
[0056] In one embodiment, before controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position of the tearing blade, the method further includes: determining the initial position of the label paper based on the second sensor; determining the corresponding paper feed duration and paper return duration based on the initial position; controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position of the tearing blade includes: controlling the label paper feed based on the paper feed duration to align the upper seam of the label paper with the first position of the tearing blade; controlling the label paper return until a second preset condition is met, then controlling the label paper to be printed out and starting printing on the face paper based on the printing line includes:
[0057] The label paper is controlled to return to the paper based on the return time until the second preset condition is met. Then, the label paper is controlled to be sent out and printing begins on the face paper based on the printing line.
[0058] In one embodiment, an information tag is provided on the label paper; before controlling the label paper feed based on the second sensor, the method further includes: reading the information tag via radio frequency identification to obtain label paper information; the label paper information includes the height of the face paper and the height of the gap; and / or, receiving the label paper information input by a user on the label printer and / or on a terminal connected to the label printer.
[0059] In one embodiment, the method further includes: recording the number of motor steps for the label paper to be sent out or returned; if the number of motor steps is greater than a second preset step threshold, issuing a paper jam warning signal; the paper jam warning signal is used to notify the user that the label printer has jammed.
[0060] In one embodiment, the above-described label paper gap positioning method is applied to a label printer, which includes a second sensor, a printing line, a first sensor, and a tearing blade arranged sequentially in the paper output direction. The method further includes: when the first sensor detects a paper tip on the label paper, determining, based on the second sensor, whether the face paper to be printed on the label paper has been peeled off from the backing paper of the label paper; the label paper includes a backing paper and multiple face papers attached to the backing paper, with a gap between each pair of adjacent face papers; controlling the label paper feed based on the peeling determination result corresponding to the face paper to be printed, so that the upper gap of the face paper to be printed on the label paper aligns with the first position where the tearing blade is located; controlling the label paper return until the preset printing position of the face paper to be printed aligns with the printing line, and then starting to print the face paper to be printed.
[0061] In one embodiment, before determining, based on the second sensor, whether the printing face paper on the label paper has peeled off from the backing paper when the first sensor detects the end of the label paper, the method further includes: controlling the label paper to return to its original position when the first sensor detects the label paper; and controlling the label paper to stop returning to its original position when the first detection result of the first sensor changes from detecting the label paper to not detecting the label paper, so that the end of the label paper is aligned with the third position where the first sensor is located.
[0062] In one embodiment, the label printer further includes a motor for driving the label paper feed; after controlling the label paper return when the first sensor detects the label paper, the method further includes: during the process where the first detection result of the first sensor is that the label paper is detected and has not changed to not detecting the label paper, determining whether the current paper return step corresponding to the motor exceeds a first preset step; if yes, controlling the label paper to perform paper output positioning so that the upper seam of the paper to be printed on the label paper is aligned with the first position where the tearing blade is located; if no, controlling the label paper to continue returning, and performing the step of controlling the label paper to stop returning when the first detection result of the first sensor changes from detecting the label paper to not detecting the label paper.
[0063] In one embodiment, before determining, based on the second sensor, whether the printing face paper on the label paper has peeled off from the backing paper when the first sensor detects the end of the label paper, the method further includes: controlling the label paper to be fed out when the first sensor does not detect the label paper; and controlling the label paper to stop feeding when the first detection result of the first sensor changes from never detecting the label paper to detecting the label paper, so that the end of the label paper is aligned with the third position where the first sensor is located.
[0064] In one embodiment, the label printer further includes a motor for driving the label paper feed; after controlling the label paper to be fed out when the first sensor does not detect the label paper, the method further includes: if the first detection result of the first sensor is that the label paper is not detected and has not changed to detect the label paper, determining whether the current paper feeding step corresponding to the motor exceeds a second preset step; if yes, issuing a target prompt message; if no, controlling the label paper to continue feeding out, and performing the step of controlling the label paper to stop feeding out when the first detection result of the first sensor changes from not detecting the label paper to detecting the label paper.
[0065] In one embodiment, the first distance between the second sensor and the first sensor is greater than the length of the paper to be printed and less than the sum of the length of the paper to be printed and the second distance; the second distance is the distance between the first sensor and the printing line; the step of determining whether the paper to be printed on the label is peeled off from the backing paper based on the second sensor when the first sensor detects the end of the label paper includes: when the first sensor detects the end of the label paper, if the second sensor detects the backing paper where the gap is located, then controlling the label paper to return to its original position; before the end of the paper returns to the second position where the printing line is located, if the second sensor detects the paper to be printed on the label paper, then determining that the paper to be printed on the label paper has not peeled off from the backing paper; before the end of the paper returns to the second position where the printing line is located, if the second sensor does not detect the paper to be printed on the label paper, then determining that the paper to be printed on the label paper has peeled off from the backing paper.
[0066] In one embodiment, controlling the label paper feed based on the peeling judgment result corresponding to the face paper to be printed, so that the upper seam of the face paper to be printed on the label paper is aligned with the first position where the tearing blade is located, includes: if the face paper to be printed is not peeled from the base paper, controlling the label paper feed so that the upper seam of the face paper to be printed on the label paper is aligned with the first position where the tearing blade is located; if the face paper to be printed is peeled from the base paper, controlling the label paper to perform paper output positioning so that the upper seam of the next face paper on the label paper is aligned with the first position where the tearing blade is located.
[0067] In one embodiment, the first distance between the second sensor and the first sensor is less than the length of the label paper to be printed; the step of determining whether the label paper to be printed on the label paper has peeled off from the backing paper of the label paper based on the second sensor when the first sensor detects the end of the label paper includes: if the second sensor detects the label paper to be printed on the label paper when the first sensor detects the end of the label paper, then it is determined that the label paper to be printed on the label paper has not peeled off from the backing paper of the label paper.
[0068] In one embodiment, the paper to be printed is the first sheet of paper on the label paper; controlling the paper feed of the label paper based on the peeling judgment result corresponding to the paper to be printed, so that the upper seam of the paper to be printed on the label paper is aligned with the first position where the tearing blade is located, includes: when the paper head is aligned with the third position where the first sensor is located and the paper to be printed has not peeled off from the backing paper, controlling the label paper to move outward by a first distance, so that the upper seam of the paper to be printed on the label paper is aligned with the first position where the tearing blade is located; the first distance is the distance between the first position where the tearing blade is located and the third position where the first sensor is located.
[0069] In one embodiment, controlling the label paper to perform paper output positioning so that the upper slit of the face paper to be printed on the label paper aligns with the first position where the tearing blade is located includes: if the second sensor detects the back paper corresponding to the slit, controlling the label paper to output paper, and after the second sensor detects the upper edge of the face paper to be printed, controlling the label paper to continue outputting paper a second distance; if the second sensor detects the face paper to be printed on the label paper, controlling the label paper to return paper, and after the second sensor detects the upper edge of the face paper to be printed, controlling the label paper to output paper a second distance; wherein, the second distance is the distance between the first position where the tearing blade is located and the fourth position where the second sensor is located.
[0070] In one embodiment, controlling the label paper to perform paper output positioning so that the upper slit of the paper to be printed on the label paper aligns with the first position where the tearing blade is located includes: if the second sensor detects the backing paper corresponding to the slit, controlling the label paper to output paper, and after the second sensor detects the upper edge of the paper to be printed, controlling the label paper to continue outputting paper a second distance; if the second sensor detects the paper to be printed on the label paper, controlling the label paper to output paper, and after the second sensor detects the backing paper corresponding to the slit, controlling the label paper to continue outputting paper until the second sensor detects the upper edge of the paper to be printed, controlling the label paper to output paper a second distance; wherein, the second distance is the distance between the first position where the tearing blade is located and the fourth position where the second sensor is located.
[0071] In one embodiment, the label printer further includes a motor for driving the label paper to feed; after the second sensor detects the backing paper corresponding to the gap and controls the label paper to be fed out, the method further includes: before the second sensor detects the upper edge of the paper to be printed, determining whether the current paper feeding step corresponding to the motor exceeds a third preset step; if so, issuing a first positioning abnormality prompt message.
[0072] In one embodiment, the label printer further includes a motor for driving the label paper to feed; after the second sensor detects the paper to be printed on the label paper and controls the label paper to return, the method further includes: before the second sensor detects the upper edge of the paper to be printed, determining whether the current paper feeding step number corresponding to the motor exceeds a fourth preset step number; if so, issuing a second positioning error message.
[0073] In one embodiment, the method further includes: upon receiving a printing instruction, responding to the printing instruction by controlling the label paper to return until the preset printing position of the paper to be printed is aligned with the printing line, and then starting to print the paper to be printed.
[0074] In one embodiment, the above-described label paper gap positioning method is applied to a label printer, which includes a second sensor, a print head, a first sensor, and a tear blade arranged sequentially in the paper output direction. The method further includes: moving the printing paper such that the sum of twice the first gap distance and the second gap distance is greater than the sum of the second interval distance and the third interval distance; moving the printing paper so that the end of the printing paper is located at the position of the first sensor; determining, based on the second sensor, whether the first face paper of the printing paper has peeled off from the bottom paper, wherein the first gap distance is the distance between adjacent face papers on the printing paper, the second gap distance is the length of the face paper on the printing paper, the second interval distance is the distance between the first sensor and the print head, and the third interval distance is the distance between the second sensor and the print head; if the first face paper has not peeled off from the bottom paper, then the first face paper is determined as the first face paper of the printing paper; moving the printing paper so that the upper edge of the first face paper is aligned with the position of the tear blade; controlling the printing paper return target preset distance to align the upper edge of the first face paper with the position of the print head; and performing printing processing using the print head based on preset printing content.
[0075] In one embodiment, moving the printing paper to position the paper head at the first sensor location includes: if the first sensor detects the printing paper, controlling the printing paper to perform a paper return movement until the first sensor no longer detects the printing paper.
[0076] In one embodiment, moving the printing paper to position the paper head at the first sensor location includes: if the first sensor does not detect the printing paper, controlling the printing paper to move outward until the first sensor detects the printing paper.
[0077] In one embodiment, determining whether the first face paper of the printing paper has peeled off from the back paper based on the second sensor includes: if the second sensor detects the back paper of the printing paper, controlling the printing paper to return at a first preset distance and determining whether the second sensor detects the face paper of the printing paper; if the second sensor detects the face paper, determining that the first face paper of the printing paper has not peeled off from the back paper.
[0078] In one embodiment, moving the printing paper to align the upper edge of the first sheet of paper with the tearing blade position includes: controlling the printing paper to move outward until the paper head is located at the first sensor position; controlling the printing paper to move outward at a first interval distance to align the upper edge of the first sheet of paper with the tearing blade position, wherein the first interval distance is the distance between the tearing blade and the first sensor.
[0079] In one embodiment, the first preset distance is a first gap distance.
[0080] In one embodiment, the first preset distance is the second interval distance.
[0081] In one embodiment, the step of controlling the paper return to a first preset distance and determining whether the second sensor has detected the paper surface if the second sensor detects the bottom paper of the printing paper includes: if the second sensor detects the bottom paper of the printing paper and the second interval distance is greater than the first gap distance, controlling the paper return to the second interval distance and determining whether the second sensor has detected the paper surface.
[0082] In one embodiment, the method further includes: if the second sensor does not detect the face paper, then determining that the first face paper of the printing paper has peeled off from the back paper.
[0083] In one embodiment, the method further includes: if the first face paper is peeled off from the back paper, controlling the printing paper to move out of the paper until the second sensor detects the upper edge of the second face paper and determines the second face paper as the first face paper of the printing paper, wherein the second face paper is the next face paper of the first face paper.
[0084] In one embodiment, moving the printing paper to align the upper edge of the first sheet of paper with the tearing blade position includes: controlling the printing paper to exit a second preset distance so that the upper edge of the first sheet of paper is aligned with the tearing blade position, wherein the second preset distance is the sum of the first interval distance and the second interval distance, minus half of the first gap distance.
[0085] In one embodiment, determining whether the first side of the printing paper has peeled off from the backing paper based on the second sensor includes: if the second sensor detects that the backing paper of the printing paper has not been detected, then determining that the first side of the printing paper has not peeled off from the backing paper.
[0086] In one embodiment, the first sensor is an optical sensor used to detect the difference in light transmittance between the printing paper and the air.
[0087] In one embodiment, the second sensor is an optical sensor used to detect the difference in light transmittance between the backing paper and the front paper of the printing paper.
[0088] In one embodiment, the target preset distance is the sum of the first interval distance and the second interval distance, minus half of the first gap distance, wherein the first interval distance is the distance between the paper tearer and the first sensor.
[0089] In one embodiment, the label printer housing is provided with a transparent viewing window, which is used by the user to view the position of the face paper of the printed paper.
[0090] In one embodiment, the above-mentioned label paper gap positioning method further includes: in response to a paper feeding positioning request for a target label paper, obtaining the number of complete face sheets in the interval distance from the second sensor to the printing line, wherein the second sensor is located upstream of the printing line in the paper output direction; determining whether the position of the second sensor is in a gap or a face sheet; and aligning the next face sheet to be printed with the printing line as a reference according to a preset paper feeding rule corresponding to the gap or the face sheet, wherein the preset paper feeding rule includes a paper feeding compensation calculation method set based on the number of face sheets.
[0091] In one embodiment, when the second sensor is located in the gap, the operation of aligning the next sheet to be printed with the printing line as a reference according to the preset paper feeding rule corresponding to the gap or the sheet includes: calculating the first paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rule corresponding to the gap; and aligning the upper edge of the next sheet to be printed in the paper output direction with the printing line according to the first paper feeding compensation distance.
[0092] In one embodiment, calculating the first paper feed compensation distance corresponding to the target label paper according to the preset paper feed rule corresponding to the gap includes: calculating the first paper feed compensation distance corresponding to the target label paper based on the interval distance, the number of face sheets, the height of the face sheets in the paper output direction, the height of the gap in the paper output direction, and the distance from the second sensor to the upper edge of the gap where the second sensor is located in the paper output direction when the current printed face sheet finishes printing.
[0093] In one embodiment, aligning the upper edge of the next paper to be printed with the printing line in the paper output direction according to the first paper feed compensation distance includes: moving the target label paper along the paper output direction by the first paper feed compensation distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the printing line.
[0094] In one embodiment, when the second sensor is positioned within the paper, the step of aligning the next sheet to be printed with the printing line as a reference according to the preset paper feeding rule corresponding to the gap or the paper includes: determining whether the second sensor detects a gap passing through during the printing process of the current sheet, and determining whether the current sheet is a single-page print; if the second sensor detects a gap passing through and the current sheet is a single-page print, calculating the second paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rule corresponding to the paper; and aligning the upper edge of the next sheet to be printed in the paper output direction with the printing line based on the second paper feeding compensation distance.
[0095] In one embodiment, calculating the second paper feed compensation distance corresponding to the target label paper according to the preset paper feed rule corresponding to the face paper includes: calculating the second paper feed compensation distance corresponding to the target label paper based on the interval distance, the number of face papers, the height of the face paper in the paper output direction, the height of the gap in the paper output direction, and the distance from the second sensor to the upper edge of the face paper where the second sensor is located in the paper output direction when the current printed face paper finishes printing.
[0096] In one embodiment, aligning the upper edge of the next paper to be printed with the printing line in the paper output direction according to the second paper feed compensation distance includes: moving the target label paper along the paper output direction by the second paper feed compensation distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the printing line.
[0097] In one embodiment, the method further includes: in response to a tearing request for the target label paper, aligning the upper edge of the next printable face paper with the print line in the paper output direction, and calculating a tearing distance corresponding to the target label paper based on the distance from the first sensor to the tearing blade in the paper output direction, the distance from the print line to the first sensor in the paper output direction, and the height of the gap in the paper output direction, wherein the print line is located upstream of the first sensor in the paper output direction, and the first sensor is located upstream of the tearing blade in the paper output direction; moving the target label paper along the paper output direction by the tearing distance, and tearing the current printable face paper from the target label paper using the tearing blade.
[0098] In one embodiment, after tearing the current printing paper from the target label paper using the paper tearer, the method further includes: moving the target label paper by the tearing distance in the opposite direction of the paper output direction until the upper edge of the next printing paper is aligned with the printing line in the paper output direction.
[0099] In one embodiment, the method further includes: when a printing task ends, generating a tear request for the target label paper, wherein the printing task includes at least one sheet of the label paper's printed content.
[0100] In one embodiment, prior to responding to a paper feeding positioning request for a target label, the method further includes: calculating the number of intact face sheets of the target label within the interval distance based on the interval distance, the height of the face sheet in the paper output direction, and the height of the gap in the paper output direction.
[0101] In one embodiment, the method further includes: when the second sensor moves in the paper or the gap, counting the number of steps of the motor; if the number of steps is greater than the preset number of steps of the motor at the corresponding position, generating a paper jam prompt message and sending the paper jam prompt message to the user.
[0102] In one embodiment, the distance from the printing line to the tearing blade in the paper output direction is greater than the height of the face paper in the paper output direction.
[0103] In one embodiment, the above-mentioned label paper gap positioning method further includes: in response to a paper feeding positioning request for the target label paper, determining whether a second sensor detects a gap passing through during the printing process of the current printing paper, wherein the second sensor is located upstream of the printing line in the paper output direction; if the second sensor does not detect a gap passing through, aligning the next printing paper with the second sensor as a reference, and aligning the next printing paper with the printing line as a reference according to a first preset paper feeding rule; if the second sensor detects a gap passing through, aligning the next printing paper with the printing line as a reference according to a second preset paper feeding rule.
[0104] In one embodiment, the second sensor not detecting the passage of a gap includes: the second sensor being located within the gap; or, the second sensor being located within the paper and not detecting the passage of a gap during the printing process of the current paper.
[0105] In one embodiment, the alignment operation of the next sheet to be printed with reference to the second sensor includes: aligning the upper edge of the next sheet to be printed with the second sensor in the paper output direction.
[0106] In one embodiment, aligning the upper edge of the next sheet to be printed with the second sensor in the paper output direction includes: moving the target label paper along the paper output direction until the second sensor detects the upper edge of the next sheet to be printed in the paper output direction.
[0107] In one embodiment, when the second sensor is positioned within the paper and the second sensor does not detect any gaps passing through during the printing process of the current paper, moving the target label paper along the paper output direction until the second sensor detects the upper edge of the next paper to be printed in the paper output direction includes: moving the target label paper along the paper output direction until the second sensor first detects the lower edge of the current paper in the paper output direction; and continuing to move the target label paper along the paper output direction until the second sensor detects the upper edge of the next paper to be printed in the paper output direction.
[0108] In one embodiment, the step of aligning the next sheet to be printed with the printing line as a reference according to the first preset paper feeding rule includes: determining the third paper feeding compensation distance corresponding to the target label paper according to the first preset paper feeding rule, and aligning the upper edge of the next sheet to be printed in the paper output direction with the printing line according to the third paper feeding compensation distance.
[0109] In one embodiment, determining the third paper feed compensation distance corresponding to the target label paper according to the first preset paper feed rule, and aligning the upper edge of the next paper to be printed with the printing line in the paper output direction based on the third paper feed compensation distance, includes: determining the third paper feed compensation distance corresponding to the target label paper based on the interval distance from the second sensor to the printing line; moving the target label paper along the paper output direction by the third paper feed compensation distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the printing line.
[0110] In one embodiment, the second sensor detects a gap passing through by: the second sensor being located within the paper, and the second sensor detecting a gap passing through during the printing process of the current paper.
[0111] In one embodiment, the step of aligning the next sheet to be printed with the printing line as a reference according to the second preset paper feeding rule includes: when the current sheet to be printed is a single sheet, calculating the fourth paper feeding compensation distance corresponding to the target label paper according to the second preset paper feeding rule, and aligning the upper edge of the next sheet to be printed with the printing line in the paper output direction according to the fourth paper feeding compensation distance.
[0112] In one embodiment, the step of calculating the fourth paper feed compensation distance corresponding to the target label paper according to the second preset paper feed rule, and aligning the upper edge of the next paper to be printed with the printing line in the paper output direction based on the fourth paper feed compensation distance, includes: calculating the fourth paper feed compensation distance corresponding to the target label paper based on the interval distance from the second sensor to the printing line, and the distance from the second sensor to the upper edge of the paper where the second sensor is located in the paper output direction when the current paper output is finished printing; moving the target label paper along the paper output direction by the fourth paper feed compensation distance until the upper edge of the next paper to be printed in the paper output direction is aligned with the printing line.
[0113] In one embodiment, the method further includes: in response to a tearing request for a target label, aligning the upper edge of the next printable sheet with the print line in the paper output direction, and calculating a tearing distance corresponding to the target label based on the distance from a first sensor to a tearing blade in the paper output direction, the distance from the print line to the first sensor in the paper output direction, and the height of the gap in the paper output direction, wherein the print line is located upstream of the first sensor in the paper output direction, and the first sensor is located upstream of the tearing blade in the paper output direction; moving the target label along the paper output direction by the tearing distance, and tearing the current printable sheet from the target label using the tearing blade.
[0114] In one embodiment, after tearing the current printing paper from the target label paper using the paper tearer, the method further includes: moving the target label paper by the tearing distance in the opposite direction of the paper output direction until the upper edge of the next printing paper is aligned with the printing line in the paper output direction.
[0115] In one embodiment, the method further includes: when the second sensor moves in the paper or the gap, counting the number of steps of the motor; if the number of steps is greater than the preset number of steps of the motor at the corresponding position, generating a paper jam prompt message and sending the paper jam prompt message to the user.
[0116] In one embodiment, the above-described label paper gap positioning method is applied to a label printer including a sensor. The method further includes: after controlling the label paper feed to complete one printing of target content on a first paper area, determining whether a first gap area is located at the position of the sensor; when it is determined that the first gap area is located at the position of the sensor, determining whether the label paper is a short label paper; when it is determined that the label paper is a short label paper, controlling the label paper feed by a first compensation distance so that the printing line of the label printer is aligned with the upper edge of a second paper area; wherein, the first compensation distance is related to the entry distance corresponding to the entry signal for the first gap area detected by the sensor.
[0117] In one embodiment, determining whether the label paper is a short label paper when determining whether the first gap area is located at the position of the sensor includes: when determining that the first gap area is located at the position of the sensor, determining whether the sum of the lengths of a single face paper area and a single gap area of the label paper is less than the distance between the sensor and the printing line; when determining that the sum of the lengths of a single face paper area and a single gap area of the label paper is less than the distance between the sensor and the printing line of the label printer, determining that the label paper is a short label paper.
[0118] In one embodiment, the first compensation distance is determined based on a first target distance, the total length of the N face paper areas and N-1 gap areas included in the first target distance, and the entry distance corresponding to the entry signal detected by the sensor for the first gap area; wherein, the first target distance is the distance between the sensor and the printing line.
[0119] In one embodiment, after controlling the label paper feed to complete one printing of the target content on the first paper area and determining whether the first gap area is located at the position of the sensor, the method further includes: when it is determined that the first gap area is not located at the position of the sensor, determining whether the detection result of the sensor during the paper feed meets a preset condition; when it is determined that the detection result of the sensor during the paper feed meets the preset condition, determining whether the label paper is a short label paper; when it is determined that the label paper is a short label paper, controlling the label paper feed a second compensation distance so that the printing line is aligned with the upper edge of the second paper area.
[0120] In one embodiment, determining whether the sensor's detection result during paper feeding meets a preset condition when it is determined that the first gap area is not located at the sensor's position includes: when it is determined that the first gap area is not located at the sensor's position, determining whether the sensor detects an in-gap signal and an out-gap signal for the second gap area during paper feeding based on the sensor's detection result; when it is determined that the sensor detects an in-gap signal and an out-gap signal for the second gap area during paper feeding, determining whether there is cross-page printing; when it is determined that the sensor detects an in-gap signal and an out-gap signal for the second gap area during printing paper feeding, and there is no cross-page printing, determining that the sensor's detection result meets the preset condition.
[0121] In one embodiment, determining whether cross-page printing exists when the sensor detects inlet and outlet signals for the second gap region during paper feeding includes: when the sensor detects inlet and outlet signals for the second gap region during paper feeding, determining whether the outlet distance for the second gap region is greater than a first target distance based on the outlet signal; wherein the first target distance is the distance between the sensor and the printing line, and the second gap region is the gap region closest to the sensor among multiple gap regions detected by the sensor during paper feeding; when it is determined that the outlet distance for the second gap region is greater than the distance between the sensor and the printing line of the label printer, it is determined that cross-page printing exists.
[0122] In one embodiment, the second compensation distance is determined based on a first target distance, the total length of the N paper gap combination regions included in the first target distance, and the seam exit distance corresponding to the seam exit signal for the second gap region; the paper gap combination region includes a paper region and a gap region, and the first target distance is the distance between the sensor and the printing line.
[0123] In one embodiment, the label printer further includes a tear blade, and the sensor and the tear blade are arranged sequentially along the paper output direction; before determining whether the first gap area is located at the position of the sensor after controlling the label paper feed to complete one printing of the target content on the first face paper area, the method further includes: in response to a printing command instructing the label printer to start a printing task, controlling the label paper feed until the lower edge of the third face paper area is aligned with the position of the sensor; controlling the label paper return by a preset return distance, and continuing to control the label paper feed by a target compensation distance, so that the tear blade is located on the third gap area; wherein the distance between the sensor and the tear blade is less than or equal to the length of the face paper area of the label paper.
[0124] In one embodiment, the sensor includes a second sensor, and the second sensor, the printing line, and the tearing blade are arranged sequentially along the paper output direction. A second target distance separates the second sensor from the printing line. Controlling the label paper return at a preset return distance and continuing to control the label paper feed at a target compensation distance to position the tearing blade on the third gap region includes: controlling the label paper return at a first target return distance to align the printing line with the upper edge of the third face paper region; wherein the preset return distance includes the first target return distance, which is the difference between the length of the third face paper region and the second target distance; continuing to control the label paper feed at a third compensation distance to position the tearing blade on the third gap region; wherein the target compensation distance includes the third compensation distance.
[0125] In one embodiment, the third compensation distance is the difference between the third target distance and the length of the first gap region with a preset weight, and the third target distance is the distance between the paper tearer and the printing line.
[0126] In one embodiment, the sensor includes a first sensor, and the printing line, the first sensor, and the tearing blade are arranged sequentially along the paper output direction. Controlling the label paper return at a preset return distance and continuing to control the label paper feed at a third compensation distance to position the tearing blade in the third gap region includes: controlling the label paper return at a second target return distance to align the upper edge of the third face paper region with the first sensor; wherein the preset return distance includes the second target return distance, which is the length of the third face paper region; and continuing to control the label paper feed at a fourth compensation distance to position the tearing blade in the third gap region; wherein the target compensation distance includes the fourth compensation distance.
[0127] In one embodiment, the fourth compensation distance is the difference between the fourth target distance and the length of the third gap region with a preset weight, and the fourth target distance is the distance between the first sensor and the paper tearer.
[0128] In one embodiment, the above-mentioned label paper gap positioning method is applied to a label printer. The label printer includes a second sensor, a print head, a first sensor, and a tear blade arranged sequentially in the paper output direction. The print head is provided with printing lines. The method further includes: driving the upper gap area of the first face paper on the printing paper to move along the paper output direction to the tear blade. The printing paper includes a base paper and multiple face papers attached to the base paper, with a gap position formed between two adjacent face papers; determining the paper head detection state of the printing paper through the first sensor; and determining the face paper peeling state of the first face paper on the printing paper based on the paper head detection state of the printing paper through the second sensor.
[0129] In one embodiment, determining the paper head detection state using a first sensor and determining the paper peeling state of the first sheet using a second sensor based on the paper head detection state includes: detecting the paper head detection state of the printing paper using the first sensor; if the paper head detection state is "paper head has appeared", then determining whether the first sheet of paper on the printing paper has peeled off from the backing paper using the second sensor; if the first sheet of paper on the printing paper has peeled off from the backing paper, then determining the paper peeling state of the first sheet of paper as "paper peeled off".
[0130] In one embodiment, after determining that the peeling state of the first sheet of paper is of the peeled type, the method further includes: updating the next sheet of paper to the first sheet of paper, and performing the step of driving the upper gap area of the first sheet of paper on the printing paper to move along the paper output direction to the tearing blade.
[0131] In one embodiment, determining the paper head detection state using a first sensor and determining the paper peeling state of the first sheet of paper using a second sensor based on the paper head detection state includes: detecting the paper head detection state of the printing paper using the first sensor; if the paper head detection state is "paper head has appeared", then determining whether a gap or the bottom paper is detected using the second sensor; if a gap or the bottom paper is detected, then driving the printing paper to move a third preset distance along the paper return direction and detecting whether the paper is present using the second sensor; if the second sensor detects the presence of the paper, then determining that the paper peeling state of the first sheet of paper on the printing paper is "paper not peeled".
[0132] In one embodiment, after determining that the first sheet of face paper on the printing paper is in the face paper unpeeled state, the method further includes: driving the printing paper to exit along the paper exit direction; after the first sensor detects the paper head, driving the printing paper to move a fourth preset distance along the paper exit direction; the fourth preset distance is used to indicate that the upper gap area of the first sheet of face paper on the printing paper moves to the tearing blade.
[0133] In one embodiment, the third preset distance is the gap distance of the slit.
[0134] In one embodiment, the fourth preset distance is the distance between the first sensor and the paper tearer.
[0135] In one embodiment, the third preset distance is the distance between the first sensor and the printing line.
[0136] In one embodiment, the third preset distance is greater than or equal to the gap distance of the slit, and the fourth preset distance is the distance between the first sensor and the paper tearer.
[0137] In one embodiment, after detecting the presence of a face sheet by the second sensor, the method further includes: if the second sensor does not detect a face sheet, determining that the face sheet peeling state of the first face sheet on the printing paper is of the face sheet peeled type, and driving the printing paper to move along the paper output direction; if the second sensor detects the upper edge position of the face sheet of the next face sheet of the first face sheet, driving the printing paper to move along the paper output direction by a fifth preset distance, the fifth preset distance being used to indicate that the upper gap area of the next face sheet reaches the tearing blade; and updating the next face sheet to the first face sheet of the printing paper.
[0138] In one embodiment, before driving the printing paper to move a fifth preset distance along the paper output direction, the method further includes: acquiring the distance between the first sensor and the paper tearer, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent face sheets on the printing paper; and determining the fifth preset distance using a calculation formula based on the distance between the first sensor and the paper tearer, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent face sheets on the printing paper.
[0139] The calculation formula is: A = B1 + B2 + B3 - H1 / 2
[0140] Wherein, B1 is the distance between the first sensor and the paper tearer, B2 is the distance between the first sensor and the printing line, B3 is the distance between the second sensor and the printing line, and H1 is the gap distance between two adjacent sheets on the printing paper.
[0141] In one embodiment, if the paper head detection state is "paper head has appeared", then determining whether the first sheet of face paper on the printing paper has been peeled off from the backing paper by the second sensor includes: if the paper head detection state is "paper head has appeared" and the second sensor does not detect any gap or the backing paper, then the face paper peeling state of the first sheet of face paper on the printing paper is determined to be "face paper not peeled off".
[0142] In one embodiment, the height of the printing paper, the gap distance between the printing papers, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor satisfy the following inequality: H2 + 2 * H1 ≥ B2 + B3
[0143] Wherein, H2 is the height of the printing paper, H1 is the gap distance between the printing papers, B2 is the distance between the first sensor and the printing line, and B3 is the distance between the printing line and the second sensor.
[0144] In one embodiment, after the upper seam area of the first sheet of paper on the driving printing paper moves along the paper output direction to the tearing blade, the method further includes: driving the upper edge of the first sheet of paper to move along the paper return direction to the printing line.
[0145] In one embodiment, after the upper edge of the first sheet of paper is driven to move along the paper return direction to the printing line, the method further includes: determining that the printing of the first sheet of paper has ended, updating the next sheet of the first sheet of paper to the first sheet of the printing paper; driving the upper edge of the first sheet of paper on the printing paper to move along the paper output direction toward the printing line, and detecting the upper edge position of the first sheet of paper on the printing paper by the second sensor; if the second sensor detects the upper edge position of the sheet of paper, driving the printing paper to move along the paper output direction by a sixth preset distance, the sixth preset distance being used to indicate that the upper edge position of the sheet of paper is aligned with the printing line.
[0146] In one embodiment, the sixth preset distance is the distance between the second sensor and the printing line.
[0147] In one embodiment, the method further includes: during the process of detecting the upper edge position of the first sheet of the printing paper by the second sensor, recording the first motor step number corresponding to the motor of the label printer when the second sensor detects the gap position or the bottom paper, and recording the second motor step number corresponding to the motor of the label printer when the second sensor detects the upper edge position of the first sheet of the printing paper; if the difference between the second motor step number and the first motor step number is greater than a preset number of steps, then issuing a paper feed fault prompt for the label printer.
[0148] Secondly, embodiments of this application provide a label paper gap positioning device, the device comprising: a size determination module, used to determine the size of the label paper's face paper and determine a preset face paper moving distance based on the face paper size; a movement control module, used to perform label paper movement processing based on the paper transport path and calculate the moving distance of the label paper based on the face paper position; a gap detection module, used to determine whether the moving distance is greater than or equal to the preset face paper moving distance and to detect whether there is a gap signal corresponding to the label paper; and a gap confirmation module, used to determine the gap position indicated by the gap signal as the actual gap position if the moving distance is greater than or equal to the preset face paper moving distance and the gap signal exists.
[0149] Thirdly, embodiments of this application provide a computer storage medium having multiple instructions adapted for loading and executing the methods described above by a processor.
[0150] Fourthly, embodiments of this application provide an electronic device, which may include: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the memory and to execute the above-described method.
[0151] The beneficial effects of the technical solutions provided in this application include at least the following:
[0152] The label paper gap positioning method provided in this application first determines the size of the label paper's face paper, then determines a preset face paper moving distance based on the face paper size. Next, the label paper is moved according to the paper transport path, and the moving distance is calculated based on the face paper position. It is then determined whether the moving distance is greater than or equal to the preset face paper moving distance, and whether a gap signal corresponding to the label paper exists. If the moving distance is greater than or equal to the preset face paper moving distance and a gap signal exists, the gap position indicated by the gap signal is determined to be the actual gap position. Thus, by monitoring the magnitude of the label paper moving distance and the preset face paper moving distance, and by monitoring the presence or absence of a gap signal, the actual gap position of the face paper can be accurately detected. This avoids the problem of false or missed gap detection caused by the unstable light transmission characteristics of the face paper when using photoelectric sensors in related technologies. This reduces printing offset and missing parts in label printing, ensuring that the label content is accurately printed on the face paper, thereby improving the printing accuracy of the label. Attached Figure Description
[0153] To more clearly illustrate the technical solutions in the embodiments of the present invention 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 the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0154] Figure 1 is a flowchart illustrating the first method for locating the gap in a label paper according to an embodiment of this application;
[0155] Figure 2 is a schematic diagram of a base paper and a face paper provided in an embodiment of this application;
[0156] Figure 3 is a schematic diagram of a gap location provided in an embodiment of this application;
[0157] Figure 4 is a flowchart illustrating the second method for locating the gap in the label paper provided in an embodiment of this application;
[0158] Figure 5 is a flowchart illustrating the third method for locating the gap in the label paper provided in the embodiments of this application;
[0159] Figure 6 is a flowchart illustrating the fourth method for locating the gap in the label paper provided in the embodiments of this application;
[0160] Figure 7 is a flowchart illustrating the fifth method for locating the gap in the label paper provided in the embodiments of this application;
[0161] Figure 8 is a flowchart illustrating the first paper jam detection method for a label printer provided in this application embodiment;
[0162] Figure 9 is a flowchart illustrating the second paper jam detection method for a label printer provided in this application embodiment;
[0163] Figure 10 is a flowchart illustrating the third paper jam detection method for a label printer provided in this application embodiment;
[0164] Figure 11 is a flowchart illustrating the fourth paper jam detection method for a label printer provided in this application embodiment;
[0165] Figure 12 is a flowchart illustrating the fifth paper jam detection method for a label printer provided in this application embodiment;
[0166] Figure 13 is a flowchart illustrating the sixth paper jam detection method for a label printer provided in this application embodiment;
[0167] Figure 14 is a flowchart illustrating the seventh paper jam detection method for a label printer provided in this application embodiment;
[0168] Figure 15 is a flowchart illustrating the eighth paper jam detection method for a label printer provided in this application embodiment;
[0169] Figure 16 is a flowchart illustrating the ninth paper jam detection method for a label printer provided in this application embodiment;
[0170] Figure 17 is a flowchart illustrating the tenth paper jam detection method for a label printer provided in this application embodiment;
[0171] Figure 18 is a schematic diagram of an application scenario for the first label paper printing method provided in the embodiments of this application;
[0172] Figure 19 is a flowchart illustrating the first label paper printing method provided in this application embodiment;
[0173] Figure 20 is a flowchart illustrating the movement to the first position in the first label paper printing method provided in the embodiments of this application;
[0174] Figure 21 is a schematic diagram of the label paper in the first label paper printing method provided in the embodiment of this application;
[0175] Figure 22 is a schematic diagram of the structural relationship of the first sensor in the first label paper printing method provided in the embodiment of this application;
[0176] Figure 23 is a flowchart illustrating an example of the second label paper printing method provided in this application embodiment.
[0177] Figure 24 is a schematic diagram of the application scenario of the third label paper printing method provided in the embodiments of this application;
[0178] Figure 25 is a flowchart illustrating the third label paper printing method provided in this application embodiment;
[0179] Figure 26 is a schematic diagram showing that the distance between the face paper and the sensor is smaller than that between the tearing knife and the sensor in the third label paper printing method provided in the embodiments of this application;
[0180] Figure 27 is a schematic diagram of the paper feeding process to the first position in the third label paper printing method provided in the embodiments of this application;
[0181] Figure 28 is a schematic diagram of the upper and lower edges in the third label paper printing method provided in the embodiments of this application;
[0182] Figure 29 is a schematic diagram of the label paper in the third label paper printing method provided in the embodiment of this application;
[0183] Figure 30 is a schematic diagram of the structural relationship of the second sensor in the third label paper printing method provided in the embodiment of this application;
[0184] Figure 31 is a flowchart illustrating an example of the fourth label paper printing method provided in this application embodiment;
[0185] Figure 32 is a schematic diagram of the structural relationship of a label printer provided in an exemplary embodiment of this application;
[0186] Figure 33 is a flowchart illustrating a first label printer control method provided in an exemplary embodiment of this application;
[0187] Figure 34 is a schematic diagram of a process for determining whether the face paper to be printed on the label paper is peeled off from the backing paper of the label paper, according to an exemplary embodiment of this application;
[0188] Figure 35 is a flowchart illustrating a second label printer control method provided in an exemplary embodiment of this application;
[0189] Figure 36 is a schematic diagram illustrating an example of a sensor structure relationship provided in an embodiment of this application;
[0190] Figure 37 is a flowchart illustrating a paper return positioning method provided in an embodiment of this application;
[0191] Figure 38 is a schematic diagram illustrating an example of printing conditions provided in an embodiment of this application;
[0192] Figure 39 is a schematic flowchart of a first paper peel detection method provided in an embodiment of this application;
[0193] Figure 40 is a schematic diagram of the process of aligning the first sheet of paper according to an embodiment of this application;
[0194] Figure 41 is an exemplary system architecture diagram of the first label paper feeding and positioning method provided in the embodiments of this application;
[0195] Figure 42 is a schematic flowchart of the first label paper feeding and positioning method provided in the embodiments of this application;
[0196] Figure 43 is a schematic diagram of the components of the label printer in the first label paper feeding and positioning method provided in the embodiments of this application;
[0197] Figure 44 is a schematic diagram of the structural relationship of the sensors in the label printer in the first label paper feeding and positioning method provided in the embodiments of this application;
[0198] Figure 45 is a schematic flowchart of the second label paper feeding and positioning method provided in the embodiments of this application;
[0199] Figure 46 is a schematic diagram of the first principle of the second label paper feeding and positioning method provided in the embodiments of this application;
[0200] Figure 47 is a schematic diagram of the second principle of the second label paper feeding and positioning method provided in the embodiments of this application;
[0201] Figure 48 is a flowchart illustrating the third label paper feeding and positioning method provided in the embodiments of this application;
[0202] Figure 49 is a schematic diagram of the first principle of the third label paper feeding and positioning method provided in the embodiments of this application;
[0203] Figure 50 is a schematic diagram of the second principle of the third label paper feeding and positioning method provided in the embodiments of this application;
[0204] Figure 51 is an exemplary system architecture diagram of the fourth label paper feeding and positioning method provided in the embodiments of this application;
[0205] Figure 52 is a flowchart illustrating the fourth label paper feeding and positioning method provided in the embodiments of this application;
[0206] Figure 53 is a schematic diagram of the structural relationship of the sensors in the label printer in the fourth label paper feeding and positioning method provided in the embodiments of this application;
[0207] Figure 54 is a flowchart illustrating the fifth label paper feeding and positioning method provided in the embodiments of this application;
[0208] Figure 55 is a schematic diagram of the first principle of the fifth label paper feeding and positioning method provided in the embodiments of this application;
[0209] Figure 56 is a schematic diagram of the second principle of the fifth label paper feeding and positioning method provided in the embodiments of this application;
[0210] Figure 57 is a schematic diagram of the third principle of the fifth label paper feeding and positioning method provided in the embodiments of this application;
[0211] Figure 58 is a schematic diagram of the fourth principle of the fifth label paper feeding and positioning method provided in the embodiments of this application;
[0212] Figure 59 is a flowchart illustrating the sixth label paper feeding and positioning method provided in the embodiments of this application;
[0213] Figure 60 is a flowchart illustrating the seventh label paper feeding and positioning method provided in the embodiments of this application;
[0214] Figure 61 is a flowchart illustrating the first printing control method provided in an embodiment of this application;
[0215] Figure 62 is a schematic diagram of a scenario for the first printing control method provided in an embodiment of this application;
[0216] Figure 63 is a flowchart illustrating the second printing control method provided in an embodiment of this application;
[0217] Figure 64 is a schematic diagram of a scenario for the second printing control method provided in an embodiment of this application;
[0218] Figure 65 is a flowchart illustrating the third printing control method provided in the embodiments of this application;
[0219] Figure 66 is a schematic diagram of a scenario where the distance between the sensor and the paper tearer provided in the embodiment of this application is greater than the length of the face paper area of the label.
[0220] Figure 67 is a flowchart illustrating the fourth printing control method provided in the embodiments of this application;
[0221] Figure 68 is a schematic diagram of a scenario for the fourth printing control method provided in the embodiments of this application;
[0222] Figure 69 is a flowchart illustrating the fifth printing control method provided in this application embodiment;
[0223] Figure 70 is a schematic diagram of a scenario for the fifth printing control method provided in the embodiments of this application;
[0224] Figure 71 is a flowchart illustrating the sixth printing control method provided in this application embodiment;
[0225] Figure 72 is a schematic diagram of the sensor structure relationship in the label printer in the sixth printing control method provided in the embodiments of this application;
[0226] Figure 73 is a schematic diagram of the first type of distance distribution of the sensor, printing line and the gap between the face paper in the printing paper provided in the embodiment of this application;
[0227] Figure 74 is a schematic diagram of a second distance distribution of the sensor, printing line and the gap between the face paper in the printing paper provided in the embodiment of this application;
[0228] Figure 75 is a structural schematic diagram of a label paper gap positioning device provided in an embodiment of this application;
[0229] Figure 76 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0230] To make the inventive objectives, features, and advantages of the embodiments of this application more apparent and understandable, 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.
[0231] 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.
[0232] In one embodiment, as shown in Figure 1, a first method for locating label paper gaps is proposed. This method can be implemented using a computer program and can run on a label paper gap positioning device based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application.
[0233] Specifically, the first method for locating the gaps in the label paper includes:
[0234] S101, Determine the label paper's face paper size, and determine the preset face paper movement distance based on the face paper size.
[0235] Label paper refers to the consumables used by label printers to print various label contents, such as text, numbers, images, one-dimensional barcodes, two-dimensional barcodes, etc.
[0236] Label paper typically consists of three parts: release liner (backing paper), face paper, and adhesive. The release liner has an oily surface, which acts as a barrier against the adhesive, ensuring that the face paper can be easily peeled off from the backing paper. Face paper comes in various materials, including coated paper, thermal paper, PET, and PVC, each with its specific application scenarios and characteristics. Label paper is wound onto a spool, which is then installed inside a label printer for printing the label content.
[0237] The face paper size refers to the dimensions of the face paper in the paper output direction. Specifically, the face paper size can be the face paper height or the face paper width. When the face paper height is the face paper dimension in the paper output direction, the face paper width can be the face paper dimension in the vertical direction of the paper output direction. When the face paper width is the face paper dimension in the paper output direction, the face paper height can be the face paper dimension in the vertical direction of the paper output direction.
[0238] The preset tissue paper movement distance refers to a fixed distance value set based on the tissue paper size.
[0239] In some embodiments, after receiving a print command from a user terminal, the label printer can obtain the label paper size, set the paper size value as a preset paper movement distance value, and set the unit of the paper size to the unit of the preset paper movement distance. For example, if the paper size is 30 mm, the preset paper movement distance is also set to 30 mm.
[0240] S102, perform label paper movement processing based on the paper transport path, and calculate the movement distance of the label paper based on the position of the label paper's face paper.
[0241] As is understandable, the paper transport path refers to the preset paper path within the label printer, where the label paper can be transported or moved. The paper transport path has a specific paper transport direction, and the label paper moves along the paper transport path in accordance with the paper transport direction.
[0242] The face paper position can be understood as a reference position used to calculate the moving distance of the label paper. Specifically, the beginning position of the face paper can be configured as the face paper position, or the beginning position of the back paper can be configured as the face paper position. For example, see the schematic diagram of the back paper and face paper shown in Figure 2. In Figure 2, the width of the back paper is aa and the height is ab, and the beginning position of the back paper is the top edge of the back paper. The width of the face paper is aa and the height is ac, and the beginning position of the face paper is the top edge of the face paper. As shown in Figure 2, when ab is greater than ac, after the face paper and back paper are glued together, the beginning position of the face paper does not coincide with the bottom beginning position, but the bottom edge of the face paper coincides with the bottom edge of the back paper. At this time, the beginning position of the face paper and the beginning position of the back paper are not the same position. When ab and ac are equal (not shown in Figure 2), after the face paper and the back paper are glued together, the beginning position of the face paper coincides with the beginning position of the bottom, and the bottom edge of the face paper coincides with the bottom edge of the back paper. At this time, the beginning position of the face paper and the beginning position of the back paper are the same.
[0243] The travel distance refers to the total distance the label paper travels along the paper transport path from the moment it begins to move until the current moment.
[0244] In some embodiments, label paper movement based on the paper transport path can be understood as the label printer controlling the movement of the label paper along the paper transport path via a transmission mechanism. Specifically, the transmission mechanism may include several key components, such as a feed roller, a guide roller, a drive belt, a stepper motor, a tension controller, a photoelectric sensor, etc.
[0245] Calculating the label paper's movement distance based on the label paper's face paper position can be understood as follows: during the process of controlling the label paper's movement, determine the moment when the gap detector detects the face paper's position, detect the total number of movement steps of the label paper after that moment, and determine the label paper's movement distance based on this total number of movement steps.
[0246] S103, determine whether the moving distance is greater than or equal to the preset paper moving distance, and detect whether there is a gap signal corresponding to the label paper.
[0247] It is understood that, as can be seen from step S103, the tissue paper position can be either the beginning position of the tissue paper or the beginning position of the backing paper. For ease of description, in the scenario where the beginning position of the backing paper is configured as the tissue paper position, the preset tissue paper movement distance is recorded as the first preset movement distance. In the scenario where the beginning position of the tissue paper is configured as the tissue paper position, the preset tissue paper movement distance is recorded as the second preset movement distance. When the beginning position of the tissue paper and the beginning position of the backing paper are the same, the first preset movement distance is equal to the second preset movement distance. When the beginning position of the tissue paper and the beginning position of the backing paper are different, the first preset movement distance is greater than the second preset movement distance.
[0248] Specifically, the detection of the presence of a gap signal corresponding to the label paper can be implemented as follows: A gap detection sensor detects the light transmittance of the label paper, obtains a preset gap detection threshold, and determines whether the light transmittance is less than the preset threshold. If the light transmittance is less than the preset threshold, a gap signal corresponding to the label paper exists; if the light transmittance is greater than or equal to the preset threshold, no gap signal corresponding to the label paper exists. The preset gap detection threshold can be set according to the light transmittance characteristics of the label paper. Different types of label paper have different light transmittance characteristics, so different preset gap detection thresholds can be set for different types of label paper to improve the detection accuracy of the gap signal. Optionally, the gap detection sensor can be a photoelectric sensor.
[0249] S104, if the moving distance is greater than or equal to the preset paper moving distance and there is a gap signal, then the gap position indicated by the gap signal is determined to be the actual gap position.
[0250] The actual gap location refers to the actual gap location at the joint of the two sheets of paper.
[0251] It is understandable that if both conditions are met simultaneously—the moving distance is greater than or equal to the preset tissue paper moving distance, and a gap signal exists—the gap position indicated by the gap signal will be confirmed as the actual gap position. However, if either of these two conditions is met, or if neither condition is met, the gap position indicated by the gap signal will not be confirmed as the actual gap position. For example, if the moving distance is greater than or equal to the preset tissue paper moving distance but no gap signal exists, the gap position indicated by the gap signal will not be confirmed as the actual gap position. Similarly, if the moving distance is less than the preset tissue paper moving distance but a gap signal exists, the gap position indicated by the gap signal will not be confirmed as the actual gap position. Again, if the moving distance is less than the preset tissue paper moving distance but no gap signal exists, the gap position indicated by the gap signal will not be confirmed as the actual gap position.
[0252] Understandably, if the moving distance is greater than or equal to the preset sheet movement distance, it means that the label's movement distance along the paper transport path is greater than or equal to the sheet's dimension in the output direction. At this point, or subsequently, as the label continues to move, the actual gap position of the label will be detected. Therefore, if both the moving distance is greater than or equal to the preset sheet movement distance and a gap signal exists, it can be confirmed that the gap position indicated by the gap signal is the actual gap position, rather than a false gap position detected due to dirt on the label.
[0253] For example, see Figure 3, which illustrates a gap location. In Figure 3, the black rectangle represents the gap, the two white rectangles separated by the black rectangle represent the face paper, and the black curved frame represents the dirt on the label. When the light transmittance at the dirt location detected by the gap detection sensor is less than the preset gap detection threshold, the existence of a first gap signal can be confirmed. When the light transmittance at the gap location detected by the gap detection sensor is less than the preset gap detection threshold, the existence of a second gap signal can also be confirmed. Obviously, when the first gap signal is detected, the moving distance is less than the preset face paper moving distance, and the gap location indicated by the first gap signal is not the actual gap location. However, when the second gap signal is detected, the moving distance is greater than or equal to the preset face paper moving distance, and the gap location indicated by the second gap signal is the actual gap location.
[0254] In the first label paper gap positioning method provided in this application embodiment, the size of the label paper's face paper is first determined, and a preset face paper moving distance is determined based on the face paper size. Then, the label paper is moved based on the paper transport path, and the moving distance of the label paper is calculated based on the face paper position. It is determined whether the moving distance is greater than or equal to the preset face paper moving distance, and whether a gap signal corresponding to the label paper exists. If the moving distance is greater than or equal to the preset face paper moving distance and a gap signal exists, the gap position indicated by the gap signal is determined to be the actual gap position. In this way, by monitoring the magnitude of the label paper moving distance and the preset face paper moving distance, and by monitoring the presence or absence of a gap signal, the actual gap position of the face paper can be accurately detected. This avoids the problem of false detection and missed detection of gaps caused by the unstable light transmission characteristics of the face paper detected by photoelectric sensors in related technologies. This reduces the problem of printing offset and missing parts in label printing, enabling the label content to be accurately printed on the face paper and improving the printing accuracy of label printing.
[0255] Please refer to Figure 4, which is a flowchart illustrating a second method for locating the gap in the label paper according to an embodiment of this application. Specifically, the second method for locating the gap in the label paper includes:
[0256] S401 uses an RFID module to identify the RFID chip integrated within the label paper roll to obtain the label paper's face paper size.
[0257] Understandably, the RFID module is installed inside the label printer to read the label paper's face size from the RFID chip. During the label paper production process, the RFID chip can be integrated into the roll, and the face size of the label paper wound on that roll can be written into the chip.
[0258] Specifically, after the label printer receives the printing command sent by the user terminal, it can read the face paper size of the label paper from the RFID chip inside the label paper roll through the RFID module.
[0259] S402, receive the label paper parameter transmission instruction sent by the user terminal, and obtain the label paper face paper size from the label paper parameter transmission instruction.
[0260] In some embodiments, after the label printer receives a print instruction sent by the user terminal, it can send a label paper parameter query instruction to the user terminal. In response to the label paper parameter query instruction, the user terminal generates a label paper parameter transmission instruction including the face paper size of the label paper. The user terminal sends the label paper parameter transmission instruction to the label printer, and the label printer parses the label paper parameter transmission instruction to obtain the face paper size of the label paper.
[0261] In some other embodiments, the label printer simultaneously receives a print command and a label paper parameter transmission command sent by the user terminal. In response to the print command, the label printer parses the label paper parameter transmission command to obtain the label paper face size.
[0262] S403, determine the label paper face stock type, and determine the label paper face stock size based on the face stock type.
[0263] Specifically, the label printer can store a mapping relationship between label paper type and label paper size. This mapping relationship can include at least one reference label paper type and its corresponding reference size. The label printer can be equipped with an RFID module, and an RFID chip can be integrated within the label paper roll. This RFID chip stores the label paper type. The label printer reads the label paper type from the RFID chip via the RFID module and queries the mapping relationship for the corresponding label paper size.
[0264] It is understood that steps S401, S402, and S403 are three implementation methods for determining the face paper size of the label paper. When performing the label paper gap positioning method of this application, any one of steps S401, S402, and S403 can be selected to obtain the face paper size of the label paper.
[0265] S404, determine the preset face paper movement distance based on the face paper size.
[0266] Specifically, the implementation of step S404 can be found in the description of the relevant parts in the embodiment shown in Figure 1, and will not be detailed here.
[0267] S405 controls the movement of the label paper based on the paper transport path and determines the first moment when the gap detection sensor detects the beginning position of the face paper.
[0268] The starting position of the face paper is the top edge of the face paper in the paper feeding direction. The specific paper feeding direction can be seen in the schematic diagram shown in Figure 3, which will not be described in detail here.
[0269] Specifically, label paper movement based on the paper transport path can be understood as the label printer controlling the movement of the label paper along the paper transport path through a transmission mechanism. This transmission mechanism can include several key components, such as feed rollers, guide rollers, drive belts, stepper motors, tension controllers, photoelectric sensors, etc.
[0270] The method for determining the first moment when the gap detection sensor detects the beginning position of the label paper can be as follows: Obtain a preset gap detection threshold; detect the light transmittance of the label paper using the gap detection sensor; determine the moment when the light transmittance first exceeds the preset gap detection threshold; and use this moment as the first moment when the beginning position of the label paper is detected. It can be understood that since the light transmittance values at gap and non-gap positions on the label paper differ, by comparing the preset gap detection threshold with the light transmittance value, it can be determined whether the label paper position detected by the gap sensor is a gap position. When the light transmittance value is greater than or equal to the preset gap detection threshold, it can be confirmed that the label paper position detected by the gap detection sensor is a non-gap position; when the light transmittance value is less than the preset gap detection threshold, it can be confirmed that the label paper position detected by the gap detection sensor is a gap position. As the label paper moves along the paper transport path, the gap detection sensor can continuously detect the light transmittance at the position of the label paper passing through the gap sensor. When the label paper passes through the gap sensor at the gap position, the gap detection sensor can detect that the light transmittance at the gap position is less than the preset gap detection threshold. However, after the label paper passes through the gap sensor, the gap detection sensor can detect that the light transmittance at the position of the label paper is greater than the preset gap detection threshold. The beginning position of the face paper is the end position of the face paper that is immediately adjacent to the gap position. Therefore, the beginning position of the face paper is the position where the gap detection sensor detects the first light transmittance value that is greater than the preset gap detection threshold.
[0271] It is understandable that the above-mentioned method of taking the moment when the light transmittance first exceeds the preset gap detection threshold as the first moment of detecting the beginning position of the face paper can be implemented in a scenario where the beginning position of the face paper coincides with the beginning position of the back paper. However, in a scenario where the beginning positions of the face paper and the back paper do not coincide, the light transmittance values of the face paper and the back paper may be different, and the light transmittance value of the face paper may be less than that of the back paper. Therefore, the implementation method for determining the first moment when the gap detection sensor detects the beginning position of the face paper can be: obtaining a preset gap detection threshold, obtaining a first preset gap detection threshold, the first preset gap detection threshold being greater than the preset gap detection threshold, detecting the light transmittance value of the label paper through the gap detection sensor, determining the moment when the light transmittance first exceeds the preset gap detection threshold and is less than the first preset gap detection threshold, and taking the moment when the light transmittance first exceeds the preset gap detection threshold and is less than the first preset gap detection threshold as the first moment of detecting the beginning position of the face paper.
[0272] S406, monitor the total number of steps the label has moved after the first moment, and determine the distance the label has moved based on the total number of steps.
[0273] Specifically, the implementation method of step S406 can be as follows: continuously detect the total number of steps the label has moved after the first moment, obtain the preset moving step length, and calculate the product of the preset moving step length and the total number of moving steps to obtain the moving distance of the label.
[0274] S407, determine whether the moving distance is greater than or equal to the preset paper moving distance, and obtain the target material type of the label paper. Determine the gap detection threshold corresponding to the target material type from the preset gap detection mapping relationship, and use the gap detection threshold to detect whether there is a gap signal corresponding to the label paper.
[0275] In some embodiments, obtaining the target material type of the label paper may include the following steps: S407-1: Identifying the RFID chip integrated in the label paper roll using the RFID module to obtain the target material type of the label paper; or, S407-2: Receiving a label paper parameter transmission instruction sent by a user terminal and obtaining the target material type of the label paper from the label paper parameter transmission instruction; or, S407-3: Determining the label paper face paper model and determining the target material type of the label paper based on the face paper model.
[0276] When performing step S407-1, the following can be done: After the label printer receives the printing instruction sent by the user terminal, it reads the target material type of the label paper from the RFID chip inside the label paper roll through the RFID module.
[0277] When performing step S407-2, it can be as follows: After the label printer receives the print command sent by the user terminal, it can send a label paper parameter query command to the user terminal. The user terminal, in response to the label paper parameter query command, generates a label paper parameter transmission command including the target material type of the label paper. The user terminal sends the label paper parameter transmission command to the label printer, and the label printer parses the label paper parameter transmission command to obtain the target material type of the label paper. Alternatively, step S407-2 can also be performed as follows: The label printer simultaneously receives both the print command and the label paper parameter transmission command sent by the user terminal. In response to the print command, the label printer parses the label paper parameter transmission command to obtain the target material type of the label paper.
[0278] During step S407-3, the label printer can store a mapping relationship between label paper type and material type. This mapping relationship can include at least one reference label paper type and a corresponding reference material type for each reference label paper type. The label printer can be equipped with an RFID module, and an RFID chip can be integrated within the label paper roll. The RFID chip can store the label paper type. The label printer reads the label paper type from the RFID chip via the RFID module and then queries the mapping relationship to find the target material type corresponding to that label paper type.
[0279] Understandably, the label printer can store preset gap detection mapping relationships. These preset mapping relationships include at least one reference material type and a corresponding reference gap detection threshold for each reference material type. The reference gap detection threshold for each reference material type can be set according to the light transmission characteristics of the label paper for each reference material type. Within the preset gap detection mapping relationship, the printer queries the reference gap detection threshold corresponding to the target material type when the reference material type is the target material type, and uses this reference gap detection threshold as the gap detection threshold for the target material type.
[0280] Specifically, the method of detecting whether there is a gap signal corresponding to the label paper by using a gap detection threshold can be implemented as follows: the light transmittance of the label paper is detected by a gap detection sensor, and it is determined whether the light transmittance is less than the gap detection threshold. If the light transmittance is less than the preset gap detection threshold, then there is a gap signal corresponding to the label paper. If the light transmittance is greater than or equal to the preset gap detection threshold, then there is no gap signal corresponding to the label paper.
[0281] S408, if the moving distance is greater than or equal to the preset paper moving distance and a gap signal exists, then the gap position indicated by the gap signal is determined to be the actual gap position.
[0282] Specifically, the implementation of step S408 can be found in the description of the relevant parts in the embodiment shown in Figure 1, and will not be detailed here.
[0283] S409 performs label paper movement processing based on the paper transport path. When the actual gap position matches the sensor position corresponding to the gap detection sensor, the label paper is printed.
[0284] Specifically, the label paper movement based on the paper transport path can be understood as continuing to control the label paper to move along the paper transport path via a transmission mechanism. When the actual gap position matches the sensor position corresponding to the gap detection sensor, the label paper is printed. This can be understood as detecting whether the actual gap position is the end gap position corresponding to the preset paper movement distance. If the actual gap position is the end gap position corresponding to the preset paper movement distance, then it is determined that the actual gap position matches the sensor position corresponding to the gap detection sensor, and the label paper is printed. The end gap position corresponding to the preset paper movement distance refers to the last actual gap position detected by the gap detection sensor during the time period when the label paper's movement distance is greater than or equal to the preset paper movement distance, from the detection of one paper start position to the next. Because there is a certain width between any two face sheets in the label paper, during the movement of the label paper, within a time period when the moving distance of the label paper is greater than or equal to the preset moving distance of the face sheets, the gap detection sensor may detect multiple gap signals. This allows the determination of multiple actual gap positions indicated by multiple gap signals. When the last actual gap position is detected, it means that the actual gap position corresponding to the current face sheet has completely passed the sensor position corresponding to the gap detection sensor, indicating that the movement processing of the current face sheet has been completed, and the printing task for the content of the current face sheet can be started.
[0285] S410, after the printer is paused, performs label paper retraction based on the paper transport path and locates the beginning position of the label paper's face paper using a gap detection sensor.
[0286] In some embodiments, after the printer is paused, the label paper can be controlled to retract in the opposite direction of the paper transport path via a transmission mechanism, and the opening position of the label paper's face sheet can be repositioned by a gap detection sensor to ensure the accuracy of the detected face sheet opening position. The implementation method of locating or detecting the opening position of the label paper's face sheet using a gap detection sensor can be found in the description of the relevant part in step S405, and will not be detailed here.
[0287] In the second label paper gap positioning method provided in this application embodiment, the RFID module identifies the RFID chip integrated in the label paper roll to obtain the label paper's face paper size. Alternatively, it receives a label paper parameter transmission command sent by a user terminal, obtains the label paper's face paper size from the command, determines the label paper's face paper model, and determines the face paper size based on the face paper model. Thus, this application provides multiple methods for obtaining the face paper size, increasing the convenience of obtaining the face paper size. Then, a preset face paper movement distance is determined based on the face paper size. The label paper movement is controlled based on the paper transport path, and the first moment when the gap detection sensor detects the beginning position of the face paper is determined. The total number of movement steps of the label paper after the first moment is monitored, and the movement distance of the label paper is determined based on the total number of movement steps. It is then determined whether the movement distance is greater than or equal to the preset face paper movement distance, and the target material type of the label paper is obtained. A gap detection threshold corresponding to the target material type is determined from a preset gap detection mapping relationship, and the gap detection threshold is used. The system detects whether a gap signal exists corresponding to the label paper. If the moving distance is greater than or equal to the preset paper moving distance and a gap signal exists, the gap position indicated by the gap signal is determined as the actual gap position. Thus, multiple corresponding gap detection thresholds are set for different types of label paper, improving the accuracy of detecting gap signals for different materials. Next, the label paper is moved according to the paper transport path. When the actual gap position matches the sensor position corresponding to the gap detection sensor, the label paper is printed. This ensures that the printed content is accurately printed on the paper after the actual gap position has completely passed the sensor position corresponding to the gap detection sensor. Subsequently, when the printer is paused, the label paper is retracted according to the paper transport path. The gap detection sensor locates the beginning position of the label paper's surface. This retraction process ensures the accuracy of detecting the beginning position of the surface. In summary, this application, by monitoring the distance the label paper moves relative to the preset distance the face paper moves, and by monitoring for gap signals, can accurately detect the actual gap position of the face paper. This avoids the problems of false detection and missed detection of gaps caused by the unstable light transmission characteristics of the face paper when using photoelectric sensors in related technologies. As a result, it can reduce printing offset and missing parts in label printing, and ensure that the label content is accurately printed on the face paper, thus improving the printing accuracy of label printing.
[0288] Please refer to Figure 5, which is a flowchart illustrating a third method for locating the gap in the label paper according to an embodiment of this application. Specifically, the third method for locating the gap in the label paper includes:
[0289] S501, determine the size of the label paper's face sheet, and determine the preset face sheet movement distance based on the face sheet size.
[0290] S502, the label paper is moved based on the paper transport path, and the moving distance of the label paper is calculated based on the position of the label paper's face paper.
[0291] Specifically, the implementation of steps S501-S502 can be found in the description of the relevant parts in the embodiment shown in Figure 1, and will not be detailed here.
[0292] S503, determine whether the moving distance is greater than or equal to the preset paper moving distance.
[0293] S504, if the moving distance is greater than or equal to the preset paper moving distance, start detecting whether there is a gap signal corresponding to the label paper.
[0294] S505, if a gap signal corresponding to the label is detected, the gap position indicated by the gap signal is determined to be the actual gap position.
[0295] Specifically, after calculating the label paper's movement distance, it is first determined whether the movement distance is greater than or equal to the preset face paper movement distance. If the movement distance is greater than or equal to the preset face paper movement distance, the detection of whether a gap signal corresponding to the label paper exists begins. When a gap signal corresponding to the label paper is detected, the gap position indicated by the gap signal can be determined as the actual gap position. The specific implementation method for detecting whether a gap signal corresponding to the label paper exists can be found in the description of the relevant parts in the embodiment shown in Figure 1, and will not be detailed here.
[0296] S506, if no gap signal corresponding to the label paper is found after the moving distance is greater than or equal to the preset paper moving distance, then stop executing the step of controlling the label paper movement based on the paper transport path, and / or issue a preset alarm.
[0297] Specifically, if there is no corresponding gap signal for the label paper after the moving distance is greater than or equal to the preset paper moving distance, it can be understood that the value of the moving distance of the label paper on the paper transport path is greater than or equal to the value of the paper size in the paper output direction, and no corresponding gap signal for the label paper is detected. This indicates that the label printer may be malfunctioning and is not suitable to continue the current printing task. The step of controlling the label paper movement based on the paper transport path can be stopped, and / or a preset alarm can be issued to remind the user that the printer is malfunctioning.
[0298] In the third label paper gap positioning method provided in this application embodiment, by first determining that the moving distance is greater than or equal to a preset face paper moving distance, and then starting to detect whether there is a gap signal corresponding to the label paper when the moving distance is greater than or equal to the preset face paper moving distance, the data processing load of the label printer's processor can be reduced, thereby reducing the power consumption of the label printer. In addition, by monitoring the magnitude of the label paper moving distance and the preset face paper moving distance, and monitoring the presence or absence of gap signals, the actual gap position of the face paper can be accurately detected, avoiding the gap misdetection and missed detection problems caused by the unstable light transmission characteristics of the face paper detected by photoelectric sensors in related technologies. This can reduce the problems of printing offset and missing parts in label printing, and ensure that the label content is accurately printed on the face paper, improving the printing accuracy of label printing. By monitoring the magnitude of the label paper moving distance and the preset face paper moving distance, and monitoring the presence or absence of gap signals, it is also possible to detect whether the printer is malfunctioning. When a malfunction occurs (i.e., after the moving distance is greater than or equal to the preset face paper moving distance, there is no gap signal corresponding to the label paper), corresponding measures can be taken to avoid printing incorrect content in the event of a malfunction.
[0299] Please refer to Figure 6, which is a flowchart illustrating a fourth method for locating label paper gaps according to an embodiment of this application. Specifically, this fourth method for locating label paper gaps includes:
[0300] S601, determine the size of the label paper's face sheet, and determine the preset face sheet movement distance based on the face sheet size.
[0301] S602, the label paper is moved based on the paper transport path, and the moving distance of the label paper is calculated based on the position of the label paper's face paper.
[0302] Specifically, the implementation of steps S601-S602 can be found in the relevant descriptions in the embodiment shown in Figure 1, and will not be detailed here.
[0303] S603, determine whether the moving distance is greater than or equal to the preset paper moving distance, and start detecting whether there is a gap signal corresponding to the label paper.
[0304] S604, if the moving distance is greater than or equal to the preset paper moving distance, and a gap signal exists, then the gap position indicated by the gap signal is determined to be the actual gap position.
[0305] Specifically, after calculating the label paper's movement distance, it is determined whether the movement distance is greater than or equal to the preset face paper movement distance. Simultaneously, the system begins detecting whether a gap signal corresponding to the label paper exists. When the movement distance is greater than or equal to the preset face paper movement distance, and a gap signal corresponding to the label paper exists, the gap position indicated by the gap signal can be determined as the actual gap position. The specific implementation method for detecting the existence of a gap signal corresponding to the label paper can be found in the description of the relevant parts in the embodiment shown in Figure 1, and will not be detailed here.
[0306] S605, if no gap signal corresponding to the label paper is found after the moving distance is greater than or equal to the preset paper moving distance, then stop executing the step of controlling the label paper movement based on the paper transport path, and / or issue a preset alarm.
[0307] Specifically, if there is no corresponding gap signal for the label paper after the moving distance is greater than or equal to the preset paper moving distance, it can be understood that the value of the moving distance of the label paper on the paper transport path is greater than or equal to the value of the paper size in the paper output direction, and no corresponding gap signal for the label paper is detected. This indicates that the label printer may be malfunctioning and is not suitable to continue the current printing task. The step of controlling the label paper movement based on the paper transport path can be stopped, and / or a preset alarm can be issued to remind the user that the printer is malfunctioning.
[0308] It is understandable that, since the detection of the presence of a gap signal corresponding to the label paper begins simultaneously with determining whether the moving distance is greater than or equal to the preset moving distance of the face paper, a gap signal corresponding to the label paper may be detected during the process of the label paper moving along the paper transport path and the moving distance being less than the preset moving distance of the face paper. The detection of a gap signal during this process can be considered a false detection, and therefore the gap signal can be ignored.
[0309] In the fourth label paper gap positioning method provided in this application embodiment, the magnitude of the moving distance, the preset moving distance of the face paper, and the presence or absence of a gap signal corresponding to the label paper are simultaneously monitored. This ensures that the actual gap position is detected as early as possible and guarantees the accuracy of the actual gap position detection. It avoids the problem of false detection and missed detection of gaps caused by the unstable light transmission characteristics of the face paper when using photoelectric sensors in related technologies. This reduces printing offset and missing parts in label printing, allowing the label content to be accurately printed on the face paper, thus improving the printing accuracy of label printing. By monitoring the magnitude of the label paper moving distance and the preset moving distance of the face paper, as well as monitoring the presence or absence of a gap signal, it is also possible to detect whether the printer is malfunctioning. When a malfunction occurs (i.e., after the moving distance is greater than or equal to the preset moving distance of the face paper, there is no gap signal corresponding to the label paper), corresponding measures can be taken to avoid printing incorrect content in the event of a malfunction.
[0310] Please refer to Figure 7, which is a flowchart illustrating a fifth method for locating the gap in the label paper according to an embodiment of this application. Specifically, this fifth method for locating the gap in the label paper includes:
[0311] S701, determine the size of the label paper's face sheet, and determine the preset face sheet movement distance based on the face sheet size.
[0312] S702, performs label paper movement processing based on the paper transport path, and calculates the movement distance of the label paper based on the position of the label paper's face paper.
[0313] Specifically, the implementation of steps S701-S702 can be found in the description of the relevant parts in the embodiment shown in Figure 1, and will not be detailed here.
[0314] S703 detects whether there is a gap signal corresponding to the label paper.
[0315] S704 If a gap signal corresponding to the label paper is detected, determine whether the moving distance is greater than or equal to the preset paper moving distance.
[0316] S705, if the moving distance is greater than or equal to the preset paper moving distance, then the gap position indicated by the gap signal is determined to be the actual gap position.
[0317] Specifically, after calculating the label paper's movement distance, the system begins detecting whether a gap signal corresponding to the label paper exists. If a gap signal is detected, it then determines whether the movement distance is greater than or equal to a preset sheet paper movement distance. Furthermore, if the movement distance is greater than or equal to the preset sheet paper movement distance, the gap position indicated by the gap signal can be confirmed as the actual gap position. The specific implementation of detecting the existence of a gap signal corresponding to the label paper can be found in the description of the relevant parts in the embodiment shown in Figure 1, and will not be detailed here.
[0318] S706, if the moving distance is less than the preset paper moving distance, the gap signal is ignored.
[0319] Specifically, after executing step S706, the process can return to executing step S702: controlling the label paper movement based on the paper transport path and calculating the movement distance of the label paper based on the position of the label paper's face paper.
[0320] Understandably, when a gap signal corresponding to the label paper is detected, if the moving distance is less than the preset face paper moving distance, it means that the gap signal is not an actual gap signal and can be considered a false detection. In this case, the gap signal can be ignored, and the label paper can continue to be controlled to move along the paper transport path. The moving distance of the label paper can continue to be calculated. That is, the steps of controlling the label paper to move based on the paper transport path and calculating the moving distance of the label paper based on the face paper position can continue to be executed.
[0321] In the fifth label paper gap positioning method provided in this application, the presence or absence of a gap signal corresponding to the label paper is first detected. Then, when a gap signal is detected, the magnitude of the moving distance and the preset face paper moving distance are determined. This reduces the data processing load of the label printer's processor, thereby reducing the power consumption of the label printer. In addition, by monitoring the magnitude of the label paper moving distance and the preset face paper moving distance, as well as monitoring the presence or absence of a gap signal, the actual gap position of the face paper can be accurately detected. This avoids the problem of false detection and missed detection of gaps caused by the unstable light transmission characteristics of the face paper detected by photoelectric sensors in related technologies. This reduces the problem of printing offset and missing parts in label printing, and ensures that the label content is accurately printed on the face paper, thus improving the printing accuracy of label printing.
[0322] The following describes the paper jam detection methods for a first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, and tenth label printers included in the label paper gap positioning method provided in an exemplary embodiment of this application.
[0323] In one embodiment, as shown in Figure 8, a first paper jam detection method for a label printer is proposed. Specifically, the first paper jam detection method for a label printer includes:
[0324] S801 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0325] As is understandable, label paper refers to the consumables used by label printers to print various label contents, such as text, numbers, images, one-dimensional barcodes, two-dimensional barcodes, etc.
[0326] It's understandable that the motor could be a stepper motor installed in a label printer to drive the label paper movement. The number of steps the motor takes can be understood as the cumulative number of rotations the motor makes while driving the label paper. For example, if at the first moment the motor is driving the label paper movement, and the cumulative rotation count is 2, then the motor's total movement steps are 2. If at the second moment, after the first moment, the cumulative rotation count is 5, then the motor's total movement steps are 5.
[0327] In some embodiments, step S801 can be performed by: monitoring the cumulative number of rotations of the motor while the label paper is moved by the motor, and determining the cumulative number of rotations of the motor as the number of steps the motor moves.
[0328] S802, determine the target moving distance of the label paper based on the number of moving steps.
[0329] It is understandable that the target movement distance refers to the total distance the label paper moves in a preset direction during the process of being driven by a motor. This preset direction can be a pre-defined paper transport direction within the label printer. The motor drives the label paper to move along this paper transport direction, allowing the label printer to print content on the label paper.
[0330] In some embodiments, step S802 may specifically involve: determining the conversion ratio between the number of steps the motor moves and the distance the label paper moves, and determining the target moving distance based on the number of steps and the conversion ratio.
[0331] Understandably, different conversion ratios can be set for label sheets with different face paper sizes. Label printers can determine the conversion ratio that matches the face paper size by identifying it. The face paper size refers to the dimensions of the face paper in the output direction. In practice, the face paper size can have different names, such as face paper height or face paper width. When the face paper height is the dimension of the face paper in the output direction, the face paper width can be the dimension of the face paper perpendicular to the output direction. Conversely, when the face paper width is the dimension of the face paper in the output direction, the face paper height can be the dimension of the face paper perpendicular to the output direction.
[0332] S803, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine the gap detection result, and determine the paper jam detection result based on the gap detection result.
[0333] In some embodiments, when the target moving distance is greater than or equal to a preset detection distance threshold, the gap detection result can be determined by whether an in-gap signal or an out-gap signal for the label paper gap is detected. When the gap detection result is a gap type, the paper jam detection result without paper jam can be determined, and when the gap detection result is a seamless type, the paper jam detection result with paper jam can be determined.
[0334] Understandably, a gap detection result (with gaps) indicates that an inlet or outlet signal was detected for the label paper gap. This means the label paper is moving normally and there is no paper jam, thus generating a no-jam detection result. Conversely, a gap detection result (without gaps) indicates that no inlet or outlet signal was detected for the label paper gap. This means that although the label paper is moving, no relevant gap signal (inlet or outlet signal) was detected, confirming an anomaly in the label paper's movement and the presence of a paper jam, thus generating a jam detection result.
[0335] S804 If the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0336] In some embodiments, the paper jam notification operation may include an audible notification operation and / or a visual notification operation. Specifically, an audible notification operation may be an operation that outputs a paper jam error notification sound. A visual notification operation may include an operation that controls an indicator light to flash, an operation that controls a display screen to display a preset pattern, or an operation that controls a display screen to display preset text.
[0337] In the first paper jam detection method for a label printer provided in this application embodiment, when the label paper is moved by a motor, the number of motor steps is monitored to determine the target moving distance of the label paper. If the target moving distance is greater than or equal to a preset detection distance threshold, a gap detection result is determined, and a paper jam detection result is determined based on the gap detection result. If the paper jam detection result indicates a paper jam, a paper jam alert operation is performed. Therefore, by using both the motor's movement steps and the gap detection result to jointly determine whether a paper jam has occurred, the problem of missed paper jams due to sensor misjudgment can be avoided, ensuring the accuracy and reliability of paper jam detection. Furthermore, after detecting a paper jam, the paper jam alert operation promptly reminds the user to pay attention to the paper jam problem of the label printer.
[0338] Please refer to Figure 9, which is a flowchart illustrating a second paper jam detection method for a label printer according to an embodiment of this application. Specifically, the second paper jam detection method for a label printer includes:
[0339] S901 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0340] S902, determine the target moving distance of the label paper based on the number of moving steps.
[0341] Specifically, the implementation of steps S901-S902 can be found in the description of the relevant parts in the embodiment shown in Figure 8, and will not be detailed here.
[0342] S903, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine whether the gap detection sensor has detected an in-gap signal or an out-gap signal for the gap in the label paper.
[0343] In some embodiments, step S903 can specifically be: when the target moving distance is greater than or equal to a preset detection distance threshold, start the step of determining whether the gap detection sensor detects an in-gap signal or an out-gap signal for the gap in the label paper.
[0344] It's understandable that the label gap refers to the portion of the backing paper between two adjacent sheets of the label. A gap detection sensor can detect the light transmittance of the label and compare it to a preset gap detection threshold to determine if the sensor has detected a gap signal. In some types of label paper, the light transmittance of the label gap is greater than the preset gap detection threshold, while the light transmittance of the backing paper is less than the threshold; conversely, in other types of label paper, the light transmittance of the label gap is less than the threshold, while the light transmittance of the backing paper is greater than the threshold.
[0345] In one implementation, it can be defined that when the light transmittance of the label paper is less than a preset gap detection threshold, a gap signal for the gap in the label paper is detected. Determining whether the gap detection sensor has detected an entry signal for the gap in the label paper can be done by: continuously detecting the light transmittance of the label paper within a preset time period using the gap detection sensor, obtaining the preset gap detection threshold, and confirming that the gap detection sensor has detected an entry signal for the gap in the label paper when the light transmittance changes from being greater than the preset gap detection threshold to being less than the preset gap detection threshold. Determining whether the gap detection sensor has detected an exit signal for the gap in the label paper can be done by: continuously detecting the light transmittance of the label paper within a preset time period using the gap detection sensor, obtaining the preset gap detection threshold, and confirming that the gap detection sensor has detected an exit signal for the gap in the label paper when the light transmittance changes from being less than the preset gap detection threshold to being greater than the preset gap detection threshold.
[0346] In another implementation, it can be defined that when the light transmittance of the label paper is greater than a preset gap detection threshold, a gap signal for the label paper gap is detected. Then, determining whether the gap detection sensor has detected an entry signal for the label paper gap can be done by: continuously detecting the light transmittance of the label paper within a preset time period using the gap detection sensor, obtaining the preset gap detection threshold, and confirming that the gap detection sensor has detected an entry signal for the label paper gap when the light transmittance changes from less than the preset gap detection threshold to greater than the preset gap detection threshold. Determining whether the gap detection sensor has detected an exit signal for the label paper gap can be done by: continuously detecting the light transmittance of the label paper within a preset time period using the gap detection sensor, obtaining the preset gap detection threshold, and confirming that the gap detection sensor has detected an exit signal for the label paper gap when the light transmittance changes from greater than the preset gap detection threshold to less than the preset gap detection threshold.
[0347] S904 If an inlet or outlet signal is detected, a gap detection result with gap type is generated.
[0348] In some embodiments, if an inlet or outlet signal is detected, it indicates that the gap detection sensor has detected a gap signal, and a gap detection result with gap type can be generated.
[0349] S905: If no seam entry signal is detected and no seam exit signal is detected, a seam detection result of the seamless type is generated.
[0350] In some embodiments, when no inlet signal is detected and no outlet signal is detected, it indicates that the gap detection sensor has not detected a gap signal, and a gap detection result of the seamless type can be generated.
[0351] S906, determine the paper jam detection result based on the gap detection result.
[0352] S907, if the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0353] Specifically, the implementation methods of steps S906 and S907 can be found in the description of the relevant parts in the embodiment shown in Figure 8, and will not be detailed here.
[0354] In the second paper jam detection method for a label printer provided in this application embodiment, when the label paper is moved by a motor, the number of motor steps is monitored, and the target moving distance of the label paper is determined based on the number of steps. If the target moving distance is greater than or equal to a preset detection distance threshold, it is determined whether the gap detection sensor detects an in-gap signal or an out-of-gap signal for the gap in the label paper. If an in-gap signal or an out-of-gap signal is detected, a gap detection result with a gap is generated. If neither an in-gap signal nor an out-of-gap signal is detected, a gap detection result without a gap is generated. The paper jam detection result is determined based on the gap detection result. If the paper jam detection result is a paper jam type, a paper jam prompt operation is performed. Thus, by using the number of motor steps and the results of the in-gap signal or out-of-gap signal detected by the sensor to jointly determine whether the label paper has a paper jam problem, the paper jam missed detection caused by sensor misjudgment can be avoided, ensuring the accuracy and reliability of paper jam detection. Furthermore, after a paper jam problem is detected, the paper jam prompt operation is performed to promptly remind the user to pay attention to the paper jam problem of the label printer.
[0355] Please refer to Figure 10, which is a flowchart illustrating a third paper jam detection method for a label printer according to an embodiment of this application. Specifically, the third paper jam detection method for a label printer includes:
[0356] S1001 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0357] S1002, determine the target moving distance of the label paper based on the number of moving steps.
[0358] S1003, if the target movement distance is greater than or equal to the preset detection distance threshold, then the gap detection result is determined.
[0359] Specifically, the implementation of steps S1001-S1003 can be found in the description of the relevant parts in the embodiment shown in Figure 8, and will not be detailed here.
[0360] S1004, if the gap detection result is a seamless type, then a paper jam detection result with paper jam type is generated.
[0361] In some embodiments, when the gap detection result is a seamless type, since the label paper has moved a distance that has reached a preset distance threshold, but no gap signal has been detected, it indicates that the label paper has a paper jam abnormality, and a paper jam detection result with a paper jam type can be generated.
[0362] S1005, if the gap detection result indicates a gap type, then determine the risk level of the paper jam corresponding to the label paper.
[0363] In some embodiments, when the gap detection result indicates that there is a gap, considering that a gap signal will still be detected if there is a wrinkled paper jam, in order to avoid missing the detection of wrinkled paper jams, a step of determining the paper jam risk level corresponding to the label paper is performed.
[0364] In one implementation, determining the risk level of the paper jam corresponding to the label paper may specifically include the following steps:
[0365] S1005-1: Obtain the material type and paper size of the label paper, and obtain the printing environment parameters; wherein, the printing environment parameters include at least one of the printing environment temperature and printing environment humidity;
[0366] S1005-2: The paper jam risk assessment model is used to detect paper jam risks based on material type, paper size and printing environment parameters to obtain the paper jam risk level of the label paper.
[0367] In step S1005-1, the material type of the label paper can include, but is not limited to, paper label paper, synthetic material label paper, self-adhesive label paper, thermal label paper, etc. Paper dimensions include face paper width, face paper height, and paper thickness. Printing ambient temperature refers to the temperature of the environment in which the label printer is located, and printing ambient humidity refers to the humidity of the environment in which the label printer is located.
[0368] During step S1005-1, the label printer can identify the RFID chip built into the label paper roll using its RFID module to obtain the label paper's material type and size. The label printer can collect printing environment parameters, such as printing ambient temperature and humidity, using its built-in temperature and humidity sensors. Alternatively, if the label printer has a built-in temperature sensor but no humidity sensor, it can send an ambient humidity query command to the server after receiving the print command and receive the printing ambient humidity information from the server based on that command. The label printer can also collect the printing ambient temperature using its built-in temperature sensor. Alternatively, if the label printer is not equipped with either a temperature sensor or a humidity sensor, it can send an environmental parameter query command to the server after receiving the print command and then receive the printing ambient temperature and humidity information from the server based on that command.
[0369] During step S1005-2, the label printer locally stores a pre-trained paper jam risk assessment model. The label printer uses this model to detect paper jam risks based on material type, paper size, and printing environment parameters to obtain the corresponding paper jam risk level for the label paper. Understandably, a higher paper jam risk level indicates a higher risk of paper jams, and vice versa. Material type, paper size, and printing environment parameters are influencing factors that cause paper jams. For example, certain types of label paper have a higher probability of causing paper jams, and therefore, their corresponding paper jam risk level is likely to be higher. Similarly, certain paper sizes have a higher probability of causing paper jams, and their corresponding paper jam risk level is likely to be higher. Furthermore, certain temperature and humidity conditions increase the probability of paper jams, and therefore, the corresponding paper jam risk level is likely to be higher for these types of label paper.
[0370] S1006 If the paper jam risk level is greater than or equal to the preset risk level, the camera will capture an image of the moving label paper, and the image of the moving label paper will be processed to detect paper jams and wrinkles to obtain the paper jam detection result.
[0371] It is understandable that a label paper movement image refers to an image captured inside the label printer when the label paper is moved a certain distance by a motor, resulting in a portion of the label paper being in an unfolded state, before any content is printed on that unfolded portion. It is also understandable that the unfolded portion of the label paper can be understood as the portion of the label paper located within the printing area of the paper transport path inside the label printer.
[0372] In some embodiments, when the paper jam risk level is greater than or equal to a preset risk level, the camera is activated to capture images of the label paper movement. An image detection model is then used to process the image of the moving label paper to detect paper jams with wrinkles, resulting in a paper jam detection result. The paper jam detection result can include two types of detection results: paper jam with wrinkles and paper jam without wrinkles. It is understood that the image detection model can be pre-trained and stored locally on the label printer.
[0373] S1007, if the paper jam detection result is that there is a paper jam type, then generate a paper jam detection result with paper jam type.
[0374] S1008, if the paper jam detection result is a paper jam without wrinkles, then generate a paper jam detection result for the paper jam without wrinkles type.
[0375] S1009, if the paper jam risk level is lower than the preset risk level, then generate a paper jam detection result of the no-paper-jam type.
[0376] In step S1009, if the paper jam risk level is less than the preset risk level, it means that the probability of the label paper being jammed is small according to the paper jam risk detection model. In this case, there is no need to start the camera to collect the image of the label paper in the paper jam state to detect whether there is a wrinkled paper jam. The paper jam detection result without paper jam type can be directly generated.
[0377] S1010 If the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0378] Specifically, the implementation of step S1010 can be found in the description of the relevant parts in the embodiment shown in Figure 8, and will not be detailed here.
[0379] In the third paper jam detection method for a label printer provided in this application embodiment, when the label paper is moved by a motor, the number of movement steps of the motor is monitored, and the target movement distance of the label paper is determined based on the number of movement steps. If the target movement distance is greater than or equal to a preset detection distance threshold, a gap detection result is determined. If the gap detection result is a seamless type, a paper jam detection result with a paper jam type is generated. If the gap detection result is a gap type, the paper jam risk level corresponding to the label paper is determined. If the paper jam risk level is greater than or equal to a preset risk level, a label paper movement image is acquired through a camera. For example, the image of the moving label paper is processed to detect paper jams and wrinkles. When a gap signal is detected, the detection sensitivity is adjusted according to the paper jam risk level. The detection sensitivity is increased only when the paper jam risk level exceeds a preset level. This means that the camera captures the image of the moving label paper and detects the presence of wrinkled paper jams. If the detection result indicates a wrinkled paper jam, a paper jam detection result is generated. If the paper jam risk level is below the preset level, the detection sensitivity remains unchanged, directly generating a no-paper-jam detection result. Therefore, by adaptively adjusting the detection sensitivity, the accuracy of paper jam detection results can be further guaranteed. At the same time, activating the camera to capture images only when necessary saves energy. Afterwards, if the paper jam detection result indicates a paper jam, a paper jam alert is executed. Thus, after a paper jam is detected, the user is promptly alerted to the paper jam problem in the label printer.
[0380] Please refer to Figure 11, which is a flowchart illustrating the fourth paper jam detection method for a label printer provided in this application embodiment. Specifically, the fourth paper jam detection method for a label printer includes:
[0381] S1101 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0382] Specifically, the implementation of step S1101 can be found in the relevant description in the embodiment shown in Figure 8, and will not be detailed here.
[0383] S1102, determine the anti-counterfeiting features corresponding to the label paper, and perform anti-counterfeiting identification processing based on the anti-counterfeiting features to obtain the anti-counterfeiting identification result of the label paper.
[0384] As is understandable, anti-counterfeiting features refer to the characteristic information used to identify whether a label is genuine. Specifically, anti-counterfeiting features can be serial identification codes, and can also include production dates and batch numbers.
[0385] In some embodiments, the label printer can use an RFID module to identify the RFID chip built into the label paper roll to obtain the serial identification code of the label paper. The serial identification code is identified as the anti-counterfeiting feature of the label paper. If the anti-counterfeiting feature is found in the anti-counterfeiting database, it means that the label paper is genuine and an anti-counterfeiting identification result of genuine product type can be generated. If the anti-counterfeiting feature is not found in the anti-counterfeiting database, it means that the label paper is counterfeit and an anti-counterfeiting identification result of counterfeit product type can be generated.
[0386] In some embodiments, the label printer can use an RFID module to identify the RFID chip built into the label roll to obtain the production date and batch number of the label paper. The production date and batch number are combined to obtain a target identification code. A preset hash algorithm is used to perform hash calculation on the target identification code to obtain a target hash value. The reference hash value corresponding to the production date and batch number is queried in a preset database. When the reference hash value is equal to the target hash value, it indicates that the label paper is genuine, and a genuine anti-counterfeiting identification result can be generated. When the reference hash value is not equal to the target hash value, it indicates that the label paper is counterfeit, and a counterfeit anti-counterfeiting identification result can be generated.
[0387] S1103 If the anti-counterfeiting identification result is a counterfeit product, then perform the anti-counterfeiting anomaly prompt operation.
[0388] In some embodiments, performing the anti-counterfeiting anomaly alert operation may include at least one of the following: outputting a preset anti-counterfeiting anomaly alert sound; controlling an indicator light to flash according to a preset anti-counterfeiting anomaly color, or controlling the anti-counterfeiting anomaly indicator light to flash; displaying a preset anti-counterfeiting anomaly pattern on a display screen; or displaying a preset anti-counterfeiting anomaly alert text on a display screen.
[0389] S1104 If the anti-counterfeiting identification result is a genuine product, then cancel the anti-counterfeiting anomaly prompt operation.
[0390] In some embodiments, when the anti-counterfeiting identification result is a genuine product, it is not necessary to perform the anti-counterfeiting anomaly prompt operation.
[0391] S1105, determine the target moving distance of the label paper based on the number of moving steps.
[0392] S1106, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine the gap detection result, and determine the paper jam detection result based on the gap detection result.
[0393] Specifically, the implementation of steps S1105-S1106 can be found in the relevant descriptions in the embodiment shown in Figure 8, and will not be detailed here.
[0394] S1107 If the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0395] In some embodiments, performing a paper jam warning operation includes at least one of the following steps:
[0396] S1107-1: Output preset paper jam error warning sound;
[0397] S1107-2: Control the flashing of the preset paper jam abnormality indicator light;
[0398] S1107-3: Display a preset card pattern on the screen;
[0399] S1107-4: Display preset paper jam warning text on the screen.
[0400] In step S1107-1, the preset paper jam error prompt sound can be a preset paper jam error music, or it can be a paper jam error prompt voice output based on a real human voice or a virtual human voice.
[0401] In step S1107-2, the preset paper jam error indicator light can be a specially configured indicator light in the label printer used to indicate paper jam errors.
[0402] In step S1107-3, a preset card pattern can be continuously displayed on the display screen for a first preset duration.
[0403] In step S1107-4, a preset paper jam prompt text can be continuously displayed on the display screen for a second preset duration.
[0404] In the fourth paper jam detection method for label printers provided in this application embodiment, before detecting paper jams through motor step count and gap detection results, the anti-counterfeiting features corresponding to the label paper are first determined. Anti-counterfeiting identification processing is performed based on these features to obtain the anti-counterfeiting identification result. If the anti-counterfeiting identification result indicates a counterfeit product, an anti-counterfeiting anomaly warning is issued; if the result indicates a genuine product, the warning is canceled. This achieves multi-functional collaboration between paper jam detection and anti-counterfeiting detection. While ensuring the accuracy of paper jam detection, it promptly reminds the user that the currently used label paper is counterfeit, thus preventing mechanical malfunctions caused by counterfeit label paper.
[0405] Please refer to Figure 12, which is a flowchart illustrating the fifth paper jam detection method for a label printer provided in this application embodiment. Specifically, the fifth paper jam detection method for a label printer includes:
[0406] S1201 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0407] S1202, determine the target moving distance of the label paper based on the number of moving steps.
[0408] S1203, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine the gap detection result, and determine the paper jam detection result based on the gap detection result.
[0409] S1204 If the paper jam detection result indicates a paper jam, then perform the paper jam prompt operation.
[0410] Specifically, the implementation methods of steps S1201-S1204 can be found in the description of the relevant parts in the implementation shown in Figure 8, and will not be elaborated here.
[0411] S1205 controls the motor to rotate a preset number of steps in the opposite direction to the label paper's movement direction.
[0412] In some embodiments, the preset number of steps can be set based on expert experience. After performing a paper jam warning operation, the preset number of steps is controlled to rotate the motor in the opposite direction of the label paper movement to attempt to clear the paper jam, increasing the intelligence of the label printer.
[0413] In the fifth paper jam detection method for label printers provided in this application, the number of motor movement steps and the gap detection results are used to jointly determine whether a paper jam has occurred. This avoids the problem of missed paper jams caused by sensor misjudgment, ensuring the accuracy and reliability of paper jam detection. After detecting a paper jam, a paper jam prompt operation is executed to promptly remind the user to pay attention to the paper jam problem of the label printer. In addition, after determining that a paper jam has occurred, the motor is controlled to rotate in reverse for a preset number of steps to attempt to clear the paper jam, which increases the intelligence of the label printer, reduces manual intervention, and improves the user's printing experience.
[0414] Please refer to Figure 13, which is a flowchart illustrating the sixth paper jam detection method for a label printer provided in this application embodiment. Specifically, the sixth paper jam detection method for a label printer includes:
[0415] S1301 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0416] S1302, determine the target moving distance of the label paper based on the number of moving steps.
[0417] S1303, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine the gap detection result, and determine the paper jam detection result based on the gap detection result.
[0418] S1304 If the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0419] Specifically, the implementation methods of steps S1301-S1304 can be found in the description of the relevant parts in the implementation shown in Figure 8, and will not be elaborated here.
[0420] S1305, stop the label printing task, obtain the unprinted content corresponding to the label printing task, and save the unprinted content to the memory.
[0421] In step S1305, the process of obtaining the unprinted content corresponding to the label printing task is performed. Specifically, this may involve obtaining the printing task identifier of the label printing task, obtaining the printing queue corresponding to the printing task identifier, and querying the unprinted content from the printing queue.
[0422] In step S1305, the memory can be non-volatile memory. During the process of saving unprinted content to the memory, the unprinted content can be saved in the memory in a preset format.
[0423] In the sixth paper jam detection method for label printers provided in this application, the number of motor movement steps and the gap detection results are used to jointly determine whether the label paper has a paper jam problem. This can avoid the problem of missed paper jams caused by sensor misjudgment, ensuring the accuracy and reliability of paper jam detection. After a paper jam problem is detected, a paper jam prompt operation is performed to promptly remind the user to pay attention to the paper jam problem of the label printer. In addition, after a paper jam is detected, the printing task is stopped and the unprinted content is stored to prevent data loss and reduce consumable waste.
[0424] Please refer to Figure 14, which is a flowchart illustrating the seventh paper jam detection method for a label printer provided in this application embodiment. Specifically, the seventh paper jam detection method for a label printer includes:
[0425] S1401 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0426] S1402, determine the target moving distance of the label paper based on the number of moving steps.
[0427] S1403, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine the gap detection result, and determine the paper jam detection result based on the gap detection result.
[0428] S1404 If the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0429] Specifically, the implementation methods of steps S1401-S1404 can be found in the description of the relevant parts in the implementation shown in Figure 8, and will not be elaborated here.
[0430] S1405: Acquire an image of the label paper in a paper jam state, and determine the position of the paper jam based on the label paper image.
[0431] In step S1405, the process of capturing an image of the label paper in a paper jam state can be performed as follows: After the paper jam warning operation is executed, an image of a portion of the label paper located in the printing area along the paper transport path is captured using the camera built into the label printer, and this image is used as the label paper image. The printing area refers to the area along the paper transport path used to print the content to be printed on the label paper's face sheet.
[0432] In step S1405, determining the paper jam position based on the label image can specifically include:
[0433] S1405-1: Determine the recognition position corresponding to the gap detection sensor in the label paper image, and determine the position of the beginning of the face paper;
[0434] S1405-2: Determine the image interval distance between the recognition position and the beginning position of the label paper in the direction of label paper movement;
[0435] S1405-3: Obtain the label paper's face sheet size and the preset distance conversion ratio corresponding to the face sheet size;
[0436] S1405-4: Determine the position of the paper jam in the label paper based on the preset distance conversion ratio and image interval distance.
[0437] In step S1405-1, the image edge position in the label image located in a preset edge direction is determined as the recognition position corresponding to the gap detection sensor. For example, the preset edge direction can be the top image edge, bottom image edge, left image edge, or right image edge of the label image. The beginning position of the face paper refers to the edge position of the face paper in the current face paper of the label paper that is close to the gap connecting with the previous face paper. The previous face paper is the face paper that completed the printing content of the previous page in the current printing task. Determining the beginning position of the face paper can be specifically done by performing edge detection processing on the label image using an edge detection algorithm to obtain the beginning position of the face paper in the label image.
[0438] In step S1405-2, the image interval distance refers to the vertical distance between the identification position and the beginning position of the label image. Specifically, the label image can be placed in a preset coordinate system, the first coordinate of the first marker point in the identification position can be determined, the second coordinate of the second marker point corresponding to the beginning position of the label and the first marker point can be determined, and the image interval distance can be determined based on the first coordinate and the second coordinate.
[0439] In step S1405-3, the paper size refers to the dimensions of the paper in the output direction. During implementation, the paper size can have different names, such as paper height or paper width. When the paper height is the dimensions of the paper in the output direction, the paper width can be the dimensions of the paper in the vertical direction of the output direction; conversely, when the paper width is the dimensions of the paper in the output direction, the paper height can be the dimensions of the paper in the vertical direction of the output direction. The preset distance conversion ratio refers to the ratio used to convert the image distance in the label image to the actual distance on the label. Specifically, the preset distance conversion ratio corresponding to the paper size can be queried from the local configuration file.
[0440] In step S1405-4, the paper-on-paper distance between the recognition position and the beginning position of the face paper is determined according to the preset distance conversion ratio and image interval distance. The paper-on-paper distance is then used to determine the corresponding card position of the recognition position in the face paper of the label.
[0441] S1406, Obtain printing environment parameters and obtain the paper type of the label paper.
[0442] In step S1406, the printing environment parameters may include at least one of printing environment temperature and printing environment humidity. Specifically, the label printer can collect printing environment parameters, such as printing environment temperature and printing environment humidity, through its built-in temperature and humidity sensors. Alternatively, if the label printer has a built-in temperature sensor but no humidity sensor, it can send an environmental humidity query command to the server after receiving the print command, and then receive the printing environment humidity information from the server based on the environmental humidity query command. Additionally, the label printer can collect the printing environment temperature through its built-in temperature sensor. Alternatively, if the label printer is not equipped with either a temperature sensor or a humidity sensor, it can send an environmental parameter query command to the server after receiving the print command, and then receive the printing environment temperature and printing environment humidity information from the server based on the environmental parameter query command.
[0443] In step S1406, the label printer can use its RFID module to identify the RFID chip built into the label paper roll to obtain the paper identification information. This paper identification information can be used to query label paper parameters such as material type and size.
[0444] S1407 generates a paper jam analysis report based on paper identification, paper jam location, and printing environment parameters, and sends the paper jam analysis report to the user terminal.
[0445] In some embodiments, the label printer can generate a paper jam analysis report based on paper identification, paper jam location, and printing environment parameters. The report records relevant information about the paper jam, such as its location, the paper identification of the label that caused the jam, and the printing environment parameters at the time of the jam. The label printer can send the paper jam analysis report to a server, which then forwards it to the user terminal. Alternatively, the label printer can send the paper jam analysis report directly to the user terminal.
[0446] In some other embodiments, the label printer can send paper identification, paper jam location, and printing environment parameters to the server, and instruct the server to send a paper jam analysis report based on the paper identification, paper jam location, and printing environment parameters to the user terminal.
[0447] It is understandable that user terminals can include smart devices such as personal computers, smartphones, and smart interactive whiteboards.
[0448] In the seventh paper jam detection method for label printers provided in this application embodiment, the number of motor movement steps and gap detection results are used to jointly determine whether the label paper has a paper jam problem. This can avoid the problem of missed paper jams caused by sensor misjudgment, ensuring the accuracy and reliability of paper jam detection. After detecting a paper jam problem, a paper jam prompt operation is executed to promptly remind the user to pay attention to the paper jam problem of the label printer. In addition, after determining the paper jam, the paper jam location is determined by the image of the label paper in the paper jam state, and the printing environment and the paper identification of the label paper are obtained to generate a paper jam analysis report. The generated paper jam analysis report is sent to the user terminal, which makes it convenient for the user to optimize the printer usage environment and formulate printer maintenance strategies based on the paper jam analysis report.
[0449] Please refer to Figure 15, which is a flowchart illustrating the eighth paper jam detection method for a label printer provided in this application embodiment. Specifically, the eighth paper jam detection method for a label printer includes:
[0450] S1501 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0451] S1502, determine the target moving distance of the label paper based on the number of moving steps.
[0452] S1503, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine the gap detection result, and determine the paper jam detection result based on the gap detection result.
[0453] S1504 If the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0454] Specifically, the implementation methods of steps S1501-S1504 can be found in the description of the relevant parts in the implementation shown in Figure 8, and will not be elaborated here.
[0455] S1505 controls the printhead to stop heating.
[0456] In step S1505, after performing the paper jam warning operation, the label printer controls the printhead to stop heating to prevent the high-temperature printhead from damaging the label or causing safety hazards.
[0457] In the eighth paper jam detection method for label printers provided in this application, the number of motor movement steps and the gap detection results are used to jointly determine whether a paper jam has occurred. This avoids the problem of missed paper jams caused by sensor misjudgment, ensuring the accuracy and reliability of paper jam detection. After detecting a paper jam, a paper jam prompt operation is executed to promptly remind the user to pay attention to the paper jam problem of the label printer. In addition, after determining that a paper jam has occurred, the print head is controlled to stop heating to prevent the high temperature of the print head from damaging the label, thereby reducing consumable waste and preventing safety hazards, thus protecting user safety.
[0458] Please refer to Figure 16, which is a flowchart illustrating the ninth paper jam detection method for a label printer provided in this application embodiment. Specifically, the ninth paper jam detection method for a label printer includes:
[0459] S1601: When the label paper is detected to be loaded into the label printer for the first time, the size of the label paper surface is obtained, and a preset detection distance threshold is configured based on the size of the label paper surface.
[0460] In some embodiments, when the label paper is detected to be loaded into the label printer for the first time, the label printer can identify the RFID chip built into the label paper roll using an RFID module to obtain the label paper's face paper size. It is understood that the face paper size refers to the dimensions of the face paper in the paper output direction. In practice, the face paper size can have different names, such as face paper height or face paper width. When the face paper height is the dimension of the face paper in the paper output direction, the face paper width can be the dimension of the face paper in the vertical direction of the paper output direction; conversely, when the face paper width is the dimension of the face paper in the paper output direction, the face paper height can be the dimension of the face paper in the vertical direction of the paper output direction.
[0461] The process of configuring a preset detection distance threshold based on the paper size can be as follows: The label printer obtains a local configuration file, determines a distance configuration mapping table from the local configuration file, and queries the distance configuration mapping table for the preset detection distance threshold corresponding to each paper size. The distance configuration mapping table can store at least one paper size and the preset detection distance threshold corresponding to each paper size.
[0462] S1602 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0463] S1603, determine the target moving distance of the label paper based on the number of moving steps.
[0464] S1604, if the target movement distance is greater than or equal to the preset detection distance threshold, then determine the gap detection result, and determine the paper jam detection result based on the gap detection result.
[0465] S1605, if the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0466] Specifically, the implementation methods of steps S1602-S1605 can be found in the description of the relevant parts in the implementation shown in Figure 8, and will not be elaborated here.
[0467] In the ninth paper jam detection method for label printers provided in this application, before judging a paper jam, when the label paper is first loaded into the label printer, a preset detection distance threshold is configured based on the label paper's face paper size to adjust the distance detection threshold in the label printer that is adapted to the current label paper. This reduces human setting errors, avoids paper jam misjudgment caused by fixed preset detection distance thresholds, ensures the accuracy of subsequent paper jam detection, and promptly reminds the user to pay attention to the paper jam problem of the label printer by executing a paper jam prompt operation after detecting a paper jam problem.
[0468] Please refer to Figure 17, which is a flowchart illustrating the tenth paper jam detection method for a label printer provided in this application embodiment. Specifically, the tenth paper jam detection method for a label printer includes:
[0469] S1701: When the label paper is detected to be loaded into the label printer for the first time, the label paper's face paper size is obtained, and the movement distance conversion ratio is configured based on the face paper size.
[0470] In some embodiments, when the label paper is detected to be loaded into the label printer for the first time, the label printer can identify the RFID chip built into the label paper roll using an RFID module to obtain the label paper's face paper size. It is understood that the face paper size refers to the dimensions of the face paper in the paper output direction. In practice, the face paper size can have different names, such as face paper height or face paper width. When the face paper height is the dimension of the face paper in the paper output direction, the face paper width can be the dimension of the face paper in the vertical direction of the paper output direction; conversely, when the face paper width is the dimension of the face paper in the paper output direction, the face paper height can be the dimension of the face paper in the vertical direction of the paper output direction.
[0471] The process of configuring the travel distance conversion ratio based on the paper size can be as follows: The label printer obtains a local configuration file, determines the distance conversion mapping table from the local configuration file, and queries the distance conversion mapping table for the corresponding travel distance conversion ratio for each paper size. The distance conversion mapping table can store at least one paper size and the corresponding travel distance conversion ratio for each paper size.
[0472] S1702 monitors the number of steps the motor moves when the label paper is moved by the motor.
[0473] S1703 determines the target moving distance of the label paper based on the conversion ratio of moving steps and moving distance.
[0474] S1704 If the target movement distance is greater than or equal to the preset detection distance threshold, the gap detection result is determined, and the paper jam detection result is determined based on the gap detection result.
[0475] S1705 If the paper jam detection result indicates a paper jam, then perform a paper jam prompt operation.
[0476] Specifically, the implementation methods of steps S1702, S1704 and S1705 can be found in the description of the relevant parts in the implementation shown in Figure 8, and will not be elaborated here.
[0477] In step S1703, the number of moving steps and the moving distance conversion ratio are processed by distance conversion calculation to obtain the target moving distance of the label paper.
[0478] In the tenth paper jam detection method for label printers provided in this application, before judging a paper jam, when the label paper is first loaded into the label printer, the movement distance conversion ratio is configured according to the label paper's face size to adjust the movement distance conversion ratio in the label printer to adapt to the current label paper, reducing human setting errors. At the same time, it can calibrate the change in the ratio of the actual movement distance of the label paper to the number of motor steps caused by long-term use of the motor, so as to ensure the accuracy of subsequent paper jam detection. After detecting a paper jam problem, the user is promptly reminded to pay attention to the paper jam problem of the label printer by executing a paper jam prompt operation.
[0479] The following describes a first label printing method and a second label printing method included in the label paper gap positioning method provided in an exemplary embodiment of this application.
[0480] Referring to Figure 18, which is a schematic diagram of the application scenario of the first label paper printing method provided in the embodiment of this application, the application environment may include a label printer 1800. The label printer 1800 includes a main body, on which a print head, a first sensor, a paper tearer and a control module are provided. The print head includes a printing line, and the printing line, the first sensor and the paper tearer are arranged in sequence according to the paper output direction of the label paper.
[0481] Specifically, the label printer 1800 controls the label paper to be fed out and returned based on the first sensor, so that the upper seam of the label paper is aligned with the first position where the tear blade is located. It continues to control the label paper to return until the first preset condition is met, then controls the label paper to be fed out and starts printing on the label paper based on the printing line. The label paper includes multiple face sheets, and there is a gap between every two adjacent face sheets. The distance between the tear blade and the first sensor is less than or equal to the length of the face sheets.
[0482] In the specific implementation process, the label printer also includes a cover and a glue roller. The label paper is fed out from the cover, and the glue roller is used to hold the label paper in place. The glue roller controls the label paper to be fed out or returned by rolling or other paper feeding methods. The control module in the label printer controls the first sensor to make the glue roller drive the label paper to be fed out and returned, so that the upper seam of the label paper is aligned with the first position where the tear blade is located. The control module continues to control the glue roller to drive the label paper back until the first preset condition is met. Then, the control module controls the label paper to be fed out and starts printing on the paper based on the printing line.
[0483] The above application scenario is just an example and does not limit the application scenarios of the label printing method of this application.
[0484] Those skilled in the art will understand that label printers can be classified according to their printing principle, including thermal printers, thermal transfer printers, inkjet printers, and laser printers; according to printing type, including desktop label printers, industrial label printers, and portable label printers; according to automation level, including manual label printers, automatic label printers, and inline label printers; and according to printing content, including general label printers and special-purpose label printers, such as barcode printers, coded label printers, and ID card printers. The specific classification can be determined based on the actual application scenario requirements and is not limited here.
[0485] In some possible implementations, taking a label printer as the executing entity as an example, this application provides a first label paper printing method, as shown in the flowchart of the first label paper printing method in FIG19, which may include the following steps:
[0486] S1910, based on the first sensor, control the label paper to go out and return, so that the upper seam of the label paper is aligned with the first position where the tearing knife is located;
[0487] The label printer includes a printing line, a first sensor, and a paper tearer arranged sequentially in the paper output direction.
[0488] The label consists of multiple face sheets, with a gap between every two adjacent face sheets; the distance between the tear blade and the first sensor is less than or equal to the length of the face sheet.
[0489] The upper seam of the label paper is the seam adjacent to the label paper and far away from the label printer.
[0490] Specifically, the first sensor can detect the condition of the label paper at its location. The glue roller in the label printer controls the label paper to be fed out. After the paper has been fed to a certain position, the glue roller controls the label paper to be returned until the top seam of the label paper is aligned with the first position of the tear blade. At this point, the return and positioning of the label paper is complete. Then, the top edge of the paper is aligned with the printing line for printing. The distance from the sensor to the tear blade should not exceed the length of the shortest label to prevent the first sheet of paper from being wasted. Using the detection function of the first sensor, the paper feeding distance is small, the positioning is simple and fast, the printing waiting time is reduced, and the paper on the label paper is quickly moved to the required position, effectively improving printing efficiency.
[0491] In the actual implementation process, upon receiving a printing task, the paper is first fed forward to align the bottom edge of the label paper with the sensor. Then, the paper is fed back to align the top edge of the label paper with the sensor. Finally, the paper is fed out a certain distance to align the top seam of the label paper with the tear blade position.
[0492] In the specific implementation process, before controlling the label paper to be fed out and returned based on the first sensor so that the upper seam of the label paper is aligned with the first position of the tearing blade, it may also include: determining whether the current time is the first printing task of the label paper; if so, then performing the above paper feeding and returning steps to complete the paper positioning; if not, then determining whether the tearing blade is aligned with the seam; if so, then controlling the label paper to return so that the upper edge of the paper is aligned with the printing line to start printing; if not, then performing the above steps to complete the paper positioning.
[0493] S1920, continue to control the label paper return until the first preset condition is met, then control the label paper to be sent out and start printing on the paper opposite the printing line.
[0494] The first preset condition may include the second edge of the face paper being aligned with the second position where the print line is located, or the preset print position being aligned with the second position where the print line is located, wherein the preset print position is set on the face paper and the preset print position is different from the second edge.
[0495] Specifically, after aligning the top seam of the label paper with the tear-off blade position to complete the paper return positioning process, the label paper can be controlled to return until the first preset condition for starting printing is met. The label paper is then controlled to be ejected and printed. Positioning the label paper first and then moving it to the printing position can speed up the printing process and improve printing efficiency.
[0496] In practice, once the label paper returns to the first preset condition, the paper return stops. The preset printing speed can be obtained, and the label paper is controlled to be printed based on the preset printing speed. At this time, the paper can be printed at a constant speed, or the speed can be set according to the printing situation. For example, if the content is dense, the speed can be slowed down, and if the content is sparse, the speed can be increased. Adjusting the speed according to different printing tasks can meet different printing needs and improve the user experience.
[0497] In some possible implementations, as shown in FIG20, which is a flowchart illustrating the movement to the first position in the first label paper printing method provided in this application embodiment, the above steps, based on the first sensor, control the label paper to be outward and return, so that the upper seam of the label paper is aligned with the first position where the tear blade is located, including:
[0498] S2010, controls the label paper to be sent out;
[0499] Specifically, the user places the label paper in the preset position of the label printer, so that the glue roller can drive the label paper to be fed out or returned by rotating or other means. The printer receives the user's printing command and controls the label paper to be fed out, so that the first sensor can detect that a sheet of paper is close to the lower edge of the label printer and move it to the required position to complete the sheet paper positioning.
[0500] In practice, if the first sensor is located in the upper gap of the first sheet of paper, directly returning the paper may result in the inability to detect the sheet of paper or the label paper detaching from the glue roller. This solution first sends the paper out, which can avoid this situation, improve the accuracy of sheet paper detection, and improve the efficiency of label printing.
[0501] S2020: When the first sensor detects the first edge of the face paper, it controls the label paper to stop feeding and return;
[0502] If the label paper is a relatively regular quadrilateral, then the first edge is the bottom edge of the paper closest to the printer, and the first edge is perpendicular to the paper output direction. If the paper is other shapes, then the first edge is the edge closest to the printer.
[0503] Specifically, the first sensor detects the label paper at the corresponding position in real time during the label paper feeding process. If the first sensor detects the first edge of the face paper, that is, when the label paper at the corresponding position changes from the face paper to the bottom paper, the label paper is controlled to stop feeding and return. This can quickly determine the position of the face paper, thereby reducing waiting time and improving printing efficiency.
[0504] In the specific implementation process, the first sensor can detect whether the label paper is intact. Before controlling the label paper to be printed, the specification information of the label paper to be printed can be obtained, including the length or shape information of the label paper in the paper output direction. When the first sensor detects the first edge of the paper, the paper output stops and the paper is returned. Based on the predetermined return speed and the length of the paper, the correct return movement time can be obtained. If the return is stopped within the movement time, the paper on the label paper may be incomplete, and the problem needs to be checked or the paper needs to be replaced so that the subsequent printing process can be carried out accurately.
[0505] S2030, when the first sensor detects the second edge of the face paper, the label paper is controlled to stop returning;
[0506] The second edge is different from the first edge. If the label paper is a relatively regular quadrilateral, the second edge is the upper edge of the paper closest to the paper output direction, and the second edge is perpendicular to the paper output direction. If the paper is of other shapes, the second edge is the edge of the paper closest to the paper output direction.
[0507] Specifically, when the first sensor detects the first edge of the face paper during the label paper output process, the second edge of the face paper can be detected during the paper return process. Based on the first and second edges, the position of the face paper relative to the first sensor can be located, and then the position of the face paper relative to the tear blade or printing line can be determined. This allows for positioning of the face paper with a smaller movement length, improving the face paper positioning efficiency.
[0508] In the specific implementation process, when the first sensor detects the lower edge of the face paper during the label paper output process, the upper edge of the face paper can be detected through the paper return process. By determining the position of the lower edge and the upper edge, the position of the output face paper relative to the first sensor can be accurately determined. Outputting the paper first and then returning the paper avoids the situation where the label paper detaches from the glue roller due to direct paper return, which can reduce the occurrence of errors.
[0509] S2040, control the label paper to be pushed out until the upper seam of the label paper is aligned with the first position where the tear blade is located.
[0510] The upper gap of the face paper is the gap adjacent to the corresponding face paper and far away from the paper output port of the label printer.
[0511] Specifically, when the first sensor detects the two edges of the label sheet and determines its location, it controls the label paper to be printed out again, aligning the upper seam of the label sheet with the first position of the tear blade. Aligning the seam with the tear blade ensures that the tear blade operates precisely on the gap between the two label sheets, thus cutting the printed label completely and avoiding cutting into the label content area. If the seam is not aligned with the tear blade, the tear blade may cut into the label itself, resulting in incomplete label content or damage to the label.
[0512] In the specific implementation process, as shown in Figure 21, which is a schematic diagram of the label paper in the first label paper printing method provided in the embodiment of this application, the label printer usually uses continuous label paper, and there is a gap 2120 between each label face paper 2110. This gap is the basis for positioning the tearing knife. The tearing knife in the label printer is used to separate the printed label from the continuous label paper roll.
[0513] In the specific implementation process, as shown in Figure 22, which is a schematic diagram of the structural relationship of the first sensor in the first label paper printing method provided in the embodiment of this application, H1 is the length of the gap, H2 is the length of the face paper, L1 is the distance between the tearing blade and the first sensor, and L2 is the distance between the printing line and the first sensor. First, the paper is pushed forward so that the lower edge of the current label paper is aligned with the first sensor. Then, the paper is pushed back so that the upper edge of the current label paper is aligned with the first sensor. Finally, the paper is pushed forward by a length of L1-H1 / 2 to align the gap with the tearing blade position. Here, H1 / 2 means taking the middle position of the gap to align with the position of the tearing blade, so that the tearing blade is aligned with the middle position of the gap when cutting, avoiding cutting errors.
[0514] In some possible implementations, the step of controlling the label paper to stop feeding and return when the first sensor detects the first edge of the face paper includes: controlling the label paper to stop feeding and return when the first sensor changes from detecting the face paper of the label paper to detecting the back paper corresponding to the gap of the label paper.
[0515] Specifically, when the label paper is being dispensed, when the first sensor changes from detecting the front paper of the label paper to detecting the back paper corresponding to the gap in the label paper, it detects the first edge of the front paper and controls the label paper to stop dispensing and return. When the label paper is of different shapes, by detecting the change from the front paper to the back paper, it can be determined that the first edge of the label paper has been reached. This makes the above method applicable to different styles of label paper and more in line with user needs.
[0516] In the specific implementation process, the paper is first fed forward so that the lower edge of the current label paper is aligned with the sensor. That is, the label paper is fed forward. The first sensor determines whether it has entered the gap. If the sensor determines that it has entered the gap, that is, the sensor has just detected the gap and the transition from the label paper to the gap has occurred, then the lower edge of the current label paper is aligned with the sensor.
[0517] In some possible implementations, controlling the label paper to stop returning when the first sensor detects the second edge of the face paper in the above steps includes: controlling the label paper to stop returning when the first sensor changes from detecting the face paper of the label paper to detecting the back paper corresponding to the gap of the label paper.
[0518] Specifically, during label paper return, when the first sensor changes from detecting the front paper of the label paper to detecting the back paper corresponding to the gap in the label paper, it detects the second edge of the front paper and controls the label paper to stop returning. When the label paper is of different shapes, the first sensor can detect when it changes from the front paper to the back paper to determine that the second edge of the label paper has been reached. This makes the above method applicable to different styles of label paper and more in line with user needs.
[0519] In the specific implementation process, the paper is returned so that the top edge of the label paper is aligned with the sensor. That is, the paper is returned backward. The sensor determines whether it has entered the gap. If the sensor determines that it has entered the gap, that is, the sensor has just detected the gap and the paper transitions from the label paper to the gap, then the top edge of the label paper is aligned with the sensor.
[0520] In some possible implementations, the above method further includes: sending a light signal to the label paper through a first sensor and obtaining a corresponding light response value; if the light response value changes from a first value to a second value, then determining that the first sensor has changed from detecting the front paper of the label paper to detecting the back paper corresponding to the gap in the label paper.
[0521] The first sensor includes a photoelectric sensor.
[0522] The light response value includes reflection and / or transmission values. The first value is the light detection response value corresponding to the face paper, and the second value is the light detection response value corresponding to the back paper of the gap.
[0523] The first value can be the first interval, and the second value can be the second interval.
[0524] Specifically, the first sensor sends a light signal to the label paper and obtains the corresponding light response value. If the light response value changes from the first value to the second value, that is, from the first interval to the second interval, it is determined that the label paper detected by the first sensor has switched between the face paper and the back paper. The first value corresponds to the face paper, and the second value corresponds to the back paper. Therefore, it can be determined that the label paper at the position detected by the first sensor has switched from the face paper to the back paper. By judging the switch between the face paper and the back paper through the light response value, real-time detection can be performed, which speeds up the positioning process of the label paper face paper.
[0525] In the specific implementation process, the sensor is a photoelectric sensor, which can send light signals and receive the reflection or transmission value of the detected object. The face paper and the back paper are distinguished by the difference in the reflection or transmission value of the face paper and the back paper.
[0526] In some possible implementations, controlling the label paper to exit the paper until the upper slit of the label paper aligns with the first position where the tearing blade is located in the above steps includes: determining a target paper exit distance based on the distance between the first sensor and the tearing blade and the length of the slit; and controlling the label paper to exit the paper based on the target paper exit distance until the upper slit of the label paper aligns with the first position where the tearing blade is located.
[0527] The length of the gap is the length of the gap in the paper output direction, and the distance between the first sensor and the paper tearer is also the distance in the paper output direction.
[0528] Specifically, when the upper edge of the label paper aligns with the position of the first sensor, the target paper output distance is determined based on the distance between the first sensor and the tear blade and the length of the gap. Based on the target paper output distance, the label paper is controlled to output paper until the upper gap of the label paper aligns with the first position of the tear blade. This allows for direct paper output with a small movement distance to align the upper gap of the label paper with the first position of the tear blade, effectively improving the efficiency of label paper positioning.
[0529] In the specific implementation process, as shown in Figure 22, H1 is the length of the gap, H2 is the length of the face paper, L1 is the distance between the tearing blade and the first sensor, and L2 is the distance between the printing line and the first sensor. When the upper edge of the face paper on the label is aligned with the position of the first sensor, in order to align the middle of the upper gap of the face paper with the tearing blade, the target paper output distance L1-H1 / 2 can be determined based on the distance L1 between the first sensor and the tearing blade and the length of the gap H1. By directly outputting the target paper output distance, the upper gap of the face paper can be aligned with the first position of the tearing blade.
[0530] In some possible implementations, before determining the target paper output distance based on the distance and gap length between the first sensor and the paper cutter in the above steps, the method further includes: reading the label paper information from the second information reading device on the label paper through the first information reading device; and / or receiving the label paper information input by the user on the label printer and / or on the terminal connected to the label printer.
[0531] The label printer includes a first information reading and writing device, and a second information reading and writing device is provided on the label paper. The label paper information includes information such as the length of the face paper and the length of the gap.
[0532] The second information reading and writing device can be a chip set on the label paper.
[0533] Specifically, the label printer can read the label paper information from the second information reading device on the label paper through the first information reading and writing device on the label printer. It can also receive the label paper information entered by the user on the label printer, as well as the label paper information entered by the user on the terminal connected to the label printer. Based on the label paper information, it can obtain the label paper length and the length of the gap, which is conducive to quickly positioning the face paper and improving the label paper face paper positioning efficiency.
[0534] In the specific implementation process, the label printer includes a first information reading and writing device, and a second information reading and writing device is set on the label paper. The second information reading and writing device records the label paper information, including the gap length. After the label paper is put into the printer, the first information reading and writing device can read the label paper information in the second information reading and writing device, thereby obtaining the length of the label paper and the length of the gap.
[0535] In practice, label printers can obtain information from label paper via radio frequency identification (RFID). RFID typically includes a label and a reader. The RFID label usually contains a microchip for storing and processing data. This chip can be set on the label paper to store the label paper information, and the label printer obtains the corresponding label paper information through the RFID reader.
[0536] In practice, users can manually input information such as the length of the face paper and the gap length into the label printer or the corresponding application terminal to cover scenarios without radio frequency identification.
[0537] In some possible implementations, controlling the label paper to exit the paper until the upper seam of the label paper aligns with the first position where the tearing blade is located in the above steps includes: determining a corresponding paper exit speed based on the length of the label paper in the paper exit direction; and controlling the label paper to exit the paper based on the paper exit speed until the upper seam of the label paper aligns with the first position where the tearing blade is located.
[0538] Specifically, the corresponding paper output speed is determined based on the length of the face paper in the paper output direction. Based on the paper output speed, the label paper is controlled to be output until the upper seam of the face paper is aligned with the first position where the tear blade is located. The paper output speed is adjusted based on the length of the face paper. Too fast may cause printing deviation, while too slow will result in low printing efficiency. An appropriate paper output speed can make printing more precise and accurate, effectively improving print quality.
[0539] In the specific implementation process, a mapping table corresponding to the length of the face paper and the paper output speed can be preset. After reading the label paper information, the corresponding paper output speed can be determined based on the length of the face paper of the label paper. The paper output speed is controlled based on this paper output speed until the upper seam of the face paper of the label paper is aligned with the first position where the tearing knife is located.
[0540] In some possible implementations, the method further includes: determining a return speed based on the length of the face paper in the paper output direction and the paper output speed; and controlling the label paper return based on the return speed. The return speed is less than or equal to a first preset speed threshold.
[0541] Specifically, based on the length of the face paper in the paper output direction, the corresponding return speed is determined. The return speed should not exceed the first preset speed threshold. The return speed is limited by the threshold to prevent the label paper from detaching from the glue roller due to excessively fast return, thereby improving the accuracy of face paper positioning.
[0542] In the specific implementation process, a preset speed range can be set so that the paper return speed meets the speed range. The preset speed range can be set to 20-35mm / s. The paper return speed should not be too fast. If it is too fast, due to inertia, too much label paper may return, causing the upper edge of the label paper to return to the upstream position of the sensor, which is the position close to the label printer, thus causing inaccurate positioning.
[0543] In the specific implementation process, a mapping table corresponding to the length of the face paper and the return speed can be preset. After reading the label paper information, the corresponding return speed can be determined based on the length of the face paper of the label paper, and the return speed can be adjusted based on the first preset speed threshold and the preset speed range, thereby controlling the return of the label paper based on the return speed.
[0544] In some possible implementations, the aforementioned return paper speed is less than the output paper speed.
[0545] Specifically, when determining the return speed and output speed, it is necessary not only to meet the first preset speed threshold and other conditions, but also to ensure that the return speed is less than the output speed. This ensures that the return speed does not cause the label paper to return too quickly, resulting in the upper edge of the face paper exceeding the first sensor, while improving the efficiency of face paper positioning.
[0546] In the specific implementation process, the forward paper speed should be greater than the return paper speed during the process of paper feeding to align the first edge of the paper with the first sensor, so as to speed up the positioning efficiency while avoiding paper return too fast as much as possible.
[0547] In practice, the return speed can be determined based on the length of the face paper and / or a first preset speed threshold, and then the output speed can be determined so that the output speed is greater than the return speed, thereby improving the face paper positioning efficiency.
[0548] In some possible implementations, the steps described above, which involve controlling the label paper to move outward and return based on a first sensor so that the upper slit of the label paper's surface aligns with the first position where the tearing blade is located, include: controlling the label paper to move outward; controlling the label paper to stop moving outward when the first sensor detects the first edge of the surface paper; determining a first return distance based on the distance between the tearing blade and the first sensor, the length of the surface paper, and the length of the slit; and controlling the label paper to return based on the first return distance so that the upper slit of the label paper's surface aligns with the first position where the tearing blade is located.
[0549] Specifically, it can not only control the label paper to first exit, then return, and then exit again to position the face paper, but it can also directly return the paper a certain distance after exiting, so that the upper seam of the face paper on the label paper is aligned with the first position where the tearing blade is located. In other words, it controls the label paper to exit outwards. When the first sensor detects the first edge of the face paper, it controls the label paper to stop exiting. Based on the distance between the tearing blade and the first sensor, the length of the face paper, and the length of the seam, the first return distance is determined. Based on the first return distance, it controls the label paper to return directly, so that the upper seam of the face paper on the label paper is aligned with the first position where the tearing blade is located. This can reduce the cumbersome exit-return-exit steps, directly return the paper to the predetermined position, avoid errors, and improve the accuracy of face paper positioning.
[0550] In the specific implementation process, as shown in Figure 22, H1 is the length of the gap, H2 is the length of the face paper, L1 is the distance between the tearing blade and the first sensor, and L2 is the distance between the printing line and the first sensor. The label paper is controlled to be fed out until the first sensor detects the first edge of the face paper, at which point the paper feeding stops. Based on the distance L1 between the tearing blade and the first sensor, the length of the face paper H2, and the length of the gap H1, the first paper return distance is determined as: H2-L1+H1 / 2, which directly aligns the middle line of the upper gap with the position of the tearing blade.
[0551] In some possible implementations, the above steps continue to control the label paper return until a first preset condition is met, then control the label paper to be output and begin printing on the face paper based on the print line. This includes: continuing to control the label paper return until the second edge of the face paper aligns with the second position where the print line is located, or until a preset print position aligns with the second position where the print line is located; controlling the label paper to be output and beginning printing on the face paper based on the print line. The preset print position is set on the face paper and is different from the second edge.
[0552] Specifically, once the upper seam of the label paper aligns with the first position of the tear-off blade, the initial positioning process is complete. It is then necessary to continue controlling the label paper return until the second edge of the label paper aligns with the second position of the printing line or the preset printing position, so that printing can begin based on the printing line. This avoids tedious manual operations by the user and improves printing efficiency.
[0553] In the specific implementation process, as shown in Figure 22, H1 is the length of the gap, H2 is the length of the face paper, L1 is the distance between the tearing knife and the first sensor, and L2 is the distance between the printing line and the first sensor. By continuing to control the label paper return, the return distance can be determined to be: L1+L2-H1 / 2. The paper is returned at this distance until the second edge of the face paper is aligned with the second position where the printing line is located.
[0554] In some possible implementations, the method further includes: recording the number of motor steps for the label paper to be fed out or returned; if the number of motor steps exceeds a first preset threshold, issuing a paper jam warning signal. The paper jam warning signal is used to alert the user that the label printer has jammed.
[0555] Specifically, the system records the number of motor steps during each paper feeding or return process until it stops. If the number of motor steps exceeds the first preset threshold and the system still fails to reach the required position and stop, a paper jam warning signal can be generated and issued. This timely alerts the user to the problem, allowing for prompt resolution and improved printing efficiency of the label printer.
[0556] In the actual implementation process, if the motor count exceeds the first preset step threshold and no transition signal from the paper to the gap is detected during the paper feeding or returning process, a prompt signal will be sent to the user. At this time, it may be that the printer is experiencing a paper jam, that is, the motor is moving, but the label paper is not actually being fed forward. In this case, the first sensor will continue to detect the paper or the gap, but will not detect the signal of transition from the paper to the gap.
[0557] In the above embodiments, by setting a first sensor in the label printer, the position of the label paper's face paper is detected based on the first sensor, and the label paper is controlled to feed or return, so that the upper seam of the label paper's face paper is aligned with the tear blade. Then, the label paper is controlled to return to a fixed length so that the upper edge of the label paper's face paper is aligned with the printing line, and normal printing can be performed. This allows the complete information to be printed to be printed onto the label paper's face paper. Controlling the label paper's feed or return based on the first sensor can quickly complete the positioning of the face paper with a smaller paper feed distance, reducing printing waiting time and improving the working efficiency of the label printer.
[0558] In one example, referring to Figure 23, which is a flowchart illustrating an example of a second label paper printing method provided in an embodiment of this application, as shown in Figure 23, it may include:
[0559] S2310, controls the label paper to be fed out;
[0560] The label consists of multiple face sheets, with a gap between each pair of adjacent face sheets. The distance between the tearing blade and the first sensor is less than or equal to the length of the face sheet.
[0561] S2320, when the first sensor detects the first edge of the face paper, the label paper is controlled to stop feeding and return;
[0562] The first edge is perpendicular to the paper output direction.
[0563] Specifically, when the first sensor changes from detecting the front paper of the label to detecting the back paper corresponding to the gap in the label, it controls the label to stop feeding and return.
[0564] S2330, when the first sensor detects the second edge of the face paper, the label paper is controlled to stop returning;
[0565] The second edge is perpendicular to the paper output direction and is different from the first edge.
[0566] Specifically, when the first sensor changes from detecting the front paper of the label to detecting the back paper corresponding to the gap in the label, it controls the label to stop returning.
[0567] S2340, control the label paper to be sent out until the upper seam of the label paper is aligned with the first position where the tear blade is located;
[0568] Specifically, based on the distance between the first sensor and the tearing blade and the length of the gap, the target paper output distance is determined. Based on the target paper output distance, the label paper is controlled to be output until the upper gap of the label paper is aligned with the first position where the tearing blade is located.
[0569] S2350, continue to control the label paper return until the first preset condition is met, then control the label paper to be sent out and start printing on the paper opposite the printing line.
[0570] Specifically, continue to control the label paper return until the second edge of the face paper aligns with the second position where the print line is located, or until the preset print position aligns with the second position where the print line is located, control the label paper to be sent out, and start printing on the face paper based on the print line; wherein, the preset print position is set on the face paper, and the preset print position is different from the second edge.
[0571] The above-described label printing method, by setting a first sensor in the label printer, detects the position of the label paper's face sheet based on the first sensor, controls the label paper's output or return to align the top seam of the label paper's face sheet with the tear blade, and then controls the label paper's return to a fixed length to align the top edge of the label paper's face sheet with the printing line for normal printing, thus printing the complete information to be printed onto the label paper's face sheet. Based on the first sensor controlling the label paper's output or return, the face sheet can be positioned quickly with a smaller paper feed distance, reducing printing waiting time and improving the label printer's working efficiency.
[0572] The following describes the third and fourth label printing methods included in the label paper gap positioning method provided in an exemplary embodiment of this application.
[0573] Referring to Figure 24, which is a schematic diagram of the application scenario of the third label paper printing method provided in the embodiment of this application, the application environment may include a label printer 2400. The label printer 2400 includes a main body, on which a print head, a second sensor, a paper tearer and a control module are provided. The print head includes a printing line, and the second sensor, the printing line and the paper tearer are arranged in sequence according to the paper output direction of the label paper.
[0574] Specifically, the label printer 2400 controls the label paper feeding based on the second sensor to align the upper seam of the label paper with the first position of the tear blade, controls the label paper return until a second preset condition is met, controls the label paper to be sent out, and starts printing on the label paper based on the printing line. The label paper includes a base paper and multiple face papers attached to the base paper. There is a gap between each pair of adjacent face papers. The distance between the tear blade and the second sensor is less than or equal to the length of the face papers. The label paper feeding time is determined based on the initial position of the label paper detected by the second sensor.
[0575] In the specific implementation process, the label printer also includes a cover and a glue roller. The label paper is fed out from the cover. The glue roller is used to hold the label paper and control the paper feeding by rolling or other paper feeding methods. The control module in the label printer controls the second sensor to make the glue roller drive the label paper to feed so that the upper seam of the label paper is aligned with the first position where the tear blade is located. The control module continues to control the glue roller to drive the label paper back until the second preset condition is met. Then, the control module controls the label paper to be fed out and starts printing on the paper based on the printing line.
[0576] The above application scenario is just an example and does not limit the application scenarios of the label printing method of this application.
[0577] Those skilled in the art will understand that label printers can be classified according to their printing principle, including thermal printers, thermal transfer printers, inkjet printers, and laser printers; according to printing type, including desktop label printers, industrial label printers, and portable label printers; according to automation level, including manual label printers, automatic label printers, and inline label printers; and according to printing content, including general label printers and special-purpose label printers, such as barcode printers, coded label printers, and ID card printers. The specific classification can be determined based on the actual application scenario requirements and is not limited here.
[0578] In some possible implementations, taking a label printer as the executing entity as an example, this application provides a third label paper printing method. As shown in the flowchart of the third label paper printing method in FIG25, it may include the following steps:
[0579] S2510 controls the label paper feed based on the second sensor so that the upper seam of the label paper aligns with the first position where the tear blade is located.
[0580] The label paper includes a base paper and multiple face sheets attached to the base paper, with gaps between each pair of adjacent face sheets; the distance between the tear blade and the second sensor is less than or equal to the length of the face sheets; the label paper feeding time is determined based on the initial position of the face sheets detected by the second sensor.
[0581] The label printer includes a second sensor, printing lines, and a paper tearer arranged sequentially in the paper output direction.
[0582] The upper seam of the label paper is the seam adjacent to the label paper and far away from the label printer.
[0583] Specifically, the second sensor can detect the condition of the label paper at its location. The glue roller in the label printer can control the paper feed until the top seam of the label paper aligns with the first position of the tear blade. At this point, the return and positioning of the label paper is complete. Then, the top edge of the paper is aligned with the printing line for printing. The distance from the sensor to the tear blade should not exceed the length of the shortest label to prevent the first sheet of paper from being wasted. Using the detection function of the second sensor, the paper feed distance is small, the positioning is simple and fast, the printing waiting time is reduced, and the paper on the label paper is quickly moved to the required position, effectively improving printing efficiency.
[0584] In the specific implementation process, before controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position of the tearing blade, it may also include: determining whether the current step is the first printing task of the label paper; if so, performing the above paper feeding and returning steps to complete the paper positioning; if not, determining whether the tearing blade is aligned with the seam; if so, controlling the label paper return to align the upper edge of the paper with the printing line to start printing; if not, performing the above steps to complete the paper positioning.
[0585] In the specific implementation process, the initial position of the face paper can be detected by the second sensor, and the paper feeding time of the label paper can be predicted based on the initial position of the face paper. The paper feeding time can be used to determine whether the paper feeding timeout has occurred. If the timeout has occurred, a paper jam prompt can be issued to remind the user to resolve the problem as soon as possible and start printing. The paper feeding time can be determined based on historical time or obtained through a trained time prediction model.
[0586] In practice, the distance from the sensor to the tear blade should not exceed the length of the label sheet. As shown in Figure 26, in the third label printing method, the distance between the label sheet and the tear blade is smaller than the distance between the sensor and the tear blade. If the entire label sheet is between the tear blade and the second sensor, i.e., the distance from the sensor to the tear blade exceeds the length of the label sheet, the paper needs to be fed forward to find the bottom edge of the label sheet when performing paper return positioning. Since the sensor has already passed the bottom edge of the current label sheet, and the sensor determines whether it is the bottom edge of the label sheet by first detecting the label sheet and then detecting the gap, it is necessary to continue feeding forward to find the bottom edge of the next label sheet. This results in the paper return positioning feeding forward one sheet too much, which will waste the current label sheet. The final positioning is to align the top gap of the next label sheet with the tear blade, which will also waste the label sheet.
[0587] S2520 controls the label paper return until the second preset condition is met, then controls the label paper to be sent out and starts printing on the paper opposite the printing line.
[0588] The second preset condition may include the upper edge of the face paper being aligned with the second position where the print line is located, or the preset print position being aligned with the second position where the print line is located. The preset print position is set on the face paper and is different from the upper edge.
[0589] Specifically, by controlling the label paper feed and aligning the top seam of the label paper with the tear blade position, the label paper can be returned to its original position until the second preset condition for printing is met. Then, the label paper is pushed out and printed. Positioning the label paper first and then moving it to the printing position can speed up the printing process and improve printing efficiency.
[0590] In practice, once the label paper returns to the second preset condition, the paper return stops. The preset printing speed can be obtained, and the label paper can be controlled to be printed based on the preset printing speed. At this time, the paper can be printed at a constant speed, or the speed can be set according to the printing situation. For example, if the content is dense, the speed can be slowed down, and if the content is sparse, the speed can be increased. Adjusting the speed according to different printing tasks can meet different printing needs and improve the user experience.
[0591] In some possible implementations, as shown in Figure 27, a flowchart illustrating the paper feeding to the first position in the third label printing method, the above steps involve controlling the label paper feeding based on a second sensor to align the upper seam of the label paper with the first position where the tear-off blade is located, including:
[0592] S2710 controls the label paper to be sent out based on a second sensor.
[0593] Specifically, the user places the label paper in the preset position of the label printer, so that the glue roller can drive the label paper to be fed out or returned by rotating or other means. The printer receives the user's printing command and controls the label paper to be fed out, so that the second sensor can detect that a sheet of paper is close to the lower edge of the label printer and move it to the required position to complete the sheet paper positioning.
[0594] In practice, if the second sensor is located in the upper gap of the first sheet, directly returning the paper may result in the inability to detect the sheet or the label paper detaching from the glue roller. This solution first sends the paper out, which can avoid this situation, improve the accuracy of sheet detection, and increase the efficiency of label printing.
[0595] S2720: When the second sensor detects the first edge of the face paper, it controls the label paper to stop being fed.
[0596] The first edge is perpendicular to the paper output direction;
[0597] If the label paper is a relatively regular quadrilateral, then the first edge is the bottom edge of the paper closest to the printer, and the first edge is perpendicular to the paper output direction. If the paper is other shapes, then the first edge is the edge closest to the printer.
[0598] Specifically, the second sensor detects the label paper at the corresponding position in real time during the label paper feeding process. If the second sensor detects the first edge of the face paper, that is, when the label paper at the corresponding position changes from the face paper to the bottom paper, the label paper is controlled to stop feeding and return. This can quickly determine the position of the face paper, thereby reducing waiting time and improving printing efficiency.
[0599] In the specific implementation process, the integrity of the label paper can be detected by the second sensor. Before controlling the label paper to be printed, the specification information of the label paper to be printed can be obtained, including the length or shape information of the label paper in the paper output direction. When the second sensor detects the first edge of the face paper, the paper output stops and the paper is returned. The correct paper return movement time can be obtained based on the predetermined paper return speed and the length of the face paper. If the paper return is stopped within the movement time, the face paper on the label paper may be incomplete, and the problem needs to be checked or the face paper needs to be replaced so that the subsequent printing process can be carried out accurately.
[0600] S2730 controls the label paper return until the second edge of the face paper aligns with the second position where the print line is located, then controls the label paper to stop returning.
[0601] The second edge is perpendicular to the paper output direction and is different from the first edge.
[0602] If the label paper is a relatively regular quadrilateral, the second edge is the top edge of the paper away from the label printer, and the second edge is perpendicular to the paper output direction. If the paper is of other shapes, the second edge is the edge away from the label printer.
[0603] Specifically, when the second sensor detects the first edge of the face paper during the label paper output process, the second edge of the face paper can be aligned with the second position where the printed line is located through the paper return process. This can achieve the second edge of the face paper being aligned with the second position where the printed line is located with a smaller moving length, thereby improving the face paper positioning efficiency.
[0604] In the specific implementation process, as shown in the schematic diagram of the upper and lower edges in the third label paper printing method in Figure 28, the first edge is the lower edge of the current label paper face paper, and the second edge is the upper edge of the current label paper face paper. When the second sensor detects the lower edge of the face paper during the label paper output process, the upper edge of the face paper can be aligned with the position of the printing line through the paper return process. By determining the position of the lower edge and the upper edge, the position of the output face paper relative to the second sensor can be accurately determined. Outputting the paper first and then returning the paper avoids the situation where the label paper detaches from the glue roller due to direct paper return, which can reduce the occurrence of errors.
[0605] S2740 controls the label paper to be pushed out until the upper seam of the label paper aligns with the first position where the tear blade is located.
[0606] The upper gap of the face paper is the gap adjacent to the corresponding face paper and far away from the paper output port of the label printer.
[0607] Specifically, when the second sensor detects the two edges of the label sheet and determines its location, it controls the label paper to be sent out again, aligning the upper seam of the label sheet with the first position of the tear blade. Aligning the seam with the tear blade ensures that the tear blade operates precisely on the gap between the two label sheets, thus cutting the printed label completely and avoiding cutting into the label content area. If the seam is not aligned with the tear blade, the tear blade may cut into the label itself, resulting in incomplete label content or damage to the label.
[0608] In the specific implementation process, as shown in the schematic diagram of the label paper in the third label paper printing method in Figure 29, the label printer usually uses continuous label paper, and there is a gap 2920 between each label face paper 2910. This gap is the basis for the positioning of the tear blade. The tear blade in the label printer is used to separate the printed label from the continuous label paper roll.
[0609] In the specific implementation process, as shown in Figure 30, the structural relationship of the second sensor in the third label printing method is illustrated. H1 is the length of the gap, H2 is the length of the face paper, L3 is the distance between the tearing blade and the printing line, and L4 is the distance between the printing line and the second sensor. First, the paper is pushed forward to align the lower edge of the current label face paper with the sensor. Then, the paper is pushed back to align the upper edge of the current label face paper with the sensor. Finally, the paper is pushed forward by a length of L3-H1 / 2 to align the gap with the tearing blade position. Here, H1 / 2 means aligning the middle position of the gap with the tearing blade position, so that the tearing blade is aligned with the middle position of the gap when cutting, avoiding cutting errors.
[0610] In some possible implementations, controlling the label paper to stop feeding when the second sensor detects the first edge of the face paper in the above steps includes: controlling the label paper to stop feeding when the second sensor switches from detecting the face paper of the label paper to detecting the back paper corresponding to the gap of the label paper.
[0611] Specifically, when the label paper is being dispensed, when the second sensor changes from detecting the front paper of the label paper to detecting the back paper corresponding to the gap in the label paper, it detects the first edge of the front paper and controls the label paper to stop dispensing. When the label paper is of different shapes, by detecting the change from the front paper to the back paper, it can be determined that the first edge of the label paper has been reached. This makes the above method applicable to different styles of label paper and more in line with user needs.
[0612] In the specific implementation process, the paper is first fed forward so that the lower edge of the current label paper is aligned with the sensor. That is, the label paper is fed forward. The second sensor determines whether it has entered the gap. If the sensor determines that it has entered the gap, that is, the sensor has just detected the gap and the transition from the label paper to the gap has occurred, then the lower edge of the current label paper is aligned with the second sensor.
[0613] In the specific implementation process, the above steps of controlling the label paper return until the second edge of the face paper aligns with the second position where the printing line is located, and controlling the label paper to stop returning, can include: controlling the label paper return, when the second sensor detects again that the face paper of the label paper has switched to the back paper corresponding to the gap of the label paper, controlling the label paper to stop returning. The paper retraction aligns the top edge of the label with the sensor, essentially retracting the paper backward. The sensor determines if the paper has entered the gap. If the sensor detects entry, meaning it has just detected the gap and transitions from the label's face paper to the gap, the top edge of the current label's face paper aligns with the second sensor. The paper can then be extended a certain distance outward so that the upper gap of the face paper aligns with the position of the tear blade. During the label retraction, when the second sensor changes from detecting the face paper to detecting the bottom paper corresponding to the gap, it indicates that the second edge of the face paper has been detected, and the retraction stops. When the label is of different shapes, the second sensor detects the transition from the face paper to the bottom paper, indicating that the second edge of the label has been reached. This method is applicable to different styles of label paper, better meeting user needs.
[0614] In some possible implementations, the above method further includes: sending a light signal to the label paper via a second sensor and receiving a corresponding light response value; if the light response value received by the second sensor changes from a first value to a second value, then it is determined that the second sensor has switched from detecting the front paper of the label paper to detecting the back paper corresponding to the gap in the label paper.
[0615] The second sensor includes a photoelectric sensor. The light response value includes the reflection value and / or the transmission value; the first value is the light detection response value corresponding to the face paper; the second value is the light detection response value corresponding to the back paper of the slit.
[0616] The first value can be the first interval, and the second value can be the second interval.
[0617] Specifically, the second sensor sends a light signal to the label paper and obtains the corresponding light response value. If the light response value changes from the first value to the second value, that is, from the first interval to the second interval, it is determined that the label paper detected by the second sensor has switched between the face paper and the back paper. The first value corresponds to the face paper, and the second value corresponds to the back paper. Therefore, it can be determined that the label paper at the position detected by the second sensor has switched from the face paper to the back paper. By judging the switch between the face paper and the back paper through the light response value, real-time detection can be performed, which speeds up the positioning process of the label paper face paper.
[0618] In the specific implementation process, the sensor is a photoelectric sensor, which can send light signals and receive the reflection or transmission value of the detected object. The face paper and the back paper are distinguished by the difference in the reflection or transmission value of the face paper and the back paper.
[0619] In some possible implementations, controlling the label paper return until the second edge of the face paper aligns with the second position where the print line is located, and then controlling the label paper to stop returning, includes: determining a second return distance based on the distance between the second sensor and the print line and the length of the face paper; and controlling the label paper return based on the second return distance until the second edge of the face paper aligns with the second position where the print line is located, and then controlling the label paper to stop returning.
[0620] Specifically, based on the distance between the second sensor and the printing line and the length of the face paper, the second paper return distance is determined. Based on the second paper return distance, the label paper return is controlled until the second edge of the face paper aligns with the second position where the printing line is located, and then the label paper return is stopped.
[0621] In the specific implementation process, the label paper return is controlled to align the upper edge of the current label paper with the printing line. If the return paper aligns the upper edge of the current label paper with the location of the second sensor, then the end of the current label paper is upstream of the printing line and the glue roller. In other words, the paper is closer to the label printer than the second sensor, which may cause the subsequent label paper to feed unevenly.
[0622] In the specific implementation process, as shown in Figure 30, H1 is the length of the gap, H2 is the length of the face paper, L3 is the distance between the tear blade and the printing line, and L4 is the distance between the printing line and the second sensor. Based on the distance between the second sensor and the printing line and the length of the face paper, the second paper return distance is determined: H2-L4. Based on the second paper return distance, the label paper is controlled to return until the second edge of the face paper is aligned with the second position where the printing line is located, and the label paper is controlled to stop returning.
[0623] In some possible implementations, controlling the label paper to exit the paper until the upper slit of the label paper aligns with the first position where the tearing blade is located in the above steps includes: determining the paper exit distance based on the distance between the tearing blade and the printing line and the length of the slit; and controlling the label paper to exit the paper based on the paper exit distance until the upper slit of the label paper aligns with the first position where the tearing blade is located.
[0624] Specifically, by controlling the label paper return to align the upper edge of the label paper with the printing line, the paper output distance can be determined based on the distance between the tear blade and the printing line and the length of the gap. This allows the paper to be output, ensuring that the upper gap of the label paper aligns with the first position of the tear blade, thus accurately positioning the label paper and improving printing accuracy.
[0625] In the specific implementation process, as shown in Figure 30, H1 is the length of the gap, H2 is the length of the face paper, L3 is the distance between the tearing blade and the printing line, and L4 is the distance between the printing line and the second sensor. Based on the distance L3 between the tearing blade and the printing line and the length of the gap H1, the paper output distance is determined as L3-H1 / 2. Based on the paper output distance, the label paper is controlled to be output until the upper gap of the face paper is aligned with the first position where the tearing blade is located.
[0626] In some possible implementations, the steps described above, which control the label paper feed based on the second sensor to align the upper slit of the label paper's top sheet with the first position where the tearing blade is located, include: controlling the label paper to feed outwards; stopping the label paper feed when the second sensor detects the first edge of the top sheet; determining a target return distance based on the distance between the tearing blade and the second sensor, the length of the top sheet, and the length of the slit; and controlling the label paper to return based on the target return distance to align the upper slit of the label paper's top sheet with the first position where the tearing blade is located.
[0627] Specifically, it can not only control the label paper to first feed out, then return, and then feed out again to position the face paper, but it can also feed out the paper and then return it a certain distance so that the upper seam of the face paper on the label paper aligns with the first position where the tearing blade is located. In other words, it controls the label paper to feed out. When the second sensor detects the first edge of the face paper, it controls the label paper to stop feeding out. Based on the distance between the tearing blade and the second sensor, the length of the face paper, and the length of the seam, the target return distance is determined. Based on the target return distance, it controls the label paper to return directly, so that the upper seam of the face paper on the label paper aligns with the first position where the tearing blade is located. This reduces the cumbersome feeding and returning steps, and directly returns the paper to the predetermined position, which can avoid errors and improve the accuracy of face paper positioning.
[0628] In the specific implementation process, as shown in Figure 30, H1 is the length of the gap, H2 is the length of the face paper, L3 is the distance between the tearing blade and the printing line, and L4 is the distance between the printing line and the second sensor. Based on the distance between the tearing blade and the second sensor L3+L4, the length of the face paper H2, and the length of the gap H1, the target paper return distance H2+H1 / 2-(L3+L4) is determined. Based on the target paper return distance, the label paper return is controlled so that the upper gap of the face paper is aligned with the first position where the tearing blade is located.
[0629] In some possible implementations, the above method further includes: determining a corresponding return speed based on the length of the face paper in the output direction; controlling the return of the label paper based on the return speed; determining the output speed based on the length of the face paper and the return speed; and controlling the output of the label paper based on the output speed.
[0630] Among them, the return paper speed is less than or equal to the second preset speed threshold; the output paper speed is greater than the return paper speed.
[0631] Specifically, based on the length of the face paper in the output direction, the corresponding return speed is determined. Based on the return speed, the label paper return is controlled. Based on the face paper length and return speed, the output speed is determined. Based on the output speed, the label paper is controlled to be output. A threshold limit is applied to the return speed to prevent the return from being too fast, which could cause the label paper to detach from the glue roller, thus improving the accuracy of face paper positioning.
[0632] In the specific implementation process, when determining the return paper speed and output paper speed, it is necessary not only to meet the condition of the second preset speed threshold, but also to ensure that the output paper speed is greater than the return paper speed. This ensures that the return paper speed does not cause the label paper to return too quickly, resulting in the upper edge of the face paper exceeding the second sensor, while improving the efficiency of face paper positioning.
[0633] In the specific implementation process, a preset speed range can be set so that the paper return speed meets the speed range. The preset speed range can be set to 20-35mm / s. The paper return speed should not be too fast. If it is too fast, due to inertia, too much label paper may return, causing the upper edge of the label paper to return to the upstream position of the sensor, which is the position close to the label printer, thus causing inaccurate positioning.
[0634] In the specific implementation process, a mapping table corresponding to the length of the face paper and the return speed can be preset. After reading the label paper information, the corresponding return speed can be determined based on the length of the face paper of the label paper, and the return speed can be adjusted based on the second preset speed threshold and the preset speed range, thereby controlling the return of the label paper based on the return speed.
[0635] In the specific implementation process, the forward paper speed should be greater than the return paper speed during the process of paper feeding to align the first edge of the paper with the second sensor, so as to speed up the positioning efficiency while avoiding paper return too fast as much as possible.
[0636] In some possible implementations, the steps described above, including controlling the label paper to return until a second preset condition is met, controlling the label paper to exit the paper, and starting printing on the paper based on the printing line, include: controlling the label paper to return until the second edge of the paper aligns with the second position where the printing line is located, or until a preset printing position aligns with the second position where the printing line is located; controlling the label paper to exit the paper, and starting printing on the paper based on the printing line.
[0637] The preset printing position is set on the face paper, and the preset printing position is different from the second edge.
[0638] Specifically, once the upper seam of the label paper aligns with the first position of the tear-off blade, the initial positioning process is complete. It is then necessary to continue controlling the label paper return until the second edge of the label paper aligns with the second position of the printing line or the preset printing position, so that printing can begin based on the printing line. This avoids tedious manual operations by the user and improves printing efficiency.
[0639] In the specific implementation process, as shown in Figure 30, H1 is the length of the gap, H2 is the length of the face paper, L3 is the distance between the tearing blade and the printing line, and L4 is the distance between the printing line and the second sensor. By continuing to control the label paper return, the return distance can be determined to be: L3-H1 / 2. The paper is returned at this distance until the second edge of the face paper is aligned with the second position where the printing line is located.
[0640] In some possible implementations, before controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position of the tearing blade, the above steps further include: determining the initial position of the label paper based on the second sensor; determining the corresponding paper feed duration and paper return duration based on the initial position; controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position of the tearing blade, including: controlling the label paper feed based on the paper feed duration to align the upper seam of the label paper with the first position of the tearing blade; controlling the label paper return until a second preset condition is met, then controlling the label paper to be output and starting printing on the paper based on the printing line, including: controlling the label paper return based on the paper return duration until the second preset condition is met, then controlling the label paper to be output and starting printing on the paper based on the printing line.
[0641] Specifically, the initial position of the label paper is determined based on the second sensor. Based on the initial position, the corresponding paper feeding time and paper return time are determined. The label paper is fed based on the paper feeding time so that the upper seam of the label paper is aligned with the first position of the tear blade. The label paper is returned based on the paper return time until the second preset condition is met. Then, the label paper is fed out and printing begins on the paper opposite the printing line.
[0642] In the specific implementation process, the initial position of the face paper on the label is determined based on the second sensor. The distance between the position of the upper seam of the face paper and the position of the tear blade, combined with the preset paper feeding speed, determines the corresponding paper feeding time. The distance between the position of the upper edge of the face paper and the position of the printing line, combined with the preset paper return speed, determines the corresponding paper return time. The label paper feeding is controlled based on the paper feeding time so that the upper seam of the face paper on the label is aligned with the first position of the tear blade. The label paper return is controlled based on the paper return time until the second preset condition is met. Then, the label paper is controlled to be printed out and printing begins on the face paper based on the printing line.
[0643] In the actual implementation process, after obtaining the paper feed time and paper return time, the paper feed time and paper return time can be compared to obtain time information, thereby optimizing parameters such as paper feed speed and paper return speed, and improving the efficiency of label printers.
[0644] In some possible implementations, before controlling the label paper feed based on the second sensor in the above steps, the method further includes: reading the information label through radio frequency identification to obtain label paper information; and / or receiving label paper information input by the user on the label printer and / or on a terminal connected to the label printer.
[0645] The label has an information tag attached; the label information includes the length of the face paper and the length of the slit.
[0646] Specifically, the system can read the information label on the label paper using radio frequency identification (RFID) to obtain the label paper information. It can also receive the label paper information entered by the user on the label printer, as well as the label paper information entered by the user on the terminal connected to the label printer. Based on the label paper information, it can obtain label paper-related values such as the length of the label paper and the length of the gap, which is beneficial for quickly positioning the label paper and improving the label paper positioning efficiency.
[0647] In practical implementation, the label printer can obtain information from the label paper through radio frequency identification (RFID). RFID typically includes a label and a reader. The RFID label usually contains a microchip for storing and processing data. Such RFID information labels can be set on the label paper in this embodiment of the application, and the label printer obtains the corresponding label paper information through the RFID reader.
[0648] In practice, users can manually input information such as the length of the face paper and the gap length into the label printer or the corresponding application terminal to cover scenarios without radio frequency identification.
[0649] In some possible implementations, the method further includes: recording the number of motor steps for the label paper to be sent out or returned; if the number of motor steps is greater than a second preset threshold, a paper jam warning signal is issued.
[0650] The paper jam warning signal is used to alert the user that the label printer has a paper jam.
[0651] Specifically, the system records the number of motor steps for each paper feed or return from start to stop. If the number of motor steps exceeds the second preset threshold and the system still fails to reach the required position and stop, a paper jam warning signal can be generated and issued. This timely alerts the user to the problem, allowing for prompt resolution and improved printing efficiency of the label printer.
[0652] In the actual implementation process, if the motor count exceeds the second preset step threshold and no transition signal from the paper to the gap is detected during the paper feeding or returning process, a prompt signal will be sent to the user. At this time, it may be that the printer is experiencing a paper jam, that is, the motor is moving, but the label paper is not actually being fed forward. In this case, the second sensor will continue to detect the paper or the gap, but will not detect the signal of transition from the paper to the gap.
[0653] In the above embodiments, by setting a second sensor upstream of the printing line and the tear blade, the position of the label paper's face paper is detected based on the second sensor, and the label paper feeding is controlled to align the upper seam of the label paper's face paper with the first position where the tear blade is located, thus completing the positioning of the label paper's face paper. Then, the label paper is controlled to return until the second preset condition is met, thereby printing the complete information to be printed onto the label paper's face paper. By controlling the label paper feeding based on the second sensor, the face paper positioning can be completed quickly with a smaller paper feeding distance, avoiding tedious manual adjustment steps, and completing the face paper positioning faster, effectively improving the working efficiency of the label printer.
[0654] In one example, referring to the flowchart of the fourth label paper printing method shown in Figure 31, it may include:
[0655] S3110 controls the label paper to be sent out based on the second sensor.
[0656] S3120: When the second sensor detects the first edge of the face paper, it controls the label paper to stop being fed.
[0657] The first edge is perpendicular to the paper output direction.
[0658] S3130 controls the label paper return until the second edge of the face paper aligns with the second position where the print line is located, then controls the label paper to stop returning.
[0659] The second edge is perpendicular to the paper output direction and is different from the first edge.
[0660] S3140 controls the label paper to be pushed out until the upper seam of the label paper aligns with the first position where the tear blade is located.
[0661] S3150 determines the target paper return distance based on the distance between the paper tearer and the second sensor, the length of the paper face, and the length of the gap.
[0662] S3160 controls the label paper return based on the target return distance, so that the upper seam of the label paper is aligned with the first position where the tear blade is located.
[0663] S3170 controls the label paper return until the second preset condition is met, then controls the label paper to be sent out and starts printing on the paper opposite the printing line.
[0664] The above-described label printing method uses a second sensor located upstream of the printing line and the tear blade to detect the position of the label paper's face sheet. This sensor controls the label paper's feed to align the top seam of the face sheet with the first position of the tear blade, thus positioning the face sheet. The label paper is then retracted until a second preset condition is met, printing the complete information onto the face sheet. By controlling the paper feed with the second sensor, the face sheet can be positioned quickly with a shorter feed distance, avoiding tedious manual adjustments and improving the printer's efficiency.
[0665] The following describes a first label printer control method and a second label printer control method included in the label paper gap positioning method provided in an exemplary embodiment of this application.
[0666] Next, please refer to Figure 32, which exemplarily illustrates a structural relationship diagram of a label printer provided in an embodiment of this application. As shown in Figure 32, the label printer may include, but is not limited to, a paper tearer 3210, a first sensor 3220, a printing line 3230, a glue roller 3240, and a second sensor 3250.
[0667] In the paper output direction of label paper 3260, the first sensor 3220 is located between the printing line 3230 and the tear blade 3210, the second sensor 3250 is located upstream of the printing line 3230, and the tear blade 3210 is located downstream of the printing line 3230.
[0668] The aforementioned paper-tearing blade 3210 is used to perform a cutting action on the label paper 3260 to cut off the printed face paper from the label paper. The label paper 3260 includes a base paper 3261 and multiple face papers 3262 attached to the base paper, with a gap 3263 between each pair of adjacent face papers 3262.
[0669] The first sensor 3220 and the second sensor 3250 may be, but are not limited to, photoelectric sensors. They may determine the current position of the label paper 3260 by emitting a light signal in the direction of the label paper 3260 and receiving the corresponding light response value. The light response value may include, but is not limited to, reflection value and / or projection value.
[0670] The aforementioned printing line 3230 is disposed on the print head of the label printer, and is responsible for transferring printing materials such as ink or toner to the face paper 3262 of the label paper 3260 to form text, images, or charts. Depending on the printing technology, the structure and working principle of the print head may vary, and this embodiment does not limit this.
[0671] The printhead described above is primarily driven by the motor of the label printer. In this embodiment, the rotation of the motor, after passing through a mechanical transmission mechanism, can drive the glue roller 3240 to rotate, which in turn drives the label paper 3260 to move.
[0672] Specifically, when the first sensor 3220 detects the paper head 3264 of the label paper 3260, the label printer can first determine, based on the second sensor 3250, whether the paper to be printed 3262a on the label paper 3260 has been peeled off from the backing paper 3261 of the label paper 3260; then, based on the peeling determination result corresponding to the paper to be printed 3262a, the label printer controls the paper feed of the label paper 3260 so that the upper gap 3270 of the paper to be printed 3262a on the label paper 3260 is aligned with the first position 3211 where the tearing blade 3210 is located; finally, the label printer controls the paper return of the label paper 3260 until the preset printing position of the paper to be printed 3262a is aligned with the printing line 3230, and then starts printing the paper to be printed 3262a.
[0673] Understandably, the aforementioned label printer may also include, but is not limited to, one or more buttons, displays, indicator lights, etc.
[0674] It is understood that the control method for the label printer provided in this application embodiment can be executed by the controller of the label printer, or by the controller of the label printer and a terminal that is communicatively connected to the label printer. This application embodiment does not limit this.
[0675] Next, referring to Figure 32, we will introduce a first control method for a label printer provided by an exemplary embodiment of this application. Specifically, please refer to Figure 33, which exemplarily illustrates a flowchart of the first control method for a label printer provided by an embodiment of this application. As shown in Figure 33, the control method for the label printer includes the following steps:
[0676] S3301, when the first sensor detects the end of the label paper, the second sensor determines whether the face paper to be printed on the label paper has been peeled off from the backing paper of the label paper.
[0677] Specifically, the label paper includes a base paper and multiple face sheets attached to the base paper. There is a gap between each pair of adjacent face sheets to facilitate accurate cutting of the face sheets by the tear-off blade after printing. All face sheets are of the same length, and the gaps between each pair of adjacent face sheets are of the same length. Before the label printer starts printing, a first sensor located between the printing line and the tear-off blade is used for detection. If the first sensor detects the beginning of the label paper, it means that the beginning of the label paper is currently aligned with the third position where the first sensor is located. Then, a second sensor located upstream of the printing line can be used for further detection, and the detection result of the second sensor determines whether the face sheet to be printed on the label paper has been peeled off from the base paper. The face sheet to be printed can be, but is not limited to, the first face sheet on the label paper, or a face sheet specified by the user to be printed, or, if the first sensor detects the beginning of the label paper, a face sheet on the label paper located upstream of or covering the fourth position where the second sensor is located.
[0678] In some possible embodiments, the first distance between the second sensor and the first sensor is greater than the length of the paper to be printed and less than the sum of the length of the paper to be printed and the second distance, wherein the second distance is the distance between the first sensor and the printing line. As shown in FIG34, the implementation process of S3301, in which the first sensor detects the end of the label paper, and determines whether the paper to be printed on the label paper is peeled off from the backing paper of the label paper based on the second sensor, may include, but is not limited to:
[0679] S3401: If the first sensor detects the end of the label paper, and the second sensor detects the bottom paper where the gap is located, then the label paper is controlled to return to its original position.
[0680] Specifically, if the first sensor detects the end of the label paper, and the second sensor detects the bottom paper where the gap is located but not the top paper, it may be because the top paper is too short, meaning it is completely downstream of the second sensor. In order to accurately determine whether the top paper to be printed on the label paper (i.e., the first top paper on the label paper) has been peeled off from the bottom paper, the label paper can be controlled to return to its original position, and the second sensor can be used to continuously detect it.
[0681] S3402, before the paper head returns to the second position where the printing line is located, if the second sensor detects the face paper to be printed on the label paper, it is determined that the face paper to be printed on the label paper has not been peeled off from the backing paper of the label paper.
[0682] Specifically, before the paper is returned to the second position where the printing line is located, that is, during the process of controlling the label paper to return to the second distance (i.e. the distance between the first sensor and the printing line), if the second sensor detects the paper to be printed on the label paper, it can be determined that the paper to be printed on the label paper has not been peeled off from the backing paper of the label paper.
[0683] S3403, before the paper head returns to the second position where the printing line is located, if the second sensor does not detect the paper to be printed on the label paper, it is determined that the paper to be printed on the label paper has been peeled off from the backing paper of the label paper.
[0684] Specifically, before the paper is returned to the second position where the printing line is located, that is, during the process of controlling the label paper to return to the second distance (i.e. the distance between the first sensor and the printing line), if the second sensor does not detect the face paper to be printed on the label paper and only detects the back paper of the label paper, it can be determined that the face paper to be printed on the label paper has been peeled off from the back paper of the label paper.
[0685] Optionally, when the paper head returns to the second position where the printing line is located, that is, when the distance of the controlled label paper return reaches the second distance, the label paper will be controlled to stop returning, so as to avoid excessive paper return that causes the paper head to return to the upstream position of the printing line, which will cause the subsequent label paper to be unsmooth when it is output.
[0686] Optionally, before the paper head returns to the second position where the printing line is located, that is, before the distance for controlling the label paper to return reaches the second distance, when the detection result of the second sensor has switched from only detecting the bottom paper to detecting the front paper to be printed on the label paper, since it can be determined that the front paper to be printed has not been peeled off from the bottom paper of the label paper, the label paper can be directly controlled to stop returning, avoiding the problem of subsequent invalid return of the label paper and improving the positioning efficiency of label printing.
[0687] In some possible embodiments, in application scenarios where the length of the paper to be printed is greater than or equal to the first distance between the second sensor and the first sensor, the above-described S3301, when the first sensor detects the end of the label paper, the process of determining whether the paper to be printed on the label paper has been peeled off from the backing paper based on the second sensor may include, but is not limited to: when the first sensor detects the end of the label paper, if the second sensor detects the paper to be printed on the label paper, then it is determined that the paper to be printed on the label paper has not been peeled off from the backing paper. If the second sensor detects the backing paper on the label paper but does not detect the paper to be printed, then it can be determined that the paper to be printed on the label paper has been peeled off from the backing paper.
[0688] The first and second sensors mentioned above can be, but are not limited to, photoelectric sensors. The backing paper and the top paper each produce different light response values to the light signals emitted by the photoelectric sensors. These light response values can include, but are not limited to, reflectance and / or transmission values. The second sensor can detect the label paper by emitting light signals. When it receives a corresponding light response value of the first value, it can determine that it has detected the top paper of the label paper; when it receives a corresponding light response value of the second value, it can determine that it has detected the backing paper corresponding to the gap in the label paper. Thus, by judging the detection of the backing paper and the top paper through the light response values, real-time detection can be performed, accelerating the positioning process of the label paper and the top paper. The first value can be any value within a first interval, and the second value can be any value within a second interval; the first interval and the second interval do not overlap.
[0689] Next, please refer to Figure 33. As shown in Figure 33, in the above-mentioned S3301, after the first sensor detects the paper tip of the label paper and the second sensor determines whether the paper to be printed on the label paper has been peeled off from the backing paper, the control method of the first label printer may also include, but is not limited to:
[0690] S3302 controls the label paper feed based on the peel judgment result corresponding to the face paper to be printed, so that the upper seam of the face paper to be printed on the label paper is aligned with the first position where the tearing knife is located.
[0691] Specifically, the upper seam of the paper to be printed is the seam adjacent to the paper to be printed and far from the paper output port of the label printer. After obtaining the peel judgment result corresponding to the paper to be printed using the second sensor, the label paper can be controlled based on the peel judgment result until the upper seam of the paper to be printed on the label paper is aligned with the first position where the tear blade is located. At this point, the paper feeding and positioning of the paper to be printed on the label paper is completed. Then, the preset printing position of the paper to be printed is aligned with the printing line to start printing, thereby ensuring that the complete information to be printed can be printed on the paper to be printed on the label paper.
[0692] Optionally, if the face sheet to be printed is not peeled off from the backing paper, the label paper can be directly fed to align the upper seam of the face sheet to be printed on the label paper with the first position where the tear blade is located. If the face sheet to be printed is peeled off from the backing paper, it means that there is no face sheet to be printed on the label paper downstream of the second sensor. In this case, the label paper can be controlled for paper feeding and positioning to align the upper seam of the next face sheet on the label paper with the first position where the tear blade is located.
[0693] Optionally, the paper to be printed can be the first sheet of a label. When the paper tip is aligned with the third position of the first sensor and the paper to be printed has not peeled off the backing paper, the first distance the label paper travels out can be directly controlled so that the upper seam of the paper to be printed on the label paper aligns with the first position of the tear-off blade, thereby achieving efficient and precise paper output positioning control of the label paper. The first distance is the distance between the first position of the tear-off blade and the third position of the first sensor.
[0694] S3303 controls the label paper feed until the preset printing position of the paper to be printed is aligned with the printing line, then starts printing the paper to be printed.
[0695] Specifically, after aligning the top seam of the label paper to be printed with the first position of the tear-off blade, thus completing the paper return positioning process, the label paper can be controlled to return until the preset printing position of the label paper to be printed aligns with the printing line before printing begins. Positioning the label paper to be printed first, and then moving it to the printing position, speeds up the printing process and improves printing efficiency and quality. The aforementioned preset printing position can be the edge of the label paper near the label printer's output port, or any position preset by the user; this embodiment does not limit this.
[0696] Optionally, after aligning the upper seam of the label paper to be printed with the first position where the tear blade is located, upon receiving a printing instruction, in response to the printing instruction, the above-mentioned S3303 can be executed to control the label paper to return until the preset printing position of the label paper to be printed is aligned with the printing line, and then the printing of the label paper to be printed can begin.
[0697] In this embodiment, a second sensor is positioned upstream of the printing line in the label paper output direction, and a first sensor is positioned between the printing line and the tear blade. When the first sensor detects the end of the label paper, the second sensor upstream of the printing line is used to accurately determine whether the top sheet to be printed on the label paper has been peeled off from the bottom sheet. By detecting the peeling status of the top sheet in advance, the accuracy and stability of subsequent printing operations can be ensured, avoiding inaccurate printing positioning or paper jams caused by the top sheet being peeled off. Then, based on the peeling judgment result corresponding to the top sheet to be printed, the label paper feed is controlled to ensure that the top sheet to be printed is properly positioned. The top seam of the printing paper is aligned with the first position of the tear-off blade to prepare for printing. This ensures that the printed information can be completely displayed on the paper to be printed, further improving printing accuracy while reducing paper waste and printing costs. Finally, the label paper is controlled to return until the preset printing position of the paper to be printed is aligned with the printing line. Then, printing begins on the paper to be printed. This paper return operation ensures that the printed content can accurately fall on the preset printing position, meeting the user's high requirements for printing effect and improving printing flexibility. After the preset printing position is aligned, the printing operation begins, thus ensuring that the complete printing information is accurately printed on the paper to be printed.
[0698] In summary, the embodiments of this application precisely control the label printer to perform operations such as paper feeding alignment and printing through two sensors, thereby achieving comprehensive optimization of the label printing process. This not only improves printing efficiency and accuracy but also reduces paper waste and printing costs, enhances printing flexibility, and provides users with a more convenient, efficient, and accurate printing experience.
[0699] Next, please refer to Figure 35, which exemplarily illustrates a flowchart of a second label printer control method provided in an embodiment of this application. As shown in Figure 35, the second label printer control method includes the following steps:
[0700] S3501 controls the label paper return when the first sensor detects the label paper.
[0701] Specifically, when a user wants to print labels, they can place the label paper in the preset position on the label printer, allowing the glue roller to rotate and move the label paper for feeding or retraction. Once the label printer detects that the label paper has been placed correctly, or upon receiving a print command from the user, it can activate the first sensor for detection. If the first sensor detects label paper (both the backing and front paper), it indicates that there may be an overfeeding issue. In this case, the label printer needs to control the retraction of the label paper to position it at the end of the paper, preventing the front paper from being wasted due to overfeeding.
[0702] S3502, when the first detection result of the first sensor changes from detecting the label paper to not detecting the label paper, the label paper is controlled to stop returning, so that the end of the label paper is aligned with the third position where the first sensor is located.
[0703] Specifically, during the process of controlling the label paper return, when the first detection result of the first sensor changes from detecting label paper to not detecting label paper (i.e. detecting air), it means that the end of the label paper has just returned to the third position where the first sensor is located. Then, the label paper return can be stopped so that the end of the label paper is aligned with the third position where the first sensor is located to position the end of the label paper.
[0704] In some possible embodiments, the label printer also includes a motor for driving the glue roller to feed the label paper. During the process of controlling the label paper return and the first detection result of the first sensor indicating that label paper has been detected but has not changed to indicating that label paper has not been detected, it is possible to continuously determine whether the current paper return step number corresponding to the motor exceeds a first preset step number. If so, the label paper is controlled to perform paper output positioning so that the upper seam of the paper to be printed on the label paper (i.e., the paper whose upper seam is located upstream of the tear blade when the paper return step number exceeds the first preset step number) is aligned with the first position where the tear blade is located. This avoids excessive paper return causing subsequent label paper to feed unevenly or the label paper itself to continuously return excessively, affecting printing efficiency. If not, the label paper is controlled to continue returning, and the step described above, where the first detection result of the first sensor changes from indicating that label paper has been detected to indicating that label paper has not been detected, is executed to stop the label paper return.
[0705] Optionally, the process of controlling the label paper to perform paper output positioning so that the upper slit of the paper to be printed on the label paper is aligned with the first position where the tearing blade is located may include, but is not limited to: if the second sensor detects the bottom paper corresponding to the slit, the label paper is controlled to be output, and after the second sensor detects the upper edge of the paper to be printed, the label paper is controlled to continue output a second distance; if the second sensor detects the paper to be printed on the label paper, the label paper is controlled to be returned, and after the second sensor detects the upper edge of the paper to be printed, the label paper is controlled to be output a second distance; wherein, the second distance is the distance between the first position where the tearing blade is located and the fourth position where the second sensor is located.
[0706] Optionally, the process of controlling the label paper to perform paper output positioning so that the upper ...
Claims
1. A method for locating the gaps in label paper, wherein, The method includes: Determine the size of the label sheet's face paper, and determine a preset face paper movement distance based on the face paper size; The label paper is moved based on the paper transport path, and the moving distance of the label paper is calculated based on the position of the label paper's face paper. Determine whether the moving distance is greater than or equal to the preset paper moving distance, and detect whether there is a gap signal corresponding to the label paper; If the moving distance is greater than or equal to the preset paper moving distance, and the gap signal exists, then the gap position indicated by the gap signal is determined to be the actual gap position.
2. The method according to claim 1, wherein, The face paper position includes the beginning position of the face paper. The label paper movement process based on the paper transport path, and the calculation of the movement distance of the label paper based on the face paper position, includes: The label paper is moved based on the paper transport path control, and the first moment when the gap detection sensor detects the opening position of the face paper is determined. The total number of steps the label paper moves after the first moment is monitored, and the moving distance of the label paper is determined based on the total number of steps.
3. The method according to claim 1, wherein, The steps of determining whether the moving distance is greater than or equal to the preset paper moving distance and detecting whether there is a gap signal corresponding to the label paper include: Determine whether the moving distance is greater than or equal to the preset paper moving distance; If the moving distance is greater than or equal to the preset paper moving distance, then the detection of whether there is a gap signal corresponding to the label paper begins. If the moving distance is greater than or equal to the preset paper moving distance, and the gap signal exists, then determining the gap position indicated by the gap signal as the actual gap position includes: If a gap signal corresponding to the label is detected, the gap position indicated by the gap signal is determined to be the actual gap position.
4. The method according to claim 1, wherein, The steps of determining whether the moving distance is greater than or equal to the preset paper moving distance and detecting whether there is a gap signal corresponding to the label paper include: Determine whether the moving distance is greater than or equal to the preset paper moving distance, and start detecting whether there is a gap signal corresponding to the label paper.
5. The method according to claim 3 or 4, wherein, The method further includes: If, after the moving distance is greater than or equal to the preset paper moving distance, there is no gap signal corresponding to the label paper, then the step of controlling the label paper movement based on the paper transport path is stopped, and / or a preset alarm is issued.
6. The method according to claim 1, wherein, The steps of determining whether the moving distance is greater than or equal to the size of the face paper and detecting whether there is a gap signal corresponding to the label paper include: Detect whether there is a gap signal corresponding to the label paper; If a gap signal corresponding to the label paper is detected, it is determined whether the moving distance is greater than or equal to the preset paper moving distance; If the moving distance is greater than or equal to the preset paper moving distance, and the gap signal exists, then determining the gap position indicated by the gap signal as the actual gap position includes: If the moving distance is greater than or equal to the preset paper moving distance, then the gap position indicated by the gap signal is determined to be the actual gap position.
7. The method according to claim 6, wherein, The method further includes: If the moving distance is less than the preset face paper moving distance, the gap signal is ignored, and the step of controlling the label paper to move based on the paper transport path and calculating the moving distance of the label paper based on the face paper position is executed.
8. The method according to claim 1, wherein, Determining the face paper size of the label includes: The RFID module identifies the RFID chip integrated within the label roll to obtain the label's face paper size; or, Receive a label paper parameter transmission instruction sent by a user terminal, and obtain the label paper face paper size from the label paper parameter transmission instruction; or, Determine the label paper's face paper model, and determine the label paper's face paper size based on the face paper model.
9. The method according to claim 1, wherein, The detection of whether a gap signal corresponding to the label paper exists includes: Obtain the target material type of the label paper; The gap detection threshold corresponding to the target material type is determined from the preset gap detection mapping relationship; The gap detection threshold is used to detect whether there is a gap signal corresponding to the label paper.
10. The method according to claim 9, wherein, The process of obtaining the target material type of the label paper includes: The target material type of the label paper is determined by identifying the RFID chip integrated within the label paper roll using an RFID module; or, Receive a label paper parameter transmission instruction sent by a user terminal, and obtain the target material type of the label paper from the label paper parameter transmission instruction; or, Determine the label paper's face paper model, and based on the face paper model, determine the target material type of the label paper.
11. The method according to claim 1, wherein, The method further includes: After the printer is paused, the label paper is retracted based on the paper transport path, and the opening position of the label paper's face paper is located by a gap detection sensor.
12. The method according to claim 1, wherein, If the moving distance is greater than or equal to the preset paper moving distance, and the gap signal exists, then after determining that the gap position indicated by the gap signal is the actual gap position, the method further includes: The label paper is moved based on the paper transport path; When the actual gap location matches the sensor location corresponding to the gap detection sensor, the label paper is printed.
13. The method according to claim 1, wherein, The method further includes: The number of steps the motor moves is monitored as the label paper is moved by the motor. The target moving distance of the label paper is determined based on the number of moving steps; If the target movement distance is greater than or equal to a preset detection distance threshold, then the gap detection result is determined, and the paper jam detection result is determined based on the gap detection result; If the paper jam detection result indicates a paper jam, then a paper jam prompt operation will be performed.
14. The method according to claim 13, wherein, The determination of the gap detection result includes: Determine whether the gap detection sensor detects an in-gap signal or an out-gap signal for the gap in the label paper; If the seam entry signal or the seam exit signal is detected, a seam detection result with seam type is generated; If neither the seam entry signal nor the seam exit signal is detected, a seam detection result of the seamless type is generated.
15. The method according to claim 13, wherein, The step of determining the paper jam detection result based on the gap detection result includes: If the gap detection result is a seamless type, then a paper jam detection result with a paper jam type is generated.
16. The method according to claim 13, characterized in that, The step of determining the paper jam detection result based on the gap detection result includes: If the gap detection result indicates a gap, then the risk level of the paper jam corresponding to the label paper is determined. If the risk level of the paper jam is greater than or equal to the preset risk level, the camera will capture an image of the moving label paper, and the image of the moving label paper will be processed to detect paper jams and obtain a paper jam detection result. If the paper crease detection result indicates that the paper crease is present, then a paper crease detection result is generated. If the detected paper crease is a non-crease type, then a paper crease detection result of the non-crease type is generated.
17. The method according to claim 16, wherein, Determining the risk level of the paper jam corresponding to the label paper includes: Obtain the material type and paper size of the label paper, and obtain the printing environment parameters; wherein, the printing environment parameters include at least one of the printing environment temperature and the printing environment humidity; A paper jam risk assessment model is used to detect paper jam risks based on the material type, paper size, and printing environment parameters to obtain the paper jam risk level corresponding to the label paper.
18. The method according to claim 16, wherein, The method further includes: If the paper jam risk level is less than the preset risk level, a paper jam detection result of the no-paper-jam type is generated.
19. The method according to claim 13, characterized in that, After monitoring the number of steps the motor has moved, the method further includes: The anti-counterfeiting features corresponding to the label paper are determined, and anti-counterfeiting identification processing is performed based on the anti-counterfeiting features to obtain the anti-counterfeiting identification result of the label paper; If the anti-counterfeiting identification result is a counterfeit product, then an anti-counterfeiting anomaly prompt operation will be performed; If the anti-counterfeiting identification result is a genuine product, then the anti-counterfeiting anomaly prompt operation will be cancelled.
20. The method according to claim 13, wherein, The paper jam prompting operation includes at least one of the following: Output a preset paper jam error warning sound; Control the preset paper jam error indicator light to flash; The preset card pattern is displayed on the screen. The preset paper jam warning text is displayed on the screen.
21. The method according to claim 13, wherein, After performing the paper jam prompt operation, the following is also included: The motor is controlled to rotate a preset number of steps in the opposite direction to the direction the label paper is moving.
22. The method according to claim 13, wherein, After performing the paper jam prompt operation, the following is also included: Stop the label printing task, obtain the unprinted content corresponding to the label printing task, and save the unprinted content to the memory.
23. The method according to claim 13, wherein, After performing the paper jam prompt operation, the following is also included: Acquire an image of the label paper in a paper jam state, and determine the position of the paper jam based on the label paper image; Obtain printing environment parameters and obtain the paper identification of the label paper; A paper jam analysis report is generated based on the paper identification, the paper jam location, and the printing environment parameters, and the paper jam analysis report is sent to the user terminal.
24. The method according to claim 23, wherein, Determining the paper jam position based on the label image includes: In the label image, determine the recognition position corresponding to the gap detection sensor, and determine the position of the beginning of the face paper; Determine the image interval distance between the identification position and the beginning position of the label paper in the label paper moving direction; Obtain the face paper size of the label paper, and obtain the preset distance conversion ratio corresponding to the face paper size; The identification position is determined based on the preset distance conversion ratio and the image interval distance, which is the position of the jammed paper in the label paper.
25. The method according to claim 13, wherein, After performing the paper jam prompt operation, the following is also included: Control the printhead to stop heating.
26. The method according to claim 13, wherein, Before monitoring the number of steps the motor moves while driving the label paper, the method further includes: When the label paper is first loaded into the label printer, the size of the label paper's face paper is obtained, and a preset detection distance threshold is configured based on the face paper size.
27. The method according to claim 13, wherein, Before monitoring the number of steps the motor moves while driving the label paper, the method further includes: When the label paper is detected to be loaded into the label printer for the first time, the size of the label paper's face paper is obtained, and the movement distance conversion ratio is configured based on the face paper size; Determining the target moving distance of the label paper based on the number of moving steps includes: The target moving distance of the label is determined based on the number of moving steps and the moving distance conversion ratio.
28. The method according to claim 1, wherein, Applied to a label printer, the label printer includes printing lines, a first sensor, and a paper tearer arranged sequentially in the paper output direction, and the method further includes: Based on the first sensor, the label paper is controlled to be sent out and returned, so that the upper seam of the top paper of the label paper is aligned with the first position where the tearing knife is located; the label paper includes multiple face sheets, and there is a gap between every two adjacent face sheets; the distance between the tearing knife and the first sensor is less than or equal to the length of the face sheets; Continue controlling the label paper return until the first preset condition is met, then control the label paper to be sent out, and start printing on the face paper based on the printing line.
29. The method according to claim 28, wherein, The step of controlling the label paper to be sent out and returned based on the first sensor, so that the upper seam of the label paper is aligned with the first position where the tearing blade is located, includes: Control the label paper to be dispensed out; When the first sensor detects the first edge of the face paper, it controls the label paper to stop feeding and return; the first edge is perpendicular to the feeding direction; When the first sensor detects the second edge of the face paper, it controls the label paper to stop rewinding; the second edge is perpendicular to the paper output direction and is different from the first edge; Control the label paper to be pushed out until the upper seam of the label paper is aligned with the first position where the tearing knife is located.
30. The method according to claim 29, wherein, When the first sensor detects the first edge of the face paper, controlling the label paper to stop feeding and return includes: When the first sensor changes from detecting the front paper of the label to detecting the back paper corresponding to the gap in the label, it controls the label to stop feeding and return.
31. The method according to claim 29, wherein, The step of controlling the label paper to stop rewinding when the first sensor detects the second edge of the face paper includes: When the first sensor changes from detecting the front paper of the label paper to detecting the back paper corresponding to the gap in the label paper, it controls the label paper to stop returning.
32. The method according to claim 30 or 31, wherein, The first sensor includes a photoelectric sensor; the method further includes: The first sensor sends a light signal to the label paper and obtains the corresponding light response value; the light response value includes at least one of a reflection value and a transmission value; If the light response value changes from a first value to a second value, then it is determined that the first sensor changes from detecting the front paper of the label to detecting the back paper corresponding to the gap in the label; the first value is the light detection response value corresponding to the front paper; the second value is the light detection response value corresponding to the back paper.
33. The method according to claim 29, wherein, The control of the label paper to be extruded until the upper seam of the label paper aligns with the first position where the tearing blade is located includes: The target paper output distance is determined based on the distance between the first sensor and the paper tearing blade and the length of the gap; Based on the target paper output distance, the label paper is controlled to be output until the upper seam of the label paper is aligned with the first position where the tearing blade is located.
34. The method according to claim 33, wherein, The label printer includes a first information reading and writing device, and the label paper is provided with a second information reading and writing device; Before determining the target paper output distance based on the distance between the first sensor and the paper tearing blade and the gap length, the method further includes: The label information is obtained by reading the second information on the label paper using the first information reading and writing device; the label information includes the length of the gap; and / or... Receive the label paper information entered by the user on the label printer and / or on the terminal connected to the label printer.
35. The method according to claim 29, wherein, The control of the label paper to be extruded until the upper seam of the label paper aligns with the first position where the tearing blade is located includes: The corresponding paper output speed is determined based on the length of the paper in the paper output direction; Based on the paper output speed, the label paper is controlled to be output until the upper seam of the label paper is aligned with the first position where the tearing blade is located.
36. The method according to claim 35, wherein, The method further includes: The return speed is determined based on the length of the paper in the paper output direction and the paper output speed; the return speed is less than or equal to a first preset speed threshold. The label paper return is controlled based on the paper return speed.
37. The method of claim 35, wherein, The return paper speed is less than the output paper speed.
38. The method according to claim 28, wherein, The step of controlling the label paper to be sent out and returned based on the first sensor, so that the upper seam of the label paper is aligned with the first position where the tearing blade is located, includes: Control the label paper to be dispensed out; When the first sensor detects the first edge of the face paper, it controls the label paper to stop being dispensed; The first paper return distance is determined based on the distance between the paper tearer and the first sensor, the length of the paper, and the length of the gap; Based on the first paper return distance, the label paper return is controlled so that the upper seam of the label paper is aligned with the first position where the tearing knife is located.
39. The method according to claim 28, wherein, The step of continuing to control the label paper return until the first preset condition is met, then controlling the label paper to be sent out, and starting to print on the face paper based on the printing line, includes: Continue controlling the label paper return until the second edge of the face paper aligns with the second position where the print line is located, or until the preset print position aligns with the second position where the print line is located; the preset print position is set on the face paper, and the preset print position is different from the second edge; Control the label paper to be fed out, and start printing on the face paper based on the printing line.
40. The method according to claim 28, wherein, The method further includes: Record the number of motor steps for the label paper to be sent out or returned; If the number of motor steps exceeds a first preset step threshold, a paper jam warning signal is issued; the paper jam warning signal is used to notify the user that the label printer has jammed.
41. The method according to claim 1, wherein, Applied to a label printer, the label printer includes a second sensor, a printing line, and a paper tearer arranged sequentially in the paper output direction, and the method further includes: The label paper is controlled based on the second sensor to align the upper seam of the label paper's top sheet with the first position where the tearing blade is located; the label paper includes a base paper and multiple top sheets attached to the base paper, with a gap between each pair of adjacent top sheets; the distance between the tearing blade and the second sensor is less than or equal to the length of the top sheets; the duration of the label paper's feeding is determined based on the initial position of the label paper's top sheet detected by the second sensor; Control the label paper return until the second preset condition is met, then control the label paper to be sent out, and start printing on the face paper based on the printing line.
42. The method according to claim 41, wherein, The step of controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position where the tearing blade is located includes: The label paper is controlled to be dispensed based on the second sensor; When the second sensor detects the first edge of the face paper, it controls the label paper to stop being dispensed; the first edge is perpendicular to the dispensing direction. Control the label paper to return until the second edge of the face paper aligns with the second position where the printing line is located, then control the label paper to stop returning; the second edge is perpendicular to the paper output direction, and the second edge is different from the first edge; Control the label paper to be pushed outwards until the upper seam of the label paper aligns with the first position where the tearing knife is located.
43. The method of claim 42, wherein, The step of controlling the label paper to stop feeding when the second sensor detects the first edge of the face paper includes: When the second sensor switches from detecting the front paper of the label to detecting the back paper corresponding to the gap in the label, it controls the label to stop feeding.
44. The method of claim 43, wherein, The second sensor includes a photoelectric sensor, and the method further includes: The second sensor sends an optical signal to the label paper and receives the corresponding optical response value; the optical response value includes a reflection value and / or a transmission value. If the light response value received by the second sensor changes from the first value to the second value, it is determined that the second sensor has switched from detecting the face paper of the label to detecting the back paper corresponding to the gap in the label; the first value is the light detection response value corresponding to the face paper; the second value is the light detection response value corresponding to the back paper.
45. The method of claim 42, wherein, The step of controlling the label paper return until the second edge of the face paper aligns with the second position where the printed line is located, and then controlling the label paper return to stop, includes: The second paper return distance is determined based on the distance between the second sensor and the paper tearer and the length of the paper. Based on the second paper return distance, control the label paper return until the second edge of the face paper aligns with the second position where the printing line is located, and then control the label paper to stop returning.
46. The method of claim 42, wherein, The control of the label paper to be extruded until the upper seam of the label paper aligns with the first position where the tearing blade is located includes: The paper output distance is determined based on the distance between the paper tearer and the printing line and the length of the gap; Based on the paper output distance, the label paper is controlled to be output until the upper seam of the label paper aligns with the first position where the tearing blade is located.
47. The method according to claim 41, wherein, The step of controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position where the tearing blade is located includes: Control the label paper to be dispensed out; When the second sensor detects the first edge of the face paper, it controls the label paper to stop being dispensed; The target paper return distance is determined based on the distance between the paper tearer and the second sensor, the length of the face paper, and the length of the gap. Based on the target return distance, the label paper return is controlled so that the upper seam of the label paper aligns with the first position where the tearing knife is located.
48. The method of claim 42 or 47, wherein, The method further includes: Based on the length of the paper in the paper output direction, the corresponding return speed is determined; the return speed is less than or equal to a second preset speed threshold. Based on the paper return speed, control the label paper return; The paper output speed is determined based on the length of the paper and the paper return speed; the paper output speed is greater than the paper return speed. Based on the paper output speed, the label paper is controlled to be output.
49. The method according to claim 41, wherein, The step of controlling the label paper return until a second preset condition is met, then controlling the label paper to be output, and starting printing on the face paper based on the printing line, includes: Control the label paper return until the second edge of the face paper aligns with the second position where the print line is located, or until a preset print position aligns with the second position where the print line is located; the preset print position is set on the face paper, and the preset print position is different from the second edge; Control the label paper to be fed out, and start printing on the face paper based on the printing line.
50. The method according to claim 41, wherein, Before controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position where the tearing blade is located, the method further includes: The initial position of the paper on the label is determined based on the second sensor; Based on the initial position, determine the corresponding paper feed time and paper return time; The step of controlling the label paper feed based on the second sensor to align the upper seam of the label paper with the first position where the tearing blade is located includes: The label paper feed is controlled based on the paper feed duration so that the upper seam of the label paper is aligned with the first position where the tearing blade is located. The step of controlling the label paper return until a second preset condition is met, then controlling the label paper to be output, and starting printing on the face paper based on the printing line, includes: The label paper is controlled to return to the paper based on the return time until the second preset condition is met. Then, the label paper is controlled to be sent out and printing begins on the face paper based on the printing line.
51. The method according to claim 41, wherein, The label paper is equipped with an information label; Before controlling the label paper feed based on the second sensor, the method further includes: The information tag is read using radio frequency identification to obtain the tag paper information; the tag paper information includes the height of the face paper and the height of the gap; and / or... Receive the label paper information entered by the user on the label printer and / or on the terminal connected to the label printer.
52. The method according to claim 41, wherein, The method further includes: Record the number of motor steps for the label paper to be sent out or returned; If the number of motor steps exceeds the second preset step threshold, a paper jam warning signal is issued; the paper jam warning signal is used to inform the user that the label printer has jammed.
53. The method according to claim 1, wherein, Applied to a label printer, the label printer includes a second sensor, a printing line, a first sensor, and a paper tearing blade arranged sequentially in the paper output direction; the method further includes: When the first sensor detects the end of the label paper, the second sensor determines whether the face paper to be printed on the label paper has been peeled off from the backing paper of the label paper; the label paper includes a backing paper and multiple face papers attached to the backing paper, with a gap between each pair of adjacent face papers; Based on the peeling judgment result corresponding to the face paper to be printed, the label paper feed is controlled so that the upper seam of the face paper to be printed on the label paper is aligned with the first position where the tearing knife is located; Control the label paper return until the preset printing position of the face paper to be printed is aligned with the printing line, and then start printing the face paper to be printed.
54. The method according to claim 53, wherein, Before determining, based on the second sensor, whether the printing face paper on the label paper has peeled off from the backing paper when the first sensor detects a paper tip on the label paper, the method further includes: If the first sensor detects the label paper, control the label paper to return to its original position; When the first detection result of the first sensor changes from detecting the label paper to not detecting the label paper, the label paper is controlled to stop returning, so that the end of the label paper is aligned with the third position where the first sensor is located.
55. The method according to claim 54, wherein, The label printer also includes a motor for driving the label paper feed; After controlling the label paper return when the first sensor detects the label paper, the method further includes: During the process where the first detection result of the first sensor is that the label paper is detected and the label paper is not detected, it is determined whether the current paper return step number corresponding to the motor exceeds the first preset step number. If so, control the label paper to perform paper feeding and positioning so that the upper seam of the paper to be printed on the label paper is aligned with the first position where the tearing knife is located; If not, then control the label paper to continue returning to the paper, and execute the step of controlling the label paper to stop returning to the paper when the first detection result of the first sensor changes from detecting the label paper to not detecting the label paper.
56. The method according to claim 53, wherein, Before determining, based on the second sensor, whether the printing face paper on the label paper has peeled off from the backing paper when the first sensor detects a paper tip on the label paper, the method further includes: If the first sensor does not detect the label paper, control the label paper to be sent out. When the first detection result of the first sensor changes from never detecting the label paper to detecting the label paper, the label paper is controlled to stop being dispensed so that the end of the label paper is aligned with the third position where the first sensor is located.
57. The method according to claim 56, wherein, The label printer also includes a motor for driving the label paper feed; After controlling the label paper to be dispensed when the first sensor does not detect the label paper, the method further includes: If the first detection result of the first sensor is that the label paper is not detected and the result does not change to detect the label paper, it is determined whether the current paper output step number corresponding to the motor exceeds the second preset step number; If so, then issue a target notification message; If not, then control the label paper to continue being dispensed, and execute the step of controlling the label paper to stop dispensing when the first detection result of the first sensor changes from never detecting the label paper to detecting the label paper.
58. The method according to claim 53, wherein, The first distance between the second sensor and the first sensor is greater than the length of the paper to be printed and less than the sum of the length of the paper to be printed and the second distance; the second distance is the distance between the first sensor and the printing line; When the first sensor detects a paper tip on the label paper, determining, based on the second sensor, whether the printing face paper on the label paper has peeled off from the backing paper of the label paper includes: If the first sensor detects the end of the label paper, and the second sensor detects the bottom paper where the gap is located, then the label paper is controlled to return to its original position. Before the paper head returns to the second position where the printing line is located, if the second sensor detects the paper to be printed on the label paper, it is determined that the paper to be printed on the label paper has not been peeled off from the backing paper of the label paper; Before the paper head returns to the second position where the printing line is located, if the second sensor does not detect the paper to be printed on the label paper, it is determined that the paper to be printed on the label paper has been peeled off from the backing paper of the label paper.
59. The method according to claim 53, wherein, The step of controlling the label paper feed based on the peel judgment result corresponding to the face paper to be printed, so as to align the upper seam of the face paper to be printed on the label paper with the first position where the tearing blade is located, includes: If the face paper to be printed is not peeled off from the base paper, the label paper is fed so that the upper seam of the face paper to be printed on the label paper is aligned with the first position where the tearing knife is located; If the face paper to be printed is peeled off from the base paper, the label paper is controlled to be positioned so that the upper seam of the next face paper on the label paper is aligned with the first position where the tearing knife is located.
60. The method according to claim 53, wherein, The first distance between the second sensor and the first sensor is less than the length of the paper to be printed; When the first sensor detects a paper tip on the label paper, determining, based on the second sensor, whether the printing face paper on the label paper has peeled off from the backing paper of the label paper includes: If the first sensor detects the end of the label paper, and the second sensor detects the printing face paper on the label paper, then it is determined that the printing face paper on the label paper has not been peeled off from the backing paper of the label paper.
61. The method according to claim 53, wherein, The paper to be printed is the first sheet of paper on the label paper; The step of controlling the label paper feed based on the peel judgment result corresponding to the face paper to be printed, so as to align the upper seam of the face paper to be printed on the label paper with the first position where the tearing blade is located, includes: When the paper head is aligned with the third position where the first sensor is located and the paper to be printed has not been peeled off from the base paper, the label paper is controlled to extend outward by a first distance so that the upper seam of the paper to be printed on the label paper is aligned with the first position where the tearing blade is located; the first distance is the distance between the first position where the tearing blade is located and the third position where the first sensor is located.
62. The method according to claim 55, wherein, The control of the label paper for paper feeding and positioning, so that the upper seam of the label paper to be printed is aligned with the first position where the tearing blade is located, includes: If the second sensor detects the backing paper corresponding to the gap, the label paper is controlled to move outwards, and after the second sensor detects the upper edge of the paper to be printed, the label paper is controlled to continue moving outwards a second distance. If the second sensor detects the paper to be printed on the label paper, the label paper is controlled to return to its original position, and after the second sensor detects the upper edge of the paper to be printed, the label paper is controlled to move outward a second distance. Wherein, the second distance is the distance between the first position where the paper tearer is located and the fourth position where the second sensor is located.
63. The method according to claim 55, wherein, The control of the label paper for paper feeding and positioning, so that the upper seam of the label paper to be printed is aligned with the first position where the tearing blade is located, includes: If the second sensor detects the backing paper corresponding to the gap, the label paper is controlled to move outwards, and after the second sensor detects the upper edge of the paper to be printed, the label paper is controlled to continue moving outwards a second distance. If the second sensor detects the paper to be printed on the label paper, the label paper is controlled to move outwards. After the second sensor detects the backing paper corresponding to the gap, the label paper is controlled to continue moving outwards until the upper edge of the paper to be printed is detected by the second sensor, at which point the label paper is controlled to move outwards a second distance. Wherein, the second distance is the distance between the first position where the paper tearer is located and the fourth position where the second sensor is located.
64. The method according to claim 62 or 63, wherein, The label printer also includes a motor for driving the label paper feed; If the second sensor detects the backing paper corresponding to the gap, and then controls the label paper to be rolled out, the method further includes: Before the second sensor detects the upper edge of the paper to be printed, it is determined whether the current paper output step number corresponding to the motor exceeds the third preset step number; If so, then issue the first location error message.
65. The method according to claim 62 or 63, wherein, The label printer also includes a motor for driving the label paper feed; If the second sensor detects the paper to be printed on the label paper, and then controls the label paper to return to its original position, the method further includes: Before the second sensor detects the upper edge of the paper to be printed, it is determined whether the current paper feed step number corresponding to the motor exceeds the fourth preset step number; If so, a second location error message will be issued.
66. The method according to claim 53, wherein, The method further includes: Upon receiving a print command, in response to the print command, the step of controlling the label paper to return to the paper is executed until the preset print position of the paper to be printed is aligned with the print line, and then the print of the paper to be printed begins.
67. The method according to claim 1, wherein, Applied to a label printer, the label printer includes a second sensor, a print head, a first sensor, and a paper tearer arranged sequentially in the paper output direction, and the method further includes: The sum of twice the first gap distance and the second gap distance is greater than the sum of the second interval distance and the third interval distance. The printing paper is moved so that the paper head is located at the position of the first sensor. Based on the second sensor, it is determined whether the first side paper of the printing paper has been peeled off from the bottom paper. The first gap distance is the distance between adjacent side papers on the printing paper, the second gap distance is the length of the top paper on the printing paper, the second interval distance is the distance between the first sensor and the print head, and the third interval distance is the distance between the second sensor and the print head. If the first face paper is not peeled off from the back paper, then the first face paper is identified as the first face paper of the printing paper; Move the printing paper so that the upper edge of the first sheet of paper is aligned with the position of the tearing blade; Control the preset distance of the paper return target to align the upper edge of the first sheet of paper with the position of the print head; Based on the preset printing content, the print head is used for printing.
68. The method according to claim 67, wherein, The process of moving the printing paper to position the paper tip at the first sensor location includes: If the first sensor detects the printing paper, it controls the printing paper to move back until the first sensor no longer detects the printing paper.
69. The method according to claim 67, wherein, The process of moving the printing paper to position the paper tip at the first sensor location includes: If the first sensor does not detect the printing paper, the printing paper is controlled to move out until the first sensor detects the printing paper.
70. The method of claim 67, wherein, The step of determining whether the first side of the printed paper has peeled off from the backing paper based on the second sensor includes: If the second sensor detects the bottom paper of the printing paper, the paper is controlled to return to the paper at a first preset distance and it is determined whether the second sensor has detected the top paper of the printing paper. If the second sensor detects the face paper, it determines that the first face paper of the printing paper has not been peeled off from the back paper.
71. The method according to claim 70, wherein, Moving the printing paper to align the upper edge of the first sheet of paper with the tearing blade includes: Control the printing paper to move out of the paper until the paper head is located at the position of the first sensor; The first interval distance of the printing paper output is controlled so that the upper edge of the first sheet of paper is aligned with the position of the tearing blade, wherein the first interval distance is the distance between the tearing blade and the first sensor.
72. The method according to claim 71, wherein, The first preset distance is the first gap distance.
73. The method according to claim 71, wherein, The first preset distance is the second interval distance.
74. The method according to claim 73, wherein, If the second sensor detects the bottom paper of the printing paper, then controlling the printing paper return at a first preset distance and determining whether the second sensor detects the top paper of the printing paper includes: If the second sensor detects the bottom paper of the printing paper and the second interval distance is greater than the first gap distance, then the printing paper is controlled to return to the second interval distance and it is determined whether the second sensor has detected the top paper of the printing paper.
75. The method according to claim 71, wherein, The method further includes: If the second sensor does not detect the face paper, it is determined that the first face paper of the printing paper has been peeled off from the back paper.
76. The method according to claim 67, wherein, The method further includes: If the first face paper is peeled off from the back paper, the printing paper is controlled to move out until the second sensor detects the upper edge of the second face paper and identifies the second face paper as the first face paper of the printing paper, wherein the second face paper is the next face paper after the first face paper.
77. The method according to claim 76, wherein, Moving the printing paper to align the upper edge of the first sheet of paper with the tearing blade includes: The paper output distance is controlled by a second preset distance so that the upper edge of the first sheet of paper is aligned with the position of the tearing blade. The second preset distance is the sum of the first interval distance and the second interval distance, minus half of the first gap distance.
78. The method according to claim 67, wherein, The step of determining whether the first side of the printed paper has peeled off from the backing paper based on the second sensor includes: If the second sensor does not detect the backing paper of the printing paper, it is determined that the first side of the printing paper has not been peeled off from the backing paper.
79. The method according to any one of claims 67-78, wherein, The first sensor is an optical sensor used to detect the difference in light transmittance between the printing paper and the air.
80. The method according to any one of claims 67-78, wherein, The second sensor is an optical sensor used to detect the difference in light transmittance between the backing paper and the front paper of the printing paper.
81. The method according to claim 67, wherein, The target preset distance is the sum of the first interval distance and the second interval distance, minus half of the first gap distance, wherein the first interval distance is the distance between the paper tearer and the first sensor.
82. The method according to claim 67, wherein, The label printer has a transparent viewing window on its casing, which allows the user to view the position of the face paper on the printed paper.
83. The method according to claim 1, wherein, The method further includes: In response to a paper feeding positioning request for a target label, the number of complete sheet materials in the interval distance from the second sensor to the printing line is obtained, wherein the second sensor is located upstream of the printing line in the paper output direction; Determine whether the second sensor is located in a gap or on a sheet of paper; The next sheet to be printed is aligned with the printing line according to the preset paper feeding rules corresponding to the gap or the sheet. The preset paper feeding rules include a paper feeding compensation calculation method based on the number of sheets.
84. The method according to claim 83, wherein, When the second sensor is positioned within the gap, the operation of aligning the next sheet of paper to be printed with the printing line as a reference, according to the preset paper feeding rules corresponding to the gap or the sheet, includes: Calculate the first paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rules corresponding to the gap; Based on the first paper feed compensation distance, align the upper edge of the next paper to be printed with the printing line in the paper output direction.
85. The method according to claim 84, wherein, The step of calculating the first paper feeding compensation distance corresponding to the target label paper according to the preset paper feeding rules corresponding to the gap includes: Based on the interval distance, the number of face sheets, the height of the face sheets in the paper output direction, the height of the gap in the paper output direction, and the distance from the second sensor to the upper edge of the gap where the second sensor is located in the paper output direction when the current printed face sheet ends, the first paper feed compensation distance corresponding to the target label paper is calculated.
86. The method according to claim 84, wherein, Aligning the upper edge of the next sheet of paper to be printed with the printing line in the paper output direction based on the first paper feed compensation distance includes: The target label paper is moved along the paper output direction by the first paper feed compensation distance until the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction.
87. The method according to claim 83, wherein, When the second sensor is positioned within the paper, the step of aligning the next sheet to be printed with the printing line as a reference, according to the preset paper feeding rules corresponding to the gap or the paper, includes: Determine whether the second sensor detects a gap passing through during the printing process of the current printing paper, and determine whether the current printing paper is a single-page print; If the second sensor detects a gap passing through and the current printing paper is a single-page print, the second paper feeding compensation distance corresponding to the target label paper is calculated according to the preset paper feeding rule corresponding to the paper. Based on the second paper feed compensation distance, the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction.
88. The method according to claim 87, wherein, The step of calculating the second paper feed compensation distance corresponding to the target label paper according to the preset paper feed rule corresponding to the face paper includes: Based on the interval distance, the number of face sheets, the height of the face sheets in the paper output direction, the height of the gap in the paper output direction, and the distance from the second sensor to the upper edge of the face sheet where the second sensor is located in the paper output direction when the current printed face sheet finishes printing, the second paper feed compensation distance corresponding to the target label paper is calculated.
89. The method according to claim 87, wherein, The step of aligning the upper edge of the next paper to be printed with the printing line in the paper output direction based on the second paper feed compensation distance includes: The target label is moved along the paper output direction by the second paper feed compensation distance until the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction.
90. The method according to claim 83, wherein, The method further includes: In response to a tearing request for the target label paper, the upper edge of the next sheet to be printed is aligned with the printing line in the paper output direction. The tearing distance corresponding to the target label paper is calculated based on the distance from the first sensor to the tearing blade in the paper output direction, the distance from the printing line to the first sensor in the paper output direction, and the height of the gap in the paper output direction. The printing line is located upstream of the first sensor in the paper output direction, and the first sensor is located upstream of the tearing blade in the paper output direction. The target label is moved along the paper output direction by the tearing distance, and the current printed paper is torn off from the target label by the tearing blade.
91. The method according to claim 90, wherein, After the current printed face paper is torn off from the target label paper using the paper tearer, the method further includes: The target label paper is moved by the tearing distance in the opposite direction of the paper output direction until the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction.
92. The method according to claim 91, wherein, The method further includes: When a printing job is completed, a tear request is generated for the target label paper, and the printing job includes the printing content of at least one sheet of the label paper.
93. The method according to claim 83, wherein, Prior to responding to a paper feed positioning request for a target label, the method further includes: Based on the interval distance, the height of the face paper in the paper output direction, and the height of the gap in the paper output direction, the number of intact face papers of the target label paper within the interval distance is calculated.
94. The method according to claim 83, wherein, The method further includes: When the second sensor moves in the face paper or the gap, the motor counts the number of steps. If the counted steps are greater than the preset number of steps the motor takes at the corresponding position, a paper jam warning message is generated and sent to the user.
95. The method according to claim 83, wherein, The distance from the printing line to the tearing blade in the paper output direction is greater than the height of the face paper in the paper output direction.
96. The method according to claim 1, wherein, The method further includes: In response to a paper feeding positioning request for the target label paper, it is determined whether the second sensor detects a gap passing through during the current printing process of the printing paper. The second sensor is located upstream of the printing line in the paper output direction. If the second sensor does not detect any gap passing through, the next sheet of paper to be printed is aligned with the second sensor as a reference, and the next sheet of paper to be printed is aligned with the printing line as a reference according to the first preset paper feeding rule. If the second sensor detects a gap passing through, the next sheet of paper to be printed is aligned with the printing line according to the second preset paper feeding rule.
97. The method according to claim 96, wherein, The second sensor did not detect any gap passing through, including: The second sensor is located in the gap; Alternatively, the second sensor may be positioned within the paper, and the second sensor may not detect any gaps passing through during the printing process of the current paper.
98. The method according to claim 96, wherein, The step of aligning the next sheet of paper to be printed with the second sensor as a reference includes: Align the upper edge of the next sheet of paper to be printed with the second sensor in the paper output direction.
99. The method according to claim 98, wherein, Aligning the upper edge of the next sheet of paper to be printed with the second sensor in the paper output direction includes: The target label paper is moved along the paper output direction until the second sensor detects the upper edge of the next paper to be printed in the paper output direction.
100. The method according to claim 99, wherein, When the second sensor is positioned within the paper, and the second sensor does not detect any gaps passing through during the printing process of the current paper, moving the target label paper along the paper output direction until the second sensor detects the upper edge of the next paper to be printed in the paper output direction includes: The target label paper is moved along the paper output direction until the second sensor first detects the lower edge of the current printed paper in the paper output direction; The target label paper continues to move along the paper output direction until the second sensor detects the upper edge of the next paper to be printed in the paper output direction.
101. The method according to claim 96, wherein, The step of aligning the next sheet of paper to be printed with the printing line as a reference according to the first preset paper feeding rule includes: The third paper feed compensation distance corresponding to the target label paper is determined according to the first preset paper feed rule, and the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction based on the third paper feed compensation distance.
102. The method according to claim 101, wherein, The step of determining the third paper feed compensation distance corresponding to the target label paper according to the first preset paper feed rule, and aligning the upper edge of the next paper to be printed with the printing line in the paper output direction according to the third paper feed compensation distance, includes: The third paper feed compensation distance corresponding to the target label paper is determined based on the interval distance from the second sensor to the printing line; The target label paper is moved along the paper output direction by the third paper feed compensation distance until the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction.
103. The method according to claim 96, wherein, The second sensor detects the passage through the gap, including: The second sensor is located within the paper, and the second sensor detects a gap passing through during the printing process of the current paper.
104. The method according to claim 96, wherein, The step of aligning the next sheet of paper to be printed with the printing line as a reference according to the second preset paper feeding rule includes: When the current printing paper is a single page, the fourth paper feed compensation distance corresponding to the target label paper is calculated according to the second preset paper feed rule, and the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction based on the fourth paper feed compensation distance.
105. The method according to claim 104, wherein, The step of calculating the fourth paper feed compensation distance corresponding to the target label paper according to the second preset paper feed rule, and aligning the upper edge of the next paper to be printed with the printing line in the paper output direction based on the fourth paper feed compensation distance, includes: Based on the distance between the second sensor and the printing line, and the distance between the second sensor and the upper edge of the paper where the second sensor is located in the paper output direction when the current printing paper ends, the fourth paper feed compensation distance corresponding to the target label paper is calculated. The target label paper is moved along the paper output direction by the fourth paper feed compensation distance until the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction.
106. The method according to claim 96, wherein, The method further includes: In response to a tearing request for a target label, the upper edge of the next sheet to be printed is aligned with the printing line in the paper output direction. The tearing distance corresponding to the target label is calculated based on the distance from the first sensor to the tearing blade in the paper output direction, the distance from the printing line to the first sensor in the paper output direction, and the height of the gap in the paper output direction. The printing line is located upstream of the first sensor in the paper output direction, and the first sensor is located upstream of the tearing blade in the paper output direction. The target label is moved along the paper output direction by the tearing distance, and the current printed paper is torn off from the target label by the tearing blade.
107. The method according to claim 106, wherein, After the current printed face paper is torn off from the target label paper using the paper tearer, the method further includes: The target label paper is moved by the tearing distance in the opposite direction of the paper output direction until the upper edge of the next paper to be printed is aligned with the printing line in the paper output direction.
108. The method according to claim 96, wherein, The method further includes: When the second sensor moves in the face paper or the gap, the motor counts the number of steps. If the counted steps are greater than the preset number of steps the motor takes at the corresponding position, a paper jam warning message is generated and sent to the user.
109. The method according to claim 1, wherein, Applied to a label printer that includes sensors, the method further includes: After controlling the label paper feed to complete one printing of the target content on the first paper area, it is determined whether the first gap area is located at the position of the sensor; When it is determined that the first gap area is located at the position of the sensor, it is determined whether the label paper is a short label paper; When it is determined that the label paper is a short label paper, the first compensation distance of the label paper feed is controlled so that the printing line of the label printer is aligned with the upper edge of the second paper area; wherein, the first compensation distance is related to the entry distance corresponding to the entry signal for the first gap area detected by the sensor.
110. The method according to claim 109, wherein, When determining whether the first gap area is located at the position of the sensor, determining whether the label paper is a short label paper includes: When it is determined that the first gap area is located at the position of the sensor, it is determined whether the sum of the lengths of a single face paper area and a single gap area of the label paper is less than the distance between the sensor and the printing line; The label is determined to be a short label when the sum of the lengths of a single face area and a single slit area of the label is less than the distance between the sensor and the printing line of the label printer.
111. The method according to claim 109, wherein, The first compensation distance is determined based on the first target distance, the total length of the N paper areas and N-1 gap areas included in the first target distance, and the entry distance corresponding to the entry signal detected by the sensor for the first gap area; wherein, the first target distance is the distance between the sensor and the printing line.
112. The method according to claim 109, wherein, After controlling the label paper feed to complete one printing of the target content on the first paper area, and determining whether the first gap area is located at the sensor position, the method further includes: When it is determined that the first gap area is not located at the position of the sensor, it is determined whether the detection result of the sensor during the paper feeding process meets the preset conditions; When the sensor's detection result during the paper feeding process meets the preset conditions, it is determined whether the label paper is a short label paper; When it is determined that the label paper is a short label paper, the second compensation distance of the label paper feed is controlled so that the printing line is aligned with the upper edge of the second paper area.
113. The method according to claim 112, wherein, When it is determined that the first gap area is not located at the position of the sensor, determining whether the detection result of the sensor during the paper feeding process meets the preset conditions includes: When it is determined that the first gap area is not located at the position of the sensor, the sensor is used to determine whether the sensor detects the entry and exit signals for the second gap area during the paper feeding process based on the detection results of the sensor. When the sensor detects the infeed signal and the outfeed signal for the second gap area during the paper feeding process, it determines whether there is a case of cross-page printing. When the sensor detects the in-gap signal and out-gap signal for the second gap area during the paper feeding process, and there is no cross-page printing, the sensor's detection result is determined to meet the preset condition.
114. The method according to claim 113, wherein, When the sensor detects the infeed signal and outfeed signal for the second gap area during the paper feeding process, determining whether there is cross-page printing includes: When the sensor detects an inlet and outlet signal for the second gap region during the paper feeding process, it determines whether the outlet distance for the second gap region is greater than a first target distance based on the outlet signal; wherein, the first target distance is the distance between the sensor and the printing line, and the second gap region is the gap region closest to the sensor among the multiple gap regions detected by the sensor during the paper feeding process. When it is determined that the gap distance for the second gap area is greater than the distance between the sensor and the printing line of the label printer, it is determined that there is a case of cross-page printing.
115. The method according to claim 112, wherein, The second compensation distance is determined based on the first target distance, the total length of the N paper gap combination areas included in the first target distance, and the seam exit distance corresponding to the seam exit signal for the second gap area; the paper gap combination area includes a paper area and a gap area, and the first target distance is the distance between the sensor and the printing line.
116. The method according to claim 109, wherein, The label printer also includes a paper tearer, and the sensor and the paper tearer are arranged sequentially along the paper output direction; Before determining whether the first gap area is located at the sensor position after controlling the label paper feed to complete one printing of the target content on the first paper area, the method further includes: In response to a printing command instructing the label printer to begin a printing task, the label paper is fed until the lower edge of the third paper area is aligned with the position of the sensor. The preset return distance of the label paper is controlled, and the target compensation distance of the label paper feed is continued to be controlled so that the tearing blade is located in the third gap area; wherein, the distance between the sensor and the tearing blade is less than or equal to the length of the face paper area of the label paper.
117. The method according to claim 116, wherein, The sensor includes a second sensor, and the second sensor, the printing line, and the paper tearing knife are arranged sequentially along the paper output direction, with a second target distance between the second sensor and the printing line; The control of the preset return distance of the label paper and the continued control of the target compensation distance of the label paper feed, so that the tearing blade is located in the third gap area, includes: The label paper return distance is controlled to a first target return distance so that the printing line is aligned with the upper edge of the third paper area; wherein, the preset return distance includes the first target return distance, which is the difference between the length of the third paper area and the second target distance; Continue to control the label paper feed at the third compensation distance so that the tearing blade is located in the third gap area; wherein, the target compensation distance includes the third compensation distance.
118. The method according to claim 117, wherein, The third compensation distance is the difference between the third target distance and the length of the first gap region with a preset weight, and the third target distance is the distance between the paper tearer and the printing line.
119. The method according to claim 116, wherein, The sensor includes a first sensor, and the printing line, the first sensor, and the paper tearing blade are arranged sequentially along the paper output direction; The control of the preset return distance of the label paper and the continued control of the third compensation distance of the label paper feed, so that the tearing blade is located in the third gap area, includes: The second target return distance of the label paper is controlled so that the upper edge of the third paper area is aligned with the first sensor; wherein, the preset return distance includes the second target return distance, which is the length of the third paper area; Continue to control the label paper feed at the fourth compensation distance so that the tearing blade is located in the third gap area; wherein, the target compensation distance includes the fourth compensation distance.
120. The method according to claim 119, wherein, The fourth compensation distance is the difference between the fourth target distance and the length of the third gap region with a preset weight, and the fourth target distance is the distance between the first sensor and the paper tearing knife.
121. The method according to claim 1, wherein, The method is applied to a label printer, which includes a second sensor, a print head, a first sensor, and a paper tearer arranged sequentially in the paper output direction. The print head is provided with printing lines. The method further includes: The upper gap area of the first face paper on the printing paper is driven to move along the paper output direction to the paper tearing blade. The printing paper includes a base paper and multiple face papers attached to the base paper, and a gap is formed between two adjacent face papers. The first sensor determines the paper head detection status, and based on the paper head detection status, the second sensor determines the paper peeling status of the first sheet of paper on the paper.
122. The method according to claim 121, wherein, The step of determining the paper head detection status using a first sensor and determining the paper peeling status for the first sheet of paper using a second sensor based on the paper head detection status includes: The printing paper tip detection status is detected by the first sensor; If the paper head detection status of the printing paper is "paper head has appeared", then the second sensor determines whether the first sheet of paper on the printing paper has been peeled off from the bottom paper. If the first sheet of face paper on the printing paper is peeled off from the backing paper, then the face paper peeling status of the first sheet of face paper is determined to be the face paper peeled type.
123. The method according to claim 122, wherein, After determining that the peeling status of the first sheet of tissue paper is "sheet paper peeled off", the process further includes: The next sheet of the first sheet of paper is updated to the first sheet of the printing paper, and the step of driving the upper slit area of the first sheet of paper on the printing paper to move along the paper output direction to the tearing blade is performed.
124. The method according to claim 121, wherein, The step of determining the paper head detection status using a first sensor and determining the paper peeling status for the first sheet of paper using a second sensor based on the paper head detection status includes: The printing paper tip detection status is detected by the first sensor; If the paper head detection status is "paper head has appeared", then the second sensor determines whether a gap or the bottom paper has been detected. If a gap or the bottom paper is detected, the printing paper is driven to move a third preset distance along the return direction, and the presence of the top paper is detected by the second sensor. If the second sensor detects the presence of face paper, it determines that the face paper peeling status of the first face paper on the printing paper is of the face paper not peeled type.
125. The method according to claim 124, wherein, After determining that the first sheet of face paper on the printing paper is in the face paper peeling state as unpeeled, the method further includes: The printing paper is driven to exit along the paper exit direction. After the first sensor detects the paper head, the printing paper is driven to move a fourth preset distance along the paper exit direction. The fourth preset distance is used to indicate that the upper seam area of the first sheet of paper on the printing paper moves to the tearing blade.
126. The method according to claim 125, wherein, The third preset distance is the gap distance of the slit.
127. The method according to claim 126, wherein, The fourth preset distance is the distance between the first sensor and the paper tearer.
128. The method according to claim 125, wherein, The third preset distance is the distance between the first sensor and the printing line.
129. The method according to claim 128, wherein, The third preset distance is greater than or equal to the gap distance of the slit, and the fourth preset distance is the distance between the first sensor and the paper tearing knife.
130. The method of claim 124, wherein, After detecting the presence of tissue paper using the second sensor, the method further includes: If the second sensor does not detect the face paper, it determines that the face paper peeling status of the first face paper on the printing paper is the face paper peeled type, and drives the printing paper to move along the paper output direction; If the second sensor detects the upper edge position of the next sheet of the first sheet, it drives the printing paper to move a fifth preset distance along the paper output direction. The fifth preset distance is used to indicate that the upper gap area of the next sheet reaches the tearing blade. The next sheet of paper is updated to the first sheet of paper in the printout.
131. The method according to claim 130, wherein, Before driving the printing paper to move a fifth preset distance along the paper output direction, the process also includes: The distance between the first sensor and the paper tearer, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent sheets on the printing paper are obtained. The fifth preset distance is determined by a calculation formula based on the distance between the first sensor and the paper tearer, the distance between the first sensor and the printing line, the distance between the second sensor and the printing line, and the gap distance between two adjacent face sheets on the printing paper; The calculation formula is as follows: A = B1 + B2 + B3 - H1 / 2 Wherein, B1 is the distance between the first sensor and the paper tearer, B2 is the distance between the first sensor and the printing line, B3 is the distance between the second sensor and the printing line, and H1 is the gap distance between two adjacent sheets on the printing paper.
132. The method according to claim 122, wherein, If the paper head detection status is "paper head has appeared", then the second sensor determines whether the first sheet of face paper on the printing paper has been peeled off from the backing paper to obtain the face paper peeling status, including: If the paper head detection status of the printing paper is "paper head has appeared" and the second sensor does not detect any gap or the bottom paper, then the paper head peeling status of the first sheet of paper on the printing paper is determined to be "paper head not peeled".
133. The method according to claim 121, wherein, The height of the printing paper, the gap distance between the printing papers, the distance between the first sensor and the printing line, and the distance between the printing line and the second sensor satisfy the following inequality: H2 + 2 * H1 ≥ B2 + B3 Wherein, H2 is the height of the printing paper, H1 is the gap distance between the printing papers, B2 is the distance between the first sensor and the printing line, and B3 is the distance between the printing line and the second sensor.
134. The method according to claim 121, wherein, After the upper seam area of the first sheet of paper on the driving printing paper moves along the paper output direction to the tearing blade, the method further includes: The upper edge of the first sheet of paper is driven to move along the paper return direction to the printing line.
135. The method according to claim 134, wherein, After the first sheet of paper moves along the return direction from its upper edge to the printing line, the process further includes: Once the printing of the first sheet of paper is complete, the next sheet of paper after the first sheet of paper is updated to be the first sheet of the printed paper. The upper edge of the first sheet of paper on the printing paper is driven to move along the paper output direction toward the printing line, and the upper edge position of the first sheet of paper is detected by the second sensor. If the second sensor detects the position of the upper edge of the paper, it drives the printing paper to move a sixth preset distance along the paper output direction. The sixth preset distance is used to indicate that the position of the upper edge of the paper is aligned with the printing line.
136. The method according to claim 135, wherein, The sixth preset distance is the distance between the second sensor and the printing line.
137. The method according to claim 135, wherein, The method further includes: During the process of detecting the position of the upper edge of the first sheet of the printing paper by the second sensor, the first motor step number of the label printer motor when the second sensor detects the gap position or the bottom paper is recorded, and the second motor step number of the label printer motor when the second sensor detects the position of the upper edge of the first sheet of the printing paper is recorded. If the difference between the number of steps of the second motor and the number of steps of the first motor is greater than a preset number of steps, a paper feed fault prompt will be issued for the label printer.
138. A positioning device for the gaps in a label paper, wherein, The device includes: The size determination module is used to determine the size of the label paper's face sheet and, based on the face sheet size, determine a preset face sheet movement distance. Motion control module for paper-based transport The path is used to move the label paper, and the moving distance of the label paper is calculated based on the position of the label paper's face paper. The gap detection module is used to determine whether the moving distance is greater than or equal to the preset paper moving distance, and to detect whether there is a gap signal corresponding to the label paper; The gap confirmation module is used to determine the gap position indicated by the gap signal as the actual gap position if the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists.
139. A computer storage medium, wherein, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the method as described in any one of claims 1 to 137.
140. An electronic device, wherein, include: Processor and memory; The memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1 to 137.