Sensor module failure handling method and printing device
By performing self-testing and feedback signal analysis in the sensor module, the reliability and efficiency issues of sensor module fault detection are solved, enabling accurate fault diagnosis and stable operation of the sensor module.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHUHAI PANTUM ELECTRONICS CO LTD
- Filing Date
- 2026-04-24
- Publication Date
- 2026-07-07
AI Technical Summary
The color correction sensor in the sensor module is prone to failure due to the accumulation of contaminants. Existing detection methods are not reliable and efficient enough, and it is difficult to accurately distinguish between sensor failure and cover movement failure.
The sensor module performs a self-test while the color correction sensor is covered by the cover. If the sensor is normal, the cover is moved to remove it. The fault type is determined by the feedback signal collected by the color correction sensor, thus accurately distinguishing between sensor faults and cover movement faults.
Without adding sensor hardware, the reliability and efficiency of sensor module fault diagnosis are improved, faulty objects are accurately identified, false judgments are reduced, and the stability of equipment operation is enhanced.
Smart Images

Figure CN122345963A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of sensor control technology, and in particular to a sensor module fault handling method and a printing device. Background Technology
[0002] In laser printing equipment, the presence of pollutants such as toner and dust can easily cause dirt to accumulate on the surface of the color toner density sensor (CTD sensor), leading to color correction failure. Therefore, a cover can be added to the surface of the CTD sensor to form a sensor module. When the color correction function is enabled, the cover is moved to expose the CTD sensor and then color correction is performed. However, if the sensor module malfunctions, the color correction process will also be difficult to perform.
[0003] In related technologies, there are methods for detecting the covering parts in sensor modules, but some of them are still imperfect and can easily affect the reliability of color correction sensor fault detection and the efficiency of fault handling. Summary of the Invention
[0004] This disclosure is made in view of the above-mentioned problems. This disclosure provides a sensor module fault handling method and a printing device, which can improve the accuracy and reliability of sensor module fault diagnosis.
[0005] According to one aspect of this disclosure, a sensor module fault handling method is provided, the method being applied in a controller of a printing device, the printing device including a sensor module, the sensor module including a color correction sensor, and a cover for covering the color correction sensor; the method includes:
[0006] A first self-test command is sent to the color correction sensor in the sensor module in the first state. In the first state, the cover covers the color correction sensor. The first self-test command is used to instruct the color correction sensor to perform a self-test and return the first self-test information to the controller. If the color correction sensor is determined to be normal based on the first self-test information, a first movement command is sent to the cover. The first movement command is used to instruct the cover to move in a first direction so that the sensor module enters a second state. In the second state, the cover removes the cover from the color correction sensor. Based on the intensity of the first feedback signal collected by the color correction sensor, the first fault detection result of the sensor module is determined, wherein the first feedback signal is the signal collected by the color correction sensor during the movement of the cover in the first direction.
[0007] According to another aspect of this disclosure, a printing apparatus is provided, including a memory, a controller, and a computer program stored on the controller, the controller executing the computer program to implement the method of the first aspect.
[0008] The sensor module fault handling method and printing device provided in this disclosure perform a self-test on the sensor in the first state where the color correction sensor is covered by a cover, so that the cover can be moved to the second state where the cover is removed after confirming that the sensor is normal. The movement state of the cover is determined based on the feedback signal collected by the sensor. This method can accurately distinguish between the fault of the color correction sensor itself and the fault of the cover movement without adding additional sensor hardware, thereby solving the problem of difficulty in locating the fault object in sensor module fault repair and effectively improving the reliability of sensor module fault diagnosis.
[0009] It should be understood that both the foregoing general description and the following detailed description are exemplary and intended to provide further illustration of the claimed technology. Attached Figure Description
[0010] The above and other objects, features, and advantages of this disclosure will become more apparent from the more detailed description of the embodiments thereof in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the disclosure and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.
[0011] Figure 1 This is a flowchart of a sensor module fault handling method according to an embodiment of the present disclosure.
[0012] Figure 2 This is a top view of a sensor module according to an embodiment of the present disclosure.
[0013] Figure 3 This is a schematic diagram illustrating the signal strength change process of a feedback signal according to an embodiment of this disclosure.
[0014] Figure 4 This is a schematic diagram of a fault repair interface according to an embodiment of this disclosure.
[0015] Figure 5 This is a schematic diagram of a manual settings interface according to an embodiment of the present disclosure.
[0016] Figure 6 This is a flowchart of another sensor module fault handling method according to an embodiment of the present disclosure.
[0017] Figure 7 This is a flowchart of another sensor module self-testing method according to an embodiment of this disclosure.
[0018] Figure 8 This is a block diagram of a sensor module fault handling device according to an embodiment of the present disclosure.
[0019] Figure 9 This is a hardware block diagram of an electronic device disclosed herein.
[0020] Figure 10 This is a schematic diagram of an image acquisition interface disclosed herein.
[0021] Figure 11 This is a schematic diagram of a document extraction interface disclosed herein.
[0022] Figure 12 This is a schematic diagram of a document extraction result display interface disclosed herein. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this disclosure more apparent, exemplary embodiments according to this disclosure will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this disclosure, and not all embodiments of this disclosure. It should be understood that this disclosure is not limited to the exemplary embodiments described herein.
[0024] In laser printing equipment, a cover can be added to the surface of the CTD sensor to block the CTD sensor. When color correction is required, the cover can be moved to expose the CTD sensor and instruct the CTD sensor to collect data from the transfer belt and participate in the color correction process.
[0025] In related technologies, to ensure that the cover obstructs the CTD sensor in the non-color correction state and exposes the CTD sensor in the color correction state, the CTD sensor can be used to detect the position of the cover to determine whether the cover is functioning properly. Specifically, a pulse width modulation (PWM) signal with a preset duty cycle is output to the CTD sensor, and the cover's functionality is determined based on the CTD sensor feedback signal value and a specific threshold. For example, in the color correction state, if the cover does not obstruct the CTD sensor, the feedback signal value usually needs to be greater than 2000; in the non-color correction state, if the cover obstructs the CTD sensor, the feedback signal value usually needs to be less than 30.
[0026] However, the CTD sensor-based detection scheme for cover parts provided in the relevant technologies requires the CTD sensor to function properly. Once the CTD sensor fails, the cover part status detection scheme based on the CTD sensor will have abnormal inspection results, resulting in poor reliability of the detection results.
[0027] To address the aforementioned problems, this disclosure provides a sensor module fault handling method. The method is applied to a controller of a printing device, which includes a sensor module comprising a color correction sensor and a cover for covering the color correction sensor. Figure 1 As shown, Figure 1 A flowchart of a sensor module fault handling method provided in an embodiment of this disclosure is shown. The method includes: Step S101: Send a first self-test command to the color correction sensor in the sensor module in the first state; In the first state, the cover covers the color correction sensor, and the first self-test command is used to instruct the color correction sensor to perform a self-test and return the first self-test information to the controller. Step S102: If the color correction sensor is determined to be normal based on the first self-test information, a first movement command is sent to the cover. The first movement command is used to instruct the cover to move in a first direction so that the sensor module enters a second state. In the second state, the cover removes its cover from the color correction sensor. Step S103: Based on the intensity of the first feedback signal collected by the color correction sensor, determine the first fault detection result of the sensor module; The first feedback signal is the signal collected by the color correction sensor during the movement of the cover in the first direction.
[0028] In summary, the sensor module fault handling method provided in this disclosure performs a self-test on the sensor in the first state where the color correction sensor is covered by a cover, so that the cover can be moved to the second state where the cover is removed after confirming that the sensor is normal. The movement state of the cover is determined based on the feedback signal collected by the sensor. This method can accurately distinguish between the fault of the color correction sensor itself and the fault of the cover movement without adding additional sensor hardware. This solves the problem of difficulty in locating the fault object in sensor module fault repair and effectively improves the reliability of sensor module fault diagnosis.
[0029] The following are Figure 1 The specific implementation methods of each step in the illustrated embodiment are described in detail below: In step S101, the controller sends a first self-test command to the color correction sensor in the sensor module in the first state.
[0030] In this embodiment of the present disclosure, in a first state, the cover covers the color correction sensor; a first self-test command is used to instruct the color correction sensor to perform a self-test and return the first self-test information to the controller.
[0031] In one optional implementation, in order to obtain the status information of the sensor module in the first state in a timely manner, the controller can periodically send a first self-test command to the color correction sensor in the sensor module in the first state; wherein, the period at which the controller sends the first self-test command can be determined based on actual needs, and this disclosure embodiment does not limit it.
[0032] In one alternative implementation, when the printing device allows the user to perform follow-up checks on the status of the sensor module, the controller, upon receiving a fault check command from the user, sends a first self-test command to the color correction sensor in the sensor module in the first state.
[0033] The printing device allows users to issue fault check commands to the controller by triggering buttons on the printing device, or the printing device allows users to issue fault check commands by triggering fault detection controls in the display device of the printing device, etc. The specific method can be determined based on actual needs, and this disclosure does not limit it.
[0034] In one alternative implementation, the controller determines that the current time is for color correction and sends a first self-test command to the color correction sensor in the sensor module in the first state.
[0035] Optionally, after the controller sends a first self-test command to the color correction sensor in the sensor module in the first state, the color correction sensor responds to the first self-test command to perform a self-test and returns the first self-test information to the controller. This process includes: the color correction sensor responds to the first self-test command by transmitting a PWM signal with a signal transmission intensity of a target duty cycle and collecting the intensity of the target reflected light signal to obtain the first self-test information; wherein, the target duty cycle can be determined based on actual needs, and this embodiment does not limit it.
[0036] Optionally, the process of the color correction sensor performing a self-test in response to the first self-test command and returning the first self-test information to the controller includes: the color correction sensor, in response to the first self-test command, transmitting a PWM signal with a signal transmission intensity of a first duty cycle and acquiring a first reflected light signal intensity, and transmitting a PWM signal with a signal transmission intensity of a second duty cycle and acquiring a second reflected light signal intensity; further, determining the first reflected light signal intensity and the second reflected light signal intensity as the first self-test information; wherein, the first duty cycle and the second duty cycle can be determined based on actual needs, and this embodiment of the present disclosure does not limit this.
[0037] In step S102, if the controller determines that the color correction sensor is normal based on the first self-test information, it sends a first movement command to the cover.
[0038] In this embodiment of the disclosure, a first movement command is used to instruct the cover to move in a first direction so that the sensor module enters a second state, in which the cover removes its cover from the color correction sensor.
[0039] In one optional implementation, when the first self-test information includes the target reflected light signal intensity, the process of the controller determining whether the color correction sensor is normal based on the first self-test information includes: if the target reflected light signal intensity meets the normal conditions of the color correction sensor associated with the signal emission intensity of the target duty cycle, the color correction sensor is determined to be normal; otherwise, the color correction sensor is determined to be abnormal.
[0040] The normal condition of the color correction sensor associated with the signal transmission intensity of the target duty cycle is determined based on the fault threshold associated with the signal transmission intensity of the target duty cycle. Specifically, it can be determined based on actual needs, but this embodiment does not make such a determination.
[0041] For example, if the target duty cycle is 70%, and the fault thresholds associated with the 70% PWM signal are: reflected signal intensity less than 1500 and reflected signal intensity greater than 2000, then the normal condition for the color correction sensor associated with the 70% PWM signal is that the color correction sensor is determined to be normal when the target reflected light signal intensity is greater than or equal to 1500 and less than or equal to 2000.
[0042] In one optional implementation, when the first self-test information includes the intensity of the first reflected light signal and the intensity of the second reflected light signal, the process of the controller determining whether the color correction sensor is normal based on the first self-test information includes: if the intensity of the first reflected light signal meets the normal condition of the color correction sensor associated with the signal emission intensity of the first duty cycle, and the intensity of the second reflected light signal meets the normal condition of the color correction sensor associated with the signal emission intensity of the second duty cycle, then the color correction sensor is determined to be normal; otherwise, the color correction sensor is determined to be abnormal.
[0043] The normal conditions of the color correction sensor associated with the signal transmission intensity of the first duty cycle are determined based on the fault threshold associated with the signal transmission intensity of the first duty cycle, and the normal conditions of the color correction sensor associated with the signal transmission intensity of the second duty cycle are determined based on the fault threshold associated with the signal transmission intensity of the second duty cycle; specifically, they can be determined based on actual needs, and this embodiment does not make such determination.
[0044] For example, if the first duty cycle is 70%, and the fault thresholds associated with the 70% PWM signal are: reflected signal intensity less than 1500 and reflected signal intensity greater than 2000, and the second duty cycle is 5%, and the fault thresholds associated with the 5% PWM signal are: reflected signal intensity less than 10 and reflected signal intensity greater than 500, then the normal condition for the color correction sensor associated with the 70% PWM signal is that the color correction sensor is determined to be normal when the first reflected light signal intensity is greater than or equal to 1500 and less than or equal to 2000, and the normal condition for the color correction sensor associated with the 5% PWM signal is that the color correction sensor is determined to be normal when the second reflected light signal intensity is greater than or equal to 10 and less than or equal to 500.
[0045] In step S103, the controller determines the first fault detection result of the sensor module based on the intensity of the first feedback signal collected by the color correction sensor.
[0046] The first fault detection result can be displayed on the fault display interface to indicate the cause of the sensor module's fault, whether it is a cover component fault, so that corresponding fault repair measures can be taken in a timely manner.
[0047] In this embodiment of the disclosure, the first feedback signal is the signal collected by the color correction sensor during the movement of the cover in the first direction.
[0048] It should be noted that, in the embodiments of this disclosure, the process of the cover moving in the first direction refers to the change of the cover in the sensor module from a state of covering the color correction sensor to a state of uncovering the color correction sensor. Since the signal strength of the feedback signal collected by the color correction sensor is different when the cover is covering the sensor and when it is not covered, the fault status of the cover can be identified based on this change.
[0049] In one optional implementation, the process by which the controller determines the first fault detection result of the sensor module based on the intensity of the first feedback signal collected by the color correction sensor includes: if the first feedback signal changes from a first intensity value to a second intensity value within a preset time period, then a first fault detection result indicating that the sensor module has not malfunctioned is determined; otherwise, a first fault detection result indicating that the cover of the sensor module has malfunctioned is determined. By monitoring whether the first feedback signal collected by the color correction sensor changes normally from a first intensity value to a second intensity value within a preset time period, it is possible to accurately and quickly determine whether the cover has completed the specified movement. Without adding additional detection sensors, the fault location of the cover can be achieved, effectively preventing false fault judgments and improving the accuracy and efficiency of fault detection and diagnosis.
[0050] It is understood that in the embodiments of this disclosure, the preset duration is the time required for the cover to move during the process of the sensor module changing from the first state to the second state, or from the second state to the first state. Specifically, it can be determined based on the actual configuration, and the embodiments of this disclosure do not limit it in this regard.
[0051] The first intensity value refers to the intensity value of the signal collected by the color correction sensor when the cover covers the color correction sensor, and the second intensity value refers to the intensity value of the signal collected by the color correction sensor when the cover does not cover the color correction sensor. Specifically, it can be determined based on the material and specifications of the cover, but this embodiment does not limit it.
[0052] For example, such as Figure 2 As shown, Figure 2 This illustration shows a top view of a sensor module provided in an embodiment of the present disclosure, wherein a color correction sensor 201 is disposed below a cover 202, the cover 202 including an obscuring area 2021 and a cutout area 2022. Figure 2 In the sensor module shown, the sensor module is in a first state, that is, the occlusion area 2021 of the cover 202 covers the color correction sensor 201; further, after the cover receives the first moving command, the cover moves in the first direction and the sensor module is in a second state, that is, the cutout area 2022 of the cover 202 covers the color correction sensor 201.
[0053] The change in signal intensity of the feedback signal collected by the color correction sensor during the movement of the cover in the first direction can be referenced. Figure 3 The first intensity value is the intensity value of the signal collected by the color correction sensor in the occluded area 2021, and the second intensity value is the intensity value of the signal collected by the color correction sensor in the hollowed-out area 2022. The first intensity value is less than the second intensity value.
[0054] It should be noted that color calibration can be performed after the sensor module is in the second state, and the sensor module needs to be returned to the first state after the color calibration is completed to prevent the color calibration sensor from being damaged.
[0055] In one optional implementation, if the controller determines a first fault detection result indicating that the sensor module has not malfunctioned, a second movement command is sent to the cover after color correction is completed. This second movement command instructs the cover to move in a second direction, causing the sensor module to switch to the first state. Then, based on the strength of the second feedback signal collected by the color correction sensor, a second fault detection result for the sensor module is determined. The second feedback signal is the signal collected by the color correction sensor during the cover's movement in the second direction. After color correction is completed, by sending a second movement command to the cover to reset it to the first state of the color correction sensor, and determining the reset state based on the strength of the second feedback signal collected by the color correction sensor, fault detection during the cover's return process can be completed without adding additional detection sensors. This achieves closed-loop verification of the cover's entire movement state, further improving the completeness and reliability of fault diagnosis and ensuring that the sensor module remains in a stable and controllable working state before and after color correction.
[0056] It is understood that, in the embodiments of this disclosure, the process by which the controller determines the second fault detection result of the sensor module based on the intensity of the second feedback signal collected by the color correction sensor includes: if the first feedback signal changes from the second intensity value to the first intensity value within a preset time period, then a second fault detection result indicating that the sensor module has not failed is determined; otherwise, a second fault detection result indicating that the cover of the sensor module has failed is determined.
[0057] In one optional implementation, before sending the second movement command to the sensor cover, the controller may further: send a second self-test command to the color correction sensor, wherein the second self-test command instructs the color correction sensor to perform a self-test and return the second self-test information to the controller; then, if the color correction sensor is determined to be normal based on the second self-test information, the controller determines to send the second movement command. By performing a second self-test on the color correction sensor and confirming its normal operation before sending the cover reset movement command, the controller ensures that the cover return operation is based on the reliable state of the sensor itself without adding hardware sensors. This effectively avoids misjudgments of cover return failures due to sensor malfunctions, further improving the accuracy of fault diagnosis and the stability of equipment operation.
[0058] It is understood that in the embodiments of this disclosure, when the sensor module is in the second state, the controller sends a second self-test command to the color correction sensor, instructing the color correction sensor to perform a self-test, and returns the second self-test information to the controller. This process can be referred to in the above embodiments, where the controller sends a first self-test command to the color correction sensor in the sensor module in the first state, instructing the color correction sensor to perform a self-test, and returns the first self-test information to the controller. This disclosure will not elaborate on this process.
[0059] Meanwhile, the process by which the controller determines whether the color correction sensor is functioning properly based on the second self-test information can be referred to in the above embodiment, where the controller determines whether the color correction sensor is functioning properly based on the first self-test information. This embodiment will not elaborate on this process. However, it should be noted that in indoor environments, the receiving objects of the signals emitted by the color correction sensor are different in the first state and the second state. Therefore, the fault threshold used by the controller in determining whether the color correction sensor is functioning properly based on the first self-test information after the sensor module performs a self-test in the first state is different from the fault threshold used by the controller in determining whether the color correction sensor is functioning properly based on the second self-test information after the sensor module performs a self-test in the second state. Specifically, it can be determined based on actual needs, and this embodiment does not limit this process.
[0060] In one optional implementation, if the controller determines that the color correction sensor is malfunctioning based on the first self-test information, it determines a third fault detection result for the sensor module. This third fault detection result indicates that the color correction sensor is malfunctioning. By having the controller determine the color correction sensor malfunction based on the first self-test information and output the corresponding third fault detection result, the sensor's own fault can be confirmed before the cover movement detection. This eliminates the need for additional hardware to pinpoint the source of the fault, preventing misjudgments of sensor malfunctions as cover movement faults. This improves the accuracy and efficiency of fault location and provides a reliable basis for subsequent targeted fault handling.
[0061] It should be noted that, in the embodiments of this disclosure, if the color correction sensor malfunctions, the color correction sensor can be calibrated to ensure that the color correction sensor functions normally.
[0062] In one optional implementation, if the color correction sensor malfunctions, the controller adjusts the sensor parameters of the color correction sensor; the sensor parameters include signal transmission strength and / or fault threshold; wherein, if the adjusted color correction sensor passes the self-test, the controller outputs information indicating that the color correction sensor fault has been successfully repaired.
[0063] When a color correction sensor is found to be faulty, by adjusting the sensor's signal transmission strength and / or fault threshold parameters and re-performing the self-test verification, the sensor can be repaired without replacing the hardware. This effectively reduces the probability of the sensor being misjudged as faulty due to minor anomalies, reduces the need for after-sales on-site repair, and improves the device's self-repair capability and user experience.
[0064] It should be noted that, in this embodiment of the disclosure, the signal emission intensity refers to the intensity of light emitted by the color sensor, which is controlled by the duty cycle of the PWM signal. Adjusting the signal emission intensity of the sensor refers to adjusting the duty cycle of the PWM signal. The fault threshold is a preset criterion for judging the rationality of the reflected signal intensity, which is used to compare the actual detected reflected signal to determine whether the sensor or the cover is faulty. The fault threshold may include at least one value.
[0065] It is understood that the self-testing process of the adjusted color correction sensor can be referred to the above embodiments, and this disclosure will not elaborate on it.
[0066] In one optional implementation, when the printing device includes a display device, the process of adjusting the sensor parameters of the color correction sensor includes: outputting a fault repair interface on the display device and obtaining fault repair instructions issued through the fault repair interface; then, adjusting the sensor parameters of the color correction sensor based on the fault repair instructions. By outputting a fault repair interface and adjusting the parameters of the color correction sensor according to the fault repair instructions issued through the interface, a visual and interactive self-service fault repair entry can be provided to users, helping to simplify the fault repair operation process, while improving the user experience and fault repair efficiency, and reducing the impact on the normal operation of the equipment.
[0067] It should be noted that, in the embodiments of this disclosure, the fault repair instruction includes repair parameters for characterizing the degree of sensor parameter correction, so that the controller can adjust the sensor parameters of the color correction sensor based on the fault repair instruction.
[0068] In one optional implementation, the repair parameters include: a correction value for adjusting signal transmission intensity, and / or a correction value for adjusting fault threshold. Setting the repair parameters as correction values for adjusting signal transmission intensity and / or correction values for adjusting fault threshold can more accurately adapt to the adjustment requirements of the color calibration sensor's operating parameters. By specifically correcting the transmission intensity and fault threshold, it effectively helps solve self-test anomalies caused by sensor aging, dirt, and signal drift, achieving self-repair without replacing hardware, and improving the sensor's self-test accuracy and automatic fault repair capabilities.
[0069] For example, such as Figure 5 As shown, Figure 5 A schematic diagram of a manual setting interface provided in an embodiment of this disclosure is shown. The manual setting interface 500 includes: a transmission intensity adjustment control and a fault threshold adjustment control. The transmission intensity adjustment control is used to adjust the correction value of the signal transmission intensity. The transmission intensity adjustment control includes: a first transmission intensity adjustment control 5011 and a second transmission intensity adjustment control 5022. The correction value of the signal transmission intensity is increased by triggering the first transmission intensity adjustment control 5011, and the correction value of the signal transmission intensity is decreased by triggering the second transmission intensity adjustment control 5012. The manual setting interface 500 also includes: a display area 5013 for the adjustment result of the correction value of the signal transmission intensity.
[0070] In addition, a fault threshold adjustment control is provided for adjusting the correction value of the fault threshold. The fault threshold adjustment control includes a first fault threshold adjustment control 5021 and a second fault threshold adjustment control 5022. The correction value of the fault threshold is increased by triggering the first fault threshold adjustment control 5021, and the correction value of the fault threshold is decreased by triggering the second fault threshold adjustment control 5022. At the same time, the manual setting interface 500 also includes a display area 5023 for the adjustment result of the fault threshold correction value.
[0071] Please continue to refer to this. Figure 5 , Figure 5 The manual setting interface 500 shown also includes a first indication information 503 and a second indication information 504, wherein the first indication information 503 is used to indicate a correction value for increasing the input emission intensity, and the second indication information 504 is used to indicate a correction value for decreasing the input fault threshold.
[0072] It should be noted that, in the embodiments of this disclosure, the correction value can be the sensor parameter adjustment value that increases or decreases the current sensor parameter, or, based on the reference sensor parameter, the correction ratio value that increases or decreases the sensor parameter; wherein, the reference sensor parameter can be determined based on actual needs, and the embodiments of this disclosure do not limit it. For example, the reference signal transmission strength refers to a PWM signal with a duty cycle of 70%, and the reference fault threshold is 2000.
[0073] For example, regarding signal transmission strength, the correction value for signal transmission strength can be increased by 20%, meaning that the current signal transmission strength is increased by 20% to obtain the adjusted signal transmission strength; or, the correction value for signal transmission strength can be 0.8, meaning that 0.8 times the reference signal transmission strength is determined as the adjusted signal transmission strength.
[0074] In one optional implementation, the fault repair interface includes an adaptive repair option control and a manual repair option control. The process by which the controller obtains the fault repair instruction issued through the fault repair interface includes: in response to the triggering of the manual repair option control, outputting a manual setting interface; the manual setting interface is used to input a first repair parameter and obtain a fault repair instruction containing the first repair parameter; or, in response to the triggering of the adaptive repair option control, determining a second repair parameter according to a preset adjustment step value and obtaining a fault repair instruction containing the second repair parameter.
[0075] By setting two types of option controls, adaptive repair and manual repair, in the fault repair interface, users can either trigger the manual repair control to enter the manual settings interface and input the first repair parameter themselves, or trigger the adaptive repair control and the device will automatically determine the second repair parameter according to the preset step size. This provides users with flexible and selectable sensor fault repair methods to meet different usage needs and improve fault repair efficiency and user experience.
[0076] It should be noted that, in the embodiments of this disclosure, the preset adjustment step value can be determined based on actual needs, and the embodiments of this disclosure do not limit it. The preset adjustment step value can be used as the adjustment step value of the sensor parameter, or the correction ratio step value of the sensor parameter.
[0077] Optionally, when the preset adjustment step value is the adjustment step value of the sensor parameter, the process of the controller determining the second repair parameter according to the preset adjustment step value may include: determining the preset adjustment step value as the second repair parameter; or, determining the second repair parameter by a target multiple of the preset adjustment step value, wherein the target multiple is determined based on the degree of deviation of the reflected light signal intensity from the fault threshold. Specifically, the correlation between the target multiple and the degree of deviation of the reflected light signal intensity from the fault threshold can be determined based on actual needs, and this embodiment does not limit this.
[0078] Optionally, when the preset adjustment step value is the correction ratio step value of the sensor parameter, the process of the controller determining the second repair parameter according to the preset adjustment step value may include: reducing or increasing at least one correction ratio step value based on the current correction ratio step value to obtain the second repair parameter.
[0079] In one optional implementation, when the correction value in the repair parameters is a correction ratio value, in order to prevent sensor distortion caused by unlimited adjustment of the correction ratio of the sensor parameters, the correction ratio of the sensor parameters can be limited. Then, after the controller obtains a fault repair instruction containing the first repair parameter or the second repair parameter, it can adjust the sensor parameters of the color correction sensor based on the fault repair instruction if the correction ratio value of the signal transmission intensity is within the correction ratio threshold of the signal transmission intensity, and / or the correction ratio value of the fault threshold is within the correction ratio threshold of the fault threshold; otherwise, a sensor parameter adjustment abnormality prompt message is generated.
[0080] The correction ratio thresholds for signal transmission strength and / or fault thresholds can be determined based on actual needs, and this disclosure does not limit them; for example, the correction ratio threshold for signal transmission strength is 0.8-1, and the correction ratio threshold for fault thresholds is 0.8-1.2.
[0081] In one optional implementation, when the correction value in the repair parameter is a correction ratio value and a correction ratio threshold for the sensor parameter is pre-configured, the process by which the controller determines the second repair parameter according to a preset adjustment step value in response to the triggering of the adaptive repair option control may include: adjusting the current correction ratio of the sensor parameter by at least one correction ratio step value in the current parameter adjustment direction indicated by the current adjustment trend indication information to obtain a candidate correction ratio value for the sensor parameter; then, determining whether the candidate correction ratio value of the sensor parameter exceeds the maximum correction ratio threshold in the current parameter adjustment direction among the correction ratio thresholds of the sensor parameter; if it exceeds, adjusting the current correction ratio of the sensor parameter by at least one correction ratio step value in the opposite direction of the current parameter adjustment direction indicated by the current adjustment trend indication information to obtain the corrected ratio value of the sensor parameter; or, if it does not exceed, determining the candidate correction ratio value of the sensor parameter as the corrected ratio value of the sensor parameter. During the adaptive adjustment of sensor parameters, the correction ratio of the sensor parameters can be determined within the allowable adjustment range of the correction ratio value. This not only prevents sensor distortion caused by unlimited adjustment of the correction ratio of the sensor parameters, but also allows the correction ratio value of the sensor parameters to be adjusted in the opposite direction after the adjusted correction ratio value exceeds the correction ratio threshold of the current adjustment trend, thereby improving the intelligence of sensor parameter adjustment.
[0082] It should be noted that, in the embodiments of this disclosure, during the process of the controller determining the second repair parameter according to the preset adjustment step value in response to the triggering of the adaptive repair option control, the adjusted sensor parameter can be the signal emission intensity and / or the fault threshold; the adjustment trend indication information is used to indicate whether the sensor parameter is increased or decreased. The adjustment trend indication information is determined by the controller based on the comparison result of the reflected light signal intensity and the threshold. Specifically, it can be determined based on actual needs, and the embodiments of this disclosure are not limited in this respect.
[0083] For example, such as Figure 4 As shown, Figure 4 A schematic diagram of a fault repair interface provided in an embodiment of the present disclosure is shown. The fault repair interface 400 includes: an adaptive repair option control 401 and a manual repair option control 402.
[0084] Optional, please continue to refer to Figure 4 The fault repair interface may also include a fault repair mode selection prompt message 403, prompting the user to select either the device adaptive repair mode or the user manual repair mode to perform fault repair.
[0085] In one optional implementation, the manual setting interface further includes: indication information for inputting a first repair parameter; wherein the indication information is generated based on the self-test information of the color correction sensor, and is used to indicate whether the value of the input first repair parameter is trending towards increasing or decreasing. By providing indication information generated based on the self-test information of the color correction sensor in the manual setting interface to guide the user to adjust the value of the first repair parameter in the direction of increasing or decreasing, the operational difficulty of manually adjusting the parameter can be effectively reduced, avoiding blind adjustments that may lead to repair failure, thereby improving the accuracy of parameter settings and the efficiency of fault repair.
[0086] The process by which the controller generates indication information based on the self-test information of the color correction sensor includes: generating a first indication information indicating a decreasing trend in the value of the input first repair parameter when the reflected light signal intensity is greater than the maximum value among the rated thresholds; or generating a first indication information indicating a decreasing trend in the value of the input first repair parameter when the reflected light signal intensity is less than the minimum value among the rated thresholds. The rated thresholds are standard values determined based on the characteristics of the color correction sensor. In this embodiment, the first indication information is used to guide the adjustment of the signal emission intensity.
[0087] The process by which the controller generates indication information based on the self-test information of the color correction sensor further includes: generating second indication information indicating an increasing trend in the value of the first repair parameter when the reflected light signal intensity is greater than the maximum value among the rated thresholds; or generating second indication information indicating a decreasing trend in the value of the first repair parameter when the reflected light signal intensity is less than the minimum value among the rated thresholds. In this embodiment, the second indication information is used to guide the adjustment of the fault threshold.
[0088] In one alternative implementation, if the adjusted color correction sensor fails the self-test, the controller needs to repeatedly adjust the sensor parameters of the color correction sensor, control the adjusted color correction sensor to perform a self-test, and determine that the self-test is successful if the color correction sensor passes the self-test.
[0089] It should be noted that, in this embodiment of the disclosure, in order to prevent the color correction sensor from being distorted due to the unlimited adjustment of the sensor parameters, the sensor parameters of the adjusted color correction sensor need to be standardized.
[0090] In one optional implementation, before repeatedly adjusting the sensor parameters of the color correction sensor, the controller may further: determine whether the adjusted sensor parameters are within the sensor parameter specification threshold; if the adjusted sensor parameters are within the sensor parameter specification threshold, the color correction sensor is instructed to perform a self-test; if the adjusted sensor parameters are not within the sensor parameter specification threshold, a color correction sensor fault message is output; wherein, the sensor parameter specification threshold can be determined based on actual needs, and this embodiment does not limit this. By verifying whether the sensor parameters are within the specification threshold range before adjusting the color correction sensor parameters, correcting only compliant parameters, and directly outputting a fault message for parameters exceeding the threshold, invalid parameters can be avoided from causing secondary anomalies and misjudgments, ensuring the safety and reliability of parameter adjustment, and improving the effectiveness of self-testing and the accuracy and rationality of fault judgment.
[0091] It should be noted that when the repair parameters include correction values for adjusting signal transmission intensity and correction values for adjusting fault thresholds, if either the signal transmission intensity or the fault threshold is not within the sensor parameter specification threshold, the other repair parameter can be adjusted to repair the sensor until both repair parameters are not within the sensor parameter specification threshold, at which point a color correction sensor fault prompt message will be output.
[0092] It is understandable that if the controller determines that the color correction sensor is abnormal based on the second self-test information, it can adjust the sensor parameters of the color correction sensor based on the color correction sensor adjustment scheme provided in the above embodiments until the color correction sensor fault is successfully repaired.
[0093] For example, such as Figure 6 As shown, Figure 6 A flowchart of a sensor module fault handling method provided in an embodiment of this disclosure is shown, including: Step S601: Send a first self-test command to the color correction sensor in the sensor module in the first state; Step S602: Determine whether the color correction sensor is functioning properly based on the first self-test information; Step S603: If the color correction sensor is determined to be normal based on the first self-test information, a first movement command is sent to the cover. Step S604: Based on the intensity of the first feedback signal acquired by the color correction sensor, determine the first fault detection result of the sensor module; Step S605: If a first fault detection result indicating that the cover of the sensor module has not failed is determined, a second self-test command is sent to the color calibration sensor after color calibration is completed. Step S606: Determine whether the color correction sensor is functioning properly based on the second self-test information; Step S607: If the color correction sensor is determined to be normal based on the second self-test information, a second movement command is sent to the cover. Step S608: Based on the intensity of the second feedback signal collected by the color correction sensor, determine the second fault detection result of the sensor module; Step S609: If it is determined that the color correction sensor is abnormal based on the second self-test information, a prompt message is generated; Step S610: If the color correction sensor is determined to be abnormal based on the first self-test information, then the third fault detection result of the sensor module is determined.
[0094] In an optional implementation, when the repair parameters include: a correction ratio value for adjusting the signal transmission strength and a correction ratio value for adjusting the fault threshold, and a preset correction ratio threshold for the signal transmission strength and a correction ratio threshold for the fault threshold are provided, such as... Figure 7 As shown, the controller repeatedly adjusts the sensor parameters of the color correction sensor and controls the adjusted color correction sensor to perform a self-test. The process of determining success of the self-test if the color correction sensor passes the self-test may include: Step S701: Obtain a fault repair instruction containing a first repair parameter or a second repair parameter, and parse the fault repair instruction to obtain the current correction ratio value of the signal transmission strength; Step S702: Determine whether the current correction ratio value of the signal transmission strength is within the correction ratio threshold of the signal transmission strength; Step S703: If yes, then determine the product between the reference signal transmission strength and the current correction ratio of the signal transmission strength to obtain the adjusted signal transmission strength; Step S704: Instruct the color correction sensor to perform a self-test based on the adjusted signal emission intensity and the current fault threshold; Step S705: Determine whether the color correction sensor self-test is successful; Step S706: If the color correction sensor self-test is successful, then the color correction sensor self-test is confirmed to have passed. Step S707: If the color correction sensor fails to self-test, return to step S701 and repeat steps S701 to S705. Among them, after traversing all the correction ratio values of signal transmission strength within the correction ratio threshold of signal transmission strength, the self-test failure is determined, and the latest fault repair instruction is parsed to obtain the current correction ratio value of the fault threshold. Step S708: If the current correction ratio of the signal transmission strength exceeds the correction ratio threshold of the signal transmission strength, then parse the fault repair command to obtain the current correction ratio of the fault threshold. Step S709: Determine whether the current correction ratio value of the fault threshold is within the correction ratio threshold of the fault threshold. Step S710: If not, generate a color correction sensor fault message; Step S711: If yes, then determine the product between the baseline fault threshold and the current correction ratio of the fault threshold to obtain the adjusted fault threshold. Step S712, instruct the color correction sensor to perform a self-test based on the signal emission intensity obtained from the last adjustment and the adjusted fault threshold; Step S713: Determine whether the color correction sensor self-test has passed; Step S714: If the color correction sensor self-test is successful, then the color correction sensor self-test is confirmed to have passed. Step S715: If the color correction sensor fails to self-test, the latest fault repair instruction is re-parsed to obtain the current correction ratio value of the fault threshold, and the process returns to step S709 to repeat steps S709 to S713. Specifically, after iterating through all the correction ratio values of the fault thresholds, the self-test is determined to have failed, and a color correction sensor fault message is generated.
[0095] It should be noted that, in the embodiments of this disclosure, when the repair parameters include: a correction ratio value for adjusting the signal transmission intensity and a correction ratio value for adjusting the fault threshold, and a correction ratio threshold value for the signal transmission intensity and a correction ratio threshold value for the fault threshold are preset, the controller repeatedly adjusts the sensor parameters of the color correction sensor, controls the adjusted color correction sensor to perform a self-test, and determines the self-test success if the color correction sensor passes the self-test. Alternatively, the correction ratio value for the fault threshold can be repeatedly adjusted first. If the correction ratio value for the fault threshold is adjusted beyond the correction ratio threshold range and the self-test fails, the correction ratio value for the signal transmission intensity can be repeatedly adjusted to adjust the sensor parameters.
[0096] An exemplary embodiment of this disclosure provides a sensor fault handling apparatus, which can be a controller for a printing device, wherein the printing device includes a sensor module, the sensor module includes a color correction sensor, and a cover for covering the color correction sensor. Figure 8 A schematic block diagram of the functional modules of a sensor fault handling apparatus according to an exemplary embodiment of the present disclosure is shown. Figure 8 As shown, the sensor fault handling device 800 includes: The sending module 801 is configured to send a first self-test command to the color correction sensor in the sensor module in the first state. In the first state, the cover covers the color correction sensor. The first self-test command is used to instruct the color correction sensor to perform a self-test and return the first self-test information to the controller. The sending module 801 is also configured to send a first movement command to the cover if it is determined that the color correction sensor is normal based on the first self-test information. The first movement command is used to instruct the cover to move in a first direction so that the sensor module enters a second state. In the second state, the cover removes the cover from the color correction sensor. The determination module 802 is configured to determine the first fault detection result of the sensor module based on the intensity of the first feedback signal collected by the color correction sensor, wherein the first feedback signal is the signal collected by the color correction sensor during the movement of the cover in the first direction.
[0097] Optionally, module 802 is configured as follows: If the first feedback signal changes from a first intensity value to a second intensity value within a preset time period, a first fault detection result indicating that the sensor module has not malfunctioned is determined; otherwise, a first fault detection result indicating that the cover of the sensor module has malfunctioned is determined.
[0098] Optionally, the transmitting module 801 is also configured as follows: If a first fault detection result indicating that the sensor module has not malfunctioned is determined, a second movement command is sent to the cover after color correction is completed. The second movement command is used to instruct the cover to move in a second direction so that the sensor module switches to the first state. The second fault detection result of the sensor module is determined based on the intensity of the second feedback signal collected by the color correction sensor. The second feedback signal is the signal collected by the color correction sensor during the movement of the cover in the second direction.
[0099] Optionally, the transmitting module 801 is also configured as follows: Send a second self-test command to the color correction sensor, wherein the second self-test command is used to instruct the color correction sensor to perform a self-test and return the second self-test information to the controller; If the color correction sensor is determined to be normal based on the second self-test information, then the second movement command is sent.
[0100] Optionally, module 802 is also configured as follows: If the color correction sensor is determined to be abnormal based on the first self-test information, then the third fault detection result of the sensor module is determined, and the third fault detection result is used to indicate that the color correction sensor is abnormal.
[0101] Optional, such as Figure 8 As shown, the device also includes an adjustment module 803, configured to: If the color correction sensor malfunctions, adjust the sensor parameters of the color correction sensor; the sensor parameters include signal transmission strength and / or fault threshold. If the adjusted color correction sensor passes the self-test, it will output a message indicating that the color correction sensor fault has been successfully repaired.
[0102] Optionally, adjustment module 803 is configured as follows: Output the fault repair interface and obtain the fault repair instructions issued through the fault repair interface; Adjust the sensor parameters of the color correction sensor based on the fault repair command.
[0103] Optionally, the fault repair interface includes: an adaptive repair option control and a manual repair option control. Adjustment module 803 is configured as follows: In response to the manual repair option control being triggered, a manual settings interface is output; the manual settings interface is used to input the first repair parameter and obtain a fault repair command containing the first repair parameter; or, In response to the adaptive repair option control being triggered, the second repair parameter is determined according to the preset adjustment step value, and a fault repair instruction containing the second repair parameter is obtained.
[0104] Optionally, the manual settings interface includes: instructions for entering the first repair parameter; The indication information is generated based on the self-test information of the color correction sensor and is used to indicate whether the value of the first repair parameter being input is trending upwards or downwards.
[0105] Optionally, the repair parameters include: correction values for adjusting signal transmission strength, and / or correction values for adjusting fault thresholds.
[0106] This disclosure also provides an exemplary embodiment of a printing apparatus, including: a memory, a controller, and a computer program stored on the controller, the controller executing the computer program to implement the method of the above embodiments.
[0107] In one feasible approach, the printing device establishes a communication connection with a mobile terminal. The mobile terminal is used to send the printed document to the printing device. The following explanation uses the mobile terminal as an example.
[0108] Upon receiving a scan command, if the command is "Document Image Scan," then after entering the image acquisition interface, text extraction function options will be displayed. These options include: basic extraction and intelligent extraction (as follows). Figure 10Basic extraction refers to text extraction using local image processing algorithms. Intelligent extraction involves uploading images captured on the mobile device to the cloud, utilizing a large cloud-based model to extract text from the images, and returning the extracted text information. For example... Figure 10 Click the camera control, and after obtaining the image, use the selected basic extraction function to extract text or the intelligent extraction function to extract text.
[0109] After extracting the text from the image, a new printable document is created based on the extracted text (as shown below). Figure 11 and Figure 12 ), Figure 11 This screen displays the extracted text results, such as "XXXXXXXXXXXXXX". On this screen, you can select "Edit" to edit the extracted text, "Copy", or "Print" to send it to the printing device for printing. After selecting "Edit" or "Print", all the original extracted text will be included to create a new print document, and you will be taken to the new document page, where you can edit the document or send it to the printing device for printing.
[0110] In this embodiment, users are provided with two text extraction options. For images with relatively simple content, the basic extraction function is used; for images with more complex content, such as those containing background elements, the intelligent extraction function is used. This is to meet different text extraction needs of users and improve the accuracy and reliability of text extraction.
[0111] refer to Figure 9 The present invention describes a structural block diagram of an electronic device 900 that can serve as a printing apparatus, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0112] like Figure 9As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. The RAM 903 may also store various programs and data required for the operation of the electronic device 900. The computing unit 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0113] Multiple components in electronic device 900 are connected to I / O interface 905, including: input unit 906, output unit 907, storage unit 908, and communication unit 909. Input unit 906 can be any type of device capable of inputting information to electronic device 900. Input unit 906 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device. Output unit 907 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 908 may include, but is not limited to, disk and optical disk. Communication unit 909 allows electronic device 900 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and / or chipsets, such as Bluetooth™ devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.
[0114] The computing unit 901 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the methods of the exemplary embodiments of this disclosure can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 900 via ROM 902 and / or communication unit 909. In some embodiments, the computing unit 901 can be configured to perform the methods of the exemplary embodiments of this disclosure by any other suitable means (e.g., by means of firmware).
[0115] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0116] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0117] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0118] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0119] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0120] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions of the embodiments of this disclosure are performed, in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, a computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid-state drive (SSD).
[0121] Although this disclosure has been described in conjunction with specific features and embodiments, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of this disclosure. Accordingly, this specification and drawings are merely exemplary illustrations of the disclosure as defined by the appended claims and are to be considered as covering any and all modifications, variations, combinations, or equivalents within the scope of this disclosure. It is obvious that those skilled in the art can make various alterations and modifications to this disclosure without departing from its spirit and scope. Thus, this disclosure is also intended to include any such modifications and modifications that fall within the scope of the claims of this disclosure and their equivalents.
Claims
1. A method for handling sensor module faults, characterized in that, The method is applied in a controller of a printing device, the printing device including a sensor module, the sensor module including a color correction sensor, and a cover for covering the color correction sensor; the method includes: A first self-test command is sent to the color correction sensor in the sensor module in the first state. In the first state, the cover covers the color correction sensor. The first self-test command is used to instruct the color correction sensor to perform a self-test and return the first self-test information to the controller. If the color correction sensor is determined to be normal based on the first self-test information, a first movement command is sent to the cover, wherein the first movement command is used to instruct the cover to move in a first direction so that the sensor module enters a second state, and in the second state, the cover removes the cover from the color correction sensor; Based on the intensity of the first feedback signal collected by the color correction sensor, a first fault detection result of the sensor module is determined, wherein the first feedback signal is the signal collected by the color correction sensor during the movement of the cover in the first direction.
2. The sensor module fault handling method as described in claim 1, characterized in that, The determination of the first fault detection result of the sensor module based on the intensity of the first feedback signal acquired by the color correction sensor includes: If the first feedback signal changes from a first intensity value to a second intensity value within a preset time period, a first fault detection result indicating that the sensor module has not malfunctioned is determined; otherwise, a first fault detection result indicating that the cover of the sensor module has malfunctioned is determined.
3. The sensor module fault handling method as described in claim 1, characterized in that, The method further includes: If the first fault detection result indicating that the sensor module has not malfunctioned is determined, then after the color correction is completed, a second movement command is sent to the cover, wherein the second movement command is used to instruct the cover to move in a second direction so that the sensor module switches to the first state; Based on the intensity of the second feedback signal collected by the color correction sensor, a second fault detection result of the sensor module is determined, wherein the second feedback signal is the signal collected by the color correction sensor during the movement of the cover in the second direction.
4. The sensor module fault handling method as described in claim 3, characterized in that, Before sending a second movement command to the cover of the sensor, the method further includes: Send a second self-test command to the color correction sensor, wherein the second self-test command is used to instruct the color correction sensor to perform a self-test and return the second self-test information to the controller; If the color correction sensor is determined to be normal based on the second self-test information, then the second movement command is sent.
5. The sensor module fault handling method according to claim 1, characterized in that, The method further includes: If the color correction sensor is determined to be abnormal based on the first self-test information, then a third fault detection result of the sensor module is determined, which is used to indicate that the color correction sensor is abnormal.
6. The sensor module fault handling method according to any one of claims 1 to 5, characterized in that, The method further includes: If the color correction sensor malfunctions, the sensor parameters of the color correction sensor are adjusted; the sensor parameters include signal transmission strength and / or fault threshold. If the adjusted color correction sensor passes the self-test, it will output a message indicating that the color correction sensor has been successfully repaired.
7. The sensor module fault handling method according to claim 6, characterized in that, Adjusting the sensor parameters of the color correction sensor includes: Output the fault repair interface and obtain the fault repair instructions issued through the fault repair interface; The sensor parameters of the color correction sensor are adjusted based on the fault repair command.
8. The sensor module fault handling method according to claim 7, characterized in that, The fault repair interface includes: an adaptive repair option control and a manual repair option control. Obtaining fault repair instructions issued through the fault repair interface includes: In response to the triggering of the manual repair option control, a manual settings interface is output; the manual settings interface is used to input a first repair parameter and obtain a fault repair instruction containing the first repair parameter; or, In response to the triggering of the adaptive repair option control, the second repair parameter is determined according to the preset adjustment step value, and a fault repair instruction containing the second repair parameter is obtained.
9. The sensor module fault handling method according to claim 8, characterized in that, The manual settings interface includes: an instruction for inputting the first repair parameter; The indication information is generated based on the self-test information of the color correction sensor and is used to indicate whether the value of the input first repair parameter is increasing or decreasing.
10. The sensor module fault handling method according to claim 8, characterized in that, The repair parameters include: a correction value for adjusting the signal transmission strength, and / or a correction value for adjusting the fault threshold.
11. A printing apparatus, comprising a memory, a controller, and a computer program stored on the controller, characterized in that, The controller executes the computer program to implement the method according to any one of claims 1-10.