Portable terminal, printing control method, and program
The portable terminal uses multiple sensor units to rapidly identify paper type by transporting it in the opposite direction to the ejection direction, addressing the inefficiencies of conventional thermal printers.
Patent Information
- Application Number
- JP2022189833
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2042-11-29
AI Technical Summary
Conventional thermal printers require long times to determine the type of paper due to the positional relationship between the paper insertion section and the sensor section, often necessitating transportation of paper in both forward and reverse directions, which wastes time and resources.
A portable terminal equipped with a first sensor unit to detect paper presence, a second sensor unit to detect marks on the paper, and a paper determination unit that transports the paper in the opposite direction to the ejection direction for rapid paper type determination.
Enables rapid paper type identification, reducing detection time and improving efficiency by using multiple sensor units to determine paper type without unnecessary back-and-forth transportation.
Smart Images

Figure 0007961115000001 
Figure 0007961115000002 
Figure 0007961115000003
Abstract
Description
Technical Field
[0001] The present disclosure relates to a portable terminal, a print control method, and a program.
Background Art
[0002] In a thermal printer, multiple types of paper may be used as the paper to be printed on. In addition, the thermal printer automatically determines the type of loaded paper.
[0003] For example, in the technology described in Patent Document 1, the type of paper loaded in a printing device is identified, and operations are performed according to the paper type (see Patent Document 1).
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0005] A conventional thermal printer includes a single sensor unit, uses an auto-loading method to convey the paper in the forward direction from the leading edge of the paper, detects marks on the paper using the sensor unit, and determines whether the paper is label paper or plain paper based on the detection result. In this case, the thermal printer conveys the paper in the reverse direction to return it to the leading edge of the paper so that the first sheet is not wasted.
[0006] However, with conventional technology, the positional relationship between the paper insertion section and the sensor section sometimes prevents the detection of the mark on the first sheet of paper. Therefore, the type of paper is determined by detecting the mark on the second sheet. Consequently, conventional technology involves transporting one sheet of paper in both forward and reverse directions, which results in a long time required to determine the type of paper.
[0007] This disclosure was made in consideration of these circumstances, and aims to provide a portable terminal, a printing control method, and a program that can perform the process of determining the type of paper loaded in a short amount of time. [Means for solving the problem]
[0008] One aspect of the present disclosure is a portable terminal having a thermal head, comprising: a first sensor unit for detecting the presence or absence of paper; a second sensor unit for detecting information relating to a mark provided on the paper; and a paper determination unit for determining the type of paper, wherein the paper determination unit transports the paper in the opposite direction to the direction of ejection and determines the type of paper based on the result of detecting the information relating to the mark by the second sensor unit.
[0009] One aspect of the present disclosure is a printing control method performed in a portable terminal having a thermal head, wherein a first sensor unit detects the presence or absence of paper, a second sensor unit detects information regarding a mark provided on the paper, and a paper determination unit transports the paper in the opposite direction to the ejection direction and determines the type of paper based on the result of the second sensor unit detecting the information regarding the mark.
[0010] One aspect of this disclosure is a program for a computer constituting a portable terminal having a thermal head, which enables the following functions: a function to detect the presence or absence of paper based on the detection result of a first sensor unit; a function to detect information regarding a mark provided on the paper based on the detection result of a second sensor unit; and a function to determine the type of paper based on the result of detecting the information regarding the mark by the second sensor unit while transporting the paper in the opposite direction to the direction of ejection. [Effects of the Invention]
[0011] According to the portable terminal, print control method, and program described herein, the process of determining the type of paper loaded can be realized in a short amount of time. [Brief explanation of the drawing]
[0012] [Figure 1] This figure shows an example of a schematic configuration of the printing system according to the embodiment and an example of a schematic appearance of the thermal printer. [Figure 2] This figure shows an example of a functional block of a thermal printer according to the embodiment. [Figure 3] This figure shows a schematic example of the configuration of a label paper without a backing sheet according to the embodiment. [Figure 4] This figure shows an example of a schematic configuration of a label paper with a backing according to the embodiment. [Figure 5] This figure shows an example of the positional relationship between the sensor and the mark when the paper according to the embodiment is set. [Figure 6] This figure shows an example of the positional relationship between the sensor and the mark when the label paper with backing according to the embodiment is set. [Figure 7] This figure shows an example of the positional relationship between the sensor and the mark when the label paper without a backing according to the embodiment is set. [Figure 8A] This figure shows an example of the processing procedure performed in a thermal printer according to the embodiment. [Figure 8B]FIG. 11 is a diagram illustrating an example of a procedure of processing performed by the thermal printer according to the embodiment. [Figure 8C] FIG. 12 is a diagram illustrating an example of a procedure of processing performed by the thermal printer according to the embodiment. [Embodiments for carrying out the invention]
[0013] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0014] [Printing system] FIG. 1 is a diagram illustrating an example of a schematic configuration of a printing system 1 according to the embodiment and an example of a schematic appearance of a thermal printer 12. The printing system 1 includes a host device 11 and the thermal printer 12. The host device 11 and the thermal printer 12 are communicably connected by wire or wirelessly. Here, in the present embodiment, the thermal printer 12 is a portable terminal having a thermal head.
[0015] As the wired communication, for example, USB (Universal Serial Bus) communication or the like may be used. As the wireless communication, for example, WiFi communication, Bluetooth (registered trademark) communication, or the like may be used.
[0016] <Host device> The host device 11 is, for example, a computer such as a laptop computer, a notebook computer, a smartphone, or a tablet terminal.
[0017] Here, in the present embodiment, the host device 11 includes a processor such as a CPU (Central Processing Unit), and memories such as a ROM (Read Only Memory) and a RAM (Random Access Memory). The host device 11 performs various processes by executing a predetermined program using the processor. This program may be stored in the memory.
[0018] In this embodiment, the host device 11 controls the printing process performed by the thermal printer 12 by, for example, sending a print command to the thermal printer 12.
[0019] <Thermal Printer> Figure 1 shows an example of the appearance of the thermal printer 12. The thermal printer 12 includes a housing 111. The housing 111 has an upper housing 111a and a lower housing 111b. The upper part of the casing 111a may also be called, for example, the top cover.
[0020] The thermal printer 12 also includes a paper output port 131, a pincher 132, a first sensor unit 151, a second sensor unit 152, and a third sensor unit 153. In this embodiment, a configuration is shown in which the first sensor unit 151, the second sensor unit 152, and the third sensor unit 153 are provided in the lower part 111b of the housing. However, the configuration is not necessarily limited to this configuration, and for example, a configuration in which the first sensor unit 151 is provided in the upper part 111a of the housing may also be used.
[0021] Figure 1 shows an example of paper 1011 being loaded into the thermal printer 12. Figure 1 also shows the leading edge 1021 of the paper 1011 and the direction 2011 in which the paper 1011 is thrown into the lower part 111b of the thermal printer 12 housing. Note that form 1011 may have a designated mark, but this mark is not shown in Figure 1.
[0022] In this embodiment, the second sensor unit 152 is variable and can be adjusted in the width direction according to the paper width by the pincher 132. On the other hand, in this embodiment, the third sensor unit 153 is positioned in a fixed location.
[0023] Here, we will briefly explain the operation of the thermal printer 12 according to this embodiment. In this embodiment, the thermal printer 12 determines three types of paper: plain paper (for example, receipt paper), label paper without backing, and label paper with backing.
[0024] When loading paper into the thermal printer 12, the user throws the roll of paper in the designated direction 2011, operates the pincher 132 to adjust the paper width, and closes the top of the housing 111a. In this embodiment, the determination time can be shortened by setting the leading edge 1021 of the paper so that it is within 50 mm of the paper output port 131.
[0025] After the top of the enclosure 111a is closed, the thermal printer 12 uses the first sensor unit 151 to determine whether or not there is paper, and then transports the paper. In this case, if there is paper, the thermal printer 12 transports the paper in the reverse direction until there is no paper left, so that the first label or leading edge of the paper can be used. During this operation, detection by the second sensor unit 152 or the third sensor unit 153 is not performed. The reason for this is to allow the paper to be used from the leading edge.
[0026] Next, the thermal printer 12 detects the mark on the paper using the second sensor unit 152 or the third sensor unit 153 and automatically determines the type of paper. In the example shown in Figure 1, although not shown, a mark is provided at the position corresponding to the placement of the second sensor unit 152 on the label paper without a backing. On the other hand, although not shown in the example shown in Figure 1, a mark is provided at the position corresponding to the placement of the third sensor unit 153 on the label paper with a backing. Also, no mark is provided on plain paper.
[0027] As a result, the thermal printer 12 can determine if a label paper without a backing is detected by the second sensor unit 152, and if a label paper with a backing is detected by the third sensor unit 153. Furthermore, the thermal printer 12 can determine that the paper is plain paper if no mark is detected by either the second sensor unit 152 or the third sensor unit 153. Then, the thermal printer 12 sets the correction amount for the automatically detected paper cut position and the print start position, and moves the paper to the cut position.
[0028] Figure 2 shows an example of the functional block of the thermal printer 12 according to this embodiment. In this embodiment, the thermal printer 12 is shown as being applied to a POS (Point of Sale) terminal, but it is not limited to this.
[0029] Figure 2 shows an example of the functional blocks of the thermal printer 12. The thermal printer 12 includes a CPU 251 and a functional unit A1 including its peripheral functions, a paper feed motor 311, a thermal head 312, a cutter motor 313, a mechanical sensor 314, and a sensor 315.
[0030] Functional unit A1 includes a communication interface 211, a display control circuit 212, a drawer control circuit 213, a switch control circuit 214, a power control circuit 215, a RAM 231, a ROM 232, a paper transport control circuit 233, a printing control circuit 234, a cutter control circuit 235, a cover open detection circuit 236, a paper / mark detection circuit 237, a take detection circuit 238, a mark detection circuit 239, and a cutter position detection circuit 240.
[0031] In this embodiment, the thermal printer 12 includes a processor (CPU 251 in this embodiment) and memory such as ROM 232 and RAM 231. In the thermal printer 12, the processor executes various processes by running a predetermined program using the memory. The program may also be stored in the memory. In this embodiment, the function of the paper type determination unit is shown to be implemented by the CPU 251. However, as another example, the thermal printer 12 may be equipped with a paper type determination unit separate from the CPU 251.
[0032] Furthermore, Figure 2 shows that the thermal printer 12 includes external devices such as a host device 11, an LED (Light Emitting Diode) unit 21, a drawer 22, a switch unit 23, and an AC (Alternating Current) adapter 24. The LED unit 21 is equipped with an LED, which emits light or flashes to display predetermined information. Drawer 22 is a cash drawer for a POS system. The switch unit 23 is equipped with one or more switches, and when a user operates these switches, it receives instructions corresponding to those operations. The switch unit 23 may also have switches that receive instructions such as feeds. The AC adapter 24, for example, is connected to a commercial power supply and converts the AC power from the commercial power supply to DC power.
[0033] The various functional components of the thermal printer 12 will now be described. The paper feed motor 311 is a motor that transports paper. The thermal head 312 is a print head that uses heat to print on paper. The cutter motor 313 is the motor that drives the cutter. The mechanical sensor 314 detects the open / closed state of the upper part 111a of the housing.
[0034] Sensor 315 detects values (e.g., physical quantities) for information detection by the paper / mark detection circuit 237, the take detection circuit 238, the mark detection circuit 239, and the cutter position detection circuit 240, respectively. Sensor 315 has different sensors for each of the paper / mark detection circuits 237, take detection circuit 238, mark detection circuit 239, and cutter position detection circuit 240. A PI sensor may be used as sensor 315.
[0035] In this embodiment, the take detection circuit 238 and its sensor correspond to the first sensor unit 151, the mark detection circuit 239 and its sensor correspond to the second sensor unit 152, and the paper / mark detection circuit 237 and its sensor correspond to the third sensor unit 153.
[0036] The paper transport control circuit 233 controls the paper feed motor 311 in response to instructions from the CPU 251. The printing control circuit 234 controls the thermal head 312 in response to instructions from the CPU 251. The cutter control circuit 235 controls the cutter motor 313 in response to instructions from the CPU 251.
[0037] The cover open detection circuit 236 detects the cover open state, where the upper part 111a of the housing is open, based on the detection result of the mechanical sensor 314, and notifies the CPU 251 of the detection result. When the cover is not open, the cover is closed, where the upper part 111a of the housing is closed. The paper / mark detection circuit 237 detects paper or marks based on the detection result of the sensor 315 and notifies the CPU 251 of the detection result. The take detection circuit 238 detects that a piece of paper (for example, a cut piece of paper) has been removed based on the detection result of the sensor 315, and notifies the CPU 251 of the detection result. The mark detection circuit 239 detects a mark based on the detection result of the sensor 315 and notifies the CPU 251 of the detection result. The cutter position detection circuit 240 detects the cutter position (the position where the cutter cuts the paper) based on the detection result of the sensor 315 and notifies the CPU 251 of the detection result.
[0038] The communication interface 211 is an interface for communicating with the host device 11. The CPU 251 communicates with the host device 11 via the communication interface 211. In this embodiment, for example, print data and the like are sent from the host device 11 to the thermal printer 12.
[0039] The display control circuit 212 controls the LED unit 21 in response to instructions from the CPU 251, thereby displaying desired information using the LED unit 21. The drawer control circuit 213 controls the state of the drawer 22 (for example, by controlling the opening of the drawer 22) in response to instructions from the CPU 251. The switch control circuit 214 receives instructions corresponding to operations performed on the switches of the switch unit 23 and notifies the CPU 251 of these instructions. The power control circuit 215 supplies power input from the AC adapter 24 to the CPU 251. In this embodiment, the various functional units of the thermal printer 12 operate using this power.
[0040] [Example of paper types] <Plain paper> Plain paper is paper that does not have a mark.
[0041] <Label paper without backing> Figure 3 shows an example of a schematic configuration of the backing-less label paper 401 according to the embodiment. Figure 3 shows the print area 421 set inside the label paper without backing paper 401, and the marks 431 and 432 provided on the label paper without backing paper 401. In the example shown in Figure 3, marks 431 and 432 are provided at predetermined intervals in the vertical direction to the right of the center of the label paper 401 without a backing sheet as shown in the figure. Multiple marks may be provided at regular intervals throughout the entire roll, for example. Note that the example in Figure 3 is a schematic representation, and the shape of the marks, their position, and their spacing are not limited to this example.
[0042] <Label paper with backing> Figure 4 shows an example of a schematic configuration of the label paper 501 with a backing according to the embodiment. Figure 4 shows backing sheets 511 and 512 provided at predetermined intervals on the backing sheet label paper 501, printable areas 521 and 522 set inside each backing sheet 511 and 512, and marks 531 and 532 provided on the backing sheet label paper 501 in the corresponding locations on each backing sheet 511 and 512. Multiple marks may be provided, for example, at regular intervals throughout the entire roll. In the example shown in Figure 4, marks 531 and 532 are provided at predetermined intervals in the vertical direction to the left of the center of the label paper 501 with a backing sheet shown in the figure. Note that the example in Figure 4 is a schematic representation, and the shape of the backing, the spacing of the backings, the shape of the marks, the position of the marks, the spacing of the marks, etc., are not limited to this example.
[0043] <Example of the relative positions of the sensor and the mark when loading paper> Refer to Figures 5 to 7 to explain an example of the positional relationship between the sensor and the mark when paper is loaded. Figures 5 to 7 illustrate the case where label paper with a mark spacing (label length) of 110 mm is used.
[0044] Figures 5 to 7 show the XYZ Cartesian coordinate system, which is a three-dimensional Cartesian coordinate system, for the sake of explanation. In the examples shown in Figures 5 to 7, the positive direction of the Y-axis is the front direction of the thermal printer, the negative direction of the Y-axis is the rear direction of the thermal printer, the direction parallel to the X-axis is the lateral direction perpendicular to the front-to-back direction of the thermal printer, the positive direction of the Z-axis is the upward direction, and the negative direction of the Z-axis is the downward direction.
[0045] Figure 5 shows an example of the positional relationship between the sensor and the mark when the paper according to the embodiment is set. In the example shown in Figure 5, a cross-section of the thermal printer is displayed when viewed from a viewpoint moving from the positive to the negative side of the X-axis. The example configuration of the thermal printer shown in Figure 5 is a specific example of the thermal printer 12 shown in Figures 1 and 2.
[0046] Figure 5 shows the components of the thermal printer, including the upper part of the casing 611, the lower part of the casing 612, the thermal head 621, the platen 622, the paper guide 623, the cutter section 624 consisting of an upper cutter blade 624a and a lower cutter blade 624b, the take sensor 651 corresponding to the first sensor section, and the mark sensor 652 corresponding to the second sensor section. Figure 5 also shows the paper 711 loaded into the thermal printer, and the marks 721 and 722 provided on the paper 711.
[0047] Here, the upper part of the housing 611 serves as a cover. The upper cutter blade 624a and the thermal head 621 are attached to the upper part of the housing 611. Additionally, the lower part of the housing 612 is equipped with a platen 622, a paper guide 623, a lower cutter blade 624b, a take sensor 651, and a mark sensor 652.
[0048] Let's explain the example dimensions shown in Figure 5. The distance L1 between the leading edge of paper 711 and the output port of the thermal printer is 50.0 mm. The distance L2 between the leading edge of paper 711 and the lower edge of mark 721 is 18.5 mm. The distance L3 between the output port of the thermal printer and the cutter blades 624a and 624b is 20.0 mm. The distance L4 between the lower end (upstream end) of the take sensor 651 and the lower end (upstream end) of the paper guide 623 is 18.0 mm. If the leading edge of the paper 711 is back-feeded beyond this distance L4, the paper 711 will get caught in the platen 622, resulting in a transport error. The distance L5 between the cutter blades 624a and 624b and the thermal head 621 is 12.5 mm. The distance L6 between the thermal head 621 and the mark sensor 652 is 13.8 mm. The distance L7 of the mark spacing (label length) is 110.0 mm.
[0049] Here, the optimal way to set the paper 711 is, for example, within a range of 50 mm ± 10 mm from the output port of the thermal printer. This is because if the paper 711 is set inside the output port, there is a possibility that the roll of paper 711 will move backward and detach from the platen 622. The upper and lower limits within which the effect of this embodiment—the ability to quickly detect marks—is maximized are, for example, an upper limit of 60 mm (taking 3 seconds) and a lower limit of 40 mm (taking 2 seconds) from the optimal distance. When returning the paper 711 (especially when receipt paper is loaded), the distance it should be returned can be determined, for example, by returning the paper 711 to the lower end (upstream end) of the take sensor 651 and then returning it 18 mm.
[0050] Furthermore, the take-up sensor 651 is positioned to prevent false detection due to ambient light. The mark sensor 652 is positioned so as not to interfere with the platen 622.
[0051] Figure 6 shows an example of the positional relationship between the sensor and the mark when the label paper 811 with a backing according to the embodiment is set. Note that the label paper with backing 811 is a specific example of the label paper with backing 501 shown in Figure 4.
[0052] The example in Figure 6 shows what the thermal printer looks like when viewed from a viewpoint that moves from the positive side to the negative side of the Z-axis (viewing from above to below). Figure 6 also shows the mark sensor 653, which corresponds to the third sensor section that is not visible in the example of Figure 5 because it overlaps with the mark sensor 652.
[0053] Figure 6 shows an example of the paper 711 shown in Figure 5, where label paper with a backing sheet 811 is used. Figure 6 shows the label paper 811 with a backing sheet set in the thermal printer, and the marks 821 to 822 provided on the label paper 811.
[0054] Let's explain the example dimensions shown in Figure 6. The distance L21 between the leading edge of the label paper 811 with backing and the output port of the thermal printer is 50.0 mm. The distance L22 between the front edge of the backing label paper 811 and the bottom edge of the mark 921 is 18.5 mm. The distance L23 between the thermal printer's output port and the cutter blades 624a and 624b is 20.0 mm. The distance L24 between the lower end (upstream end) of the take sensor 651 and the lower end (upstream end) of the paper guide 623 is 18.0 mm. The distance L25 between the cutter blades 624a and 624b and the thermal head 621 is 12.5 mm. The distance L26 between the thermal head 621 and the mark sensors 652 and 653 is 13.8 mm. The distance L27 for the mark spacing (label length) is 110.0 mm.
[0055] Figure 7 shows an example of the positional relationship between the sensor and the mark when the label paper 911 without a backing according to the embodiment is set. Note that the label paper without backing paper 911 is a specific example of the label paper without backing paper 401 shown in Figure 3.
[0056] Figure 7 shows the thermal printer as viewed from a viewpoint that moves from the positive side to the negative side of the Z-axis (viewing from above to below). Figure 7 also shows the mark sensor 653, which corresponds to the third sensor section that is not visible in the example of Figure 5 because it overlaps with the mark sensor 652.
[0057] Figure 7 shows an example of the paper 711 shown in Figure 5, where label paper 911 without a backing sheet is used. Figure 7 shows the label paper 911 without a backing sheet set in the thermal printer, and the marks 921 to 923 provided on the label paper 911. In the example shown in Figure 7, the illustration has been simplified, and only some of the marks, 921 to 923, are labeled with symbols.
[0058] An example of dimensions shown in Figure 7 will be explained. The distance L11 between the leading edge of the label paper 911 without backing and the output port of the thermal printer is 50.0 mm. The distance L12 between the leading edge of the label paper 911 without backing and the lower edge of the mark 821 is 8.0 mm. The distance L13 between the output port of the thermal printer and the cutter blades 624a and 624b is 20.0 mm. The distance L14 between the lower end (upstream end) of the take sensor 651 and the lower end (upstream end) of the paper guide 623 is 18.0 mm. The distance L15 between the cutter blades 624a and 624b and the thermal head 621 is 12.5 mm. The distance L16 between the thermal head 621 and the mark sensor 652 is 13.8 mm. The distance L17 for the mark spacing (label length) is 20.0 mm.
[0059] <Example of operation in a thermal printer> Figures 8A, 8B, and 8C show an example of the processing procedure performed in the thermal printer 12 according to this embodiment. Note that the processing flow shown in Figures 8A, 8B, and 8C is divided into three parts for illustrative purposes, but in this embodiment, it is a single processing flow. This flowchart shows an example of the automatic paper detection process performed in the thermal printer 12. This flowchart illustrates an example of operation using the functional unit shown in Figure 2 as an example. In this embodiment, the direction in which the paper is output to the outside of the thermal printer 12 (the direction in which the roll paper is ejected) is described as the forward direction, and the direction in which the paper is returned to the inside of the thermal printer 12 (the direction in which the roll paper is rewound) is described as the reverse direction.
[0060] Here, this flow is performed at predetermined timings in the thermal printer 12. The predetermined timing is, for example, the timing when paper is loaded into the thermal printer 12 and the cover (upper part of the housing 111a) is closed. In this case, the closing of the cover can be detected by the cover open detection circuit 236. Furthermore, the predetermined timing may also be, for example, the timing when the power button of the thermal printer 12 is operated and the power is switched from off to on, and the timing when the thermal printer 12 accepts a reset, or both. The reset may be accepted, for example, by pressing and holding the power button.
[0061] First, the user loads the paper into the thermal printer 12 using a drop-in method. In this embodiment, the paper is one of the following: plain paper, label paper without backing, or label paper with backing. Furthermore, multiple types of label paper without backing paper may be used, or multiple types of label paper with backing paper may be used. In this embodiment, for example, the paper is set so that the leading edge is within 50 mm of the paper output opening 131.
[0062] (Step S1) The CPU 251 checks the detection result of the take detection circuit 238 corresponding to the first sensor unit. Then, the process moves on to step S2.
[0063] (Step S2) The CPU 251 determines whether or not there is paper set in the thermal printer 12 (whether or not there is paper) using the take detection circuit 238 corresponding to the first sensor unit. If, as a result of this determination, CPU251 determines that there is paper (step S2: YES), it proceeds to step S3. On the other hand, if the CPU 251 determines that there is no paper (step S2: NO) as a result of this determination, it proceeds to the process in step S7. In this embodiment, this occurs when the leading edge of the paper is set further back (towards the inside of the thermal printer 12) than the detection position of the take detection circuit 238.
[0064] (Step S3) CPU251 transports the paper in the reverse direction. Then, the process moves on to step S4.
[0065] (Step S4) The CPU 251 checks the detection result of the take detection circuit 238 corresponding to the first sensor unit. Then, the process moves on to step S5.
[0066] (Step S5) The CPU 251 uses a take detection circuit 238 corresponding to the first sensor unit to determine whether or not there is paper set in the thermal printer 12 (whether or not there is no paper). If, as a result of this determination, CPU251 determines that there is paper (step S5: NO), it proceeds to step S6. On the other hand, if the CPU 251 determines that there is no paper (step S5: YES) as a result of this determination, it proceeds to the process in step S11.
[0067] (Step S6) The CPU 251 determines whether the amount of paper being transported in the reverse direction has reached a predetermined amount. If, as a result of this determination, the CPU 251 determines that the amount of paper being transported in the reverse direction has reached a predetermined amount (step S6: YES), it proceeds to the process in step S9. On the other hand, if the CPU 251 determines as a result of this determination that the amount of paper being transported in the reverse direction has not reached a predetermined amount (step S6: NO), it proceeds to the process in step S3.
[0068] (Step S7) CPU251 transports the paper in the forward direction. Then, the process moves on to step S8.
[0069] (Step S8) The CPU 251 determines whether the amount of paper being transported in the forward direction has reached a predetermined amount. If, as a result of this determination, the CPU 251 determines that the amount of paper being transported in the forward direction has reached a predetermined amount (step S8: YES), it proceeds to the process in step S9. On the other hand, if the CPU 251 determines as a result of this determination that the amount of paper being transported in the forward direction has not reached a predetermined amount (step S8: NO), it proceeds to the process of step S1.
[0070] (Step S9) CPU251 determines that an error has occurred. Then, the processing of this flow is terminated.
[0071] (Step S11) CPU251 transports the paper in the reverse direction. Then, the process moves on to step S12.
[0072] (Step S12) The CPU 251 determines whether or not a mark has been detected on the paper by the mark detection circuit 239 corresponding to the second sensor unit. If, as a result of this determination, the CPU 251 determines that it has detected a mark on the paper (step S12: YES), it proceeds to the process in step S19. On the other hand, if the CPU 251 determines, as a result of this determination, that it has not detected any marks on the paper (step S12: NO), it proceeds to the process in step S13.
[0073] (Step S13) The CPU 251 determines whether or not a mark on the paper has been detected by the paper / mark detection circuit 237, which corresponds to the third sensor unit. If, as a result of this determination, the CPU 251 determines that it has detected a mark on the paper (step S13: YES), it proceeds to step S19. On the other hand, if the CPU 251 determines, as a result of this determination, that it has not detected any marks on the paper (step S13: NO), it proceeds to the process in step S14.
[0074] (Step S14) The CPU 251 determines whether the amount of paper being transported in the reverse direction has reached a predetermined amount. If, as a result of this determination, the CPU 251 determines that the amount of paper being transported in the reverse direction has reached a predetermined amount (step S14: YES), it proceeds to the process in step S15. On the other hand, if the CPU 251 determines as a result of this determination that the amount of paper being transported in the reverse direction has not reached a predetermined amount (step S14: NO), it proceeds to the process in step S11.
[0075] (Step S15) CPU251 transports the paper in the forward direction. Then, the process moves on to step S16.
[0076] (Step S16) The CPU 251 determines whether or not a mark has been detected on the paper by the mark detection circuit 239 corresponding to the second sensor unit. If, as a result of this determination, the CPU 251 determines that it has detected a mark on the paper (step S16: YES), it proceeds to the process in step S19. On the other hand, if the CPU 251 determines, as a result of this determination, that it has not detected any marks on the paper (step S16: NO), it proceeds to the process in step S17.
[0077] (Step S17) The CPU 251 determines whether or not a mark on the paper has been detected by the paper / mark detection circuit 237, which corresponds to the third sensor unit. If, as a result of this determination, the CPU 251 determines that it has detected a mark on the paper (step S17: YES), it proceeds to step S19. On the other hand, if the CPU 251 determines, as a result of this determination, that it has not detected any marks on the paper (step S17: NO), it proceeds to the process in step S18.
[0078] (Step S18) The CPU 251 determines whether the amount of paper being transported in the forward direction has reached a predetermined amount. If, as a result of this determination, the CPU 251 determines that the amount of paper being transported in the forward direction has reached a predetermined amount (step S18: YES), it proceeds to the process in step S21. On the other hand, if the CPU 251 determines as a result of this determination that the amount of paper being transported in the forward direction has not reached a predetermined amount (step S18: NO), it proceeds to the process in step S15.
[0079] (Step S19) The CPU251 measures (detects) the length of the marks and the spacing between the marks for the marks detected by the second or third detection unit. Then, the process moves on to step S21.
[0080] (Step S21) The CPU 251 determines whether or not the mark detection circuit 239, which corresponds to the second sensor unit, detected a mark on the paper. If, as a result of this determination, the CPU 251 determines that it has detected a mark on the paper (step S21: YES), it proceeds to the process in step S22. On the other hand, if the CPU 251 determines, as a result of this determination, that it has not detected any marks on the paper (step S21: NO), it proceeds to step S24.
[0081] (Step S22) CPU251 determines that the paper is a label paper without a backing sheet. Then, the process moves on to step S23.
[0082] (Step S23) CPU251 moves the cutting position to align with the label paper without a backing sheet. Then, the process moves on to step S27.
[0083] (Step S24) The CPU 251 determines whether or not the paper mark detection circuit 237, which corresponds to the third sensor unit, detected a mark on the paper. If, as a result of this determination, CPU 251 determines that it has detected a mark on the paper (step S24: YES), it proceeds to step S25. On the other hand, if the CPU 251 determines, as a result of this determination, that it has not detected any marks on the paper (step S24: NO), it proceeds to step S26.
[0084] (Step S25) CPU251 determines that the paper is a label paper with a backing sheet. Then, the process moves on to step S27.
[0085] (Step S26) CPU251 determines that the paper is plain paper. Then, the process moves on to step S27.
[0086] (Step S27) The CPU 251 determines whether or not there is paper (whether or not there is paper) using the take detection circuit 238 corresponding to the first sensor unit. If, as a result of this determination, CPU 251 determines that there is paper (step S27: YES), it proceeds to step S28. On the other hand, if the CPU 251 determines that there is no paper (step S27: NO) as a result of this determination, it terminates the processing of this flow.
[0087] In this example, during the process in step S27, the presence or absence of paper is determined at the position of the cutter unit 624 (or a position near it). In this example, if it is determined that there is no paper, the cutting action can be omitted to improve efficiency. For example, the system may be configured so that cutting does not occur for label paper without a backing sheet or label paper with a backing sheet, but cutting does occur for plain paper.
[0088] (Step S28) CPU251 cuts the paper. Then, the processing of this flow is terminated.
[0089] When cutting each sheet of paper, for example, before cutting, the distance to move each sheet to the cutting position, the distance to move each sheet to the printing start position, and the energy (in this embodiment, the energizing time that makes the print density variable) are set. In the thermal printer 12, when printing, for example, a mark start command is issued, and printing begins from a point where the printer has moved by the automatically set starting position distance, thereby enabling printing without wasting the top margin.
[0090] Thus, the thermal printer 12 according to this embodiment has a printer structure that uses a drop-in method. In the thermal printer 12, after the top cover is set, the first sensor unit is used to determine whether paper is present or not, and the paper is transported in the forward or reverse direction according to the result of this determination. Subsequently, the thermal printer 12 uses the second and third sensor units to detect marks and automatically detects the paper based on the mark length and mark spacing. After automatic paper detection, the thermal printer 12 changes the paper cut position movement distance, print start position movement distance, energy settings, etc., and moves the paper to the cut position. At this time, the thermal printer 12 uses the first sensor unit to determine whether paper is present or not, and if there is no paper, no cutting is performed, and if there is paper, cutting is performed and the operation ends.
[0091] In this example, the process in step S19 is shown to detect the length of the marks and the spacing between the marks, which makes it possible to distinguish (identify) multiple types of label paper without backing paper, or multiple types of label paper with backing paper. As another example, if plain paper, one type of label paper without a backing, and one type of label paper with a backing are used, the process in step S19 may be omitted, and these can be distinguished (identified).
[0092] As described above, in the printing system 1 according to this embodiment, the thermal printer 12 can perform the process of determining the type of paper that has been loaded in a short amount of time. In this embodiment, for example, by having the user set the leading edge of the paper within a predetermined distance (e.g., 50 mm) from the paper output port 131, it is possible to significantly reduce the automatic paper detection time compared to conventional technology, which requires time for the paper to be moved back and forth.
[0093] Furthermore, conventional technology used a single sensor unit to detect the presence or absence of paper and the mark, which limited the types of paper that could be detected to just two (plain paper and label paper). In contrast, in this embodiment, by using three sensor units, it is possible to determine at least three types of paper (plain paper, label paper without backing, and label paper with backing).
[0094] As another example of configuration, in the thermal printer 12 according to this embodiment, a configuration may be implemented in which only one of the second sensor unit and the third sensor unit is used for paper identification. In this case, although the number of paper types that can be identified may be limited to two (plain paper and label paper), the effect of significantly reducing the automatic paper identification time can be obtained.
[0095] For example, the thermal printer 12 includes a first sensor unit 151 that detects the presence or absence of paper, a second sensor unit 152 that detects information about marks provided on the paper, and a paper determination unit (for example, a CPU 251) that determines the type of paper. The paper determination unit transports the paper in the opposite direction to the ejection direction and determines the type of paper based on the results of detecting information about the mark by the second sensor unit 152.
[0096] For example, the thermal printer 12 has a structure in which paper is loaded by dropping it in. For example, the thermal printer 12 is equipped with a cutter unit 624 for cutting paper. The first sensor unit 151 detects the presence or absence of paper at or near the position of the cutter unit 624. The cutter unit 624 cuts the paper when paper is present, and does not cut the paper when there is no paper.
[0097] For example, in the thermal printer 12, the second sensor unit 152 detects the presence or absence of a mark, the length of the mark, and the spacing between marks. Furthermore, a method may be used in which only one of the following is detected: the length of the mark or the spacing between the marks, or a method may be used in which both are detected.
[0098] For example, in the thermal printer 12, two or more of the following types of paper are used: plain paper without a mark, label paper without a backing with a mark, and label paper with a backing with a mark.
[0099] For example, the thermal printer 12 further includes a third sensor unit 153 that detects information about marks provided on the paper. The second sensor unit 152 and the third sensor unit 153 each detect information about marks placed at different locations on the paper.
[0100] For example, the thermal printer 12 uses plain paper without a mark, label paper without a backing with a mark, and label paper with a backing with a mark.
[0101] Furthermore, a program to realize the function of any component in any of the devices described above may be recorded on a computer-readable recording medium, and that program may be loaded into a computer system and executed. Here, "computer system" includes hardware such as operating systems and peripheral devices. "Computer-readable recording medium" refers to portable media such as flexible disks, magneto-optical disks, ROMs, CD (Compact Disc)-ROMs (Read Only Memory), and storage devices such as hard disks built into computer systems. Moreover, "computer-readable recording medium" also includes volatile memory within a computer system that retains a program for a certain period of time, such as volatile memory within a computer system that acts as a server or client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. Such volatile memory may be, for example, RAM (Random Access Memory). The recording medium may be, for example, a non-temporary recording medium.
[0102] Furthermore, the above program may be transmitted from a computer system that stores the program in a memory device or the like to another computer system via a transmission medium or by transmission waves within the transmission medium. Here, the "transmission medium" used to transmit the program refers to a medium that has the function of transmitting information, such as a network like the Internet or a communication line like a telephone line. Furthermore, the above program may be intended to implement only a portion of the functions described above. Moreover, the above program may be a so-called differential file, capable of implementing the aforementioned functions in combination with programs already recorded in the computer system. A differential file may also be called a differential program.
[0103] Furthermore, the functions of any component in any device described above may be implemented by a processor. For example, each process in the embodiment may be implemented by a processor that operates based on information such as a program, and a computer-readable recording medium that stores information such as a program. Here, the processor may be implemented by having the functions of each part implemented by separate hardware, or by having the functions of each part implemented by integrated hardware. For example, the processor includes hardware, and the hardware may include at least one of a circuit that processes digital signals and a circuit that processes analog signals. For example, the processor may be configured using one or more circuit devices or one or both of one or more circuit elements mounted on a circuit board. An IC (Integrated Circuit) may be used as the circuit device, and a resistor or capacitor may be used as the circuit element.
[0104] Here, the processor may be, for example, a CPU. However, the processor is not limited to a CPU; various types of processors may be used, such as a GPU (Graphics Processing Unit) or a DSP (Digital Signal Processor). The processor may also be, for example, a hardware circuit using an ASIC (Application Specific Integrated Circuit). Furthermore, the processor may be composed of, for example, multiple CPUs, or multiple hardware circuits using ASICs. The processor may also be composed of, for example, a combination of multiple CPUs and multiple hardware circuits using ASICs. The processor may also include, for example, one or more amplifier circuits or filter circuits that process analog signals.
[0105] While embodiments of this disclosure have been described in detail above with reference to the drawings, the specific configuration is not limited to these embodiments and may include designs and other elements that do not depart from the gist of this disclosure.
[0106] [Note] Examples of configurations 1 through 9 are shown.
[0107] (Configuration Example 1) A portable terminal having a thermal head, A first sensor unit that detects the presence or absence of paper, A second sensor unit for detecting information related to the marks provided on the aforementioned paper, A paper determination unit for determining the type of paper, Equipped with, The paper determination unit transports the paper in the opposite direction to the ejection direction and determines the type of paper based on the result of detecting information about the mark by the second sensor unit. Portable device.
[0108] (Configuration example 2) The aforementioned paper is inserted using a drop-in method. The portable terminal described in (Configuration Example 1).
[0109] (Configuration Example 3) It is equipped with a cutter section for cutting the aforementioned paper, The first sensor unit detects the presence or absence of the paper at or near the position of the cutter unit, The cutter unit performs the operation of cutting the paper when the paper is present, and does not perform the operation of cutting the paper when the paper is not present. A portable terminal as described in (Configuration Example 1) or (Configuration Example 2).
[0110] (Configuration example 4) The second sensor unit detects the presence or absence of the mark, the length of the mark, and the interval between the marks. A portable terminal as described in any one of (Configuration Example 1) to (Configuration Example 3).
[0111] (Configuration example 5) The aforementioned paper used is a combination of two or more of the following: plain paper without the mark, label paper without a backing sheet with the mark, and label paper with a backing sheet with the mark. A portable terminal as described in any one of (Configuration Example 1) to (Configuration Example 4).
[0112] (Configuration example 6) Furthermore, it includes a third sensor unit that detects information related to the mark provided on the paper, The second sensor unit and the third sensor unit each detect information regarding the marks placed at different positions on the paper. A portable terminal as described in any one of (Configuration Example 1) to (Configuration Example 5).
[0113] (Configuration example 7) The aforementioned paper used includes plain paper without the aforementioned mark, label paper without a backing sheet with the aforementioned mark, and label paper with a backing sheet with the aforementioned mark. The portable terminal described in (Configuration Example 6).
[0114] This disclosure also provides a print control method that performs similar control as described above. (Configuration example 8) A printing control method performed in a portable terminal having a thermal head, The first sensor unit detects the presence or absence of paper, The second sensor unit detects information related to the marks provided on the paper, The paper determination unit transports the paper in the opposite direction to the ejection direction and determines the type of paper based on the result of detecting information about the mark by the second sensor unit. Print control method.
[0115] This disclosure also provides a program that enables a computer to perform the same functions as described above. (Configuration example 9) A computer that constitutes a portable terminal with a thermal head, A function to detect the presence or absence of paper based on the detection result of the first sensor unit, A function to detect information related to the marks provided on the paper based on the detection results of the second sensor unit, A function to determine the type of paper based on the result of transporting the paper in the opposite direction to the ejection direction and detecting information about the mark by the second sensor unit, A program to achieve this. [Explanation of symbols]
[0116] 1…Printing system, 11…Host device, 12…Thermal printer, 21…LED unit, 22…Drawer, 23…Switch unit, 24…AC adapter, 111…Housing, 111a, 611…Upper part of housing, 111b, 612…Lower part of housing, 131…Paper output port, 132…Pincher, 151…First sensor unit, 152…Second sensor unit, 153…Third sensor unit, 211…Communication interface, 212…Display control circuit, 213…Drawer control circuit, 214…Switch control circuit, 215…Power control circuit, 231…RAM, 232…ROM, 233…Paper transport control circuit, 234…Print control circuit, 235…Cutter control circuit, 236…Cover open detection circuit, 237…Paper / mark detection circuit Path, 238... Take detection circuit, 239... Mark detection circuit, 240... Cutter position detection circuit, 311... Paper feed motor, 312, 621... Thermal head, 313... Cutter motor, 314... Mechanical sensor, 315... Sensor, 401, 911... Label paper without backing, 421, 521... Print area, 431, 432, 531, 532, 721, 722, 821, 822, 921~923... Mark, 501, 811... Label paper with backing, 511... Backing, 622... Platen, 623... Paper guide, 624... Cutter section, 624a, 624b... Cutter blade, 651... Take sensor, 652, 653... Mark sensor, 711, 1011... Paper, 1021... Tip, 2011... Direction
Claims
1. A portable terminal having a thermal head, A first sensor unit that detects the presence or absence of paper, A second sensor unit for detecting information related to the marks provided on the aforementioned paper, A paper determination unit for determining the type of paper, Equipped with, The first sensor unit is positioned in a direction that ejects the paper from the second sensor unit. The aforementioned paper determination unit, After the paper is transported in the opposite direction to the ejection direction until the first sensor unit detects that there is no paper, Based on the results of detecting information about the mark by the second sensor unit, Determine the type of paper mentioned above. Portable device.
2. The aforementioned paper is inserted using a drop-in method. The portable terminal according to claim 1.
3. It is equipped with a cutter section for cutting the aforementioned paper, The first sensor unit detects the presence or absence of the paper at or near the position of the cutter unit, The cutter unit performs the operation of cutting the paper when the paper is present, and does not perform the operation of cutting the paper when the paper is not present. A portable terminal according to claim 1 or claim 2.
4. The second sensor unit detects the presence or absence of the mark, the length of the mark, and the interval between the marks. A portable terminal according to claim 1 or claim 2.
5. As the aforementioned paper, two or more of the following are used: plain paper without the aforementioned mark, label paper without a backing sheet with the aforementioned mark, and label paper with a backing sheet with the aforementioned mark. A portable terminal according to claim 1 or claim 2.
6. Furthermore, it includes a third sensor unit that detects information related to the mark provided on the paper, The second sensor unit and the third sensor unit each detect information regarding the marks placed at different positions on the paper. A portable terminal according to claim 1 or claim 2.
7. The aforementioned paper used includes plain paper without the aforementioned mark, label paper without a backing sheet with the aforementioned mark, and label paper with a backing sheet with the aforementioned mark. The portable terminal according to claim 6.
8. A printing control method performed in a portable terminal having a thermal head, The first sensor unit detects the presence or absence of paper, The second sensor unit detects information related to the marks provided on the paper, The paper determination unit transports the paper in the opposite direction to the ejection direction until the first sensor unit, which is positioned in the direction of ejection of the paper compared to the second sensor unit, detects that there is no paper. Then, based on the result of detecting information about the mark by the second sensor unit, the type of paper is determined. Print control method.
9. A computer that constitutes a portable terminal with a thermal head, A function to detect the presence or absence of paper based on the detection result of the first sensor unit, A function to detect information related to the marks provided on the paper based on the detection results of the second sensor unit, The paper is transported in the opposite direction to the ejection direction until the first sensor unit, which is positioned in the direction of ejection of the paper from the second sensor unit, detects that there is no paper. After that, the type of paper is determined based on the result of the second sensor unit detecting information regarding the mark. A program to achieve this.
Citation Information
Patent Citations
Paper sheet discriminating device
JP2003063693A
Label printer and its control method
JP2006272844A
Printer, printing control method and program
JP2007015373A
Digital printing method and digital printing apparatus
JP2013123832A
printer
JP2022135600A
