Summary of the invention
The first object of the present invention is to provide one kind and do not need hand picking, improves the accuracy and calibration efficiency of calibration
Take the calibration method of paper optical sensor.
The second object of the present invention is to provide a kind of raising optical sensor calibration efficiency and improves paper-tear picture Detection accuracy
Printer application method.
The third object of the present invention is to provide a kind of thermal printer for improving paper-tear picture Detection accuracy.
In order to realize above-mentioned first purpose, the calibration method provided by the invention for taking paper optical sensor is applied to printer,
Printer setup, which has governor circuit and exit slot is arranged, takes paper optical sensor, takes the paper optical sensor to be electrically connected with governor circuit,
Calibration method includes: that confirmation is got into the mode entry instruction for taking paper optical sensor calibration mode;It is beaten to exit slot output
Printing paper takes paper optical sensor sampled value before taking the collected paper-tear picture of paper optical sensor detection position institute;From take paper light pass
When sensor detection position takes printing paper away, the collected paper-tear picture post-sampling value of paper optical sensor is taken;Judge paper-tear picture post-sampling
Whether the difference of sampled value is in effective difference range before value and paper-tear picture, if so, adopting before storage paper-tear picture post-sampling value and paper-tear picture
Sample value;It exits and takes paper optical sensor calibration mode.
By above scheme as it can be seen that the calibration method for taking paper optical sensor of the invention is by sampled value before acquisition paper-tear picture and tears
Paper post-sampling value simultaneously judges whether paper-tear picture post-sampling value and the difference of sampled value before paper-tear picture are in effective difference range, to judge
It takes whether paper optical sensor is suitable for the printer, improves the accuracy of calibration, meanwhile, judging paper-tear picture post-sampling value and paper-tear picture
After the difference of preceding sampled value is in effective difference range, sampled value and the storage of paper-tear picture post-sampling value before paper-tear picture will be taken, can be used as this
The a reference value for taking paper optical sensor, for carrying out paper-tear picture judgement, so that this made takes the parameter of paper optical sensor to have specific aim,
Improve the accuracy rate of paper-tear picture detection.In addition, taking whether paper optical sensor is suitable for the printer without artificial judgment, imitate calibration
Rate is improved.
In further embodiment, printer and host computer are communicated to connect;Confirmation, which gets to enter, takes paper optical sensor to calibrate
When the step of mode entry instruction of mode includes: the preset instructions for getting host computer, then mode entry instruction is got.
It can be seen that when carrying out calibration mode starting to printer by host computer, it can be by upper to printer
Preset instructions are sent, so that start printer takes paper optical sensor calibration mode.
In further embodiment, confirmation gets the step of entering the mode entry instruction for taking paper optical sensor calibration mode
It include: when getting predetermined registration operation signal, then to get mode entry instruction.
It can be seen that can carry out taking opening for paper optical sensor calibration mode by the predetermined registration operation signal of itself in printer
It is dynamic, convenient for calibrating in the case where no host computer is operated to printer, simplify calibration process.
In further embodiment, after the step of acquisition takes sampled value before the collected paper-tear picture of paper optical sensor institute, method
Further include: send paper-tear picture prompt information.
It can be seen that into after taking paper optical sensor calibration mode, in order to remind user to operate, by sending paper-tear picture
Prompt information improves the Experience Degree of user so that user would know that the operation that needs carry out.
In further embodiment, whether the difference of sampled value is in effective difference before judging paper-tear picture post-sampling value and paper-tear picture
After the step of range, method further include: if the difference of sampled value is in outside effective difference range before paper-tear picture post-sampling value and paper-tear picture,
Then send calibration failure prompt information.
It can be seen that calibration failure prompt information can be transmitted when calibrating failure, calibrated next time so as to user or
More exchange paper optical sensor for.
In further embodiment, after sending the step of detecting failure prompt information, method further include: judge preset time
Recalibration operational order inside whether is got, takes paper optical sensor calibration mode if it is not, exiting.
It can be seen that in order to confirm whether user is also carrying out calibration operation, by judging whether obtain in preset time
To operational order is recalibrated, to confirm whether printer needs to keep current working status.
In order to realize that the second object of the present invention, printer application method of the invention include taking the calibration of paper optical sensor
Step and paper-tear picture detecting step take the step of calibration steps of paper optical sensor is using above-mentioned calibration method;Paper-tear picture detecting step
Include: to get print command, prints and export printing paper;After the completion of printing, take paper optical sensor institute is collected to work as
Preceding sampled value;Current sample values are matched with sampled value before the paper-tear picture post-sampling value and/or paper-tear picture of storage, obtain paper-tear picture inspection
Survey judging result.
By above scheme as it can be seen that printer application method of the invention passes through using the calibration method for taking paper optical sensor,
After the difference of sampled value is in effective difference range before judging paper-tear picture post-sampling value and paper-tear picture, by sampled value before paper-tear picture and paper-tear picture
The storage of post-sampling value, can be used as a reference value for taking paper optical sensor, for carrying out paper-tear picture judgement, so that this made takes paper light to pass
The parameter of sensor has specific aim, improves the accuracy rate of paper-tear picture detection.
In further embodiment, sampled value before current sample values and the paper-tear picture post-sampling value and/or paper-tear picture of storage is carried out
Matching is confirmed as if the step of obtaining paper-tear picture detection judging result includes: that current sample values are matched with paper-tear picture post-sampling value
Paper-tear picture state;If current sample values are matched with sampled value before paper-tear picture, it is confirmed as non-paper-tear picture state.
It can be seen that when judging whether paper-tear picture, by utilizing sampled value and paper-tear picture post-sampling value before the paper-tear picture after calibration
Current sample values are matched, to improve the accuracy of detection.
In further embodiment, after described the step of being confirmed as non-paper-tear picture state, the application method further include: obtain
It is instructed to recalibrating, returns to the calibration steps for taking paper optical sensor.
It can be seen that due to that may there is a situation where to take the detection of paper optical sensor inaccurate in use, for example, making
With the difference of print paper, so that sampled value or paper-tear picture post-sampling value be not before the data and paper-tear picture that take paper optical sensor to detect
Match, to cause judgement inaccuracy, then needs to re-start the calibration for taking paper optical sensor at this time, enable printers to correctly sentence
It is disconnected whether paper-tear picture.
In order to realize above-mentioned third purpose, thermal printer of the invention applies the above-mentioned calibration side for taking paper optical sensor
Method, thermal printer include: shell, and shell has the second accommodating chamber and paper storehouses, and shell is in the first exit slot side far from paper storehouses
It is provided with hinged shaft;Lid, the fixing end and hinged shaft of lid are hinged;Thermal printer cassette, thermal printer cassette are mounted on the second appearance
It receives intracavitary and is located at the first exit slot;Thermal printer cassette includes: cutter, and cutter includes pedestal, knife rest, master
Knife, secondary knife, motor and transmission mechanism are provided with out the edge of a knife on the side wall of pedestal, and knife rest is located at knife-edge part, and secondary knife is fixedly mounted
On knife rest, the blade of the blade of operator and secondary knife is oppositely arranged, and operator can removably mount in pedestal towards secondary knife, and secondary
The first paper feed channel is formed between knife and operator, motor and transmission mechanism are installed in pedestal, and motor can pass through transmission mechanism
Driving operator is extend out at secondary knife from the edge of a knife is gone out;Base, cutter are mounted on base, and heat-sensitive sheet and glue are provided on base
Roller forms the second paper feed channel being connected to the first paper feed channel, the paper feed along the first paper feed channel between heat-sensitive sheet and rubber roller
Direction, the first paper feed channel are located at the downstream in the second paper feed channel;Opening is provided on side wall, along walking for the first paper feed channel
Paper direction, opening are located at the downstream of operator;Cutter further includes taking paper optical sensor, and paper optical sensor is taken to be mounted on pedestal
It is interior, take the detection light of paper optical sensor to pass through opening and the first paper feed Air conduct measurement of direction.
By above scheme as it can be seen that thermal printer of the invention takes paper optical sensor by setting, and application takes paper light to pass
The calibration method of sensor is to taking paper optical sensor to calibrate, so that paper-tear picture Detection accuracy improves.
Specific embodiment
Thermal printer embodiment:
Referring to Figures 1 and 2, thermal printer 100 includes shell 1, lid 2 and thermal printer cassette 3, wherein shell 1 has
There are the second accommodating chamber 11 and paper storehouses 12, thermal printer cassette 3 is mounted in the second accommodating chamber 11, and thermal printer cassette 3 is located at
At first exit slot of paper storehouses 12.Paper storehouses 12 are for accommodating printing paper, and shell 1 is set in the first exit slot side far from paper storehouses 12
It is equipped with hinged shaft 13.The fixing end and hinged shaft 13 of lid 22 are hinged, and lid 22 is allowed to open or cover conjunction on shell 1.Work as lid
The lid of body 2 closes when on shell 1, has the second exit slot 14 between shell 1 and lid 2, and thermal printer cassette 3 is located at the first paper delivery
Mouthful between the second exit slot 14, the label printed when thermal printer cassette 3 or bill is enabled to pass through second paper delivery
Mouth 14 is spread out of.Preferably, the second exit slot 14 is located at the top of thermal printer 100.
Referring to Fig. 3 to Fig. 6, and Fig. 2 is combined, thermal printer cassette 3 includes base 31 and cutter 4, is set on base 31
It is equipped with heat-sensitive sheet 32 and rubber roller 33, wherein rubber roller 33 is fixedly mounted on the free end of lid 2, and rubber roller 33 and base 31 can
It is isolatedly connected.When the lid of lid 2 closes on shell 1, rubber roller 33 is snapped on base 31 and is abutted with heat-sensitive sheet 32, and rubber roller
The second paper feed channel 40 is formed between 33 and heat-sensitive sheet 32.In addition, driving device 34 is additionally provided on base 31, driving device 34
For driving rubber roller 33 to rotate, to be transmitted to the printing paper being located in the second paper feed channel 40.
Cutter 4 is mounted on base 31, and specifically, cutter 4 includes pedestal 41, knife rest 42, operator 43, secondary knife
44, motor 45, transmission mechanism 46 and paper optical sensor 48 is taken.The edge of a knife 413 and opening 414 are provided with out on the side wall of pedestal 41,
Knife rest 42 is fixedly mounted on the free end of lid 2, and when the lid of lid 2 closes on shell 1, knife rest 42 is located at going out for pedestal 41
At the edge of a knife 413.Secondary knife 44 is fixedly mounted on knife rest 42, and the blade of secondary knife 44 is arranged towards the edge of a knife 413 is gone out, and rubber roller 33 is around certainly
The axis of body is installed in rotation on knife rest 42.Operator 43 is slidably mounted in pedestal 41,43 blade and secondary of operating
The blade of knife 44 is arranged opposite to each other, and operates and form the first paper feed channel 30 between 43 and secondary knife 44.Along the first paper feed channel 30
Page orientation, opening 414 be located at operator 43 downstream.First paper feed channel 30 and the second exit slot 14, the second paper feed are logical
Road 40 is connected to, and the page orientation along the first paper feed channel 30, the first paper feed channel 30 is located at the downstream in the second paper feed channel 40,
And second exit slot 14 be located at the downstream in the first paper feed channel 30.
Motor 45 and transmission mechanism 46 are installed in pedestal 41, and motor 45 is by the driving of transmission mechanism 46 operator 43 from out
It is extend out at road junction at secondary knife 44, to be cut to the printing paper being located in the first paper feed channel 30.Wherein, pedestal 41 wraps
Pedestal 411 and panel 412 are included, pedestal 411 is mounted on base 31, and the lid of panel 412 closes on pedestal 411, and panel 412 and seat
The first accommodating chamber is formed between body 411, motor 45, transmission mechanism 46 and operator 43 are arranged in the first accommodating chamber.
Transmission mechanism 46 includes worm screw 461 and the worm gear 462 engaged with worm screw 461, and worm screw 461 prolongs along the edge of a knife 413 out
It stretches direction to be arranged with extending, and one end of worm screw 461 is fixedly connected with 45 axis of motor of motor 45, and motor 45 is passed through
Driving worm screw 461 is rotated, so that worm gear 462 be driven to be rotated.Worm gear 462 towards operator 43 one facing towards operator 43
It is provided with guide post, operator 43 is provided with guide groove towards worm gear 462 on one side, and guide groove extends along the extending direction of worm screw 461
Ground setting, guide post are located in guide groove.When worm gear 462 rotates, worm gear 462 will drive guide post and synchronize rotation, so that leading
Opposite sliding occurs for column and guide groove, to drive operator 43 to slide towards the secondary sliding of knife 44 or backwards to secondary knife 44 by guide post.
And it is additionally provided with pressing plate in order to guarantee reliabilities that operator 43 and secondary knife 44 cut printing paper, in pedestal 41, pressing plate is mounted on
On pedestal 411, and pressing plate and operator 43 are adjacent, to avoid upwarping in 43 sliding processes of operator.
It takes paper optical sensor 48 to be arranged in the first accommodating chamber of pedestal 411, and takes the detection light of paper optical sensor 48
It is detected across opening 414 and to the first paper feed channel 30.Specifically, cutter 4 further includes mounting bracket, is set in mounting bracket
It is equipped with mounting groove 491, paper optical sensor 48 is taken to be mounted in mounting groove 491, mounting bracket is fixedly mounted on panel 412 and position
In in the first accommodating chamber.Preferably, take paper optical sensor 48 using infrared sensor.It is designed by the structure of pedestal 41 so that electricity
Machine 45, transmission mechanism 46 and take the maintenance of paper optical sensor 48, replacement more convenient, and by mounting bracket to taking paper light sensing
Device 48 is fixed, so that taking the installation and removal of paper optical sensor 48 more convenient, and can guarantee to take paper optical sensor 48
The installation accuracy of the reliability and guarantee sensor that are connect with pedestal 41.
Preferably, on the extending direction of the edge of a knife 413 out, opening 414 is located at the middle part of the edge of a knife 413.Because working as temperature-sensitive
When printer 100 is continuously printed, in order to guarantee that the label printed or bill are not scattered on the ground, it usually can all make adjacent two
The middle part for opening label or adjacent two bills retains connection, and therefore, the medium position of the edge of a knife 413 out is arranged in opening 414, can
Enable and paper optical sensor 48 is taken accurately to detect to printing paper, to reduce false detection rate.
To sum up, thermal printer of the invention takes paper optical sensor by being arranged in cutter, and takes to this
The position of paper optical sensor is configured, and enables the sensor to be measured in real time the state of printing paper, when printing
When abnormal problem occurs in paper, cutter can be closed in time, to avoid causing the case where accidentally cutting to printing paper.Example
Such as, when thermal printer work is in continuous print state, if the label that printing paper blocking occurs at the second exit slot, prints
Or bill overlap at the second exit slot situation when, take paper optical sensor that can send out by the circuit board of heat sensitive printer
Signal is surveyed in inspection, so that circuit board after obtaining the detection signal, cuts off power supply or the control motor stalling of motor, thus
It avoids when no personnel guard by thermal printer, cutter accidentally cuts the label or bill that print.
In addition, this takes paper optical sensor to be also used as having detected whether printing paper so that have at the second exit slot by
When the printing paper determined, detection signal can be sent to the circuit board for being equipped with thermal printer, thermal printer is existed
Alarm is issued after obtaining the detection signal, user is reminded to have new print label or bill.For example, when thermal printer is individual dozen
When watermark patterns, if in the presence of having the label or bill printed at the second exit slot, taking paper optical sensor can be by circuit
Plate sends detection signal, so that circuit board is obtaining the detection signal, can issue alarm signal, alarm user, into
And user is reminded to have the label newly printed or data, wherein the mode of alarm can be the buzzer of thermal printer autogamy, or
Person is the loudspeaker of stereo set in the stereo set connecting with terminal device, such as businessman shop, mobile phone.
Printer application method embodiment:
Printer setup applied by printer application method of the present invention, which has governor circuit and exit slot is arranged, takes paper light
Sensor takes paper optical sensor to be electrically connected with governor circuit.Printer application method of the invention can be applied to above-mentioned temperature-sensitive and beat
Thermal printer in print machine embodiment, but it is not limited only to above-described embodiment.
As shown in fig. 7, printer application method of the invention includes taking calibration steps S1 and the paper-tear picture inspection of paper optical sensor
Survey step S2.
Need in printer in use, the calibration steps S1 for taking paper optical sensor need to be first carried out, to take paper optical sensor into
Row calibration, it is ensured that take the accuracy of paper optical sensor detection paper-tear picture.
Referring to Fig. 8, execute take the calibration steps S1 of paper optical sensor when, need to first carry out step S11, confirmation get into
Enter to take the mode entry instruction of paper optical sensor calibration mode.Before being calibrated, needing, which enters printer, takes paper light sensing
Device calibration mode.
In one embodiment, when printer and host computer communicate to connect, confirmation, which gets to enter, takes paper optical sensor school
When the step of mode entry instruction of quasi-mode includes: the preset instructions for getting host computer, then mode entry instruction is got.
Preset instructions can be configured by application developer, and preset instructions can allow printer to be identified, hence into taking paper
The mode of optical sensor calibration mode.Printer entrance is set to take paper optical sensor school for example, the application interface of host computer is provided with
The virtual key of quasi-mode, by clicking the virtual key, host computer sends control instruction to printer, hence into taking paper light
The mode of pick up calibration mode.
In another embodiment, when printer is not communicated to connect with host computer, confirmation, which gets to enter, takes paper light to pass
The step of mode entry instruction of sensor calibration mode includes: then to get mode when getting predetermined registration operation signal and enter finger
It enables.Predetermined registration operation signal includes preset push button signalling, the default lid closing operation signal of printer lid etc..For example, in printer
It is provided with into the key for taking paper optical sensor calibration mode, can then get mode entry instruction by pressing the key.Again
For example, detect continuously uncap, closing lid preset times when, then get mode entry instruction.By obtaining predetermined registration operation letter
Number enter and to take paper optical sensor calibration mode that can reduce detection convenient for take paper optical sensor to calibrate printer whenever and wherever possible
The configuration of equipment.
Into after taking paper optical sensor calibration mode, step S12 is executed, printing paper is exported to exit slot, takes paper light
Sensor sampled value before taking the collected paper-tear picture of paper optical sensor detection position institute.Paper optical sensor calibration mode is taken entering
Afterwards, start print paper and export print paper, after the completion of printing, take paper optical sensor that paper optical sensor is being taken to detect
Sampled value before the collected paper-tear picture of position institute.Paper optical sensor check bit is taken to be set to the position for taking paper optical sensor face.
Step S13 is executed after sampled value before acquisition paper-tear picture, sends paper-tear picture prompt information.Into taking paper optical sensor calibrating die
After formula, in order to remind user to operate, by sending paper-tear picture prompt information, so that user would know that the operation that needs carry out.
For example, allowing user to know the opportunity of paper-tear picture by sending voice messaging " asking paper-tear picture ".
After sending paper-tear picture prompt information, step S14 is executed, from when paper optical sensor detection position being taken to take printing paper away, is obtained
Take the collected paper-tear picture post-sampling value of paper optical sensor.After user takes printing paper away, it can obtain and paper optical sensor is being taken to detect
The collected paper-tear picture post-sampling value of position institute.
After obtaining paper-tear picture post-sampling value, step S15 is executed, paper-tear picture post-sampling value is judged and the difference of sampled value before paper-tear picture is
It is no to be in effective difference range.Effective difference range is needed according to taking paper optical sensor and setting, because of each sensor
With the parameter of itself, effective difference range is the acceptable error range of sensor, can be by taking paper optical sensor to carry out
The setting of effective difference range.The difference of sampled value is to subtract paper-tear picture by paper-tear picture post-sampling value before paper-tear picture post-sampling value and paper-tear picture
Preceding sampled value obtains.
When the difference of sampled value is in effective difference range before judging paper-tear picture post-sampling value and paper-tear picture, step S16 is executed,
Sampled value before storage paper-tear picture post-sampling value and paper-tear picture.The difference of sampled value is in effective difference model before paper-tear picture post-sampling value and paper-tear picture
It encloses, thinks that paper optical sensor is taken to comply with standard, therefore, sampled value stores before the paper-tear picture post-sampling value and paper-tear picture that can will acquire,
Paper-tear picture post-sampling value and the difference of sampled value before paper-tear picture can also be saved, take paper optical sensor in the printer as this
Middle detection parameters can be used for detecting exit slot with the presence or absence of paper.
Before storage paper-tear picture post-sampling value and paper-tear picture after sampled value, step S19 is executed, exits and takes paper optical sensor calibrating die
Formula.Then think to complete calibration operation after sampled value before storage paper-tear picture post-sampling value and paper-tear picture, takes paper light sensing so as to exit
Device calibration mode.
When the difference of sampled value is in outside effective difference range before judging paper-tear picture post-sampling value and paper-tear picture, step is executed
S17 sends calibration failure prompt information.The difference of sampled value is in outside effective difference range before paper-tear picture post-sampling value and paper-tear picture
Shi Ze thinks that this takes paper optical sensor not to be inconsistent standardization, needs to recalibrate or need replacing and takes paper optical sensor.Send school
Quasi- failure prompt information can allow user to know calibration result, to carry out next step operation.For example, being sent by voice guard
Alarm signal allows user to know.
After sending calibration failure prompt information, step S18 is executed, judges whether get recalibration behaviour in preset time
It instructs.After user obtains calibration failure prompt information, the operation such as recalibration or more emat sensor can be carried out.Recalibrate behaviour
Making instruction can be sent by upper computer end, or be obtained in printer side, for example, host computer can be passed through by recalibrating operational order
Control interface sent, or by pressing printer on function button sent.Preset time can be as needed
It sets, in the present embodiment, preset time 10 seconds.
When judgement, which is got, recalibrates operational order, returns to and execute step S12, re-start calibration steps.When sentencing
It is disconnected not get when recalibrating operational order, step S19 is executed, exits and takes paper optical sensor calibration mode.Do not obtain
To when recalibrating operational order, then it is assumed that temporarily need not continue to be calibrated, take paper optical sensor calibrating die to exit
Formula.
After completion takes the calibration steps S1 of paper optical sensor, paper-tear picture detecting step S2 is executed, printing paper-tear picture is detected.
Step 21 is first carried out, print command is got when carrying out paper-tear picture detection referring to Fig. 9, prints and exports printing
Paper.The print command of host computer or the print command of printer itself can be obtained when obtaining print command.Printing is got to refer to
After order, print data is printed, and controls printer output paper.
After completing printing, step S22 is executed, after the completion of printing, takes the collected present sample of paper optical sensor institute
Value.After completing printing, paper optical sensor is taken to carry out data acquisition, got in the present sample for taking paper optical sensor detection position
Value.
After getting current sample values, execute step S23, by the paper-tear picture post-sampling value of current sample values and storage and/or
Sampled value is matched before paper-tear picture, is obtained paper-tear picture and is detected judging result.It is adopted before the paper-tear picture post-sampling value and paper-tear picture according to storage
It, can be by sampled value before current sample values and paper-tear picture post-sampling value and/or paper-tear picture when sample value carries out paper-tear picture judgement to current sample values
It is matched, to obtain paper-tear picture detection judging result.In the present embodiment, by the paper-tear picture post-sampling value of current sample values and storage
And/or sampled value is matched before paper-tear picture, if after the step of obtaining paper-tear picture detection judging result includes: current sample values and paper-tear picture
Sampled value matching, then be confirmed as paper-tear picture state;If current sample values are matched with sampled value before paper-tear picture, it is confirmed as non-paper-tear picture shape
State.For example, being confirmed as paper-tear picture state if current sample values are equal to paper-tear picture post-sampling value;If current sample values are equal to paper-tear picture
Preceding sampled value is then confirmed as non-paper-tear picture state.Certainly, when being matched, before current sample values can not be equal to paper-tear picture
Sampled value or paper-tear picture post-sampling value, therefore, can before paper-tear picture sampled value or paper-tear picture post-sampling value on the basis of increase or decrease it is pre-
Fixed value range, so that detection rationalizes, scheduled value range can be obtained by experiment.After obtaining paper-tear picture detection judging result,
Prompting processing can be carried out, so that user knows the working condition of current printer.
In addition, getting recalibration instruction after described the step of being confirmed as non-paper-tear picture state, return takes paper light sensing
The calibration steps S1 of device.Due to that may there is a situation where to take the detection of paper optical sensor inaccurate in use, for example, using
The difference of print paper, so that sampled value or paper-tear picture post-sampling value be not before the data and paper-tear picture that take paper optical sensor to detect
Match, to cause judgement inaccuracy, then needs to re-start the calibration for taking paper optical sensor at this time, enable printers to correctly sentence
It is disconnected whether paper-tear picture.User can by printer carry out button operation, send recalibrate instruction, to take paper optical sensor into one
The calibration of step.
After the calibration method for taking paper optical sensor of the invention from the above is by sampled value before acquisition paper-tear picture and paper-tear picture
Sampled value simultaneously judges whether paper-tear picture post-sampling value and the difference of sampled value before paper-tear picture are in effective difference range, so that judgement takes paper
Whether optical sensor is suitable for the printer, improves the accuracy of calibration, meanwhile, it is adopted before judging paper-tear picture post-sampling value and paper-tear picture
After the difference of sample value is in effective difference range, sampled value and the storage of paper-tear picture post-sampling value before paper-tear picture will be taken, this is can be used as and takes paper
The a reference value of optical sensor, so that this made takes the parameter of paper optical sensor to have specific aim, is improved for carrying out paper-tear picture judgement
The accuracy rate of paper-tear picture detection.In addition, taking whether paper optical sensor is suitable for the printer without artificial judgment, obtain calibration efficiency
To raising.Printer application method of the invention passes through using the calibration method for taking paper optical sensor, is judging paper-tear picture post-sampling
After the difference of value and sampled value before paper-tear picture is in effective difference range, sampled value and the storage of paper-tear picture post-sampling value before paper-tear picture will be taken,
It can be used as a reference value for taking paper optical sensor, for carrying out paper-tear picture judgement, so that this made takes the parameter of paper optical sensor to have
Targetedly, the accuracy rate of paper-tear picture detection is improved.Thermal printer of the invention takes paper optical sensor by setting, and application takes
The calibration method of paper optical sensor is to taking paper optical sensor to calibrate, so that paper-tear picture Detection accuracy improves.
It should be noted that the above is only a preferred embodiment of the present invention, but the design concept invented is not limited thereto,
All insubstantial modifications made using this design to the present invention, are also fallen within the scope of protection of the present invention.