METHOD FOR MANAGING A THERMAL PRINTER, CORRESPONDING DEVICE AND PROGRAM
20180319176 ยท 2018-11-08
Inventors
Cpc classification
B41J2/35
PERFORMING OPERATIONS; TRANSPORTING
B41J2029/3932
PERFORMING OPERATIONS; TRANSPORTING
B41J2/3558
PERFORMING OPERATIONS; TRANSPORTING
B41J2/3553
PERFORMING OPERATIONS; TRANSPORTING
G07F17/42
PHYSICS
International classification
B41J2/355
PERFORMING OPERATIONS; TRANSPORTING
B41J29/393
PERFORMING OPERATIONS; TRANSPORTING
Abstract
A method for managing printing of data by a thermal printer. The thermal printer includes a thermal print head. The thermal print head has a plurality of points, each point having an effective resistance r.sub.d, and is powered by a power source. The method includes the following actions: measuring a voltage U given by the power source of the thermal printer; measuring an internal resistance r.sub.u of the power source; and computing a duration t for heating a number n of points as a function of the voltage U of the power source, the internal resistance r.sub.u of the power source, at least one effective resistance r.sub.d of at least one point corresponding to a dot to be printed for the printing of the data and as a function of at least one value of parasitic resistance r.sub.p of at least one element of the thermal printer.
Claims
1. A method for managing a printing of data by a thermal printer, comprising a thermal print head, said thermal head comprising a plurality of points, each point having an effective resistance r.sub.d, said thermal printer being powered by a power source, wherein the method comprises the following actions: measuring a voltage U given by said power source of said thermal printer; measuring an internal resistance r.sub.u of said power source, and computing a duration t for heating a number n of points as a function of said voltage U of said power source, said internal resistance r.sub.u of the power source, said effective resistance r.sub.d of at least one point corresponding to a dot to be printed for the printing of said data and as a function of at least one value of parasitic resistance r.sub.p of at least one element of said thermal printer, wherein said duration is computed according to the following formula:
2. The method of management according to claim 1, wherein said thermal printer has low resistance and said power source is a detachable battery of a device within which said thermal printer is installed.
3. (canceled)
4. The method of management according to claim 1, wherein the points of the thermal head are distributed among a predetermined number of modules.
5. The method of management according to claim 4, wherein each of said modules of points has a common parasitic resistance r.sub.c, and said act of computing additionally taking account of a common resistance r.sub.c of at least one module to which said points belong.
6. The method of management according to claim 1, wherein said values of effective resistance r.sub.d of said at least one point of said print head are recorded within a data structure.
7. A thermal printer powered by a power source and comprising: a thermal print head, said thermal head comprising a plurality of points, each point having an effective resistance r.sub.d; a processor; and a non-transitory computer-readable medium comprising instructions stored thereon, which when executed by the processor configure the thermal printer to perform acts comprising: measuring a voltage U given by said power source, measuring an internal resistance r.sub.u of said power source, and computing a duration t to heat a number n of points as a function of said voltage U of said power source and of said internal resistance r.sub.u of the power source, at least one said effective resistance r.sub.d of at least one point to be printed for the printing of said data as a function of at least one value of parasitic resistance r.sub.p of at least one element of said thermal printer, wherein computing computes said duration according to the formula below:
8. An electronic device comprising the thermal printer according to claim 7.
9. The electronic device according to claim 8, wherein the electronic device takes the form of a payment terminal.
10. A non-transitory computer-readable medium comprising instructions stored thereon and comprising program code instructions for execution of a method for managing printing of data by a thermal printer, when the instructions are executed on a computer of the thermal printer, which comprises a thermal print head, said thermal print head comprising a plurality of points, each point having an effective resistance r.sub.d, said thermal printer being powered by a power source, wherein the method comprises the following actions: measuring a voltage U given by said power source of said thermal printer; measuring an internal resistance r.sub.u of said power source, and computing a duration t for heating a number n of points as a function of said voltage U of said power source, said internal resistance r.sub.u of the power source, said effective resistance r.sub.d of at least one point corresponding to a dot to be printed for the printing of said data and as a function of at least one value of parasitic resistance r.sub.p of at least one element of said thermal printer, wherein said duration is computed according to the following formula:
Description
4. FIGURES
[0048] Other features and advantages of the invention shall appear more clearly from the following description of an embodiment of the disclosure given by way of simple illustratory and non-exhaustive example and from the appended drawings, of which:
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
5. DESCRIPTION
5.1. General Principle
[0055] The object of the present technique is to have functional and hardware means that enable the management of available energy to carry out a printing operation as efficiently as possible. This requires especially the use of a method for managing a thermal printer that takes account of the quantity of energy available at source (i.e. in the battery) and takes account of a set of factors of resistance of the electrical circuit: the method described here below therefore makes it possible to take account of these parameters to give the printer (and the printing modules or head) the quantity of energy necessary to print the characters. The energy transmitted to the print heads corresponds therefore solely to the quantity required, thus preventing the waste of energy that can be encountered in existing models. Since the object of the method is to compute the time needed for heating as precisely as possible, the method of management described here below can be applied equally well to low-resistance printers (described here below) and to classic resistance or high-resistance printers.
[0056] Besides, this method of management is accompanied by a method of calibration, during which the resistance values of the different components that enter into the implementation of the impression are evaluated. This evaluation makes it possible to ensure that there are reference values available for computations of the quantity of energy transmitted to the different elements of the printer when it is operating. This method of calibration thus enables the intelligent consumption of energy during printing.
[0057] The efficient management of energy also requires, at least in one embodiment, the implementation of a specific printer called a low-resistance printer. This printer has the particular feature of working with a single power source, of relatively low voltage. The architecture of implementing such a printer is also described here below.
5.2. Method for Managing a Thermal Printer
[0058] It is an object of the present technique to provide constant printing quality at a determined speed while avoiding waste of energy and to do so in a context of limited quantity of energy available. The inventors have identified the fact that the problems of printing quality and waste of energy are caused by overheating or underheating of the points of the thermal print head, resulting from inaccurate computation of the heating duration.
[0059] To resolve these problems, the invention proposes a method for managing a thermal printer 4 powered by a power source 45 such as a battery or several batteries comprising a thermal print head 44, said thermal print head comprising a plurality of points, each point having effective resistance r.sub.d. The method comprises: [0060] a step 31 for measuring a voltage (U) given by said power source, [0061] a step 32 for measuring an internal resistance (r.sub.u) of said power source, and [0062] a step 33 for computing a duration (t) to heat a number (n) of points as a function of said voltage (U) of said power source and said internal resistance (r.sub.u) of the power source, at least one effective resistance r.sub.d of at least one point corresponding to a dot to be printed for the printing of said data as a function of at least one parasitic resistance r.sub.p of at least one element of said thermal printer.
[0063] Here below and here above, the resistance values are denoted with the lower-case letter r, indexed with a reference in order to distinguish between the resistance values (r.sub.d, r.sub.p, r.sub.d, etc.).
[0064] Indeed, the inventors have identified the fact that the voltage and the internal resistance of a power source, such as a battery, are often variable in time. Thus, computing the heating duration takes account of current voltage and resistance values of the power source. The heating duration is thus more precise and avoids the overheating or underheating of the points of the thermal print head.
[0065] It is another object of the invention to provide a thermal printer that requires less space, is less costly and reduces manufacturing complexity. As illustrated in
[0066] To resolve the prior-art problems referred to here below, the inventors propose a low-resistance thermal printer powered by a single battery such as a Li-ion battery while at the same time maintaining the performance of the printer.
[0067] The voltage of the single battery is of the order of 4 volts. When the voltage U is halved, the duration needed for heating the points will be increased fourfold. This does not ensure the performance of the printer.
[0068] To resolve this problem, the inventors propose the use of a low-resistance thermal print head. A printer having a low-resistance thermal print head is also called a low-resistance printer. Indeed, reducing the resistance of the points of the thermal head r.sub.d, reduces the duration of heating t. In the present invention, a low resistance corresponds to a value of resistance of a heating element ranging from 50 to 90 ohms (50<r.sub.d<90). On the contrary, in existing printers, the value of resistance of a heating element ranges from 180 to 220 ohms (180<r.sub.d<220).
[0069] However, the printing quality of the printer according to this solution is highly variable. The inventors have thus observed that the problem of overheating and underheating of the points of the thermal head is as severe as (or even severer than) that raised by printers of the prior art. The inventors have seen that the problem lies in the fact that the heating duration is computed according to the prior-art method (without taking account of variations in voltage, internal resistance of the battery and parasitic resistance of the points of the terminal head). Indeed, when the resistance of the thermal print head is low (r.sub.d/n is smaller), this resistance becomes closer to the internal resistance r.sub.u of the battery and the parasite resistances r.sub.p of the points. The influence of the parasite resistances on the computation of the heating duration becomes greater. The method of management described earlier is especially valuable in improving the printing quality of the low-resistance printer powered by a single battery. Another embodiment therefore also proposes a low-resistance thermal printer powered by a power source which is a single battery such as a Li-ion battery.
[0070] Thus, this method ensures printing performance and quality while saving on the volume of the components and reducing the cost and complexity of manufacture.
[0071]
[0072] The energy consumed to heat the n points of the thermal head complies with the formula below:
[0073] Thus, according to the formulae (3) and (4), the duration needed t to heat a number n of points to attain a predetermined temperature can be obtained by the following formula:
[0074] The formula for computing the heating duration t, takes account especially of the internal resistance r.sub.u of the power supply source. The inventors have also identified parasitic resistances in the thermal print head as illustrated in
[0075] Thus, according to a specific embodiment of the invention, the step for computing the heating duration of a number n of points also takes account of the parasitic resistance values of the points.
[0076] In the circuit diagram of
[0077] The energy consumed to heat n points of the thermal head complies with the following formula:
[0078] Thus, according to the formulae (6) and (7), the duration t needed to heat a number n of points to attain a predetermined temperature can be obtained by the following formula:
[0079] The number of points included in the thermal print head is often very great. According to one specific embodiment, the points can be distributed among several modules. As illustrated in
[0080] The duration t needed to heat a number n (n64) of points to attain a predetermined temperature can be obtained by the following formula:
[0081] Hence, for a same power source (for example a battery), the number of points to be heated in a heating step is necessarily smaller than the number of points of a module (unless it is sought to print a full character, which is rarely the case). Thus, for a same initial state of a battery, if it is necessary to heat from one point to 64 points of the same module, then the heating time must take account of the losses that increase in the parasitic resistances in order to maintain the energy per point at a sufficiently constant level so that, on the one hand, there is no deterioration on the contrast (if we do not take this into account, then the printing will be paler when more points are printed simultaneously), and on the other hand not to unnecessarily waste energy (the heating could be chosen for the worst case) and performance in terms of speed (and autonomy).
[0082] According to one specific embodiment of the invention, the method comprises a step of calibration to evaluate the parasitic resistance of the points and the common resistances of the modules of the points. This calibration step is described here below. This calibration step is used to measure the real values of resistance and therefore to be more efficient in calculating the time during which the energy is used to heat the printing points. Depending on the embodiments and on operational conditions (i.e. modules, printing equipment used especially), this calibration can be done only once, when initializing or booting the electronic device within which the printer is positioned) or else several times, for example once a day when starting up the device, or even more often. The values of the resistances (r.sub.p, r.sub.c, r.sub.d, etc.) are available within a data structure, which can be accessible through the device implementing the management method. Such a data structure is present for example in the form of a flat file or an XML file.
[0083] According to a preferred implementation, the different steps of the methods according to the invention are implemented and/or driven by one or more software programs or computer programs comprising software instructions to be executed by a data processor of a relay module according to the invention and designed to control the execution of the different steps of the method or methods of management. The times that are computed on the basis of the values of resistance of the different elements are then used to control the heating of the resistances of the print heads. Depending on the systems and the embodiments, this heating command can be called a strobe effect command.
[0084] The present technique therefore also relates to a program capable of being executed by a computer or by a data processor, this program comprising instructions to command the execution of the steps of a method as mentioned here above.
5.3. Thermal Printer
[0085] The proposed technique also relates to a printer 4 as illustrated in
[0086] More specifically, the invention proposes a thermal printer 4 powered by a power source 45 such as a battery comprising a thermal print head 44, said thermal print head 44 comprising a plurality of points, each point having an effective resistance r.sub.d. The printer 4 is characterized in that it comprises: [0087] a module 41 for measuring a voltage U provided by said power source, [0088] a module 42 for measuring an internal resistance r.sub.u of said power source, and [0089] a module 43 for computing a duration t for heating a number n of points as a function of said voltage U of said power source and said internal resistance r.sub.u of the power source, at least one said effective resistance r.sub.d, at least one point to be printed for the printing of said data and as a function of at least one value of parasitic resistance r.sub.p of at least one element of said thermal printer.
[0090] The technique also relates to any electronic device comprising a thermal printer as described here above.
[0091] According to one specific embodiment, the thermal printer and the electronic device share the same power source. The measuring and computation modules can be integrated into the electronic device which includes a processor, a memory and computer programs to carry out the method of management of a thermal printer.
[0092] More specifically, the invention proposes an electronic device powered by a power source such as one or more batteries comprising a thermal printer comprising a thermal print head, said thermal head comprising a plurality of points, each point having an effective resistance (r.sub.d), the electronic device comprising: [0093] a module for measuring a voltage (U) provided by said power source; [0094] a module for measuring an internal resistance (r.sub.u) of said power source; and [0095] a module for computing a duration (t) to heat a number (n) of points as a function of said voltage (U) of said power source and said internal resistance (r.sub.u) of the power source, at least one said effective resistance (r.sub.d) of least one point to be printed for the printing of said data and as a function of at least one value of parasitic resistance (r.sub.p) of at least one element of said thermal printer.
[0096] According to one specific embodiment, the electronic device is a payment terminal which, as illustrated in
[0097] At initialization, the code instructions of the computer program 63 are for example loaded into a memory and then executed by the processor of the processing unit 62. The microprocessor of the processing unit 62 drives the measuring module 61 and 62 to obtain the voltage and the internal resistance of the power source, and compute the heating duration according to the instructions of the computer program 63. By way of an indication, in one specific embodiment, the battery resistance is equal to 30 m<r.sub.i<120 m. The voltage of the battery is equal to 2.7V<V.sub.bat<4.3V. The resistance of a printing point (dot) is equal to 50<r.sub.d<90. The parasitic resistances are equal to: r.sub.c=145 m and r.sub.p=12
5.4. Calibration Step
[0098] As indicated here above, to be able to implement the above described method of driving, it is worthwhile to have a preliminary calibration of the printer. It is possible to make this calibration in several different ways. However, the proposed method described herein has several advantages, including one advantage in terms of calibration time. In the present embodiment, the printer to be calibrated has six modules, each module comprising 64 points. This method of calibration can of course be implemented with a different number of modules. A module is used to carry out the printing of a character.
[0099] To make the measurements, the measurement of the voltage of the battery and that of the current consumed in the battery are accessed simultaneously. Any measurement of current is a measurement of a difference of current between the no-loadstate (no consumption related to the printer) and the load state (specific consumption related to the printer). Similarly, a difference of voltage is measured between the no-load voltage and the load voltage.
[0100] The calibration of the printer comprises three major phases. The first phase consists in carrying out cold and hot measurements for each point. The second phase consists in measuring the parasitic resistance for each module of points (64 points per module). The third phase consists in measuring the resistance common to the entire print head.
a) Phase 1: Cold and Hot Measurement of Each Point
[0101] For each of these 384 points, a cold measurement and a hot measurement is made. A measurement is obtained of a path containing all the resistance values in series (overall common resistance, common resistance of the module, resistance of the driving transistor and resistance of the point) for a point. The measurement is for example made as follows: [0102] for the points from 1 to 64: [0103] for the modules from 1 to 6: [0104] measure the voltage and the current under no load (no point is driven); [0105] measure voltage and current just at the instant when the point is put under voltage (cold measurement) at the beginning of the strobe effect; [0106] measure voltage and current at the end of several microseconds (hot measurement) at the end of the strobe effect. [0107] wait for a predetermined time period (until the heating of the point (dot) is dissipated, so that there is no longer any thermal influence on the adjacent point which will be tested thereafter): this period depends on the initial parameters of the print head.
[0108] It may be recalled, that strobe corresponds to the command that activates the heating of the resistances. This command is implemented to heat the print head. Depending on the embodiments, this command can be activated for a given period of time, which is computed by the processor in this calibration phase.
[0109] The following heat sequence of points is obtained:
TABLE-US-00001 point#1, point#65, point#129, point#193, point#257, point#321 pause point#2, point#66, point#130, point#194, point#258, point#322 pause ... point#63, point#127, point#191, point#255, point#319, point#383 pause point#64, point#128, point#192, point#256, point#320, point#384 pause [0110] The value of such a method is that it allows the point N to cool down while testing the points N+64, N+128, N+192, N+256 and N+320 before passing to the point N+1. Thus, the waiting time needed before carrying out the measurement on the point N+1 after the measurement of the point N is limited because this zone has cooled in masked time during the testing of the points N+64, N+128, N+192, N+256 and N+320. It can be noted that it is also possible to use paper (in making it feed forward) to accelerate the cooling of each point and the entire head.
b) Phase 2: Measuring the Parasitic Resistances for Each 64-Point Module
[0111] Ideally, if the print head allows it, the 64 points of each module are heated simultaneously, in carrying out a no-load measurement of voltage and current, and then at the beginning of the strobe effect and at the end of the strobe effect. If the head does not allow simultaneous switching of 64 points of each module, the operation will be limited to the maximum that is supported by the module. For this measurement, the problem of adjacency between two measurements is a far greater source of problems than in phase 1. On the one hand, a great deal of energy is added and, on the other hand, since there is only a total of six chips, the distance from a zone that has just been heated is necessarily no more than two chips. An efficient compromise of measurement is the following sequence: [0112] module#1, module#3, module#5, module#2, module#4, module#6 indeed, there is always a difference of two modules between two successive measurements, which reduces the time needed to remove heat from each measurement. Here again, the paper to participate in the discharge of a substantial part of the heat in order to reduce measuring time.
c) Phase 3: Measuring Parasitic Resistors Common to all the Modules
[0113] The current is made to pass simultaneously in all the modules, in lighting up the maximum number of points possible on the head, distributed uniformly between each of the six modules. [0114] The method is the same as here above: measurement of voltage and current without load and then at the start and end of the strobe effect.
[0115] These three measurement phases give the resistance of the different elements that form the printing circuit of the thermal printer. Once these values of resistance are known, they are used to compute the time needed for heating one or points of one or more modules during the simultaneous printing of the characters. Knowledge of these values then makes it possible to adapt the way in which the printing is done. Thus, for example, it is possible to decide, when the voltage in the battery drops, to carry out sub-optimal printing (i.e. in not completely heating the printing points) for example to carry out a complete printing of a receipt. Such a solution is preferable to the optimal printing of the first lines of a ticket followed by the absence of printing of the following lines (for lack of battery).
[0116] These three phases make it possible to obtain resistance values prior to any printing. More particularly, the resistance values obtained are the effective resistance values r.sub.d of each point of each printing module of the print head. Thus, these effective resistance values, which can be called individual effective resistance values, are recorded within a data structure that is accessible to the method of management of printing and that enables the computation of the heating time of each point as a function of the data to be printed.
[0117] These three phases also make it possible to obtain the values of parasitic resistance r.sub.p, r.sub.c of the modules and of other elements of the printing circuit. These resistance values are also recorded within a data structure accessible to the methods of management of the printing. Thus, prior to the printing, a computation is made from known values measured beforehand which effectively take account of the real state of the printer and not solely of the theoretical value when the device leaves the factory plant.