The present patent application is divisional application, and the denomination of invention of female case of this case is: Portable thermal printer power supply circuits and method, the applying date: 2012-05-02, application number: 201210132493.5.
Summary of the invention
The present invention is directed to the problem that the electric weight of existing thermal printing machine battery is not used effectively, propose a kind of Portable thermal printer power supply circuits, its concrete technical scheme is as follows:
A kind of Portable thermal printer power supply circuits, comprise: processor, supplying cell, thermal head sheet, be encapsulated in the thermistor in thermal head sheet, it is characterized in that: also comprise: DC-DC translation circuit, this translation circuit input is connected with supplying cell, output is the VPP drive end to described thermal head sheet by feedback sample resistance outputting drive voltage, and the Enable Pin of described translation circuit connects the GPIO end of described processor; Numeral resistance, this numeral resistance is connected in parallel on the two ends of described sampling resistor, and the serial line interface end of this numeral resistance connects the GPIO end of described processor; On system board in order to the thermo-sensitive resistor of testing environment temperature, this thermo-sensitive resistor connects described processor Yi road ADC end by environment temperature sample circuit, another road ADC end of described processor connects by a sheet temperature sampling circuit thermistor encapsulating in described thermal head sheet, and ADC end in Zai Yi road connects the output of described supplying cell to detect battery discharge voltage.
Portable thermal printer power supply circuits as above, wherein, the output of described supplying cell connects the ADC end of described processor on the one hand by filter circuit, connects on the other hand the interrupt requests end of described processor by voltage comparator circuit.
Portable thermal printer power supply circuits as above, wherein, the output control terminal of described DC-DC translation circuit is by external MOSFET outputting drive voltage, and the control end of this MOSFET connects the GPIO end of described processor simultaneously.
Portable thermal printer power supply circuits as above, wherein, the thermo-sensitive resistor of described testing environment temperature is positioned at the marginal position of mainboard without thermal source impact.
Compared with prior art, advantage of the present invention and good effect are as follows: the present invention considers the various factors such as battery, DC transfer circuit, thermal head sheet temperature, scene temperature, heating strategy driving voltage, and the control algolithm that employing is optimized accordingly and circuit are realized the energy-saving design of thermal printing peak efficiency.Aspect hardware circuit, multi way temperature sample circuit carries out accurate and real-time temperature sampling digitlization to on-the-spot and thermal head sheet, software aspect, high-performance processor is by special feedback and control algolithm, the Temperature Distribution of calculating temperature difference and thermal head sheet, and detect battery discharge voltage, optimize discharge curve, adjust in real time output voltage by digital resistance, realize the maximization of battery utilization ratio.
The present invention can realize the electric weight with battery to greatest extent and do useful work in the situation that not affecting quality.Can select automatic energy saving config option for most of users, accomplish optimized battery availability factor, obviously improve the experience of Portable thermal printer series products.
The specific embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to figure 1 and Fig. 3, Fig. 1 shows hardware system structure schematic diagram of the present invention, Fig. 3 is driving voltage digitlization Circuit tuning schematic diagram, the present invention includes processor, lithium battery, thermal head sheet, be encapsulated in the thermistor in thermal head sheet, DC-DC translation circuit U1 and digital resistance U2, DC-DC translation circuit input VIN is connected with supplying cell, output by feedback sample resistance outputting drive voltage to the VPP drive end of described thermal head sheet, translation circuit enable the GPIO end that control end CE connects described processor; The present embodiment sampling resistor comprises resistance R 1 and R2, one end of resistance R 1 connects driving voltage output, the other end connects the feedback end of DC-DC translation circuit on the one hand, on the other hand by resistance R 2 ground connection, in order dynamically to adjust the size of outputting drive voltage, the two ends digital resistance in parallel of resistance R 1, the serial line interface end of digital resistance connects the GPIO end of described processor, processor is set resistance scale by serial line interface, the output of dynamical feedback DC-DC translation circuit; For monitoring field environment temperature, also comprise the thermo-sensitive resistor in order to testing environment temperature on a system board, with reference to figure 7, this thermo-sensitive resistor NFR1 connects processor Yi road ADC end by environment temperature sample circuit, with reference to figure 8, thermistor in thermal head sheet connects another road ADC end of processor by a sheet temperature sampling circuit, the output of supplying cell connects the Third Road ADC end of processor.Wherein, DC-DC translation circuit mainly carries out lowering and stabilizing blood pressure to lithium battery, reduces fluctuation to discharge voltage, solves the spark problem of scarce capacity of lithium battery.So just bring the quiescent dissipation of Liao Yi road DC-DC translation circuit and introduce for reducing ripple the leakage power consumption that large bulk capacitance brings.Along with reducing of battery electric quantity, the decline of its discharge curve, increasing its transformation efficiency of pressure reduction of DC converting also reduces, and quiescent dissipation is in rising trend.Along with lithium battery lower voltage, when the driving voltage of setting is during higher than lithium piezoelectric voltage, direct-current voltage reducing circuit can not be worked, and the utilization ratio of battery is less.
For overcoming the problems referred to above, in the present invention, the driving VPP of thermal head sheet uses DC-DC translation circuit to adopt external MOSFET Q1, by the work of the whole DC-DC translation circuit of processor control, when standby, turn-off whole DC transfer circuit, eliminate quiescent dissipation and leakage current completely.
Portable thermal printer movement heating head sheet allows a wider working range, can work from 4.2-8V.Supplying cell lithium battery adopts 7.4V/2800mAh, two 3.7V battery cores of inner encapsulation, and electric discharge is 5.5V by voltage.The continuous setup of design driven VPP of the present invention in voltage 4.2-7.2V, DC transfer circuit is by sampling resistor feedback adjustment outputting drive voltage, the present invention designs and uses ADI company high accuracy adjustable digital resistance as sampling feedback resistance, dynamically adjusts outputting drive voltage VOUT by setting feedback dividing point.As shown in Figure 3, output to thermal head sheet VPP range of operation 4.2-7.2V according to outputting drive voltage VOUT, VOUT computing formula:
VOUT=Vref* (1+Rx/R2), wherein Vref=1.221.(1)
Rx=(R1*Rt)/(Rt+R1) (2)
By in (2) substitution (1), can obtain: VOUT=Vref* (1+ (R1/R2) * (Rt/ (R1+Rt))).
Continue to derive, be reduced to the function of resistance R t, can obtain:
Rt=R1*R2(VOUT-Vref)/((Vref*(R1-R2))-VOUT*R2)。(3)
Resistance R 1=10K ohm of the present invention, 1% precision, resistance R 2=1K ohm, 1% precision, U2 adopts 20K ohm range, 1% precision.According to the driving scope of application 4.2-7.2V of lithium battery and thermal head sheet, substitution (3), adjusting range that can calculated resistance Rt: 4.39-15.78K ohm.
Digital resistance calculations formula according to U2: Rd=data/256*20K (4)
It is 256 graduates that the present invention adopts digital resistance, corresponding formula (4), can calculate digitized resistance range scale data=56-202, corresponding hexadecimal resistance range scale data=0x38-0xCA, has effectively utilized effective scale of digital resistance substantially.Can continue thus to calculate minimum driving voltage △ V and be about 0.02V, can meet the designing requirement of the regulation and control driving voltage that becomes more meticulous completely.By using digital resistance to adjust driving voltage, can in a wider scope, carry out continuous setup.Variable drive voltage can bring preferably power consumption control level, first can judge thermal head sheet after-heat by the sampling of real-time site environment and thermal head sheet temperature, sets accordingly the initial value of VPP.If the temperature difference is very large, before an explanation sheet, carry out heating action, can suitably reduce VPP and reduce power consumption output.If the temperature difference is very little, print out task is set a higher VPP and is guaranteed print quality, because be a dynamic process, if there is continuous print out task, VPP implements a dynamic adjustment process, not only can effectively guarantee print quality and print speed but also can effectively reduce power consumption.
Meanwhile, processor is also monitored the output voltage of lithium battery at any time, along with the decline of discharge curve, adjusts at any time VPP and suitably declines, and keeps best DC converting efficiency.Fig. 2 is the graph of a relation of efficiency, conversion pressure reduction and the output current of certain DC conversion IC of using of the present invention, as we can see from the figure, keep the pressure reduction of input and output be less than 1V whole conversion efficiency can guarantee, more than 95%, can guarantee thus the static power consumption of DC transfer circuit minimum.
Once start heating action for thermal printer, some after-heat accumulation is bound to, cause thermal head sheet temperature progressively to raise, although the operating temperature of temperature-sensitive movement is 0-50 ℃, but the temperature of moving continuously back sheet and ceramic substrate can reach more than 80 ℃, so the continuous printing of general bill printing is slightly grown one section and just be there will be burn-off phenomenon, observing the font printing has hangover and diffusion phenomena.If start to set a less heat that adds, when environment temperature is lower, definition is inadequate for the initial bill of printing.A negative tempperature coefficient thermistor of the inner encapsulation of thermal head sheet of the present invention, conventional design object is burnt for preventing that thermal head sheet is overheated.The present invention calculates thermal head sheet temperature in real time, by with the contrast of environment temperature, set initial printing driving voltage, in printing, dynamically adjust driving voltage simultaneously, make full use of thermal head sheet and substrate temperature and heat the heat-sensitive paper being pressed into.The adjustment of driving voltage is associated with the discharge voltage of lithium battery again simultaneously, provides best coupling according to the conversion efficiency of DC transfer circuit.The handling characteristics of portable printing has been considered in this adjustment simultaneously, when operation voltage pulsation larger, should prevent from that lithium battery voltage from crossing to put, maximal efficiency discharges battery electric quantity to the greatest extent again simultaneously.Fig. 4 is temperature and the resistance respective value of the integrated thermistor of thermal head sheet.
Site environment temperature sampling circuit is for gathering the temperature of environment temperature and thermal head sheet, adopts and the discrete thermo-sensitive resistor of the basically identical negative temperature coefficient that thermal head sheet is integrated, and its temperature and resistance functional arrangement are also basically identical.In design of the present invention, the arranging away from the impact of other thermals source on circuit board of thermo-sensitive resistor, near board edge with near shell.According to actual use experience, when the difference of the temperature of scene temperature and thermal head sheet is greater than 4 while spending, start driving voltage energy-saving adjusting strategy.
The present invention adopts the function that design that scene temperature measures bring can depth optimization: at some extreme cases, such as Portable printer moves in low temperature environment, the bill quality that the general machine startup initial stage prints is bad, because poor very large between heat energy and environment temperature, the insufficient lettering that causes thus of heat-sensitive paper heating is unclear.Print best in quality by judging heat time and driving voltage that on-the-spot temperature can arrange initial print.And, can judge that by the thermistor of measure field temperature the measurement temperature of thermal head sheet is current environment temperature or the higher temperature causing due to heating tasks above.
Because it is very large that thermal printing rises and falls for different print data power consumption consumption, particularly comprise the graphic printing of continuous black patch, discharge voltage may decline very large the short time, and often overdischarge has impact to the life-span of lithium battery.The characteristic of battery determines after the relaxation of certain hour relaxes or can continue to print, and therefore battery has been adopted to two-stage control protection, when cell voltage landing detects, adopts filtering and equalization, and with reference to figure 5, Fig. 5 is battery discharge and detection and holding circuit.The output of described supplying cell connects the ADC end of described processor on the one hand by equalization filtering circuit, connect on the other hand the interrupt requests end of described processor.Described equalization filtering circuit comprises resistance R 3 and R4, the output of 3 one sections of company's lithium batteries of described resistance R, the other end is on the one hand by resistance R 4 ground connection, on the other hand by capacitor C 2 ground connection, connect on the one hand again the ADC1 end of processor, like this,, guarantee that cell safety prevents that overdischarge from can effectively draw again electric weight.
Chargeable lithium cell approaches 8.4V being full of electric voltage completely, to being all to want processor sampling between discharge cut-off voltage 6V, while again discharge voltage being pulled down to below 6V in the time printing driving operation, directly triggering processor interrupts, enter into abnormal interruption and process function and do voltage and cross and put processing, processing procedure is as follows:
One, buffer queue untreatment data is printed in judgement, prints if exceed 5 row, and buffering is set has expired signal, and print speed arranged for 0.5 row/second, printed running down of battery light, acoustic alarm with lowest quality.
Two, print data within 5 row, arranges the full signal of buffering, and print speed was set to for 1 row/second, printed the complete full signal of cancelling, and battery will exhaust light, acoustic alarm.
Three, print buffer queue sky, close DC converting, allow battery at once relaxation recover, upper once start print before time delay 3 seconds.
In the present invention, dynamically adjust and join thermal head sheet driving voltage in conjunction with digital resistance by site environment temperature, thermal head sheet temperature and three parameters of battery discharge output voltage, variable condition figure as shown in Figure 6, wherein environment T1 obtains by the thermo-sensitive resistor on system board, temperature-sensitive T2 obtains by the thermo-sensitive resistor being encapsulated in a sheet, DC converting refers to DC-DC translation circuit, digital feedback is after processor receives each signal or directly or by adjusting digital resistance, above-mentioned parts adjusted to control, and the control procedure of each transition state is as follows.
1. when initial, environment temperature determines thermal head sheet temperature, is simplification problem, it has been generally acknowledged that temperature-sensitive local temperature can not impact whole site environment temperature;
2. the temperature variation curve of thermal head sheet puts on digital feedback, and digital feedback changes DC converting, and service wear thermal source is to greatest extent saved battery electric quantity;
Once 3. thermal head sheet thermo-sensitive resistor detection head sheet temperature exceedes protection warning line, directly turn-offs DC converting, protect head-protecting structure and can overheatedly not burn;
4. environment temperature is optimized digital feedback signal, guarantees to obtain minimum battery power consumption under various extreme cases, obtains optimal printing quality;
5. battery discharge curve negotiating digital feedback is optimized the efficiency of DC converting, the quiescent dissipation of the reduction DC converting of maximum possible;
6. cell voltage is input in DC transfer circuit, and battery electric quantity is low, prevents battery over-discharge, and direct current changes and can directly turn-off;
7. DC transfer circuit provides the energy of the needed stable and High Output Current of thermal head sheet, and under standby mode, directly turn-offs DC transfer circuit and eliminate the leakage current that conversion quiescent dissipation and filter capacitor bring;
8. in order to reach energy-conservation object, the output sampling resistor of DC converting has adopted digitlization resistance, capable of dynamic and the directly output of adjustment driving voltage under the control of processor;
9. driving voltage feeds back to DC transfer circuit by digital resistance and high accuracy divider resistance;
10. the height of driving voltage directly affects the temperature of thermal head sheet, and it is non-linear relation.
Table one is the crucial energy-conservation mapping table that thermal head sheet temperature is set and optimizes driving voltage, and has provided the heat pulse time of optimizing.In table, provide the temperature-voltage regulation curve every 5 degree, can reach 0.02V because the minimum of digital resistance is adjusted scale, therefore in the curve of 5 degree, can think that its temperature-voltage is linear change.In addition, because variations in temperature generally has a hysteresis quality, consider the simplification of processing, in less demanding situation, can think that temperature-voltage is linear relationship.
Table one power save parameters optimization table
The present invention adopts digital driving voltage adjusting method, utilize thermal printer to add the effect that characteristic that a sheet temperature that thermal losses causes raises can preheating printing paper, in real time the temperature of detection head sheet has also proposed a set of Optimal Design Strategies, complex optimum the power consumption design of portable printer.Detect the discharge voltage of battery, protection battery can cause that the degree of depth crosses the state of putting in no instance simultaneously constantly, and protection battery avoids damaging.Owing to being a kind of process of dynamic adjustment, and adopt high-performance processor in actual design, therefore a lot of optimization option switches can be set and select.Such as direct current conversion efficiency priority option, battery discharge is optimized priority option, and print quality guarantees priority option, and waste heat preferentially utilizes option etc.Matrix, in the time selecting direct current conversion efficiency preferential, remains optimum conversion efficiency, mainly by adjusting the heat pulse time and regulating the size of driving voltage to realize; In the time that battery discharge optimization is preferential, be mainly in the time that cell voltage reaches blanking voltage, make full use of the relaxation behavior of battery; In the time selecting waste heat preferential, first consider the temperature of a sheet, make full use of the waste heat of a sheet; When selecting print quality to guarantee that when preferential, principal security VPP fixes, and then adjusts other parameters.
The above; it is only preferred embodiment of the present invention; it is not the restriction of the present invention being made to other form; the equivalent embodiment that any those skilled in the art may utilize the technology contents of above-mentioned announcement to be changed or be modified as equivalent variations is applied to other field the liquid of similar requirement, the control of gas; but every technical solution of the present invention content that do not depart from; any simple modification, equivalent variations and the remodeling above embodiment done according to technical spirit of the present invention, still belong to the protection domain of technical solution of the present invention.