Chip, communication method and consumable box

By setting the first module and the second module in the consumable chip, the clock signal is periodically monitored by using the duration of the clock signal and the type of instruction information, the misjudgment problem caused by signal interference in the prior art is solved, the accuracy and efficiency of data communication are improved, and the production cost is reduced.

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

Patent Information

Application Number
CN202411865442.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-08-30
Filing Date
2024-12-17
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In the prior art, the consumable chip has a high level jump in the chip select signal due to signal interference or poor contact during data communication, which affects the accuracy of the judgment at the end of the command information and the efficiency of data communication. The detection frequency is too high or the command information is misjudged, reducing the accuracy and efficiency of data communication.

Method used

By setting the first module and the second module in the consumable chip, the clock signal periodically monitors the clock signal, reduces the detection frequency, accurately judges the end time of the command information, avoids misjudgment, and improves communication accuracy and efficiency.

Benefits of technology

The possibility of instruction information execution errors is reduced, communication accuracy and efficiency between the chip and the image forming device is improved, production costs are reduced, and storage component structures are not required.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120229010A_ABST
    Figure CN120229010A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a chip, a communication method and a consumable box. The chip comprises a clock terminal, a data terminal, a first module and a second module, the second module obtains a clock signal and first instruction information; when the first instruction information is of the first type, determining a judgment interval, and periodically monitoring the duration when the clock signal is the first level signal based on the judgment interval; if the duration reaches the preset duration, determining that the first instruction information ends, and changing the target signal from the second level signal to the first level signal; when the first instruction information is of the second type, the second module determines an end moment corresponding to the first instruction information based on the content of the instruction information of the second type; changing the target signal from the first level signal to a second level signal at the end moment of the first instruction information; when the first module detects that the target signal is changed from the first level signal to the second level signal, the reading operation is stopped; and the data communication accuracy and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of a Chinese patent application titled "A Consumable Chip and a Consumable Cartridge" with an application number of 202311851739.9, filed with the National Intellectual Property Administration on December 28, 2023, the priority of a Chinese patent application titled "A Consumable Chip and a Consumable Cartridge" with an application number of 202311871796.3, filed with the National Intellectual Property Administration on December 29, 2023, the priority of a Chinese patent application titled "A Consumable Chip and a Consumable Cartridge" with an application number of 202410607698.7, filed with the National Intellectual Property Administration on May 15, 2024, and the priority of a Chinese patent application titled "A Consumable Chip and a Consumable Cartridge" with an application number of 202411220250.6, filed with the National Intellectual Property Administration on August 30, 2024. The entire content of the above four Chinese patents is incorporated herein by reference. Technical Field

[0002] This application relates to the field of imaging technology, 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 installed 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 installed in the image forming apparatus.

[0004] When the consumable cartridge is installed 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 therebetween. 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, an electrical connection can be established between the consumable chip on the consumable cartridge and the image forming apparatus through corresponding terminals.

[0005] Currently, common consumable chips are configured with chip select terminals, clock terminals, and data terminals to complete data communication with an image forming apparatus. Among them, the chip select terminal and clock terminal of the consumable chip receive the chip select signal and clock signal CLK sent by the image forming apparatus respectively, and the data terminal receives the 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 chip select signal at the high level 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 instruction information. When receiving the chip select signal at the high level, the consumable chip can determine to start data communication with the image forming apparatus, and the consumable chip starts to execute the instruction information, such as starting to execute a read operation.

[0006] When the data communication is completed or the data communication needs to be terminated, the image forming apparatus converts the chip select signal into a low level. When the chip select signal received by the consumable chip is converted into a low level, the consumable chip determines that the instruction information ends, terminates the read 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, the high level of the chip select signal is prone to jump errors, resulting in the interruption of the read operation of the consumable chip, thereby affecting the accuracy of judging the end time of the instruction information and the data communication efficiency.

[0008] In some technologies, the consumable chip may not be provided with a chip select terminal, but determines whether the instruction information ends by monitoring the state of the clock signal. Usually, the clock signal sent by the image forming apparatus to the consumable chip corresponds to the instruction information. When the instruction information received by the consumable chip has not ended, the clock signal is an alternating high level signal and low level signal. When the instruction information ends, the clock signal is a continuous low level signal. In order to accurately determine the end time of the instruction information, the consumable chip can determine whether the instruction information ends every time interval corresponding to 9 bits (bits) of data.

[0009] In the above process, although the consumable chip may not need to be provided with a chip select terminal, the end of the instruction information can be determined only through the clock terminal and the data terminal. However, the consumable chip needs to detect whether the instruction information ends every time corresponding to 9-bit data, and the detection frequency is too high. Moreover, when there is a situation where the clock signal is continuously at a low level in an instruction information, if the duration is long, there is a possibility that the instruction information is misjudged as ended, reducing the accuracy and efficiency of data communication. Summary of the Invention

[0010] In view of this, the present application provides a chip, a communication method, and a consumable cartridge, which are conducive to solving the problems in the prior art that the detection frequency of the consumable chip is too high and there is a possibility of misjudging the end of the instruction information, reducing the accuracy of data communication and low efficiency.

[0011] In a first aspect, an embodiment of the present application provides a chip, which communicates with an image forming apparatus. The communication process includes several pieces of instruction information. The chip includes a first module, a second module, a clock terminal, and a data terminal. The clock terminal is used to receive a clock signal from the image forming apparatus, and the data terminal is used to send or receive a data signal. The first module is used to send response data to the image forming apparatus during the communication process. The second module is electrically connected to the first module and outputs a target signal to the first module. The first module controls the stop of the read operation of the first module based on the target signal;

[0012] The chip is used for,

[0013] During the communication process, the second module acquires the clock signal and the first instruction information;

[0014] When the first instruction information is the first type of instruction information, the second module determines a judgment interval, and periodically monitors the duration of the clock signal being the first level signal at the period of the judgment interval; if the duration of the clock signal being the first level signal reaches a preset duration, it is determined that the first type of instruction information ends, and at the end moment of the first type of instruction information, the target signal output to the first module is changed from the second level signal to the first level signal; the judgment interval is the number of clocks for sending at least one set of response data to the image forming apparatus;

[0015] When the first instruction information is the second type of instruction information, the second module determines the end moment corresponding to the second type of instruction information based on the content of the second type of instruction information by using a preset method, and at the end moment, the target signal output to the first module is changed from the second level signal to the first level signal;

[0016] When the first module detects that the target signal changes from the second level signal to the first level signal, it stops the read operation.

[0017] In a possible implementation manner of the first aspect, the determination interval includes 2N * 9 clock signals; where N is an integer greater than 0.

[0018] In a possible implementation manner of the first aspect, the chip is further configured to:

[0019] If the duration for which the clock signal is at the first level signal does not reach the preset duration, the second module determines that the first type of instruction information has not ended, and continues to periodically monitor the duration for which the clock signal is at the first level signal until it is detected that the duration for which the clock signal is at the first level signal reaches the preset duration, and determines that the first type of instruction information has ended.

[0020] In a possible implementation manner of the first aspect, the first module is electrically connected to the data terminal and the clock terminal;

[0021] The chip is further configured to, during the communication process, the first module receives the first instruction information sent by the image forming apparatus through the data terminal, and receives the clock signal sent by the image forming apparatus through the clock terminal;

[0022] The first module is configured to send a response message to the image forming apparatus during the communication process, including:

[0023] The first module generates a response message based on the target signal and the first instruction information, and sends the response message to the image forming apparatus through the data terminal.

[0024] In a possible implementation manner of the first aspect, the second module is electrically connected to the data terminal and the clock terminal;

[0025] The second module obtains the clock signal and the first instruction information, including:

[0026] The second module receives the clock signal sent by the image forming apparatus through the clock terminal, and receives the first instruction information sent by the image forming apparatus through the data terminal.

[0027] In a possible implementation manner of the first aspect, the second module is electrically connected to the clock terminal and the data terminal;

[0028] The second module obtains the clock signal and the first instruction information, including:

[0029] The second module receives the clock signal sent by the image forming apparatus through the clock terminal, and receives the first instruction information sent by the image forming apparatus through the data terminal;

[0030] The chip is further configured to: during the communication process, the second module sends the clock signal and the first instruction information to the first module;

[0031] The first module is configured to send response information to the image forming apparatus during the communication process, including:

[0032] The first module receives the clock signal and the first instruction information sent by the second module, generates response information based on the target signal and the first instruction information, and sends the response information to the second module;

[0033] The second module receives the response information, and sends the response information to the image forming apparatus through the data terminal.

[0034] In a possible implementation manner of the first aspect, the sum of the time for the first module to generate the response information and the time for the second module to send the response information to the image forming apparatus is not greater than the response waiting duration preset by the image forming apparatus.

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

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

[0037] 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 first aspect. The method includes:

[0038] During the communication process, the second module of the chip obtains a clock signal and first instruction information;

[0039] When the first instruction information is the first type of instruction information, the second module of the chip determines a judgment interval, and monitors the duration of the clock signal being the first level signal periodically with the judgment interval as a period; if the duration of the clock signal being the first level signal reaches a preset duration, it is determined that the first type of instruction information ends, and at the end moment of the first type of instruction information, the target signal output to the first module is changed from the second level signal to the first level signal; the judgment interval is the number of clocks for sending at least one set of response data to the image forming apparatus;

[0040] When the first instruction information is the second type of instruction information, the second module of the chip determines the end time corresponding to the second type of instruction information in a preset manner based on the content of the second type of instruction information, and changes the target signal output to the first module of the chip from the second-level signal to the first-level signal at the end time;

[0041] When the first module of the chip detects that the target signal changes from the second-level signal to the first-level signal, the read operation is stopped.

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

[0043] When the image forming apparatus is electrically connected to the chip by adopting the solution provided by the embodiment of the present application, it can be electrically connected to the clock terminal and the data terminal in the chip. Since there is no chip select terminal in the chip, the possibility of incorrect execution of instruction information can be reduced, thereby improving the accuracy of communication between the chip and the image forming apparatus. Moreover, in the embodiment of the present application, the chip includes a first module and a second module. For the first type of instruction information, the second module can determine the number of clocks for sending at least one set of response data to the image forming apparatus as the judgment interval, and monitor the duration of the clock signal being at the first level periodically at the judgment interval. When the duration of the clock signal being at the first level reaches the preset duration, it can be determined that the first type of instruction information ends. At the end time of determining the first instruction information, the target signal is switched from the second-level signal to the first-level signal and output to the first module. The first module can determine whether to stop the read operation according to the target signal. That is, the second module judges whether the first type of instruction information ends only after sending at least one set of response data to the image forming apparatus each time. In this way, the frequency of detecting whether the first type of instruction information ends can be reduced, and the possibility of misjudging the end of the instruction information can be reduced, improving the accuracy and efficiency of data communication. For the second type of instruction information, the second module can determine the end time of the instruction information according to the second type of instruction information, and at the end time, switch the target signal from the second-level signal to the first-level signal and output the target signal to the first module. The first module can determine whether to stop the read operation according to the target signal, which can ensure the accuracy and efficiency of data communication.

[0044] Further, the second module can determine whether the first instruction information ends according to the clock signal, switch the target signal from the second level signal to the first level signal at the end moment of the first instruction information, and output the target signal to the first module. The first module can determine whether to stop the read operation according to the target signal. That is, in the embodiment of the present application, the target signal is equivalent to the chip select signal to control the read operation of the first module. The structure of the first module can be an existing structure that controls the read operation through the chip select signal. That is, the chip in the embodiment of the present application can adopt the existing storage component structure and there is no need to set a chip select terminal in the embodiment of the present application. Only the second module needs to be added to output the target signal to the first module. In this way, in the embodiment of the present application, there is no need to redesign the storage component, and the existing lithography mask equipment can be used, which can reduce the time cost and production cost and improve the communication efficiency between the chip and the image forming device. Description of the Drawings

[0045] In order to more clearly illustrate the technical solutions in 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, without creative efforts, other drawings can be obtained according to these drawings.

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

[0047] Figure 2a It is a schematic diagram of the structure of a communication system provided by an embodiment of the present application;

[0048] Figure 2b It is a schematic diagram of the structure of another communication system provided by an embodiment of the present application;

[0049] Figure 3 It is a schematic diagram of the structure of a consumable cartridge provided by an embodiment of the present application;

[0050] Figure 4 It is a schematic diagram of the structure of a print head pin provided by an embodiment of the present application;

[0051] Figure 5 It is a schematic diagram of the structure of a consumable chip provided by an embodiment of the present application;

[0052] Figure 6 It is a partially enlarged schematic diagram of the structure of a print head pin provided by an embodiment of the present application;

[0053] Figure 7 It is a schematic diagram of the scenario of the working timing of a consumable chip provided by an embodiment of the present application;

[0054] Figure 8aSchematic diagram of another consumable chip provided by an embodiment of the present application;

[0055] Figure 8b Schematic diagram of another consumable chip provided by an embodiment of the present application;

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

[0057] Figure 9a Scenario schematic diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0058] Figure 9b Scenario schematic diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0059] Figure 9c Scenario schematic diagram of the working timing of another consumable chip provided by an embodiment of the present application;

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

[0061] Figure 11 Scenario schematic diagram of the connection structure between another consumable chip provided by an embodiment of the present application and a printing device;

[0062] Figure 12 Scenario schematic diagram of the connection structure between another consumable chip provided by an embodiment of the present application and a printing device;

[0063] Figure 13 Scenario schematic diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0064] Figure 14 Scenario schematic diagram of the working timing of another consumable chip provided by an embodiment of the present application;

[0065] Figure 15 Schematic diagram of the flow of another communication method provided by an embodiment of the present application. Detailed implementation manners

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

[0067] 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 belong to the scope of protection of the present application.

[0068] The terms used in the embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. The singular forms "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 dictates otherwise.

[0069] It should be understood that the term " / and" used herein is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A / and B can represent three situations: A exists alone, both A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.

[0070] See Figure 2a , which is a schematic structural diagram of a communication system provided by an embodiment of the present application. As Figure 2a shown, the communication system includes an image forming device 100 and a chip 200. A communication port 101 is provided on the image forming device 100, and an interface module 201 is provided on the slave device. A communication link is established between the communication port 101 and the interface module 201. Through the communication link, the image forming device 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 image forming device 100 to assist the image forming device 100 to complete related functions.

[0071] In one example, the image forming device 100 can be a printer, a copier, a fax machine, etc., and the chip can be a consumable chip. In some application scenarios, for example Figure 2b , the image forming device 100 is a printing device 110, and the chip 200 is a consumable chip 210. A communication port 111 is provided on the printing device 110, and an interface module 211 is provided on the consumable chip 210. 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 usage status information of materials. 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.

[0072] For the sake of convenience of description, in the following, the image forming apparatus 100 is taken as the printing device 110, and the chip is taken as the consumable chip 210 to illustrate the technical solution 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 solution provided by the embodiments of the present application can also be applied to other types of image forming apparatuses and chips, and the embodiments of the present application do not limit this.

[0073] During the imaging process, the printing device 110 needs the assistance of the imaging assistance information of the consumable chip 210 in the consumable cartridge 21 to complete the imaging process. In the related art, the consumable cartridge 21 can be Figure 3 the structure shown. In addition to being recorded in the printing device 110, the imaging assistance information of the printing device 110 is also recorded on the consumable chip 210. The consumable chip 210 mainly plays the role of identity recognition and providing the usage status of the recording material. Therefore, after 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 about the printing job to the consumable chip 210. The consumable chip 210 and the printing device 110 can be connected by electrical contact. For example, the contact pins on the printing device 110 are in electrical contact with the contact portions in the consumable chip 210 to achieve communication connection.

[0074] As Figure 4 shown, the printing device 110 includes a contact pin holder 111. The contact pin holder 111 includes an upper end surface 1111 of the contact pin holder 111 in the Y-axis direction, a front end surface 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 5As shown in the figure, 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 contact the data terminal 2101 of the consumable chip 210, the second contact pin 1114 of the printing device 110 can contact the chip select terminal 2102 of the consumable chip 210, the third contact pin 1115 of the printing device 110 can contact the power supply terminal 2104 of the consumable chip 210, the fourth contact pin 1116 of the printing device 110 can contact the clock terminal 2103 of the consumable chip 210, and the fifth contact pin 1117 of the printing device 110 can contact 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.

[0075] In the related art, the data terminal 2101, the chip select terminal 2102, the clock terminal 2103, the power supply terminal 2104, and the ground terminal 2105 in the consumable chip 210 can all be planar terminals. The first contact pin 1113, the second contact pin 1114, the third contact pin 1115, the fourth contact pin 1116, and the fifth contact pin 1117 in the printing device 110 all 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, the second contact pin 1114, the third contact pin 1115, the fourth contact pin 1116, and the fifth contact pin 1117 in the printing device 110 respectively contact the data terminal 2101, the chip select terminal 2102, the clock terminal 2103, the power supply terminal 2104, and the ground terminal 2105 in the planar terminals of the consumable chip 210 through the contact pin tips.

[0076] Under normal circumstances, multiple consumable chips 110 are provided in the printing device 110, and multiple consumable chips 210 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 communication between the printing device 110 and the consumable chip 210, 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 As 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 chip select signal of the high level to the chip select terminal of this consumable chip 210. While sending the chip select signal, the printing device 110 also sends a clock signal CLK and data information. When the consumable chip 210 receives that the chip select signal is converted into a high level through the chip select terminal 2102, the consumable chip 210 starts to execute instruction information, such as starting to execute a read operation. At this time, the consumable chip 210 sends the imaging auxiliary information stored in the storage component to the data terminal 2101 according to the clock signal CLK, so as to be transmitted to the printing device 110 through the data terminal 2101.

[0077] When the data communication is completed or the data communication needs to be terminated, the printing device 110 converts the chip select signal into a low level. When the chip select signal received by the consumable chip 210 is converted into a low level, the consumable chip 210 determines that the instruction information ends, terminates the read operation, and stops communicating with the printing device 110.

[0078] However, the terminals of the consumable chip 210 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 non-corresponding terminals during the installation, plugging and unplugging of the consumable cartridge 21 by the user, resulting in a short circuit; in addition, when the printing device 110 sends multiple signals to the consumable chip 210 at the same time, problems such as the clock signal interfering with the chip select signal, resulting in the chip select signal jumping, and then causing data communication interruption, error or data damage are likely to occur.

[0079] In some technologies, the consumable chip 210 may not be provided with a chip select terminal, but instead determines whether the instruction information has ended by monitoring the state change of the clock signal. Generally, the clock signal sent by the printing device 110 to the consumable chip 210 corresponds to the instruction information. When the instruction information received by the consumable chip 210 has not ended, the clock signal is an alternating high-level signal and low-level signal. When the instruction information ends, the clock signal is a continuous low-level signal. In order to accurately determine the end moment of the instruction information, the consumable chip 210 can determine whether the instruction information has ended once every time corresponding to 9 bits (bits) of data.

[0080] In the above process, the consumable chip 210 may not need to be provided with a chip select terminal, and it can determine whether the instruction information has ended only through the clock terminal and the data terminal. However, the consumable chip 210 needs to detect whether the instruction information has ended once every time corresponding to 9 bits of data, and the detection frequency is too high. Moreover, when there is a situation where the clock signal is a continuous low level in an instruction information, if the duration is long, there is a possibility that the instruction information is misjudged as having ended, reducing the accuracy and efficiency of data communication.

[0081] Exemplarily, as Figure 7 shown, assume that the time corresponding to the process of sending, processing, and replying the first instruction information is t1 - t10, and the second instruction information starts to be executed after time t11. In Figure 7 it, during the processing of the first instruction information, there is a period of time during which the clock signal remains in the state of the first level signal, rather than an alternating first level signal and second level signal, but the first instruction information has not ended. Assume that the time interval between t8 - t9 is X, the time interval between t10 - t11 is Y, and the first preset duration is Z. When the time interval X between t8 - t9 is greater than the first preset duration Z, the consumable chip 210 in some technologies determines the instruction information once every 9 clock signals. At this time, the consumable chip 210 needs to detect whether the clock signal is an alternating first level signal and second level signal after time t8 to determine whether the first instruction information has ended. At this time, if the consumable chip 210 does not detect the clock signal as an alternating first level signal and second level signal for more than the first preset duration Z, it will determine that the first instruction information has ended, but actually the first instruction information has not ended, resulting in data communication errors.

[0082] To solve the above problems, refer to Figure 8a , which is a schematic structural diagram of a consumable chip 210 provided by an embodiment of the present application. As Figure 8aAs shown, the consumable chip 210 includes a first terminal 21211 and a third terminal 21213. In some embodiments, the first terminal 21211 may be a data terminal, and the third terminal 21213 may be a clock terminal. The consumable chip 210 further includes a first module 21221 and a second module 21222, as Figure 8b shown. The second module 21222 is electrically connected to the first module 21221.

[0083] Refer to Figure 8a shown. In some embodiments, the consumable chip 210 further includes a fourth terminal 21214 and a fifth terminal 21215. Among them, the fourth terminal 21214 may be a power terminal, and the fifth terminal 21215 may be a ground terminal. In some other embodiments, the consumable chip 210 includes a substrate 212, and the substrate 212 includes a first plane 2121 and a second plane 2122. The first plane 2121 is used for electrical connection with the printing device 110. The above-mentioned first terminal 21211, third terminal 21213, fourth terminal 21214, and fifth terminal 21215 are all located on the first plane 2121. Refer to Figure 8a shown. Refer to Figure 8b shown. The first module 21221 and the second module 21222 are located on the second plane 2122. In some embodiments, the first terminal 21211, third terminal 21213, fourth terminal 21214, and fifth terminal 21215 are electrically connected to the first module 21221 and the second module 21222 through wires. In some other embodiments, the first terminal 21211 and the third terminal 21213 are electrically connected to only the second module 21222 through wires, and the fourth terminal 21214 and the fifth terminal 21215 are electrically connected to the first module 21221 and the second module 21222 through wires. For the convenience of description, the following takes the first terminal 21211 as a data terminal, the third terminal 21213 as a clock terminal, the fourth terminal 21214 as a power terminal, and the fifth terminal 21215 as a ground terminal as an example for illustration.

[0084] The printing device 110 sends a data instruction and a communication signal to the first module 21221. The data instruction includes 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 signal includes VCC (power signal), CLK (clock signal), SDA (data signal), and GND (reference ground signal).

[0085] In some embodiments, such as Figure 8cAs shown, the first module 21221 can be a storage component, which 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 printable pages, number of printed pages, and other rewritable or read-only information of the consumable chip 210. In the embodiment of the present application, the storage module 212211 can adopt common non-volatile memory, such as EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), FLASH (flash memory), ferroelectric memory, phase change memory, etc., or a volatile memory plus a power supply solution can be adopted, such as SRAM (Static Random-Access Memory) + battery or capacitor, DRAM (Dynamic Random Access Memory) + battery or capacitor.

[0086] The control module 212212 may specifically be a single chip microcomputer (MCU), a microcontroller, an FPGA (Field Programmable Gate Array), an ASIC, etc., and is used to control the communication between the consumable chip and the printing device, read information from the storage module 212211, and store information in the storage module 212211.

[0087] In one embodiment, the storage module 212211 and the control module 212212 can be integrated in the same circuit. The circuit can be designed as an integrated circuit (ASIC) and embodied in the form of a wafer. The consumable chip 210 includes the wafer and a circuit board that carries the wafer.

[0088] based on Figure 8a , Figure 8b and Figure 8cThe consumable chip 210 shown is in communication with the printing device 110. The communication process includes a number of instruction messages. The consumable chip 210 includes a first module 21221, a second module 21222, a clock terminal, and a data terminal. The clock terminal is used to receive a clock signal from the printing device 110, and the data terminal is used to send or receive data signals. The first module 21221 is used to send response data to the printing device 110 during the communication process. The second module 21222 is electrically connected to the first module 21221 and outputs a target signal to the first module 21221. The first module 21221 controls the stop of the read operation of the first module 21221 based on the target signal. The consumable chip 210 is used to, during the communication process, the second module 21222 obtains the clock signal and the first instruction message; when the first instruction message is a first type of instruction message, the second module 21222 determines a judgment interval, and monitors the duration of the clock signal as the first level signal periodically at the judgment interval; if the duration of the clock signal as the first level signal reaches a preset duration, it is determined that the first type of instruction message ends, and at the end moment of the first type of instruction message, the target signal output to the first module 21221 is changed from the second level signal to the first level signal; wherein, the judgment interval is the number of clocks for sending at least one set of response data to the printing device 110. When the first instruction message is a second type of instruction message, the second module 21222 determines the end moment corresponding to the second type of instruction message in a preset manner based on the content of the second type of instruction message, and at this end moment, the target signal output to the first module 21221 is changed from the second level signal to the first level signal. When the first module 21221 detects that the target signal changes from the second level signal to the first level signal, it stops the read operation. In this way, in the embodiment of the present application, when the printing device 110 is electrically connected to the consumable chip 210, it can be electrically connected to the clock terminal and the data terminal in the consumable chip 210. There is no chip select terminal in the consumable chip 210. The consumable chip 210 is configured not to receive a chip select signal from the printing device 110. The consumable chip does not have a chip select terminal electrically connected to the contact pin for outputting the chip select signal in the printing device, or the chip select terminal is blocked by an electrically insulating component, or the chip select terminal on the consumable chip is open-circuited with the chip select pin for transmitting the chip select signal on the consumable chip. Therefore, the possibility of incorrect execution of the instruction message can be reduced, thereby improving the communication accuracy between the consumable chip 210 and the printing device 110. And, in the embodiment of the present application, the consumable chip 210 includes the first module 21221 and the second module 21222. For the first type of instruction message, the second module 21222 can determine the number of clocks for sending at least one set of response data to the printing device 110 as the judgment interval, and monitor the duration of the clock signal as the first level signal periodically at the judgment interval.When the duration of the clock signal at the first level signal reaches a preset duration, it can be determined that the instruction information of the first type ends. At the end moment of determining the first instruction information, the target signal is switched from the second level signal to the first level signal, and the target signal is output to the first module 21221. The first module 21221 can determine whether to stop the read operation according to the target signal. That is, the second module 21222 judges whether the instruction information of the first type ends only after sending at least one group of response data to the printing device 110 each time. In this way, the frequency of detecting whether the instruction information of the first type ends can be reduced, and the possibility of misjudging the end of the instruction information can be reduced, improving the accuracy and efficiency of data communication. For the instruction information of the second type, the second module 21222 can determine the end moment of the instruction information according to the instruction information of the second type, and at the end moment, the target signal is switched from the second level signal to the first level signal, and the target signal is output to the first module 21221. The first module 21221 can determine whether to stop the read operation according to the target signal, which can ensure the accuracy and efficiency of data communication.

[0089] Further, the second module 21222 can determine whether the first instruction information ends according to the clock signal. At the end moment of determining the first instruction information, the target signal is switched from the second level signal to the first level signal, and the target signal is output to the first module 21221. The first module 21221 can determine whether to stop the read operation according to the target signal. That is, in the embodiment of the present application, the target signal is equivalent to a chip select signal to control the read operation of the first module 21221. The structure of the first module 21221 can be an existing structure that controls the read operation through the chip select signal. That is, the consumable chip 210 in the embodiment of the present application can adopt an existing storage component structure, and there is no need to set a chip select terminal in the embodiment of the present application. Only the second module 21222 needs to output the target signal to the first module 21221. In this way, in the embodiment of the present application, there is no need to redesign the storage component, and existing lithography mask equipment can be used, which can reduce the time cost and production cost and improve the communication efficiency between the consumable chip 210 and the printing device 110. The following is a detailed description.

[0090] 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, a data terminal, a first module 21221, and a second module 21222. The clock terminal is used to receive a clock signal from the printing device 110, and the data terminal is used to receive or send data signals. The first module is used to send response information to the printing device 110 during the communication process. The second module 21222 is electrically connected to the first module 21221 and outputs a target signal to the first module 21221. The first module 21221 controls the stop of the read operation of the first module 21221 based on the target signal.

[0091] The consumable chip 210 is used for the second module 21222 to obtain a clock signal and a first instruction message during the communication process.

[0092] When the first instruction message is a first type of instruction message, the second module 21222 determines a judgment interval, and monitors the duration of the clock signal as a first level signal periodically at the judgment interval; if the duration of the clock signal as the first level signal reaches a preset duration, it is determined that the first type of instruction message ends, and at the end moment of the first type of instruction message, the target signal output to the first module 21221 is changed from a second level signal to a first level signal.

[0093] Wherein, the judgment interval is the number of clocks for sending at least one set of response data to the printing device 110.

[0094] When the first instruction message is a second type of instruction message, the second module 21221 determines the end moment corresponding to the second type of instruction message by using a preset method based on the content of the second type of instruction message, and at the end moment, the target signal output to the first module 21221 is changed from a second level signal to a first level signal.

[0095] When the first module 21221 detects that the target signal changes from a second level signal to a first level signal, it stops the read operation.

[0096] In an embodiment of the present application, the consumable chip 210 includes a clock terminal and a data terminal. In this way, the clock terminal can receive a clock signal sent by the printing device 110, and the data terminal can receive a data signal sent by the printing device 110 or send a data signal to the printing device 110. The consumable chip 210 further includes a first module 21221 and a second module 21222. The first module 21221 is configured to send response information to the printing device 110 during communication. That is to say, the first module 21221 can send response information to the instruction information sent by the printing device 110 during the communication with the printing device 110. The second module 21222 is electrically connected to the first module 21221. The second module 21222 can output a target signal to the first module 21221 during communication. The first module 21221 can determine whether to stop the currently executed read operation according to the target signal. That is, the target signal is equivalent to a chip select signal. In this way, the first module 21221 can determine whether the currently executed first instruction information ends according to the target signal. In order to determine an accurate target signal, the second module 21222 can first obtain a clock signal and a first instruction information.

[0097] There can be multiple types of instruction information, and different types of instruction information have different ways of determining the end moment of the instruction information. Therefore, the second module 21222 needs to determine the type of the instruction information before determining the end time of the instruction information, so as to determine the end time of the instruction information according to the type of the instruction information. For example, when the instruction information is an instruction information with a fixed duration, the second module 21222 can directly determine the corresponding end moment of the instruction information through the instruction information. When the instruction information has a non-fixed duration, the second module 21222 needs to determine the end moment of the instruction information according to the clock signal. Based on this, after obtaining the first instruction information, in order to ensure the accuracy of determining the end moment of the first instruction information, the second module 21222 needs to first determine the type of the first instruction information. Among them, the second module 21222 can obtain the first instruction information from the first module 21221, or the second module 21222 can obtain the first instruction information from the printing device 110 through the data terminal of the consumable chip 210. After obtaining the first instruction information, the second module 21222 can parse the first instruction information to obtain information such as the instruction code, identification code, and header in the first instruction information. The second module 21222 can judge the category of the first instruction information through at least one of the instruction code, identification code, and header in the first instruction information. When it is determined that the first instruction information is the first type of instruction information, it means that the first instruction information is an instruction information with a non-fixed duration. That is, the first instruction information is not an instruction information with a fixed duration. At this time, the second module 21222 needs to determine the end moment of the first type of instruction information according to the clock signal. Usually, 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 second-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 second module 21222 can detect whether the duration of the clock signal being the first-level signal reaches a preset duration to judge whether the first type of instruction information ends.

[0098] After receiving the first instruction message, the consumable chip 210 needs to first parse the first instruction message and can then respond to the printing device 110 accordingly. Therefore, in some embodiments, in order to reduce the monitoring frequency, after obtaining the first instruction message, the second module 21222 does not need to directly monitor whether the first instruction message ends, but can monitor whether the first instruction message ends when the consumable chip 210 starts to respond to the printing device 110. Based on this, after parsing the first instruction message, the second module 21222 starts to send response data to the printing device 110, and starting from the moment when the response data starts to be sent, it starts to monitor whether the first instruction message ends. The second module 21222 can set the monitoring period as the judgment interval, that is, the number of clocks for the consumable chip 210 to send at least one group of response data to the printing device 210 can be used as the monitoring period. In this way, the second module 21222 can periodically monitor the duration of the clock signal as the first level signal according to the time period of the judgment interval. Among them, the number of clocks for the consumable chip 210 to send a group of response data can be determined in advance. In some embodiments, a group of response data includes original data and complementary code data, where the original data and the complementary code data are complementary to each other. Therefore, a group of response data usually contains an even number of single-group original data or single-group complementary code data, and a group of clocks usually corresponds to 9-bit data (single-group original data or single-group complementary code data), including 8 valid data bits and one parity bit. Therefore, the number of clocks for sending a group of response data can be the number of clocks corresponding to 2 * 9-bit data. The printing device 110 can determine the correctness of the group of response data based on the parity code included in the group of response data. The judgment interval is the number of clocks for sending several groups of response data to the printing device 110 and can be preset according to actual needs. For example, the judgment interval can be the number of clocks for sending a group of response data. At this time, the judgment interval is the number of clocks corresponding to 2 * 9-bit data. Or, the judgment interval can be the number of clocks for sending two groups of response data. At this time, the judgment interval is the number of clocks corresponding to 4 * 9-bit data. Of course, the judgment interval can be the number of clocks for sending other numbers of groups of response data to the printing device 110, and the embodiments of the present application do not limit this.

[0099] That is to say, after determining the judgment interval, the second module 21222 monitors the duration of the clock signal as the first level signal once after each judgment interval with the judgment interval as the time interval. If it is monitored that the duration of the clock signal as the first level signal reaches the preset duration, it can be determined that the first instruction message ends. At the moment when it is determined that the first instruction message ends, the target signal can be switched from the second level signal to the first level signal and sent to the first module 21221 to enable the first module 21221 to stop the read operation.

[0100] It should be understood that the judgment interval is the number of clock cycles for sending at least one set of response data to the printing device 110. Usually, during the processing of the first instruction information, if there is a situation where the clock signal remains in the first level signal state, the clock signal remaining in the first level signal state usually occurs within the sending time of a set of response data. Therefore, if during the process of the consumable chip 210 sending at least the first set of response data to the printing device 110, the time for which the clock signal remains in the first level signal state is monitored to reach a preset duration. That is, if within the judgment interval, even if the time for which the second module 21222 monitors the clock signal remaining in the first level signal state reaches the preset duration, since this moment is not the moment for monitoring whether the first instruction information ends, the second module 21222 can determine that there will be a clock signal for this frame of response data subsequently, and the state of the target signal remains unchanged. That is to say, the method of periodically monitoring whether the duration for which the clock signal is in the first level signal reaches the preset duration with the judgment interval as the period in the embodiments of the present application can reduce the probability of misjudging the end of the first instruction information due to the situation where the duration for which the same instruction information is in the first level signal is greater than the preset duration.

[0101] Exemplarily, the second module 21222 obtains the first instruction information at time t1. Assume that from time t1 to time t2 is the time when the consumable chip 210 parses the first instruction information, and the consumable chip 210 needs to respond to the printing device 210 at time t2. At this time, the second module 21222 can use the judgment interval as the period and start monitoring the duration for which the clock signal is in the first level signal after each judgment interval starting from time t2. Refer to Figure 9a As shown, assume that the judgment interval is 2 * 9 clock signals. Starting from time t2, monitor the duration for which the clock signal is in the first level signal every 2 * 9 clock signals. Assume that the time interval between time t3 and time t2 is 2 * 9 clock signals, then it is necessary to monitor at time t3 whether the duration for which the clock signal is in the first level signal reaches the preset duration. Assume that the time period from t3 to t4 is the preset duration. At this time, it is possible to monitor whether the clock signal is in the first level signal within the time from t3 to t4, that is, it is possible to monitor whether the clock signal switches from the first level signal to the second level signal within the time from t3 to t4. If it is monitored that the clock signal maintains the first level signal and does not switch from the first level signal to the second level signal within the time from t3 to t4, then it can be determined that the first instruction information ends, and the target signal is switched from the second level signal to the first level signal at time t4. Among them, in Figure 9a an example is given with the first level signal being the low level signal and the second level signal being the high level signal.

[0102] In some embodiments, since the first instruction information of the first type is instruction information with a non-fixed duration, there may be a period during which the clock signal remains in the state of the second level signal or the first level signal in the first type of instruction information, rather than the alternating first level signal and second level signal. That is, the first type of instruction information includes two subtypes: the first subtype instruction information and the second subtype instruction information. Among them, during the transmission of the data signal in the second subtype instruction information, there is a period during which the clock signal remains in the state of the second level signal or the first level signal, rather than the alternating first level signal and second level signal. In some embodiments, this period may be greater than the first preset duration. Refer to Figure 7 As shown, assuming that the time corresponding to the process of sending, processing, and replying of the first instruction information is t1 - t10, and the second instruction information starts to execute after time t11. In Figure 7 , during the execution of the first instruction information which is the second subtype instruction information, there is a period from t8 - t9 during which the clock signal remains unchanged at the first level signal, and at this time the first instruction information has not ended. Assume that the time interval from t8 - t9 is X, the time interval from t10 - t11 is Y, and the first preset duration is Z. When Y is greater than Z and X is less than Y, that is, after t10, the second module 21222 monitors that the clock signal maintains the first level signal within the first preset duration Z. That is, within the first preset duration Z, it is not detected that the clock signal is an alternating first level signal and second level signal. At this time, the second module 21222 can determine that the first type of instruction information has ended, change the target signal output to the first module 21221 from the second level signal to the first level signal, and send the target signal to the first module 21221. When the first module 21221 receives the target signal, it can detect that the target signal changes from the second level signal to the first level signal, and the first module 21221 determines that the first instruction information has ended and stops the read operation.

[0103] If the time interval X between t8 and t9 is greater than the first preset duration Z, in order to reduce the probability of misjudging the end of the instruction information, in the embodiments of the present application, taking the judgment interval as a period, the judgment of whether the first instruction information ends is performed once in each judgment interval. Wherein, the judgment interval is the number of clocks for sending at least one set of response data to the printing device 110. Usually, the situation where the clock signal in the second subclass instruction information maintains the state of the second level signal or the first level signal usually occurs within the sending time of a set of response data. Therefore, if during the process of the consumable chip 210 sending at least the first set of response data to the printing device 110, that is, if the time when the second module 21222 monitors that the clock signal maintains the state of the second level signal or the first level signal reaches the preset duration within the judgment interval, since this time point is not the moment for monitoring whether the first instruction information ends, the second module 21222 can determine that there will be clock signals of this frame of response data subsequently, and the state of the target signal remains unchanged. That is to say, the method of periodically monitoring whether the duration of the clock signal being the first level signal reaches the preset duration with the judgment interval as a period in the embodiments of the present application can reduce the probability of misjudging the end of the first instruction information due to the situation that the duration of the same instruction information being the first level signal is greater than the preset duration.

[0104] When it is determined that the first instruction information is not the first type of instruction information but the second type of instruction information, it indicates that the first instruction information is an instruction information with a fixed duration. In some embodiments, the end time corresponding to the second type of instruction information can be pre-stored in the second module 21222. In this way, after the consumable chip 210 determines that the first instruction information is the second type of instruction information, it can determine the end time of the received first instruction information based on the pre-stored end time corresponding to the second type of instruction information. Furthermore, according to the clock signal, when the end time of the first instruction information is reached, it can be determined that the second type of instruction information ends, and at the end time of the second instruction information, the target signal output to the first module 21221 can be changed from the second level signal to the first level signal. For example, the end time corresponding to the second type of instruction information pre-stored in the second module 21222 is the 36th clock signal in the reply message. Then, when the second module 21222 determines that the first instruction information is the second type of instruction information, it can determine that the end time of the first instruction information is the 36th clock signal in the reply message. At this time, the second module 21222 can change the target signal output to the first module 21221 from the second level signal to the first level signal when the 36th clock signal in the reply message arrives. In this way, the first module 21221 can determine that the first instruction information ends and stop the read operation when it monitors that the received target signal changes from the second level signal to the first level signal.

[0105] Alternatively, in some other embodiments, the printing device 110 may also specify the end time of the second type of instruction information. After determining that the first instruction information is of the second type, the consumable chip 210 determines the end time of the first instruction information by parsing the end time recorded in the first instruction information. In this way, when the end time of the first instruction information is reached, the target signal output to the first module 21221 is changed from the second-level signal to the first-level signal, and the target signal is sent to the first module 21221. In this way, when the first module 21221 monitors that the received target signal changes from the second-level signal to the first-level signal, it determines that the first instruction information ends and stops the read operation.

[0106] Of course, when the first instruction information is of the second type, the second module 21222 may also determine the end time of the first instruction information in other ways, and the embodiments of the present application do not limit this.

[0107] In the embodiment of the present application, the data terminal and the clock terminal of the printing device 110 are electrically connected to the consumable chip 210. The consumable chip 210 does not include a chip select terminal. Therefore, the fourth contact pin 1116 of the printing device 110 will not accidentally pass through the chip select terminal, but pass through the PCB (Printed Circuit Board) material without copper plating on the substrate 212. This can further ensure the accuracy of the execution of the instruction information and further improve the communication accuracy between the consumable chip 210 and the printing device 110. Moreover, in the embodiment of the present application, although the chip select terminal is not provided in the consumable chip 210, a second module 21222 is provided in the consumable chip 210. Through the second module 21222, the end time of the first instruction information can be determined according to the clock signal, and the target signal output to the first module 21221 is changed from the second level signal to the first level signal at the end time of the first instruction information. The first module 21221 can determine whether to stop executing the current read operation by receiving the target signal, which can improve the accuracy of the execution of the instruction information, and further improve the communication accuracy between the consumable chip 210 and the printing device 110. That is to say, in the embodiment of the present application, even if the chip select terminal is not provided in the first plane 2121 of the consumable chip 210, the first module 2121 in the second plane 2122 can also obtain the chip select signal through the second module 21222. While ensuring the accuracy of the execution of the instruction information, the structure of the first module 21221 remains unchanged, and there is no need to redesign the structure of the first module and the existing production equipment can be used to produce the first module, reducing the time cost and production cost, thereby improving the communication efficiency between the chip and the image forming device. In addition, the second module 21222 determines whether the first type of instruction information ends only after sending at least one set of response data to the printing device 110 each time. This can reduce the frequency of detecting whether the first type of instruction information ends and reduce the possibility of misjudging the end of the instruction information, improving the accuracy and efficiency of data communication.

[0108] It should be understood that since the target signal can be a chip select signal, and the chip select signal is a control signal used to select a specific consumable chip for communication. During the process from the start of transmitting instruction information between the printing device 110 and the consumable chip 210 to the end of transmitting instruction information, the chip select signal received by the consumable chip 210 should always be the second level signal. Based on this, during the process from the start of transmitting instruction information between the printing device 110 and the consumable chip 210 to the end of transmitting instruction information, the second module 21222 needs to always maintain the target signal as the second level signal. When the printing device 110 is not transmitting instruction information with the consumable chip 210, the second module 21222 needs to maintain the target signal as the first level signal. Therefore, when the first module 21221 can monitor that the target signal changes from the second level signal to the first level signal, it determines that the first instruction information ends and stops the read operation.

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

[0110] Under normal circumstances, when the consumable chip 210 sends response data to the printing device 110, the data is usually sent in units of 9 bits (bits). Among them, the 9-bit data includes 8 valid data bits and a parity bit. The transmission of each 1-bit data usually requires a clock signal. Therefore, 9-bit data usually requires 9 clock signals for transmission. In some embodiments, a group of response data includes 2 * 9-bit data. In some embodiments, the determination interval includes 2N * 9 clock signals. Where N is an integer greater than 0.

[0111] Among them, the value of N can be preset according to actual needs. By setting the value of N, the frequency at which the second module 21222 monitors whether the first instruction information ends can be determined, so as to meet the load requirements of different users for the consumable chip 210.

[0112] As a possible implementation manner, the above-mentioned consumable chip 210 is further configured to: if the duration for which the clock signal is at the first level signal does not reach the preset duration, determine that the first type of instruction information has not ended, and continue to periodically monitor the duration for which the clock signal is at the first level signal until it is monitored that the duration for which the clock signal is at the first level signal reaches the preset duration, and determine that the first type of instruction information ends.

[0113] In the embodiment of the present application, each time the second module 21222 monitors whether the duration of the clock signal being the first level signal reaches a preset duration, if it is monitored that the duration of the clock signal being the first level signal does not reach the preset duration, that is, if the clock signal changes from the first level signal to the second level signal within the preset duration, it indicates that the first type of instruction information has not ended. At this time, it is necessary to continue to periodically monitor whether the duration of the clock signal being the first level signal reaches the preset duration until it is monitored that the duration of the clock signal being the first level signal reaches the preset duration, then it is determined that the first type of instruction information ends, and at the moment when it is determined that the first type of instruction information ends, the target signal is switched from the second level signal to the first level signal.

[0114] As shown in the above example, referring to Figure 9b As shown, when monitoring whether the clock signal changes from the first level signal to the second level signal during the time period from t3 to t4, if it is monitored that the clock signal changes from the first level signal to the second level signal during the time period from t3 to t4, it can be determined that the first instruction information has not ended. After the moment t3, continue to use the judgment interval as the period, and after an interval of 2 * 9 clock cycles from the moment t3, that is, at the moment t5, continue to monitor the duration of the clock signal being the first level signal. Assume that the time period from t5 to t6 is the preset duration. If it is monitored that the clock signal maintains the first level signal and does not change from the first level signal to the second level signal during the time period from t5 to t6, at the moment t6, the target signal is switched from the second level signal to the first level signal.

[0115] Referring to Figure 9c As shown, when monitoring whether the clock signal changes from the first level signal to the second level signal during the time period from t5 to t6, if it is monitored that the clock signal changes from the first level signal to the second level signal during the time period from t5 to t6, it can be determined that the first instruction information has not ended. After the moment t5, continue to use the judgment interval as the period, and continue to periodically monitor whether the duration of the clock signal being the first level signal reaches the preset duration until it is monitored that the duration of the clock signal being the first level signal reaches the preset duration, then it can be determined that the first type of instruction information ends, and at the moment when it is determined that the first type of instruction information ends, the target signal is switched from the second level signal to the first level signal.

[0116] As Figure 10As shown, it is assumed that the first instruction information is of the first type. The second module 21222 obtains the first instruction information at time t1. It is assumed that from time t1 to time t2 is the time when the consumable chip 210 parses the first instruction information, and the consumable chip 210 needs to respond to the printing device 210 at time t2. At this time, the second module 21222 can determine the judgment interval, and at time t2, with the judgment time as the period, the duration of the clock signal being the first level signal is monitored once after each judgment interval. It is assumed that the judgment interval is 2N * 9 clock signals. At 2N * 9 clock signals after time t2, assuming the interval between time t2 and time t4 is 2N * 9 clock signals, then at time t4, it is detected whether the duration of the clock signal being the first level signal reaches the preset duration. It is assumed that the time period from t4 to t5 is the preset duration. At this time, it can be monitored whether the clock signal is the first level signal within the time from t4 to t5, that is, it can be monitored whether there is a switch from the first level signal to the second level signal of the clock signal within the time from t4 to t5. If it is monitored that the clock signal maintains the first level signal and there is no switch from the first level signal to the second level signal within the time from t4 to t5, then it can be determined that the first instruction information ends. At time t5, the target signal is switched from the second level signal to the first level signal.

[0117] In some embodiments, the consumable chip 210 is specifically configured to: when the first instruction information is of the first type, determine the data length of the first instruction information. When the data length of the first instruction information reaches the preset length threshold, the time when the response data is sent and completed is determined as the end time of the first type of instruction information, and at the end time, the target signal is changed from the second level signal to the first level signal.

[0118] In the embodiments of the present application, the instruction information sent by the printing device 110 is not infinitely long and has an upper limit on the length. That is, the first instruction information sent by the printing device 110 does not exceed the preset length threshold. When the data length of the first instruction information sent by the printing device 110 reaches the preset length threshold, it means that the first instruction information sent by the printing device 110 has reached the upper limit of the data length. At this time, when the consumable chip 210 receives the first instruction information and detects that the first instruction information reaches the preset length threshold, it means that the printing device 110 has sent all the content of the first instruction information. At this time, the consumable chip 210 does not need to judge whether the first instruction information ends, and can directly determine that the first instruction information ends after sending the response data, change the target signal from the second level signal to the first level signal, and send it to the first module.

[0119] In this way, the above-mentioned second module 21222 determines the judgment interval, and with the judgment interval as the period, periodically monitors the duration of the clock signal being the first level signal, including:

[0120] When the data length of the first instruction information in the second module 21222 does not reach the preset length threshold, a determination moment is determined, and the duration of the clock signal being the first level signal is periodically monitored at intervals of the determination interval.

[0121] That is, when the first instruction information received by the consumable chip 210 does not reach the preset length threshold, the printing device 110 may still continue to send the data content of the first instruction information. Therefore, it is necessary for the second module 21222 to determine whether the first instruction information ends. When the data length of the first instruction information does not reach the preset length threshold, the second module 21222 needs to determine the determination interval, and at intervals of the determination interval, periodically monitor the duration of the clock signal being the first level signal to determine whether the first instruction information ends.

[0122] In this way, the probability of misjudging the end of the first instruction information due to the duration of the same instruction information being the first level signal being greater than the preset duration can be further reduced.

[0123] In some embodiments, in order to ensure the accuracy of determining the end moment of the first instruction information, the preset duration is greater than the duration of one clock signal and less than the interval duration between the first instruction information and the next instruction information.

[0124] In some embodiments, the above-mentioned consumable chip 210 includes a substrate 212. The substrate 212 includes a first plane 2121 and a second plane 2122. The first plane 2121 is used for electrical connection with the printing device 110. The data terminal, clock terminal, power terminal, and ground terminal are arranged on the first plane 2121. The first module 21221 and the second module 21222 are both arranged on the second plane 2122. In this way, the printing device 110 is only electrically connected to the first plane 2121 of the consumable chip 210, and a chip select terminal is not arranged on the first plane 2121. Therefore, the fourth probe 1116 of the printing device 110 will not accidentally pass through the chip select terminal, but pass through the PCB (Printed Circuit Board) material without copper plating on the substrate 212. The accuracy of the execution of the instruction information can be further ensured, and the communication accuracy between the consumable chip 210 and the printing device 110 can be further improved.

[0125] The connections between the clock terminal and the data terminal in the consumable chip 210 and the first module 21221 are different, and the first module 21221 also obtains the first instruction information and sends the response information in different ways according to different connection relationships.

[0126] As a possible implementation manner, the data terminal and the clock terminal in the consumable chip 210 may be electrically connected to the first module 21221. That is, the first module 21221 is electrically connected to the data terminal and the clock terminal, as Figure 11 shown.

[0127] The above-mentioned consumable chip 210 is also used during communication. The first module 21221 receives the first instruction information sent by the printing device 110 through the data terminal and receives the clock signal sent by the printing device 110 through the clock terminal.

[0128] The first module 21221 is used to send response information to the printing device 110 during communication, including: the first module 21221 generates response information based on the target signal and the first instruction information, and sends the response information to the printing device 110 through the data terminal.

[0129] That is, the first module 21221 needs to send response information to the printing device 110, and its response information needs to be generated according to the first instruction information. Therefore, the first module 21221 needs to obtain the first instruction information. That is, the first module 21221 can be electrically connected to the data terminal in the first plane 2121, and the printing device 110 is electrically connected to the data terminal in the first plane 2121 and can send the first instruction information to the data terminal. At this time, the data terminal can transmit the first instruction information received from the printing device 110 to the first module 21221 through a wire. That is to say, the first module 21221 can receive the first instruction information sent by the printing device 110 through the data terminal.

[0130] The first module 21221 needs to respond to the first instruction information based on the clock signal. Therefore, the first module 21221 also needs to obtain the clock signal. At this time, the first module 21221 can also be electrically connected to the clock terminal in the first plane 2121, and the printing device 110 is electrically connected to the clock terminal in the first plane 2121 and can send the clock signal to the clock terminal. At this time, the clock terminal can transmit the clock signal received from the printing device 110 to the first module 21221 through a wire. That is to say, the first module 21221 can receive the clock signal sent by the printing device 110 through the clock terminal.

[0131] The first module 21221 needs to respond to the first instruction information. After receiving the first instruction information and the target signal, the first module 21221 can generate response information according to the first instruction information and the target signal, and send the response information to the printing device 110 through the data terminal.

[0132] As a possible implementation manner, the above-mentioned first module 21221 can be electrically connected to the power terminal and the ground terminal, as Figure 11 shown. The consumable chip 210 is also used during communication. The first module 21221 receives the power signal and the reference ground signal sent by the printing device 110 through the power terminal and the ground terminal.

[0133] That is, the first module 21221 can be electrically connected to the data terminal, the clock terminal, the power terminal, and the ground terminal. In this way, the first module 21221 can receive the first instruction information sent by the printing device 110 through the data terminal, receive the clock signal sent by the printing device 110 through the clock terminal, receive the power signal sent by the printing device 110 through the power terminal, and receive the reference ground signal sent by the printing device 110 through the ground terminal. By receiving the power signal and the reference ground signal, the first module 21221 can operate normally, thereby improving the communication efficiency between the printing device 110 and the consumable chip 210.

[0134] Based on the electrical connection between the first module 21221 in the consumable chip 210 and the data terminal and the clock terminal, the second module 21222 can be electrically connected to the clock terminal and the data terminal in the consumable chip 210, or can be not electrically connected to the clock terminal and the data terminal in the consumable chip 210. The second module 21222 obtains the clock signal and the first instruction information in different ways according to different connection relationships.

[0135] As a possible implementation, in order to improve the communication efficiency between the consumable chip 210 and the printing device 110, the second module 21222 can be electrically connected to the clock terminal and the data terminal in the consumable chip 210, as Figure 11 shown. At this time, the second module 21222 can directly obtain the clock signal sent by the printing device 110.

[0136] The above-mentioned second module 21222 obtains the clock signal and the first instruction information, including: the second module 21222 receives the clock signal sent by the printing device 110 through the clock terminal, and receives the first instruction information sent by the printing device 110 through the data terminal.

[0137] That is, the second module 21222 can be electrically connected to the clock terminal and the data terminal in the first plane 2121, and the printing device 110 is electrically connected to the clock terminal and the data terminal in the first plane 2121, and can send the clock signal to the clock terminal and send the first instruction information to the data terminal. At this time, the clock terminal can transmit the clock signal received from the printing device 110 to the second module 21222 through the wire, and the data terminal can transmit the first instruction information received from the printing device 110 to the second module 21222 through the wire. That is to say, the second module 21222 can receive the clock signal sent by the printing device 110 through the clock terminal, and receive the first instruction information sent by the printing device 110 through the data terminal.

[0138] As a possible implementation, the above-mentioned second module 21222 can be electrically connected to the power terminal and the ground terminal, as Figure 11As shown, the consumable chip 210 is also used to receive a power signal and a reference ground signal sent by the printing device 110 through the power terminal and the ground terminal during the communication process.

[0139] That is, the second module 21222 can be electrically connected to the data terminal, the clock terminal, the power terminal, and the ground terminal. In this way, the second module 21222 can receive the first instruction information sent by the printing device 110 through the data terminal, receive the clock signal sent by the printing device 110 through the clock terminal, receive the power signal sent by the printing device 110 through the power terminal, and receive the reference ground signal sent by the printing device 110 through the ground terminal. By receiving the power signal and the reference ground signal, the second module 21222 can operate normally, thereby improving the communication efficiency between the printing device 110 and the consumable chip 210.

[0140] That is, in the above embodiment, both the first module 21221 and the second module 21222 are electrically connected to the data terminal, the clock terminal, the power terminal, and the ground terminal on the first plane. In this way, the first module 21221 and the second module 21222 can respectively receive the first instruction information sent by the printing device 110 through the data terminal, respectively receive the clock signal sent by the printing device 110 through the clock terminal, respectively receive the power signal sent by the printing device 110 through the power terminal, and respectively receive the reference ground signal sent by the printing device 110 through the ground terminal.

[0141] As a possible implementation, the first module 21221 is not electrically connected to the data terminal and the clock terminal in the consumable chip 210, that is, the data terminal and the clock terminal in the consumable chip 210 can be electrically connected only to the second module 21222 and not to the first module 21221. The power terminal and the ground terminal in the consumable chip 210 can be electrically connected to the first module 21221 and the second module 21222, as Figure 12 shown. Since the first module 21221 is not electrically connected to the data terminal and the clock terminal, the first module 21221 cannot directly obtain the first instruction information and the clock signal sent by the printing device 110 from the data terminal and the clock terminal. However, the first module 21221 is electrically connected to the second module 21222, and the first module 21221 can obtain the clock signal and the first instruction information from the second module 21222 in order to generate a response message.

[0142] That is, the second module 21222 is electrically connected to the clock terminal and the data terminal.

[0143] The above-mentioned second module 21222 obtaining the clock signal and the first instruction information includes: the second module 21222 receives the clock signal sent by the printing device 110 through the clock terminal, and receives the first instruction information sent by the printing device 110 through the data terminal.

[0144] The consumable chip 210 is further configured to, during the communication process, the second module 21222 send the clock signal and the first instruction information to the first module 21221.

[0145] The first module 21221 is configured to send a response message to the printing device 110 during the communication process, including: the first module 21221 receives the clock signal and the first instruction information sent by the second module 21222, generates a response message based on the target signal and the first instruction information, and sends the response message to the second module 21222.

[0146] The second module 21222 receives the response message and sends the response message to the printing device 110 through the data terminal.

[0147] That is, the second module 21222 in the consumable chip 210 is electrically connected to the data terminal and the clock terminal in the first plane 2121. The printing device 110 can send a clock signal to the clock terminal in the consumable chip 210. Since the second module 21222 in the consumable chip 210 is electrically connected to the clock terminal, the second module 21222 can receive the clock signal sent by the printing device 110 through the clock terminal. The second module 21222 is electrically connected to the first module 21221, so the second module 21222 can forward the received clock signal to the first module 21221, and the first module 21221 can receive the clock signal. The printing device 110 can send a data signal containing the first instruction information to the data terminal in the consumable chip 210. Since the second module 21222 in the consumable chip 210 is electrically connected to the data terminal, the second module 21222 can receive the data signal sent by the printing device 110 through the data terminal. The first module 21221 is electrically connected to the second module 21222, so the second module 21222 can forward the received data signal to the first module 21221, and the first module 21221 can receive the data signal. In this way, after the first module 21221 receives the first instruction information and the clock signal, it can parse the first instruction information based on the target signal and perform corresponding calculations to generate a response message. The first module 21221 can send the response message to the second module 21222. After receiving the response message, the second module 21221 can send the response message to the printing device 110 through the data terminal to complete the response to the first instruction information.

[0148] In order for the printing device 110 to accurately obtain the response information, the sum of the time when the first module 21221 generates the response information and the time when the second module 21222 sends the response information to the printing device 110 is not greater than the preset response waiting duration of the printing device 110. In this way, the printing device 110 can obtain the response information within the preset response waiting duration.

[0149] In some embodiments, in order to more accurately execute the first instruction information, the consumable chip 210 can not only determine the end moment of the first instruction information, but also determine the start time of the first instruction information. Specifically as follows:

[0150] Since 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. At this time, the second module 21222 can receive the invalid clock signal through the clock terminal in the first plane 2121. After receiving the invalid clock signal, the second module 21222 can determine the target signal as the first-level signal according to the invalid clock signal. That is, the target signal output to the first module 21221 is also determined as an invalid signal, and the second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal is the first-level signal and determines that the first instruction information has not started.

[0151] 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 changes from a continuous first-level signal to an alternating first-level signal and second-level signal. At this time, the second module 21222 can receive the clock signal through the clock terminal in the first plane 2121. After receiving the clock signal, the second module 21222 can detect that the clock signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal. When detecting the change of the clock signal from a continuous first-level signal to an alternating first-level signal and second-level signal, the second module 21222 can change the target signal output to the first module 21221 from the first-level signal to the second-level signal. That is, the target signal output to the first module 21221 changes from an invalid signal to a valid signal, and the second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal changes from the first-level signal to the second-level signal and can determine that the first instruction information starts, that is, the first instruction information starts to be executed.

[0152] In this way, in the embodiments of the present application, the start time and end time of the first instruction information can be accurately determined, so as to ensure the accurate execution of the first instruction information and improve the communication efficiency between the consumable chip 210 and the printing device 110.

[0153] As a possible implementation manner, the second module 21222 can not only determine the target signal through the clock signal, but also determine it through other signals, so that the first module 21221 determines whether the first instruction information ends. In some embodiments, the second module 21222 can determine the target signal through the power signal, that is, the second module 21222 can obtain the power signal and determine the target signal according to the power signal. The second module 21222 can obtain the power signal from the first module 21221, or the second module 21222 is electrically connected to the power terminal of the first plane 2121, and the second module 21222 receives the power signal sent by the printing device 110 through the power terminal of the first plane 2121.

[0154] When the printing device 110 does not transmit instruction information to the consumable chip 210, the printing device 110 sends a power signal of the first level signal to the consumable chip 210. At this time, the second module 21222 can obtain the power signal of the first level signal, and can determine that the first instruction information has not started when receiving the power signal of the first level signal, and determine the target signal output to the first module 21221 as the first level signal. That is, the target signal is also determined as an invalid signal, and the second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal is the first level signal and determines that the first instruction information has not started.

[0155] When the printing device 110 starts to communicate with the consumable chip 210, the printing device 110 changes the power signal to a second level signal and sends it to the consumable chip 210. At this time, the second module 21222 can obtain the power signal changed to the second level signal. When the second module 21222 detects that the power signal changes from the first level signal to the second level signal, it determines that the first instruction information starts, and can change the target signal output to the first module 21221 from the first level signal to the second level signal at the moment when it determines that the first instruction starts. That is, the target signal is changed from an invalid signal to a valid signal, and the second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal changes from the first level signal to the second level signal, and can determine that the first instruction information starts, that is, the first instruction information starts to be executed, and the first module 21221 starts the read operation.

[0156] When the printing device 110 finishes communicating with the consumable chip 210, the printing device 110 changes the power signal to a first level signal and sends it to the consumable chip 210. At this time, the second module 21222 can obtain the power signal that has changed to the first level signal. When the second module 21222 detects that the power signal changes from the second level signal to the first level signal, it can determine that the first instruction message ends, and at the end moment of the first instruction message, it changes the target signal output to the first module 21221 from the second level signal to the first level signal. The second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal changes from the second level signal to the first level signal, and can determine that the first instruction message ends. The first module 21221 stops the read operation.

[0157] Exemplarily, as Figure 13 shown, assume that the second level signal is a high level signal and the first level signal is a low level signal. Before time t4, the power signal sent by the printing device 110 to the consumable chip 210 is a low level signal. The second module 21222 obtains the power signal of the low level signal, can determine that the first instruction message has not started, determines the target signal output to the first module 21221 as the low level signal, sends the target signal to the first module 21221, and after receiving the target signal, the first module 21221 can determine that the first instruction message has not started when detecting that the target signal is the low level signal.

[0158] At time t4, the printing device 110 starts to communicate with the consumable chip 210. At this time, the power signal sent by the printing device 110 to the consumable chip 210 changes to a high level signal. The second module 21222 obtains the power signal of the high level signal. At this time, the second module 21222 can detect at time t4 that the power signal changes from the low level signal to the high level signal. At this time, the second module 21222 can determine that the first instruction message starts, changes the target signal output to the first module 21221 from the low level signal to the high level signal at time t4, sends the target signal to the first module 21221, and after receiving the target signal, the first module 21221 detects that the target signal changes from the low level signal to the high level signal and can determine that the first instruction message starts. The first module 21221 starts the read operation.

[0159] At time t5, the printing device 110 needs to end the communication with the consumable chip 210. At this time, the power signal sent by the printing device 110 to the consumable chip 210 changes to a low-level signal. The second module 21222 obtains the power signal of the low-level signal. At this time, the second module 21222 can detect that the power signal changes from a high-level signal to a low-level signal at time t5. The second module 21222 can determine that the first instruction message ends at time t5, and change the target signal from a high-level signal to a low-level signal at time t5, and send the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal changes from a high-level signal to a low-level signal, and can determine that the first instruction message ends. The first module 21221 stops the read operation.

[0160] As another possible implementation, the second module 21222 can also determine the target signal through a data signal, so that the first module 21221 can determine whether the first instruction message ends. That is, the second module 21222 can obtain the data signal and determine the target signal according to the data signal. The second module 21222 can obtain the data signal from the first module 21221, or the second module 21222 is electrically connected to the data terminal of the first plane 2121, and the second module 21222 receives the data signal sent by the printing device 110 through the data terminal of the first plane 2121.

[0161] When the printing device 110 does not transmit instruction information to the consumable chip 210, the printing device 110 sends a data signal of a continuous first-level signal to the consumable chip 210. At this time, the second module 21222 can obtain the data signal of the continuous first-level signal, and can determine that the first instruction message has not started when receiving the data signal of the continuous first-level signal, and determine the target signal output to the first module 21221 as the first-level signal. That is, the target signal is also determined as an invalid signal. The second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal is the first-level signal and determines that the first instruction message has not started.

[0162] When the printing device 110 starts communicating with the consumable chip 210, the printing device 110 changes the data signal into an alternating first-level signal and second-level signal and sends them to the consumable chip 210. At this time, the second module 21222 can obtain the data signal of the alternating first-level signal and second-level signal. When the second module 21222 detects that the data signal changes from a continuous first-level signal to an alternating first-level signal and second-level signal, it determines that the first instruction message starts. At the moment when it determines the start of the first instruction, the target signal output to the first module 21221 can be changed from the first-level signal to the second-level signal. That is, the target signal is changed from an invalid signal to a valid signal, and the second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal changes from the first-level signal to the second-level signal, and can determine that the first instruction message starts, that is, the first instruction message starts to be executed, and the first module 21221 starts a read operation.

[0163] When the printing device 110 ends communicating with the consumable chip 210, the printing device 110 changes the data signal from an alternating first-level signal and second-level signal to a continuous first-level signal and sends it to the consumable chip 210. After the consumable chip 210 can parse the data signal and send a response message to the printing device 110, the second module 21222 can, after the consumable chip 210 sends the response message, if it detects that the obtained data signal changes from an alternating first-level signal and second-level signal to a continuous first-level signal, determine that the first instruction message ends, and at the end moment of the first instruction message, change the target signal output to the first module 21221 from the second-level signal to the first-level signal. The second module 21222 sends the target signal to the first module 21221. After receiving the target signal, the first module 21221 detects that the target signal changes from the second-level signal to the first-level signal, and can determine that the first instruction message ends, and the first module 21221 stops the read operation. Specifically, reference can be made to the process of judging whether the first instruction message is received according to the clock signal, which will not be elaborated here.

[0164] Exemplarily, such as Figure 14As shown, it is assumed that the second level signal is a high level signal and the first level signal is a low level signal. Before time t6, the printing device 110 does not communicate with the consumable chip 210. At this time, the data signal sent by the printing device 110 to the consumable chip 210 is a continuous low level signal. The second module 21222 obtains the data signal of the continuous low level signal, and can determine that the first instruction message has not started. The target signal output to the first module 21221 is determined as a low level signal and sent to the first module 21221. After receiving the target signal, when the first module 21221 detects that the target signal is a low level signal, it can determine that the first instruction message has not started.

[0165] At time t6, the printing device 110 starts to communicate with the consumable chip 210. At this time, the data signal sent by the printing device 110 to the consumable chip 210 changes to an alternating high level signal and low level signal. The second module 21222 obtains the data signal of the alternating high level signal and low level signal. At this time, the second module 21222 can detect at time t6 that the data signal changes from a continuous low level signal to an alternating high level signal and low level signal. At this time, the second module 21222 can determine that the first instruction message starts, and changes the target signal output to the first module 21221 from a low level signal to a high level signal at time t6, and sends the target signal to the first module 21221. After receiving the target signal, when the first module 21221 detects that the target signal changes from a low level signal to a high level signal, it can determine that the first instruction message starts, and the first module 21221 starts a read operation.

[0166] In the time period from t7 to t8, the consumable chip 210 analyzes the received data signal. In the time period from t8 to t9, the consumable chip 210 can send a response message to the printing device 110. At time t9, the printing device 110 needs to end the communication with the consumable chip 210. At this time, the data signal sent by the printing device 110 to the consumable chip 210 changes to a continuous low level signal. If the second module 21222 obtains the data signal of the continuous low level signal during the time interval from t9 to t10, it can determine that the first instruction message ends, and changes the target signal from a high level signal to a low level signal at time t10, and sends the target signal to the first module 21221. After receiving the target signal, when the first module 21221 detects that the target signal changes from a high level signal to a low level signal, it can determine that the first instruction message ends, and the first module 21221 stops the read operation.

[0167] It should be noted that in the implementation of this application, the read operation is taken as an example for illustration. The embodiments of this application can be applied to the determination of the end time of the write operation, and the embodiments of this application do not limit this.

[0168] In a second aspect, refer toFigure 15 , which is a schematic flowchart of a communication method provided by an embodiment of the present application. This method is applied to the consumable chip 210 described in the above embodiment. As Figure 15 shown, the method includes:

[0169] Step S1501: During the communication process, the second module 21222 of the consumable chip 210 acquires a clock signal and first instruction information.

[0170] According to different types of the first instruction information, the following steps executed by the second module 21222 of the consumable chip 210 are different. When the first instruction information is the first type of instruction information, step S1502a is executed; when the first instruction information is the second type of instruction information, step S1502b is executed.

[0171] Step S1502a: When the first instruction information is the first type of instruction information, the second module 21222 of the consumable chip 210 determines a judgment interval, and monitors the duration of the clock signal being the first level signal periodically with the judgment interval as the period; if the duration of the clock signal being the first level signal reaches a preset duration, it is determined that the first type of instruction information ends, and at the end moment of the first type of instruction information, the target signal output to the first module 21221 of the consumable chip 210 is changed from the second level signal to the first level signal.

[0172] Wherein, the judgment interval is the number of clocks for sending at least one set of response data to the printing device 110.

[0173] Step S1502b: When the first instruction information is the second type of instruction information, the second module 21222 of the consumable chip 210 determines the end moment corresponding to the second type of instruction information based on the content of the second type of instruction information by using a preset method, and at the end moment, the target signal output to the first module 21221 of the consumable chip 210 is changed from the second level signal to the first level signal.

[0174] Step S1503: When the first module 211221 of the consumable chip 210 detects that the target signal changes from the second level signal to the first level signal, it stops the read operation.

[0175] As a possible implementation manner, the judgment interval includes N * 2 * 9 clock signals; wherein, N is an integer greater than 0.

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

[0177] If the duration for which the clock signal is at the first level signal does not reach the preset duration, the second module 21222 of the consumable chip 210 determines that the instruction information of the first type has not ended, and continues to periodically monitor the duration for which the clock signal is at the first level signal until it is detected that the duration for which the clock signal is at the first level signal reaches the preset duration, and determines that the instruction information of the first type has ended.

[0178] As a possible implementation, the first module 21221 of the consumable chip 210 is electrically connected to the data terminal and the clock terminal.

[0179] The above method further includes: during the communication process, the first module 21221 of the consumable chip 210 receives the first instruction information sent by the printing device 110 through the data terminal, and receives the clock signal sent by the printing device 110 through the clock terminal.

[0180] The first module 21221 of the consumable chip 210 generates a response message based on the target signal and the first instruction information, and sends the response message to the printing device 110 through the data terminal.

[0181] As a possible implementation, the second module 21222 of the consumable chip 210 is electrically connected to the data terminal and the clock terminal.

[0182] The above step S1501 for the second module 21222 of the consumable chip 210 to obtain the clock signal and the first instruction information includes:

[0183] The second module 21222 of the consumable chip 210 receives the clock signal sent by the printing device 110 through the clock terminal, and receives the first instruction information sent by the printing device 110 through the data terminal.

[0184] As a possible implementation, the second module 21222 of the consumable chip 210 is electrically connected to the clock terminal and the data terminal.

[0185] The above step S1501 for the second module 21222 of the consumable chip 210 to obtain the clock signal and the first instruction information includes:

[0186] The second module 21222 of the consumable chip 210 receives the clock signal sent by the printing device 110 through the clock terminal, and receives the first instruction information sent by the printing device 110 through the data terminal.

[0187] The above method further includes: during the communication process, the second module 21222 of the consumable chip 210 sends the clock signal and the first instruction information to the first module 21221 of the consumable chip 210.

[0188] The first module 21221 of the consumable chip 210 receives the clock signal and the first instruction information sent by the second module 21222 of the consumable chip 210, generates response information based on the target signal and the first instruction information, and sends the response information to the second module 21222 of the consumable chip 210.

[0189] The second module 21222 of the consumable chip 210 receives the response information and sends the response information to the printing device 110 through the data terminal.

[0190] As a possible implementation, the sum of the time when the first module 21221 of the consumable chip 210 generates the response information and the time when the second module 21222 of the consumable chip 210 sends the response information to the printing device 110 is not greater than the preset response waiting duration of the printing device 110.

[0191] As a possible implementation, the preset duration is greater than the duration of one clock signal and less than the interval duration between the first instruction information and the next instruction information.

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

[0193] Corresponding to the above embodiments, the present application also provides a consumable cartridge including the consumable chip 210 described in the above embodiments.

[0194] Corresponding to the above embodiments, the present application also provides an image forming apparatus including the consumable chip 210 described in the above embodiments or including the consumable cartridge described in the above embodiments.

[0195] Those skilled in the art can clearly understand that the technologies 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 parts that contribute to the prior art can be embodied in the form of a software product. The 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 can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments of the present invention.

[0196] 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 the terminal embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the descriptions in the method embodiments.

Claims

1. A chip, characterized in that: The chip communicates with the image forming device, and the communication process includes a plurality of instruction information. The chip includes a first module, a second module, a clock terminal and a data terminal. The clock terminal is used to receive a clock signal from the image forming device, and the data terminal is used to send or receive a data signal. The first module is used to send response data to the image forming device during the communication process. The second module is electrically connected to the first module and outputs a target signal to the first module. The first module controls the stop of the read operation of the first module based on the target signal. The chip is used for During the communication process, the second module obtains the clock signal and the first instruction information; When the first instruction information is instruction information of the first type, the second module determines a judgment interval, and periodically monitors the duration of the clock signal being a first level signal with the judgment interval as a period; If the duration of the clock signal being a first level signal reaches a preset duration, it is determined that the first type of instruction information ends, and at the end of the first type of instruction information, the target signal output to the first module is changed from a second level signal to a first level signal; the judgment interval is the number of clocks for sending at least one set of response data to the image forming device; When the first instruction information is the instruction information of the second type, the second module determines the end time corresponding to the instruction information of the second type in a preset manner based on the content of the instruction information of the second type, and changes the target signal output to the first module from the second level signal to the first level signal at the end time; The first module stops the reading operation when detecting that the target signal changes from the second level signal to the first level signal.

2. The chip according to claim 1, characterized in that: The determination interval includes 2N*9 clock signals; wherein N is an integer greater than 0.

3. The chip according to claim 2, characterized in that: The chip is also used for: If the duration of the clock signal being a first-level signal does not reach a preset duration, the second module determines that the first type of instruction information has not ended, and continues to periodically monitor the duration of the clock signal being a first-level signal until it is detected that the duration of the clock signal being a first-level signal reaches a preset duration, and determines that the first type of instruction information has ended.

4. The chip according to claim 2, characterized in that: The first module is electrically connected to the data terminal and the clock terminal; The chip is further used for, during the communication process, the first module receiving the first instruction information sent by the image forming device through the data terminal, and receiving the clock signal sent by the image forming device through the clock terminal; The first module is used to send response information to the image forming device during the communication process, including: The first module generates response information based on the target signal and the first instruction information, and sends the response information to the image forming device through the data terminal.

5. The chip according to claim 4, characterized in that: The second module is electrically connected to the data terminal and the clock terminal; The second module acquires the clock signal and the first instruction information including: The second module receives the clock signal sent by the image forming device through the clock terminal, and receives the first instruction information sent by the image forming device through the data terminal.

6. The chip according to claim 2, characterized in that: The second module is electrically connected to the clock terminal and the data terminal; The second module acquires the clock signal and the first instruction information including: The second module receives the clock signal sent by the image forming device through the clock terminal, and receives the first instruction information sent by the image forming device through the data terminal; The chip is further used for the second module to send the clock signal and the first instruction information to the first module during the communication process; The first module is used to send response information to the image forming device during the communication process, including: The first module receives the clock signal and the first instruction information sent by the second module, generates response information based on the target signal and the first instruction information, and sends the response information to the second module; The second module receives the response information, and sends the response information to the image forming device through the data terminal.

7. The chip according to claim 6, characterized in that: The sum of the time for the first module to generate the response information and the time for the second module to send the response information to the image forming device is not greater than the response waiting time preset by the image forming device.

8. The chip according to claim 1, characterized in that: The preset duration is greater than the duration of a clock signal and less than the interval between the first instruction information and the next instruction information.

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

10. A communication method, characterized in that: Applied to the chip according to any one of claims 1 to 9, the method comprising: During the communication process, the second module of the chip obtains the clock signal and the first instruction information; When the first instruction information is the instruction information of the first type, the second module of the chip determines a judgment interval, and periodically monitors the duration of the clock signal being a first level signal with the judgment interval as a period; if the duration of the clock signal being a first level signal reaches a preset duration, it is determined that the first type of instruction information ends, and at the end time of the first type of instruction information, the target signal output to the first module is changed from a second level signal to a first level signal; the judgment interval is the number of clocks for sending at least one set of response data to the image forming device; When the first instruction information is instruction information of the second type, the second module of the chip determines the end time corresponding to the instruction information of the second type in a preset manner based on the content of the instruction information of the second type, and changes the target signal output to the first module of the chip from the second level signal to the first level signal at the end time; The first module of the chip stops the reading operation when detecting that the target signal changes from the second level signal to the first level signal.

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