Thermal transfer ribbon tightening method and device, printing equipment, storage medium and program product
By using code discs and sensors in the printing device to determine the tightening state of the carbon belt and dynamically adjust the forward length of the carbon belt, the problem of low reliability of the carbon belt tightening in the prior art is solved, and a high-reliability carbon belt tightening effect is achieved.
Patent Information
- Application Number
- CN202411954549.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, the carbon belt tightening method has the problem of low reliability. The difference in user operation results in uncertain length of the actual forward movement of the carbon belt, which can easily lead to the carbon belt breakage and unclear printing effect.
Using a printing device including a first rotating member, a second rotating member, a driving member, a code disc and a sensor, a predetermined number of driving is completed by controlling the drive member, and the light-transmitting region and a light-shielding region on the code disc are alternately entered into the detection area of the sensor to determine whether the carbon tape is tightened. If the measured area has not changed, repeat the drive until the measured area has changed to ensure the tightening of the carbon tape.
Through real-time feedback dynamically adjusting the forward length of the carbon belt, the problem of too long or too short control length is avoided, and the closed-loop control of carbon belt tightening is achieved, which improves the reliability of carbon belt tightening.
Smart Images

Figure CN119872101A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printing technology, and in particular to a carbon ribbon tightening method, device, printing equipment, storage medium and program product. Background Art
[0002] Printing devices such as line number machines usually use carbon ribbons as printing materials, and transfer the coating on the carbon ribbon to printing media such as labels and line number tubes through thermal transfer. Before using the carbon ribbon for printing, the carbon ribbon needs to be tightened in advance to avoid problems such as carbon ribbon breakage and unclear printing effects.
[0003] In the related art, the carbon ribbon is often tightened by controlling the carbon ribbon to move forward by a specified length. However, due to factors such as user operation differences, the actual length of the carbon ribbon that needs to be moved forward is not a fixed value, and a more reliable method for tightening the carbon ribbon is needed. Summary of the invention
[0004] The embodiments of the present application provide a method, device, printing device, storage medium and program product for tightening a carbon ribbon, which can improve the reliability of tightening a carbon ribbon. The above technical solution is as follows:
[0005] In the first aspect, the embodiment of the present application provides a carbon ribbon tightening method, which is applied to a printing device, wherein the printing device includes a first rotating member, a second rotating member, a driving member, a code disc and a sensor; the first rotating member is used to wind the printed part of the carbon ribbon, and the second rotating member is used to wind the unprinted part of the carbon ribbon; the driving member is connected to the first rotating member so that the carbon ribbon is wound around the first rotating member; the code disc is provided on the second rotating member and is used to rotate with the second rotating member; the code path of the code disc includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area enter the detection area of the sensor as the code disc rotates; the method includes:
[0006] When the printing task is not executed, the driving member is controlled to complete a predetermined number of drivings;
[0007] Determine whether the detected area currently entering the detection area has changed compared with the detected area recorded after the most recent predetermined number of drivings; the detected area is a light-transmitting area or a light-shielding area;
[0008] If the detected area does not change, it is determined that the carbon ribbon is not tightened, and the step of controlling the driving member to complete a predetermined number of driving steps without executing a printing task is executed again until the detected area changes.
[0009] In a possible implementation, the arc angles of each light-transmitting area and each light-shielding area on the code disk are all first angles; the predetermined number of times is calculated from the first angle and a second angle at which the code disk rotates after the driving member completes one drive.
[0010] In one possible implementation, the sensor includes a light-emitting element and a photosensitive element, which are arranged on both sides of the code channel relative to each other. The light emitted by the light-emitting element is transmitted to the photosensitive element through the light-transmitting area or is blocked by the light-shielding area; the photosensitive element outputs different signal intensity values according to the different light intensities sensed.
[0011] In a possible implementation, before determining whether the detected area currently entering the detection area is changed compared to the detected area recorded after the most recent predetermined number of drivings are completed, the method further includes:
[0012] According to the signal strength value output by the sensor, the detected area currently entering the detection area is determined.
[0013] In a possible implementation, determining the detected area currently entering the detection area according to the signal strength value output by the sensor includes:
[0014] If the signal strength value output by the sensor is greater than the first preset threshold, it is determined that the detected area currently entering the detection area is a light-transmitting area;
[0015] If the signal strength value output by the sensor is less than the second preset threshold, it is determined that the detected area currently entering the detection area is a light-shielded area.
[0016] In a possible implementation, the method further includes:
[0017] If the detected area changes, it is determined that the carbon ribbon has been tightened, and the driving member is controlled to stop driving.
[0018] In a possible implementation, when the printing task is not executed, before the driving component is controlled to complete a predetermined number of driving operations, the method further includes:
[0019] In the case where no printing task is executed, in response to the ribbon tightening instruction, the driving component is controlled to complete the first predetermined number of drivings;
[0020] The detected area that enters the detection area after the first predetermined number of driving is completed is determined.
[0021] In a possible implementation, the ribbon tightening instruction is a printing instruction;
[0022] The above method further includes:
[0023] If the detected area changes, it is determined that the carbon ribbon has been tightened and the corresponding printing task is performed.
[0024] In a second aspect, an embodiment of the present application provides a carbon ribbon tightening device, which is applied to a printing device, and the printing device includes a first rotating member, a second rotating member, a driving member, a code disc and a sensor; the first rotating member is used to wind the printed part of the carbon ribbon, and the second rotating member is used to wind the unprinted part of the carbon ribbon; the driving member is connected to the first rotating member so that the carbon ribbon is wound around the first rotating member; the code disc is provided on the second rotating member, and is used to rotate with the second rotating member; the code path of the code disc includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area enter the detection area of the sensor as the code disc rotates; the device includes:
[0025] A control module, used for controlling the driving member to complete a predetermined number of driving times when no printing task is executed;
[0026] A judgment module, used to judge whether the detected area currently entering the detection area has changed compared with the detected area recorded after the most recent predetermined number of drivings; the detected area is a light-transmitting area or a light-shielding area;
[0027] The determination module is used to determine that the carbon ribbon is not tightened if the detected area has not changed, and to control the driving member to complete the predetermined number of driving steps again without executing the printing task until the detected area has changed.
[0028] In a third aspect, an embodiment of the present application provides a printing device, comprising: a first rotating member, a second rotating member, a driving member, a code disc and a sensor; the first rotating member is used to wind up the printed portion of the carbon ribbon, and the second rotating member is used to wind up the unprinted portion of the carbon ribbon; the driving member is transmission-connected to the first rotating member so that the carbon ribbon is wound around the first rotating member; the code disc is provided on the second rotating member and is used to rotate with the second rotating member; the code path of the code disc comprises a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area enter the detection area of the sensor as the code disc rotates;
[0029] The printing device also includes: a processor and a memory; wherein the memory stores a computer program, and when the processor executes the computer program, the method steps provided in the first aspect of the embodiment of the present application are implemented.
[0030] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores multiple instructions, and the above instructions are suitable for being loaded by a processor and executing the method steps provided in the first aspect of the embodiment of the present application.
[0031] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program; when the above-mentioned computer program is executed by a processor, the method steps provided in the first aspect of the embodiment of the present application are implemented.
[0032] The above-mentioned carbon ribbon tightening method, device, printing equipment, storage medium and program product, wherein the method is applied to a printing device including a first rotating member, a second rotating member, a driving member, a code disc and a sensor, by arranging a code disc including a light-transmitting area and a light-shielding area on the second rotating member, so that the code disc can rotate with the second rotating member, and the light-transmitting area and the light-shielding area on the code disc can alternately enter the detection area of the sensor as the code disc rotates, so that when the printing task is not executed, by controlling the driving member to complete a predetermined number of drives, and judging whether the measured area currently entering the detection area has changed compared with the measured area recorded after the most recent predetermined number of drives, it can be judged whether the carbon ribbon is tightened, if the measured area has not changed, it is determined that the carbon ribbon is not tightened, and the driving member is controlled to complete a predetermined number of drives again until the measured area entering the sensor detection area changes. The whole process can dynamically adjust the length of the carbon ribbon forward movement according to the real-time feedback of the sensor, avoiding controlling the length of the carbon ribbon forward movement to be too long or too short, thereby realizing the closed-loop control of the carbon ribbon tightening and improving the reliability of the carbon ribbon tightening. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A schematic diagram of the structure of a printing device when a carbon ribbon is not tightened is provided as an exemplary embodiment of the present application;
[0035] Figure 2 A schematic diagram of the structure of a printing device when a carbon ribbon has been tightened is provided as an exemplary embodiment of the present application;
[0036] Figure 3 A schematic flow chart of a carbon ribbon tightening method provided by an exemplary embodiment of the present application;
[0037] Figure 4 A schematic flow chart of another carbon ribbon tightening method provided by an exemplary embodiment of the present application;
[0038] Figure 5 A schematic flow chart of another carbon ribbon tightening method provided by an exemplary embodiment of the present application;
[0039] Figure 6 A structural schematic diagram of a carbon ribbon tightening device provided by an exemplary embodiment of the present application;
[0040] Figure 7A schematic structural diagram of a printing device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "plurality" refers to two or more. "And" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
[0043] A structural schematic diagram of a printing device provided by an exemplary embodiment of the present application is as follows Figure 1-Figure 2 As shown. The printing device includes a first rotating member 11, a second rotating member 12, a driving member (not shown in the figure), a code disc 13 and a sensor 14. The first rotating member 11 is used to wind up the printed part of the carbon ribbon 15, and the second rotating member 12 is used to wind up the unprinted part of the carbon ribbon 15. The driving member is connected to the first rotating member 11 in a transmission manner so that the carbon ribbon 15 is wound around the first rotating member 11. The code disc 13 is arranged on the second rotating member 12 and is used to rotate with the second rotating member 12. The code path of the code disc 13 includes a light-transmitting area 16 and a light-shielding area 17, and the light-transmitting area 16 and the light-shielding area 17 enter the detection area of the sensor as the code disc 13 rotates. In some possible embodiments, there are a plurality of light-transmitting areas 16 and a plurality of light-shielding areas 17, and the light-transmitting areas 16 and the light-shielding areas 17 are arranged in sequence (that is, arranged alternately), and the light-transmitting areas 16 and the light-shielding areas 17 can alternately enter the detection area of the sensor 14 as the code disc 13 rotates.
[0044] Among them, the first rotating member 11 includes a carbon ribbon driving shaft and a carbon ribbon driving wheel, and the second rotating member 12 includes a carbon ribbon driven shaft and a carbon ribbon driven wheel. The code disk 13 can be sleeved on the second rotating member 12, and there is no relative sliding between the code disk 13 and the second rotating member 12. The driving member can be, but is not limited to, a stepper motor installed inside the printing device, and the rotation speed and direction of the driving member can be adjusted. The sensor 14 can be, but is not limited to, a photoelectric sensor including a light-emitting element and a photosensitive element. The light-emitting element and the photosensitive element are relatively arranged on both sides of the code channel. The light emitted by the light-emitting element is transmitted to the photosensitive element through the light-transmitting area 16 or blocked by the light-shielding area 17. The photosensitive element can output different signal intensity values according to the different light intensities sensed. The arc angles of each light-transmitting area 16 and each light-shielding area 17 on the code disk 13 are equal.
[0045] When the printing device performs a printing task, the carbon ribbon 15 passes through the printing area between the first rotating member 11 and the second rotating member 12, and printing is performed in the printing area by thermal transfer. When the printing device does not perform a printing task, the printed part of the carbon ribbon 15 is wound around the first rotating member 11 under the drive of the driving member, so that the printing device can tighten the carbon ribbon in combination with the detection result of the sensor 14.
[0046] The following will be combined Figure 1-Figure 2 To illustrate the working principle of the above printing device to achieve ribbon tightening:
[0047] When the driving member drives the first rotating member 11 to rotate along the first direction 18 through the transmission mechanism, the first rotating member 11 drives the carbon ribbon 15 to move along the second direction 19 so that the printed portion of the carbon ribbon 15 is wound around the first rotating member 11 .
[0048] See also Figure 1 When the carbon ribbon 15 is not tightened, after the carbon ribbon 15 moves along the second direction 19, the second rotating member 12 remains stationary, and the code disk 13 arranged on the second rotating member 12 also remains stationary. At this time, the sensor 14 cannot detect the alternating changes of the light-transmitting area 16 and the light-shielding area 17.
[0049] See also Figure 2 When the carbon ribbon 15 has been tightened, after the carbon ribbon 15 moves along the second direction 19, the second rotating member 12 rotates, and the code disk 13 provided on the second rotating member 12 rotates along with the second rotating member 12. The light-transmitting area 16 and the light-shielding area 17 alternately enter the detection area of the sensor 14 as the code disk 13 rotates. At this time, the sensor 14 can detect the alternating changes of the light-transmitting area 16 and the light-shielding area 17.
[0050] See also Figure 1-Figure 2 The workflow of the above printing device to achieve ribbon tightening is as follows:
[0051] In the case of not executing a printing task, the printing device controls the driving member to complete a predetermined number of drivings, and determines whether the detected area (light-transmitting area 16 or light-shielding area 17) currently entering the detection area of the sensor 14 has changed compared with the detected area recorded after the driving member was controlled to complete the predetermined number of drivings the last time. If the detected area has not changed, it is determined that the carbon ribbon 15 is not tightened, and the step of controlling the driving member to complete the predetermined number of drivings in the case of not executing a printing task is performed again until the detected area has changed.
[0052] The predetermined number of times is calculated by the arc angle of each light-transmitting area 16 and each light-shielding area 17 on the code disc 13, and the angle at which the code disc rotates after the driver completes one drive when the ribbon 15 is tightened. Assuming that the arc angle of each light-transmitting area 16 and each light-shielding area 17 on the code disc 13 is the first angle, and the angle at which the code disc 13 rotates after the driver completes one drive is the second angle, in order to ensure that the sensor 14 can detect the change of the code track area on the code disc 13 in time after the driver completes the predetermined number of drives, when the ratio of the first angle to the second angle is an integer, the predetermined number of times is the result of adding one to the ratio; when the ratio of the first angle to the second angle is a decimal, the predetermined number of times is the integer value of the ratio rounded up.
[0053] It is worth mentioning that Figure 1 and Figure 2 The printing device structure shown is only used to illustrate the technical solution of the present application, but not to limit it. Figure 1 and Figure 2 The first rotating member and the second rotating member are shown to be arranged opposite to each other, but in actual application, the first rotating member and the second rotating member only need to be in a position that can effectively guide the movement of the carbon ribbon. In addition, the direction of the driving member, the first rotating member and the second rotating member, and the moving direction of the carbon ribbon can also be adjusted according to actual needs. The printing device can also include other components such as a printing glue roller, a conveying channel for the printing medium, and a print head, which are not limited in this application.
[0054] In one embodiment, Figure 3 As shown, a ribbon tightening method is provided, which can be applied to Figure 1-Figure 2 In the printing device shown, the method comprises the following steps:
[0055] S301: When a printing task is not executed, controlling the driving component to complete a predetermined number of drivings.
[0056] The driving member may be, but is not limited to, a stepper motor installed inside the printing device, and the speed and direction of the driving member may be adjusted. The predetermined number of times is calculated based on the arc angles of each light-transmitting area and each light-shielding area on the code disc, and the angle of rotation of the code disc after the driving member completes one drive in the state of ribbon tightening.
[0057] For example, see Figure 1 or Figure 2 , assuming that the arc angle of each light-transmitting area 16 and each light-shielding area 17 on the code disk 13 is the first angle, and the angle at which the code disk 13 rotates after the driving member completes one drive is the second angle. In order to ensure that the sensor 14 can detect the change of the code track area on the code disk 13 in time after the driving member completes the predetermined number of drives, when the ratio of the first angle to the second angle is an integer, the predetermined number of times is the result of adding one to the ratio; when the ratio of the first angle to the second angle is a decimal, the predetermined number of times is the integer value of the ratio rounded up. For example, assuming that the first angle is 45 degrees and the second angle is 15 degrees, the ratio of the first angle to the second angle is 3, and the predetermined number of times is 4. Assuming that the first angle is 45 degrees and the second angle is 10 degrees, the ratio of the first angle to the second angle is 4.5, and the predetermined number of times is 5.
[0058] In this embodiment, the predetermined number of times is calculated based on the arc angles of each light-transmitting area and each light-shielding area on the code disc, and the angle of rotation of the code disc after the driving part completes one drive in the carbon ribbon tightening state, and when no printing task is performed, the driving part is controlled to complete the predetermined number of drives. This can ensure that the sensor can detect changes in the code track area on the code disc in a timely manner, so that the printing device can achieve reliable carbon ribbon tightening based on the detection results of the sensor.
[0059] S302: Determine whether the detected area currently entering the detection area has changed compared with the detected area recorded after the driving element was most recently controlled to complete a predetermined number of drivings; if so, end; if not, execute S303.
[0060] The measured area is a light-transmitting area or a light-shielding area.
[0061] For example, see Figure 1 or Figure 2 After each control drive completes a predetermined number of drives, the printing device will record the measured area (the light-transmitting area 16 or the light-shielding area 17 on the code disk 13) that currently enters the detection area of the sensor 14, and determine whether the measured area has changed compared to the measured area recorded after the most recent control drive completes a predetermined number of drives, thereby determining whether the carbon ribbon is tightened.
[0062] It can be understood that if the measured area changes, it means that the code disk 13 has started to rotate driven by the carbon ribbon 15, and it can be determined that the carbon ribbon 15 is tightened; if the measured area does not change, it means that the code disk 13 has not started to rotate, and it can be determined that the carbon ribbon 15 is not tightened.
[0063] In this embodiment, the printing device determines whether the code disk starts to rotate driven by the carbon ribbon by judging whether the measured area currently entering the detection area has changed compared to the measured area recorded after the most recent control drive component completed a predetermined number of drives, and can then effectively determine whether the carbon ribbon is tightened, thereby improving the reliability of carbon ribbon tightening.
[0064] S303: Determine that the carbon ribbon is not tightened, and execute S301 again until the detected area changes.
[0065] For example, see Figure 1 If the measured area currently entering the detection area has not changed compared with the measured area recorded after the driver was most recently controlled to complete the predetermined number of drives, it means that the code disk 13 has not started to rotate, and it can be determined that the carbon ribbon 15 is not tightened. The printing device again executes the step of controlling the driver to complete the predetermined number of drives without executing the printing task, and stops when the measured area entering the detection area is changed compared with the measured area recorded after the driver was most recently controlled to complete the predetermined number of drives.
[0066] In this embodiment, the printing device determines that the carbon ribbon is not tightened when no change occurs in the measured area, and again executes the step of controlling the driving component to complete a predetermined number of driving steps without executing the printing task, until the measured area changes and stops. The forward length of the carbon ribbon can be dynamically adjusted according to the real-time feedback from the sensor, avoiding controlling the forward length of the carbon ribbon to be too long or too short, thereby realizing closed-loop control of the tightening of the carbon ribbon and improving the reliability of the tightening of the carbon ribbon.
[0067] The above-mentioned carbon ribbon tightening method is applied to a printing device including a first rotating member, a second rotating member, a driving member, a code disc and a sensor. The first rotating member is used to wind up the printed part of the carbon ribbon, and the second rotating member is used to wind up the unprinted part of the carbon ribbon; the driving member is connected to the first rotating member so that the carbon ribbon is wound around the first rotating member; the code disc is arranged on the second rotating member and is used to rotate with the second rotating member; the code path of the code disc includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area alternately enter the detection area of the sensor as the code disc rotates. When the printing device is not executing a printing task, by controlling the driving part to complete a predetermined number of drivings, it can ensure that the sensor can detect the change of the code track area on the code disk in time; by judging whether the measured area (translucent area or shading area on the code disk) currently entering the detection area has changed compared with the measured area recorded after the driving part was controlled to complete the predetermined number of drivings the most recently, it can effectively determine whether the carbon ribbon is tightened; by determining that the carbon ribbon is not tightened when the measured area has not changed, and again executing the step of controlling the driving part to complete the predetermined number of drivings when the printing task is not executed, until the measured area changes, the forward length of the carbon ribbon can be dynamically adjusted according to the real-time detection result of the sensor, avoiding controlling the forward length of the carbon ribbon to be too long or too short, thereby realizing closed-loop control of the tightening of the carbon ribbon. The above scheme can improve the reliability of the tightening of the carbon ribbon.
[0068] In one embodiment, Figure 4 As shown, another method of ribbon tightening is provided, which can be applied to Figure 1-Figure 2 In the printing device shown, the method comprises the following steps:
[0069] S401: When a printing task is not being executed, in response to a ribbon tightening instruction, the driving component is controlled to complete the first predetermined number of driving times.
[0070] The ribbon tightening instruction can be a control instruction issued by the user through an application program supporting the printing device on a mobile terminal such as a mobile phone, or a control instruction issued by the user directly by operating the printing device. The driving member can be, but is not limited to, a stepper motor installed inside the printing device, and the speed and direction of the driving member can be adjusted. The predetermined number of times is calculated by the arc angle of each light-transmitting area and each light-shielding area on the code disk, and the angle of rotation of the code disk after the driving member completes one drive in the ribbon tightening state.
[0071] Optionally, when the printing device is not executing a printing task, the user sends a ribbon tightening instruction to the printing device through an application program on the mobile phone that is compatible with the printing device, so as to control the printing device to execute the ribbon tightening process. After receiving the ribbon tightening instruction, the printing device responds to the ribbon tightening instruction and controls the driving component to complete the first predetermined number of drivings.
[0072] In this embodiment, when the printing device is not executing a printing task, it can automatically tighten the ribbon by responding to the ribbon tightening instruction and controlling the driving component to complete the first predetermined number of drives, thereby avoiding problems such as ribbon breakage and unclear printing effects during the printing process, thereby improving the degree of automation of the printing device and the user experience.
[0073] S402: Determine the detected area that enters the detection area after completing the first predetermined number of driving times.
[0074] It can be understood that after the printing device controls the driving member to complete the first predetermined number of drives, it records the detected area entering the detection area, so that after the next time the driving member is controlled to complete the predetermined number of drives, it can determine whether the detected area has changed based on the recorded detected area.
[0075] Optionally, the printing device determines the measured area that enters the sensor detection area after the driver completes the first predetermined number of drives based on the signal strength value output by the sensor. When the signal output by the sensor is an analog signal, the printing device can determine the measured area that enters the detection area after the driver completes the first predetermined number of drives based on the signal strength value output by the sensor, the first preset threshold value, and the second preset threshold value. Specifically, if the signal strength value output by the sensor is greater than the first preset threshold value, the measured area currently entering the detection area is determined to be a light-transmitting area; if the signal strength value output by the sensor is less than the second preset threshold value, the measured area currently entering the detection area is determined to be a light-shielding area.
[0076] In this embodiment, after the printing device controls the driving component to complete the first predetermined number of drives, it determines the detected area entering the detection area according to the signal strength value output by the sensor, and can promptly determine whether the carbon ribbon is tightened based on the real-time detection results of the sensor, thereby improving the timeliness of tightening the carbon ribbon.
[0077] S403: Control the driving member to complete a predetermined number of drivings.
[0078] Optionally, when the printing device is not executing a printing task, after controlling the driving member to complete the first predetermined number of drives, the printing device continues to control the driving member to complete the predetermined number of drives, so as to determine whether the measured area currently entering the detection area is changed compared with the measured area recorded after the driving member was most recently controlled to complete the predetermined number of drives, thereby determining whether the carbon ribbon is tightened.
[0079] S404: Determine the detected area currently entering the detection area according to the signal strength value output by the sensor.
[0080] For example, see Figure 1 or Figure 2The sensor 14 may include a light emitting element and a photosensitive element, which are arranged on both sides of the code track on the code disk 13. The light emitted by the light emitting element is transmitted to the photosensitive element through the light-transmitting area 16 or blocked by the light-shielding area 17. The photosensitive element can output different signal intensity values according to the different light intensities sensed. It can be understood that the signal intensity value output by the sensor can be either an analog signal intensity value output by the photosensitive element or a digital signal intensity value converted by the analog-to-digital converter based on the analog signal intensity value.
[0081] Optionally, the printing device determines the measured area (light-transmitting area or light-shielding area on the code disk) currently entering the sensor detection area based on the analog signal intensity value output by the sensor, so as to determine whether the measured area has changed compared with the measured area recorded after the most recent control drive component completed a predetermined number of drives, thereby determining whether the carbon ribbon is tightened.
[0082] In this embodiment, the printing device determines the detected area currently entering the detection area based on the signal strength value output by the sensor, and can determine whether the carbon ribbon is tightened based on the real-time detection result of the sensor, thereby improving the accuracy of carbon ribbon tightening.
[0083] In one embodiment, the measured area currently entering the detection area is determined based on the signal strength value output by the sensor, including: if the signal strength value output by the sensor is greater than a first preset threshold, the measured area currently entering the detection area is determined to be a light-transmitting area; if the signal strength value output by the sensor is less than a second preset threshold, the measured area currently entering the detection area is determined to be a light-shielding area.
[0084] The first preset threshold is greater than the second preset threshold, and both the first preset threshold and the second preset threshold are thresholds set by pre-testing. The first preset threshold can be determined by the minimum value of the signal strength values output by the sensor when each light-transmitting area on the code disk enters the detection area of the sensor. The second preset threshold can be determined by the maximum value of the signal strength values output by the sensor when each light-transmitting area on the code disk enters the detection area of the sensor.
[0085] Optionally, when the signal strength value output by the sensor is an analog signal strength value, the printing device determines the detected area currently entering the detection area based on the signal strength value output by the sensor, the first preset threshold, and the second preset threshold. Specifically, if the signal strength value output by the sensor is greater than the first preset threshold, it means that the light sensed by the photosensitive element in the sensor is relatively strong, and the current detected area is determined to be a light-transmitting area; if the signal strength value output by the sensor is less than the second preset threshold, it means that the light sensed by the photosensitive element in the sensor is relatively weak, and the current detected area is determined to be a light-shielding area.
[0086] In this embodiment, the signal strength value output by the sensor, as well as the pre-set first preset threshold and second preset threshold are combined to determine whether the detected area currently entering the sensor detection area is a light-transmitting area or a light-shielding area. This allows for more accurate determination of whether the carbon ribbon is tightened based on the real-time detection results of the sensor, thereby improving the accuracy of carbon ribbon tightening.
[0087] S405: Determine whether the detected area currently entering the detection area has changed compared to the detected area recorded after the driving element was controlled to complete the predetermined number of driving times. If yes, execute S406; if no, execute S407.
[0088] For example, see Figure 1 or Figure 2 After each control drive completes a predetermined number of drives, the printing device will record the measured area (the light-transmitting area 16 or the light-shielding area 17 on the code disk 13) that currently enters the detection area of the sensor 14, and determine whether the measured area has changed compared with the measured area recorded after the most recent control drive completes a predetermined number of drives, thereby determining whether the carbon ribbon is tightened.
[0089] It can be understood that if the measured area changes, it means that the code disk 13 has started to rotate driven by the carbon ribbon 15, and it can be determined that the carbon ribbon 15 is tightened; if the measured area does not change, it means that the code disk 13 has not started to rotate, and it can be determined that the carbon ribbon 15 is not tightened.
[0090] In this embodiment, by judging whether the measured area currently entering the detection area has changed compared with the measured area recorded after the most recent control driving component completed a predetermined number of drives, it is possible to judge whether the code disk starts to rotate driven by the carbon ribbon, and then effectively determine whether the carbon ribbon is tightened, thereby improving the accuracy of carbon ribbon tightening.
[0091] S406: Determine that the carbon ribbon has been tightened, and control the driving member to stop driving.
[0092] Optionally, when the detected area currently entering the detection area changes compared to the detected area recorded after the most recent control drive element completed a predetermined number of drives, the printing device determines that the carbon ribbon has been tightened, and controls the drive element to stop driving to end the carbon ribbon tightening process.
[0093] For example, see Figure 2 If the tested area currently entering the detection area changes compared with the tested area recorded after the most recent control drive component completed the predetermined number of drives, it means that the code disk 13 has started to rotate driven by the carbon ribbon 15, and then it can be determined that the carbon ribbon 15 has been tightened, and the printing device controls the drive component to stop driving, thereby ending the carbon ribbon tightening process.
[0094] In this embodiment, by immediately controlling the driving member to stop driving after determining that the carbon ribbon has been tightened, unnecessary waste caused by continued movement of the carbon ribbon can be effectively prevented, thereby effectively saving the carbon ribbon while improving the accuracy of carbon ribbon tightening.
[0095] S407: Determine that the carbon ribbon is not tightened, and execute S403 again until the detected area changes.
[0096] Optionally, when the measured area currently entering the detection area has not changed compared to the measured area recorded after the most recent control of the driving member to complete a predetermined number of drives, the printing device determines that the carbon ribbon is not tightened, and again executes the step of controlling the driving member to complete a predetermined number of drives without performing a printing task until the measured area changes.
[0097] For example, see Figure 1 If the measured area currently entering the detection area has not changed compared with the measured area recorded after the driver was most recently controlled to complete the predetermined number of drives, it means that the code disk 13 has not started to rotate, and it can be determined that the carbon ribbon 15 is not tightened. The printing device again executes the step of controlling the driver to complete the predetermined number of drives until the measured area entering the detection area is changed compared with the measured area recorded after the driver was most recently controlled to complete the predetermined number of drives, and then stops controlling the driver to complete the predetermined number of drives.
[0098] In the present embodiment, by determining that the carbon ribbon is not tightened when no change occurs in the measured area, and executing the step of controlling the driving component to complete a predetermined number of driving steps again until the measured area changes and stopping, the forward length of the carbon ribbon can be dynamically adjusted according to the real-time feedback of the sensor, thereby avoiding controlling the forward length of the carbon ribbon to be too long or too short, thereby realizing closed-loop control of the tightening of the carbon ribbon and improving the reliability of the tightening of the carbon ribbon.
[0099] In the above-mentioned carbon ribbon tightening method, when the printing device is not executing a printing task, the printing device controls the driving member to complete the first predetermined number of drives in response to the carbon ribbon tightening instruction, and determines the detected area that enters the detection area after the driving member completes the first predetermined number of drives. This not only improves the automation level of the printing device and the user experience, but also can more accurately determine whether the carbon ribbon is tightened based on the real-time detection results of the sensor, thereby improving the timeliness of the carbon ribbon tightening; by continuing to control the driving member to complete the predetermined number of drives after controlling the driving member to complete the first predetermined number of drives, and determining the detected area that currently enters the detection area according to the signal strength value output by the sensor, it can more accurately determine whether the carbon ribbon is tightened based on the real-time detection results of the sensor, thereby improving The accuracy of the carbon ribbon tightening is improved; by judging whether the measured area currently entering the detection area has changed compared with the measured area recorded after the most recent control drive element completed the predetermined number of driving, if the measured area has changed, it is determined that the carbon ribbon has been tightened, and the drive element is immediately controlled to stop driving, which can effectively prevent unnecessary waste caused by the continued movement of the carbon ribbon and effectively save the carbon ribbon; by determining that the carbon ribbon is not tightened when the measured area has not changed, and executing the step of controlling the drive element to complete the predetermined number of driving again until the measured area changes and stops, the forward length of the carbon ribbon can be dynamically adjusted according to the real-time feedback of the sensor, avoiding the control of the forward length of the carbon ribbon being too long or too short, thereby realizing closed-loop control of the carbon ribbon tightening. The above scheme can improve the timeliness and accuracy of the carbon ribbon tightening, and can effectively avoid the waste of the carbon ribbon, thereby realizing reliable carbon ribbon tightening.
[0100] In one embodiment, Figure 5 As shown, another method of ribbon tightening is provided, which can be applied to Figure 1-Figure 2 In the printing device shown, the method comprises the following steps:
[0101] S501: When a printing task is not being executed, in response to a ribbon tightening instruction, controlling the driving component to complete the first predetermined number of driving times; the ribbon tightening instruction is a printing instruction.
[0102] It can be understood that the printing instruction contains the printing task information specified by the user. The printing instruction can be a control instruction issued by the user through an application program supporting the printing device on a mobile terminal such as a mobile phone, or a control instruction issued by the user directly by operating the printing device. The driving member can be, but is not limited to, a stepper motor installed inside the printing device, and the speed and direction of the driving member can be adjusted. The predetermined number of times is calculated by the arc angle of each light-transmitting area and each light-shielding area on the code disc, and the angle of rotation of the code disc after the driving member completes one drive when the carbon ribbon is tightened.
[0103] Optionally, when the printing device does not execute the printing task, the user sends a printing instruction to the printing device through an application program on the mobile phone that is compatible with the printing device, thereby controlling the printing device to execute the corresponding printing task according to the printing task information contained in the printing instruction after executing the carbon ribbon tightening process. After receiving the printing instruction, the printing device controls the driving component to complete the first predetermined number of driving in response to the printing instruction.
[0104] In this embodiment, when the printing device is not executing a printing task, it can control the driving component to complete the first predetermined number of drives in response to a printing instruction, and can automatically tighten the carbon ribbon before the printing device uses the carbon ribbon for printing without the user having to send a carbon ribbon tightening instruction to the printing device, thereby improving the automation level of the printing device and the user experience.
[0105] S502: Determine the detected area that enters the detection area after completing the first predetermined number of driving times.
[0106] It can be understood that after the printing device controls the driving member to complete the first predetermined number of drives, it records the detected area entering the detection area, so that after the next time the driving member is controlled to complete the predetermined number of drives, it can determine whether the detected area has changed based on the recorded detected area.
[0107] Optionally, the printing device determines the detected area that enters the sensor detection area after the driver completes the first predetermined number of driving according to the signal strength value output by the sensor. When the signal output by the sensor is an analog signal, the printing device can determine the detected area that enters the detection area after the driver completes the first predetermined number of driving according to the signal strength value output by the sensor, the first preset threshold value, and the second preset threshold value. For details, please refer to S504 below, which will not be repeated here.
[0108] In this embodiment, after the printing device controls the driving component to complete the first predetermined number of drives, it determines the detected area entering the detection area according to the signal strength value output by the sensor, and can promptly determine whether the carbon ribbon is tightened based on the real-time detection results of the sensor, thereby improving the timeliness of tightening the carbon ribbon.
[0109] S503: Control the driving component to complete a predetermined number of drivings.
[0110] Optionally, when the printing device is not executing a printing task, after controlling the driving member to complete the first predetermined number of drives, the printing device continues to control the driving member to complete the predetermined number of drives, so as to determine whether the measured area currently entering the detection area is changed compared with the measured area recorded after the printing device last controlled the driving member to complete the predetermined number of drives, thereby determining whether the carbon ribbon is tightened.
[0111] S504: Determine the detected area currently entering the detection area according to the signal strength value output by the sensor.
[0112] For example, see Figure 1 or Figure 2 The sensor 14 may include a light emitting element and a photosensitive element, which are arranged on both sides of the code track on the code disk 13. The light emitted by the light emitting element is transmitted to the photosensitive element through the light-transmitting area 16 or blocked by the light-shielding area 17. The photosensitive element can output different signal intensity values according to the different light intensities sensed. It can be understood that the signal intensity value output by the sensor can be either an analog signal intensity value output by the photosensitive element or a digital signal intensity value converted by the analog-to-digital converter based on the analog signal intensity value.
[0113] Optionally, the printing device determines the measured area (translucent area or light-shielding area on the code disk) currently entering the sensor detection area based on the analog signal strength value output by the sensor, so as to determine whether the measured area has changed compared with the measured area recorded after the printing device last controlled the driving member to complete a predetermined number of drivings, thereby determining whether the carbon ribbon is tightened. Specifically, if the signal strength value output by the sensor is greater than the first preset threshold value, the measured area currently entering the detection area is determined to be a light-transmitting area; if the signal strength value output by the sensor is less than the second preset threshold value, the measured area currently entering the detection area is determined to be a light-shielding area.
[0114] The first preset threshold is greater than the second preset threshold, and both the first preset threshold and the second preset threshold are thresholds set by pre-testing. The first preset threshold can be determined by the minimum value of the signal strength values output by the sensor when each light-transmitting area on the code disk enters the detection area of the sensor. The second preset threshold can be determined by the maximum value of the signal strength values output by the sensor when each light-transmitting area on the code disk enters the detection area of the sensor.
[0115] In this embodiment, the signal strength value output by the sensor, as well as the pre-set first preset threshold and second preset threshold are combined to determine whether the detected area currently entering the sensor detection area is a light-transmitting area or a light-shielding area. This allows for more accurate determination of whether the carbon ribbon is tightened based on the real-time detection results of the sensor, thereby improving the accuracy of carbon ribbon tightening.
[0116] S505: Determine whether the detected area currently entering the detection area has changed compared to the detected area recorded after the printing device last controlled the driving member to complete the predetermined number of drivings. If yes, execute S506; if no, execute S507.
[0117] For example, see Figure 1 or Figure 2Each time the printing device controls the driving element to complete a predetermined number of drivings, the printing device will record the measured area (the light-transmitting area 16 or the light-shielding area 17 on the code disk 13) that currently enters the detection area of the sensor 14, and determine whether the measured area has changed compared with the measured area recorded after the printing device last controlled the driving element to complete a predetermined number of drivings, thereby determining whether the carbon ribbon is tightened.
[0118] It can be understood that if the measured area changes, it means that the code disk 13 has started to rotate driven by the carbon ribbon 15, and it can be determined that the carbon ribbon 15 is tightened; if the measured area does not change, it means that the code disk 13 has not started to rotate, and it can be determined that the carbon ribbon 15 is not tightened.
[0119] In this embodiment, by judging whether the measured area currently entering the detection area has changed compared with the measured area recorded after the printing device last controlled the driving member to complete a predetermined number of drives, it can be judged whether the code disk starts to rotate driven by the carbon ribbon, and then it can be effectively determined whether the carbon ribbon is tightened, thereby improving the accuracy of carbon ribbon tightening.
[0120] S506: Determine that the carbon ribbon has been tightened, and execute a corresponding printing task.
[0121] Optionally, when the detected area currently entering the detection area changes compared to the detected area recorded after the most recent predetermined number of drives, the printing device determines that the carbon ribbon has been tightened and executes a corresponding printing task according to the printing task information contained in the printing instruction.
[0122] For example, see Figure 2 If the tested area currently entering the detection area changes compared with the tested area recorded after the printing device last controlled the driving member to complete the predetermined number of drives, it means that the code disk 13 has started to rotate driven by the carbon ribbon 15, and then it can be determined that the carbon ribbon 15 has been tightened. At this time, the printing device executes the corresponding printing task according to the printing task information contained in the printing instruction.
[0123] In this embodiment, after the printing device determines that the carbon ribbon has been tightened, it automatically ends the carbon ribbon tightening process and executes the corresponding printing task according to the printing task information contained in the printing instruction. This can effectively prevent unnecessary waste caused by the continued movement of the carbon ribbon, improve the accuracy of carbon ribbon tightening, effectively save carbon ribbon, and also improve the level of automation of printing control.
[0124] S507: Determine that the carbon ribbon is not tightened, and execute S503 again until the detected area changes.
[0125] Optionally, when the measured area currently entering the detection area has not changed compared to the measured area recorded after the most recent completion of a predetermined number of drives, the printing device determines that the carbon ribbon is not tightened, and again executes the step of controlling the drive member to complete a predetermined number of drives without performing a printing task until the measured area changes.
[0126] For example, see Figure 1 If the measured area currently entering the detection area has not changed compared with the measured area recorded after the last scheduled number of drives, it means that the code disk 13 has not started to rotate, and it can be determined that the carbon ribbon 15 is not tightened. The printing device again executes the step of controlling the drive component to complete the predetermined number of drives until the measured area entering the detection area changes compared with the measured area recorded after the last scheduled number of drives. Then, the control of the drive component to complete the predetermined number of drives is stopped.
[0127] In the present embodiment, by determining that the carbon ribbon is not tightened when no change occurs in the measured area, and executing the step of controlling the driving component to complete a predetermined number of driving steps again until the measured area changes and stopping, the forward length of the carbon ribbon can be dynamically adjusted according to the real-time feedback of the sensor, thereby avoiding controlling the forward length of the carbon ribbon to be too long or too short, thereby realizing closed-loop control of the tightening of the carbon ribbon and improving the reliability of the tightening of the carbon ribbon.
[0128] In the above-mentioned carbon ribbon tightening method, when the printing device is not executing a printing task, the printing device controls the driving component to complete the first predetermined number of driving times in response to a printing instruction, and determines the detected area that enters the detection area after completing the first predetermined number of driving times. Without the need for the user to send a carbon ribbon tightening instruction to the printing device, the carbon ribbon tightening process can be automatically started before executing the printing task, thereby improving the automation level of the printing device and the user experience; after controlling the driving component to complete the first predetermined number of driving times, the driving component continues to be controlled to complete the predetermined number of driving times, and the detected area that currently enters the detection area is determined according to the signal strength value output by the sensor, whether the carbon ribbon is tightened can be more accurately determined based on the real-time detection result of the sensor, thereby improving the accuracy of carbon ribbon tightening; It is determined whether the detected area currently entering the detection area has changed compared with the detected area recorded after the most recent control drive unit completed the predetermined number of drivings. If the detected area has changed, it is determined that the carbon ribbon has been tightened, and the corresponding printing task is executed according to the printing task information contained in the printing instruction, which can effectively prevent unnecessary waste caused by continuing to execute the carbon ribbon tightening process, and effectively save the carbon ribbon; by determining that the carbon ribbon has not been tightened when the detected area has not changed, and executing the step of controlling the drive unit to complete the predetermined number of driving again until the detected area changes and stops, it is possible to dynamically adjust the forward length of the carbon ribbon according to the real-time feedback of the sensor, avoiding the control of the forward length of the carbon ribbon being too long or too short, thereby realizing closed-loop control of the carbon ribbon tightening. In the above scheme, the printing device can not only automatically start the carbon ribbon tightening process before executing the printing task without the user sending an additional carbon ribbon tightening instruction, but also immediately end the carbon ribbon tightening process after detecting the carbon ribbon tightening, thereby realizing reliable carbon ribbon tightening.
[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0130] Based on the inventive concept of the above-mentioned carbon ribbon tightening method, Figure 6As shown, the embodiment of the present application also provides a carbon ribbon tightening device 600 for implementing the above-mentioned carbon ribbon tightening method. The carbon ribbon tightening device 600 is applied to a printing device, and the printing device includes a first rotating member, a second rotating member, a driving member, a code disc and a sensor; the first rotating member is used to wind up the printed part of the carbon ribbon, and the second rotating member is used to wind up the unprinted part of the carbon ribbon; the driving member is connected to the first rotating member so that the carbon ribbon is wound to the first rotating member; the code disc is arranged on the second rotating member, and is used to rotate with the second rotating member; the code path of the code disc includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area alternately enter the detection area of the sensor as the code disc rotates.
[0131] The carbon ribbon tightening device 600 comprises:
[0132] The control module 601 is used to control the driving member to complete a predetermined number of driving times when no printing task is executed;
[0133] The judging module 602 is used to judge whether the detected area currently entering the detection area has changed compared with the detected area recorded after the most recent predetermined number of drivings; the detected area is a light-transmitting area or a light-shielding area;
[0134] The determination module 603 is used to determine that the carbon ribbon is not tightened if the detected area has not changed, and to control the driving member to complete a predetermined number of driving steps again without executing a printing task until the detected area has changed.
[0135] In one embodiment, the arc angles of each light-transmitting area and each light-shielding area on the code disk are all first angles; the predetermined number of times is calculated from the first angle and a second angle at which the code disk rotates after the driving member completes one driving operation.
[0136] In one embodiment, the sensor includes a light-emitting element and a photosensitive element, which are arranged on both sides of the code channel relative to each other. The light emitted by the light-emitting element is transmitted to the photosensitive element through the light-transmitting area or is blocked by the light-shielding area; the photosensitive element outputs different signal intensity values according to the different light intensities sensed.
[0137] In one embodiment, the determination module 603 is further used to determine the detected area currently entering the detection area according to the signal strength value output by the sensor.
[0138] In one embodiment, the determination module 603 is also used to determine that the measured area currently entering the detection area is a light-transmitting area if the signal strength value output by the sensor is greater than a first preset threshold value; if the signal strength value output by the sensor is less than a second preset threshold value, then determine that the measured area currently entering the detection area is a light-shielding area.
[0139] In one embodiment, the determination module 603 is further configured to determine that the carbon ribbon has been tightened if the detected area changes, and control the driving member to stop driving.
[0140] In one embodiment, the control module 601 is also used to control the driving component to complete the first predetermined number of drives in response to the ribbon tightening instruction when no printing task is executed; the determination module 603 is also used to determine the detected area that enters the detection area after completing the first predetermined number of drives.
[0141] In one embodiment, the ribbon tightening instruction is a printing instruction; the determination module 603 is also used to determine that the ribbon has been tightened if the detected area changes, and execute a corresponding printing task.
[0142] Each module in the above-mentioned ribbon tightening device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0143] The present application also provides a printing device, whose internal structure diagram can be shown as follows: Figure 7 The printing device may include: a first rotating member 701 , a second rotating member 702 , a driving member 703 , a code disc 704 , a sensor 705 , a processor 706 , a network interface 707 , a user input device 708 , a memory 709 and a communication bus 710 .
[0144] The first rotating member 701 is used to wind the printed part of the carbon ribbon, and the second rotating member 702 is used to wind the unprinted part of the carbon ribbon. The driving member 703 is connected to the first rotating member 701 so that the carbon ribbon is wound around the first rotating member 701. The code disc 704 is provided on the second rotating member 702 and is used to rotate with the second rotating member 702. The code path of the code disc 704 includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area alternately enter the detection area of the sensor 705 as the code disc 704 rotates.
[0145] The processor 706 may include one or more processing cores. The processor 706 uses various interfaces and lines to connect various parts of the entire printing device, and executes various functions of the routing printing device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 709, and calling data stored in the memory 709. Optionally, the processor 706 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 706 can integrate one or a combination of a processor (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 706, but may be implemented separately through a chip.
[0146] The network interface 707 may optionally include a Bluetooth module, a Near Field Communication (NFC) module, a Wireless Fidelity (Wi-Fi) module, and the like.
[0147] The user input device 708 may be a touch layer covered on the display screen, a key, a trackball or a touch pad provided on the housing of the printing device, or an external keyboard, a touch pad or a mouse, etc. The network interface 707 may include a Bluetooth module, a Near Field Communication (NFC) module, a Wireless Fidelity (Wi-Fi) module, etc.
[0148] The memory 709 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 709 includes a non-transitory computer-readable medium. The memory 709 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 709 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as an acquisition function, a splitting function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 709 may also be at least one storage device located away from the aforementioned processor 706. As Figure 7 As shown, the memory 709 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a carbon ribbon tightening program.
[0149] The communication bus 710 may be used to realize the connection and communication among the driver 703 , the sensor 705 , the processor 706 , the network interface 707 , the user input device 708 and the memory 709 .
[0150] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the printing device to which the scheme of the present application is applied. The specific printing device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] In one embodiment, a printing device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0152] When the printing task is not executed, the driving member is controlled to complete a predetermined number of drivings;
[0153] Determine whether the detected area currently entering the detection area has changed compared with the detected area recorded after the most recent predetermined number of drivings; the detected area is a light-transmitting area or a light-shielding area;
[0154] If the detected area does not change, it is determined that the carbon ribbon is not tightened, and the step of controlling the driving member to complete a predetermined number of driving steps without executing a printing task is executed again until the detected area changes.
[0155] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining the detected area currently entering the detection area according to the signal strength value output by the sensor.
[0156] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the signal strength value output by the sensor is greater than a first preset threshold, the detected area currently entering the detection area is determined to be a light-transmitting area; if the signal strength value output by the sensor is less than a second preset threshold, the detected area currently entering the detection area is determined to be a light-shielding area.
[0157] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if the detected area changes, it is determined that the carbon ribbon has been tightened, and the driving member is controlled to stop driving.
[0158] In one embodiment, the processor also implements the following steps when executing the computer program: when the printing task is not executed, in response to the carbon ribbon tightening instruction, controlling the driving member to complete the first predetermined number of drives; determining the tested area that enters the detection area after completing the first predetermined number of drives.
[0159] In one embodiment, the carbon ribbon tightening instruction is a printing instruction; when the processor executes the computer program, the following steps are also implemented: if the detected area changes, it is determined that the carbon ribbon has been tightened, and a corresponding printing task is executed.
[0160] The present application also provides a computer storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiment. If the components of the above printing device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer readable storage medium.
[0161] In one embodiment, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0162] When the printing task is not executed, the driving member is controlled to complete a predetermined number of drivings;
[0163] Determine whether the detected area currently entering the detection area has changed compared with the detected area recorded after the most recent predetermined number of drivings; the detected area is a light-transmitting area or a light-shielding area;
[0164] If the detected area does not change, it is determined that the carbon ribbon is not tightened, and the step of controlling the driving member to complete a predetermined number of driving steps without executing a printing task is executed again until the detected area changes.
[0165] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: determining the detected area currently entering the detection area according to the signal strength value output by the sensor.
[0166] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: if the signal strength value output by the sensor is greater than a first preset threshold, the detected area currently entering the detection area is determined to be a light-transmitting area; if the signal strength value output by the sensor is less than a second preset threshold, the detected area currently entering the detection area is determined to be a light-shielding area.
[0167] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: if the detected area changes, it is determined that the carbon ribbon has been tightened, and the driving member is controlled to stop driving.
[0168] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: when no printing task is executed, in response to a ribbon tightening instruction, controlling the driving member to complete the first predetermined number of drives; and determining the detected area that enters the detection area after completing the first predetermined number of drives.
[0169] In one embodiment, the carbon ribbon tightening instruction is a printing instruction; when the computer program is executed by the processor, the following steps are implemented: if the detected area changes, it is determined that the carbon ribbon has been tightened, and a corresponding printing task is executed.
[0170] The embodiments of the present application also provide a computer program product, including a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.
[0171] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by the computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0172] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.
[0173] The embodiments described above are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims.
[0174] The above describes a specific embodiment of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A carbon ribbon tightening method, characterized in that: Applicable to a printing device, the printing device comprises a first rotating member, a second rotating member, a driving member, a code disc and a sensor; the first rotating member is used to wind up the printed part of the carbon ribbon, and the second rotating member is used to wind up the unprinted part of the carbon ribbon; The driving member is transmission-connected to the first rotating member so that the carbon ribbon is wound around the first rotating member; The code disc is arranged on the second rotating member and is used to rotate with the second rotating member; the code track of the code disc includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area enter the detection area of the sensor as the code disc rotates; the method includes: When the printing task is not executed, controlling the driving member to complete a predetermined number of driving times; Determine whether the detected area currently entering the detection area is changed compared with the detected area recorded after the most recent completion of the predetermined number of drives; the detected area is the light-transmitting area or the light-shielding area; If the detected area does not change, it is determined that the carbon ribbon is not tightened, and the step of controlling the driving member to complete a predetermined number of drivings without executing a printing task is performed again until the detected area changes.
2. The method according to claim 1, characterized in that The arc angles of each of the light-transmitting areas and each of the light-shielding areas on the code disk are all first angles; the predetermined number of times is calculated from the first angle and a second angle at which the code disk rotates after the driving member completes one drive.
3. The method according to claim 1, characterized in that: The sensor includes a light-emitting element and a photosensitive element, which are arranged on both sides of the code channel relative to each other. The light emitted by the light-emitting element is transmitted to the photosensitive element through the light-transmitting area or is blocked by the light-shielding area; the photosensitive element outputs different signal intensity values according to the different light intensities sensed.
4. The method according to claim 1, characterized in that Before determining whether the detected area currently entering the detection area has changed compared to the detected area recorded after the most recent completion of the predetermined number of driving, the method further includes: The detected area currently entering the detection area is determined according to the signal strength value output by the sensor.
5. The method according to claim 4, characterized in that The step of determining the detected area currently entering the detection area according to the signal strength value output by the sensor includes: If the signal strength value output by the sensor is greater than a first preset threshold, determining that the detected area currently entering the detection area is a light-transmitting area; If the signal strength value output by the sensor is less than a second preset threshold, it is determined that the detected area currently entering the detection area is a light-shielded area.
6. The method according to claim 1, characterized in that The method further comprises: If the detected area changes, it is determined that the carbon ribbon has been tightened, and the driving member is controlled to stop driving.
7. The method according to claim 1, characterized in that Before the driving member is controlled to complete a predetermined number of driving times when no printing task is executed, the method further comprises: In the case where the printing task is not executed, in response to the ribbon tightening instruction, the driving member is controlled to complete the first predetermined number of drivings; A detected area that enters the detection area after the first predetermined number of drivings is completed is determined.
8. The method according to claim 7, characterized in that The ribbon tightening instruction is a printing instruction; The method further comprises: If the detected area changes, it is determined that the carbon ribbon has been tightened, and a corresponding printing task is performed.
9. A carbon ribbon tightening device, characterized in that: Applicable to a printing device, the printing device comprises a first rotating member, a second rotating member, a driving member, a code disc and a sensor; the first rotating member is used to wind up the printed part of the carbon ribbon, and the second rotating member is used to wind up the unprinted part of the carbon ribbon; The driving member is transmission-connected to the first rotating member so that the carbon ribbon is wound around the first rotating member; The code disc is arranged on the second rotating member and is used to rotate with the second rotating member; the code path of the code disc includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area enter the detection area of the sensor as the code disc rotates; the device includes: A control module, used for controlling the driving member to complete a predetermined number of driving times when no printing task is executed; A judgment module, used for judging whether the detected area currently entering the detection area is changed compared with the detected area recorded after the most recent completion of the predetermined number of driving; the detected area is the light-transmitting area or the light-shielding area; The determination module is used to determine that the carbon ribbon is not tightened if the detected area has not changed, and to again execute the step of controlling the driving member to complete a predetermined number of drivings without executing a printing task until the detected area has changed.
10. A printing device, characterized in that: include: A first rotating member, a second rotating member, a driving member, a code disc and a sensor; The first rotating member is used to wind up the printed portion of the carbon ribbon, and the second rotating member is used to wind up the unprinted portion of the carbon ribbon; The driving member is transmission-connected to the first rotating member so that the carbon ribbon is wound around the first rotating member; The code disc is arranged on the second rotating member, and is used to rotate along with the second rotating member; the code track of the code disc includes a light-transmitting area and a light-shielding area, and the light-transmitting area and the light-shielding area enter the detection area of the sensor as the code disc rotates; The printing device also includes: a processor and a memory; The memory stores a computer program, and when the processor executes the computer program, the method steps of any one of claims 1 to 8 are implemented.
11. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 8.
12. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Thermal transfer printing device, and control method and apparatus thereof
CN103625122A
Printer
CN107265170A
Abnormal state detection method and device of printer, printer and storage medium
CN117507645A
Printing deviation compensation system, method and equipment and storage medium
CN118927837A
Printing equipment detection method and device, medium, program product and printing equipment
CN119872104A
Cited By
Printing equipment detection method and device, medium, program product and printing equipment
CN119872104A