Scanning sensor control method and image forming apparatus

The motor stop is controlled through the level signal of the target sensor, and a flexible interrupt triggering condition and mechanism is adopted to solve the problem of failed reset of the image forming equipment scanning sensor, improving the reset success rate and reliability.

CN119254897APending Publication Date: 2025-01-03BEIJING PANTUM INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411430380.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

After the image forming device has difficulty accurately returning the scanning sensor to the initial position after the scanning is completed, resulting in the scanning function being unable to be used normally and the reset success rate and reliability are low.

Method used

The motor stop is controlled through the level signal generated by the target sensor, and different interrupt trigger conditions and interrupt mechanisms are adopted, including detecting changes in the level signal and changing the interrupt trigger conditions to ensure that the scan sensor returns to the initial position accurately.

Benefits of technology

Improves the success rate and reliability of the scan sensor reset, prevents reset failure caused by failure of interrupt signal triggering, and increases the success probability of the scan sensor returning to the initial position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254897A_ABST
    Figure CN119254897A_ABST
Patent Text Reader

Abstract

The invention provides a scanning sensor control method and an image forming apparatus. The image forming apparatus includes a motor, a scanning sensor, and a target sensor. Wherein the motor is used for driving the scanning sensor to move and executing scanning operation, when the scanning sensor is located at an initial position, the target sensor generates a first level signal, and when the scanning sensor is located at a non-initial position, the target sensor generates a second level signal. The method comprises the steps that under the condition that a motor is in a starting state, after it is detected that an interrupt triggering condition is met, an interrupt signal is triggered, and the interrupt triggering condition generates a first level signal for a target sensor; and controlling the motor to stop in response to the interrupt signal. According to the scheme, the scanning sensor can be controlled to accurately return to the initial position after scanning is finished. Moreover, the reset success rate of the scanning sensor can be improved, and the reliability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image forming technology, and in particular to a scanning sensor control method and an image forming device. Background Art

[0002] When the image forming device performs image scanning, the motor drives the scanning sensor to move from the initial position, thereby scanning the document to be scanned line by line. When the scanning is completed, the image forming device needs to control the scanning sensor to return to the initial position through the motor, otherwise the scanning function will not be able to be used normally. Summary of the invention

[0003] In view of this, the present application provides a scanning sensor control method and an image forming device, which are used to control the scanning sensor to accurately return to an initial position after scanning is completed.

[0004] In the first aspect, an embodiment of the present application provides a scanning sensor control method, which is applied to an image forming device, wherein the image forming device includes a motor, a scanning sensor and a target sensor; the motor is used to drive the scanning sensor to move and perform a scanning operation; when the scanning sensor is located at an initial position, the target sensor generates a first level signal, and when the scanning sensor is located at a non-initial position, the target sensor generates a second level signal; the above method includes: when the motor is in a started state, after detecting that an interrupt trigger condition is met, an interrupt signal is triggered, and the interrupt trigger condition is that the target sensor generates a first level signal; in response to the interrupt signal, the motor is controlled to stop.

[0005] In a possible implementation, before the motor is in the starting state, the method further includes: controlling the motor to start and setting the interrupt mechanism to the on state; and, in response to the interrupt signal, the method further includes: setting the interrupt mechanism to the off state.

[0006] In one possible implementation, in response to an interrupt signal, the method further includes: changing the interrupt trigger condition according to a level signal that triggers the interrupt signal; and controlling the motor to stop in response to the interrupt signal, including: in response to the interrupt signal, controlling the motor to stop when it is determined that the level signal that triggers the interrupt signal is a first level signal.

[0007] In one possible implementation, the interrupt trigger condition is changed according to the level signal of the triggering interrupt signal, including: when it is determined that the level signal of the triggering interrupt signal is a first level signal, the interrupt trigger condition is changed to generate a second level signal for the target sensor; when it is determined that the level signal of the triggering interrupt signal is a second level signal, the interrupt trigger condition is changed to generate a first level signal for the target sensor.

[0008] In a possible implementation, the method further includes: in response to the interrupt signal, when it is determined that the level signal triggering the interrupt signal is a second level signal, not controlling the running state of the motor.

[0009] In a possible implementation manner, the first level signal is a high level signal, and the second level signal is a low level signal.

[0010] In a second aspect, an embodiment of the present application provides an image forming device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute any one of the methods described in the first aspect above.

[0011] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any method described in the first aspect.

[0012] The present application provides a scanning sensor control method and image forming device, which have at least the following technical effects: after scanning, the scanning sensor can be controlled to accurately return to the initial position. In addition, the above technical solution can improve the scanning sensor reset success rate and has high reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions of 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 labor.

[0014] Figure 1 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application;

[0015] Figure 2 A schematic diagram of a level signal change process of a target sensor output provided in an embodiment of the present application;

[0016] Figure 3 A schematic diagram of a flow chart of a scanning sensor control method provided in an embodiment of the present application;

[0017] Figure 4 Another schematic diagram of a flow chart of a scanning sensor control method provided in an embodiment of the present application;

[0018] Figure 5 Another schematic diagram of a flow chart of a scanning sensor control method provided in an embodiment of the present application;

[0019] Figure 6 Another schematic diagram of a flow chart of a scanning sensor control method provided in an embodiment of the present application;

[0020] Figure 7 Another schematic diagram of a flow chart of a scanning sensor control method provided in an embodiment of the present application;

[0021] Figure 8 Another schematic diagram of the structure of the image forming device provided in the embodiment of the present application;

[0022] Fig. 9 Another structural schematic diagram of the image forming device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0024] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0025] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0026] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0027] Figure 1 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the image forming device may be provided with a scanning panel 11 , a scanning sensor 12 , and a target sensor 13 .

[0028] The scanning panel 11 is a user-visible component and can be used to place originals in scenes such as scanning or copying.

[0029] The scanning sensor 12 is an optical sensor for performing a scanning function, for example, a contact image sensor (CIS). In a scanning scenario, the image forming device can drive the scanning sensor 12 to move from an initial position through a motor, thereby scanning a document placed on the scanning panel line by line. The initial position refers to the scanning starting position of the scanning sensor 12 during any scanning process.

[0030] The target sensor 13 may be disposed at the initial position of the scanning sensor 12 and may be used to detect the position of the scanning sensor 12. Figure 2 As shown, when the scanning sensor 12 is in the initial position, the target sensor generates a first level signal, which may be a high level signal. On the contrary, when the scanning sensor 12 is not in the initial position, the target sensor 13 generates a second level signal, which may be a low level signal. Alternatively, in another implementation, the first level signal may also be a low level signal, and the second level signal may be a high level signal.

[0031] After any scanning operation is completed, the image forming device needs to drive the scanning sensor 12 to return to the initial position through the motor, otherwise, the scanning function will not be able to be used normally. Therefore, it is necessary to provide a control method for the scanning sensor so that the scanning sensor can accurately return to the initial position.

[0032] based on Figure 1 In a possible technical solution of the image forming device of the structure shown, the edge signal generated by the target sensor can be used to control the triggering of the interrupt signal. In the embodiment of the present application, the interrupt signal can be used to trigger the call of the interrupt processing function, and the interrupt processing function can be used to control the motor to stop driving the scanning sensor to move, so that the scanning sensor can accurately stop at the initial position.

[0033] Specifically, Figure 3As shown, first, the motor starts. After the motor is started, the motor drives the scanning sensor to move. When the scanning sensor reaches the initial position, the low-level signal generated by the target sensor switches to a high-level signal, that is, a rising edge signal is generated. Then, the rising edge signal can trigger the generation of an interrupt signal. The image forming device can call the interrupt processing function in response to the interrupt signal. Then, the image forming device can determine whether the edge signal that triggers the interrupt signal this time is a rising edge signal. In the case of determining that it is a rising edge signal, the image forming device can control the motor to stop, then the scanning sensor will stay at the initial position, and the scanning sensor is reset successfully. Then, the image forming device can wait for the next interrupt trigger. It is understandable that when the target sensor generates an edge signal to trigger the interrupt signal next time, the edge signal is a falling edge signal. In the case where the image forming device determines that the edge signal that triggers the interrupt signal is a falling edge signal, the image forming device will not need to control the motor to stop.

[0034] Although the above technical solution can successfully control the scanning sensor to return to the initial position in the scanning sensor reset scenario, the reliability of the solution is poor. Specifically, the rising edge signal is an instantaneous signal. In some fault scenarios, the instantaneous signal may be missed. At this time, the interrupt signal cannot be triggered normally, resulting in the image forming device being unable to control the motor to stop when the scanning sensor reaches the initial position. Then, the scanning sensor reset fails and the scanning function cannot be used normally.

[0035] In view of the above problems existing in the above technical solutions, the technical solutions of the following embodiments of the present application are proposed.

[0036] See also Figure 4 , is a flow chart of a scanning sensor control method provided in an embodiment of the present application. Figure 4 As shown, the method includes:

[0037] The process begins.

[0038] S101, the image forming device controls the motor to start.

[0039] S102 : The image forming device obtains a level signal generated by a target sensor according to a set period.

[0040] S103: The image forming device determines whether the level signal generated by the target sensor is a high level signal. If yes, execute step S104; otherwise, execute step S102 again.

[0041] S104: The image forming device controls the motor to stop.

[0042] The process ends.

[0043] In the embodiment of the present application, after the process of controlling the scanning sensor to reset is started, first, the image forming device can control the motor to start, and then the motor can drive the scanning sensor to move to return to the initial position. After the motor is started, the image forming device can detect the change of the level signal generated by the target sensor. After detecting that the level signal generated by the target sensor switches from a low level to a high level, it means that the scanning sensor has moved to the initial position. At this time, the image forming device can control the motor to stop, so that the scanning sensor can stay at the initial position and reset successfully.

[0044] Specifically, the image forming device can obtain the level signal output by the target sensor according to the set cycle and detect the polarity of the level signal. When the output level signal is detected to be low, it means that the scanning sensor has not reached the initial position. At this time, the image forming device can continue to obtain the level signal output by the target sensor according to the set cycle. On the contrary, when the level signal output by the target sensor is detected to be high, it means that the scanning sensor has currently moved from other positions to the initial position. Then, the image forming device can control the motor to stop, so that the scanning sensor stays at the initial position. Furthermore, in order to prevent the image forming device from repeatedly controlling the motor to stop when the scanning sensor is at the initial position, the process of controlling the scanning sensor to reset can be terminated at this time, and the level signal generated by the target sensor can be stopped.

[0045] In the above technical solution, the motor is no longer controlled to stop by triggering an interrupt signal, but the level signal output by the target sensor is directly detected. When the level signal is detected to switch from a low level to a high level for the first time, the motor is controlled to stop, so that the scanning sensor successfully stays at the initial position. Through the above technical solution, the scanning sensor reset failure caused by the failure of the interrupt signal to trigger can be prevented, the probability of successful scanning sensor reset is increased, and the reliability is higher.

[0046] In another embodiment of the present application, the interrupt trigger condition can be set as a high-level trigger of the target sensor output. In the embodiment of the present application, the interrupt trigger condition refers to the condition that triggers the generation of an interrupt signal. In the case where the interrupt trigger condition is set as a high-level trigger of the target sensor output, after detecting that the target sensor outputs a high-level signal, an interrupt signal is triggered. Based on this interrupt trigger condition, Figure 5 Another flow chart of the scanning sensor control method provided in the embodiment of the present application is given. Figure 5 As shown, the method includes:

[0047] The process begins.

[0048] S201, the image forming device controls the motor to start.

[0049] S202: The image forming device detects an interrupt signal.

[0050] S203: The image forming device controls the motor to stop.

[0051] The process ends.

[0052] In the embodiment of the present application, the interrupt trigger condition can be set to be triggered after a high-level signal output by the target sensor is detected. Then, after the scanning sensor reset process starts, first, the image forming device can control the motor to start, and then the motor will drive the scanning sensor to move to the initial position. When the scanning sensor reaches the initial position, the target sensor will output a high-level signal, at which time, an interrupt signal is triggered. Then, the image forming device can respond to the interrupt signal, call the interrupt processing function, and control the motor to stop, so that the scanning sensor can stay at the initial position and reset successfully.

[0053] In the above technical solution, the trigger condition of the interrupt signal is changed from rising edge signal trigger to high level signal trigger. Since the duration of the high level signal is longer, it can prevent the failure of interrupt signal triggering caused by failure to detect the trigger condition, thereby improving the reliability of the solution and enabling the scanning sensor to successfully stay in the initial position.

[0054] However, the above solution still has defects. That is, since the high-level signal lasts for a long time, the interrupt signal will be continuously triggered multiple times when the scanning sensor is in the initial position, which may cause a malfunction.

[0055] In view of the defects of the above-mentioned embodiment, in another embodiment of the present application, the interrupt mechanism can be re-controlled to start after each scanning sensor reset process starts, and the interrupt mechanism can be turned off after the interrupt signal is detected for the first time. This can prevent the interrupt signal from being continuously triggered multiple times when the scanning sensor is in the initial position. Figure 6 Another flow chart of the scanning sensor control method provided in the embodiment of the present application is given. Figure 6 As shown, the method includes:

[0056] The process begins.

[0057] S301, the image forming device controls the motor to start.

[0058] S302: The image forming device starts an interrupt mechanism and sets an interrupt trigger condition as a high level trigger output by a target sensor.

[0059] S303: The image forming device detects an interrupt signal.

[0060] S304: The image forming device turns off the interruption mechanism.

[0061] S305: The image forming device controls the motor to stop.

[0062] The process ends.

[0063] In an embodiment of the present application, after the scanning sensor reset process starts, first, the image forming device can control the motor to start. Then, the image forming device can turn on the interrupt mechanism and set the interrupt trigger condition to be triggered by the target sensor outputting a high level. In an embodiment of the present application, the interrupt mechanism refers to a function that triggers the generation of an interrupt signal to call an interrupt processing function according to a preset condition. It can be understood that when the interrupt mechanism is in an on state, when it is detected that the preset interrupt trigger condition is met, an interrupt signal can be generated, and then the interrupt processing function is called. When the interrupt mechanism is in a closed state, the generation of an interrupt signal cannot be triggered.

[0064] Based on the above settings, when the motor drives the scanning sensor to move to the initial position, the target sensor outputs a high-level signal. At this time, the interrupt triggering condition is met, and the image forming device detects the interrupt signal. Then, the image forming device can respond to the interrupt signal, call the interrupt processing function, and control the motor to stop so that the scanning sensor stays at the initial position. In addition, the image forming device can turn off the interrupt mechanism. Since the interrupt mechanism has been turned off, even if the target sensor continues to output a high-level signal when the scanning sensor is at the initial position, it can no longer trigger the generation of an interrupt signal. In this way, it can prevent the interrupt signal from being continuously triggered multiple times when the scanning sensor is at the initial position.

[0065] In another embodiment of the present application, the initial interrupt trigger condition can be set as a high level trigger when the target sensor outputs a high level trigger. Thereafter, after each interrupt trigger, the image forming device can change the interrupt trigger condition so that the interrupt trigger condition switches between a high level trigger and a low level trigger in a cycle, thereby preventing the interrupt signal from being continuously triggered multiple times when the scanning sensor is in the initial position. Figure 7 Another flow chart of the scanning sensor control method provided in the embodiment of the present application is given. Figure 7 As shown, the method includes:

[0066] The process begins.

[0067] S401, the image forming device controls the motor to start.

[0068] S402: The image forming device detects an interrupt signal.

[0069] S403: The image forming device obtains the polarity of the level signal that triggers the interrupt signal.

[0070] In the embodiment of the present application, after the scanning sensor reset process starts, first, the image forming device can control the motor to start. Then, the motor can drive the scanning sensor to move to the initial position. When the interrupt signal is triggered, the image forming device can respond to the interrupt signal and call the interrupt processing function. In addition, the image forming device can obtain the polarity of the level signal that triggers the interrupt signal.

[0071] S404: The image forming device resets the interrupt trigger condition according to the polarity of the acquired level signal.

[0072] If the image forming device determines that the interrupt signal is triggered by a high-level signal output by the target sensor, the image forming device can reset the interrupt trigger condition to be triggered by a low-level signal output by the target sensor. If the image forming device determines that the interrupt signal is triggered by a low-level signal output by the target sensor, the image forming device can reset the interrupt trigger condition to be triggered by a high-level signal output by the target sensor. In this way, the interrupt trigger condition can be cyclically switched between a low-level trigger and a high-level trigger.

[0073] S405: The image forming device determines whether the acquired level signal is a high level. If yes, execute step S406; otherwise, continue to wait for the next interrupt signal.

[0074] When the image forming device determines that the interrupt signal is triggered by the high-level signal output by the target sensor, it means that the scanning sensor has reached the initial position, and at this time, the motor can be controlled to stop. After the motor is controlled to stop, since the interrupt trigger condition has been changed to a low-level signal trigger, the interrupt signal will not be continuously triggered when the scanning sensor is in the initial position. At this time, the image forming device can wait for the next interrupt to be triggered, and the level signal that triggers the next interrupt will be a low-level signal.

[0075] On the contrary, if the interrupt signal is triggered by the low level signal output by the target sensor, it means that the scanning sensor has not reached the initial position. At this time, the image forming device does not need to control the motor to stop and can wait for the next interrupt to be triggered. It can be understood that since the interrupt triggering condition has been changed, the level signal that triggers the interrupt next time will be a high level signal.

[0076] S406: The image forming device controls the motor to stop.

[0077] The process ends.

[0078] In the above technical solution, when the high-level signal output by the target sensor triggers an interrupt, it means that the scanning sensor has reached the initial position. At this time, the image forming device can control the motor to stop on the one hand, and change the interrupt trigger condition to a low-level signal trigger on the other hand. In this way, even if the target sensor will continue to output a high-level signal when the scanning sensor is in the initial position, it will no longer be able to continuously trigger the interrupt. Only when the scanning sensor leaves the initial position next time and the target sensor outputs a low level, can the interrupt be triggered again. At this time, since the interrupt is triggered by a low-level signal, the image forming device will not control the motor to stop. It can be seen that through the above technical solution, it is also possible to prevent the interrupt from being continuously triggered on the basis of improving the success rate of scanning sensor reset.

[0079] See also Figure 8 Schematic diagram of the structure of an image forming device provided in an embodiment of the present application. Figure 8 As shown, the image forming device includes: a detection module 71 and an execution module 72.

[0080] The detection module 71 is used to trigger an interrupt signal when the motor is in the starting state and after detecting that an interrupt trigger condition is met, the interrupt trigger condition is that the target sensor generates a first level signal.

[0081] The execution module 72 is used for controlling the motor to stop in response to the interrupt signal.

[0082] As a possible implementation, before the motor is in the starting state, the execution module 72 is also used to: control the motor to start and set the interrupt mechanism to the on state; and, in response to the interrupt signal, the execution module 72 is also used to: set the interrupt mechanism to the off state.

[0083] As a possible implementation method, in response to an interrupt signal, the execution module 72 is also used to: change the interrupt trigger condition according to the level signal that triggers the interrupt signal; in response to the interrupt signal, control the motor to stop, including: in response to the interrupt signal, when it is determined that the level signal that triggers the interrupt signal is a first level signal, control the motor to stop.

[0084] As a possible implementation method, the interrupt trigger condition is changed according to the level signal of the triggering interrupt signal, including: when it is determined that the level signal of the triggering interrupt signal is a first level signal, the interrupt trigger condition is changed to generate a second level signal for the target sensor; when it is determined that the level signal of the triggering interrupt signal is a second level signal, the interrupt trigger condition is changed to generate a first level signal for the target sensor.

[0085] As a possible implementation manner, the execution module 72 is further configured to: in response to the interrupt signal, when it is determined that the level signal triggering the interrupt signal is a second level signal, not control the running state of the motor.

[0086] As a possible implementation manner, the first level signal is a high level signal, and the second level signal is a low level signal.

[0087] Through the above technical solution, the scanning sensor can be accurately returned to the initial position, preventing the scanning function from being unable to be used normally due to the failure of the scanning sensor to reset. In addition, the probability of the scanning sensor successfully returning to the initial position can be increased, and the reliability is higher.

[0088] Corresponding to the above-mentioned embodiment, the present application also provides an image forming device. Fig. 9 The schematic diagram of the structure of an image forming device provided in an embodiment of the present application is as follows: the image forming device 400 may include: a processor 401, a memory 402, and a communication unit 403. These components communicate via one or more buses. It can be understood by those skilled in the art that the structure of the image forming device shown in the figure does not constitute a limitation on the embodiment of the present application, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0089] The communication unit 403 is used to establish a communication channel so that the image forming device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0090] The processor 401 is the control center of the image forming device. It uses various interfaces and lines to connect various parts of the entire image forming device. It runs or executes software programs, instructions, and / or modules stored in the memory 402, and calls data stored in the memory to perform various functions of the image forming device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 401 can only include a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.

[0091] The memory 402 is used to store the execution instructions of the processor 401. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0092] When the execution instructions in the memory 402 are executed by the processor 401 , the image forming device 400 is enabled to execute part or all of the steps in various embodiments of the present application.

[0093] In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the scanning sensor control method provided in the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0094] In a specific implementation, the present application also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the scanning sensor control method provided in the present application.

[0095] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present application are essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0096] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0097] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0098] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0099] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0100] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0101] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0102] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

[0103] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. A scanning sensor control method, characterized in that: Applied to an image forming device, the image forming device comprises a motor, a scanning sensor and a target sensor; the motor is used to drive the scanning sensor to move and perform a scanning operation; when the scanning sensor is located at an initial position, the target sensor generates a first level signal, and when the scanning sensor is located at a non-initial position, the target sensor generates a second level signal; the method comprises: When the motor is in the starting state, after detecting that an interrupt trigger condition is met, an interrupt signal is triggered, wherein the interrupt trigger condition is that the target sensor generates a first level signal; In response to the interrupt signal, the motor is controlled to stop.

2. The method according to claim 1, characterized in that Before the motor is in the starting state, the method further includes: controlling the motor to start and setting the interrupt mechanism to the starting state; and, In response to the interrupt signal, the method further includes: setting the interrupt mechanism to a closed state.

3. The method according to claim 1, characterized in that In response to the interrupt signal, the method further includes: Changing the interrupt triggering condition according to the level signal that triggers the interrupt signal; Controlling the motor to stop in response to the interrupt signal includes: in response to the interrupt signal, controlling the motor to stop when it is determined that the level signal triggering the interrupt signal is a first level signal.

4. The method according to claim 3, characterized in that Changing the interrupt triggering condition according to the level signal that triggers the interrupt signal includes: When it is determined that the level signal triggering the interrupt signal is a first level signal, changing the interrupt trigger condition to generate a second level signal for the target sensor; In the case where it is determined that the level signal triggering the interrupt signal is a second level signal, the interrupt trigger condition is changed so that the target sensor generates a first level signal.

5. The method according to claim 4, characterized in that The method further comprises: In response to the interrupt signal, when it is determined that the level signal triggering the interrupt signal is a second level signal, the operating state of the motor is not controlled.

6. The method according to any one of claims 1 to 5, characterized in that: The first level signal is a high level signal, and the second level signal is a low level signal.

7. An image forming device, characterized in that: include: A memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device is caused to perform the method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 6.