Detection circuit, printing chip and printing equipment
Through optical signal detection in the detection circuit, the problem that traditional printing paper cannot prompt the printing position is solved, the accurate judgment of the paper state and the accuracy of the printing position are achieved, and the reliability and compatibility of the printing equipment are improved.
Patent Information
- Application Number
- CN202421901678.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2034-08-06
AI Technical Summary
Traditional printing paper cannot provide specific prompt functions, resulting in printing misalignment problems in scenarios such as label printing and bill printing.
The detection circuit is adopted, including a first transmitting tube, a first receiving tube, a second receiving tube and a processor, and the paper state is detected by optical signals, distinguishing paper shortage, paper gap and black mark, and determining the precise printing position.
It realizes accurate judgment of paper status, ensures the accuracy of printing position, is compatible with different paper designs, and improves the reliability and compatibility of printing equipment.
Smart Images

Figure CN223045415U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of print device detection, and particularly to a detection circuit, a print chip, and a print device. Background Art
[0002] Traditional printing paper is usually uniform and cannot provide specific prompting functions. However, in some application scenarios, such as label printing and bill printing, there is a need for a kind of paper that can clearly prompt the start and end positions to avoid printing misalignment.
[0003] The printing position marks of different papers are different. For example: the gap design of the paper is to set a gap between papers, and the gap is designed as a non-printable area, and the gap is used to prompt the start printing position and the end printing position. The black mark design of the paper is to set black marks between papers, and the black marks are used to prompt the start printing position and the end printing position or for positioning the printing position. The black marks can be on the front or on the back.
[0004] Therefore, it is urgent to study the detection of the printing position of different papers. Utility Model Content
[0005] A detection circuit, a print chip, and a print device provided by an embodiment of this application are used to achieve the effect of clarifying the printing position of the paper.
[0006] In a first aspect, an embodiment of this application provides a detection circuit, including: a first emitter, a first receiver, a second receiver, and a processor; the first emitter and the first receiver are located on one side of the printing channel, and the second receiver is located on the other side of the printing channel;
[0007] When printing is required in the printing channel, the detection circuit detects the paper in the printing channel. The first emitter is used to emit an optical signal, the first receiver is used to receive the optical signal and output a first optical signal, and the second receiver is used to receive the optical signal and output a second optical signal;
[0008] The processor is connected to the first receiver and the second receiver, and is used to receive the first optical signal and the second optical signal and output a feedback signal, and the feedback signal is used to determine the state of the paper in the printing channel.
[0009] In one of the embodiments, the detection circuit further includes: a second emitter, and the second emitter and the second receiver are located on the same side in the printing channel;
[0010] When printing is required in the printing channel, the second emitter can also be used to emit an optical signal. The second receiver is used to receive the optical signal reflected by the paper and output a first optical signal, and the first receiver is used to receive the optical signal transmitted through the paper and output a second optical signal.
[0011] In one embodiment, the processor includes a first comparator and a second comparator;
[0012] A first input terminal of the first comparator is connected to a first receiving tube, a second input terminal of the first comparator is used for inputting a first light detection threshold, and the first comparator is used for outputting a first signal;
[0013] A first input terminal of the second comparator is connected to a second receiving tube, a second input terminal of the first comparator is used for inputting a second light detection threshold, and the second comparator is used for outputting a second signal; wherein, the first signal and the second signal are used for determining the state of the paper.
[0014] In one embodiment, when the first optical signal is less than the first light detection threshold, the first signal is at a low level, and when the first optical signal is greater than the first light detection threshold, the first signal is at a high level;
[0015] When the second optical signal is less than the second light detection threshold, the second signal is at a low level, and when the second optical signal is greater than the second light detection threshold, the second signal is at a high level.
[0016] In one embodiment, the detection circuit further includes a sensor, the sensor is connected to the first transmitting tube and the second transmitting tube, and the sensor is used for outputting a selection signal, and the selection signal is used for selecting the first transmitting tube or the second transmitting tube.
[0017] In one embodiment, the processor further includes a logic processing module, the logic processing module includes a first position detection circuit, and the first position detection circuit includes a second NOT gate, a second AND gate, a third AND gate and a first OR gate; an input terminal of the second NOT gate is connected to an output terminal of the sensor;
[0018] A first input terminal of the second AND gate is connected to an output terminal of the first comparator, and a second input terminal of the second AND gate is connected to an output terminal of the sensor;
[0019] A first input terminal of the third AND gate is connected to an output terminal of the second NOT gate, and a second input terminal of the third AND gate is connected to an output terminal of the second comparator;
[0020] A first input terminal of the first OR gate is connected to an output terminal of the second AND gate, a second input terminal of the first OR gate is connected to an output terminal of the third AND gate, and the first OR gate outputs a third signal.
[0021] In one embodiment, the logic processing module includes a first paper shortage detection circuit, and the first paper shortage detection circuit includes a first NOT gate, a first AND gate, a fourth AND gate and a second OR gate; an input terminal of the first NOT gate is connected to an output terminal of the sensor;
[0022] A first input terminal of the first AND gate is connected to an output terminal of the first NOT gate, and a second input terminal of the first AND gate is connected to an output terminal of the first comparator;
[0023] The first input terminal of the fourth AND gate is connected to the output terminal of the second comparator, and the second input terminal of the fourth AND gate is connected to the output terminal of the sensor;
[0024] The first input terminal of the second OR gate is connected to the output terminal of the first AND gate, the second input terminal of the second OR gate is connected to the output terminal of the fourth AND gate, and the second OR gate outputs a fourth signal;
[0025] The feedback signal includes a third signal and a fourth signal.
[0026] In one embodiment, the processor further includes a logic processing module, the logic processing module includes a second position detection circuit, and the second position detection circuit includes a third OR gate;
[0027] The first input terminal of the third OR gate is connected to the output terminal of the first comparator, the second input terminal of the third OR gate is connected to the output terminal of the second comparator, and the third OR gate outputs a fifth signal.
[0028] In one embodiment, the logic processing module includes a second paper shortage detection circuit, and the second paper shortage detection circuit includes: a third NOT gate, a fifth AND gate, a sixth AND gate, and a fourth OR gate;
[0029] The input terminal of the third NOT gate is connected to the sensor;
[0030] The first input terminal of the fifth AND gate is connected to the sensor, and the second input terminal of the fifth AND gate is connected to the output terminal of the first comparator;
[0031] The first input terminal of the sixth AND gate is connected to the output terminal of the second comparator, and the second input terminal of the sixth AND gate is connected to the output terminal of the third NOT gate;
[0032] The first input terminal of the fourth OR gate is connected to the output terminal of the fifth AND gate, the second input terminal of the fourth OR gate is connected to the output terminal of the sixth AND gate, and the fourth OR gate outputs a sixth signal
[0033] The feedback signal includes a fifth signal and a sixth signal.
[0034] In a second aspect, the present application further provides a printing chip, including a processor of any of the above detection circuits, configured to control the detection circuit and confirm the paper state in the printing channel according to the first optical signal and the second optical signal.
[0035] In a third aspect, the present application further provides a printing device, including any of the above detection circuits.
[0036] A detection circuit, a printing chip, and a printing device provided by an embodiment of the present application. The detection circuit includes: a first emitter, a first receiver, a second receiver, and a processor; the first emitter and the second receiver are located on both sides of the paper, and the first emitter and the first receiver are located on the same side of the paper; the first emitter is configured to emit an optical signal to the paper, the first receiver is configured to receive the optical signal reflected by the paper and output a first optical signal, and the second receiver is configured to receive the optical signal transmitted through the paper and output a second optical signal; the processor is connected to the first receiver and the second receiver, and is configured to receive the first optical signal and the second optical signal and output a feedback signal, and the feedback signal is used to determine the state of the paper. By receiving the optical signals from the first emitted light through the first receiver and the second receiver, the processor determines the state of the paper and the printing position by analyzing the optical signals of the first receiver and the second receiver, differentiates paper shortage, paper gap, black mark, and printing paper surface, and has accurate judgment and high compatibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0038] Figure 1 It is a schematic diagram of the scenario of printing paper for the present application;
[0039] Figure 2 It is a schematic diagram of the detection circuit provided by an embodiment of the present application;
[0040] Figure 3 It is a structural schematic diagram of the detection circuit provided by an embodiment of the present application;
[0041] Figure 4 It is a structural schematic diagram of the detection circuit provided by another embodiment of the present application;
[0042] Figure 5 It is a specific structural schematic diagram of the detection circuit provided by an embodiment of the present application;
[0043] Figure 6 It is a structural schematic diagram of the processor provided by an embodiment of the present application;
[0044] Figure 7 It is a structural schematic diagram of the processor provided by an embodiment of the present application;
[0045] Figure 8 It is a structural schematic diagram of the processor provided by another embodiment of the present application.
[0046] Through the above-mentioned accompanying drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These accompanying drawings and the written description are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners
[0047] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0048] Figure 1 This is a schematic diagram of the scenario of printing paper for the present application. As Figure 1 shown, Figure a) shows a paper with a gap design. The gap design of the paper means that there is a gap between the papers, and the gap is designed as a non-printable area. The light transmittance at the gap is relatively high, and the gap is used to indicate the start and end positions of printing. Figure b) shows a paper with a black mark design. The black mark design of the paper means that there are black marks between the papers, and the start and end positions of printing are indicated by the black marks or used to locate the printing position. The black marks can be on the front or on the back. Since traditional printing paper is usually uniform, existing printing devices cannot provide a specific prompting function. In some application scenarios, such as label printing and bill printing, a paper that can clearly indicate the start and end positions is required to avoid printing misalignment.
[0049] Based on the above problems, Figure 2 This is a schematic diagram of a detection circuit provided by an embodiment of the present application. As Figure 2 shown, an embodiment of the present application provides a detection circuit, including: a first emitting tube, a first receiving tube, a second receiving tube, and a processor; the first emitting tube and the first receiving tube are located on one side of the printing channel, and the second receiving tube is located on the other side of the printing channel; when the paper in the printing channel needs to be printed, the detection circuit detects the paper in the printing channel. The first emitting tube is used to emit an optical signal, the first receiving tube is used to receive the optical signal and output a first optical signal, and the second receiving tube is used to receive the optical signal and output a second optical signal; the processor is connected to the first receiving tube and the second receiving tube, and is used to receive the first optical signal and the second optical signal and output a feedback signal, and the feedback signal is used to determine the state of the paper.
[0050] Specifically, the paper can move in the printing channel, and the print head can print on the paper in the printing channel. When printing is required in the printing channel, the first emitting tube can emit an optical signal, and the paper can reflect or transmit the optical signal. Since the first receiving tube and the first emitting tube are located on the same side of the printing channel, the first receiving tube receives the optical signal reflected by the paper, and the second receiving tube and the first emitting tube are located on opposite sides of the printing channel, and the second receiving tube receives the optical signal transmitted by the paper. The state of the paper can be determined based on the optical signals output by the first receiving tube and the second receiving tube. When the state of the paper is out of paper, the optical signal received by the second receiving tube is the strongest, and the first receiving tube cannot receive the reflected light; when the state of the paper is at the gap position, the optical signal received by the second receiving tube is still relatively strong, but the first receiving tube can also receive the reflected light; when the state of the paper is at the printing paper surface position, the optical signal received by the second receiving tube is weak, and the first receiving tube can receive the reflected light; therefore, even when the gap position is relatively transparent, the state of the paper can still be accurately distinguished based on the optical signals output by the first receiving tube and the second receiving tube. In this application, the first receiving tube and the second receiving tube receive the optical signals from the first emitted light, and the processor determines the state and printing position of the paper by analyzing the optical signals of the first receiving tube and the second receiving tube, differentiates paper out, paper gap, black mark and printing paper surface, and has accurate judgment and high compatibility.
[0051] In one embodiment, Figure 3 is a schematic structural diagram of a detection circuit provided by an embodiment of the present application. Figure 4 is a schematic structural diagram of a detection circuit provided by another embodiment of the present application. As Figure 3 、 Figure 4 shown, the detection circuit further includes: a second emitting tube, and the second emitting tube and the second receiving tube are located on the same side of the paper; the second emitting tube is used to emit an optical signal to the paper, the second receiving tube is used to receive the optical signal reflected by the paper and output a second optical signal, and the first receiving tube is used to receive the optical signal transmitted by the paper and output a first optical signal.
[0052] Specifically, the second emitting tube and the second receiving tube are located on the same side of the printing channel, and the second emitting tube and the first emitting tube and the first receiving tube are located on opposite sides of the printing channel; by the first receiving tube receiving the reflected optical signal of the optical signal emitted by the first emitting tube or the second receiving tube receiving the reflected optical signal of the optical signal emitted by the second emitting tube, the black mark positions on both sides of the paper can be determined; for the paper with a black mark design, the black mark can be located on the front side of the paper or on the back side of the paper. Therefore, the design of the two emitting tubes in the detection circuit of the embodiment of the present application can be used to detect the paper with a black mark design. As Figure 3 shown, taking the printing channel opposite to the first emitting tube as the front side as an example, when the paper black mark appears on the front side, the first emitting tube and the first receiving tube are enabled, and the second emitting tube and the second receiving tube are turned off, and it is determined whether the paper is in the black mark position according to the optical signal received by the first receiving tube.Figure 4 As shown, when the paper black mark appears on the reverse side, the second transmitting tube and the second receiving tube are enabled, and the first transmitting tube and the first receiving tube are turned off. Whether the paper is in the black mark position is judged according to the optical signal received by the second receiving tube. The design of the present application can detect the black mark positions on both sides of the paper, and at the same time, it can also determine the state of the paper according to the optical signals output by the first receiving tube and the second receiving tube. Secondly, if one of the transmitting tubes fails, the other transmitting tube can be enabled for detection, and the two transmitting tubes can be used for redundant design.
[0053] As Figure 5 shown, Figure 5 is a schematic structural diagram of a detection circuit provided by an embodiment of the present application. The first transmitting tube and the first receiving tube are located on one side of the printing channel, and the second transmitting tube and the second receiving tube are located on the other side of the printing channel. The implementation circuit of the first receiving tube further includes a resistor and a power supply VCC. The power supply VCC is connected to the first end of the first receiving tube through the resistor, and the second end of the first receiving tube is grounded. The first end of the first receiving tube outputs a first optical signal, and the first optical signal is inversely proportional to the light intensity received by the first receiving tube. The implementation circuit of the second receiving tube is the same as that of the first receiving tube in logic and will not be described in detail here. In this embodiment, the first transmitting tube and the second transmitting tube are light-emitting diodes. Optionally, the first receiving tube and the second receiving tube are photodiodes or phototransistors.
[0054] In one embodiment, Figure 6 is a schematic structural diagram of a processor provided by an embodiment of the present application. As Figure 6 shown, the processor includes a first comparator and a second comparator; the first input end of the first comparator is connected to the first receiving tube, the second input end of the first comparator is used to input a first optical detection threshold, and the first comparator is used to output a first signal; the first input end of the second comparator is connected to the second receiving tube, the second input end of the first comparator is used to input a second optical detection threshold, and the second comparator is used to output a second signal; wherein, the first signal and the second signal are used to determine the state of the paper.
[0055] In one embodiment, when the first optical signal is less than the first optical detection threshold, the first signal is at a low level, and when the first optical signal is greater than the first optical detection threshold, the first signal is at a high level; when the second optical signal is less than the second optical detection threshold, the second signal is at a low level, and when the second optical signal is greater than the second optical detection threshold, the second signal is at a high level. Optionally, the first optical detection threshold and the second optical detection threshold can be set according to actual situations, and the present application does not limit this.
[0056] When the light intensities received by the first receiving tube and the second receiving tube are higher, since the output signals of the first receiving tube and the second receiving tube are inversely proportional to the received light intensities, the first optical signal and the second optical signal output by the first receiving tube and the second receiving tube are lower.
[0057] In one embodiment, the detection circuit further includes a sensor. The sensor is connected to the first emitter and the second emitter. The sensor is configured to output a selection signal, and the selection signal is used to select the first emitter or the second emitter.
[0058] Specifically, for example, when the sensor selects the first emitter, the selection signal is a high level H; when the sensor selects the second emitter, the selection signal is a low level L.
[0059] The paper with a black mark design has the characteristic that the reflectance at the black mark is low and the reflectance at the white paper is high. When the above detection circuit is used for detecting the paper with a black mark design, the first emitter or the second emitter can be used to emit optical signals. In this embodiment, it is assumed that the black mark design of the paper is on the front side of the paper. Taking the activation of the first emitter as an example, the selection signal is a high level H. When there is no paper, the first emitter and the second receiver are opposite to each other, there is no reflected light, the second receiver receives stronger light, the second optical signal is lower than the second light detection threshold, so the second comparator outputs the second signal as a low level L; when the paper state is at the black mark position, the first emitter and the second receiver are separated by the paper, the second receiver receives weaker transmitted light, the second optical signal is higher than the second light detection threshold, so the second comparator outputs the second signal as a high level H, and the reflectance of the black mark is relatively low, the reflected light received by the first receiver is weak, the first optical signal is higher than the first light detection threshold, so the first comparator outputs the first signal as a high level H; when the paper state is white paper or the printed paper surface, the first emitter and the second receiver are separated by the paper, the second receiver receives weaker transmitted light, the second optical signal is higher than the second light detection threshold, so the second signal output by the second comparator is a high level H. Since the reflectance of the white paper is high, the reflected light received by the first receiver is strong, the first optical signal is lower than the first light detection threshold, so the first signal output by the first comparator is a low level L, as shown in Table 1. Table 1 is the truth table corresponding to the paper state detection of the black mark design. Wherein, H represents a high level; L represents a low level; X represents any level. The detection logic values include the first signal and the second signal.
[0060] When the black mark design is on the back side of the paper, when the sensor can select the second emitter, the selection signal output by the sensor at this time is a low level L, and its logic for judging the paper state is the same as that of the first emitter, which is not elaborated in this application.
[0061] Table 1 Truth table corresponding to the paper state detection of the black mark design
[0062]
[0063] The paper with a gap design has the characteristic that the reflectance at the gap is different from that of the printed paper surface. Generally, the reflectance at the gap is lower, and the reflectance at the printed paper surface is higher. When the above detection circuit is used for detecting the paper with a gap design, the first emitter or the second emitter can be used to emit optical signals.
[0064] This embodiment is described by taking the activation of the first emitter as an example. When there is a paper shortage, the first emitter and the second receiver are in opposite emission, the second receiver receives stronger light, the output second optical signal is lower than the second light detection threshold, and the second comparator outputs the second signal as a low signal L; when in the gap of the paper, there is paper between the first emitter and the second receiver, the transmitted light received by the second receiver is weaker, the output second optical signal is higher than the second light detection threshold, so the second signal output by the second comparator is a high level H. The reflectance at the paper gap is lower, the reflected light received by the first receiver is weaker, the first optical signal is higher than the first light detection threshold, so the first signal output by the first comparator is a high level H; when the paper state is white paper or at the printed paper surface, there is paper separating the first emitter and the second receiver, the second receiver receives weaker transmitted light, the output second optical signal is higher than the second light detection threshold, so the second signal output by the second comparator is a high level H, and the reflectance of the printed paper surface is higher, the reflected light received by the first receiver is stronger, the first optical signal is lower than the first light detection threshold, and the first comparator outputs the first signal as a low level L. As shown in Table 2, Table 2 is the truth table corresponding to the paper state detection with a gap design. Among them, H represents a high level; L represents a low level; X represents any level. The detection logic values include the first signal and the second signal.
[0065] Table 2 Truth table corresponding to the paper state detection with a gap design
[0066]
[0067] In one embodiment, based on the inference of the above truth table, an embodiment of the present application provides a processor, which can output the above paper state result. Figure 7 It is a schematic structural diagram of the processor provided by an embodiment of the present application. As Figure 7 shown, the processor further includes a logic processing module. The logic processing module includes a first position detection circuit. The first position detection circuit includes a second NOT gate, a second AND gate, a third AND gate, and a first OR gate; the input end of the second NOT gate is connected to the output end of the sensor; the first input end of the second AND gate is connected to the output end of the first comparator, and the second input end of the second AND gate is connected to the output end of the sensor; the first input end of the third AND gate is connected to the output end of the second NOT gate, and the second input end of the third AND gate is connected to the output end of the second comparator; the first input end of the first OR gate is connected to the output end of the second AND gate, the second input end of the first OR gate is connected to the output end of the third AND gate, and the first OR gate outputs a third signal.
[0068] In one embodiment, the logic processing module further includes a first paper-out detection circuit. The first paper-out detection circuit includes a first NOT gate, a first AND gate, a fourth AND gate, and a second OR gate. The input end of the first NOT gate is connected to the output end of the sensor. The first input end of the first AND gate is connected to the output end of the first NOT gate, and the second input end of the first AND gate is connected to the output end of the first comparator. The first input end of the fourth AND gate is connected to the output end of the second comparator, and the second input end of the fourth AND gate is connected to the output end of the sensor. The first input end of the second OR gate is connected to the output end of the first AND gate, and the second input end of the second OR gate is connected to the output end of the fourth AND gate. The second OR gate outputs a fourth signal. The feedback signal includes a third signal and a fourth signal.
[0069] Specifically, the logic of the first position detection circuit is shown in Table 3. When the selection signal is at a high level H, that is, the sensor selects the first emitter, the output of the second NOT gate is at a low level. The input ends of the second AND gate receive the first signal and the selection signal (H) respectively. Therefore, the output level of the second AND gate is the same as the first signal. One input end of the third AND gate receives the signal passing through the second NOT gate and the selection signal (H). Therefore, the output end of the third AND gate is at a low level L. The input ends of the first OR gate are respectively connected to the output end of the second AND gate and the output end of the third AND gate. Therefore, the output level of the first OR gate is the same as the first signal level. When it is at a black mark or a gap, the reflectivity is low, and the first signal output is at a high level H, and the first OR gate output is at a high level H, indicating that the paper is at a black mark or a gap. When the paper is at a white paper or a printed surface, the reflectivity is high, the first signal output is at a low level L, and the first OR gate output is at a low level L, indicating a white paper or a printed surface.
[0070] Specifically, the logic of the first paper-out detection circuit is shown in Table 3. When the selection signal is at a high level H, that is, the sensor selects the first emitter, the output of the first NOT gate is at a low level, the first input end of the first AND gate is at a low level L, the output of the first AND gate is at a low level L, and the output level of the second OR gate is the same as the output end level of the fourth AND gate. The input ends of the fourth AND gate receive the second signal and the selection signal (H) respectively, and the output end level of the fourth AND gate is the same as the second signal. Therefore, the output level of the second OR gate is the same as the second signal. When the second signal output is at a high level L, it means that there is no paper between the first emitter and the second receiver at this time, and the second OR gate output is at a low level L, indicating a paper-out state. When the second signal output is at a high level H, there is paper between the first emitter and the second receiver at this time, and the second OR gate output is at a high level H, indicating that there is paper. Here, H represents a high level; L represents a low level; X represents any level. The detected logic values include the first signal and the second signal.
[0071] According to the third signal and the fourth signal in the feedback signal: when the third signal is at a low level, the state of the paper is a paper-out state; when the fourth signal is at a low level, the state of the paper is the printing paper surface; when the third signal is at a high level and the fourth signal is at a high level, the state of the paper is at the paper gap.
[0072] When the selection signal is at a low level L, the circuit logic is similar and will not be elaborated.
[0073] Table 3 Truth table of the logic processing module
[0074]
[0075]
[0076] In the embodiment of the present application, the optical signal received by the receiving tube only needs to be compared with the light detection threshold value in terms of magnitude, without the need to be converted into specific digits through analog-to-digital conversion, and the state of the paper can be known through simple logic gate operations without storing a preset range. The circuit is simple and the operation is convenient; secondly, the circuit provided by the present application has high reliability. When one of the first emitting tube and the second emitting tube is damaged, the other normal emitting tube can be used, and when the second emitting tube is used, the output signal and the corresponding paper state remain unchanged; the detection circuit has high compatibility. When the reflectance of the gap and the printing paper surface is opposite to that mentioned in the above embodiment, it only needs to adjust the meaning represented by the output signals of the first OR gate and the second OR gate to operate normally.
[0077] Sometimes the light transmittance at the paper gap is relatively high, which may cause confusion between the paper gap and the paper-out state and easily lead to incorrect judgments. In another embodiment, taking the example where the light transmittance at the paper gap is high and the light transmittance at the printing paper surface is low, if the sensor output selection signal is at a high level H, the first emitting tube is enabled. When there is a paper-out, the first receiving tube cannot receive the reflected light, and the first optical signal is higher than the first light detection threshold value. At this time, the first signal output by the first comparator is at a high level H. When there is paper, the first receiving tube can receive the reflected light, and the first signal output is at a low level L; on the premise of having paper, the light transmittance at the paper gap is relatively high, the transmitted light received by the second receiving tube is stronger, and the second signal output is at a low level L. The light transmittance of the printing paper surface is relatively low, the transmitted light received by the second receiving tube is weaker, and the second signal output is at a high level H, as shown in Table 4. Table 4 is the truth table corresponding to the detection circuit with a high light transmittance at the paper gap. Among them, H represents a high level; L represents a low level; X represents any level. The detection logic values include the first signal and the second signal.
[0078] When the selection signal is at a low level L, the circuit logic is similar and will not be elaborated.
[0079] Table 4 Truth table corresponding to the detection circuit with a high light transmittance at the paper gap
[0080]
[0081] Regarding the problem that the light transmittance at the gap between the above-mentioned papers is high and it is easy to generate incorrect judgments, such as Figure 8 shown, Figure 8 FIG. is a schematic structural diagram of a processor provided by another embodiment of the present application. The processor further includes a logic processing module, and the logic processing module includes a second position detection circuit. The second position detection circuit includes: a third OR gate; a first input end of the third OR gate is connected to an output end of a first comparator, a second input end of the third OR gate is connected to an output end of a second comparator, and the third OR gate outputs a fifth signal.
[0082] In one embodiment, the logic processing module includes a second paper shortage detection circuit. The second paper shortage detection circuit includes: a third NOT gate, a fifth AND gate, a sixth AND gate, and a fourth OR gate; an input end of the third NOT gate is connected to a sensor; a first input end of the fifth AND gate is connected to the sensor, and a second input end of the fifth AND gate is connected to an output end of the first comparator; a first input end of the sixth AND gate is connected to an output end of the second comparator, and a second input end of the sixth AND gate is connected to an output end of the third NOT gate; a first input end of the fourth OR gate is connected to an output end of the fifth AND gate, and a second input end of the fourth OR gate is connected to an output end of the sixth AND gate. The fourth OR gate outputs a sixth signal; the feedback signal includes the fifth signal and the sixth signal.
[0083] Specifically, the logics of the second position detection circuit and the second paper shortage detection circuit are as follows: When the selection signal output by the sensor is at a high level H, the input ends of the fifth AND gate respectively receive the selection signal (H) and the first signal, and the output end level of the fifth AND gate is the same as the first signal. The input ends of the sixth AND gate respectively receive the inverted signal of the selection signal (H) and the second signal, and the output end of the sixth AND gate outputs a low-level signal. The input ends of the fourth OR gate are respectively connected to the output ends of the fifth AND gate and the sixth AND gate. Therefore, the output end level of the fourth OR gate is the same as the first signal. When there is a paper shortage, the first receiving tube cannot receive the reflected light, and the first signal output by the first comparator is at a high level H, and the output of the fourth OR gate is at a high level H; when there is paper, the first receiving tube can receive the reflected light, the first signal is at a low level L, and the output of the fourth OR gate is at a low level L; the input ends of the third OR gate are respectively connected to the first signal and the second signal. On the premise that there is paper (the first signal level is at a low level L), the transmitted light received by the second receiving tube at the gap is relatively strong, the second signal is at a low level L, and the output of the third OR gate is at a low level L, indicating that the paper is at the gap; the transmitted light received by the second receiving tube on the printed paper surface is relatively weak, the second signal is at a high level H, and the output of the third OR gate is at a high level H. At this time, the paper state is white paper or the printed paper surface, as shown in Table 5. Table 5 is the truth table of the logic processing module. Among them, H represents a high level; L represents a low level; X represents any level. The detected logic values include the first signal and the second signal.
[0084] According to the fifth signal and the sixth signal in the feedback signal: when the sixth signal is at a high level, the state of the paper is a paper shortage state; when the sixth signal is at a low level and the fifth signal is at a high level, the paper state is the printing paper surface; when the sixth signal is at a low level and the fifth signal is at a low level, the paper state is at the paper gap.
[0085] When the selection signal is at a low level L, the circuit logic is similar and will not be elaborated.
[0086] Table 5 Truth table of the logic processing module
[0087]
[0088] The detection circuit provided in this embodiment is simple in operation. The optical signal received by the receiving tube only needs to be compared with the optical detection threshold value in terms of magnitude, without the need for analog-to-digital conversion. The result after comparison with the optical detection threshold value can be used to know the state of the paper through simple logic gate operations. Secondly, it has high reliability. The reflection sensor output signal is used to distinguish between the paper shortage state and the paper presence state, which can avoid misjudging the gap as the paper shortage state. In addition, a redundant design is adopted. When one of the first transmitting tube and the second transmitting tube is damaged, the other normal transmitting tube can be used, and when the second transmitting tube is used, the paper state corresponding to the output signal remains unchanged. It has high compatibility. When the light transmittance of the gap and the printing paper surface is opposite to that mentioned in the above example, it only needs to adjust the meanings represented by the output signals of the third OR gate and the fourth OR gate to operate normally.
[0089] This application also proposes a printing chip, including a processor of any of the above detection circuits, for determining the state of the paper in the printing channel according to the first optical signal and the second optical signal.
[0090] This application also provides a printing device, including any of the above detection circuits.
[0091] In the above embodiment, it should be understood that the printing chip can be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the utility model can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
[0092] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0093] The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed among each other can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0095] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0096] Finally, it should be noted that: those skilled in the art will easily think of other implementation schemes of the present application after considering the specification and practicing the application disclosed here. The present application aims to cover any variations, uses or adaptations of the present application, and these variations, uses or adaptations follow the general principles of the present application and include the common general knowledge or conventional technical means in the technical field not disclosed in the present application. It is not limited to the exact structure already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.
Claims
1. A detection circuit, characterized in that: include: A first transmitting tube, a first receiving tube, a second receiving tube and a processor; The first transmitting tube and the first receiving tube are located on one side of the printing channel, and the second receiving tube is located on the other side of the printing channel; When the printing channel needs to print, the detection circuit detects the paper in the printing channel, the first transmitting tube is used to transmit a light signal, the first receiving tube is used to receive the light signal and output a first light signal, and the second receiving tube is used to receive the light signal and output a second light signal; The processor is connected to the first receiving tube and the second receiving tube, and is used to receive the first optical signal and the second optical signal and output a feedback signal, wherein the feedback signal is used to determine the state of the paper in the printing channel.
2. The detection circuit according to claim 1, characterized in that: The detection circuit further includes: a second transmitting tube, wherein the second transmitting tube and the second receiving tube are located on the same side of the printing channel; When the printing channel needs to print, the second transmitting tube can also be used to transmit light signals.
3. The detection circuit according to claim 1 or 2, characterized in that: The processor includes a first comparator and a second comparator; The first input end of the first comparator is connected to the first receiving tube, the second input end of the first comparator is used to input a first light detection threshold, and the first comparator is used to output a first signal; The first input end of the second comparator is connected to the second receiving tube, the second input end of the first comparator is used to input a second light detection threshold, and the second comparator is used to output a second signal; wherein the first signal and the second signal are used to determine the state of the paper.
4. The detection circuit according to claim 3, characterized in that: The detection circuit also includes a sensor, which is connected to the first transmitting tube and the second transmitting tube. The sensor is used to output a selection signal, and the selection signal is used to select the first transmitting tube or the second transmitting tube.
5. The detection circuit according to claim 4, characterized in that: The processor further includes a logic processing module, the logic processing module includes a first position detection circuit, the first position detection circuit includes a second NOT gate, a second AND gate, a third AND gate and a first OR gate; the input end of the second NOT gate is connected to the output end of the sensor; A first input terminal of the second AND gate is connected to an output terminal of the first comparator, and a second input terminal of the second AND gate is connected to an output terminal of the sensor; The first input terminal of the third AND gate is connected to the output terminal of the second NOT gate, and the second input terminal of the third AND gate is connected to the output terminal of the second comparator; The first input terminal of the first OR gate is connected to the output terminal of the second AND gate, the second input terminal of the first OR gate is connected to the output terminal of the third AND gate, and the first OR gate outputs a third signal.
6. The detection circuit according to claim 5, characterized in that: The logic processing module further includes a first paper-out detection circuit, which includes a first NOT gate, a first AND gate, a fourth AND gate and a second OR gate; the input end of the first NOT gate is connected to the output end of the sensor; A first input terminal of the first AND gate is connected to an output terminal of the first NOT gate, and a second input terminal of the first AND gate is connected to an output terminal of the first comparator; A first input terminal of the fourth AND gate is connected to the output terminal of the second comparator, and a second input terminal of the fourth AND gate is connected to the output terminal of the sensor; The first input terminal of the second OR gate is connected to the output terminal of the first AND gate, the second input terminal of the second OR gate is connected to the output terminal of the fourth AND gate, and the second OR gate outputs a fourth signal; The feedback signal includes a third signal and a fourth signal.
7. The detection circuit according to claim 4, characterized in that: The processor further comprises a logic processing module, the logic processing module comprises a second position detection circuit, the second position detection circuit comprises a third OR gate; A first input terminal of the third OR gate is connected to the output terminal of the first comparator, a second input terminal of the third OR gate is connected to the output terminal of the second comparator, and the third OR gate outputs a fifth signal.
8. The detection circuit according to claim 7, characterized in that: The logic processing module includes a second paper-out detection circuit, and the second paper-out detection circuit includes: a third NOT gate, a fifth AND gate, a sixth AND gate and a fourth OR gate; An input end of the third NOT gate is connected to the sensor; The first input terminal of the fifth AND gate is connected to the sensor, and the second input terminal of the fifth AND gate is connected to the output terminal of the first comparator; The first input terminal of the sixth AND gate is connected to the output terminal of the second comparator, and the second input terminal of the sixth AND gate is connected to the output terminal of the third NOT gate; The first input terminal of the fourth OR gate is connected to the output terminal of the fifth AND gate, the second input terminal of the fourth OR gate is connected to the output terminal of the sixth AND gate, and the fourth OR gate outputs a sixth signal; The feedback signal includes a fifth signal and a sixth signal.
9. A printing chip, characterized in that: A processor comprising the detection circuit as claimed in any one of claims 1 to 8, configured to determine the state of paper in a printing channel according to the first optical signal and the second optical signal.
10. A printing device, characterized in that: The method comprises a detection circuit as described in any one of claims 1 to 8.