Paper size automatic identification structure and method for printer
By setting sensors and photoelectric sensors in the printer, combined with width adjustment mechanism and limiting arms, automatic identification of paper size is achieved, solving the problem of user setting the wrong paper size, reducing printing error rate and paper waste, and improving printing Efficiency and user experience.
Patent Information
- Application Number
- CN202410937045.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-05
AI Technical Summary
It is difficult for users to set the correct paper size without measuring tools, resulting in printing errors, paper waste and other problems.
Set a width adjustment mechanism, limiting arm, photoelectric sensor and sensor in the printer, and use the displacement signal output by the sensor and the jump signal of the photoelectric sensor to calculate the width and length of the paper in combination with the mapping relationship to achieve automatic identification of paper size.
Accurately identify paper sizes without measuring tools, reduce printing error rates, and improve printing efficiency and user experience.
Smart Images

Figure CN118893919A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printers, and in particular to a paper size automatic recognition structure and method for a printer. Background Art
[0002] The printer is equipped with a paper width adjustment mechanism. Users can control the paper width adjustment mechanism to clamp the paper according to the paper size, ensuring that the paper can pass through the printer's printing area correctly and smoothly, avoiding problems such as paper jams and misaligned printing caused by paper size mismatch. Therefore, users need to set the length and width specifications of the paper in the computer application or mobile phone APP, and edit the print content within this size specification range to match the format of the print content with the actual format of the paper.
[0003] However, when the user does not have measuring tools or it is inconvenient to obtain paper size specifications, it is unclear how to set the paper size specifications. If the set size is inconsistent with the actual size of the paper, it will cause defects such as offset, missing or cross-page printing of printed text or patterns, resulting in waste of consumables such as paper and ink. Summary of the invention
[0004] In view of the above problems, the present invention proposes a paper size automatic recognition structure and method for a printer, which mainly solves the problem that the printer has no paper size recognition function.
[0005] In order to solve the above technical problems, the first aspect of the present invention proposes an automatic paper size recognition structure for a printer, comprising: a width adjustment mechanism installed in the printer, at least one limit arm driven by the width adjustment mechanism, a photoelectric sensor installed at the paper feed port of the printer, and a paper feed module, wherein a sensor is also provided inside the printer, and the sensor is triggered during the unidirectional sliding of the width adjustment mechanism or the limit arm.
[0006] In some embodiments, the width adjustment mechanism includes an adjusting gear, and a right rack and a left rack respectively meshing with the upper and lower ends of the adjusting gear, a limiting arm is fixed to the distal ends of the right rack and the left rack respectively, and the upper end surface of the right rack contacts the sensor during the process of sliding driven by the adjusting gear, or the lower end surface of the left rack contacts the sensor during the process of sliding driven by the adjusting gear.
[0007] In some embodiments, the two limiting arms are arranged parallel to each other at the paper feed port of the printer.
[0008] In some embodiments, a guiding slope is provided on a side of the upper end surface of the right rack / the left rack close to the sensor.
[0009] In some embodiments, the guiding slope is a rounded corner or a chamfered corner.
[0010] In some embodiments, the sensor is a multi-contact point contact sensor, and the arrangement direction of the contacts on the surface of the contact sensor is consistent with the sliding direction of the right rack.
[0011] In some embodiments, a hemispherical protrusion is provided on the upper end surface of the right rack / the left rack close to the sensor, and the protrusion is located in a vertical plane formed by the plurality of contact points, and the protrusion sequentially contacts the contact points on the sensor during the driven sliding process.
[0012] In some embodiments, the protrusion is detachably mounted on the upper end surface of the right rack, and the installation height of the sensor is adjustable.
[0013] A second aspect of the present invention provides a method for automatically identifying paper size for a printer, which is applicable to the above-mentioned identification structure and comprises the following steps:
[0014] The printing module of the printer enters silent mode, feeds the paper into the paper inlet of the printer, manually pushes the limit arm, or controls the width adjustment mechanism to drive the limit arm so that the limit arm just catches the paper, and finally drives the paper feed module;
[0015] Transmitting the first state information output by the sensor and the second state information output by the photoelectric sensor to the host computer, wherein the first state information is an array signal triggered by the sensor being pressed by the right rack / the left rack, and the second state information is two adjacent jump signals obtained by the photoelectric sensor;
[0016] The host computer calls the mapping relationship and searches for the corresponding paper width value from the mapping relationship according to the array signal;
[0017] The host computer queries the generation time of the two jump signals, calculates the operation steps of the stepper motor in the paper feeding module according to the two generation times, obtains the step length of the paper feeding module, and calculates the paper length value according to the operation steps and the step length.
[0018] In some implementations, the array signal includes multiple binary state values, each state value corresponds to a pressed state of the touch sensing sensor, wherein the mapping relationship includes multiple groups of the array signals and multiple groups of paper width values corresponding to the array signals.
[0019] The beneficial effects of the present invention are as follows: by arranging a sensor in the printer, when in use, the user can directly push the limit arm with his hand, or control the width adjustment mechanism to drive the limit arm so that the limit arm just catches the paper, the width adjustment mechanism or the limit arm contacts the sensor during the sliding process, and the width of the paper is indirectly detected according to the displacement signal output by the sensor. The user does not need to have a length measuring tool, and the displacement obtained by the sensor can be sent to the host computer, and the actual paper width can be determined by the mapping relationship preset in the host computer. In addition, the actual paper length is obtained by the photoelectric sensor and the paper feeding module, thereby realizing automatic recognition of the paper size. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a structural schematic diagram of a paper size automatic recognition structure for a printer disclosed in the first embodiment of the present invention;
[0021] Figure 2 It is a structural schematic diagram of one of the width adjustment mechanisms disclosed in the first embodiment of the present invention;
[0022] Figure 3 This is a structural schematic diagram of another width adjustment mechanism disclosed in the first embodiment of the present invention;
[0023] Wherein: 1-printer, 2-width adjustment mechanism, 3-limiting arm, 4-sensor, 5-photoelectric sensor, 201-adjusting gear, 202-left rack, 203-right rack, 204-bump, 205-guide ramp. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the content of the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It is understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for the convenience of description, only the parts related to the present invention are shown in the accompanying drawings, rather than all the contents.
[0025] Embodiment 1
[0026] This embodiment proposes a paper size automatic recognition structure for a printer, such as Figure 1As shown, it includes: a width adjustment mechanism 2 installed in the printer 1, at least one limit arm 3 driven by the width adjustment mechanism, a photoelectric sensor 5 installed at the paper inlet of the printer, and a paper feed module (not shown in the figure, this component is a conventional structure of the printer), wherein a sensor 4 is also arranged inside the printer 1, and the sensor 4 is triggered (contact or non-contact) during the unidirectional sliding process of the width adjustment mechanism 2 or the limit arm 3. It should be known that the above-mentioned limit arm 3 is used to limit the width of the paper, and there should be at least one of them. In this case, one limit arm 3 can be used to fix one side of the paper, and one end of the paper inlet of the printer 1 can fix the other side of the paper. Optionally, a double limit arm solution can also be adopted, and two limit arms 3 can be used to fix both sides of the paper.
[0027] In this embodiment, by setting a sensor 4 in the printer 1, when in use, the user can directly push the limit arm 3 by hand, or control the width adjustment mechanism 2 to drive the limit arm 3 so that the limit arm 3 just catches the paper. The width adjustment mechanism 2 or the limit arm 3 contacts the sensor 4 during the sliding process, and the width of the paper is indirectly detected according to the displacement signal output by the sensor 4. The user does not need to have a length measuring tool, and the displacement obtained by the sensor 4 can be sent to the host computer, and the actual paper width can be determined by the mapping relationship preset in the host computer. In addition, the actual paper length is obtained by the photoelectric sensor 5 and the paper feeding module 6 to realize automatic recognition of the paper size.
[0028] In the present invention, the width adjustment mechanism 2 or the limiting arm 3 can be used as a part that specifically contacts the sensor 4. In an optional solution, the width adjustment mechanism 2 is used as a contact member as an example. Figure 2As shown, the width adjustment mechanism 2 includes an adjustment gear 201, and a right rack 203 and a left rack 202 respectively meshing with the upper and lower ends of the adjustment gear 201, and a limit arm 3 is fixed to the far end of the right rack 203 and the left rack 202, and the upper end surface of the right rack 203 contacts the sensor 4 during the sliding process driven by the adjustment gear 201, or optionally, the lower end surface of the left rack 202 contacts the sensor 4 during the sliding process driven by the adjustment gear 201. Take the limit arm 3 on the right rack 203 pushed by a human hand as an example, assuming that the right rack 203 slides toward the sensor 4, the upper surface of the right rack 203 continuously contacts the detection point on the sensor 4 during the sliding process, thereby detecting the stroke of the right rack 203 and outputting the corresponding displacement signal, at this time, the adjustment gear 201 rotates counterclockwise and drives the left rack 202 to slide to the right, realizing the synchronous control of the two limit arms 3. In the above scheme, when the limit arm 3 is manually driven, the adjustment gear 201 only serves as a connector between the right rack 203 and the left rack 202, and when the limit arm 3 is electrically driven, the motor can be used to control the rotation of the adjustment gear 201 to control the two limit arms 3 to move toward each other to clamp the paper. Optionally, the start and stop of the motor can be controlled by a sensor, such as visual detection or sensor detection, and when the limit arm 3 contacts the paper, the electrode stops rotating immediately.
[0029] Specifically, the two limit arms 3 are arranged parallel to each other at the paper inlet of the printer 1 , and the maximum distance between the two limit arms 3 should not exceed the width of the paper inlet.
[0030] Optional, continue to Figure 2 A guide slope 205 is provided on the upper end surface of the right rack 203 / left rack 202 close to the sensor 4. The guide slope 205 can be selected as a rounded corner or a chamfered corner. Its purpose is to smooth the head of the right rack 203 and avoid collision between the head of the right rack 203 and the sensor 4.
[0031] In one example, the sensor 4 is a multi-touch contact sensor, and the arrangement direction of the contacts on the surface of the contact sensor is consistent with the sliding direction of the right rack 203, that is, the contact sensor is composed of multiple sensors 1, 2, 3, etc. In this solution, the above displacement signal is further simplified into the state of the sensor, as shown in Table 1 below, when the signals output by sensor 1, sensor 2 and sensor 3 are 1, 0 and 0 respectively, it means that the right rack 203 only contacts sensor 1, and the paper width at this time is W2.
[0032] Obviously, since the present solution uses the adjusting gear 201 as a connecting part, the right rack 203 and the left rack 202 move toward or away from each other with the same amplitude. On this basis, the displacement change of the right rack 203 is equivalent to half of the change in the paper width, that is, the spacing between adjacent sensors is 1 / 2 of the width of the two adjacent papers, which can be used as the design basis of Table 1.
[0033] Table 1 Mapping relationship between sensor status and paper width
[0034]
[0035]
[0036] In another alternative, if Figure 3 As shown, a hemispherical protrusion 204 is provided on the upper end surface of the right rack 203 / left rack 202 near the sensor 4. The protrusion 204 is located in a vertical plane formed by multiple contact points. The protrusion 204 sequentially contacts the contact points on the sensor 4 during the driven sliding process. This solution is an alternative solution to the direct contact between the upper end surface of the right rack 203 (i.e., the side of the guide slope 205) and the sensor 4. The protrusion 204 is in direct contact with the sensor 4. At this time, the protrusion 204 plays a guiding role because it is hemispherical. Furthermore, the protrusion 204 is detachably mounted on the upper end surface of the right rack 203. Accordingly, the installation height of the sensor 4 is adjustable.
[0037] It also includes a signal transmitter coupled to the sensor 4, and the signal transmitter unidirectionally transmits the displacement signal output by the sensor 4 to the mobile device or computer with which communication has been established. Therefore, the printer adopting the structure described in this embodiment can automatically identify the width size of the paper, and can report the automatically identified paper width size to the computer application or mobile phone APP, and then automatically adjust the editing interface size of the label paper according to the label width size, thereby reducing the professional technical difficulty of the user to use the printing device, reducing the printing error rate, and improving the printing efficiency and experience.
[0038] Embodiment 2
[0039] This embodiment proposes a method for automatically identifying paper size for a printer, which is applicable to the identification structure described in the first embodiment and includes the following steps:
[0040] Step 1: The printing module of printer 1 enters silent mode, feeds paper into the paper feed port of printer 1, manually pushes the limit arm 3, or controls the width adjustment mechanism to drive the limit arm 3 so that the limit arm 3 just catches the paper, and finally drives the paper feed module.
[0041] The purpose of the scheme of this embodiment is to identify the paper size, so the printing module needs to enter the silent mode to avoid meaningless waste of ink and paper. Then, the two limit arms 3 can be manually or electrically controlled to clamp the paper to complete the limit of the paper in the width direction, and then the paper feeding module is started immediately to start the paper size detection.
[0042] Step 2: Transmit the first state information output by the sensor 4 and the second state information output by the photoelectric sensor 5 to the host computer, wherein the first state information is the array signal triggered by the sensor 4 being pressed by the right rack 203 / left rack 202, and the second state information is two adjacent jump signals obtained by the photoelectric sensor 5.
[0043] For example, referring to the contact sensing sensor described in Example 1, it is composed of multiple identical sensors. When the right rack 203 / left rack 202 is pressed against the contact sensing sensor, the sensor generates a switch signal, which is referred to as the state value in the following of this embodiment. The array signal includes multiple binary state values, each state value corresponds to the pressing state of a contact sensing sensor, wherein the mapping relationship includes multiple groups of array signals and multiple groups of paper width values corresponding to the array signals. Referring to Example 1, assuming that the signals output by sensor 1, sensor 2 and sensor 3 are 1, 0 and 0 respectively, the array signal transmitted by the printer to the upper computer is 100. After the paper feed module drives the paper into the paper feed port, when the paper passes through the photoelectric sensor 5 for the first time, the light emitted by the photoelectric sensor 5 (such as a through-beam photoelectric sensor) is blocked by the paper, and the signal will jump from 1 to 0. When the subsequent paper moves away from the photoelectric sensor 5, it will jump from 0 to 1 again.
[0044] Step 3: The host computer calls the mapping relationship and searches for the corresponding paper width value from the mapping relationship according to the array signal.
[0045] The method for obtaining the paper width value in step three refers to Table 1 disclosed in the first embodiment. Assuming that the array signal currently sent to the host computer is 100, according to the mapping relationship in Table 1, the paper width value finally obtained is W2.
[0046] Considering that there is a gap between the two sensors, when the projection 204 moves between the two sensors, there will be an error. Therefore, in another optional solution, the paper width value in the mapping relationship is replaced with the paper width range.
[0047] Step 4: The host computer queries the generation time of the two jump signals, calculates the number of operation steps of the stepper motor in the paper feeding module according to the two generation times, obtains the step length of the paper feeding module, and calculates the paper length value according to the number of operation steps and the step length.
[0048] The above-mentioned jump signal can carry time information, or it can be directly sent to the host computer at the moment of its generation, and the host computer assigns time information. According to the time of the two jump signals, the total time for the two ends of the paper to pass through the photoelectric sensor 5 can be calculated, and the travel speed of the paper feeding module is known, so the paper length value can be calculated by the above two parameters. In one example, if the paper is composed of label paper and release paper, wherein the release paper (transparent) is continuous, and the label paper (opaque) is arranged at intervals on the release paper, according to the principle of this scheme, when the release paper passes over the photoelectric sensor 5, the light emitted by the photoelectric sensor 5 (such as a through-beam photoelectric sensor) is not blocked, and the signal will not jump. When the label paper passes over the photoelectric sensor 5, the light emitted by the photoelectric sensor 5 is blocked, and jumps from 1 to 0. The subsequent label paper moves away from the photoelectric sensor 5, and then jumps from 0 to 1 again, completing a round of numerical calculation. Of course, in order to increase the accuracy of the measurement, multiple groups of jump signals are measured each time, and multiple groups of paper length results are calculated, and finally the average of the multiple groups of paper length results is taken to obtain the final paper length value.
[0049] Further optionally, step five is also included, in which the computer application or mobile phone APP of the printer obtains the paper width value and the paper length value from the host computer, and adjusts the format of the paper in the user editing interface according to the obtained paper width value and paper length value.
[0050] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable ordinary technicians in the field to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made based on the essence of the content of the present invention should be included in the protection scope of the present invention.
Claims
1. A paper size automatic recognition structure for a printer, characterized in that: include: A width adjustment mechanism installed in the printer, at least one limit arm driven by the width adjustment mechanism, a photoelectric sensor installed at the paper feed port of the printer, and a paper feed module, wherein a sensor is also arranged inside the printer, and the sensor is triggered during the unidirectional sliding of the width adjustment mechanism or the limit arm.
2. The automatic paper size recognition structure for a printer as claimed in claim 1, characterized in that: The width adjustment mechanism includes an adjusting gear, and a right rack and a left rack respectively meshing with the upper and lower ends of the adjusting gear, a limiting arm is fixed to the far ends of the right rack and the left rack respectively, and the upper end surface of the right rack contacts the sensor during the process of sliding driven by the adjusting gear, or the lower end surface of the left rack contacts the sensor during the process of sliding driven by the adjusting gear.
3. The automatic paper size recognition structure for a printer as claimed in claim 2, characterized in that: The two limit arms are arranged parallel to each other at the paper inlet of the printer.
4. The automatic paper size recognition structure for a printer as claimed in claim 2, characterized in that: A guiding inclined surface is arranged on a side of the upper end surface of the right rack / the left rack close to the sensor.
5. The automatic paper size recognition structure for a printer as claimed in claim 4, characterized in that: The guiding inclined surface is a rounded corner or a chamfered corner.
6. The automatic paper size recognition structure for a printer as claimed in claim 2, characterized in that: The sensor is a multi-contact point contact sensor, and the arrangement direction of the contacts on the surface of the contact sensor is consistent with the sliding direction of the right rack.
7. The automatic paper size recognition structure for a printer as claimed in claim 2, characterized in that: A hemispherical protrusion is provided on one side of the upper end surface of the right rack / the left rack close to the sensor. The protrusion is located in a vertical plane formed by the plurality of contact points. The protrusion contacts the contact points on the sensor in sequence during the driven sliding process.
8. The automatic paper size recognition structure for a printer as claimed in claim 7, characterized in that: The protrusion is detachably mounted on the upper end surface of the right rack, and the mounting height of the sensor is adjustable.
9. A method for automatically identifying paper size for a printer, applicable to the identification structure according to any one of claims 2 to 8, characterized in that: The following steps are involved: The printing module of the printer enters silent mode, feeds the paper into the paper inlet of the printer, manually pushes the limit arm, or controls the width adjustment mechanism to drive the limit arm so that the limit arm just catches the paper, and finally drives the paper feed module; Transmitting the first state information output by the sensor and the second state information output by the photoelectric sensor to the host computer, wherein the first state information is an array signal triggered by the sensor being pressed by the right rack / the left rack, and the second state information is two adjacent jump signals obtained by the photoelectric sensor; The host computer calls the mapping relationship and searches for the corresponding paper width value from the mapping relationship according to the array signal; The host computer queries the generation time of the two jump signals, calculates the operation steps of the stepper motor in the paper feeding module according to the two generation times, obtains the step length of the paper feeding module, and calculates the paper length value according to the operation steps and the step length.
10. The method for automatically identifying paper size for a printer according to claim 9, characterized in that: The array signal includes a plurality of binary state values, each of which corresponds to a pressing state of the contact sensing sensor, wherein the mapping relationship includes a plurality of groups of the array signals and a plurality of groups of the paper width values corresponding to the array signals.
Citation Information
Cited By
Printing processing method, device and equipment
CN119550739A
