Label paper gap positioning method and device, storage medium and electronic equipment

By determining the surface paper size and preset surface paper movement distance of the label paper, combined with the movement processing of the paper transmission path and the gap signal detection, the gap position of the label paper is accurately determined, which solves the problem of unstable photoelectric sensor detection and improves the accuracy of label printing.

CN120029567AActive Publication Date: 2025-05-23WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD

Patent Information

Application Number
CN202510078859.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-05-23
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

During the label printing process, photoelectric sensors are used to detect the light-transmitting characteristics of the gaps in the label paper, but due to unstable manufacturing process and material differences, the gap detection results are unstable, and false detection or missed detection is prone to occur, which in turn causes offset of the printed content.

Method used

By determining the surface paper size of the label paper, calculating the preset surface paper movement distance, and moving the label paper based on the paper transmission path, determining whether the moving distance is greater than or equal to the preset surface paper movement distance, and detecting whether there is a gap signal. If the conditions are met, it is determined that the position indicated by the gap signal is the actual gap position.

Benefits of technology

It accurately detects the actual gap position of the surface paper, avoids the problem of unstable photoelectric sensor detection, reduces the printing offset and missing of label printing, and improves the accuracy of label printing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029567A_ABST
    Figure CN120029567A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a label paper gap positioning method and device, a storage medium and electronic equipment, and the method comprises the steps: determining the surface paper size of label paper, determining a preset surface paper moving distance based on the surface paper size, and then carrying out label paper moving processing on the label paper based on a paper transmission path, the moving distance of the label paper is calculated based on the surface paper position of the label paper, whether the moving distance is larger than or equal to the preset surface paper moving distance or not is judged, whether a gap signal corresponding to the label paper exists or not is detected, and if the moving distance is larger than or equal to the preset surface paper moving distance and the gap signal exists, the label paper is detected. And if yes, determining the gap position indicated by the gap signal as the actual gap position. Thus, by monitoring the moving distance of the label paper and the preset moving distance of the surface paper and monitoring whether the gap signal exists or not, the actual gap position of the surface paper can be accurately detected, the label content can be accurately printed on the surface paper, and the printing accuracy of label printing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of printing technology, and in particular to a method, device, storage medium and electronic device for positioning a gap in label paper. Background Art

[0002] During the label printing process, the printer's positioning of the gap in the label paper is crucial to the printing process. If the gap positioning is inaccurate, it may cause the printed content to be offset or missing, affecting the quality of the printed label. In the related art, the label gap positioning solution usually relies on photoelectric sensors, which aim to identify the gap position by detecting the light transmittance characteristics of the label paper gap through the photoelectric sensor. However, the light transmittance of the gap may be affected by the instability of the label paper manufacturing process or material differences, resulting in unstable gap detection results obtained using photoelectric sensors, resulting in problems of false detection or missed detection, which in turn causes the offset of the printed content. Therefore, how to accurately locate the gap in the label paper is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The embodiment of the present application provides a method, device, computer storage medium and electronic device for locating the gap of label paper. The technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a method for positioning a gap of a label paper, the method comprising:

[0005] Determine the paper size of the label paper, and determine a preset paper moving distance based on the paper size;

[0006] Performing label paper moving processing on the label paper based on the paper transmission path, and calculating the moving distance of the label paper based on the surface paper position of the label paper;

[0007] Determine whether the moving distance is greater than or equal to the preset face paper moving distance, and detect whether there is a gap signal corresponding to the label paper;

[0008] If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, it is determined that the gap position indicated by the gap signal is the actual gap position.

[0009] In a second aspect, an embodiment of the present application provides a device for positioning a gap of a label paper, the device comprising:

[0010] A size determination module, used to determine the face paper size of the label paper, and determine a preset face paper moving distance based on the face paper size;

[0011] A movement control module, used for performing label paper movement processing on the label paper based on a paper transmission path, and calculating a movement distance of the label paper based on a surface paper position of the label paper;

[0012] 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;

[0013] The gap confirmation module is used to determine 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 surface paper moving distance and the gap signal exists.

[0014] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium has a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method.

[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a memory and a processor; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the memory and executing the above method.

[0016] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0017] The method for positioning the gap of label paper provided in the embodiment of the present application first determines the size of the face paper of the label paper, determines the preset face paper moving distance based on the face paper size, then performs label paper moving processing on the label paper based on the paper transmission path, calculates the moving distance of the label paper based on the face paper position of the label paper, determines whether the moving distance is greater than or equal to the preset face paper moving distance, and detects 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 there is a gap signal, then the gap position indicated by the gap signal is determined to be the actual gap position. In this way, by monitoring the size of the label paper moving distance and the preset face paper moving distance, and monitoring the presence of a gap signal, the actual gap position of the face paper can be accurately detected, avoiding the problem of misdetection and missed detection of gaps caused by the unstable light transmittance characteristics of the face paper detected by the photoelectric sensor in the related art, thereby reducing the problems of printing offset and missing in label printing, so that the label content can be accurately printed on the face paper, and the printing accuracy of label printing is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1It is a flow chart of a method for positioning a gap of a label paper provided in an embodiment of the present application;

[0020] Figure 2 It is a schematic diagram of a base paper and a face paper provided in an embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of a gap position provided in an embodiment of the present application;

[0022] Figure 4 It is a flow chart of another method for positioning a gap of a label paper provided in an embodiment of the present application;

[0023] Figure 5 It is a flow chart of another method for positioning a gap of a label paper provided in an embodiment of the present application;

[0024] Figure 6 It is a flow chart of another method for positioning a gap of a label paper provided in an embodiment of the present application;

[0025] Figure 7 It is a flow chart of another method for positioning a gap of a label paper provided in an embodiment of the present application;

[0026] Figure 8 It is a structural schematic diagram of a label paper gap positioning device provided in an embodiment of the present application;

[0027] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, features, and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0029] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.

[0030] In one embodiment, Figure 1 As shown, a method for positioning the gap of label paper is proposed, which can be realized by a computer program and can be run on a positioning device for the gap of label paper based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.

[0031] Specifically, the method for positioning the gap of the label paper includes:

[0032] S101, determining a paper size of the label paper, and determining a preset paper moving distance based on the paper size.

[0033] Among them, label paper refers to the consumables used by label printers, which are used to print various label contents, such as text, numbers, pictures, one-dimensional barcodes, two-dimensional barcodes, etc.

[0034] Label paper usually consists of three parts: release paper (base paper), face paper and adhesive. The surface of release paper is oily, which has an isolation effect on the adhesive, ensuring that the face paper can be easily peeled off from the base paper. The face paper is made of various materials, including coated paper, thermal paper, PET, PVC, etc. Each material has its specific application scenarios and characteristics. The label paper can be wound on a reel, and the reel with the label paper is installed in the label printer for the label printer to print the label content.

[0035] The facial paper size refers to the size of the facial paper in the paper output direction. The facial paper size can be specifically the facial paper height or the facial paper width. When the facial paper height is the size of the facial paper in the paper output direction, the facial paper width can be the size of the facial paper in the vertical direction of the paper output direction. When the facial paper width is the size of the facial paper in the paper output direction, the facial paper height can be the size of the facial paper in the vertical direction of the paper output direction.

[0036] The preset paper moving distance is a fixed distance value set based on the paper size.

[0037] In some embodiments, after receiving the print instruction sent by the user terminal, the label printer can obtain the paper size of the label paper, set the value of the paper size to the value of the preset paper moving distance, and set the unit of the paper size to the unit of the preset paper moving distance. For example, if the paper size is 30 mm, the preset paper moving distance is also set to 30 mm.

[0038] S102, performing label paper movement processing on the label paper based on the paper transmission path, and calculating the movement distance of the label paper based on the surface paper position of the label paper.

[0039] It is understood that the paper transport path refers to a preset paper path in the label printer, and the label paper can be transported or moved on the paper path in the label printer. The paper transport path has a specific paper transport direction, and the label paper moves on the paper transport path, that is, the label paper moves on the transport path according to the paper transport direction.

[0040] The face paper position can be understood as a reference position in the label paper for calculating the moving distance of the label paper. Specifically, the face paper start position can be configured as the face paper position, or the bottom paper start position can be configured as the face paper position. For example, see Figure 2 The schematic diagram of the base paper and the face paper shown, Figure 2 The width of the bottom paper is a, the height is b, and the start position of the bottom paper is the top edge of the bottom paper. The width of the face paper is a, the height is c, and the start position of the face paper is the top edge of the face paper. Figure 2 As shown in the figure, when b is greater than c, after the top paper and the bottom paper are glued together, the top paper start position does not coincide with the bottom start position, and the top paper bottom edge position coincides with the bottom paper bottom edge position. At this time, the top paper start position and the bottom paper start position are not at the same position. When b and c are equal ( Figure 2 (not shown), after the face paper and the bottom paper are bonded together, the start position of the face paper coincides with the start position of the bottom, and the bottom edge position of the face paper coincides with the bottom edge position of the bottom paper. At this time, the start position of the face paper is the same as the start position of the bottom paper.

[0041] The moving distance refers to the total moving distance of the label paper on the paper transport path from the moment it starts moving to the current moment.

[0042] In some embodiments, label paper movement processing is performed on label paper based on the paper transmission path, which can be understood as the label printer controlling the label paper to move along the paper transmission path through a transmission mechanism. Specifically, the transmission mechanism may include multiple key components, such as a paper feed roller, a paper drag roller, a transmission belt, a stepper motor, a tension controller, a photoelectric sensor, and the like.

[0043] Calculating the moving distance of the label paper based on the surface paper position of the label paper can be understood as, in the process of controlling the movement of the label paper, determining the moment when the gap detector detects the surface paper position, detecting the total number of moving steps of the label paper after that moment, and determining the moving distance of the label paper based on the total number of moving steps.

[0044] S103, determining whether the moving distance is greater than or equal to a preset surface paper moving distance, and detecting whether there is a gap signal corresponding to the label paper.

[0045] It can be understood that, from step S103, the position of the facial paper can be the starting position of the facial paper or the starting position of the bottom paper. For the convenience of description, in the scenario where the starting position of the bottom paper is configured as the facial paper position, the preset facial paper movement distance is recorded as the first preset distance, and in the scenario where the starting position of the facial paper is configured as the facial paper position, the preset facial paper movement distance is recorded as the second preset distance. When the starting position of the facial paper and the starting position of the bottom paper are the same position, the first preset distance is equal to the second preset distance, and when the starting position of the facial paper and the starting position of the bottom paper are different positions, the first preset distance is greater than the second preset distance.

[0046] Specifically, the detection of whether there is a gap signal corresponding to the label paper can be implemented by: detecting the light transmittance of the label paper through a gap detection sensor, obtaining a preset gap detection threshold, and determining whether the light transmittance is less than the preset gap detection threshold. If the light transmittance is less than the preset gap detection threshold, 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, there is no gap signal corresponding to the label paper. The preset gap detection threshold can be set according to the light transmittance characteristics of the label paper. The light transmittance characteristics of label papers of different material types are different. Therefore, different preset gap detection thresholds can be set for label papers of different material types to improve the detection accuracy of the gap signal of the label paper. Optionally, the gap detection sensor can be a photoelectric sensor.

[0047] S104: If the moving distance is greater than or equal to the preset paper moving distance and there is a gap signal, determine that the gap position indicated by the gap signal is the actual gap position.

[0048] The actual gap position refers to the actual gap position at the connection between the two sheets of tissue paper.

[0049] It is understandable that when two conditions are met at the same time: the moving distance is greater than or equal to the preset tissue paper moving distance, and there is a gap signal, the gap position indicated by the gap signal is confirmed to be the actual gap position. When one of the above two conditions is met, or when both of the above two conditions are not met, the gap position indicated by the gap signal will not be confirmed to be the actual gap position. For example, when the moving distance is greater than or equal to the preset tissue paper moving distance and there is no gap signal, the gap position indicated by the gap signal will not be confirmed to be the actual gap position. For another example, when the moving distance is less than the preset tissue paper moving distance and there is a gap signal, the gap position indicated by the gap signal will not be confirmed to be the actual gap position. For another example, when the moving distance is less than the preset tissue paper moving distance and there is no gap signal, the gap position indicated by the gap signal will not be confirmed to be the actual gap position.

[0050] It can be understood that if the moving distance is greater than or equal to the preset paper moving distance, it means that the moving distance of the label paper on the paper transmission path is greater than or equal to the size of the paper in the paper output direction. At this time, or thereafter, as the label paper continues to move, the actual gap position of the label paper will be detected. Therefore, if the moving distance is greater than or equal to the preset paper moving distance and there is a gap signal, it can be confirmed that the gap position indicated by the gap signal is the actual gap position, and the false gap position is not identified due to the dirtiness of the non-label paper.

[0051] For example, see Figure 3 A schematic diagram of the position of a gap is shown in FIG. Figure 3 In the figure, the black rectangular box represents the gap, the two white rectangular boxes separated by the black rectangular box represent the surface paper, and the black curved box represents the dirt on the label paper. When the light transmittance value of the dirty position detected by the gap detection sensor is less than the preset gap detection threshold, it can be confirmed that there is a first gap signal. When the light transmittance value of the gap position detected by the gap detection sensor is less than the preset gap detection threshold, it can also be confirmed that there is a second gap signal. Obviously, when the first gap signal is detected, the moving distance is less than the preset surface paper moving distance, and the gap position indicated by the first gap signal is not the actual gap position. When the second gap signal is detected, the moving distance is greater than or equal to the preset surface paper moving distance, and the gap position indicated by the second gap signal is the actual gap position.

[0052] In the label paper gap positioning method provided in the embodiment of the present application, the size of the face paper of the label paper is first determined, and the preset face paper moving distance is determined based on the face paper size. Then, the label paper is moved based on the paper transmission path, and the moving distance of the label paper is calculated based on the face paper position of the label paper. It is determined whether the moving distance is greater than or equal to the preset face paper moving distance, and whether there is a gap signal corresponding to the label paper is detected. If the moving distance is greater than or equal to the preset face paper moving distance and there is a gap signal, the gap position indicated by the gap signal is determined to be the actual gap position. In this way, by monitoring the size of the label paper moving distance and the preset face paper moving distance, and monitoring the presence of a gap signal, the actual gap position of the face paper can be accurately detected, avoiding the problem of misdetection and missed detection of gaps caused by the unstable light transmittance characteristics of the face paper detected by the photoelectric sensor in the related art, thereby reducing the problems of printing offset and missing in label printing, so that the label content can be accurately printed on the face paper, and the printing accuracy of label printing is improved.

[0053] See also Figure 4 , a flow chart of another method for locating a gap in label paper is provided for an embodiment of the present application.

[0054] Specifically, the method for positioning the gap of the label paper includes:

[0055] S401, identifying the radio frequency identification chip integrated in the label paper reel through the radio frequency identification module to obtain the surface paper size of the label paper.

[0056] It is understood that the RFID module is installed in the label printer to read the paper size of the label paper from the RFID chip. During the production process of the label paper, the RFID chip can be integrated in the reel, and the paper size of the label paper wound on the reel can be written into the RFID chip.

[0057] Specifically, after the label printer receives the printing instruction sent by the user terminal, the surface paper size of the label paper can be read from the RFID chip in the label paper roll through the RFID module.

[0058] S402, receiving a label paper parameter transmission instruction sent by a user terminal, and obtaining a surface paper size of the label paper from the label paper transmission instruction.

[0059] In some embodiments, after the label printer receives a print instruction sent by a user terminal, it can send a label paper parameter query instruction to the user terminal. The user terminal generates a label paper parameter transmission instruction including the surface paper size of the label paper in response to the label paper parameter query instruction. 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 surface paper size of the label paper.

[0060] In some other embodiments, the label printer simultaneously receives a printing instruction and a label paper parameter transmission instruction sent by a user terminal. In response to the printing instruction, the label printer parses the label paper parameter transmission instruction to obtain the surface paper size of the label paper.

[0061] S403, determining the face paper model of the label paper, and determining the face paper size of the label paper based on the face paper model.

[0062] Specifically, the label printer may store a mapping relationship between the face paper model and the face paper size, wherein the mapping relationship may include at least one reference face paper model of the label paper and the reference face paper size corresponding to each reference face paper model. The label printer may be configured with a radio frequency identification module, and the label paper reel may be integrated with a radio frequency identification chip, which may store the face paper model of the label paper. The label printer reads the face paper model of the label paper from the radio frequency identification chip through the radio frequency identification module, and queries the face paper size corresponding to the face paper model in the above mapping relationship.

[0063] It can be understood that steps S401, S402, and S403 are three implementation methods for determining the surface paper size of the label paper. When executing the label paper gap positioning method of the present application, any one of steps S401, S402, and S403 can be selected to obtain the surface paper size of the label paper.

[0064] S404, determining a preset tissue paper moving distance based on the tissue paper size.

[0065] For details, the implementation of step S404 can be found in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0066] S405, controlling the label paper to move the label paper based on the paper transport path, and determining the first moment when the gap detection sensor detects the start position of the surface paper.

[0067] The paper start position is the top edge position of the paper in the paper feeding direction. For details about the paper feeding direction, see Figure 3 The schematic diagram shown will not be described in detail here.

[0068] Specifically, the label paper is moved based on the paper transmission path, which can be understood as the label printer controlling the label paper to move along the paper transmission path through a transmission mechanism. Specifically, the transmission mechanism may include multiple key components, such as a paper feed roller, a paper drag roller, a transmission belt, a stepper motor, a tension controller, a photoelectric sensor, and the like.

[0069] The implementation method for determining the first moment when the gap detection sensor detects the start position of the face paper may be: obtaining a 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 value is greater than the preset gap detection threshold for the first time, and taking the moment when the light transmittance value is greater than the preset gap detection threshold for the first time as the first moment when the start position of the face paper is detected. It can be understood that, since the light transmittance values ​​of the gap position and the non-gap position of the label paper are different, by comparing the preset gap detection threshold and the light transmittance value, it can be determined whether the label paper position where the light transmittance value is detected by the gap sensor is the 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 where the light transmittance value is 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 where the light transmittance value is detected by the gap detection sensor is a gap position. During the process of the label paper moving along the paper transmission path, the gap detection sensor can continuously detect the light transmittance value of the label paper position passing through the gap sensor. When the gap position passes through the gap sensor, the gap detection sensor can detect that the light transmittance value of the gap position is less than the preset gap detection threshold. After the gap position passes through the gap sensor, the gap detection sensor can detect that the light transmittance value of the label paper position is greater than the preset gap detection threshold. The starting position of the face paper is the end position of the face paper adjacent to the gap position. Therefore, the starting position of the face paper is the position where the gap detection sensor detects a light transmittance value greater than the preset gap detection threshold for the first time.

[0070] It can be understood that the above-mentioned use of the moment when the light transmittance value is first greater than the preset gap detection threshold as the first moment when the start position of the face paper is detected can be an implementation method in the scenario where the start position of the face paper coincides with the start position of the bottom paper, and in the scenario where the start position of the face paper does not coincide with the start position of the bottom paper, the light transmittance values ​​of the start position of the face paper and the start position of the bottom paper may be different, and the light transmittance value of the start position of the face paper may be smaller than the light transmittance value of the start position of the bottom paper. Therefore, the implementation method for determining the first moment when the gap detection sensor detects the start 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 is greater than the preset gap detection threshold, detecting the light transmittance of the label paper through the gap detection sensor, determining the moment when the light transmittance value is first greater than the preset gap detection threshold and less than the first preset gap detection threshold, and using the moment when the light transmittance value is first greater than the preset gap detection threshold and less than the first preset gap detection threshold as the first moment when the start position of the face paper is detected.

[0071] S406, monitoring the total number of movement steps of the label paper after the first moment, and determining the movement distance of the label paper based on the total number of movement steps.

[0072] Specifically, the implementation of step S406 may be: continuously detecting the total number of movement steps of the label paper after the first moment, obtaining a preset movement step length, and calculating the product of the preset movement step length and the total number of movement steps to obtain the movement distance of the label paper.

[0073] S407, determine whether the moving distance is greater than or equal to the preset surface 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.

[0074] In some embodiments, the execution of obtaining the target material type of the label paper may include the following steps: A1: identifying the RFID chip integrated in the label paper reel through the RFID module to obtain the target material type of the label paper; or, A2: receiving the label paper parameter transmission instruction sent by the user terminal, and obtaining the target material type of the label paper from the label paper parameter transmission instruction; or, A3: determining the surface paper model of the label paper, and determining the target material type of the label paper based on the surface paper model.

[0075] When executing step A1, it can be as follows: after the label printer receives the printing instruction sent by the user terminal, the target material type of the label paper is read from the RFID chip in the label paper roll by the RFID module.

[0076] When executing step A2, it can be: after the label printer receives the printing instruction sent by the user terminal, it can send a label paper parameter query instruction to the user terminal, the user terminal generates a label paper parameter transmission instruction including the target material type of the label paper in response to the label paper parameter query instruction, the user terminal sends the label paper parameter transmission instruction to the label machine printer, and the label printer parses the label paper parameter transmission instruction to obtain the target material type of the label paper. Alternatively, executing step A2 can also be: the label printer simultaneously receives the printing instruction and the label paper parameter transmission instruction sent by the user terminal, and in response to the printing instruction, the label printer parses the label paper parameter transmission instruction to obtain the target material type of the label paper.

[0077] When executing step A3, the label printer may store a mapping relationship between the face paper model and the material type, wherein the mapping relationship may include at least one reference face paper model of the label paper and a reference material type corresponding to each reference face paper model. The label printer may be configured with a radio frequency identification module, and a radio frequency identification chip may be integrated in the label paper reel, and the radio frequency identification chip may store the face paper model of the label paper. The label printer reads the face paper model of the label paper from the radio frequency identification chip through the radio frequency identification module, and then queries the target material type corresponding to the face paper model in the above mapping relationship.

[0078] It is understandable that a preset gap detection mapping relationship can be stored in the label printer, and the preset gap detection mapping relationship includes at least one reference material type and a reference gap detection threshold corresponding to each reference material type, and the reference gap detection threshold corresponding to each reference material type can be set according to the light transmittance characteristics of the label paper of each reference material type. In the preset gap detection mapping relationship, the reference gap detection threshold corresponding to the target material type is queried, and the reference gap detection threshold is used as the gap detection threshold corresponding to the target material type.

[0079] Specifically, the gap detection threshold is used to detect whether there is a gap signal corresponding to the label paper. The implementation method can be: detect the transmittance value of the label paper through the gap detection sensor, and determine whether the transmittance value is less than the gap detection threshold. If the transmittance value is less than the preset gap detection threshold, there is a gap signal corresponding to the label paper; if the transmittance value is greater than or equal to the preset gap detection threshold, there is no gap signal corresponding to the label paper.

[0080] S408: If the moving distance is greater than or equal to the preset paper moving distance and there is a gap signal, determine that the gap position indicated by the gap signal is the actual gap position.

[0081] For details, the implementation of step S408 can be found in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0082] S409, performing label paper movement processing on the label paper based on the paper transmission path, and when the actual gap position matches the sensor position corresponding to the gap detection sensor, performing printing processing on the label paper.

[0083] Specifically, the label paper is moved based on the paper transmission path, which can be understood as continuing to control the label paper to move along the paper transmission path through the transmission mechanism. When the actual gap position matches the sensor position corresponding to the gap detection sensor, the label paper is printed, which can be understood as detecting whether the actual gap position is the end gap position corresponding to the preset face paper movement distance. If the actual gap position is the end gap position corresponding to the preset face paper movement distance, 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 face paper movement distance refers to the last actual gap position detected by the gap detection sensor in the process of detecting the start position of one face paper to the start position of the next face paper, within the time period when the movement distance of the label paper is greater than or equal to the preset face paper movement distance. Since there is a certain width of the gap between any two face papers in the label paper, during the movement of the label paper, within the time period when the movement distance of the label paper is greater than or equal to the preset face paper movement distance, multiple gap signals may be detected by the gap detection sensor, that is, multiple actual gap positions indicated by the multiple gap signals can be determined. When the last actual gap position is detected, it means that the actual gap position corresponding to the current face paper has completely passed the sensor position corresponding to the gap detection sensor, indicating that the movement processing of the current face paper has been completed, and the content printing task of the current face paper can be started.

[0084] S410, after the printer is in a pause state, the label paper is retracted based on the paper transmission path, and the start position of the face paper of the label paper is located by a gap detection sensor.

[0085] In some embodiments, after the printer is in the pause state, the transmission mechanism can be used to control the label paper to retract in the opposite direction of the paper transmission path, and the gap detection sensor can be used to reposition the start position of the label paper to ensure the accuracy of the detection of the start position of the label paper. The implementation method of positioning or detecting the start position of the label paper by the gap detection sensor can refer to the description of the relevant part in step S405, which will not be described in detail here.

[0086] In the label paper gap positioning method provided in the embodiment of the present application, the RFID chip integrated in the label paper reel is identified by the RFID module to obtain the face paper size of the label paper, or the label paper parameter transmission instruction sent by the user terminal is received, the face paper size of the label paper is obtained from the label paper transmission instruction, the face paper model of the label paper is determined, and the face paper size of the label paper is determined based on the face paper model. In this way, the present application provides multiple face paper size acquisition methods, which increases the convenience of obtaining the face paper size; then, the preset face paper movement distance is determined based on the face paper size, the label paper is controlled to perform label paper movement processing based on the paper transmission path, and the first moment when the gap detection sensor detects the face paper start position is determined, the total movement steps of the label paper after the first moment are monitored, the movement distance of the label paper is determined based on the total movement steps, and it is judged 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, and the gap detection threshold corresponding to the target material type is determined from the preset gap detection mapping relationship, and the gap detection threshold detection is used. Whether there is a gap signal corresponding to the label paper, if the moving distance is greater than or equal to the preset surface 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. In this way, for label papers of different material types, multiple corresponding gap detection thresholds are set, which can improve the accuracy of detecting gap signals of label papers of different materials; then, the label paper is moved based on the paper transmission path, and when the actual gap position matches the sensor position corresponding to the gap detection sensor, the label paper is printed. In this way, printing can be performed after the actual gap position completely passes the sensor position corresponding to the gap detection sensor, which can ensure that the printed content can be accurately printed on the surface paper; then, after the printer is in a paused state, the label paper is retracted based on the paper transmission path, and the starting position of the surface paper of the label paper is located by the gap detection sensor. In this way, after the label paper is retracted, the starting position of the surface paper of the label paper is relocated, which can ensure the accuracy of detecting the starting position of the surface paper. In summary, the present application can accurately detect the actual gap position of the surface paper by monitoring the size of the label paper movement distance and the preset surface paper movement distance, and monitoring the presence or absence of gap signals, thereby avoiding the use of photoelectric sensors in related technologies to detect the unstable light transmittance characteristics of the surface paper, which causes the problem of false gap detection and missed detection. This can reduce the problems of print offset and missing in label printing, so that the label content can be accurately printed on the surface paper, thereby improving the printing accuracy of label printing.

[0087] See also Figure 5 , a flow chart of another method for locating a gap in label paper is provided for an embodiment of the present application.

[0088] Specifically, the method for positioning the gap of the label paper includes:

[0089] S501, determining a paper size of the label paper, and determining a preset paper moving distance based on the paper size.

[0090] S502, performing label paper movement processing on the label paper based on the paper transmission path, and calculating the movement distance of the label paper based on the surface paper position of the label paper.

[0091] Specifically, the implementation of steps S501-S502 can be found in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0092] S503, determining whether the moving distance is greater than or equal to a preset paper moving distance.

[0093] S504: If the moving distance is greater than or equal to the preset surface paper moving distance, start detecting whether there is a gap signal corresponding to the label paper.

[0094] S505: If a gap signal corresponding to the label paper is detected, determine that the gap position indicated by the gap signal is the actual gap position.

[0095] Specifically, after calculating the moving distance of the label paper, first determine whether the moving distance is greater than or equal to the preset surface paper moving distance. When the moving distance is greater than or equal to the preset surface paper moving distance, then start to detect whether there is a gap signal corresponding to the label paper. When the gap signal corresponding to the label paper is detected, it can be determined that the gap position indicated by the gap signal is the actual gap position. The specific implementation method of detecting whether there is a gap signal corresponding to the label paper can be seen in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0096] S506, if there is no gap signal corresponding to the label paper after the moving distance is greater than or equal to the preset surface paper moving distance, stop executing the step of controlling the label paper to move the label paper based on the paper transmission path, and / or issue a preset alarm.

[0097] Specifically, after the moving distance is greater than or equal to the preset surface paper moving distance, there is no gap signal corresponding to the label paper. It can be understood that the value of the moving distance of the label paper on the paper transmission path is greater than or equal to the value of the size of the surface paper in the paper output direction, and the gap signal corresponding to the label paper is not detected, indicating that the label printer may have a fault and is not suitable for continuing the current printing task. The steps of controlling the label paper to move the label paper based on the paper transmission path can be stopped, and / or a preset alarm can be issued to remind the user that the printer has a fault.

[0098] In the label paper gap positioning method provided in the embodiment of the present application, by first judging whether the moving distance is greater than or equal to the preset 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 paper moving distance, the data calculation amount of the processor of the label printer can be reduced, thereby reducing the power consumption of the label printer. In addition, by monitoring the size of the label paper moving distance and the preset paper moving distance, and monitoring the presence of a seamless signal, the actual gap position of the paper can be accurately detected, avoiding the problem of misdetection and missed detection of gaps caused by the unstable light transmittance characteristics of the paper detected by the photoelectric sensor in the related art, thereby reducing the problem of printing offset and missing in label printing, so that the label content can be accurately printed on the paper, and the printing accuracy of label printing is improved. By monitoring the size of the label paper moving distance and the preset paper moving distance, and monitoring the presence of a seamless signal, it is also possible to detect whether the printer is faulty. In the event of a fault (i.e., 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), corresponding measures can be taken to avoid printing wrong content in the event of a fault.

[0099] See also Figure 6 , a flow chart of another method for locating a gap in a label paper is provided for an embodiment of the present application.

[0100] Specifically, the method for positioning the gap of the label paper includes:

[0101] S601, determining a paper size of the label paper, and determining a preset paper moving distance based on the paper size.

[0102] S602, performing label paper movement processing on the label paper based on the paper transmission path, and calculating the movement distance of the label paper based on the surface paper position of the label paper.

[0103] Specifically, the implementation of steps S601-S602 can be found in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0104] S603, determining whether the moving distance is greater than or equal to a preset face paper moving distance, and starting to detect whether there is a gap signal corresponding to the label paper.

[0105] S604: If the moving distance is greater than or equal to the preset paper moving distance and there is a gap signal, determine that the gap position indicated by the gap signal is the actual gap position.

[0106] Specifically, after calculating the moving distance of the label paper, it is determined whether the moving distance is greater than or equal to the preset surface paper moving distance. At the same time, it is started 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 surface paper moving distance and there is a gap signal corresponding to the label paper, it can be determined that the gap position indicated by the gap signal is the actual gap position. The specific implementation method of detecting whether there is a gap signal corresponding to the label paper can be seen in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0107] S605, if there is no gap signal corresponding to the label paper after the moving distance is greater than or equal to the preset surface paper moving distance, stop executing the step of controlling the label paper to move the label paper based on the paper transmission path, and / or issue a preset alarm.

[0108] Specifically, after the moving distance is greater than or equal to the preset surface paper moving distance, there is no gap signal corresponding to the label paper. It can be understood that the value of the moving distance of the label paper on the paper transmission path is greater than or equal to the value of the size of the surface paper in the paper output direction, and the gap signal corresponding to the label paper is not detected, indicating that the label printer may have a fault and is not suitable for continuing the current printing task. The steps of controlling the label paper to move the label paper based on the paper transmission path can be stopped, and / or a preset alarm can be issued to remind the user that the printer has a fault.

[0109] It can be understood that, since the detection of whether there is a gap signal corresponding to the label paper is started at the same time as judging whether the moving distance is greater than or equal to the preset surface paper moving distance, when the label paper moves along the paper transmission path and the moving distance is less than the preset surface paper moving distance, a gap signal corresponding to the label paper may be detected. The detection of the existence of a gap signal in this process can be regarded as a false detection, and the gap signal can be ignored.

[0110] In the label paper gap positioning method provided in the embodiment of the present application, the size of the moving distance, the preset face paper moving distance, and the presence or absence of a gap signal corresponding to the label paper are monitored simultaneously, which can ensure that the actual gap position is detected as early as possible, and can also ensure the accuracy of detecting the actual gap position, avoiding the problem of false detection and missed detection of gaps caused by the unstable light transmittance characteristics of the face paper detected by the photoelectric sensor in the related technology, thereby reducing the problem of printing offset and missing in label printing, so that the label content can be accurately printed on the face paper, and the printing accuracy of label printing is improved. By monitoring the size of the label paper moving distance and the preset face paper moving distance, and monitoring the presence or absence of a gap signal, it is also possible to detect whether the printer is faulty. In the event of a fault (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 erroneous content in the event of a fault.

[0111] See also Figure 7 , a flow chart of another method for locating a gap in a label paper is provided for an embodiment of the present application.

[0112] Specifically, the method for positioning the gap of the label paper includes:

[0113] S701, determining the paper size of the label paper, and determining a preset paper moving distance based on the paper size.

[0114] S702, performing label paper movement processing on the label paper based on the paper transmission path, and calculating the movement distance of the label paper based on the surface paper position of the label paper.

[0115] Specifically, the implementation of steps S701-S702 can be found in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0116] S703, detecting whether there is a gap signal corresponding to the label paper.

[0117] S704, if a gap signal corresponding to the label paper is detected, determine whether the moving distance is greater than or equal to a preset face paper moving distance.

[0118] S705: If the moving distance is greater than or equal to the preset paper moving distance, determine that the gap position indicated by the gap signal is the actual gap position.

[0119] Specifically, after calculating the moving distance of the label paper, it starts to detect whether there is a gap signal corresponding to the label paper. When the gap signal corresponding to the label paper is detected, it is determined whether the moving distance is greater than or equal to the preset face paper moving distance. Further, if the moving distance is greater than or equal to the preset face paper moving distance, it can be confirmed that the gap position indicated by the gap signal is the actual gap position. The specific implementation method of detecting whether there is a gap signal corresponding to the label paper can be seen in Figure 1 The description of the relevant parts in the illustrated embodiment will not be repeated in detail here.

[0120] S706: If the moving distance is less than the preset paper moving distance, the gap signal is ignored.

[0121] Specifically, after executing step S706, the process may return to executing step S702: controlling the label paper to move the label paper based on the paper transport path, and calculating the moving distance of the label paper based on the position of the surface paper of the label paper.

[0122] It can be understood that when a gap signal corresponding to the label paper is detected, when the moving distance is less than the preset surface paper moving distance, it means that the gap signal is not an actual gap signal, and the gap signal can be considered to be 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 transmission path, and the moving distance of the label paper can continue to be calculated, that is, the steps of controlling the label paper based on the paper transmission path to move the label paper and calculating the moving distance of the label paper based on the surface paper position of the label paper can continue to be executed.

[0123] In the label paper gap positioning method provided in the present application, the presence or absence of a gap signal corresponding to the label paper is first detected, and then when the gap signal is detected, the moving distance and the preset surface paper moving distance are judged, which can reduce the data calculation amount of the processor of the label printer, thereby reducing the power consumption of the label printer. In addition, by monitoring the size of the label paper moving distance and the preset surface paper moving distance, as well as monitoring the presence or absence of a gap signal, the actual gap position of the surface paper can be accurately detected, avoiding the problem of false gap detection and missed detection caused by the unstable light transmittance characteristics of the surface paper detected by the photoelectric sensor in the related technology, thereby reducing the problems of printing offset and missing in label printing, so that the label content can be accurately printed on the surface paper, thereby improving the printing accuracy of label printing.

[0124] The following will be combined Figure 8 , the positioning device for the gap of the label paper provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 8 The positioning device of the label paper gap shown is used to implement the present application Figure 1 to Figure 7For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2 to Figure 8 The embodiment shown.

[0125] See also Figure 8 , which shows a schematic diagram of the structure of the label paper gap positioning device of the embodiment of the present application. The label paper gap positioning device 1 can be implemented as all or part of the device through software, hardware or a combination of both. According to some embodiments, the label paper gap positioning device 1 includes a size determination module 11, a movement control module 12, a gap detection module 13 and a gap confirmation module 14, which are specifically used to:

[0126] A size determination module 11, used to determine the size of the label paper, and determine a preset paper moving distance based on the paper size;

[0127] A movement control module 12, used for performing label paper movement processing on the label paper based on a paper transmission path, and calculating a movement distance of the label paper based on a surface paper position of the label paper;

[0128] The gap detection module 13 is 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;

[0129] The gap confirmation module 14 is used to determine 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.

[0130] Optionally, the mobile control module 12 is specifically used for:

[0131] Controlling the label paper to perform label paper movement processing based on the paper transport path, and determining the first moment when the gap detection sensor detects the start position of the surface paper;

[0132] 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.

[0133] Optionally, the gap detection module 13 is specifically used for:

[0134] Determining whether the moving distance is greater than or equal to the preset tissue paper moving distance;

[0135] If the moving distance is greater than or equal to the preset face paper moving distance, start detecting whether there is a gap signal corresponding to the label paper;

[0136] If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, determining the gap position indicated by the gap signal as the actual gap position includes:

[0137] If a gap signal corresponding to the label paper is detected, the gap position indicated by the gap signal is determined to be the actual gap position.

[0138] Optionally, the gap detection module 13 is specifically used for:

[0139] It is determined whether the moving distance is greater than or equal to the preset face paper moving distance, and it is started to detect whether there is a gap signal corresponding to the label paper.

[0140] Optionally, the gap detection module 13 is further used for:

[0141] If there is no gap signal corresponding to the label paper after the moving distance is greater than or equal to the preset surface paper moving distance, the step of controlling the label paper to move the label paper based on the paper transmission path is stopped, and / or a preset alarm is issued.

[0142] Optionally, the gap detection module 13 is specifically used for:

[0143] Detecting whether there is a gap signal corresponding to the label paper;

[0144] 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;

[0145] If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, determining the gap position indicated by the gap signal as the actual gap position includes:

[0146] If the moving distance is greater than or equal to the preset paper moving distance, it is determined that the gap position indicated by the gap signal is the actual gap position.

[0147] Optionally, the gap detection module 13 is further used for:

[0148] If the moving distance is less than the preset face paper moving distance, the gap signal is ignored, and the steps of controlling the label paper to move the label paper based on the paper transmission path and calculating the moving distance of the label paper based on the face paper position of the label paper are executed.

[0149] Optionally, the size determination module 11 is specifically used for:

[0150] The RFID chip integrated in the label paper reel is identified by the RFID module to obtain the surface paper size of the label paper; or,

[0151] receiving a label paper parameter transmission instruction sent by a user terminal, and obtaining a surface paper size of the label paper from the label paper transmission instruction; or,

[0152] The face paper model of the label paper is determined, and the face paper size of the label paper is determined based on the face paper model.

[0153] Optionally, the gap detection module 13 includes:

[0154] A material acquisition unit, used to acquire a target material type of the label paper;

[0155] A threshold determination unit, used to determine a gap detection threshold corresponding to the target material type from a preset gap detection mapping relationship;

[0156] The gap detection unit is used to detect whether there is a gap signal corresponding to the label paper by using the gap detection threshold.

[0157] Optional, material acquisition unit, specifically used for:

[0158] The RFID chip integrated in the label paper reel is identified by the RFID module to obtain the target material type of the label paper; or,

[0159] receiving a label paper parameter transmission instruction sent by a user terminal, and acquiring a target material type of the label paper from the label paper parameter transmission instruction; or,

[0160] The face paper model of the label paper is determined, and the target material type of the label paper is determined based on the face paper model.

[0161] Optionally, the label paper gap positioning device 1 further includes:

[0162] The rollback processing module is used to perform label paper rollback processing on the label paper based on the paper transmission path after the printer is in a pause state, and locate the start position of the surface paper of the label paper through a gap detection sensor.

[0163] Optionally, the label paper gap positioning device 1 further includes:

[0164] The printing processing module is used to: perform label paper movement processing on the label paper based on the paper transmission path; and perform printing processing on the label paper when the actual gap position matches the sensor position corresponding to the gap detection sensor.

[0165] The label paper gap positioning device provided in the embodiment of the present application first determines the face paper size of the label paper, determines the preset face paper moving distance based on the face paper size, then performs label paper moving processing on the label paper based on the paper transmission path, calculates the moving distance of the label paper based on the face paper position of the label paper, determines whether the moving distance is greater than or equal to the preset face paper moving distance, and detects 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 there is a gap signal, it is determined that the gap position indicated by the gap signal is the actual gap position. In this way, by monitoring the size of the label paper moving distance and the preset face paper moving distance, and monitoring the presence of a gap signal, the actual gap position of the face paper can be accurately detected, avoiding the problem of misdetection and missed detection of gaps caused by the unstable light transmittance characteristics of the face paper detected by the photoelectric sensor in the related art, thereby reducing the problems of printing offset and missing in label printing, so that the label content can be accurately printed on the face paper, and the printing accuracy of label printing is improved.

[0166] Please refer to Fig. 9 , a schematic diagram of the structure of an electronic device is provided for an embodiment of the present application. Exemplarily, the electronic device in the embodiment of the present application may be a label printer, and the electronic device may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.

[0167] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0168] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.

[0169] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0170] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.

[0171] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0172] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.

[0173] In some embodiments, the processor 110 may be used to call a program of a label paper gap positioning method stored in the memory 120, and specifically perform the following operations:

[0174] Determine the paper size of the label paper, and determine a preset paper moving distance based on the paper size;

[0175] Performing label paper moving processing on the label paper based on the paper transmission path, and calculating the moving distance of the label paper based on the surface paper position of the label paper;

[0176] Determine whether the moving distance is greater than or equal to the preset face paper moving distance, and detect whether there is a gap signal corresponding to the label paper;

[0177] If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, it is determined that the gap position indicated by the gap signal is the actual gap position.

[0178] Optionally, when executing the step of determining the data storage area of ​​the target difference print data, the processor 110 specifically performs the following operations:

[0179] Acquire a target printing instruction corresponding to the target difference printing data;

[0180] If it is determined based on the target printing instruction that the target difference printing data is of a data complete type, a complete data buffer area is determined as a data storage area for the target difference printing data;

[0181] If it is determined based on the target printing instruction that the target difference printing data is of an incomplete data type, a partial data buffer area is determined as a data storage area for the target difference printing data.

[0182] Optionally, when the processor 110 executes the steps of: the face paper position includes the face paper start position; the label paper movement processing is performed on the label paper based on the paper transmission path; and the moving distance of the label paper is calculated based on the face paper position of the label paper, the following operations are specifically performed:

[0183] Controlling the label paper to perform label paper movement processing based on the paper transport path, and determining the first moment when the gap detection sensor detects the start position of the surface paper;

[0184] 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.

[0185] Optionally, when executing the steps of 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, the processor 110 specifically performs the following operations:

[0186] Determining whether the moving distance is greater than or equal to the preset tissue paper moving distance;

[0187] If the moving distance is greater than or equal to the preset face paper moving distance, start detecting whether there is a gap signal corresponding to the label paper;

[0188] If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, determining the gap position indicated by the gap signal as the actual gap position includes:

[0189] If a gap signal corresponding to the label paper is detected, the gap position indicated by the gap signal is determined to be the actual gap position.

[0190] Optionally, when executing the steps of 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, the processor 110 specifically performs the following operations:

[0191] It is determined whether the moving distance is greater than or equal to the preset face paper moving distance, and it is started to detect whether there is a gap signal corresponding to the label paper.

[0192] Optionally, the processor 110 further performs the following operations:

[0193] If there is no gap signal corresponding to the label paper after the moving distance is greater than or equal to the preset surface paper moving distance, the step of controlling the label paper to move the label paper based on the paper transmission path is stopped, and / or a preset alarm is issued.

[0194] Optionally, when executing 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, the processor 110 specifically performs the following operations:

[0195] Detecting whether there is a gap signal corresponding to the label paper;

[0196] 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;

[0197] If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, determining the gap position indicated by the gap signal as the actual gap position includes:

[0198] If the moving distance is greater than or equal to the preset paper moving distance, it is determined that the gap position indicated by the gap signal is the actual gap position.

[0199] Optionally, the processor 110 further performs the following operations:

[0200] If the moving distance is less than the preset face paper moving distance, the gap signal is ignored, and the steps of controlling the label paper to move the label paper based on the paper transmission path and calculating the moving distance of the label paper based on the face paper position of the label paper are executed.

[0201] Optionally, when executing the step of determining the surface paper size of the label paper, the processor 110 specifically performs the following operations:

[0202] The RFID chip integrated in the label paper reel is identified by the RFID module to obtain the surface paper size of the label paper; or,

[0203] receiving a label paper parameter transmission instruction sent by a user terminal, and obtaining a surface paper size of the label paper from the label paper transmission instruction; or,

[0204] The face paper model of the label paper is determined, and the face paper size of the label paper is determined based on the face paper model.

[0205] Optionally, when executing the step of detecting whether there is a gap signal corresponding to the label paper, the processor 110 specifically performs the following operations:

[0206] Obtain the target material type of the label paper;

[0207] Determining a gap detection threshold corresponding to the target material type from a preset gap detection mapping relationship;

[0208] The gap detection threshold is used to detect whether there is a gap signal corresponding to the label paper.

[0209] Optionally, when executing the step of obtaining the target material type of the label paper, the processor 110 specifically performs the following operations:

[0210] The RFID chip integrated in the label paper reel is identified by the RFID module to obtain the target material type of the label paper; or,

[0211] receiving a label paper parameter transmission instruction sent by a user terminal, and acquiring a target material type of the label paper from the label paper parameter transmission instruction; or,

[0212] The face paper model of the label paper is determined, and the target material type of the label paper is determined based on the face paper model.

[0213] Optionally, the processor 110 further performs the following operations:

[0214] After the printer is in a paused state, the label paper is retracted based on the paper transport path, and the start position of the face paper of the label paper is located by a gap detection sensor.

[0215] Optionally, after executing the step of 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 processor 110 further performs the following operations:

[0216] Performing label paper moving processing on the label paper based on the paper transport path;

[0217] When the actual gap position matches the sensor position corresponding to the gap detection sensor, the label paper is printed.

[0218] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the method for locating the gap of label paper as described in the above embodiments.

[0219] An embodiment of the present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for locating the gap of label paper as described in the above embodiments.

[0220] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0221] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for positioning a gap in a label paper, characterized in that: The method comprises: Determine the paper size of the label paper, and determine a preset paper moving distance based on the paper size; Performing label paper moving processing on the label paper based on the paper transmission path, and calculating the moving distance of the label paper based on the surface paper position of the label paper; Determine whether the moving distance is greater than or equal to the preset face 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, it is determined that the gap position indicated by the gap signal is the actual gap position.

2. The method according to claim 1, characterized in that The face paper position includes the face paper start position, and the label paper movement processing is performed on the label paper based on the paper transmission path, and the movement distance of the label paper is calculated based on the face paper position of the label paper, including: Controlling the label paper to perform label paper movement processing based on the paper transport path, and determining the first moment when the gap detection sensor detects the start position of the surface paper; 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.

3. The method according to claim 1, characterized in that: The 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 tissue paper moving distance; If the moving distance is greater than or equal to the preset face paper moving distance, start detecting 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, 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, the gap position indicated by the gap signal is determined to be the actual gap position.

4. The method according to claim 1, characterized in that: The 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: It is determined whether the moving distance is greater than or equal to the preset face paper moving distance, and it is started to detect whether there is a gap signal corresponding to the label paper.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: If there is no gap signal corresponding to the label paper after the moving distance is greater than or equal to the preset surface paper moving distance, the step of controlling the label paper to move the label paper based on the paper transmission path is stopped, and / or a preset alarm is issued.

6. The method according to claim 1, characterized in that The determining whether the moving distance is greater than or equal to the size of the surface paper, 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; If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, 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, it is determined that the gap position indicated by the gap signal is the actual gap position.

7. The method according to claim 6, characterized in that The method further comprises: If the moving distance is less than the preset face paper moving distance, the gap signal is ignored, and the steps of controlling the label paper to move the label paper based on the paper transmission path and calculating the moving distance of the label paper based on the face paper position of the label paper are executed.

8. The method according to claim 1, characterized in that Determining the surface paper size of the label paper includes: The RFID chip integrated in the label paper reel is identified by the RFID module to obtain the surface paper size of the label paper; or, receiving a label paper parameter transmission instruction sent by a user terminal, and obtaining a surface paper size of the label paper from the label paper transmission instruction; or, The face paper model of the label paper is determined, and the face paper size of the label paper is determined based on the face paper model.

9. The method according to claim 1, characterized in that: The detecting whether there is a gap signal corresponding to the label paper includes: Obtain 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; 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, characterized in that The step of obtaining the target material type of the label paper includes: The RFID chip integrated in the label paper reel is identified by the 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 acquiring a target material type of the label paper from the label paper parameter transmission instruction; or, The face paper model of the label paper is determined, and the target material type of the label paper is determined based on the face paper model.

11. The method according to claim 1, characterized in that The method further comprises: After the printer is in a paused state, the label paper is retracted based on the paper transport path, and the start position of the face paper of the label paper is located by a gap detection sensor.

12. The method according to claim 1, characterized in that If the moving distance is greater than or equal to the preset paper moving distance and the gap signal exists, after determining that the gap position indicated by the gap signal is the actual gap position, the method further includes: Performing label paper moving processing on the label paper 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.

13. A label paper gap positioning device, characterized in that: The device comprises: A size determination module, used to determine the face paper size of the label paper, and determine a preset face paper moving distance based on the face paper size; A movement control module, used for performing label paper movement processing on the label paper based on a paper transmission path, and calculating a movement distance of the label paper based on a surface paper position of the label paper; 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; The gap confirmation module is used to determine 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 surface paper moving distance and the gap signal exists.

14. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 12.

15. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Label printer and operation method thereof

    CN113580784A

  • Label paper printing method and label printer applied to label paper printing method

    CN115157886A

  • Method for printing label through reflection detection and printer

    CN116080286A

  • Method and device for dynamically adjusting printing distance between adjacent label images and printer

    CN116330873A

  • Label initial positioning method, computer storage medium and label printer

    CN118144448A

Cited By

  • Label paper gap positioning method and apparatus, storage medium, and electronic device

    WO2026153514A1