Chip, communication method and consumable box

The consumable chip that monitors the change of clock signal is solved by solving the data communication interruption caused by chip selection signal interference, and the efficient and accurate communication between the consumable chip and the image forming device is realized, and the start and end time of the command information is flexibly judged.

CN120233960APending Publication Date: 2025-07-01APEX MICROELECTRONICS CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410813824.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-06-21
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In the process of data communication, existing consumable chips are susceptible to signal interference, causing high-level jumps in chip select signals, resulting in interruption of read or write operations, affecting the accuracy and efficiency of data communication, and being unable to flexibly judge the start and end time of instruction information.

Method used

The consumable chip determines the start and end of data communication by monitoring the change of clock signals, and uses clock terminals and data terminals to communicate. There is no need for chip selection terminals, and flexibly determines the end time of command information according to the command type.

Benefits of technology

The accuracy and efficiency of data communication are improved, the possibility of errors in execution of instruction information is reduced, and the accuracy and working efficiency of communication between the consumable chip and the image forming device are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120233960A_ABST
    Figure CN120233960A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a chip, a communication method and a consumable box, and the chip is used for determining to start to execute instruction information when a clock signal is changed from a continuous first level signal to a first level signal and a second level signal which are alternated; receiving first type instruction information or second type instruction information sent by the image forming device; if the instruction information is the first type of instruction information, determining a target reference moment based on the received clock signal; if it is not detected that the clock signal is changed from the first level signal to the second level signal within a preset target duration after a target reference moment, it is determined that execution of the instruction information is ended; if the instruction information is the second type of instruction information, it is determined that execution of the instruction information is ended at the ending moment of the second type of instruction information, and the ending moment is determined by the content of the second type of instruction information. The accuracy of data communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of a Chinese patent application with the application number 202311871796.3 and the application title "A Consumable Chip and a Consumable Cartridge" filed with the National Intellectual Property Administration on December 29, 2023, the entire content of which is incorporated herein by reference. Technical Field

[0002] This application relates to the field of imaging technologies, and particularly to a chip, a communication method, and a consumable cartridge. Background Art

[0003] An image forming apparatus, such as a printer, a copier, a fax machine, etc., is used to image information to be imaged onto an imaging medium such as paper through an imaging material such as ink. Imaging auxiliary information needs to be obtained during the imaging process of the image forming apparatus to complete the imaging process. The imaging auxiliary information is usually recorded in a consumable chip. The consumable chip is detachably mounted in a consumable cartridge. The consumable cartridge can be an ink cartridge filled with ink or a toner cartridge filled with toner, and the ink and toner are recording materials. The consumable cartridge is detachably mounted in the image forming apparatus.

[0004] When the consumable cartridge is mounted in the image forming apparatus, an electrical connection is established between the consumable chip in the consumable cartridge and the image forming apparatus, and data communication is performed between them. For example, the consumable chip can be used to control the authentication and data matching between the consumable cartridge and the image forming apparatus, and provide imaging auxiliary information for the image forming apparatus during the subsequent imaging process of the image forming apparatus. Specifically, the consumable chip on the consumable cartridge and the image forming apparatus can be electrically connected through corresponding terminals.

[0005] Currently, a common consumable chip is configured with a chip select terminal, a clock terminal, and a data terminal to complete data communication with the image forming apparatus. Among them, the chip select terminal and the clock terminal of the consumable chip respectively receive a chip select signal and a clock signal CLK sent by the image forming apparatus, and the data terminal receives instruction information sent by the image forming apparatus, or the consumable chip sends data information to the image forming apparatus through the data terminal. Usually, multiple consumable cartridges can be installed in the image forming apparatus, and the image forming apparatus can select the consumable chip it needs to communicate with through the chip select signal. For example, as Figure 1 shown, when the image forming apparatus needs to perform data communication with the consumable chip, the image forming apparatus can convert the chip select signal into a high level and send the high-level chip select signal to the chip select terminal of the consumable chip. When sending the chip select signal, the image forming apparatus also sends the clock signal CLK and data information. When the consumable chip receives the high-level chip select signal, it can determine to start data communication with the image forming apparatus, and the consumable chip starts to perform a write operation or a read operation.

[0006] When the data communication is completed or when it is necessary to terminate the data communication, the image forming apparatus converts the chip select signal to a low level. When the chip select signal received by the consumable chip is converted to a low level, the consumable chip terminates the read operation or the write operation and stops data communication with the image forming apparatus.

[0007] In the above process, the consumable chip needs to receive the chip select signal through the chip select terminal to control the data communication process. However, during the data communication process, due to signal interference or poor contact between the consumable chip and the image forming apparatus, it is easy to cause an error in the phenomenon of high-level jump of the chip select signal, resulting in the interruption of the read or write operation of the consumable chip, thereby affecting the accuracy of data communication and the data communication efficiency.

[0008] In some technologies, the consumable chip can determine whether the image forming apparatus and the consumable chip are performing data communication by monitoring the state change of the clock signal. When the image forming apparatus attempts to perform data communication with the consumable chip, the image forming apparatus sends a clock signal to the consumable chip, and the clock signal received by the consumable chip has a rising edge or a high level. Similarly, when the image forming apparatus terminates the data communication with the consumable chip, the clock signal received by the consumable chip becomes a continuous level signal.

[0009] In the above process, the consumable chip may not need to be provided with a chip select terminal, and the start and end of the data communication between the consumable chip and the image forming apparatus can be determined only through the clock terminal and the data terminal. Since when the image forming apparatus and the consumable chip perform data communication, the data communication usually includes a plurality of instruction messages, the consumable chip needs to accurately determine the start and end times of each instruction message to ensure the accuracy of data communication; in addition, it is impossible to flexibly determine the end of the instruction according to the instruction type, resulting in a judgment error when it is impossible to determine the start and end of the instruction by monitoring the clock signal. Summary of the Invention

[0010] In view of this, the present application provides a chip, a communication method, and a consumable cartridge to improve the accuracy of data communication of the consumable chip.

[0011] In a first aspect, an embodiment of the present application provides a chip, the chip communicates with an image forming apparatus, the communication process includes a plurality of instruction messages, the chip includes a clock terminal and a data terminal, the clock terminal is used to receive a clock signal, the data terminal is used to send or receive a data signal, and the chip is used to determine to start executing the instruction message when the clock signal changes from a continuous first level signal to an alternating first level signal and a second level signal;

[0012] Receive a first type of instruction message or a second type of instruction message sent by the image forming apparatus;

[0013] If it is the first type of instruction information, determine a target reference time based on the received clock signal; if the clock signal is not detected to change from the first level signal to the second level signal within a preset target duration after the target reference time, determine to end the execution of the instruction information;

[0014] If it is the second type of instruction information, at the end time of the second type of instruction information, determine to end the execution of the instruction information, where the end time is determined by the content of the second type of instruction information.

[0015] In a possible implementation manner of the first aspect, the chip stores marking information, and the marking information is used to indicate the first type of instruction information or the second type of instruction information.

[0016] In a possible implementation manner of the first aspect, the chip is further configured to: determine a preset target duration based on the content of the first type of instruction information; where the preset target durations corresponding to the first type of instruction information with different contents are not completely the same.

[0017] In a possible implementation manner of the first aspect, the preset target duration is greater than the duration of one clock cycle and less than the interval duration between this instruction information and the next instruction information.

[0018] In a possible implementation manner of the first aspect, the first level signal includes a low level signal, and the second level signal includes a high level signal.

[0019] In a possible implementation manner of the first aspect, the chip is specifically configured to: when sending a reply message to the image forming device, use the nth clock signal received after starting to send the reply message as the reference clock signal, and determine the target change time of the reference clock signal as the target reference time; where n is an integer greater than 0, and the target change time of the reference clock signal includes the time when the reference clock signal changes from the first level signal to the second level signal, or from the second level signal to the first level signal.

[0020] In a possible implementation manner of the first aspect, the chip is further configured to: when it is detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the target reference time, use the nth clock signal received after the target reference time as the reference clock signal again, and update the target reference time based on the target change time of the reference clock signal;

[0021] If it is detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference time, the target reference time is updated again until it is not detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference time, and it is determined to end the execution of the instruction information.

[0022] In a possible implementation manner of the first aspect, the chip is specifically configured to: when sending a reply message to the image forming device, use the clock signal received when starting to send the reply message as the reference clock signal, use the target change time of the reference clock signal as the target reference time, and start the first timing at the target reference time;

[0023] If the target change of the clock signal is not detected when the first timing reaches the duration of n - 1 clock signals, the second timing is started; wherein, the target change of the clock signal includes the clock signal changing from the first level signal to the second level signal, or from the second level signal to the first level signal;

[0024] If the clock signal does not change from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, it is determined to end the execution of the instruction information.

[0025] In a possible implementation manner of the first aspect, the chip is further configured to: if the target change of the clock signal is detected when the first timing reaches the duration of the n - 1 clock signals, use the (n - 1)th clock signal after the target reference time as the reference clock signal again, update the target reference time based on the target change time of the reference clock signal, and perform the first timing again;

[0026] If the target change of the clock signal is detected when the first timing reaches the duration of n clock signals, use the nth clock signal after the target reference time as the reference clock signal again, update the target reference time based on the target change time of the reference clock signal, and perform the first timing again;

[0027] If the target change of the clock signal is detected when the first timing reaches the duration of n clock signals again, update the reference clock signal and the target reference time again according to the nth clock signal after the target reference time, and perform the first timing again until the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals again, and then perform the second timing.

[0028] In a possible implementation of the first aspect, the chip is specifically configured to: update the target reference time based on the target change time of the reference clock signal, clear the first timing, and restart the first timing.

[0029] In a possible implementation of the first aspect, the chip is further configured to: if it is detected that the clock signal changes from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, update the target reference time and restart the first timing;

[0030] if the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals, restart the second timing;

[0031] if it is detected that the clock signal changes from the first level signal to the second level signal during the process that the second timing reaches the preset target duration again, re-update the target reference time until the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals again, and the target change of the clock signal from the first level signal to the second level signal is not detected during the process that the second timing reaches the preset target duration again, and then determine to end the execution of the instruction information.

[0032] In a possible implementation of the first aspect, the chip is specifically configured to: if the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals, clear the second timing and restart the second timing.

[0033] In a second aspect, an embodiment of the present application provides a communication method, which is applied to the chip according to any one of the above first aspects, and the method includes:

[0034] When the clock signal changes from the continuous first level signal to the alternating first level signal and second level signal, determine to start executing the instruction information;

[0035] Receive the first type of instruction information or the second type of instruction information sent by the image forming apparatus;

[0036] If it is the first type of instruction information, determine the target reference time based on the received clock signal; if the change of the clock signal from the first level signal to the second level signal is not detected within the preset target duration after the target reference time, determine to end the execution of the instruction information;

[0037] If it is the second type of instruction information, at the end time of the second type of instruction information, determine to end the execution of the instruction information, where the end time is determined by the content of the second type of instruction information.

[0038] In a third aspect, an embodiment of the present application provides a consumable cartridge, including the chip described in any one of the first aspects above.

[0039] With the solution provided by the embodiment of the present application, the consumable chip communicates with the image forming apparatus. The communication process includes a number of instruction messages. The consumable chip is configured to determine to start executing the instruction message when the clock signal changes from a continuous first level signal to an alternating first level signal and second level signal, and receive a first type of instruction message or a second type of instruction message sent by the image forming apparatus. If it is a first type of instruction message, a target reference time is determined based on the received clock signal. If the change of the clock signal from the first level signal to the second level signal is not detected within a preset target duration after the target reference time, it is determined that the execution of the instruction message ends. If it is a second type of instruction message, at the end time of the second type of instruction message, it is determined that the execution of the instruction message ends, and the end time is determined by the content of the second type of instruction message. In this way, in the embodiment of the present application, when the consumable chip detects that the clock signal changes from a continuous first level signal to an alternating first level signal and second level signal, it can determine that the instruction message starts to be executed. When receiving a first type of instruction message, the consumable chip can determine whether to end the execution of the instruction message according to the target reference time. When receiving a second type of instruction message, the consumable chip can determine to end the execution of the instruction message at the end time of the second type of instruction message. That is, there is no need to set a chip select terminal, thereby solving the problem that the chip select signal is interfered and causes the chip read or write operation to be interrupted, ensuring the accuracy of data communication and the data communication efficiency. Moreover, the consumable chip can determine the start execution time and end execution time of each instruction message, which can reduce the possibility of incorrect execution of the instruction message and improve the communication accuracy between the consumable chip and the image forming apparatus. Also, in the embodiment of the present application, different methods can be used to judge the end time of the instruction message for different instruction types, that is, the end time of the instruction message can be flexibly judged according to the type of the instruction message, which can reduce the probability of misjudgment when monitoring the clock signal to judge the start and end of the instruction, and further ensure the working efficiency of the consumable chip and the data communication efficiency. Description of the Drawings

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0041] Figure 1 It is a working timing diagram of an existing consumable chip;

[0042] Figure 2a Schematic structural diagram of a communication system provided by an embodiment of the present application;

[0043] Figure 2b Schematic structural diagram of another communication system provided by an embodiment of the present application;

[0044] Figure 3 Schematic structural diagram of a consumable cartridge provided by an embodiment of the present application;

[0045] Figure 4 Schematic structural diagram of a printhead needle of a printing device provided by an embodiment of the present application;

[0046] Figure 5 Schematic structural diagram of a consumable chip provided by an embodiment of the present application;

[0047] Figure 6 Schematic enlarged partial structural diagram of a printhead needle of a printing device provided by an embodiment of the present application;

[0048] Figure 7a Schematic structural diagram of another consumable chip provided by an embodiment of the present application;

[0049] Figure 7b Schematic structural diagram of another consumable chip provided by an embodiment of the present application;

[0050] Figure 7c Schematic structural diagram of a storage component in a consumable chip provided by an embodiment of the present application;

[0051] Figure 8a Schematic scenario diagram of the working timing of a consumable chip provided by an embodiment of the present application;

[0052] Figure 8b Schematic scenario diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0053] Figure 9a Schematic scenario diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0054] Figure 9b Schematic scenario diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0055] Figure 9c Schematic scenario diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0056] Figure 10a Schematic scenario diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0057] Figure 10bA schematic diagram of the working timing scenario of another consumable chip provided by an embodiment of the present application;

[0058] Figure 10c A schematic diagram of the working timing scenario of another consumable chip provided by an embodiment of the present application;

[0059] Figure 11a A schematic diagram of the working timing scenario of another consumable chip provided by an embodiment of the present application;

[0060] Figure 11b A schematic diagram of the working timing scenario of another consumable chip provided by an embodiment of the present application;

[0061] Figure 12 A schematic flowchart of a communication method provided by an embodiment of the present application. Detailed implementation manners

[0062] For a better understanding of the technical solution of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0063] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0064] 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 of "a", "the" and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.

[0065] It should be understood that the term " / and / " used herein 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 simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.

[0066] See Figure 2a , a schematic diagram of the structure of a communication system provided by an embodiment of the present application. As Figure 2aAs shown in the figure, the communication system includes a host 100 and a chip 200. The host 100 is provided with a communication port 101, and the slave device is provided with an interface module 201. A communication link is established between the communication port 101 and the interface module 201. Through the communication link, the host 100 and the chip 200 can transmit information. Specifically, the communication port 101 and the interface module 201 can be electrically connected in contact by means of pins, contacts or elastic pieces, etc., so as to establish a communication link. In other embodiments, the communication link can also be a non-contact communication link, that is, a wireless communication link. At this time, the communication port 101 and the interface module 201 can include antennas or coils for transmitting wireless signals. The host 100 involved in the embodiments of the present application is a device that can implement data processing, control or related operations. The chip 200 is used to be installed on the host 100 to assist the host 100 in completing related functions.

[0067] In one example, the host can be a computer, and the chip can be a peripheral device / device of the computer. In another example, the host can be a mobile terminal (such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, handheld computer), etc.), and the chip is an accessory or peripheral device / device of the mobile terminal, such as a lithium battery chip, a wearable device chip, etc. In some application scenarios, for example Figure 2b , the host 100 is a printing device 110, and the chip 200 is a consumable chip 210. The printing device 110 is provided with a communication port 111, and the consumable chip 210 is provided with an interface module 211. A communication link is established between the communication port 111 and the interface module 211. The printing device 110 and the consumable chip 210 can transmit information through the communication link. For example, during the imaging process, the consumable chip 210 is used to provide identity recognition information and record the information on the usage status of the material. In the prior art, when the printing device 110 sends a signal to the consumable chip 210, the printing device 110 is the sender and the consumable chip 210 is the receiver; when the consumable chip 210 sends a signal to the printing device 110, the consumable chip 210 is the sender and the printing device 110 is the receiver.

[0068] For the convenience of description, in the following, the printing device 110 and the consumable chip 210 are taken as examples to illustrate the technical solutions provided by the embodiments of the present application. However, those skilled in the art should understand that in addition to the printing device 110 and the consumable chip 210, the technical solutions provided by the embodiments of the present application can also be applied to other types of hosts and chips, and the embodiments of the present application do not limit this.

[0069] During the imaging process, the printing device 110 needs the assistance of the imaging auxiliary information of the consumable chip 210 in the consumable cartridge 21 to complete the imaging process. The consumable cartridge 21 can be Figure 3The structure shown. In addition to being recorded in the printing device 110, the imaging auxiliary information of the printing device 110 is also recorded on the consumable chip 210. The consumable chip 210 mainly functions as an identity recognition and provides the usage status of the recording material. Therefore, when the consumable chip 210 is installed on the printing device 110, the printing device 110 will read the information of the consumable chip 210 and also send the status and related information of the printing job to the consumable chip 210. In the embodiment of the present application, the consumable chip 210 is connected to the printing device 110 through electrical contact. For example, the contact pins on the printing device 110 are in electrical contact with the contact part in the consumable chip 210 to achieve a communication link.

[0070] As Figure 4 shown, the printing device 110 includes a contact pin holder 111. The contact pin holder 111 includes an upper end face 1111 of the contact pin holder 111 in the Y-axis direction, a front end face 1112 of the contact pin holder 111 in the X-axis direction, a first contact pin 1113, a second contact pin 1114, a third contact pin 1115, a fourth contact pin 1116, and a fifth contact pin 1117. As Figure 5 shown, the consumable chip 210 includes a data terminal 2101, a chip select terminal 2102, a clock terminal 2103, a power supply terminal 2104, and a ground terminal 2105. Among them, the first contact pin 1113 of the printing device 110 can be in contact with the data terminal 2101 of the consumable chip 210, the second contact pin 1114 of the printing device 110 can be in contact with the chip select terminal 2102 of the consumable chip 210, the third contact pin 1115 of the printing device 110 can be in contact with the power supply terminal 2104 of the consumable chip 210, the fourth contact pin 1116 of the printing device 110 can be in contact with the clock terminal 2103 of the consumable chip 210, and the fifth contact pin 1117 of the printing device 110 can be in contact with the ground terminal 2105 of the consumable chip. In this way, the printing device 110 can send a data signal to the consumable chip 210 through the contact between the first contact pin 1113 and the data terminal 2101, the printing device 110 can send a chip select signal to the consumable chip 210 through the contact between the second contact pin 1114 and the chip select terminal 2102, the printing device 110 can send a clock signal to the consumable chip 210 through the contact between the fourth contact pin 1116 and the clock terminal 2103, the printing device 110 can provide a working voltage to the consumable chip 210 through the contact between the third contact pin 1115 and the power supply terminal 2104, and the printing device 110 can provide a unified reference low level for the data received and sent between the printing device 110 and the consumable chip 210 through the contact between the fifth contact pin 1117 and the ground terminal 2105, ensuring the correctness and stability of the communication process.

[0071] In some embodiments, the data terminal 2101, chip select terminal 2102, clock terminal 2103, power terminal 2104, and ground terminal 2105 in the consumable chip 210 are all planar terminals. The first contact pin 1113, second contact pin 1114, third contact pin 1115, fourth contact pin 1116, and fifth contact pin 1117 in the printing device 110 each include a contact pin tip, a contact pin front end, a contact pin inclined end, and a contact pin tip, as Figure 6 shown. At this time, the first contact pin 1113, second contact pin 1114, third contact pin 1115, fourth contact pin 1116, and fifth contact pin 1117 in the printing device 110 are respectively in contact with the data terminal 2101, chip select terminal 2102, clock terminal 2103, power terminal 2104, and ground terminal 2105 in the planar terminals of the consumable chip 210 through the contact pin tips.

[0072] Normally, multiple consumable chips 110 are provided in the printing device 110, and the multiple consumable chips 210 all communicate with the printing device 110 through the same communication bus. At the same time, the printing device 110 can only communicate with one consumable chip 210. To ensure that the printing device 110 and the consumable chip 210 can communicate, the printing device 110 needs to send a chip select signal to the consumable chip 210 it needs to communicate with, so as to inform the consumable chip 210 through the chip select signal that the printing device 110 has selected this consumable chip 210 to communicate with the printing device 110. Among them, the chip select signal (Chip Select Signal, abbreviated as CS) is a control signal used in digital circuits to select a specific integrated circuit chip (Chip) for communication. When multiple chips or devices are mounted on the same communication bus, the chip select signal is used to indicate which chip can exchange data with the processor or controller. Refer to Figure 1 shown. When the printing device 110 needs to perform data communication with a consumable chip 210, the printing device 110 can convert the chip select signal for selecting this consumable chip 210 into a high level and send the high-level chip select signal to the chip select terminal of this consumable chip 210. When the printing device 110 sends the chip select signal, it also sends a clock signal CLK and data information. When the consumable chip 210 receives the chip select signal converted into a high level through the chip select terminal 2102, the consumable chip 210 starts to perform a write operation or a read operation. At this time, the consumable chip 210 stores the data information received by the data terminal 2101 into the storage component inside the consumable chip 210 according to the clock signal CLK, or sends the imaging auxiliary information stored in the storage component to the data terminal 2101 so as to be transmitted to the printing device 110 through the data terminal 2101.

[0073] When the data communication is completed or it is necessary to terminate the data communication, the printing device 110 converts the chip select signal to a low level. When the chip select signal received by the consumable chip 210 is converted to a low level, the consumable chip 210 terminates the read operation or write operation and stops data communication with the printing device 110.

[0074] However, the terminals of the consumable chip 210 located on the plane are relatively dense, and the gap between the terminals is small, which easily causes the contact pins of the printing device 110 to contact the terminals with non-corresponding functions when the user installs or plugs and unpluggs the consumable cartridge 21, resulting in a short circuit. In addition, when the printing device 110 sends multiple signals to the consumable chip 210 simultaneously, it is easy to have problems such as the clock signal interfering with the chip select signal, resulting in a jump of the chip select signal, which in turn causes data communication interruption, errors, or data damage.

[0075] Although in some technologies, the consumable chip 210 can determine whether the printing device 110 and the consumable chip 210 are performing data communication by monitoring the state change of the clock signal. When the printing device 110 attempts to perform data communication with the consumable chip 210, the printing device 110 sends a clock signal to the consumable chip 210, and the clock signal received by the consumable chip 210 has a rising edge or a high level. Similarly, when the printing device 110 terminates the data communication with the consumable chip 210, the clock signal received by the consumable chip 210 becomes a continuous level signal.

[0076] In the above process, the consumable chip 210 may not need to be provided with a chip select terminal, and the data communication between the consumable chip 210 and the printing device 110 can be completed only through the clock terminal and the data terminal. In this way, although it is possible to avoid the interruption of the read or write operation of the consumable chip caused by the abnormality of the chip select terminal or the chip select signal. Since the data communication between the printing device 110 and the consumable chip 210 usually includes multiple instruction messages, the consumable chip 210 needs to accurately determine the start and end times of each instruction message to ensure the accuracy of the data communication. However, the above process cannot determine the start and reception times of each instruction message, cannot ensure the accuracy of the data communication, and results in low data communication efficiency. In addition, it is not possible to flexibly determine the end of the instruction according to the instruction type, resulting in a judgment error when it is not possible to determine the start and end of the instruction by monitoring the clock signal.

[0077] To solve the above problems, refer to Figure 7a , which is a schematic structural diagram of a consumable chip 210 provided by an embodiment of the present application. As Figure 7aAs shown, the consumable chip 210 includes a first substrate 212. The first substrate 212 includes a first plane 2121 and a second plane 2122. At least one planar terminal is included in the first plane 2121. In some embodiments, the first plane 2121 includes a first terminal 21211, a third terminal 21213, a fourth terminal 21214, and a fifth terminal 21215. As Figure 7b shown, the second plane 2122 includes a storage component 21221. The first terminal 21211, the third terminal 21213, the fourth terminal 21214, and the fifth terminal 21215 are electrically connected to the storage component 21221 through wires.

[0078] The printing device 110 sends data instructions and communication signals to the storage component 21221. The data instructions include the data sent by the printing device 110 to the consumable chip 210 and the data received by the printing device 110 from the consumable chip 210. The communication signals include VCC (power signal), CLK (clock signal), SDA (data signal), and GND (ground signal).

[0079] In some embodiments, as Figure 7c shown, the above-mentioned storage component 21221 includes a storage module 212211 and a control module 21222. The storage module 212211 is used to store information about the consumable chip, such as the manufacturing date, manufacturer, color of the recording material (such as ink, toner), capacity of the recording material, remaining quantity or consumed quantity of the recording material, number of pages that can be printed, number of pages that have been printed, etc., which are rewritable or read-only information. In the embodiments of the present application, the storage module 212211 can adopt common non-volatile memories, such as EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), FLASH (flash memory), ferroelectric memory, phase change memory, etc. It can also adopt the scheme of volatile memory plus a power supply, such as SRAM (Static Random-Access Memory) + battery or capacitor, DRAM (Dynamic Random Access Memory) + battery or capacitor.

[0080] The control module 212212 can specifically be a microcontroller unit (MCU), a microcontroller, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc., which is used to control the communication between the consumable chip and the printing device, read information from the storage module 212211 and store information into the storage module 212211.

[0081] In one embodiment, the two modules, i.e., the storage module 212211 and the control module 212212, can be integrally arranged in the same circuit, and the circuit can be designed as an application specific integrated circuit (ASIC) and embodied in the form of a wafer. Then, the consumable chip 210 includes the wafer and a circuit board carrying the wafer.

[0082] Based on Figure 7a , Figure 7b and Figure 7cThe consumable chip 210 shown communicates with the printing device 110. The communication process includes a number of instruction messages. The consumable chip 210 is configured to determine the start of executing the instruction messages when the clock signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal, and receive a first-type instruction message or a second-type instruction message sent by the printing device 110. If it is a first-type instruction message, a target reference time is determined based on the received clock signal. If no change from the first-level signal to the second-level signal of the clock signal is detected within a preset target duration after the target reference time, it is determined that the execution of the instruction messages ends. If it is a second-type instruction message, at the end time of the second-type instruction message, it is determined that the execution of the instruction messages ends, and the end time is determined by the content of the second-type instruction message. In this way, in the embodiment of the present application, when the consumable chip 210 detects that the clock signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal, it can determine that the instruction messages start to be executed. When receiving a first-type instruction message, the consumable chip 210 can determine whether to end the execution of the instruction messages according to the target reference time. When receiving a second-type instruction message, the consumable chip 210 can determine that the execution of the instruction messages ends at the end time of the second-type instruction message. That is, there is no need to set a chip select terminal, thereby solving the problem that the chip select signal is interfered and causes the chip read or write operation to be interrupted, ensuring the accuracy of data communication and data communication efficiency. Moreover, the consumable chip 210 can determine the start execution time and end execution time of each instruction message, reducing the possibility of incorrect execution of the instruction messages and improving the communication accuracy between the consumable chip 210 and the printing device 110. In addition, in the embodiment of the present application, different methods can be used to judge the end time of the instruction messages for different instruction types, that is, the end time of the instruction messages can be flexibly judged according to the type of the instruction messages, which can reduce the probability of incorrect judgment when monitoring the clock signal to judge the start and end of the instruction messages, and further ensure the working efficiency of the consumable chip 210 and data communication efficiency. The following is a detailed description.

[0083] In a first aspect, an embodiment of the present application provides a consumable chip 210, which communicates with a printing device 110. The communication process includes a number of instruction messages. The consumable chip 210 includes a clock terminal and a data terminal. The clock terminal is used to receive a clock signal, and the data terminal is used to send or receive a data signal.

[0084] The consumable chip 210 is used for: when the clock signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal, determining to start executing instruction information; receiving first-type instruction information or second-type instruction information sent by the printing device 110; if it is first-type instruction information, determining a target reference time based on the received clock signal; if the change of the clock signal from the first-level signal to the second-level signal is not detected within a preset target duration after the target reference time, determining to end the execution of the instruction information. If it is second-type instruction information, at the end time of the second-type instruction information, determining to end the execution of the instruction information.

[0085] Among them, the end time is determined by the content of the second-type instruction information.

[0086] That is, in the embodiment of the present application, a chip select terminal is not provided in the consumable chip 210, that is, the consumable chip 210 may not receive the chip select signal of the printing device 110. The consumable chip 210 can determine the start and end of communication with the printing device 110 through the clock signal. Since the communication between the consumable chip 210 and the printing device 110 includes multiple instruction information, in order to ensure the accuracy of the communication between the consumable chip 210 and the printing device 110, the consumable chip 210 needs to determine the start time and end time of each instruction information. This can ensure that the consumable chip 210 can start executing the next instruction information only after the execution of each instruction information ends. In some embodiments, the consumable chip 210 can also determine the data communication with the printing device 110 by detecting the start time and end time of each instruction information. For example, when the consumable chip 210 starts to execute the instruction information, it can be determined that data communication occurs between the consumable chip 210 and the printing device 110. When the consumable chip 210 ends the execution of the instruction information and no new instruction information is executed, it can be determined that the data communication between the consumable chip 210 and the printing device 110 is completed.

[0087] Generally, the clock signal sent by the printing device 110 to the consumable chip 210 corresponds to the data signal sent by the printing device 110 to the consumable chip 210. For example, when the printing device 110 does not transmit instruction information to the consumable chip 210, the clock signal sent by the printing device 110 to the consumable chip 210 is a continuous first-level signal. That is, the printing device 110 sends an invalid clock signal to the consumable chip 210. When the printing device 110 needs to transmit instruction information to the consumable chip 210, the clock signal sent by the printing device 110 to the consumable chip 210 is an alternating first-level signal and second-level signal. Therefore, the consumable chip 210 can detect whether the received clock signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal to determine whether to start executing the instruction information.

[0088] When the consumable chip 210 detects that the clock signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal, it can be determined that the received clock signal is a valid clock signal, and the printing device 110 starts to transmit instruction information to the consumable chip 210, and the consumable chip 210 determines to start executing the instruction information. The printing device 110 starts to send the instruction information to the consumable chip 210 as a data signal, and the consumable chip 210 can receive the instruction information sent by the printing device 110 through the data terminal 2101.

[0089] Since the consumable chip 210 needs to determine the start time and end time of the instruction information. And the determination methods of the corresponding end times of different types of instruction information are different. After receiving the instruction information, the consumable chip 210 can detect the content of the instruction information and determine the type of the received instruction information. In some embodiments, the type of the instruction information is identified in a preset field of the instruction information. The consumable chip 210 can determine the type of the instruction information by detecting the content of this field. In some embodiments, the corresponding relationship between the types of different instruction information and the content of the preset field can be preset in the consumable chip 210. In this way, the type of the instruction information can be determined through the preset corresponding relationship between the types of different instruction information and the content of the preset field, and the content of the preset field of the received instruction information. Or, as a possible implementation manner, the consumable chip 210 stores marking information, and this marking information is used to represent the first type of instruction information or the second type of instruction information. After receiving the instruction information, the consumable chip 210 can determine the type of the instruction information by detecting whether the instruction information contains the marking information. For example, if the identification information is used to represent the first type of instruction information, after the consumable chip 210 receives the instruction information, if it detects that the instruction information contains the identification information, it can determine that the instruction information is the first type of instruction information. If the instruction information does not contain the identification information, it can be determined that the instruction information is the second type of instruction information.

[0090] If the instruction information is the first type of instruction information, it means that during the execution of this instruction information, the duration of the clock signal being the first-level signal does not exceed the interval duration from the next instruction information. Therefore, the consumable chip 210 can determine the target reference moment according to the received clock signal; if the clock signal does not change from the first-level signal to the second-level signal within the preset target duration after the target reference moment, it is determined that the execution of the instruction information ends.

[0091] If the instruction information is the second type of instruction information, it indicates that during the execution of the instruction information, there may be a duration when the clock signal is at the first level signal that exceeds the interval duration with the next instruction information, and the consumable chip 210 cannot determine whether to end the execution of the instruction information through the above method. Therefore, for the second type of instruction information, the consumable chip 210 needs to determine the end time according to the content of the second type of instruction information, and at the end time of the second type of instruction information, determine to end the execution of the instruction information.

[0092] As a possible implementation, the above first type of instruction information includes read instruction information;

[0093] The consumable chip 210 is specifically configured to: determine the first target data information to be read according to the read instruction information; read the first target data according to the first target data information to be read; use the first target data as a reply message and send the reply message to the image forming apparatus, and when sending the reply message to the image apparatus, determine a target reference time based on the received clock signal; if the clock signal is not detected to change from the first level signal to the second level signal within a preset target duration after the target reference time, determine to end the execution of the instruction information.

[0094] Wherein, during the process of reading the first target data, the received clock signal remains at the second level signal.

[0095] That is, the above first type of instruction information may include read instruction information. When the consumable chip 210 detects that the instruction information is read instruction information, it indicates that the printing device 110 needs to read data from the consumable chip 210. In the embodiment of the present application, the data that the printing device 110 needs to read from the consumable chip 210 can be used as the first target data. At this time, the read instruction information received by the consumable chip 210 includes the first target data information to be read, for example, the storage location information of the first target data to be read, or the identification information of the first target data to be read, so that the consumable chip 210 can obtain the first target data required by the printing device 110 according to the first target data information. The consumable chip 210 can parse the first target data information from the read instruction information, determine the storage location of the first target data to be read according to the first target data information, and the consumable chip 210 can read the first target data at the location where the first target data is stored. During the process of the consumable chip 210 reading the first target data, the received clock signal remains at the second level signal. The consumable chip 210 uses the read first target data as a reply message and sends the reply message to the printing device 110. And, during the process of sending the reply message, it is necessary to detect whether to end the execution of the read instruction information. After the consumable chip 210 finishes reading the first target data, the received clock signal changes from a continuous second level signal to an alternating first level signal and second level signal. At this time, the consumable chip 210 can determine a target reference moment according to the received clock signal during the process of sending the reply message to the printing device 110, and when the clock signal is not detected to change from the first level signal to the second level signal within the predicted target duration after the target reference moment, it indicates that the read instruction information between the printing device 110 and the consumable chip 210 has been completed, and the consumable chip 210 can determine to end the execution of the read instruction information, as Figure 8a shown.

[0096] As a possible implementation manner, the above first type of instruction information includes write instruction information; the write instruction information includes the second target data to be written.

[0097] The consumable chip 210 is specifically configured to: determine the second target data to be written in the write instruction information, and perform a write process on the second target data. When the writing of the second target data is completed, a reply message is sent to the printing device 110, and when sending the reply message to the printing device 110, a target reference moment is determined based on the received clock signal; if the clock signal is not detected to change from the first level signal to the second level signal within the preset target duration after the target reference moment, it is determined to end the execution of the instruction information.

[0098] Wherein, during the process of performing the write process on the second target data, the received clock signal is an alternating first level signal and second level signal.

[0099] That is, the above first type of instruction information may include write instruction information. When the consumable chip 210 detects that the first type of instruction information is write instruction information, it indicates that the printing device 110 needs to store data in the consumable chip 210. In the embodiments of the present application, the data that the printing device 110 needs to store in the consumable chip 210 can be used as the second target data. At this time, the write instruction information received by the consumable chip 210 includes the second target data to be written into the consumable chip 210. The consumable chip 210 can obtain the second target data by parsing the write instruction information. In some embodiments, the printing device 110 can specify the storage location of the second target data in the consumable chip 210. At this time, the write instruction information needs to carry the storage location information of the second target data. In this way, the consumable chip 210 can obtain the storage location information of the second target data from the write instruction information, and then can store the second target data at the corresponding location according to the storage location information. In other embodiments, the specific storage location of the second target data can be determined by the consumable chip 210 itself. At this time, the write instruction information only includes the second target data and does not include the storage location information of the second target data. After parsing the second target data from the write instruction information, the consumable chip 210 can determine the storage location corresponding to the second target data based on the data storage locations of the storage devices in the consumable chip 210, and then write the second target data to the corresponding location. During the process of the consumable chip 210 writing the second target data, the clock signal it receives always maintains the state of alternating first level signal and second level signal. When the writing of the second target data is completed, the consumable chip 210 can send a reply message to the printing device 110 to inform the printing device 110 that the second target data has been written. During the process of the consumable chip 210 sending a reply message to the printing device 110, the consumable chip 210 needs to detect whether to end the execution of the write instruction information. The consumable chip 210 can determine the target reference moment according to the received clock signal during the process of sending a reply message to the printing device 110. When the clock signal is not detected to change from the first level signal to the second level signal within the predicted target duration after the target reference moment, it indicates that the write instruction information between the printing device 110 and the consumable chip 210 has been completed, and the consumable chip 210 can determine to end the execution of the write instruction information, as Figure 8b shown.

[0100] In some embodiments, the content of the first type of instruction information may include information indicating whether the instruction information is write instruction information or read instruction information. At this time, the consumable chip 210 can determine whether the received first type of instruction information is read instruction information or write instruction information by parsing the content of the instruction information.

[0101] As a possible implementation, the second type of instruction information may also be of multiple types. In some embodiments, the consumable chip 210 may pre-store the end times corresponding to different types of the second type of instruction information. In this way, after receiving the second type of instruction information, the consumable chip 210 can parse the content of the second type of instruction information, further determine the specific type of the second type of instruction information. Thus, the consumable chip 210 can determine the end time corresponding to the received second type of instruction information based on the pre-stored end times corresponding to different types of the second type of instruction information. Furthermore, according to the clock signal, when the end time of the second type of instruction information is reached, it can be determined to end the execution of the second type of instruction information. For example, the end time corresponding to a certain second type of instruction information is the 36th clock signal after replying the message. Then when the consumable chip 210 receives this second type of instruction information, it will determine to end the execution of the second type of instruction information after the 36th clock signal after replying the message.

[0102] As a possible implementation, the printing device 110 may also specify the end time of the second type of instruction information. After receiving the second type of instruction information, the consumable chip 210 determines the end time of the second type of instruction information by parsing the end time recorded in the second type of instruction information, so that it can be determined to end the execution of the second type of instruction information when the end time of the second type of instruction information is reached.

[0103] Of course, the consumable chip 210 may also determine the end time of the second type of instruction information in other ways, and the embodiments of the present application do not limit this.

[0104] As a possible implementation, the consumable chip 210 is further configured to: determine a preset target duration based on the content of the first type of instruction information.

[0105] Among them, the preset target durations corresponding to the first type of instruction information with different contents are not completely the same.

[0106] That is, before the consumable chip 210 detects whether the execution of the first type of instruction information ends, it needs to first determine a preset target duration. The preset target duration can be set to different values in advance according to the type of the first type of instruction information. That is, the corresponding preset target duration can be preset for the read instruction information, and the corresponding preset target duration can be preset for the write instruction information. The preset target duration corresponding to the read instruction information and the preset target duration corresponding to the write instruction information can be different. In this way, the consumable chip 210 can determine the preset target duration according to the specific type of the first type of instruction information sent by the printing device 110 to the consumable chip 210. That is, when the printing device 110 sends a read instruction information to the consumable chip 210, the consumable chip 210 needs to obtain the preset target duration corresponding to the read instruction information. When the printing device 110 sends a write instruction information to the consumable chip 210, it needs to obtain the preset target duration corresponding to the write instruction information. In some embodiments, the preset target durations corresponding to different first type of instruction information can be preset in the consumable chip 210, so that the consumable chip 210 can directly determine the target preset duration corresponding to the first type of instruction information it receives according to the preset target durations corresponding to different first type of instruction information stored therein.

[0107] Of course, in some embodiments, all the first type of instruction information can also correspond to one preset target duration. In this case, only one preset target duration needs to be set according to actual requirements. In this way, the consumable chip 210 only needs to store one preset target duration. The present application does not limit this.

[0108] As a possible implementation manner, the preset target duration is greater than the duration of one clock cycle and less than the interval duration between this instruction information and the next instruction information. That is, in order to ensure the accuracy of the determination of the end execution time of the first type of instruction information, the preset target duration needs to be greater than one clock cycle, and the preset target duration is greater than the duration from when the clock signal changes from the first level signal to the second level signal to when it changes from the second level signal to the first level signal. And, the preset target duration needs to be less than the interval duration between this instruction information and the next instruction information. That is to say, it is necessary to determine that this instruction information has ended execution before the next instruction information starts to be executed.

[0109] As a possible implementation manner, the above-mentioned first level signal includes a low level signal, and the second level signal includes a high level signal.

[0110] As a possible implementation manner, the consumable chip 210 is specifically configured to: when sending a reply message to the printing device 110, use the nth clock signal received after starting to send the reply message as the reference clock signal, and determine the target change moment of the reference clock signal as the target reference moment.

[0111] Wherein, n is an integer greater than 0. In some embodiments, n may be the number of data bits included in the unit data transmitted when the consumable chip 210 performs data transmission. The target change time of the reference clock signal includes the time when the reference clock signal changes from the first level signal to the second level signal, or from the second level signal to the first level signal.

[0112] That is, during the process of the consumable chip 210 executing the instruction information, it usually ends the execution of the instruction information after the consumable chip 210 replies to the printing device 110. Based on this, in order to more accurately detect whether the consumable chip 210 has ended the execution of the instruction information, detection can be started when the consumable chip 210 replies to the printing device 110. Since when the consumable chip 210 replies with data, that is, when sending a reply message to the printing device 110, the consumable chip 210 can end the execution of the instruction information only after sending the reply message at least. When the consumable chip 210 sends a reply message to the printing device 110, the reply message can be transmitted in units of n bits (bits) of data. When detecting whether to end the execution of the instruction information, detection can be performed after each unit of data is sent. Sending each 1-bit data requires one clock signal, so sending one unit of data requires n clock signals. In this way, the consumable chip 210 can use the nth clock signal received when starting to send the reply message as the reference clock signal, and use the target change time of the reference clock signal as the target reference time to detect whether there is a clock signal changing from the first level signal to the second level signal within a preset target duration after the target reference time. Among them, since the clock signal usually includes changing from the first level signal to the second level signal and from the second level signal to the first level signal. For example, when the first level signal is a low level signal and the second level signal is a high level signal, the clock signal usually includes a rising edge and a falling edge. Therefore, the target change time of the nth clock signal can be the time when the first level signal of the clock signal changes to the second level signal or the time when the second level signal changes to the first level signal, that is, the time when the rising edge or the falling edge of the nth clock signal changes can be used as the target reference time. In some embodiments, the consumable chip 210 can count the number of clock signals received when starting to send the reply message, so that when counting to n, the nth clock signal received can be used as the reference clock signal.

[0113] In some embodiments, the consumable chip 210 can use the clock signal received when starting to send the reply message as the first clock signal for counting, and the count is 1 at this time.

[0114] In some embodiments, when the consumable chip 210 sends response information to the printing device 110, the data is usually sent in units of 9 bits. Among them, the 9-bit data includes 8 valid data bits and a parity bit. Each 1-bit data usually requires a clock signal. Therefore, 9-bit data usually requires 9 clock signals to be sent. Based on this, the value of n above can be 9. In this way, the consumable chip 210 can detect whether to finish executing the instruction information when every 9-bit data is sent. When the consumable chip 210 starts to send a response message to the printing device 110, it can use the clock signal received when starting to send the response message as the first clock signal for counting, and the count value is incremented by 1 for each received clock signal. In this way, when the 9th clock signal is received, the received 9th clock signal is used as the reference clock signal, and the target change moment of the reference clock signal is determined as the target reference moment, and it is detected whether there is a clock signal changing from the first level signal to the second level signal within a preset target duration after the target reference moment. If not, it can be determined that the current instruction information has been executed.

[0115] As a possible implementation, the above-mentioned consumable chip 210 is further configured to: when it is detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the target reference moment, use the nth valid clock signal received after the target reference moment as the reference clock signal again, and update the target reference moment based on the target change moment of the reference clock signal. If it is detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference moment, the target reference moment is updated again until it is not detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference moment, and it is determined that the execution of the instruction information ends.

[0116] In the embodiment of the present application, if the consumable chip 210 can detect that the clock signal changes from the first level signal to the second level signal within the preset target duration after the target reference moment, it indicates that the consumable chip 210 is still executing the instruction information, and the execution of this instruction information has not ended. The consumable chip 210 needs to continue to detect whether the execution of the instruction information has ended. At this time, the consumable chip 210 needs to update the target reference moment so as to re-detect whether the execution of the instruction information has ended. The consumable chip 210 can use the nth valid clock signal received after the target reference moment, for example, the 9th valid clock signal, as the reference clock signal again, and update the target reference moment according to the target change moment of the reference clock signal. That is, the target change moment of the updated reference clock signal is used as the new target reference moment. In this way, after updating the target reference moment, it can be re-detected whether there is a clock signal changing from the first level signal to the second level signal within the preset target duration after the updated target reference moment. If it is detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference moment, it indicates that the consumable chip 210 is still executing the instruction information, and the execution of this instruction information has not ended. The consumable chip 210 needs to continue to detect whether the execution of the instruction information has ended. At this time, the consumable chip 210 needs to update the target reference moment again. The update process can refer to the above process and will not be elaborated here until it is not detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference moment. If it is not detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference moment, it can be determined that the execution of the instruction information has ended.

[0117] Exemplarily, when the printing device 110 needs to communicate with the consumable chip 210, the printing device 110 can first provide a power signal to the consumable chip 210. At this time, the consumable chip 210 can receive the power signal through the power terminal 2104. The clock signal sent by the printing device 110 to the consumable chip 210 is an alternately changing first level signal and a second level signal. Assume that the first level signal is a low level signal and the second level signal is a high level signal. The printing device 110 sends an alternately low level signal and high level signal clock signal to the consumable chip 210. When the printing device 110 does not communicate with the consumable chip 210, the clock signal it sends to the consumable chip 210 is a continuous low level signal. Assume that the consumable chip 210 detects a rising edge in the received clock signal at time t1. The consumable chip 210 can determine that at time t1, it receives a clock signal that changes from a continuous low level signal to an alternately first level signal and a second level signal. At this time, the consumable chip 210 can determine to start executing the instruction information. The consumable chip 210 receives the instruction information sent by the printing device 110 from time t1 to t2. The consumable chip 210 can parse the instruction information from time t2 to t3, determine the type of the instruction information, for example, determine whether the instruction information is the first type of instruction information or the second type of instruction information, and perform corresponding data processing according to the type of the instruction information. Assume that the instruction information received by the consumable chip 210 is the first type of instruction information. After the consumable chip 210 performs the corresponding data processing, the consumable chip 210 can reply to the printing device 110 at time t3, that is, start sending a reply message to the printing device 110 at time t3. At this time, the consumable chip 210 can count the number of received clock signals when starting to send a reply message to the printing device 110. That is, the consumable chip 210 can count the number of received clock signals at time t3, so as to use the nth valid clock signal received when starting to send a reply message to the printing device 110 as a reference clock signal. Assume that the value of n is 9. At this time, the consumable chip 210 starts to count the received valid clock signals at time t3, and uses the 9th valid clock signal received as the reference clock signal. The target change moment of the reference clock signal can be used as the target reference moment. Assume that the target change moment is the falling edge of the clock signal. The consumable chip 210 can use the falling edge of the reference clock signal as the target reference moment, denoted as t4, as Figure 9a , Figure 9b and Figure 9cAs shown, during the process of the consumable chip 210 executing the instruction information, it is necessary to determine whether to end the execution of the instruction information. The consumable chip 210 can detect whether there is a change in the clock signal from the first level signal to the second level signal within a preset target duration after the moment t4. Assume that the duration between the moment t4 and the moment t5 is the preset target duration. At this time, after determining the moment t4, within the time period from the moment t4 to the moment t5, the consumable chip 210 needs to detect whether there is a falling edge change in the received clock signal. If it is detected that there is no falling edge change in the received clock signal within the time period from the moment t4 to the moment t5, refer to Figure 9a as shown, it can be determined to end the execution of the instruction information.

[0118] If it is detected that there is a falling edge change in the received clock signal within the time period from the moment t4 to the moment t5, refer to Figure 9b and Figure 9c as shown, the consumable chip 210 can update the target reference moment according to the target reference moment t4. That is, the consumable chip 210 can re - use the 9th valid clock received after the target reference moment t4 as the reference clock signal, and use the falling edge change moment of the reference clock signal as the new target reference moment to update the target reference moment. As Figure 9b and Figure 9c as shown, the consumable chip 210 can determine the falling edge change moment of the reference clock signal, that is, the moment t6, as the new target reference moment. At this time, the consumable chip 210 needs to continue to detect whether there is a falling edge change in the clock signal within the preset target duration after the moment t6. That is, the consumable chip 210 needs to detect whether there is a falling edge change in the received clock signal within the time period from the moment t6 to the moment t7. If it is detected that there is no falling edge change in the received clock signal within the time period from the moment t6 to the moment t7, refer to Figure 9b as shown, it can be determined to end the execution of the instruction information.

[0119] If it is detected that there is a falling edge change in the received clock signal within the time period from the moment t6 to the moment t7, as Figure 9c shown, it indicates that the data communication has not ended and the target reference moment needs to be continuously updated. At this time, the consumable chip 210 can continue to update the target reference moment through the above - mentioned method until it is detected that there is no falling edge change in the clock signal within the preset target duration after the target reference moment, and it can be determined to end the execution of the instruction information.

[0120] In the above - mentioned embodiment, the reference clock signal can be determined or updated by calculating the number of received clock signals. Of course, the consumable chip 210 can also determine or update the reference clock signal through other methods. For example, the reference clock signal can be determined or updated by timing, as follows.

[0121] As a possible implementation, the consumable chip 210 is specifically configured to: when the consumable chip 210 sends a reply message to the printing device 110, use the clock signal received when starting to send the reply message as the reference clock signal, use the target change moment of the reference clock signal as the target reference moment, and start the first timing at the target reference moment; if the target change of the clock signal is not detected when the first timing reaches the duration of n - 1 clock signals, start the second timing; if the second timing reaches the preset target duration and the clock signal does not change from the first level signal to the second level signal, it is determined that the instruction execution information ends.

[0122] Wherein, the target change of the clock signal includes the clock signal changing from the first level signal to the second level signal, or from the second level signal to the first level signal.

[0123] In the embodiments of the present application, not only can the reference clock signal be determined by counting the received clock signal, and then the target reference moment can be determined. It can also be achieved by timing. In order to reduce the number of detections and improve the efficiency of the consumable chip 210, the consumable chip 210 does not detect whether the instruction execution information ends in real time during the data communication process, but detects after each unit of data is sent. The transmission of one unit of data requires n clock signals. Therefore, after the reference clock signal is determined, the reference clock signal and the subsequent n - 1 clock signals are used as the n clock signals required for sending one unit of data. In this way, it is possible to detect whether the instruction execution information ends at the (n - 1)-th clock signal of the reference clock signal. That is, during the execution of the instruction information, when the consumable chip 210 starts to send a reply message to the printing device 110, the first received clock signal is used as the reference clock signal, and the target change moment of the reference clock signal is used as the target reference moment, and the first timing starts at the target reference moment. When the first timing reaches the duration of n - 1 valid clock signals, the consumable chip 210 needs to detect whether there is a target change in the clock signal. If the target change of the clock signal is not detected when the first timing reaches the duration of n - 1 valid clock signals, it may be necessary to further determine whether the instruction execution information ends, so the second timing starts. If the consumable chip 210 does not detect the clock signal changing from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, it can be determined that the instruction execution information ends.

[0124] In some embodiments, during the data communication process, data is usually transmitted in units of 9-bit data. Therefore, the value of n is 9, so that the reference clock signal and the subsequent 8 clock signals can form 9 valid clock signals for sending unit data.

[0125] Referring to the above example, the consumable chip 210 can reply to the printing device 110 at time t3 based on the data instruction, that is, start sending reply information to the printing device 110 at time t3. At this time, the consumable chip 210 can use the valid clock signal received at time t3 as the reference clock signal, such as Figure 10a . Take the target change time of the reference clock signal as the target reference time. Assume that the target change is the falling edge change of the clock signal, that is, the consumable chip 210 can use the clock signal received at time t3 as the reference clock signal, take the falling edge change time t8 of the reference clock signal as the target reference time, and start the first timing at the target reference time t8. When the first timing reaches the duration of n - 1 clock signals, assume the value of n - 1 is 8, that is, when the first timing at the target change time of the reference clock signal reaches the duration of 8 clock signals, that is, at time t9 the first timing reaches the duration of 8 clock signals. If the consumable chip 210 does not detect the falling edge change of the clock signal, such as Figure 10a shown, then start the second timing. That is, start the second timing at time t9 and detect whether there is a clock signal changing from the first level signal to the second level signal within the preset target duration after time t9. Assume the first change is the falling edge change of the clock signal, and the duration between time t9 and time t10 is the preset target duration. At this time, after determining time t9, within the time period from time t9 to time t10, the consumable chip 210 needs to detect whether there is a falling edge change of the received clock signal. If it is detected that there is no falling edge change of the received clock signal within the time period from time t9 to time t10, refer to Figure 10a shown, it can be determined that the execution of the instruction information ends.

[0126] As a possible implementation, the consumable chip 210 is further configured to: if the target change of the clock signal is detected when the first timing reaches the duration of n - 1 clock signals, use the (n - 1)th clock signal after the target reference time as the reference clock signal again, update the target reference time based on the target change time of the reference clock signal, and perform the first timing again; if the target change of the clock signal is detected when the first timing reaches the duration of n clock signals, use the nth clock signal after the target reference time as the reference clock signal again, update the target reference time based on the target change time of the reference clock signal, and perform the first timing again; if the target change of the clock signal is detected when the first timing reaches the duration of n clock signals again, update the reference clock signal and the target reference time again according to the nth clock signal after the target reference time, and perform the first timing again until the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals again, and then perform the second timing.

[0127] That is, when the duration of the first timing reaches the duration of n - 1 clock signals, the consumable chip 210 may detect a target change in the clock signal. At this time, the consumable chip 210 can determine that the execution of the instruction information has not ended and can detect whether the execution of the instruction information has ended again after completing the transmission of the next unit of data. Based on this, the consumable chip 210 needs to update the target parameter time. The consumable chip 210 can re-use the (n - 1)th clock signal received after the above target reference time as the first clock. That is, the nth clock signal in the transmission process of this unit of data is used as the new reference clock signal, so as to ensure that when detecting whether the execution of the instruction information has ended next time, it can be directly detected according to the next n clock signals, which is convenient to implement. When the nth clock signal in the transmission process of this unit of data is used as the new reference clock signal, the target reference time is updated according to the target change time of the updated reference clock signal, that is, the target change time of the updated reference clock signal is used as the new target reference time, the target reference time is updated, and the first timing is performed again at the updated target reference time. During the process of the first timing being timed again, the consumable chip 210 continues to execute the instruction information. If the timing of the first timing reaches the duration of n clock signals, the consumable chip 210 can re-detect whether the execution of the instruction information has ended. That is, if the timing of the first timing reaches the duration of n clock signals, the consumable chip 210 can first determine whether a target change in the clock signal is detected. If the target change in the clock signal is detected again, it means that the execution of the instruction information has not ended, and it can detect whether the execution of the instruction information has ended again after a period of time. At this time, the consumable chip 210 needs to update the target parameter time again and perform the first timing again. At this time, the consumable chip 210 can re-use the nth clock signal after the target reference time as the reference clock signal, update the target reference time to the target change time of the reference clock signal, and perform the first timing again. During the process of the first timing being timed again, the consumable chip 210 continues to execute the instruction information. If the timing of the first timing reaches the duration of n clock signals again, the consumable chip 210 needs to re-detect whether the execution of the instruction information has ended. That is, if the timing of the first timing reaches the duration of n clock signals, the consumable chip 210 can first determine whether a target change in the clock signal is detected. If the target change in the clock signal is detected again, it means that the execution of the instruction information has not ended, and it can detect whether the execution of the instruction information has ended again after a period of time. At this time, the consumable chip 210 needs to update the target reference time again. The process of the consumable chip 210 updating the target reference time again can refer to the above process and will not be elaborated here.

[0128] That is to say, when the consumable chip 210 detects that the instruction execution information has not ended, it needs to update the target reference time through the above process and perform the first timing again until the first timing reaches the duration of n clock signals again, and the consumable chip 210 does not detect the target change of the clock signal, then perform the second timing. If the clock signal does not change from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, it is determined that the instruction execution information ends.

[0129] In some other embodiments, the above method of updating the reference clock signal and the target reference time can also be updated in the following second method. That is, the first clock signal in the next unit data transmission process is used as the new reference clock signal, and the target reference time is updated according to the target change time of the updated reference clock signal, that is, the target change time of the updated reference clock signal is used as the new target reference time to update the target reference time, and the first timing is performed again at the updated target reference time. During the process of the first timing being performed again, the consumable chip 210 continues to execute the instruction information. If the duration of the first timing being performed again reaches the duration of n - 1 clock signals, the consumable chip 210 can re-detect whether the instruction execution information ends. That is, if the duration of the first timing being performed again reaches the duration of n - 1 clock signals, the consumable chip 210 can first determine whether the target change of the clock signal is detected. If the target change of the clock signal is detected again, it means that the instruction information has not ended, and it can detect whether the instruction execution information ends again after a period of time. At this time, the consumable chip 210 needs to update the target parameter time again and perform the first timing again. The process of the consumable chip 210 updating the target parameter time again at this time can refer to the process of the consumable chip 210 updating the target parameter time above, which will not be elaborated here. When the consumable chip 210 detects that the instruction execution information has not ended, it needs to update the target reference time through the above process and perform the first timing again until the first timing reaches the duration of n - 1 clock signals again, and the consumable chip 210 does not detect the target change of the clock signal. If the first timing reaches the duration of n - 1 clock signals again and the consumable chip 210 does not detect the target change of the clock signal, the consumable chip 210 starts to perform the second timing. If the clock signal does not change from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, it is determined that the instruction execution information ends.

[0130] In the following embodiments, the first method of updating the target reference time above is taken as an example for description.

[0131] In some embodiments, when the target change of the clock signal is detected when the first timing reaches the duration of n clock signals, the nth clock signal after the target reference time is re - used as the reference clock signal, and the target reference time is updated based on the target change time of the reference clock signal. During the process of performing the first timing again, when the consumable chip 210 performs the first timing again, it can continue timing without clearing the first timing. That is, when performing the first timing again, it is based on the duration of n clock signals. At this time, when the re - timing of the first timing reaches the duration of n clock signals, it means that the cumulative duration of the first timing reaches the duration of m * n - 1 clock signals. Where m is the number of times the target reference time is updated. The process of using the clock signal received when starting to send the reply message as the reference clock signal and determining the target change time of the reference clock signal as the target reference time is regarded as the first update of the target reference time. At this time, the initial value of m is 1.

[0132] Alternatively, as a possible implementation, before performing the first timing again, the first timing can be cleared and then timed. At this time, the consumable chip 210 is specifically configured to: when the target change of the clock signal is detected when the first timing reaches the duration of n clock signals, the nth clock signal after the target reference time is re - used as the reference clock signal, and the target reference time is updated based on the target change time of the reference clock signal, clear the first timing, and perform the first timing again.

[0133] That is, when the target change of the clock signal is detected when the first timing reaches the duration of n clock signals, the nth clock signal after the target reference time is re - used as the reference clock signal, the target reference time is updated based on the target change time of the reference clock signal, the first timing is cleared, and the first timing is performed again at the target reference time.

[0134] As shown in the above example, when the first timing reaches the duration of 8 clock signals, that is, at time t9, if the consumable chip 210 detects the falling - edge change of the clock signal, it can be determined that the instruction execution has not ended. At this time, the consumable chip 210 needs to update the target reference time. The consumable chip 210 can use the 8th clock signal received after time t8 as the new reference clock signal, and use the falling - edge time of the new reference clock signal as the new target reference time to update the target reference time. That is, the consumable chip 210 directly uses the falling - edge of the clock signal at time t9 as the new target reference time and performs the first timing again, as Figure 10bAs shown. At this time, the first timing may not be cleared, and the first timing continues. The first timing is cumulative timing based on the elapsed time. For example, the elapsed time of the previous first timing is the duration of 9 clock signals. At this time, the next first timing is carried out based on the duration of 9 clock signals. When the first timing reaches the duration of 9 clock signals, that is, when the cumulative timing duration of the first timing reaches the duration of 2*9 - 1 clock signals, the consumable chip 210 can detect whether there is a change in the falling edge of the clock signal. Assume that at time t11, the first timing reaches the duration of 9 clock signals. If the consumable chip 210 does not detect a change in the falling edge of the clock signal, such as Figure 10b As shown, the second timing starts. That is, the second timing starts at time t11, and it is detected whether there is a change of the clock signal from the first level signal to the second level signal within a preset target duration after time t11. Assume that the duration between time t11 and time t12 is the preset target duration. At this time, after determining time t11, within the time period from t11 to t12, the consumable chip 210 needs to detect whether there is a change in the falling edge of the received clock signal. If it is detected that there is no change in the falling edge of the received clock signal within the time period from t11 to t12, refer to Figure 10b As shown, it can be determined that the execution of the instruction information ends.

[0135] Of course, in the above example, when performing the first timing again, the first timing can be cleared first and then the first timing is carried out. At this time, the first timing is carried out based on the timer being 0. When the first timing reaches the duration of 9 clock signals, that is, when the cumulative timing duration of the first timing reaches the duration of 9 clock signals, the consumable chip 210 can detect whether there is a change in the falling edge of the clock signal. If the consumable chip 210 does not detect a change in the falling edge of the clock signal, such as Figure 10b As shown, the second timing starts. That is, the second timing starts at time t11, and it is detected whether there is a change of the clock signal from the first level signal to the second level signal within a preset target duration after time t11. Assume that the duration between time t11 and time t12 is the preset target duration. At this time, after determining time t11, within the time period from t11 to t12, the consumable chip 210 needs to detect whether there is a change in the falling edge of the received clock signal. If it is detected that there is no change in the falling edge of the received clock signal within the time period from t11 to t12, refer to Figure 10b As shown, it can be determined that the execution of the instruction information ends.

[0136] If the consumable chip 210 detects a change in the falling edge of the clock signal, such as Figure 10cAs shown, the target reference time needs to be updated again. At this time, the above process can be referred to for the update, which will not be elaborated here. That is, when the first timing reaches the duration of 9 clock signals, if a falling edge change of the clock signal is detected, the consumable chip 210 updates the target reference time until no target change of the clock signal is detected when the first timing reaches the duration of 9 clock signals again.

[0137] As a possible implementation, the consumable chip 210 is further configured to: if it is detected that the clock signal changes from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, update the target reference time and perform the first timing again; if no target change of the clock signal is detected when the first timing reaches the duration of n clock signals, perform the second timing again; if it is detected that the clock signal changes from the first level signal to the second level signal during the process that the second timing reaches the preset target duration again, update the target reference time again until no target change of the clock signal is detected when the first timing reaches the duration of n clock signals again, and no change of the clock signal from the first level signal to the second level signal is detected during the process that the second timing reaches the preset target duration again, and determine to end the execution instruction information.

[0138] That is, when the consumable chip 210 replies to the printing device 110, the clock signal received when replying to the message is used as the reference clock signal, and the target change time of the reference clock signal is used as the target reference time. At this time, the first timing starts. When no target change of the clock signal is detected when the first timing reaches the duration of n - 1 clock signals, the second timing starts. If it is detected that the clock signal changes from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, it can be determined that the consumable chip 210 has not ended the execution instruction information, and it can be detected again after a period of time whether the execution instruction information has ended. Based on this, the consumable chip 210 needs to update the target reference time. The process of the consumable chip 210 updating the target reference time can refer to the above target reference time update process, which will not be elaborated here.

[0139] When the consumable chip 210 does not detect the target change of the clock signal when the first timing reaches the duration of n clock signals during the re-timing, the second timing is performed again. During the process that the second timing reaches the preset target duration again, it is detected whether there is a change of the clock signal from the first level signal to the second level signal. If there is a change of the clock signal from the first level signal to the second level signal, it indicates that the consumable chip 210 has not finished executing the instruction information, and it can be detected again after a period of time whether the instruction information has been finished executing. For details, reference can be made to the above process and will not be elaborated here. In this way, when the consumable chip 210 detects that the instruction information has not been finished executing, it needs to update the target reference time through the above process and perform the first timing again until the consumable chip 210 does not detect the target change of the clock signal when the first timing reaches the duration of n clock signals again, and no change of the clock signal from the first level signal to the second level signal is detected during the process that the second timing reaches the preset target duration again.

[0140] If when the first timing reaches the duration of n clock signals again, the consumable chip 210 does not detect the target change of the clock signal, and no change of the clock signal from the first level signal to the second level signal is detected during the process that the second timing reaches the preset target duration, it is determined that the execution of the instruction information ends.

[0141] In some embodiments, when performing the second timing again, the timing can continue without clearing the second timing. That is, the second timing again is performed on the basis of the preset target duration. At this time, the second timing reaching the preset target duration again means that the cumulative duration of the second timing reaches m preset target durations. Where m is the update times of the target reference time.

[0142] Alternatively, as a possible implementation manner, before performing the second timing again, the second timing can be cleared and then timed. At this time, the consumable chip 210 is specifically configured to: if the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals, clear the second timing and perform the second timing again.

[0143] That is, if no change of the clock signal from the first level signal to the second level signal is detected during the process that the second timing reaches the preset target duration, update the target reference time and perform the first timing again. If the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals again, the second timing can be performed again. At this time, the second timing can be cleared first and then performed again.

[0144] As described in the above example, if a falling edge change of the received clock signal is detected between time t9 and time t10, refer to Figure 11aAs shown, the instruction execution information that has not ended can be determined. At this time, the consumable chip 210 needs to update the target reference time. When the first timing reaches the duration of 9 clock signals, the consumable chip 210 can detect whether there is a falling edge change in the clock signal. Assume that at time t11, the first timing reaches the duration of 9 clock signals. If the consumable chip 210 does not detect a falling edge change in the clock signal, as Figure 11b shown, then the second timing is performed again. That is, the second timing is performed again at time t11. At this time, when the second timing is performed again, the second timing can be cleared first and the second timing is performed again. It is also possible not to clear the second timing, but to perform the second timing again on the basis of the original second timing duration. Detect whether there is a falling edge change in the clock signal within the preset target duration after time t11. Assume that the duration between time t11 and time t12 is the preset target duration. At this time, after determining time t11, within the time period from time t11 to time t12, the consumable chip 210 needs to detect whether there is a falling edge change in the received clock signal. If it is detected that there is no falling edge change in the received clock signal within the time period from time t11 to time t12, refer to Figure 11b shown, the instruction execution information that has ended can be determined.

[0145] If the consumable chip 210 detects a falling edge change in the clock signal, it is necessary to update the target reference time again. At this time, the update can be performed with reference to the above process and will not be elaborated here. That is, when the second timing reaches the preset target duration again, if a falling edge change in the clock signal is detected, the consumable chip 210 updates the target reference time until the first timing reaches the duration of 9 valid clock signals again and no target change in the clock signal is detected, and no change in the clock signal from the first level signal to the second level signal is detected during the process that the second timing reaches the preset target duration again, the instruction execution information that has ended is determined.

[0146] It should be noted that in the above embodiments, the start and end of the instruction execution information can be determined according to the clock signal. Of course, the start and end of the instruction execution information can also be determined by other signals. For example, it can be determined by a power signal or a data signal. This application does not limit this.

[0147] In this way, in the embodiments of this application, the consumable chip 210 can further determine the end of the instruction information in multiple ways.

[0148] In a second aspect, refer to Figure 12 , which is a schematic diagram of a communication process provided by an embodiment of this application. This method is applied to the consumable chip 210 described in the above embodiments. As Figure 12 shown, the method includes:

[0149] Step S1201: When the clock signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal, determine to start executing the instruction information.

[0150] Step S1202: Receive the first-type instruction information or the second-type instruction information sent by the printing device 110.

[0151] It should be noted that according to the different types of the received instruction information, the following executed steps are different for the consumable chip 210. When the received instruction information is the first-type instruction information, step S1203a is executed; when the received instruction information is the second-type instruction information, step S1203b is executed.

[0152] Step S1203a: If it is the first-type instruction information, determine the target reference time based on the received clock signal; if the change of the clock signal from the first-level signal to the second-level signal is not detected within the preset target duration after the target reference time, determine to end executing the instruction information.

[0153] Step S1203b: If it is the second-type instruction information, determine to end executing the instruction information at the end time of the second-type instruction information.

[0154] Among them, the end time is determined by the content of the second-type instruction information.

[0155] As a possible implementation, the consumable chip 210 stores marker information, and the marker information is used to indicate the first-type instruction information or the second-type instruction information.

[0156] As a possible implementation, the method further includes: determining the preset target duration based on the content of the first-type instruction information.

[0157] Among them, the preset target durations corresponding to the first-type instruction information with different contents are not completely the same.

[0158] As a possible implementation, the preset target duration is greater than the duration of one clock cycle and less than the interval duration between this instruction information and the next instruction information.

[0159] As a possible implementation, the first-level signal includes a low-level signal, and the second-level signal includes a high-level signal.

[0160] As a possible implementation, determining the target reference time based on the received clock signal includes:

[0161] When sending a reply message to the printing device 110, use the nth clock signal received after starting to send the reply message as the reference clock signal, and determine the target change time of the reference clock signal as the target reference time.

[0162] Wherein, n is an integer greater than 0, and the target change moment of the reference clock signal includes the moment when the reference clock signal changes from the first level signal to the second level signal, or the moment when it changes from the second level signal to the first level signal.

[0163] As a possible implementation, the above method further includes: when it is detected that the clock signal changes from the first level signal to the second level signal within a preset target duration after the target reference moment, using the nth clock signal received after the target reference moment as the reference clock signal again, and updating the target reference moment based on the target change moment of the reference clock signal; if it is detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference moment, then update the target reference moment again until it is not detected that the clock signal changes from the first level signal to the second level signal within the preset target duration after the updated target reference moment, and determine to end the execution instruction information.

[0164] As a possible implementation, determining the target reference moment based on the received valid clock signal includes: when sending a reply message to the printing device 110, using the clock signal received when starting to send the reply message as the reference clock signal, using the target change moment of the reference clock signal as the target reference moment, and starting the first timing at the target reference moment. If the target change of the clock signal is not detected when the first timing reaches the duration of n - 1 clock signals, then start the second timing; if the clock signal does not change from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, then determine to end the execution instruction information. Wherein, n is an integer greater than 0.

[0165] As a possible implementation, the above method further includes: if the target change of the clock signal is detected when the first timing reaches the duration of n - 1 clock signals, using the (n - 1)th clock signal after the target reference moment as the reference clock signal again, and updating the target reference moment based on the target change moment of the reference clock signal, and performing the first timing again; if the target change of the clock signal is detected when the first timing reaches the duration of n clock signals, then using the nth clock signal after the target reference moment as the reference clock signal again, and updating the target reference moment based on the target change moment of the reference clock signal, and performing the first timing again; if the target change of the clock signal is detected when the first timing reaches the duration of n clock signals again, then updating the reference clock signal and the target reference moment according to the nth clock signal after the target reference moment again, and performing the first timing again until the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals again, and then perform the second timing.

[0166] As a possible implementation, updating the target reference time based on the target change time of the reference clock signal, and performing the first timing again includes;

[0167] Updating the target reference time based on the target change time of the reference clock signal, clearing the first timing, and restarting the first timing.

[0168] As a possible implementation, the above method further includes:

[0169] If it is detected that the clock signal changes from the first level signal to the second level signal during the process that the second timing reaches the preset target duration, then update the target reference time and perform the first timing again; if no target change of the clock signal is detected when the first timing reaches the duration of n clock signals, then perform the second timing again; if it is detected that the clock signal changes from the first level signal to the second level signal during the process that the second timing reaches the preset target duration again, then update the target reference time again until no target change of the clock signal is detected when the first timing reaches the duration of n clock signals again, and no change of the clock signal from the first level signal to the second level signal is detected during the process that the second timing reaches the preset target duration again, and determine to end the execution instruction information.

[0170] As a possible implementation, if no target change of the clock signal is detected when the first timing reaches the duration of n clock signals, then performing the second timing again includes:

[0171] If no target change of the clock signal is detected when the first timing reaches the duration of n clock signals, clear the second timing and restart the second timing.

[0172] Corresponding to the above embodiment, the present application further provides a consumable cartridge including the consumable chip 210 described in the above embodiment.

[0173] Corresponding to the above embodiment, the present application further provides an image forming apparatus, including the consumable chip 210 described in the above embodiment or including the consumable cartridge described in the above embodiment.

[0174] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present invention.

[0175] For the same or similar parts among the various embodiments in this specification, reference can be made to each other. In particular, for the apparatus embodiments and terminal embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the relevant parts, reference can be made to the description in the method embodiments.

Claims

1. A chip, characterized in that: The chip communicates with the image forming device, the communication process includes a number of instruction information, the chip includes a clock terminal and a data terminal, the clock terminal is used to receive a clock signal, and the data terminal is used to send or receive a data signal, characterized in that: The chip is used to determine to start executing the instruction information when the clock signal changes from a continuous first level signal to an alternating first level signal and a second level signal; receiving first type instruction information or second type instruction information sent by the image forming device; If it is the first type of instruction information, determining the target reference time based on the received clock signal; if the clock signal is not detected to change from the first level signal to the second level signal within the preset target time after the target reference time, determining to end the execution of the instruction information; If it is the second type of instruction information, at the end time of the second type of instruction information, it is determined to end the execution of the instruction information, wherein the end time is determined by the content of the second type of instruction information.

2. The chip according to claim 1, characterized in that: The chip stores tag information, where the tag information is used to indicate first type instruction information or second type instruction information.

3. The chip according to claim 1, characterized in that: The chip is also used for: Based on the content of the first type of instruction information, a preset target duration is determined; wherein the preset target durations corresponding to the first type of instruction information with different contents are not completely the same.

4. The chip according to claim 3, characterized in that: The preset target duration is greater than the duration of a clock cycle and less than the interval between the instruction information and the next instruction information.

5. The chip according to claim 1, characterized in that: The first level signal includes a low level signal, and the second level signal includes a high level signal.

6. The chip according to claim 1, characterized in that: The chip is specifically used for: When sending a reply message to the image forming device, the nth clock signal received after the reply message starts to be sent is used as a reference clock signal, and the target change time of the reference clock signal is determined as the target reference time; wherein n is an integer greater than 0, and the target change time of the reference clock signal includes the time when the reference clock signal changes from a first level signal to a second level signal, or changes from a second level signal to a first level signal.

7. The chip according to claim 6, characterized in that: The chip is also used for: When it is detected that the clock signal changes from a first level signal to a second level signal within a preset target time length after the target reference time, the nth clock signal received after the target reference time is used again as the reference clock signal, and the target reference time is updated based on the target change time of the reference clock signal; If the clock signal is detected to change from a first level signal to a second level signal within the preset target time after the updated target reference time, the target reference time is re-updated until the clock signal is not detected to change from a first level signal to a second level signal within the preset target time after the updated target reference time, and it is determined that the execution of the instruction information has ended.

8. The chip according to claim 1, characterized in that: The chip is specifically used for: When sending a reply message to the image forming device, using a clock signal received when starting to send the reply message as a reference clock signal, using a target change time of the reference clock signal as the target reference time, and starting a first timing at the target reference time; If the target change of the clock signal is not detected when the first timing reaches the duration of n-1 clock signals, the second timing is started; wherein the target change of the clock signal includes the clock signal changing from a first level signal to a second level signal, or from a second level signal to a first level signal; If the clock signal is not detected to change from the first level signal to the second level signal during the process that the second timing reaches the preset target time length, it is determined to end the execution of the instruction information.

9. The chip according to claim 8, characterized in that: The chip is also used for: If a target change of the clock signal is detected when the first timing reaches the duration of the n-1 clock signals, the n-1th clock signal after the target reference time is used as the reference clock signal again, and the target reference time is updated based on the target change time of the reference clock signal, and the first timing is performed again; If the target change of the clock signal is detected when the first timing reaches the duration of n clock signals, the nth clock signal after the target reference time is used as the reference clock signal again, and the target reference time is updated based on the target change time of the reference clock signal, and the first timing is performed again; If the target change of the clock signal is detected when the first timing reaches the duration of n clock signals again, the reference clock signal and the target reference time are updated according to the nth clock signal after the target reference time, and the first timing is performed again. Until the first timing reaches the duration of n clock signals again and the target change of the clock signal is not detected, the second timing is performed.

10. The chip according to claim 9, characterized in that: The chip is specifically used for: The target reference time is updated based on the target change time of the reference clock signal, the first timing is cleared, and the first timing is restarted.

11. The chip according to any one of claims 8 to 10, characterized in that: The chip is also used for: If it is detected that the clock signal changes from a first level signal to a second level signal during the process that the second timing reaches the preset target duration, the target reference time is updated and the first timing is performed again; If the target change of the clock signal is not detected when the first timing reaches the duration of n clock signals, the second timing is performed again; If the clock signal is detected to change from the first level signal to the second level signal when the second timing reaches the preset target duration again, the target reference time is re-updated until the first timing reaches the duration of n clock signals again without detecting the target change of the clock signal, and the clock signal is not detected to change from the first level signal to the second level signal when the second timing reaches the preset target duration again, and it is determined that the execution of the instruction information is terminated.

12. The chip according to claim 11, characterized in that: The chip is specifically used for: If the target change of the clock signal is not detected when the first timing reaches the duration of the n clock signals, the second timing is reset to zero and the second timing is restarted.

13. A communication method, characterized in that: Applied to the chip according to any one of claims 1 to 12, the method comprising: When the clock signal changes from a continuous first level signal to an alternating first level signal and a second level signal, it is determined that the instruction information starts to be executed; receiving first type instruction information or second type instruction information sent by the image forming device; If it is the first type of instruction information, determining the target reference time based on the received clock signal; if the clock signal is not detected to change from the first level signal to the second level signal within the preset target time after the target reference time, determining to end the execution of the instruction information; If it is the second type of instruction information, at the end time of the second type of instruction information, it is determined to end the execution of the instruction information, wherein the end time is determined by the content of the second type of instruction information.

14. A consumables box, characterized in that: A chip comprising any one of claims 1 to 12.

Citation Information

Cited By

  • Chip, communication method, and consumable box

    EP4697128A1

  • Chip, communication method, and consumable box

    WO2025140380A1