Printer control method, control device, printer and storage medium

By monitoring the working status parameters of the dye-sublimation printer, if the ribbon is jammed, the printer will stop working to avoid ribbon breakage and damage to the print head. This solves the problem of ribbon breakage caused by jamming and achieves more stable printing results.

CN109649014BActive Publication Date: 2024-09-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811566890.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-19
Publication Date
2024-09-03
Estimated Expiration
2038-12-19

AI Technical Summary

Technical Problem

The ribbon in a dye-sublimation printer can easily get stuck during movement, leading to breakage, affecting the printing effect and possibly causing damage to the print head.

Method used

By monitoring the current, torque of the ribbon drive motor and the temperature of the impression roller, if the parameters exceed the preset threshold, the printer is controlled to stop working to avoid ribbon breakage, including stopping the ribbon drive motor and stopping the print head heating.

Benefits of technology

It effectively prevents the ribbon from breaking, preventing the ribbon from being pulled or burned, ensuring the normal working status of the printer, and sending out alarm messages in time to facilitate maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109649014B
    Figure CN109649014B
Patent Text Reader

Abstract

The present disclosure provides a control method, a control device, a printer and a storage medium for a printer. The control method includes: obtaining the working state parameters of the printer, the working state parameters include at least one of the current of the ribbon drive motor, the torque of the ribbon drive motor and the temperature of the platen roller; when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameters, the printer is controlled to stop working. When the ribbon is stuck, the speed of the ribbon drive motor that pulls the ribbon to rotate will decrease or even stop, the current and torque of the ribbon drive motor will increase, and the temperature of the platen roller will continue to rise. By obtaining the working state parameters, the working state parameters include at least one of the current, torque and temperature of the ribbon drive motor. When the obtained working state parameters are greater than the corresponding preset threshold value, it can be considered that the ribbon is stuck, and the printer is controlled to stop working to avoid the ribbon from breaking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of printers, and in particular to a printer control method, a control device, a printer and a storage medium. Background Art

[0002] Thermal sublimation printers are usually used to print color photos. Usually, thermal sublimation printers include a print head and a ribbon. The part of the ribbon that contacts the print head will be heated by the print head, and the dye on the ribbon will sublimate into a gaseous state. When the gaseous dye contacts the printing medium (such as photo paper), it will condense into a solid state and adhere to the printing medium.

[0003] When printing, the ribbon moves synchronously with the print medium, so that different positions on the ribbon can contact the print head in turn for heating, and dyes are attached to different positions on the print medium in turn to form a pattern. The ribbon may get stuck during movement, and the ribbon may break after getting stuck, thus affecting its use. Summary of the invention

[0004] The embodiments of the present disclosure provide a control method, a control device, a printer and a storage medium for a printer, which can avoid the breakage of a ribbon. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present disclosure provides a method for controlling a printer, comprising:

[0006] Acquire working state parameters of the printer, wherein the working state parameters include at least one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller;

[0007] When at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter, the printer is controlled to stop working. When the ribbon is stuck, the speed of the ribbon drive motor that pulls the ribbon to rotate will decrease or even stop, the current and torque of the ribbon drive motor will increase, and the temperature of the platen roller will continue to rise. By obtaining one of the current, torque or temperature of the ribbon drive motor or the platen roller, when the obtained working state parameter is greater than the corresponding preset threshold value, it can be considered that the ribbon is stuck, and the printer is controlled to stop working to avoid the ribbon from breaking.

[0008] In a possible implementation of the embodiment of the present disclosure, controlling the printer to stop working includes at least one of the following actions:

[0009] Controlling the ribbon driving motor of the printer to stop rotating;

[0010] Control the print head of the printer to stop heating. There are two possible reasons for the ribbon to break after it gets stuck. One is that the torque of the ribbon drive motor increases, the tension on the ribbon increases, and the ribbon is pulled apart by the ribbon drive motor. The other is that the ribbon cannot rotate, and the print head continues to heat the same position on the ribbon, causing the heated position to be too hot, and the ribbon is burned off by the print head. The burnt residue falls inside the printer and affects the normal operation of the printer. The print head heats an area of ​​the ribbon for a long time, and the dye of the ribbon may adhere to the print head and affect the normal operation of the print head. By controlling the printer's ribbon drive motor to stop, the ribbon can be prevented from being torn apart by the ribbon drive motor, and by controlling the print head to stop heating, the ribbon can be prevented from being burned off by the print head.

[0011] In a possible implementation of the embodiment of the present disclosure, the method further includes:

[0012] When the working state parameter is greater than a preset threshold value corresponding to the working state parameter, an alarm message is issued. When the working state parameter is greater than a preset threshold value corresponding to the working state parameter, an alarm message is issued, so that the staff can know that the ribbon is stuck as soon as possible, so that the staff can repair the printer as soon as possible.

[0013] In a possible implementation of the embodiment of the present disclosure, the preset threshold corresponding to the torque satisfies the equation:

[0014] T=a*A+(1-a)*B

[0015] Wherein, T is a preset threshold value corresponding to the torque, A is the torque when the ribbon drive motor is blocked, B is the torque when the ribbon drive motor is rotating normally, 0<a≤1,

[0016] The preset threshold value corresponding to the current satisfies the equation

[0017] I=b*C+(1-b)*D

[0018] Wherein, I is a preset threshold value corresponding to the current, C is the current when the ribbon drive motor is blocked, D is the current when the ribbon drive motor rotates normally, and 0<b≤1. Since the ribbon may not be completely stuck during the operation of the printer, the ribbon drive motor can still rotate slowly. Therefore, when the rotation of the ribbon is blocked, even if the ribbon is not completely stuck, the printer can be controlled to stop working in time to prevent the ribbon from breaking.

[0019] In a second aspect, an embodiment of the present disclosure provides a control device for a printer, comprising:

[0020] A control device is used to obtain the working status parameters of the printer, wherein the working status parameters include one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller. When at least one of the working status parameters is greater than a preset threshold value corresponding to the working status parameter, the printer is controlled to stop working.

[0021] In a possible implementation of the embodiment of the present disclosure, the control device is configured to perform at least one of the following actions when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter:

[0022] Controlling the ribbon driving motor of the printer to stop rotating;

[0023] The printing head of the printer is controlled to stop heating.

[0024] In a possible implementation of the embodiment of the present disclosure, the control device includes a comparator, the comparator having a first input terminal for receiving an input signal and a second input terminal for receiving a reference signal, the input signal is a signal for reflecting the working state parameter, the reference signal is the same as the input signal in a critical state, and the critical state is a state when the working state parameter is equal to the preset threshold value. The first input terminal of the comparator receives the input signal, and the second input terminal of the comparator receives the reference signal, so that the input signal can be compared with the reference signal, so that it can be determined whether the color ribbon is stuck according to the output signal of the comparator.

[0025] In a possible implementation of the embodiment of the present disclosure, the output end of the comparator is connected to the enable input end of the motor driver of the ribbon drive motor. The output end of the comparator is connected to the enable input end of the motor driver of the ribbon drive motor. When the reference signal is greater than the output signal of the detector, the signal output by the output end of the comparator can be input into the motor driver as an enable signal, and the motor driver can control the rotation of the ribbon drive motor. When the reference signal is less than the output signal of the detector, the signal output by the output end of the comparator is reversed, and the motor driver controls the ribbon drive motor to stop rotating.

[0026] In a possible implementation of the embodiment of the present disclosure, the control device further includes a controllable switch, the controllable switch is connected between the print head and the print head power supply, and the output end of the comparator is connected to the control end of the controllable switch. The output end of the comparator is connected to the control end of the controllable switch connected between the print head and the print head power supply. When the reference signal is greater than the output signal of the detector, the signal output by the output end of the comparator can keep the controllable switch in a closed state, and the print head power supply can supply power to the print head, causing the print head to heat up. When the reference signal is less than the output signal of the detector, the signal output by the output end of the comparator is flipped, the controllable switch is disconnected, the print head power supply stops supplying power to the print head, and the print head stops heating up.

[0027] In a possible implementation of the embodiment of the present disclosure, the control device includes an OR gate circuit and at least two comparators, and the output ends of at least two comparators are connected to the input end of the OR gate circuit. In this way, as long as at least one working state parameter is greater than a preset threshold value corresponding to the working state parameter, the printer can be controlled to stop working, which can improve reliability.

[0028] In a possible implementation manner of the embodiment of the present disclosure, the output end of the OR gate circuit is connected to the enable input end of the motor driver of the ribbon drive motor.

[0029] In a possible implementation of the embodiment of the present disclosure, the control device further includes a controllable switch, wherein the controllable switch is connected between the print head and a print head power supply, and the output end of the OR gate circuit is connected to the control end of the controllable switch.

[0030] In a possible implementation manner of the embodiment of the present disclosure, the control device is further configured to issue an alarm message when the working state parameter is greater than a preset threshold value corresponding to the working state parameter.

[0031] In a possible implementation manner of the embodiment of the present disclosure, the control device includes a processor, and the control device also includes a memory for storing instructions executable by the processor, and the memory is connected to the processor.

[0032] In a possible implementation manner of the embodiment of the present disclosure, the control device further includes a detector for detecting a working status parameter of the printer, and the control device is used to obtain the working status parameter through the detector.

[0033] In a third aspect, an embodiment of the present disclosure provides a printer, comprising the control device as described above.

[0034] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium includes at least one instruction, and when the at least one instruction is executed by a processor, the steps of the printer control method as described in the first aspect are executed.

[0035] The beneficial effects brought about by the technical solution provided by the embodiments of the present disclosure include at least: by obtaining the working status parameters of the printer, where the working status parameters include at least one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller, when at least one of the working status parameters is greater than the corresponding preset threshold value, it can be considered that the ribbon is stuck, and the printer is controlled to stop working to avoid ribbon breakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 It is a partial structural schematic diagram of a thermal sublimation printer;

[0038] Figure 2 is a flow chart of a control method of a printer provided by an embodiment of the present disclosure;

[0039] Figure 3 is a structural schematic diagram of a control device of a printer provided by an embodiment of the present disclosure;

[0040] Figure 4 is a circuit diagram of a control device of a printer provided by an embodiment of the present disclosure;

[0041] Figure 5 is a circuit diagram of another control device of a printer provided by an embodiment of the present disclosure;

[0042] Figure 6 The figure is a block diagram of a control device of a printer according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0044] Figure 1 This is a partial structural diagram of a thermal sublimation printer. Figure 1As shown, the thermal sublimation printer includes a platen roller 2, a print head 1 and a ribbon driving motor (not shown), and there is a gap between the print head 1 and the outer peripheral wall of the platen roller 2. The ribbon 3 is located in the gap between the print head 1 and the platen roller 2, and the printing medium 7 is located on the outer peripheral wall of the platen roller 2. During the printing process, the ribbon 3 moves synchronously with the platen roller 2, wherein the platen roller 2 moves along the Figure 1 The arrow a in the figure rotates, and the ribbon drive motor drives the ribbon 3 along Figure 1 The arrow b in the figure passes through the gap between the print head 1 and the platen roller 2, and the print head 1 heats the area on the ribbon 3 that contacts the print head 1. When the ribbon 3 and the print medium 7 move synchronously, different positions on the ribbon 3 can contact the print head 1 in sequence to be heated, and dyes are attached to different positions on the print medium 7 in sequence to form a pattern.

[0045] If the ribbon 3 is stuck, the ribbon 3 may break. There are two reasons for the breakage of the ribbon 3. One is that the torque of the ribbon drive motor increases, the tension on the ribbon 3 increases, and the ribbon 3 is pulled apart by the ribbon drive motor. The other is that the ribbon 3 cannot rotate, the print head 1 continues to heat the same position on the ribbon 3, causing the temperature of the heated position to be too high, and the ribbon 3 is burned off by the print head 1. In addition, the dye on the ribbon 3 may adhere to the print head 1 and affect the normal operation of the print head 1. The burned debris scattered inside the printer may also affect the normal operation of the printer.

[0046] Figure 2 1 is a flow chart of a control method for a printer provided by an embodiment of the present disclosure. Figure 2 As shown, the control method includes:

[0047] In step S11, the working status parameters of the printer are obtained.

[0048] The working state parameter includes at least one of the current of the ribbon driving motor, the torque of the ribbon driving motor, and the temperature of the embossing roller.

[0049] In step S12, when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter, the printer is controlled to stop working. When all working state parameters are not greater than the preset threshold value corresponding to the working state parameter, it means that the ribbon is not stuck and the printer is working normally, and the process can return to step S11.

[0050] Optionally, when executing step S12, at least one of the following actions may be performed:

[0051] The ribbon drive motor that controls the printer stops.

[0052] Control the printer's print head to stop heating.

[0053] By stopping the ribbon drive motor of the printer, the ribbon can be prevented from being torn by the ribbon drive motor and the motor can be prevented from being burned. By stopping the heating of the print head, the ribbon can be prevented from being burned by the print head and the dye on the ribbon can be prevented from adhering to the print head and affecting the normal operation of the print head.

[0054] In a possible implementation of the disclosed embodiment, when the working state parameter is greater than a preset threshold value corresponding to the working state parameter, an alarm message may be issued. When the working state parameter is greater than the corresponding preset threshold value, an alarm message is issued, so that the staff can know that the ribbon is stuck as soon as possible, so that the staff can repair the printer as soon as possible.

[0055] Optionally, the alarm information may include light information, sound information or a combination thereof.

[0056] By acquiring the working status parameters of the printer, wherein the working status parameters include at least one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller, when at least one of the working status parameters is greater than the corresponding preset threshold value, it can be considered that the ribbon is stuck, and the printer is controlled to stop working to avoid ribbon breakage.

[0057] Exemplarily, the preset threshold corresponding to the current of the ribbon drive motor and the preset threshold corresponding to the torque of the ribbon drive motor may be determined in the following manner:

[0058] The ribbon drive motor is detected by using a detector, which may be a current detection device (such as a current sensor) or a torque detection device (such as a torque sensor). Taking the torque detection device as an example, after the ribbon is stuck, the ribbon drive motor cannot rotate, and the torque of the ribbon drive motor at this time is measured and recorded as a first torque, which can be used as a preset torque threshold.

[0059] In addition, when it is determined that the ribbon is not stuck, the ribbon drive motor can be rotated, and the torque of the ribbon drive motor at this time can be measured and recorded as the second torque. The torque value greater than the second torque but not exceeding the first torque is used as the preset threshold value of the torque. That is, the preset threshold value of the torque is T = a*A+(1-a)*B, where A is the torque when the ribbon drive motor is blocked (i.e., the first torque), and B is the torque when the ribbon drive motor rotates normally (i.e., the second torque), and 0 < a ≤ 1. Since the ribbon may not be completely stuck during the operation of the printer, the ribbon drive motor can still rotate slowly, so this can further improve the reliability and ensure that when the rotation of the ribbon is blocked, even if the ribbon is not completely stuck, the printer can be controlled to stop working in time to prevent the ribbon from breaking.

[0060] Furthermore, a can be 0.5 to 0.8. If the value of a is set too small, a small resistance when the ribbon rotates may be considered as the ribbon being stuck, causing the printer to stop working. If a is set too large, the ribbon may be considered as being stuck only when a large resistance is encountered when the ribbon rotates, which increases the risk of the ribbon breaking.

[0061] Using a current detection device for detection, a similar method can be used to obtain a preset threshold value corresponding to the current that satisfies the equation

[0062] I=b*C+(1-b)*D

[0063] Wherein, I is a preset threshold value corresponding to the current, C is the current when the ribbon drive motor is blocked, D is the current when the ribbon drive motor is rotating normally, 0<b≤1. b can also be 0.5~0.8.

[0064] The preset threshold value corresponding to the temperature of the platen roller may be set to 80-120°C. The area on the platen roller closest to the print head has the highest temperature, and the temperature of the platen roller may be the temperature of the area on the platen roller closest to the print head. When the printer is working normally, the heating temperature of the print head is generally 80-120°C, and the platen roller rotates continuously during normal operation, so the temperature of the platen roller is lower than the temperature of the print head. If the temperature of the platen roller is too close to the heating temperature of the print head, it means that the ribbon is stuck.

[0065] In a possible implementation of the embodiment of the present disclosure, in step S11, only one working state parameter of the printer may be obtained. The working state parameter obtained may be any one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller. In step S12, when the working state parameter obtained is greater than a preset threshold value corresponding to the working state parameter, the printer is controlled to stop working. The printer is controlled by one working state parameter, and the method is simple.

[0066] In other possible implementations of the embodiments of the present disclosure, two or three working status parameters of the printer can also be obtained in step S11. In step S12, as long as at least one of the working status parameters is greater than a preset threshold value corresponding to the working status parameter, the printer is controlled to stop working. Controlling the printer through two or three working status parameters can better avoid ribbon jamming and improve reliability.

[0067] Figure 3 Schematic diagram of a control device for a printer provided by an embodiment of the present disclosure. Figure 3 As shown, the control device 100 includes a control device 10 .

[0068] The control device 10 is used to obtain the working status parameters of the printer, which include one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller. When at least one of the working status parameters is greater than a preset threshold value corresponding to the working status parameter, the printer is controlled to stop working.

[0069] The control device 10 may control the printer to stop working according to the aforementioned step S12.

[0070] The disclosed embodiment obtains the working status parameters of the printer, wherein the working status parameters include at least one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller. When at least one of the working status parameters is greater than a corresponding preset threshold value, it can be considered that the ribbon is stuck, and the printer is controlled to stop working to avoid ribbon breakage.

[0071] In a possible implementation of the disclosed embodiment, the control device 10 may be configured to control the printer's ribbon drive motor to stop rotating when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter, so as to control the printer to stop working. After the ribbon is stuck, the torque of the ribbon drive motor increases, and the tension on the ribbon increases, which may cause the ribbon to be broken by the ribbon drive motor. By controlling the ribbon drive motor to stop rotating, the ribbon can be prevented from being broken by the ribbon drive motor. At the same time, the situation where the motor is blocked and causes the motor to burn out can be avoided.

[0072] In another possible implementation of the disclosed embodiment, the control device 10 may be configured to control the print head of the printer to stop heating when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter, so as to control the printer to stop working. After the ribbon is stuck, the print head continues to heat the same position on the ribbon, resulting in an excessively high temperature at the heated position, the ribbon being burned by the print head, and the burnt residue falling inside the printer, which may affect the normal operation of the printer. The print head heating an area of ​​the ribbon for a long time may also cause the dye of the ribbon to adhere to the print head, affecting the normal operation of the print head. By controlling the print head to stop heating, the ribbon can be prevented from being burned by the print head.

[0073] In another possible implementation of the embodiment of the present disclosure, the control device 10 may be configured to control the ribbon drive motor of the printer to stop rotating and the print head of the printer to stop heating when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter. In this way, the ribbon can be prevented from being pulled apart and burned.

[0074] Optionally, the control device may further include a detector 20, the detector 20 is used to detect the working state parameters of the printer, and the control device 10 is used to obtain the working state parameters through the detector 20. The control device 10 directly obtains the working state parameters through the detector 20, which can ensure the accuracy of the working state parameters.

[0075] Exemplarily, the detector 20 may include at least one of a current detection device, a torque detection device, and a temperature detection device. The current detection device may be used to detect the current of the ribbon drive motor. The torque detection device may be used to detect the torque of the ribbon drive motor. The temperature detection device may be used to detect the temperature of the embossing roller, and the temperature detection devices may be evenly distributed on the embossing roller along the circumference of the embossing roller to detect multiple temperatures in the circumferential direction of the embossing roller, and the highest temperature among the multiple temperatures is the temperature of the embossing roller.

[0076] Optionally, the control device 10 can also be used to send out an alarm message when the working state parameter is greater than a preset threshold value corresponding to the working state parameter. In this way, when the working state parameter is greater than the corresponding preset threshold value, an alarm message can be sent out to inform the staff that the ribbon is stuck as soon as possible, so that the staff can repair the printer as soon as possible.

[0077] The alarm information may be directly issued by the control device 10, or may be indirectly issued by the control device 10 through an alarm. For example, the alarm may include an indicator light, a buzzer, or a combination thereof.

[0078] Figure 4 Schematic diagram of a control device for a printer provided by an embodiment of the present disclosure. Figure 4 As shown, the control device 10 may include a comparator 11. The comparator 11 has a first input terminal for receiving an input signal and a second input terminal for receiving a reference signal, the reference signal being the same as the input signal in a critical state, the critical state being a state when the working state parameter is equal to a preset threshold value. The comparator 11 has two input terminals and one output terminal, and the output signal of the output terminal depends on the relationship between the signals inputted by the two input terminals. Taking the signals of the two input terminals as an example, when the potential of the input signal of the first input terminal is higher than the potential of the signal inputted by the second input terminal, the output terminal of the comparator outputs a low-level signal, and when the potential of the input signal of the first input terminal is lower than the potential of the signal inputted by the second input terminal, the output terminal of the comparator outputs a high-level signal. The first input terminal of the comparator receives the input signal, and the second input terminal of the comparator 11 receives the reference signal, so that the input signal can be compared with the reference signal, and the comparator 11 can output different signals when the ribbon is stuck and when it is not stuck.

[0079] The input signal may be provided by the aforementioned detector 20. When the detector 20 detects the working state parameter of the printer, it may output a signal for reflecting the working state parameter.

[0080] Exemplarily, the reference signal can be obtained in the following manner:

[0081] The detector 20 is used to detect the ribbon drive motor 6. The detector 20 can be a current detection device (such as a current sensor) or a torque detection device (such as a torque sensor). Taking the torque detection device as an example, when it is determined that the ribbon is not stuck, the ribbon drive motor 6 is rotated to gradually pinch the ribbon so that the rotation speed of the ribbon drive motor 6 is gradually reduced. In the process of gradually pinching the ribbon, the torque of the ribbon drive motor 6 is continuously measured until the measured torque value increases to the preset threshold value of the torque, and the output signal of the torque detection device at this time is used as the reference signal. When the detector 20 is a current detection device, the current of the ribbon drive motor 6 is continuously measured in the process of gradually pinching the ribbon until the measured current value increases to the preset threshold value of the current, and the output signal of the current detection device at this time is used as the reference signal. The determination of the preset threshold can refer to the previous embodiment and is not described in detail here.

[0082] like Figure 4 As shown, the output end of the comparator 11 can be connected to the enable input end of the motor driver 5 of the ribbon drive motor 6. The output end of the comparator 11 is connected to the enable input end of the motor driver 5 of the ribbon drive motor 6. When the reference signal is greater than the input signal, the signal output by the output end of the comparator 11 can be input to the motor driver 5 as an enable signal, and the motor driver 5 can control the rotation of the ribbon drive motor 6. When the reference signal is less than the input signal, the signal output by the output end of the comparator 11 is reversed, and the motor driver 5 controls the ribbon drive motor 6 to stop rotating.

[0083] Optionally, the control device may further include a controllable switch K, which is connected between the print head 1 and the print head power supply 4, and the output end of the comparator 11 may further be connected to the control end of the controllable switch K. After the output end of the comparator 11 is connected to the control end of the controllable switch K connected between the print head 1 and the print head power supply 4, when the reference signal is greater than the input signal, the signal output by the output end of the comparator 11 can keep the controllable switch K in a closed state, and the print head power supply 4 can supply power to the print head 1, so that the print head 1 heats up. When the reference signal is less than the input signal, the signal output by the output end of the comparator 11 flips, the controllable switch K is disconnected, the print head power supply 4 stops supplying power to the print head 1, and the print head 1 stops heating up.

[0084] For example, the controllable switch K connected between the print head 1 and the print head power supply 4 may be a thyristor, which has a fast response speed and is easy to control.

[0085] The output end of the comparator 11 can also be connected to the central processor of the printer, and the central processor of the printer controls the printer to send out fault information indicating that the ribbon is stuck, for example, displayed on the display screen of the printer.

[0086] Optionally, the control device 100 may be disposed on a printed circuit board to reduce the size of the device and facilitate installation.

[0087] In another possible implementation of the embodiment of the present disclosure, the control device 10 may include an OR gate circuit and at least two comparators, and the output ends of the at least two comparators are both connected to the input ends of the OR gate circuit.

[0088] Figure 5 1 is a circuit diagram of another control device of a printer provided by an embodiment of the present disclosure. The control device includes a first comparator 111, a second comparator 112, and a third comparator 113. The first input end of the first comparator 111 is used to receive a first input signal, the second input end of the first comparator 111 is used to receive a first reference signal, the first input end of the second comparator 112 is used to receive a second input signal, the second input end of the second comparator 112 is used to receive a second reference signal, the first input end of the third comparator 113 is used to receive a third input signal, and the second input end of the third comparator 113 is used to receive a third reference signal. The first input signal is a signal for reflecting the current of the ribbon drive motor, and the first reference signal is the same as the first input signal in a critical state. The second input signal is a signal for reflecting the torque of the ribbon drive motor, and the second reference signal is the same as the second input signal in a critical state. The third input signal is a signal for reflecting the temperature of the embossing roller, and the third reference signal is the same as the third input signal in a critical state. The output end of the first comparator 111, the output end of the second comparator 112 and the output end of the third comparator 113 are all connected to the input end of the OR gate circuit 101, and the output end of the OR gate circuit 101 is connected to the control end of the controllable switch K. The output end of the OR gate circuit 101 can also be connected to the enable input end of the motor driver 5 of the ribbon drive motor. In this way, as long as at least one of the working state parameters is greater than the corresponding preset threshold value of the working state parameter, the printer can be controlled to stop working, which can improve reliability.

[0089] The first input signal may be provided by the first detector 201 , the second input signal may be provided by the second detector 202 , and the third input signal may be provided by the third detector 203 .

[0090] In another embodiment of the present disclosure, the control device may also include only two comparators. The two comparators may be Figure 5Any two of the first comparator 111, the second comparator 112 and the third comparator 113 in the embodiment.

[0091] Figure 6 The figure is a block diagram of a control device of a printer according to an exemplary embodiment.

[0092] Reference Figure 6 , the control device 700 may include a processor 702 and a memory 701 for storing instructions executable by the processor.

[0093] The processor 702 is used to execute the instructions stored in the memory 701 to complete Figure 2 All or part of the steps of the method shown. The memory 701 is configured to store various types of data to support the operation of the control device 700. Examples of such data include instructions for any application or method operating on the control device 700. The memory 701 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0094] In an exemplary embodiment, the control device 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing Figure 2 The method shown.

[0095] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 701 including instructions, and the instructions can be executed by a processor 702 of a control device 700 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0096] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided. When the instructions in the storage medium are executed by the processor of the control device, the control device is capable of executing Figure 2 The method shown.

[0097] The embodiment of the present disclosure also provides a printer, which includes the aforementioned control device.

[0098] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0099] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling a printer, It is characterized in that include: Acquire working state parameters of the printer, wherein the working state parameters include at least one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller; When at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter, it is determined that the ribbon is stuck and the printer is controlled to stop working; The preset threshold value corresponding to the torque satisfies the equation T=a*A+(1-a)*B Wherein, T is a preset threshold value corresponding to the torque, A is the torque when the ribbon drive motor is blocked, B is the torque when the ribbon drive motor is rotating normally, 0<a≤1, The preset threshold value corresponding to the current satisfies the equation I=b*C+(1-b)*D Wherein, I is a preset threshold value corresponding to the current, C is the current when the ribbon drive motor is blocked, D is the current when the ribbon drive motor is rotating normally, and 0<b≤1.

2. The control method according to claim 1, It is characterized in that The controlling the printer to stop working includes at least one of the following actions: Controlling the ribbon driving motor of the printer to stop rotating; The printing head of the printer is controlled to stop heating.

3. The control method according to claim 1, It is characterized in that Also includes: When at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter, an alarm message is issued.

4. A control device for a printer, It is characterized in that include: A control device, used for obtaining working state parameters of the printer, wherein the working state parameters include one of the current of the ribbon drive motor, the torque of the ribbon drive motor, and the temperature of the platen roller, and when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter, it is determined that the ribbon is stuck, and the printer is controlled to stop working; The preset threshold value corresponding to the torque satisfies the equation T=a*A+(1-a)*B Wherein, T is a preset threshold value corresponding to the torque, A is the torque when the ribbon drive motor is blocked, B is the torque when the ribbon drive motor is rotating normally, 0<a≤1, The preset threshold value corresponding to the current satisfies the equation I=b*C+(1-b)*D Wherein, I is a preset threshold value corresponding to the current, C is the current when the ribbon drive motor is blocked, D is the current when the ribbon drive motor is rotating normally, and 0<b≤1.

5. The control device according to claim 4, It is characterized in that The control device is configured to perform at least one of the following actions when at least one of the working state parameters is greater than a preset threshold value corresponding to the working state parameter: Controlling the ribbon driving motor of the printer to stop rotating; The printing head of the printer is controlled to stop heating.

6. The control device according to claim 4, It is characterized in that The control device includes a comparator, which has a first input terminal for receiving an input signal and a second input terminal for receiving a reference signal. The input signal is a signal for reflecting the working state parameter. The reference signal is the same as the input signal in a critical state. The critical state is a state when the working state parameter is equal to the preset threshold.

7. The control device according to claim 6, It is characterized in that The output terminal of the comparator is connected to the enable input terminal of the motor driver of the ribbon drive motor.

8. The control device according to claim 6, It is characterized in that The control device further comprises a controllable switch, wherein the controllable switch is connected between the print head and a print head power supply, and the output end of the comparator is connected to a control end of the controllable switch.

9. The control device according to claim 6, It is characterized in that The control device comprises an OR gate circuit and at least two comparators, and the output ends of at least two comparators are connected to the input ends of the OR gate circuit.

10. The control device according to claim 9, It is characterized in that The output end of the OR gate circuit is connected to the enable input end of the motor driver of the ribbon drive motor.

11. The control device according to claim 9, It is characterized in that The control device further comprises a controllable switch, wherein the controllable switch is connected between the print head and a print head power supply, and the output end of the OR gate circuit is connected to the control end of the controllable switch.

12. The control device according to claim 4, It is characterized in that The control device is also used to issue an alarm message when the working state parameter is greater than a preset threshold value corresponding to the working state parameter.

13. The control device according to claim 4, It is characterized in that The control device includes a processor, and the control device also includes a memory for storing instructions executable by the processor, wherein the memory is connected to the processor.

14. The control device according to any one of claims 4 to 13, It is characterized in that The control device further comprises a detector for detecting working state parameters of the printer, and the control device is used to obtain the working state parameters through the detector.

15. A printer, It is characterized in that It comprises a control device as claimed in any one of claims 4 to 14.

16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes at least one instruction, and when the at least one instruction is executed by a processor, the steps of the printer control method according to any one of claims 1 to 3 are executed.