Paper feeding positioning method and related equipment
Through sensor detection of gap area signals and automated positioning calibration, the incomplete content caused by the printing equipment on the label paper due to paper-trapping errors is solved, and an efficient printing process and excellent user experience is achieved.
Patent Information
- Application Number
- CN202510569230.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-07-22
AI Technical Summary
When existing printing equipment prints label paper, the printed content is often unable to be fully displayed in the surface area of the label paper due to paper-trapping errors, and problems such as text being cut off, image distortion or typography are occurring, which affects the user experience and increases operational complexity.
By using sensors to detect the in-slit and out-slit signals of the gap area during the printing process, we can determine whether cross-page printing occurs, and control the paper to remove the label paper to adjust the position when the cross-page situation occurs, ensuring that the printing line is located in the correct surface paper area, and using automated positioning and calibration methods to avoid manual intervention.
It realizes automatic positioning and calibration during the printing process, ensures that the printed content is fully displayed, avoids waste of label paper and user time, and improves printing efficiency and user experience.
Smart Images

Figure CN120348082A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of printer control, and particularly to a paper feeding and positioning method and related devices. Background Art
[0002] When using a printing device to print on label paper, there are often problems where not all the information required by the user can be printed completely and accurately on one page of label paper. The reasons for this situation may be that, in addition to the possibility that the printed content exceeds the size limit of the label paper, there may also be positioning errors during paper feeding. During paper feeding, if the printing line indicating the starting position of printing is not within the face paper area of the label paper, or if the printing line is too close to the lower edge of the face paper area of the label paper, after starting to print based on this printing line, the printed content cannot be fully displayed within the face paper area of the label paper.
[0003] When the printed information cannot be fully displayed within the face paper area of the label paper, phenomena such as truncated text, distorted images, or chaotic layout may occur. This not only affects the appearance and readability of the label but also seriously affects the user experience. The user may need to manually adjust the printing settings and conduct repeated tests to obtain an ideal printing effect, which not only wastes time but also increases the complexity of the operation. Summary of the Invention
[0004] Embodiments of this application provide a paper feeding and positioning method and related devices, which are applicable to a printing device including a first sensor and can solve the above problems. The technical solutions are as follows:
[0005] In a first aspect, embodiments of this application provide a paper feeding and positioning method, which includes:
[0006] When controlling the label paper to feed to complete a printing of target content on a first face paper area, determine whether the first sensor detects an in-seam signal and an out-seam signal for a first seam area;
[0007] When it is determined that the first sensor detects an in-seam signal and an out-seam signal for the first seam area, determine whether a case of cross-page printing occurs;
[0008] When it is determined that a case of cross-page printing occurs, control the label paper to feed so that the first sensor detects an in-seam signal and an out-seam signal for a second seam area until the second face paper area is at the position of the first sensor, and then control the label paper to continue feeding a first compensation distance;
[0009] Start printing the target content on the second face paper area.
[0010] Second aspect, embodiments of the present application provide a paper feeding and positioning device applicable to a printing device including a first sensor. The device includes:
[0011] A first positioning module configured to, when controlling the label paper to feed and complete a printing of target content on a first paper area, determine whether the first sensor detects an in-seam signal and an out-seam signal for a first seam area;
[0012] A second positioning module configured to, when determining that the first sensor detects an in-seam signal and an out-seam signal for the first seam area, determine whether a case of cross-page printing occurs;
[0013] A third positioning module configured to, when determining that a case of cross-page printing occurs, control the label paper to feed so that the first sensor detects an in-seam signal and an out-seam signal for a second seam area until a second paper area is located at the position of the first sensor, and then control the label paper to continue feeding a first compensation distance;
[0014] A fourth positioning module configured to start printing the target content on the second paper area.
[0015] Third aspect, embodiments of the present application provide a computer storage medium storing multiple instructions, and the instructions are suitable for being loaded and executed by a processor to perform the above method steps.
[0016] Fourth aspect, embodiments of the present application provide a computer program product storing multiple instructions, and the instructions are suitable for being loaded and executed by a processor to perform the above method steps.
[0017] Fifth aspect, embodiments of the present application provide an electronic device, which may include: a processor and a memory; wherein, the memory stores a computer program, and the computer program is suitable for being loaded and executed by the processor to perform the above method steps.
[0018] The beneficial effects brought by the technical solutions provided by some embodiments of the present application at least include:
[0019] The printing device controls the label paper to feed, and after completing one print of the target content on the first paper area, it determines that the first sensor detects the in-seam signal and the out-seam signal for the first seam area, that is, determines that the first seam area of the label paper passes through the position of the first sensor, and further determines whether cross-page printing occurs. In the case where cross-page printing is determined to occur, the label paper is controlled to feed in the paper-out direction so that the first sensor detects the in-seam signal and the out-seam signal for the second seam area. When the second paper area is located at the position of the first sensor, the label paper is controlled to feed a first compensation distance further, so as to ensure that the printing line of the printing device is on the second paper area, preferably aligned with the upper edge of the second paper area.
[0020] Furthermore, based on the printing line located on the second paper area, the target content is printed on the second paper area. During the printing and paper-feeding process of the present application, by combining the detection results of the first sensor and determining whether cross-page printing occurs during the printing process, a positioning and calibration scheme matching the above situation is determined, so as to perform positioning and calibration based on the matching positioning and calibration scheme when incorrect printing occurs due to positioning errors. Different detection results combined with the situation of whether cross-page printing occurs match different positioning and calibration schemes. Based on the specific content of the positioning and calibration scheme, automatic positioning and calibration are performed by controlling the label paper to feed at least a first compensation distance, ensuring that the next print of the target content can proceed normally, avoiding waste of label paper and user time, and eliminating the need for manual calibration. Description of the Drawings
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0022] Figure 1 is a schematic diagram of a scenario for controlling the paper feed of label paper provided by an embodiment of the present application;
[0023] Figure 2 is a flowchart of a paper-feed positioning method provided by an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of a scenario for controlling the paper feed of label paper provided by an embodiment of the present application;
[0025] Figure 4 is a flowchart of a paper-feed positioning method provided by an embodiment of the present application;
[0026] Figure 5It is a schematic flowchart of a paper feeding positioning method provided by an embodiment of the present application;
[0027] Figure 6 It is a schematic diagram of a scenario for controlling the paper feeding of short label paper provided by an embodiment of the present application;
[0028] Figure 7 It is a schematic diagram of a scenario for controlling the paper feeding of long label paper provided by an embodiment of the present application;
[0029] Figure 8 It is a schematic flowchart of a paper feeding positioning method provided by an embodiment of the present application;
[0030] Figure 9 It is a schematic diagram of a scenario for controlling the paper feeding of label paper provided by an embodiment of the present application;
[0031] Figure 10 It is a schematic structural diagram of a paper feeding positioning device provided by an embodiment of the present application;
[0032] Figure 11 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0033] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0034] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be construed as indicating or implying relative importance. In the description of the present application, it should be noted that unless otherwise clearly specified and limited, the terms "include" and "have" 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 optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances. In addition, in the description of the present application, unless otherwise stated, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0035] The present application will be described in detail below with reference to specific embodiments.
[0036] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the features, information, and data involved in the present application are all obtained under full authorization.
[0037] A label printing device is a device specifically used for printing various labels, barcodes, QR codes, RFID tags, etc. It is widely used in fields such as retail, warehousing, logistics, manufacturing, and healthcare, mainly for marking contents such as goods, items, and documents to facilitate management, tracking, and identification.
[0038] When using a printing device to print on a label paper, there is often a problem that all the information required by the user cannot be printed completely and accurately on one label paper. The reasons for this situation may include not only that the printing content exceeds the size limit of the label paper, but also that there is a positioning error during the paper feeding process. During the paper feeding process, the printing line representing the starting position of printing is not in the face paper area of the label paper, or the printing line is too close to the lower edge of the face paper area of the label paper, which all result in that after starting printing based on this printing line, the printing content cannot be fully displayed within the face paper area of the label paper.
[0039] When the printing information cannot be fully displayed within the face paper area of the label paper, phenomena such as text being truncated, images being distorted, or typesetting being chaotic may occur. This not only affects the appearance and readability of the label, but also seriously affects the user experience. The user may need to manually adjust the printing settings and repeatedly experiment to obtain an ideal printing effect, which not only wastes time but also increases the complexity of the operation.
[0040] Based on the above problems, the embodiments of the present application provide a paper feeding positioning method to solve. As Figure 1 shown, Figure 1 is a schematic diagram of a scenario for controlling the paper feeding of a label paper provided by the embodiments of the present application. In this embodiment, the printing device at least includes a first sensor 101 and a print head 102. The first sensor 101 and the print head 102 are arranged in sequence along the paper output direction, that is, the first sensor 101 is located downstream of the label paper 100, and the print head 102 is located upstream of the label paper 100.
[0041] The first sensor 101 can detect that the area type at the position of the first sensor 101 at this time is a facial tissue area or a slit area. The type of the first sensor 101 can be any one such as an infrared sensor, a laser sensor, etc., and the embodiments of the present application do not impose any restrictions on this. Based on the print head 102, the printing line can be positioned on the label paper 100, and the printing device starts the printing task based on the printing line.
[0042] Figure 1 As shown, the label paper 100 at least includes a first slit area, a second slit area, a first facial tissue area, and a second facial tissue area. It can be understood that Figure 1 The number of the shown slit areas and label areas is only for illustration, and the embodiments of the present application do not impose any restrictions on this.
[0043] Such as Figure 2 As shown, it is a schematic flowchart of a paper feeding and positioning method provided by an embodiment of the present application. This method can be implemented depending on a computer program and can run on a paper feeding and positioning device. This computer program can be integrated in an application or run as an independent tool class application.
[0044] Specifically, this paper feeding and positioning method includes:
[0045] S101. When controlling the label paper to feed to complete one-time printing of target content on the first facial tissue area, determine whether the first sensor detects an in-slit signal and an out-slit signal for the first slit area.
[0046] Control the label paper 100 to feed in the paper output direction while printing the target content. When it is detected that one-time printing of the target content is completed on the first facial tissue area, determine whether the first sensor detects an in-slit signal and an out-slit signal for the first slit area according to the detection result of the first sensor during the above paper feeding process.
[0047] When the first sensor detects an in-slit signal for the first slit area, it indicates that the upper edge of the slit area of the label paper passes through the position of the first sensor until the slit area aligns with the position of the first sensor. When the first sensor detects an out-slit signal for the first sensor, it indicates that the lower edge of the slit area of the label paper passes through the position of the first sensor until the facial tissue area adjacent to the slit area aligns with the position of the first sensor.
[0048] S102. When it is determined that the first sensor detects an in-slit signal and an out-slit signal for the first slit area, determine whether there is a case of cross-page printing.
[0049] When it is determined that the first sensor detects an in-slit signal and an out-slit signal for the first slit area, it is determined that during the process of printing the target content, the first slit area passes through the position of the first sensor. Such as Figure 1As shown, start printing the target content at the previous sheet area of the first sheet area, and when the printing of the target content on the first sheet area is completed, determine that the first sensor 101 detects the in-seam signal and the out-seam signal for the first seam area.
[0050] Cross-page printing can be understood as a situation where the target content is not in the same sheet area but is printed on at least two sheet areas. During the printing paper feeding process, even when the first sensor detects the in-seam signal and the out-seam signal for the seam area, it does not necessarily mean that cross-page printing has occurred. For example, as Figure 1 shown, start printing the target content from the position of the printing line at this time. During the printing paper feeding process, the first sensor 101 detects the in-seam signal and the out-seam signal for the second seam area. However, the target content can be completed on the first sheet area, and there is no cross-page printing situation at this time.
[0051] Regarding how to detect whether cross-page printing occurs, in one embodiment, when it is determined that the first sensor detects the in-seam signal and the out-seam signal for the first seam area, judge whether the out-seam distance for the first seam area is greater than the first distance according to the out-seam signal; wherein, the first distance is the distance between the printing line of the printing device and the first sensor; when it is determined that the out-seam distance is greater than the first distance, determine that cross-page printing has occurred.
[0052] As Figure 1 shown, the first distance is the distance between the printing line 102 of the printing device and the first sensor 101. The out-seam distance is determined based on the out-seam signal for the first seam area, that is, the lower edge of the first seam area passes through the first sensor 101, and when the paper feeding stops, the distance between the lower edge of the first seam area and the first sensor 101.
[0053] When it is determined that the out-seam distance is greater than the first distance, determine that cross-page printing has occurred. When it is determined that the seam distance is less than or equal to the first distance, determine that cross-page printing has not occurred.
[0054] S103. When it is determined that cross-page printing has occurred, control the label paper to feed, so that the first sensor detects the in-seam signal and the out-seam signal for the second seam area until the second sheet area is located at the position of the first sensor, and then control the label paper to continue feeding for the first compensation distance.
[0055] When it is determined that the first sensor detects the in-seam signal and out-seam signal for the first seam area and there is cross-page printing, a positioning and calibration scheme matching the above situation is determined. Specifically, control the label paper to feed along the paper output direction, and in the process of paper feeding, obtain the detection result of the first sensor in real time to determine that the first sensor detects the in-seam signal and out-seam signal for the second seam area, and the second face paper area is at the position of the first sensor. Further, control the label paper to continue feeding a first compensation distance so that the printing line is located on the second face paper area. For example, control the label paper to continue feeding a first compensation distance so that the printing line aligns with the upper edge of the second face paper area.
[0056] As Figure 3 shown, Figure 3 is a schematic diagram of a scenario for controlling the paper feeding of label paper provided by an embodiment of the present application. Control the label paper 100 to feed along the paper output direction so that the first sensor 101 detects the in-seam signal and out-seam signal for the second seam area, and the second face paper area of the label paper 100 is at the position of the first sensor 101. Further, control the label paper 100 to continue feeding a first compensation distance so that the printing line is located on the second face paper area.
[0057] In this embodiment, the first compensation distance is the first distance between the printing line and the first sensor. Specifically, when the first sensor 101 detects the in-seam signal and out-seam signal for the second seam area and determines that the upper edge of the second face paper area aligns with the position of the first sensor 101, control the label paper 100 to continue feeding a first compensation distance with a value of the first distance, so as to ensure that the printing line is located in the first face paper area and at the upper edge of the second face paper area.
[0058] S104. Start printing the target content on the second face paper area.
[0059] Based on the printing line located in the second face paper area, start printing the target content on the second face paper area, thereby completing the printing task including multiple target printing tasks.
[0060] In the present application, the printing device controls the paper feeding of the label paper. After completing one-time printing of the target content on the first face paper area, it is determined that the first sensor detects the in-seam signal and out-seam signal for the first seam area, that is, it is determined that the first seam area of the label paper passes through the position of the first sensor, and further determines whether there is cross-page printing. In the case of determining cross-page printing, control the label paper to feed along the paper output direction so that the first sensor detects the in-seam signal and out-seam signal for the second seam area. When the second face paper area is located at the position of the first sensor, control the label paper to continue feeding a first compensation distance, so as to ensure that the printing line of the printing device is located on the second face paper area. For example, the printing line is located at a position close to the upper edge of the second face paper area.
[0061] Further, based on the printing line located on the second backing paper area, start printing the target content on the second backing paper area. During the printing and paper feeding process of this application, in combination with the detection result of the first sensor and judging whether there is cross-page printing during the printing process, determine the positioning and calibration scheme that matches the above situation, so as to perform positioning and calibration based on the matching positioning and calibration scheme when wrong printing is caused by positioning errors. Different detection results are combined with whether there is cross-page printing to match different positioning and calibration schemes. Based on the specific content of this positioning and calibration scheme, automatically perform positioning and calibration by controlling the label paper to feed at least the first compensation distance, ensuring that the next printing of the target content can proceed normally, avoiding waste of label paper and user time, and no manual calibration is required.
[0062] In one embodiment, based on Figures 1 - 3 the embodiment shown, S103 includes the following steps:
[0063] When cross-page printing occurs, control the label paper to feed until the lower edge of the first backing paper area aligns with the position of the first sensor; control the label paper to feed the first number of steps, and judge whether the first sensor detects the out-seam signal for the second slit area; when the first number of steps of paper feeding is determined and the first sensor does not detect the in-out seam signal for the second slit area, send a prompt message indicating that the paper feeding into the seam fails.
[0064] Perform paper feeding and positioning compensation when the first sensor detects the in-seam signal and out-seam signal for the first slit area and cross-page printing occurs, and control the label paper to feed. During the paper feeding process, the detection result of the first sensor is obtained in real time to determine that the lower edge of the second slit area aligns with the position of the first sensor.
[0065] Further, control the label paper to continue feeding to achieve paper feeding into the seam of the second slit area. During the above process, judge whether the first sensor detects the in-seam signal for the second slit area after the first number of steps of label paper feeding. The first number of steps can be set to any reasonable number. When the first sensor does not detect the in-seam signal for the second slit area, it is determined that the second slit area is still not at the first sensor after the first number of steps of label paper feeding, and the paper feeding into the seam fails this time.
[0066] Sending a prompt message indicating that the paper feeding into the seam fails can be sent to the user or to the controller of the printing device. The type of this prompt message can be a voice message or a text message, and this embodiment does not make any restrictions on this.
[0067] In this embodiment, a method for detecting whether the label paper fails to enter the slot during the process of controlling the label paper to feed for positioning calibration is provided. For example, whether the label paper feeding is stuck, resulting in the failure of the label paper to enter the slot. The above method enables the user to promptly discover and solve the problem of paper feeding failure, thereby enabling the next printing of the target content.
[0068] In one embodiment, based on Figures 1 - 3 the embodiment shown, S103 includes the following steps:
[0069] When cross-page printing occurs, control the label paper to feed so that the first sensor detects an out-of-slot signal for the second slot area until the lower edge of the second slot area aligns with the position of the first sensor; control the label paper to feed for a second number of steps, and determine whether the first sensor detects an out-of-slot signal for the second slot area; when it is determined that the second number of steps of paper feeding is completed and the first sensor does not detect an out-of-slot signal for the second slot area, send a prompt message indicating that the paper feeding out-of-slot fails.
[0070] During paper feeding for positioning compensation when the first sensor detects an in-slot signal and an out-of-slot signal for the first slot area and cross-page printing occurs, control the label paper to feed. During the paper feeding process, the detection result of the first sensor is obtained in real time, and it is determined that the first sensor obtains an in-slot signal for the second slot area, and the lower edge of the second slot area aligns with the position of the first sensor.
[0071] Further, control the label paper to continue feeding to achieve paper feeding out-of-slot for the second slot area. During the above process, determine whether the first sensor detects an out-of-slot signal for the second slot area after judging the second number of steps of label paper feeding. The first number of steps can be any reasonably set number of steps. When the first sensor does not detect an out-of-slot signal for the second slot area, it is determined that the second slot area is still at the first sensor after the second number of steps of label paper feeding, and the second paper area cannot be aligned with the position of the first sensor, and the paper feeding out-of-slot fails this time.
[0072] Sending a prompt message indicating that the paper feeding out-of-slot fails can be sent to the user or to the controller of the printing device. The type of this prompt message can be a voice message or a text message, and this embodiment does not make any restrictions on this.
[0073] In this embodiment, a method for detecting whether the label paper fails to exit the slot during the process of controlling the label paper to feed for positioning calibration is provided. For example, whether the label paper feeding is stuck, resulting in the failure of the label paper to exit the slot. The above method enables the user to promptly discover and solve the problem of paper output failure, thereby enabling the next printing of the target content.
[0074] In one embodiment, based on Figures 1 - 3In the illustrated embodiment, S101 includes the following steps:
[0075] When controlling the label paper to feed and complete one-time printing of the target content on the first face paper area, determine whether the gap area of the label paper is located at the position of the first sensor;
[0076] When it is determined that the gap area is not located at the position of the first sensor, based on the detection result of the first sensor during the paper feeding process, determine whether the first sensor detects the in-gap signal and out-gap signal for the first gap area.
[0077] In this embodiment, before completing one-time printing of the target content and determining whether the first sensor detects the in-gap signal and out-gap signal for the first gap area, it is also necessary to determine whether the gap area of the label paper is located at the position of the first sensor.
[0078] When the gap area of the label paper is at the position of the first sensor, determine the paper feeding positioning scheme matching this situation. Specifically, control the label paper to feed until the first sensor detects the out-gap signal for this gap area, determine that the upper edge of the second face paper area is aligned with the first sensor, and further control the label paper to feed a first distance (the distance between the first sensor and the printing line) so that the printing line is aligned with the upper edge of the second face paper area.
[0079] When the gap area of the label paper is not at the position of the first sensor, based on the detection result of the first sensor during the paper feeding process, further determine whether the first sensor detects the in-gap signal and out-gap signal for the first gap area.
[0080] In other words, in this embodiment, before determining whether the first sensor detects the in-gap signal and out-gap signal for the first gap area, it is also necessary to determine whether the area aligned with the position of the first sensor is the gap area or the face paper area, so as to determine different positioning and calibration schemes according to different situations, ensuring that the label paper can be correctly positioned and the printing task can be successfully completed.
[0081] As Figure 4 shown, it is a schematic flowchart of a paper feeding positioning method provided by an embodiment of the present application. This method can be implemented depending on a computer program and can run on a paper feeding positioning device. This computer program can be integrated in an application or run as an independent tool class application.
[0082] Specifically, this paper feeding positioning method includes:
[0083] S201. When controlling the label paper to feed and complete one-time printing of the target content on the first face paper area, determine whether the first sensor detects the in-gap signal and out-gap signal for the first gap area.
[0084] Refer to the above S101, which will not be elaborated here.
[0085] S202. When it is determined that the first sensor detects the in-seam signal and out-seam signal for the first seam area, determine whether cross-page printing occurs.
[0086] Refer to the above S102, which will not be elaborated here.
[0087] S203. When it is determined that cross-page printing occurs, control the label paper to feed, so that the first sensor detects the in-seam signal and out-seam signal for the second seam area until the second paper area is located at the position of the first sensor, and then control the label paper to continue feeding by a first compensation distance.
[0088] Refer to the above S103, which will not be elaborated here.
[0089] S204. Start printing the target content on the second paper area.
[0090] Refer to the above S104, which will not be elaborated here.
[0091] S205. When it is determined that cross-page printing does not occur, control the label paper to feed by a target compensation distance so that the printing line of the printing device is located on the third paper area.
[0092] In this embodiment, when it is determined that during the paper feeding process, the first sensor detects the in-seam signal and out-seam signal for the first seam area and cross-page printing does not occur, determine the target compensation distance matching this situation. Control the label paper to feed by the target compensation distance so that the printing line of the printing device is located on the third paper area.
[0093] Among them, the target compensation distance is determined by the first distance between the printing line and the first sensor and the out-seam distance for the first seam area determined based on the out-seam signal. The out-seam distance is determined based on the out-seam signal for the first seam area, that is, the lower edge of the first seam area passes through the first sensor, and the distance between the lower edge of the first seam area and the first sensor when the paper feeding stops.
[0094] S206. Start printing the target content on the third paper area.
[0095] Based on the printing line located on the third paper area, start printing the target content on the third paper area, thereby completing the printing task including multiple target printing tasks.
[0096] In this embodiment, a positioning and calibration scheme corresponding to the case where there is no cross-page printing is matched, that is, the target compensation distance is determined according to the first distance and the out-seam distance, and the label paper is controlled to feed the target compensation distance, so as to ensure that the printing line is located on the third sheet area, preferably aligned with the upper edge of the third sheet area, thereby increasing the possibility of successfully completing the printing task.
[0097] Based on Figure 4 the embodiments shown, please also refer to Figure 5 the embodiments shown. Figure 5 It is a schematic flowchart of a paper feeding and positioning method provided by an embodiment of the present application. S205 includes the following steps:
[0098] S301. When it is determined that there is no cross-page printing, determine whether the label paper is a short label paper or a long label paper.
[0099] Determine whether the sum of the lengths of a single sheet area and a single gap area of the label paper is less than the first distance between the first sensor and the printing line. When it is determined that the sum of the lengths of a single sheet area and a single gap area of the label paper is less than the first distance, determine that the label paper is a short label paper. When it is determined that the sum of the lengths of a single sheet area and a single gap area of the label paper is greater than or equal to the first distance, determine that the label paper is a long label paper.
[0100] S302. When it is determined that the label paper is a short label paper, control the label paper to feed the second compensation distance.
[0101] Among them, the target compensation distance includes the second compensation distance, and the second compensation distance is determined by the first distance, the out-seam distance, and the total length of the N sheet-gap combination areas included in the first distance. The sheet-gap combination includes a sheet area and a gap area.
[0102] As Figure 6 shown, Figure 6 is a schematic diagram of a scenario for controlling the paper feeding of a short label paper provided by an embodiment of the present application. The label paper is a short label paper 200. The first distance L1 between the print head 200 and the first sensor 201 includes at least one sheet-gap combination composed of a sheet area and a gap area.
[0103] When printing the target content once on the first sheet area and there is no cross-page situation, the first sensor 201 detects the in-seam signal and the out-seam signal for the first gap area, and determines the out-seam distance H3 based on the out-seam signal.
[0104] In one embodiment, the second compensation distance is obtained by subtracting the paper outlet distance H3 from the first distance L1 and then subtracting the total distance of N face paper gap combination areas (H1 + H2) included in the first distance. In other words, when the label paper is short label paper, the second compensation distance is L1 - H3 - N×(H1 + H2). As Figure 6 shown, controlling the short label paper 200 to feed by the second compensation distance L1 - H3 - N×(H1 + H2) can ensure that the printing line is aligned with the upper edge of the third face paper area.
[0105] S303. When it is determined that the label paper is long label paper, control the label paper to feed by the third compensation distance.
[0106] Among them, the target compensation area includes the third compensation distance, and the second compensation distance and the third compensation distance are different. For the differences between long label paper and short label paper, the calculation methods of the target compensation distance are different.
[0107] As Figure 7 shown, Figure 7 is a schematic diagram of a scenario for controlling the feeding of long label paper provided by an embodiment of the present application. In this embodiment, the third compensation distance is obtained by subtracting the paper outlet distance H3 from the first distance L1. Controlling the long label paper 300 to feed by the third compensation distance L1 - H3 can ensure that the printing line is aligned with the upper edge of the third face paper area.
[0108] In this embodiment, for the case where cross-page printing does not occur, continue to determine whether the label paper is long label paper or short label paper, so as to match the corresponding positioning and calibration scheme. For the differences between long label paper and short label paper, the calculation methods of the target compensation distance are different. Control the label paper to feed by the target compensation distance, so as to ensure that the printing line is located on the third face paper area, preferably aligned with the upper edge of the third face paper area, thereby increasing the possibility of successfully completing the printing task.
[0109] As Figure 8 shown, it is a schematic flowchart of a paper feeding and positioning method provided by an embodiment of the present application. This method can be implemented depending on a computer program and can run on a paper feeding and positioning device. This computer program can be integrated in an application or run as an independent tool application.
[0110] Specifically, the paper feeding and positioning method includes:
[0111] S401. When controlling the label paper to feed to complete a printing of target content on the first face paper area, determine whether the first sensor detects an in-seam signal and an out-seam signal for the first gap area.
[0112] Refer to the above S101, which will not be elaborated here.
[0113] S402. When it is determined that the first sensor detects the in-seam signal and out-seam signal for the first seam area, determine whether cross-page printing occurs.
[0114] Refer to the above S102, which will not be elaborated here.
[0115] S403. When it is determined that cross-page printing occurs, control the label paper to feed, so that the first sensor detects the in-seam signal and out-seam signal for the second seam area, until the second paper area is located at the position of the first sensor, and then control the label paper to continue feeding the first compensation distance.
[0116] Refer to the above S103, which will not be elaborated here.
[0117] S404. Start printing the target content on the second paper area.
[0118] Refer to the above S104, which will not be elaborated here.
[0119] S405. When it is detected that the printing task for the target content is completed, control the label paper to feed until the upper edge of the fourth paper area is aligned with the position of the first sensor.
[0120] Among them, the printing task includes at least one printing of the target content. For example, if the printing task includes printing M labels, then the target content needs to be printed at least M times.
[0121] As Figure 9 shown, Figure 9 is a schematic diagram of a scenario for controlling the feeding of label paper provided by an embodiment of the present application. In this embodiment, the printing device further includes a second sensor 403 and a paper cutter 404. The first sensor 401, the second sensor 403, and the paper cutter 404 are arranged along the paper output direction, and there is a second distance L2 between the second sensor 403 and the printing line of the printing device.
[0122] When it is detected that the printing task for the target content is completed, based on the detection result of the first sensor 401, control the label paper to feed until the upper edge of the fourth paper area is aligned with the position of the first sensor 401.
[0123] S406. Control the label paper to continue feeding the first distance, so that the printing line is located at the upper edge of the fourth paper area.
[0124] Among them, the first distance L1 is the distance between the first sensor 401 and the printing line.
[0125] S407. Control the label paper to continue feeding the fourth compensation distance, so that the third seam area is located at the position of the paper cutter.
[0126] Among them, the fourth compensation distance is determined by the first distance L1, the second distance L2, and the length H1 of the third gap area. Specifically, the fourth compensation distance is the distance of the first distance L1 + the second distance L2 - half of the length H1 of the third gap area, so as to ensure that the middle seam of the third gap area is aligned with the position of the paper cutter.
[0127] In the embodiment of the present application, after the printing task is completed, the label paper is controlled to feed multiple times by a preset compensation distance, so as to ensure that the gap area is aligned with the position of the paper cutter, so that the user can easily tear off the gap of the label paper through the paper cutter, and the face paper area of the label paper is completely retained, avoiding damage to the face paper area of the label paper.
[0128] The following is an embodiment of the device of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the method embodiment of the present application.
[0129] Please refer to Figure 10 , which shows a schematic structural diagram of a paper feeding positioning device provided by an exemplary embodiment of the present application. The paper feeding positioning device can be implemented as all or part of the device through software, hardware, or a combination of both. The device includes a first positioning module 501, a second positioning module 502, a third positioning module 503, and a fourth positioning module 504.
[0130] The first positioning module 501 is configured to determine whether the first sensor detects an in-seam signal and an out-seam signal for the first gap area when controlling the label paper to feed to complete a printing of target content on the first face paper area;
[0131] The second positioning module 502 is configured to determine whether there is a case of cross-page printing when it is determined that the first sensor detects an in-seam signal and an out-seam signal for the first gap area;
[0132] The third positioning module 503 is configured to control the label paper to feed when it is determined that there is a case of cross-page printing, so that the first sensor detects an in-seam signal and an out-seam signal for the second gap area until the second face paper area is located at the position of the first sensor, and then control the label paper to continue feeding by a first compensation distance;
[0133] The fourth positioning module 501 is configured to start printing the target content on the second face paper area.
[0134] In one embodiment, the paper feeding positioning device further includes:
[0135] A fifth positioning module, configured to control the target compensation distance of the label paper feeding when it is determined that there is no cross-page printing, so that the printing line of the printing device is located on the third face paper area; wherein, the target compensation distance is determined by a first distance between the printing line and the first sensor and a slit distance for the first slit area determined based on the slit signal.
[0136] A sixth positioning module, configured to start printing the target content on the third face paper area.
[0137] In one embodiment, the fifth positioning module includes:
[0138] A short and long label unit, configured to determine whether the label paper is a short label paper or a long label paper when it is determined that there is no cross-page printing.
[0139] A short label unit, configured to control the second compensation distance of the label paper feeding when it is determined that the label paper is a short label paper; wherein, the target compensation distance includes the second compensation distance, and the second compensation distance is determined by the first distance, the slit distance, and the total length of the N face paper slit combination areas included in the first distance, and the face paper slit combination includes one face paper area and one slit area.
[0140] In one embodiment, the second compensation distance is obtained by subtracting the slit distance and the total distance of the N face paper slit combination areas included in the first distance from the first distance.
[0141] In one embodiment, the fifth positioning module includes:
[0142] A long label unit, configured to control the third compensation distance of the label paper feeding when it is determined that the label paper is a long label paper; wherein, the target compensation area includes the third compensation distance, and the second compensation distance and the third compensation distance are different.
[0143] In one embodiment, the third compensation distance is obtained by subtracting the slit distance from the first distance.
[0144] In one embodiment, the first compensation distance is the first distance between the printing line and the first sensor.
[0145] In one embodiment, the third positioning module 503 includes:
[0146] A first slit entry unit, configured to control the label paper feeding when cross-page printing occurs until the lower edge of the first face paper area aligns with the position of the first sensor.
[0147] A second paper feeding into slit unit, configured to control the first number of steps of the label paper feeding, and to determine whether the first sensor detects an in-slit signal for the second slit area;
[0148] A third paper feeding into slit unit, configured to send a prompt message indicating a failure in paper feeding into the slit when it is determined that the first number of steps of paper feeding is completed and the first sensor does not detect an in-slit signal for the second slit area.
[0149] In one embodiment, the third positioning module 503 includes:
[0150] A first paper feeding out of slit unit, configured to control the label paper feeding when cross-page printing occurs, so that the first sensor detects an out-slit signal for the second slit area until the lower edge of the second slit area aligns with the position of the first sensor;
[0151] A second paper feeding out of slit unit, configured to control the second number of steps of the label paper feeding, and to determine whether the first sensor detects an out-slit signal for the second slit area;
[0152] A third paper feeding out of slit unit, configured to send a prompt message indicating a failure in paper feeding out of the slit when it is determined that the second number of steps of paper feeding is completed and the first sensor does not detect an out-slit signal for the second slit area.
[0153] In one embodiment, the second positioning module 502 includes:
[0154] A first cross-page judgment unit, configured to, when it is determined that the first sensor detects an in-slit signal and an out-slit signal for the first slit area, determine whether the out-slit distance for the first slit area is greater than a first distance according to the out-slit signal; wherein, the first distance is the distance between the printing line of the printing device and the first sensor;
[0155] A second cross-page judgment unit, configured to determine that cross-page printing occurs when it is determined that the out-slit distance is greater than the first distance.
[0156] In one embodiment, the first positioning module 501 includes:
[0157] A first slit judgment unit, configured to, when controlling the label paper feeding to complete one-time printing of target content on the first sheet area, determine whether the slit area of the label paper is located at the position of the first sensor;
[0158] A second slit judgment unit, configured to, when it is determined that the slit area is not located at the position of the first sensor, determine whether the first sensor detects an in-slit signal and an out-slit signal for the first slit area according to the detection result of the first sensor during the paper feeding process.
[0159] In one embodiment, the printing device further includes a second sensor and a paper cutter. The first sensor, the second sensor, and the paper cutter are arranged along the paper output direction. There is a second distance between the second sensor and the printing line of the printing device.
[0160] The paper feeding and positioning device further includes:
[0161] A seventh positioning module, configured to control the label paper to feed to a position where the upper edge of the fourth sheet area is aligned with the first sensor when it is detected that the printing task for the target content is completed; wherein, the printing task includes at least one printing of the target content.
[0162] An eighth positioning module, configured to control the label paper to continue feeding a first distance, so that the printing line is located at the upper edge of the fourth sheet area; wherein, the first distance is the distance between the first sensor and the printing line.
[0163] A ninth positioning module, configured to control the label paper to continue feeding a fourth compensation distance, so that the third gap area is located at the position of the paper cutter; wherein, the fourth compensation distance is determined by the first distance, the second distance, and the length of the third gap area.
[0164] In the paper feeding process of this application, by combining the detection result of the first sensor and judging whether there is cross-page printing during the printing process, a positioning and calibration scheme matching the above situation is determined, so as to perform positioning and calibration based on the matching positioning and calibration scheme when incorrect printing occurs due to positioning errors. Different detection results combined with the situation of whether there is cross-page printing match different positioning and calibration schemes. Based on the specific content of the positioning and calibration scheme, automatic positioning and calibration are performed by controlling the label paper to feed at least a first compensation distance, ensuring that the next printing of the target content can be carried out normally, avoiding waste of label paper and user time, and eliminating the need for manual calibration.
[0165] It should be noted that when the above-mentioned paper feeding and positioning device provided in the embodiment executes the paper feeding and positioning method, only the above-mentioned division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the above-mentioned paper feeding and positioning device provided in the embodiment and the embodiment of the paper feeding and positioning method belong to the same concept. The implementation process is detailed in the method embodiment and will not be elaborated here.
[0166] The serial numbers of the above embodiments of this application are only for description and do not represent the superiority or inferiority of the embodiments.
[0167] The embodiments of the present application also provide a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded and executed by a processor to perform the paper feeding and positioning method of the embodiments as described above Figure 1 - Figure 9 shown in the embodiments. For the specific execution process, reference can be made to the specific descriptions of the embodiments Figure 1 - Figure 9 shown, and details will not be elaborated here.
[0168] The present application also provides a computer program product. The computer program product stores at least one instruction, and the at least one instruction is loaded and executed by a processor to perform the paper feeding and positioning method of the embodiments as described above Figure 1 - Figure 9 shown in the embodiments. For the specific execution process, reference can be made to the specific descriptions of the embodiments Figure 1 - Figure 9 shown, and details will not be elaborated here.
[0169] Please refer to Figure 11 , which is a schematic structural diagram of an electronic device provided by the embodiments of the present application. As Figure 11 shown, the electronic device 600 may include: at least one processor 601, at least one network interface 604, a user interface 603, a memory 605, at least one communication bus 602, and a first sensor (not shown in the figure).
[0170] Among them, the communication bus 602 is used to realize the connection and communication between these components.
[0171] Among them, the user interface 603 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 603 may further include a standard wired interface and a wireless interface.
[0172] Among them, the network interface 604 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).
[0173] Among them, the processor 601 may include one or more processing cores. The processor 601 connects various parts within the entire server 600 through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 605, and by calling the data stored in the memory 605, it performs various functions of the server 600 and processes data. Optionally, the processor 601 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 601 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 601 and may be implemented separately by a single chip.
[0174] Among them, the memory 605 may include random access memory (RAM) and may also include read-only memory. Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 605 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store the data involved in the above-mentioned various method embodiments. Optionally, the memory 605 may also be at least one storage device located far from the aforementioned processor 601. As Figure 11 shown, the memory 605, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a paper feeding positioning application program.
[0175] In Figure 11In the illustrated electronic device 600, the user interface 603 is mainly used to provide an input interface for the user to obtain the data input by the user; and the processor 601 can be used to call the paper feeding and positioning application program stored in the memory 605 and specifically perform the following operations:
[0176] When controlling the label paper to feed to complete a printing of the target content on the first paper area, determine whether the first sensor detects an in-seam signal and an out-seam signal for the first seam area;
[0177] When it is determined that the first sensor detects an in-seam signal and an out-seam signal for the first seam area, determine whether cross-page printing occurs;
[0178] When it is determined that cross-page printing occurs, control the label paper to feed so that the first sensor detects an in-seam signal and an out-seam signal for the second seam area until the second paper area is located at the position of the first sensor, and control the label paper to continue feeding a first compensation distance;
[0179] Start printing the target content on the second paper area.
[0180] In one embodiment, after the processor 601 executes the step of determining whether cross-page printing occurs when it is determined that the first sensor detects an in-seam signal and an out-seam signal for the first seam area, it further executes:
[0181] When it is determined that cross-page printing does not occur, control the label paper to feed a target compensation distance so that the printing line of the printing device is located on the third paper area; wherein, the target compensation distance is determined by the first distance between the printing line and the first sensor and the out-seam distance for the first seam area determined based on the out-seam signal;
[0182] Start printing the target content on the third paper area.
[0183] In one embodiment, when the processor 601 executes the step of controlling the label paper to feed a target compensation distance when it is determined that cross-page printing does not occur, it specifically executes:
[0184] When it is determined that cross-page printing does not occur, determine whether the label paper is a short label paper or a long label paper;
[0185] When it is determined that the label paper is a short label paper, control the label paper to feed a second compensation distance; wherein, the target compensation distance includes the second compensation distance, and the second compensation distance is determined by the first distance, the out-seam distance, and the total length of the N face paper seam combination areas included in the first distance, and the face paper seam combination includes a face paper area and a seam area.
[0186] In one embodiment, the second compensation distance is obtained by subtracting the out-seam distance from the first distance and then subtracting the total distance of N face paper gap combination areas included in the first distance.
[0187] In one embodiment, when the processor 601 determines that there is no case of cross-page printing and then determines whether the label paper is short label paper or long label paper, it further executes:
[0188] When it is determined that the label paper is long label paper, control the label paper to feed a third compensation distance; wherein, the target compensation area includes the third compensation distance, and the second compensation distance and the third compensation distance are different.
[0189] In one embodiment, the third compensation distance is obtained by subtracting the out-seam distance from the first distance.
[0190] In one embodiment, the first compensation distance is the first distance between the printing line and the first sensor.
[0191] In one embodiment, when the processor 601 determines that there is a case of cross-page printing, control the label paper to feed, so that the first sensor detects an in-seam signal and an out-seam signal for the second gap area until the second face paper area is located at the position of the first sensor, and then control the label paper to continue to feed a first compensation distance. Specifically, execute:
[0192] When there is a case of cross-page printing, control the label paper to feed until the lower edge of the first face paper area is aligned with the position of the first sensor;
[0193] Control the label paper to feed a first number of steps, and determine whether the first sensor detects an in-seam signal for the second gap area;
[0194] When it is determined that the first number of steps of feeding is performed and the first sensor does not detect an in-seam signal for the second gap area, send a prompt message indicating that the in-seam of feeding fails.
[0195] In one embodiment, when the processor 601 determines that there is a case of cross-page printing, control the label paper to feed, so that the first sensor detects an in-seam signal and an out-seam signal for the second gap area until the second face paper area is located at the position of the first sensor, and then control the label paper to continue to feed a first compensation distance. Specifically, execute:
[0196] When cross-page printing occurs, control the feeding of the label paper so that the first sensor detects a signal indicating the emergence of the second slit area until the lower edge of the second slit area aligns with the position of the first sensor;
[0197] Control the second step number of the feeding of the label paper and determine whether the first sensor detects a signal indicating the emergence of the second slit area;
[0198] When it is determined that the second step number of feeding is completed and the first sensor does not detect a signal indicating the emergence of the second slit area, send a prompt message indicating that the feeding and emergence of the slit have failed.
[0199] In one embodiment, when the processor 601 determines that the first sensor detects an in-slit signal and an out-slit signal for the first slit area, it determines whether cross-page printing occurs, and specifically executes:
[0200] When it is determined that the first sensor detects an in-slit signal and an out-slit signal for the first slit area, determine whether the out-slit distance for the first slit area is greater than a first distance according to the out-slit signal; wherein, the first distance is the distance between the printing line of the printing device and the first sensor;
[0201] When it is determined that the out-slit distance is greater than the first distance, determine that cross-page printing occurs.
[0202] In one embodiment, when the processor 601 controls the feeding of the label paper to complete one-time printing of target content on the first sheet area, it determines whether the first sensor detects an in-slit signal and an out-slit signal for the first slit area, and specifically executes:
[0203] When controlling the feeding of the label paper to complete one-time printing of target content on the first sheet area, determine whether the slit area of the label paper is located at the position of the first sensor;
[0204] When it is determined that the slit area is not located at the position of the first sensor, determine whether the first sensor detects an in-slit signal and an out-slit signal for the first slit area according to the detection result of the first sensor during the feeding process.
[0205] In one embodiment, the printing device further includes a second sensor and a paper cutter, the first sensor, the second sensor, and the paper cutter are arranged along the paper output direction, and there is a second distance between the second sensor and the printing line of the printing device;
[0206] After the processor 601 executes starting to print the target content on the second sheet area, it further executes:
[0207] When it is detected that the printing task for the target content is completed, control the label paper to feed to a position where the upper edge of the fourth sheet area is aligned with the first sensor; wherein, the printing task includes printing the target content at least once.
[0208] Control the label paper to continue feeding a first distance so that the printing line is located at the upper edge of the fourth sheet area; wherein, the first distance is the distance between the first sensor and the printing line.
[0209] Control the label paper to continue feeding a fourth compensation distance so that the third gap area is located at the position of the paper cutter; wherein, the fourth compensation distance is determined by the first distance, the second distance, and the length of the third gap area.
[0210] In the process of printing and paper feeding of this application, by combining the detection result of the first sensor and judging whether there is cross-page printing during the printing process, a positioning and calibration scheme matching the above situation is determined, so as to perform positioning and calibration based on the matching positioning and calibration scheme when incorrect printing is caused by positioning errors. Different detection results combined with the situation of whether there is cross-page printing match different positioning and calibration schemes. Based on the specific content of this positioning and calibration scheme, automatic positioning and calibration are performed by controlling the label paper to feed at least a first compensation distance, ensuring that the next printing of the target content can proceed normally, avoiding waste of label paper and user time, and no manual calibration is required.
[0211] Those of ordinary skill in the art can understand all or part of the processes in the above method embodiments. The above methods can be completed by instructing relevant hardware through a computer program. The programs corresponding to the above methods can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the method embodiments as described above. Among them, the storage medium of the electronic device 700 can be a magnetic disk, an optical disk, a read-only memory, or a random access memory, etc.
[0212] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this application.
[0213] The above-disclosed is only the preferred embodiment of this application. Of course, it cannot be used to limit the scope of rights of this application. Therefore, equivalent changes made according to the claims of this application still fall within the scope covered by this application.
Claims
1. A paper feeding positioning method, characterized in that, Applicable to a printing device including a first sensor, the method includes: When controlling the label paper to feed and complete a printing of target content on a first paper area, determining whether the first sensor detects an in-seam signal and an out-seam signal for a first seam area; When determining that the first sensor detects an in-seam signal and an out-seam signal for the first seam area, determining whether there is a case of cross-page printing; When determining that there is a case of cross-page printing, controlling the label paper to feed so that the first sensor detects an in-seam signal and an out-seam signal for a second seam area until the second paper area is located at the position of the first sensor, and then controlling the label paper to continue feeding a first compensation distance; Starting to print the target content on the second paper area.
2. The paper feeding and positioning method according to claim 1, wherein After determining that the first sensor detects an in-seam signal and an out-seam signal for the first seam area and then determining whether there is a case of cross-page printing, it further includes: When determining that there is no case of cross-page printing, controlling the label paper to feed a target compensation distance so that the printing line of the printing device is located on a third paper area; wherein, the target compensation distance is determined by a first distance between the printing line and the first sensor and an out-seam distance for the first seam area determined based on the out-seam signal; Starting to print the target content on the third paper area.
3. The paper feeding and positioning method according to claim 2, wherein The controlling the label paper to feed a target compensation distance when determining that there is no case of cross-page printing includes: When determining that there is no case of cross-page printing, determining whether the label paper is a short label paper or a long label paper; When determining that the label paper is a short label paper, controlling the label paper to feed a second compensation distance; wherein, the target compensation distance includes the second compensation distance, and the second compensation distance is determined by the first distance, the out-seam distance, and the total length of N paper seam combination areas included in the first distance, and the paper seam combination includes a paper area and a seam area.
4. The paper feeding and positioning method according to claim 3, wherein The second compensation distance is obtained by subtracting the out-seam distance and the total distance of N paper seam combination areas included in the first distance from the first distance.
5. The paper feeding and positioning method according to claim 3, wherein After determining whether the label paper is a short label paper or a long label paper when determining that there is no case of cross-page printing, it further includes: When determining that the label paper is a long label paper, controlling the label paper to feed a third compensation distance; wherein, the target compensation area includes the third compensation distance, and the second compensation distance and the third compensation distance are different.
6. The paper feeding and positioning method according to claim 5, characterized in that, The third compensation distance is obtained by subtracting the out-seam distance from the first distance.
7. The paper feeding and positioning method according to claim 1, characterized in that, The first compensation distance is the first distance between the printing line and the first sensor.
8. The paper feeding and positioning method according to claim 1, wherein The controlling the label paper to feed so that the first sensor detects an in-seam signal and an out-seam signal for a second seam area until the second paper area is located at the position of the first sensor and then controlling the label paper to continue feeding a first compensation distance when determining that there is a case of cross-page printing includes: When cross-page printing occurs, control the feeding of the label paper until the lower edge of the first paper area is aligned with the position of the first sensor; Control the label paper to feed the first number of steps, and determine whether the first sensor detects an in-seam signal for the second seam area; When it is determined that the first number of steps of paper feeding is completed and the first sensor does not detect an in-seam signal for the second seam area, send a prompt message indicating that the paper feeding into the seam fails.
9. The paper feeding and positioning method according to claim 1 or 8, characterized in that, When it is determined that cross-page printing occurs, control the feeding of the label paper so that the first sensor detects an in-seam signal and an out-seam signal for the second seam area until the second paper area is located at the position of the first sensor, and control the label paper to continue feeding the first compensation distance, including: When cross-page printing occurs, control the feeding of the label paper so that the first sensor detects an out-seam signal for the second seam area until the lower edge of the second seam area is aligned with the position of the first sensor; Control the label paper to feed the second number of steps, and determine whether the first sensor detects an out-seam signal for the second seam area; When it is determined that the second number of steps of paper feeding is completed and the first sensor does not detect an out-seam signal for the second seam area, send a prompt message indicating that the paper feeding out of the seam fails.
10. The paper feeding and positioning method according to claim 1, characterized in that, When it is determined that the first sensor detects an in-seam signal and an out-seam signal for the first seam area, determine whether cross-page printing occurs, including: When it is determined that the first sensor detects an in-seam signal and an out-seam signal for the first seam area, determine whether the out-seam distance for the first seam area is greater than the first distance according to the out-seam signal; wherein, the first distance is the distance between the printing line of the printing device and the first sensor; When it is determined that the out-seam distance is greater than the first distance, determine that cross-page printing occurs.
11. The paper feeding and positioning method according to claim 1, wherein When controlling the feeding of the label paper to complete a printing of the target content on the first paper area, determine whether the first sensor detects an in-seam signal and an out-seam signal for the first seam area, including: When controlling the feeding of the label paper to complete a printing of the target content on the first paper area, determine whether the seam area of the label paper is located at the position of the first sensor; When it is determined that the seam area is not located at the position of the first sensor, determine whether the first sensor detects an in-seam signal and an out-seam signal for the first seam area according to the detection result of the first sensor during the paper feeding process.
12. The paper feeding and positioning method according to claim 1, wherein The printing device further includes a second sensor and a paper cutter, the first sensor, the second sensor, and the paper cutter are arranged along the paper output direction, and there is a second distance between the second sensor and the printing line of the printing device; After starting to print the target content on the second paper area, further include: When it is detected that the printing task for the target content is completed, control the label paper to feed to a position where the upper edge of the fourth sheet area is aligned with the first sensor; wherein, the printing task includes printing the target content at least once. Control the label paper to continue feeding a first distance so that the printing line is located at the upper edge of the fourth sheet area; wherein, the first distance is the distance between the first sensor and the printing line. Control the label paper to continue feeding a fourth compensation distance so that the third slit area is located at the position of the paper cutter; wherein, the fourth compensation distance is determined by the first distance, the second distance, and the length of the third slit area.
13. A paper feeding and positioning device, characterized in that, Applicable to a printing device including a first sensor, the method includes: A first positioning module, configured to, when controlling the label paper to feed to complete a printing of the target content on the first sheet area, determine whether the first sensor detects an in-slit signal and an out-slit signal for the first slit area. A second positioning module, configured to, when it is determined that the first sensor detects an in-slit signal and an out-slit signal for the first slit area, determine whether a case of cross-page printing occurs. A third positioning module, configured to, when it is determined that a case of cross-page printing occurs, control the label paper to feed so that the first sensor detects an in-slit signal and an out-slit signal for the second slit area until the second sheet area is located at the position of the first sensor, and then control the label paper to continue feeding a first compensation distance. A fourth positioning module, configured to start printing the target content on the second sheet area.
14. A computer storage medium, characterized in that, The computer storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the method steps of any one of claims 1 to 12.
15. A computer program product, characterized in that, The computer program product stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the method steps of any one of claims 1 to 12.
16. A printing device, characterized in that, Including a first sensor, a processor, and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor to perform the method steps of any one of claims 1 to 12.