CN109624526B - Calibration method of paper-taking optical sensor, printer using method and thermal printer - Google Patents

Calibration method of paper-taking optical sensor, printer using method and thermal printer Download PDF

Info

Publication number
CN109624526B
CN109624526B CN201811651325.0A CN201811651325A CN109624526B CN 109624526 B CN109624526 B CN 109624526B CN 201811651325 A CN201811651325 A CN 201811651325A CN 109624526 B CN109624526 B CN 109624526B
Authority
CN
China
Prior art keywords
paper
tearing
optical sensor
taking optical
calibration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811651325.0A
Other languages
Chinese (zh)
Other versions
CN109624526A (en
Inventor
王春华
李益洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baiyin Automation Equipment Co ltd
Original Assignee
Zhuhai Smarnet Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Smarnet Equipment Co ltd filed Critical Zhuhai Smarnet Equipment Co ltd
Priority to CN201811651325.0A priority Critical patent/CN109624526B/en
Publication of CN109624526A publication Critical patent/CN109624526A/en
Application granted granted Critical
Publication of CN109624526B publication Critical patent/CN109624526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/006Means for preventing paper jams or for facilitating their removal
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/0075Low-paper indication, i.e. indicating the state when copy material has been used up nearly or completely
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/66Applications of cutting devices
    • B41J11/70Applications of cutting devices cutting perpendicular to the direction of paper feed
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • B41J2/32Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/407Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for marking on special material

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention provides a calibration method of a paper-taking optical sensor, a printer using method and a thermal printer, wherein the calibration method comprises the following steps: confirming and acquiring a mode entering instruction for entering a paper taking optical sensor calibration mode; outputting printing paper to a paper outlet, and acquiring a pre-paper-tearing sampling value acquired by a paper-taking optical sensor at a detection position of the paper-taking optical sensor; when printing paper is taken away from the detection position of the paper taking optical sensor, a sampled value after paper tearing is acquired by the paper taking optical sensor; judging whether the difference value between the sampled value after paper tearing and the sampled value before paper tearing is within the effective difference value range, if so, storing the sampled value after paper tearing and the sampled value before paper tearing; and exiting the paper taking optical sensor calibration mode. Printer usage method the calibration method is applied. The thermal printer applies the calibration method. By applying the invention, the calibration efficiency of the optical sensor can be improved, and the paper tearing detection accuracy can be improved.

Description

Calibration method of paper-taking optical sensor, printer using method and thermal printer
Technical Field
The invention relates to the technical field of printers, in particular to a calibration method of a paper-taking optical sensor, a printer using method applying the calibration method and a thermal printer applying the calibration method.
Background
The sensor that detects the tear paper is not an accurate components and parts itself, all has the difference between each sensor, adds the printer shell and examines the distance of paper mouth and sensor, and the machine shell material in addition, the scene of using all has probably the change factor, leads to when tearing the paper, can have the phenomenon of wrong report, influences the result of use, and the main reason is that there is a unsteady uncertainty in the acquisition value of sensor. Therefore, it is necessary to calibrate a sensor for detecting paper tearing on each printer so that the sensor is suitable for the printer.
Disclosure of Invention
The first purpose of the invention is to provide a calibration method of the paper-taking optical sensor, which does not need manual selection and improves the accuracy and the efficiency of calibration.
A second object of the present invention is to provide a method of using a printer that improves the efficiency of photosensor calibration and improves the accuracy of paper tear detection.
A third object of the present invention is to provide a thermal printer that improves the paper tearing detection accuracy.
In order to achieve the first object, the calibration method of the paper pickup optical sensor provided by the present invention is applied to a printer, the printer is provided with a main control circuit and a paper pickup optical sensor provided with a paper outlet, the paper pickup optical sensor is electrically connected to the main control circuit, and the calibration method includes: confirming and acquiring a mode entering instruction for entering a paper taking optical sensor calibration mode; outputting printing paper to a paper outlet, and acquiring a pre-paper-tearing sampling value acquired by a paper-taking optical sensor at a detection position of the paper-taking optical sensor; when printing paper is taken away from the detection position of the paper taking optical sensor, a sampled value after paper tearing is acquired by the paper taking optical sensor; judging whether the difference value between the sampled value after paper tearing and the sampled value before paper tearing is within the effective difference value range, if so, storing the sampled value after paper tearing and the sampled value before paper tearing; and exiting the paper taking optical sensor calibration mode.
According to the scheme, the calibration method of the paper taking optical sensor provided by the invention has the advantages that the sampling value before paper tearing and the sampling value after paper tearing are obtained, whether the difference value between the sampling value after paper tearing and the sampling value before paper tearing is in the effective difference value range is judged, so that whether the paper taking optical sensor is suitable for the printer is judged, the calibration accuracy is improved, meanwhile, after the difference value between the sampling value after paper tearing and the sampling value before paper tearing is judged to be in the effective difference value range, the sampling value before paper tearing and the sampling value after paper tearing are stored and can be used as the reference value of the paper taking optical sensor for paper tearing judgment, so that the parameters of the paper taking optical sensor are pointed, and the paper tearing detection accuracy is improved. In addition, whether the paper taking optical sensor is suitable for the printer or not does not need to be judged manually, and the calibration efficiency is improved.
In a further scheme, the printer is in communication connection with an upper computer; the step of confirming and acquiring a mode entering instruction for entering the paper taking optical sensor calibration mode comprises the following steps: and when a preset instruction of the upper computer is obtained, a mode entering instruction is obtained.
Therefore, when the printer is started in the calibration mode through the upper computer, a preset instruction can be sent to the printer through the upper computer, and the paper taking optical sensor calibration mode of the printer is started.
In a further aspect, the step of confirming that the mode entry instruction for entering the paper pickup optical sensor calibration mode is obtained includes: and when the preset operation signal is acquired, acquiring a mode entering instruction.
Therefore, the paper-taking optical sensor calibration mode can be started through the preset operation signal of the printer, so that the printer can be conveniently calibrated under the condition that no upper computer operates, and the calibration flow is simplified.
In a further scheme, after the step of obtaining the pre-paper-tearing sampling value collected by the paper-taking optical sensor, the method further comprises the following steps: and sending paper tearing prompt information.
Therefore, after the paper taking optical sensor calibration mode is entered, in order to remind a user of operating, the user can know the operation required to be performed by sending the paper tearing prompt information, and the experience degree of the user is improved.
In a further scheme, after the step of judging whether the difference value between the sampled value after paper tearing and the sampled value before paper tearing is in the effective difference value range, the method further comprises the following steps: and if the difference value between the sampled value after paper tearing and the sampled value before paper tearing is out of the effective difference value range, sending calibration failure prompt information.
Therefore, when the calibration fails, the calibration failure prompt message can be sent so that the user can carry out the next calibration or replace the paper-taking optical sensor.
In a further aspect, after the step of sending the detection failure prompt information, the method further includes: and judging whether a recalibration operation instruction is acquired within preset time, and if not, exiting the paper-taking optical sensor calibration mode.
Therefore, in order to confirm whether the user still performs the calibration operation, whether the printer needs to maintain the current working state is confirmed by judging whether the recalibration operation instruction is acquired within the preset time.
In order to achieve the second object of the present invention, the printer using method of the present invention includes a calibration step of the paper pickup photosensor and a paper tearing detection step, the calibration step of the paper pickup photosensor uses the steps of the calibration method; the paper tearing detection step comprises: acquiring a printing instruction, and printing and outputting printing paper; after printing is finished, acquiring a current sampling value acquired by a paper-taking optical sensor; and matching the current sampling value with the stored sampling value after paper tearing and/or the sampling value before paper tearing to obtain a paper tearing detection judgment result.
According to the scheme, the printer using method provided by the invention has the advantages that by utilizing the calibration method of the paper taking optical sensor, after the difference value between the sampled value after paper tearing and the sampled value before paper tearing is judged to be in the effective difference value range, the sampled value before paper tearing and the sampled value after paper tearing are stored and can be used as the reference value of the paper taking optical sensor for paper tearing judgment, so that the parameters of the paper taking optical sensor have pertinence, and the accuracy of paper tearing detection is improved.
In a further scheme, the step of matching the current sampling value with the stored sampling value after paper tearing and/or the sampling value before paper tearing to obtain the paper tearing detection judgment result comprises the following steps: if the current sampling value is matched with the sampling value after paper tearing, the paper tearing state is determined; and if the current sampling value is matched with the sampling value before paper tearing, determining that the paper is not torn.
Therefore, when judging whether paper is torn or not, the current sampling value is matched by using the calibrated sampling value before paper tearing and the calibrated sampling value after paper tearing, so that the detection accuracy is improved.
In a further aspect, after the step of confirming that the paper is in the non-torn paper state, the using method further includes: and acquiring a recalibration instruction, and returning to the calibration step of the paper-taking optical sensor.
Therefore, the condition that the paper taking optical sensor is inaccurate in detection can exist in the using process, for example, different printing paper is used, so that data detected by the paper taking optical sensor is not matched with a sampling value before paper tearing or a sampling value after paper tearing, the judgment is inaccurate, the calibration of the paper taking optical sensor needs to be carried out again at the moment, and the printer can correctly judge whether paper is torn or not.
In order to achieve the third object, a thermal printer according to the present invention employs the above-described calibration method for a paper pickup photosensor, and includes: the shell is provided with a second accommodating cavity and a paper bin, and a hinge shaft is arranged on the side, far away from the first paper outlet of the paper bin, of the shell; the fixed end of the cover body is hinged with the hinge shaft; the thermal printer core is arranged in the second accommodating cavity and is positioned at the first paper outlet; a thermal printer core includes: the paper cutting device comprises a base, a cutter frame, a main cutter, an auxiliary cutter, a motor and a transmission mechanism, wherein a cutter outlet is formed in the side wall of the base, the cutter frame is positioned at the cutter outlet, the auxiliary cutter is fixedly arranged on the cutter frame, the cutting edge of the main cutter and the cutting edge of the auxiliary cutter are oppositely arranged, the main cutter can be movably arranged in the base towards the auxiliary cutter, a first paper feeding channel is formed between the auxiliary cutter and the main cutter, the motor and the transmission mechanism are both arranged in the base, and the motor can drive the main cutter to extend out of the cutter outlet to the auxiliary cutter through the transmission mechanism; the cutter device is arranged on the base, a thermosensitive sheet and a rubber roller are arranged on the base, a second paper feeding channel communicated with the first paper feeding channel is formed between the thermosensitive sheet and the rubber roller, and the first paper feeding channel is positioned at the downstream end of the second paper feeding channel along the paper feeding direction of the first paper feeding channel; the side wall is provided with an opening, and the opening is positioned at the downstream end of the main knife along the paper feeding direction of the first paper feeding channel; the cutter device further comprises a paper taking optical sensor, the paper taking optical sensor is installed in the base, and detection light of the paper taking optical sensor penetrates through the opening and faces the first paper feeding channel to be detected.
According to the scheme, the thermal printer is provided with the paper taking optical sensor, and the paper taking optical sensor is calibrated by applying the calibration method of the paper taking optical sensor, so that the paper tearing detection accuracy is improved.
Drawings
Fig. 1 is a schematic view showing an opened state of a cover in an embodiment of a thermal printer according to the present invention.
FIG. 2 is a cross-sectional view of an embodiment of the thermal printer of the present invention.
Fig. 3 is an exploded view of a thermal printer cartridge of an embodiment of the thermal printer of the present invention.
Fig. 4 is an enlarged view at a in fig. 2.
Fig. 5 is a structural view of a cutter unit according to an embodiment of the thermal printer of the present invention.
FIG. 6 is a schematic diagram of a cutter device of an embodiment of a thermal printer according to the present invention with some components omitted.
FIG. 7 is a flow chart of an embodiment of a method for using a printer in accordance with the present invention.
FIG. 8 is a flow chart of the detection calibration procedure of the pick-up photosensor in an embodiment of the method of use of the printer of the present invention.
FIG. 9 is a flow chart of the paper tear detection step in an embodiment of a method of using a printer of the present invention.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
Thermal printer embodiment:
referring to fig. 1 and 2, the thermal printer 100 includes a case 1, a cover 2, and a thermal printer core 3, where the case 1 has a second accommodation chamber 11 and a paper bin 12, the thermal printer core 3 is installed in the second accommodation chamber 11, and the thermal printer core 3 is located at a first paper outlet of the paper bin 12. The paper deck 12 is for accommodating printing paper, and the housing 1 is provided with a hinge shaft 13 on a first paper outlet side away from the paper deck 12. The fixed end of the cover 22 is hinged to the hinge shaft 13 so that the cover 22 can be opened or closed on the housing 1. When the cover 2 is covered on the casing 1, a second paper outlet 14 is arranged between the casing 1 and the cover 2, and the thermal printer core 3 is positioned between the first paper outlet and the second paper outlet 14, so that a label or a bill printed by the thermal printer core 3 can be sent out through the second paper outlet 14. Preferably, the second paper output port 14 is located at the top of the thermal printer 100.
Referring to fig. 3 to 6 in combination with fig. 2, the thermal printer core 3 includes a base 31 and a cutter device 4, the base 31 is provided with a thermal sheet 32 and a rubber roller 33, wherein the rubber roller 33 is fixedly mounted on the free end of the cover 2, and the rubber roller 33 is separably connected with the base 31. When the cover 2 is covered on the housing 1, the rubber roller 33 is clamped on the base 31 and is adjacent to the heat sensitive sheet 32, and a second paper feeding channel 40 is formed between the rubber roller 33 and the heat sensitive sheet 32. In addition, a driving device 34 is disposed on the frame 31, and the driving device 34 is used for driving the rubber roller 33 to rotate, so as to convey the printing paper in the second paper feeding path 40.
The cutter device 4 is mounted on the base 31, and specifically, the cutter device 4 includes a base 41, a knife rest 42, a main knife 43, an auxiliary knife 44, a motor 45, a transmission mechanism 46 and a paper-taking optical sensor 48. The side wall of the base 41 is provided with a knife outlet 413 and an opening 414, the knife holder 42 is fixedly arranged on the free end of the cover body 2, and when the cover body 2 is covered on the shell 1, the knife holder 42 is positioned at the knife outlet 413 of the base 41. The secondary knife 44 is fixedly mounted on the knife holder 42, and the cutting edge of the secondary knife 44 is arranged towards the knife outlet 413, and the rubber roller 33 is rotatably mounted on the knife holder 42 around the axis thereof. The main blade 43 is slidably installed in the base 41, a cutting edge of the main blade 43 is disposed opposite to a cutting edge of the sub blade 44, and the first paper feeding path 30 is formed between the main blade 43 and the sub blade 44. The opening 414 is located at the downstream end of the main blade 43 in the paper feeding direction of the first paper feeding path 30. The first paper feeding path 30 is communicated with the second paper outlet 14 and the second paper feeding path 40, and along the paper feeding direction of the first paper feeding path 30, the first paper feeding path 30 is located at the downstream end of the second paper feeding path 40, and the second paper outlet 14 is located at the downstream end of the first paper feeding path 30.
The motor 45 and the transmission mechanism 46 are both installed in the base 41, and the motor 45 drives the main knife 43 to extend from the exit to the auxiliary knife 44 through the transmission mechanism 46, so as to cut the printing paper in the first paper feeding channel 30. The base 41 includes a base 411 and a panel 412, the base 411 is installed on the machine base 31, the panel 412 covers the base 411, a first accommodating cavity is formed between the panel 412 and the base 411, and the motor 45, the transmission mechanism 46 and the main blade 43 are all disposed in the first accommodating cavity.
The transmission mechanism 46 includes a worm 461 and a worm wheel 462 engaged with the worm 461, the worm 461 is disposed to extend along the extending direction of the knife outlet 413, and one end of the worm 461 is fixedly connected with a motor 45 shaft of the motor 45, so that the motor 45 can rotate by driving the worm 461, thereby driving the worm wheel 462 to rotate. A guide post is provided on a surface of the worm wheel 462 facing the main blade 43, and a guide groove is provided on a surface of the main blade 43 facing the worm wheel 462, the guide groove extending in the extending direction of the worm 461, and the guide post is positioned in the guide groove. When the worm wheel 462 rotates, the worm wheel 462 drives the guide post to synchronously rotate, so that the guide post and the guide groove slide relatively, and the main knife 43 is driven by the guide post to slide towards the auxiliary knife 44 or slide back to the auxiliary knife 44. In order to ensure the cutting reliability of the main knife 43 and the auxiliary knife 44 on the printing paper, a pressing plate is further arranged in the base 41, the pressing plate is mounted on the base 411, and the pressing plate is adjacent to the main knife 43, so that the main knife 43 is prevented from being tilted in the sliding process.
The paper pickup optical sensor 48 is disposed in the first accommodating cavity of the seat 411, and the detection light of the paper pickup optical sensor 48 passes through the opening 414 and is detected by the first paper feeding passage 30. Specifically, the cutter device 4 further includes a mounting bracket, a mounting groove 491 is provided on the mounting bracket, the paper-taking optical sensor 48 is mounted in the mounting groove 491, and the mounting bracket is fixedly mounted on the panel 412 and located in the first accommodating cavity. Preferably, the paper pickup optical sensor 48 employs an infrared sensor. Make motor 45, drive mechanism 46 and get maintenance, the change of paper light sensor 48 more convenient through the structural design of base 41, and fix paper light sensor 48 through the installing support for it is more convenient to get the installation of paper light sensor 48 and dismantle, and can guarantee to get the reliability that paper light sensor 48 is connected with base 41 and guarantee the installation accuracy of sensor.
Preferably, the opening 414 is located in the middle of the knife outlet 413 in the extending direction of the knife outlet 413. Since the printed labels or bills are usually kept connected at the middle portions thereof when the thermal printer 100 continuously prints, so as to ensure that the printed labels or bills do not scatter, the opening 414 is provided at the middle portion of the exit blade 413, so that the paper pickup photosensor 48 can accurately detect the printed paper, thereby reducing the false detection rate.
In summary, the thermal printer of the present invention has the advantages that the paper-taking optical sensor is disposed in the cutter device, and the position of the paper-taking optical sensor is set, so that the sensor can detect the state of the printing paper in real time, and when the printing paper has an abnormal problem, the cutter device can be timely closed, thereby avoiding the occurrence of a false cutting of the printing paper. For example, when the thermal printer works in a continuous printing state, if the second paper outlet is blocked by printing paper, and printed labels or bills overlap at the second paper outlet, the paper taking optical sensor can send a detection signal to the circuit board of the thermal printer, so that the circuit board cuts off the power supply of the motor or controls the motor to stop after acquiring the detection signal, and the situation that when no person watches the thermal printer, the cutter device mistakenly cuts the printed labels or bills is avoided.
In addition, the paper taking optical sensor can also be used for detecting whether printing paper exists or not, so that when the cut printing paper exists at the second paper outlet, a detection signal can be sent to a circuit board provided with the thermal printer, the thermal printer can send an alarm after acquiring the detection signal, and a user is reminded of the existence of a new printing label or bill. For example, when the thermal printer is in a single-sheet printing mode, if a printed label or bill exists at the second paper outlet, the paper-taking optical sensor can send a detection signal to the circuit board, so that the circuit board can issue an alarm signal when acquiring the detection signal, and alarm the user, thereby reminding the user of the newly printed label or data, wherein the alarm mode can be a buzzer provided by the thermal printer itself, or an acoustic device connected with a terminal device, such as an acoustic device in a shop of a merchant, a speaker of a mobile phone, and the like.
Printer use method embodiment:
the printer applied by the using method of the printer is provided with a main control circuit and a paper taking optical sensor provided with a paper outlet, wherein the paper taking optical sensor is electrically connected with the main control circuit. The printer using method of the present invention can be applied to the thermal printer in the above-described thermal printer embodiments, but is not limited to the above-described embodiments.
As shown in fig. 7, the printer using method of the present invention includes a calibration step S1 of the paper pickup photosensor and a paper tearing detection step S2.
When the printer needs to be used, the calibration step S1 of the paper pickup optical sensor needs to be executed first, and the paper pickup optical sensor is calibrated to ensure the accuracy of detecting paper tearing by the paper pickup optical sensor.
Referring to fig. 8, when the calibration step S1 of the pickup photosensor is executed, step S11 is executed first to confirm that a mode entry command for entering the pickup photosensor calibration mode is acquired. Before calibration is performed, the printer needs to enter a paper-pick photosensor calibration mode.
In one embodiment, when the printer is in communication connection with the upper computer, the step of confirming and acquiring a mode entering instruction for entering the paper-taking optical sensor calibration mode includes: and when a preset instruction of the upper computer is obtained, a mode entering instruction is obtained. The preset instruction can be set by a program developer, and the preset instruction can be recognized by the printer so as to enter a mode of a paper taking optical sensor calibration mode. For example, the application interface of the upper computer is provided with a virtual key for enabling the printer to enter the paper-taking optical sensor calibration mode, and the upper computer sends a control instruction to the printer by clicking the virtual key, so that the printer enters the paper-taking optical sensor calibration mode.
In another embodiment, when the printer is not in communication connection with the upper computer, the step of confirming acquisition of the mode entering instruction for entering the paper-taking optical sensor calibration mode includes: and when the preset operation signal is acquired, acquiring a mode entering instruction. The preset operation signal comprises a preset key signal, a preset cover closing operation signal of a printer cover body and the like. For example, a printer is provided with a key for entering a paper pickup optical sensor calibration mode, and a mode entry instruction can be acquired by pressing the key. For another example, when a preset number of times of continuous opening and closing of the cover is detected, the mode entering instruction is acquired. The paper taking optical sensor calibration mode is entered by acquiring the preset operation signal, so that the paper taking optical sensor calibration can be conveniently carried out on the printer at any time and any place, and the configuration of detection equipment is reduced.
After entering the paper pickup optical sensor calibration mode, step S12 is executed to output the printing paper to the paper output port, and obtain a pre-paper-tearing sampling value collected by the paper pickup optical sensor at the detection position of the paper pickup optical sensor. And after the paper-taking optical sensor calibration mode is entered, printing paper is printed and the printed paper is output, and after the printing is finished, a sampling value before paper tearing collected by the paper-taking optical sensor at the detection position of the paper-taking optical sensor is obtained. The detection position of the paper taking optical sensor is a position right opposite to the paper taking optical sensor.
And step S13 is executed after the sampling value before paper tearing is acquired, and paper tearing prompt information is sent. After entering the paper taking optical sensor calibration mode, in order to remind the user to operate, the user can know the operation required to be performed by sending paper tearing prompt information. For example, by sending a voice message "please tear the paper", the user is made aware of the timing of tearing the paper.
After the paper tearing prompt information is sent, step S14 is executed, and when the printing paper is taken away from the detection position of the paper taking optical sensor, a sampled value after the paper tearing is acquired by the paper taking optical sensor is obtained. After the user takes away printing paper, can acquire the sample value after tearing the paper that gathers at the optical sensor detection position of getting paper.
After the sampled value after paper tearing is obtained, step S15 is executed to determine whether the difference between the sampled value after paper tearing and the sampled value before paper tearing is within the valid difference range. The effective difference range needs to be set according to the paper taking optical sensor, because each sensor has parameters of the sensor, the effective difference range is an error range which can be accepted by the sensor, and the effective difference range can be set through the paper taking optical sensor. And the difference value of the sampling value after paper tearing and the sampling value before paper tearing is obtained by subtracting the sampling value before paper tearing from the sampling value after paper tearing.
And when the difference value between the sampled value after paper tearing and the sampled value before paper tearing is within the effective difference value range, executing the step S16, and storing the sampled value after paper tearing and the sampled value before paper tearing. The difference value of sampling value after tearing the paper and before tearing the paper is in effective difference value scope then think that get paper light sensor and accord with the standard, consequently, can be with the sampling value storage before tearing after tearing the paper that acquires and tearing, can also keep the difference value of sampling value before tearing the paper after tearing the paper and tearing, be used as this and get paper light sensor and detect the parameter in this printer, can be used to detect whether the exit slot has the paper.
After storing the post-paper-tear sample value and the pre-paper-tear sample value, step S19 is executed to exit the paper-pickup optical sensor calibration mode. And after the sampling value after paper tearing and the sampling value before paper tearing are stored, the calibration operation is considered to be finished, so that the paper taking optical sensor calibration mode can be exited.
And when the difference value between the sampled value after paper tearing and the sampled value before paper tearing is judged to be out of the effective difference value range, executing the step S17, and sending a prompt message of calibration failure. And when the difference value between the sampled value after paper tearing and the sampled value before paper tearing is out of the effective difference value range, the paper-taking optical sensor is considered to be not in accordance with the standard, and recalibration is needed or the paper-taking optical sensor needs to be replaced. Sending the prompt information of calibration failure can make the user know the calibration result so as to carry out the next operation. For example, an alarm signal is sent by an audible alarm to let the user know.
After the calibration failure prompt message is sent, step S18 is executed to determine whether a recalibration operation instruction is obtained within a preset time. After the user acquires the prompt information of calibration failure, the user can perform operations such as recalibration or sensor replacement. The recalibration operation instruction may be sent by the host computer side or obtained at the printer side, for example, the recalibration operation instruction may be sent through a control interface of the host computer or sent by pressing a function key on the printer. The preset time can be set as required, and in the embodiment, the preset time is 10 seconds.
When it is determined that the recalibration operation instruction is acquired, execution returns to step S12, and the calibration step is performed again. When it is determined that the recalibration operation instruction is not acquired, step S19 is executed to exit the paper pickup photosensor calibration mode. When the recalibration operation instruction is not acquired, the paper-taking optical sensor calibration mode is determined not to be needed for the moment, and then the paper-taking optical sensor calibration mode is exited.
After the calibration step S1 of the pickup photosensor is completed, a paper-tearing detection step S2 is performed to detect printing paper-tearing.
Referring to fig. 9, when detecting paper tearing, step 21 is executed first, a print instruction is acquired, and printing paper is printed and output. When the printing instruction is acquired, the printing instruction of the upper computer or the printing instruction of the printer can be acquired. And after the printing instruction is acquired, printing the printing data and controlling the printer to output paper.
After the printing is finished, step S22 is executed, and after the printing is finished, the current sampling value collected by the paper-taking optical sensor is acquired. And after printing is finished, the paper taking optical sensor carries out data acquisition to obtain a current sampling value at the detection position of the paper taking optical sensor.
And after the current sampling value is obtained, executing step S23, and matching the current sampling value with the stored sampling value after paper tearing and/or the sampling value before paper tearing to obtain a paper tearing detection judgment result. When the current sampling value is subjected to paper tearing judgment according to the stored after-paper-tearing sampling value and before-paper-tearing sampling value, the current sampling value can be matched with the after-paper-tearing sampling value and/or the before-paper-tearing sampling value, so that a paper tearing detection judgment result is obtained. In this embodiment, matching the current sampling value with the stored sampling value after paper tearing and/or the sampling value before paper tearing, and obtaining the paper tearing detection judgment result includes: if the current sampling value is matched with the sampling value after paper tearing, the paper tearing state is determined; and if the current sampling value is matched with the sampling value before paper tearing, determining that the paper is not torn. For example, if the current sampling value is equal to the sampled value after paper tearing, the paper tearing state is determined; and if the current sampling value is equal to the sampling value before paper tearing, determining that the paper is not torn. Of course, when matching is performed, the current sampling value may not be completely equal to the pre-tear sampling value or the post-tear sampling value, and therefore, a predetermined range value may be increased or decreased based on the pre-tear sampling value or the post-tear sampling value, so that detection is rationalized, and the predetermined range value may be obtained through experiments. After the paper tearing detection judgment result is obtained, reminding processing can be carried out so that the user can know the working state of the current printer.
After the step of confirming the non-paper-tearing state, a recalibration command is acquired, and the process returns to the calibration step S1 of the paper pickup optical sensor. Because the condition that the optical sensor that gets paper detects inaccurately may exist in the use, for example, use the difference of printing the paper for the data that the optical sensor that gets paper detected and tear before the paper sampling value or tear the paper sampling value behind mismatching, thereby cause and judge inaccurately, then need carry out the calibration of the optical sensor that gets paper again this moment, make the printer can correctly judge whether tear the paper. The user can send a recalibration instruction by performing key operation on the printer to further calibrate the paper-taking optical sensor.
The calibration method of the paper-taking optical sensor can be used for judging whether the paper-taking optical sensor is suitable for the printer or not by acquiring the sampling value before paper tearing and the sampling value after paper tearing and judging whether the difference value between the sampling value after paper tearing and the sampling value before paper tearing is in the effective difference value range or not, and meanwhile, after judging that the difference value between the sampling value after paper tearing and the sampling value before paper tearing is in the effective difference value range, the sampling value before paper tearing and the sampling value after paper tearing are stored and can be used as the reference value of the paper-taking optical sensor for paper tearing judgment, so that the parameters of the paper-taking optical sensor have pertinence, and the accuracy of paper tearing detection is improved. In addition, whether the paper taking optical sensor is suitable for the printer or not does not need to be judged manually, and the calibration efficiency is improved. According to the printer using method, the difference value between the sampled value after paper tearing and the sampled value before paper tearing is judged to be in the effective difference value range by utilizing the calibration method of the paper taking optical sensor, and the sampled value before paper tearing and the sampled value after paper tearing are stored and can be used as the reference value of the paper taking optical sensor for paper tearing judgment, so that the parameters of the paper taking optical sensor have pertinence, and the accuracy of paper tearing detection is improved. The thermal printer is provided with the paper taking optical sensor, and the paper taking optical sensor is calibrated by applying the calibration method of the paper taking optical sensor, so that the paper tearing detection accuracy is improved.
It should be noted that the above is only a preferred embodiment of the present invention, but the design concept of the present invention is not limited thereto, and any insubstantial modifications made by using the design concept also fall within the protection scope of the present invention.

Claims (9)

1. A calibration method of a paper-taking optical sensor is applied to a printer, the printer is provided with a main control circuit and the paper-taking optical sensor provided with a paper outlet, the paper-taking optical sensor is electrically connected with the main control circuit, and the calibration method is characterized by comprising the following steps:
confirming and acquiring a mode entering instruction for entering a paper taking optical sensor calibration mode;
outputting printing paper to the paper outlet to obtain a pre-paper-tearing sampling value collected by the paper-taking optical sensor at the detection position of the paper-taking optical sensor;
when printing paper is taken away from the detection position of the paper taking optical sensor, a sampled value after paper tearing is acquired by the paper taking optical sensor;
judging whether the difference value between the sampled value after paper tearing and the sampled value before paper tearing is within an effective difference value range, if so, storing the sampled value after paper tearing and the sampled value before paper tearing;
and exiting the paper taking optical sensor calibration mode.
2. The calibration method of the paper-taking optical sensor according to claim 1, wherein the printer is connected with an upper computer in communication,
the step of confirming to acquire a mode entry instruction for entering the paper pickup optical sensor calibration mode includes:
and when a preset instruction of the upper computer is obtained, the mode entering instruction is obtained.
3. The method of calibrating a paper pick-up photosensor according to claim 1,
the step of confirming to acquire a mode entry instruction for entering the paper pickup optical sensor calibration mode includes:
and when a preset operation signal is acquired, acquiring the mode entering instruction.
4. The calibration method for a paper pickup optical sensor according to any one of claims 1 to 3,
after the step of obtaining the pre-paper-tearing sampling value collected by the paper-taking optical sensor, the method further comprises:
and sending paper tearing prompt information.
5. The calibration method for a paper pickup optical sensor according to any one of claims 1 to 3,
after the step of judging whether the difference value between the sampled value after paper tearing and the sampled value before paper tearing is in the effective difference value range, the method further comprises the following steps:
and if the difference value between the sampling value after paper tearing and the sampling value before paper tearing is out of the effective difference value range, sending calibration failure prompt information.
6. The method of calibrating a paper pick-up photosensor according to claim 5,
after the step of sending the detection failure prompt message, the method further includes:
and judging whether a recalibration operation instruction is acquired within preset time, and if not, exiting the calibration mode of the paper-taking optical sensor.
7. A printer using method, comprising a calibration step of a pickup photosensor and a paper-tearing detection step, the calibration step of the pickup photosensor using the calibration method steps of claims 1 to 6;
the paper tearing detection step comprises:
acquiring a printing instruction, and printing and outputting printing paper;
after printing is finished, acquiring a current sampling value acquired by the paper-taking optical sensor;
and matching the current sampling value with the stored sampling value after paper tearing and/or the sampling value before paper tearing to obtain a paper tearing detection judgment result.
8. Printer use method according to claim 7,
the step of matching the current sampling value with the stored sampling value after paper tearing and/or the sampling value before paper tearing to obtain a paper tearing detection judgment result comprises the following steps:
if the current sampling value is matched with the sampled value after paper tearing, the paper tearing state is determined;
and if the current sampling value is matched with the sampling value before paper tearing, determining that the paper is not torn.
9. Printer use method according to claim 8,
after the step of confirming as an unstripped paper state, the use method further includes:
and acquiring a recalibration instruction, and returning to the calibration step of the paper-taking optical sensor.
CN201811651325.0A 2018-12-31 2018-12-31 Calibration method of paper-taking optical sensor, printer using method and thermal printer Active CN109624526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811651325.0A CN109624526B (en) 2018-12-31 2018-12-31 Calibration method of paper-taking optical sensor, printer using method and thermal printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811651325.0A CN109624526B (en) 2018-12-31 2018-12-31 Calibration method of paper-taking optical sensor, printer using method and thermal printer

Publications (2)

Publication Number Publication Date
CN109624526A CN109624526A (en) 2019-04-16
CN109624526B true CN109624526B (en) 2020-09-01

Family

ID=66056311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811651325.0A Active CN109624526B (en) 2018-12-31 2018-12-31 Calibration method of paper-taking optical sensor, printer using method and thermal printer

Country Status (1)

Country Link
CN (1) CN109624526B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6030148B2 (en) * 1979-07-19 1985-07-15 株式会社リコー How to operate a fax machine
JP4437188B2 (en) * 2001-05-21 2010-03-24 独立行政法人 国立印刷局 Cutting system and cutting position detection method
JP6116281B2 (en) * 2013-02-20 2017-04-19 キヤノン株式会社 Image forming apparatus
CN103963092B (en) * 2014-04-30 2015-11-25 深圳市阿尔法变频技术有限公司 A kind of paper cutter accuracy calibrating method
CN206551544U (en) * 2017-02-08 2017-10-13 中山市灏兴印刷包装有限公司 A kind of cutting knife calibrating installation of paper cutter
CN209888435U (en) * 2018-12-31 2020-01-03 珠海盛源信息科技有限公司 Cutter device, thermal printer core and thermal printer

Also Published As

Publication number Publication date
CN109624526A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
EP3205509B1 (en) Printer and detection method for a detection area on a sheet
EP1584430B1 (en) Paper processing apparatus and image forming device comprising detection means for punch debris
US20080069622A1 (en) Cutter Unit, Half-Cutting Mechanism, and Tape Printer
EP0993955B1 (en) Printer for continous paper
US11806993B2 (en) Printing device
CN109624526B (en) Calibration method of paper-taking optical sensor, printer using method and thermal printer
RU2678891C2 (en) Printing device and method for controlling printing device
JP2008094008A (en) Electronic apparatus
CN111688367B (en) Cutting device and printing device
CN209888435U (en) Cutter device, thermal printer core and thermal printer
CN110901243B (en) Printer with paper width automatic adjustment function
US7342693B2 (en) Image reading device
JP2008001065A (en) Tape printing apparatus
JP5060717B2 (en) Portable form printing apparatus and form printing method
JP6911579B2 (en) Printing equipment
US11279152B2 (en) Printing apparatus and method of controlling printing apparatus
CN111942028B (en) Thermal printer, method and device for detecting external light source interference and storage medium
JP2006198859A (en) Recording apparatus and method for controlling recording apparatus
JP2005059233A (en) Roll shape medium printer
JP2020116658A (en) Printer, and control method of printer
KR102171702B1 (en) Smart-type Urine Meter
JP3525764B2 (en) Image recording device
JP2598959B2 (en) Platen cover closure detection method
JP2887841B2 (en) Paper feeder for printing press
KR20000075050A (en) Paper management method of receipt printer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240229

Address after: 519000 Zone G, second floor, No. 1 plant, No. 15, Nanping Pingbei Second Road, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Baiyin automation equipment Co.,Ltd.

Country or region after: China

Address before: 519000 C area B District, 5 A, 168 building, 168 Road, Yi Sha Road, Ping Sha town, Zhuhai, Guangdong.

Patentee before: ZHUHAI SMARNET EQUIPMENT CO.,LTD.

Country or region before: China

TR01 Transfer of patent right