Chip, device and data transmission method

By outputting clock and data interference signals in the chip and interfering with the communication link between the host and the chip, the problem of private data being leaked during the communication process is solved and safe data transmission is achieved.

CN114953787BActive Publication Date: 2024-08-30APEX MICROELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210356534.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-08-30
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

Existing chips cannot effectively prevent the leakage of private data when communicating with the host. A third party can obtain private data by monitoring the communication waveform between the host and the chip.

Method used

When receiving the data sent by the host, the chip outputs a clock interference signal and/or a data interference signal, so that the collected data is different from the original data. The interference signal is used to interfere with the clock link and data link to ensure that private data is not disclosed by third parties. Get.

Benefits of technology

Effectively prevent the leakage of private data, ensure the security of data on the communication link, and prevent third parties from obtaining the private data sent by the host to the chip through detection or collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114953787B_ABST
    Figure CN114953787B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a chip, a device and a data transmission method, wherein the chip is used to: establish a communication link with a host, the communication link includes a clock link and a data link; receive the first data sent by the host to the chip through the clock link and the data link; wherein the chip outputs a clock interference signal and / or a data interference signal during the downlink period of receiving the first data, so that the second data collected on the communication link based on the target communication protocol is different from the first data, the clock interference signal is used to interfere with the clock link, the data interference signal is used to interfere with the data link, and the target communication protocol is the communication protocol used by the host to send the first data to the chip. In the embodiment of the present application, the chip can interfere with the preset data sent by the host to the chip to prevent others from obtaining the private data (preset data) sent by the host to the chip by detecting and collecting the communication waveform between the host and the chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a chip, a device and a data transmission method. Background Art

[0002] In the field of communication, there is a communication method between a host and a slave, in which the communication sequence is initiated by the host and the slave responds passively. The start and end of the communication between the two parties are controlled by the host, so the slave is always in a state of passive access and response.

[0003] In some scenarios, the host may send private data to the slave. For example, when the host authenticates a chip as a slave, the host may send private data to the chip in the authentication instruction. This private data may include information related to the communication password and communication status. When competitors monitor and collect the communication waveform between the host and the chip, they can obtain this private data. However, when existing chips communicate with the host, as slaves, they can only passively receive this private data. They cannot prevent the host from transmitting this private data, nor can they prevent others from extracting this private data from the communication bus. Summary of the invention

[0004] In view of this, the present application provides a chip, a device and a data transmission method, so as to solve the problem in the prior art that private data sent to the chip can be easily obtained by a third party, resulting in leakage of private data.

[0005] In a first aspect, an embodiment of the present application provides a chip for communicating with a host, wherein the chip is used to:

[0006] Establishing a communication link with the host, wherein the communication link includes a clock link and a data link;

[0007] receiving first data sent by the host to the chip through the clock link and the data link;

[0008] Among them, the chip outputs a clock interference signal and / or a data interference signal during the downlink period of receiving the first data, so that the second data collected on the communication link based on the target communication protocol is different from the first data, the clock interference signal is used to interfere with the clock link, and the data interference signal is used to interfere with the data link. The target communication protocol is the communication protocol used by the host to send the first data to the chip.

[0009] In a possible implementation, the chip is specifically used for:

[0010] During the downlink period of receiving the first data, a clock interference signal and / or a data interference signal is output, so that the number of bits and / or the bit value of the second data collected on the communication link based on the target communication protocol are different from those of the first data.

[0011] In a possible implementation, the chip is specifically used for:

[0012] During the downlink period of receiving the first data, a clock interference signal is output to change the number of clock cycles and / or clock cycle on the clock link, so that the number of bits and / or bit value of the second data collected on the communication link based on the target communication protocol is different from the first data.

[0013] In a possible implementation, the chip is specifically used for:

[0014] During the downlink period of receiving the first data, a clock interference signal is output to increase the number of clock cycles on the clock link so that the number of bits of the second data collected on the communication link based on the target communication protocol is greater than the number of bits of the first data.

[0015] In a possible implementation, the chip is specifically used for:

[0016] During the downlink period of receiving the first data, a clock interference signal is output to reduce the number of clock cycles on the clock link so that the number of bits of the second data collected on the communication link based on the target communication protocol is less than the number of bits of the first data.

[0017] In a possible implementation, the chip is specifically used for:

[0018] During the downlink period of receiving the first data, a clock interference signal is output to change the clock cycle on the clock link, while keeping the number of clock cycles on the clock link unchanged, so that the bit value of the second data collected on the communication link based on the target communication protocol is different from the first data, and the number of bits of the second data is the same as the first data.

[0019] In a possible implementation, the chip is specifically used for:

[0020] During the downlink period of receiving the first data, a clock interference signal and / or a data interference signal is output, so that a stop signal is collected on the communication link based on the target communication protocol, so that the number of bits of the collected second data is less than the number of bits of the first data.

[0021] In a possible implementation, the chip is further used for:

[0022] A response signal is sent to the host according to the target communication protocol.

[0023] In a possible implementation manner, outputting a clock interference signal and / or a data interference signal during a downlink period of receiving the first data includes:

[0024] If the chip receives the third data sent by the host, it outputs a clock interference signal and / or a data interference signal during a downlink period of receiving the first data.

[0025] In a possible implementation manner, outputting a clock interference signal and / or a data interference signal during a downlink period of receiving the first data includes:

[0026] If the electrical signal of the chip matches the preset judgment condition, a clock interference signal and / or a data interference signal is output during the downlink period of receiving the first data.

[0027] In a possible implementation, the electrical signal includes one or a combination of the following signals:

[0028] Clock signal, power signal, reset signal, set signal and data signal.

[0029] In a second aspect, an embodiment of the present application provides a device, comprising the chip described in any one of the first aspects.

[0030] In a third aspect, an embodiment of the present application provides a data transmission method, which is applied to a chip, wherein the chip is used to be connected to a host through a communication link, wherein the communication link includes a clock link and a data link, and the method includes:

[0031] receiving first data sent by the host to the chip through the clock link and the data link;

[0032] Among them, the chip outputs a clock interference signal and / or a data interference signal during the downlink period of receiving the first data, so that the second data collected on the communication link based on the target communication protocol is different from the first data, the clock interference signal is used to interfere with the clock link, and the data interference signal is used to interfere with the data link. The target communication protocol is the communication protocol used by the host to send the first data to the chip.

[0033] In an embodiment of the present application, the chip can interfere with preset data sent by the host to the chip to prevent others from obtaining private data (preset data) sent by the host to the chip by means of detecting and collecting communication waveforms between the host and the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0035] Figure 1 A schematic diagram of the structure of a communication system provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of the structure of another communication system provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram of the structure of another communication system provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of a circuit structure of a communication system provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of the circuit structure of another communication system provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of an interference scenario provided in an embodiment of the present application;

[0041] Figure 7 A schematic diagram of another interference scenario provided in an embodiment of the present application;

[0042] Figure 8 A schematic diagram of another interference scenario provided in an embodiment of the present application;

[0043] Fig. 9 A waveform diagram of a start signal and a stop signal provided in an embodiment of the present application;

[0044] Fig.10 A schematic diagram of another interference scenario provided in an embodiment of the present application;

[0045] Fig.11 A schematic diagram of another interference scenario provided in an embodiment of the present application;

[0046] Fig.12 A schematic diagram of an instruction format provided in an embodiment of the present application;

[0047] Fig.13 Another instruction format diagram provided in an embodiment of the present application;

[0048] Fig.14 A schematic diagram of the structure of a consumable chip provided in an embodiment of the present application. DETAILED DESCRIPTION

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

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

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

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

[0053] See also Figure 1 , is a schematic diagram of the structure of a communication system provided in an embodiment of the present application. Figure 1As shown, the communication system includes a host 100 and a chip 200 (a slave corresponding to the host 100), a communication port 101 is provided on the host 100, and an interface module 201 is provided on the slave, and a communication link 300 is established between the communication port 101 and the interface module 201, and the host 100 and the chip 200 can transmit information through the communication link 300. Among them, the communication link 300 is a contact communication link, that is, a wired communication link. Specifically, the communication port 101 and the interface module 201 can be electrically connected through a contact pin, a contact point or a spring to establish a communication link 300. In other embodiments, the communication link 300 can also be a contactless communication link, that is, a wireless communication link, in which case the communication port 101 and the interface module 201 can include an antenna or a coil for transmitting wireless signals. In some possible implementations, the communication link 300 may also be referred to as a data bus. Generally, when the host 100 and the chip 200 communicate, a time-sharing transmission and reception method is adopted to realize two-way transmission and reception of information (i.e., duplex communication). For example, in the downlink period, the host 100 is the sender and the chip 200 is the receiver. When the host 100 sends a signal to the chip 200, the chip 200 as a slave can only passively receive the signal sent by the host 100; in the uplink period, the chip 200 is the sender and the host 100 is the receiver. When the chip 200 sends a signal to the host 100, the host 100 can only receive the signal sent by the chip 200. If such a sending and receiving rule is not followed, the signal sent by one party cannot be transmitted normally, and the other party cannot correctly receive the signal sent by the other party.

[0054] In particular, when the input and output of the chip are both through the interface module 201, the interface module 201 cannot simultaneously receive input signals and output its own signals. Therefore, in the communication protocol, it is generally strictly stipulated that during the downlink period when the host sends a signal, the chip as a slave must only be in a receiving state of receiving signals and is prohibited from changing to a sending state of sending signals.

[0055] The host 100 involved in the embodiment of the present application is a device that can realize data processing, control or related operations, and the chip 200 is used to be installed on the host 100 to assist the host 100 in completing related functions. In one example, the host can be a computer, and the chip can be a peripheral device / device of the computer. In another example, the host can be a mobile terminal (such as a mobile phone, tablet computer, PDA, etc.), and the chip is an accessory or peripheral device or device of the mobile terminal, such as a lithium battery chip, a wearable device chip, etc. For example, in Figure 2In the application scenario shown, the host 100 is a printing device 110, and the chip 200 is a consumable chip 210. The printing device 110 is provided with a communication port 111, and the consumable chip 210 is provided with an interface module 211. A communication link 310 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 310. For example, during the imaging process, the consumable chip 210 is used to provide identity recognition information and record material usage status information. In the prior art, in the downlink period, the printing device 110 is the sender and the consumable chip 210 is the receiver. When the printing device 110 sends a signal to the consumable chip 210, according to the communication rules, the consumable chip 210 as a slave can only passively receive the signal sent by the printing device 110.

[0056] For ease of description, the technical solution provided by the embodiment of the present application is described below by taking the printing device 110 and the consumable chip 210 as an example. 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 embodiment of the present application can also be applied to other types of hosts and chips, and the embodiment of the present application does not limit this.

[0057] During the imaging process, the printing device 110 needs the assistance of the imaging auxiliary information of the consumable box to complete the imaging process. In addition to being recorded in the printing device 110, the imaging auxiliary information of the printing device 110 is also recorded on the consumable chip 210. The consumable chip 210 mainly plays the role of identity recognition and providing the use status of the recording material. Therefore, when the consumable chip 210 is installed on the printing device 110, the printing device 110 will read the information of the consumable chip 210 and send the status and related information of the printing job to the consumable chip 210.

[0058] In some scenarios, the printing device 110 may send private data to the consumable chip 210. For example, when the printing device 110 authenticates the consumable chip 210, it may send private data to the consumable chip 210 in the authentication instruction, and the private data may include information related to the communication password and the communication status. However, when competitors monitor and collect the communication waveforms between the printing device 110 and the consumable chip 210, based on the communication protocol (hereinafter referred to as the target communication protocol) used for communication between the printing device 110 and the consumable chip 210, these private data can be parsed out from the monitored and collected communication waveforms. However, when the existing consumable chip 210 communicates with the printing device 110, as a slave, it can only passively receive these private data during the downlink period and cannot prevent the printing device 110 from transmitting these private data.

[0059] In view of the above problems, a consumable chip 210 provided in an embodiment of the present application further includes an interference module 212, such as Figure 3 As shown. The interference module 212 is used to interfere with the first data sent by the printing device 110 to the consumable chip 210 through the data bus during the downlink period, so that the data detected on the data bus (that is, the consumable chip receives it through the interface module 211) is the second data, wherein the second data is different from the first data. The first data is private data, that is, data that is not expected to be detected or collected by a third party on the communication link 310. For example, various passwords, verification data, integrity data, secret keys, etc., or simply data that expresses a specific meaning, such as data indicating that the chip is working properly, or certain parameters required by the chip. As long as it is for a certain purpose and is not expected to be obtained by others through the collection communication process, it can be the first data. The second data is the data detected and collected by a third party on the communication link 310. Since the consumable chip 210 receives data through the communication link 310 (data bus), the consumable chip 210 also receives the second data. Specifically, when the printing device 110 sends the first data to the consumable chip 210 through the communication link 310, the consumable chip 210 outputs an interference signal to the printing device 110 through the interface module 211, thereby interfering with and affecting the first data sent by the printing device 110 to the chip through the data bus, preventing others (third parties) from detecting and collecting the first data on the data bus between the printing device 110 and the consumable chip 210, thereby ensuring the security of the first data.

[0060] In a specific implementation, if the printing device 110 and the consumable chip 210 communicate serially, then a general data bus includes a data line (may also be referred to as a data link) and a clock line (may also be referred to as a clock link). The data line is used to transmit data signals, and the clock line is used to transmit clock signals. The clock signal is used to synchronously interpret the data signal to obtain the first data sent by the printing device 110 to the consumable chip 210.

[0061] It is understandable that the consumable chip 210 can make the first data sent by the printing device 110 different from the second data collected and detected on the data bus by interfering with the data signal on the data line (outputting a data interference signal) and / or interfering with the clock signal on the clock line (outputting a clock interference signal) during the downlink period of the first data. Among them, the difference between the first data and the second data can be that the number of bits of the first data and the second data is different (the lengths of the first data and the second data are different). For example, the first data is 8 bits, and the second data collected on the data bus is 7 bits or 9 bits. In addition, the difference between the first data and the second data can also be that the number of bits of the first data and the second data is the same (the lengths of the first data and the second data are the same), but the bit values ​​of the corresponding bits of the first data and the second data are different. For example, the bit value of the second bit in the first data is 1, and the bit value of the second bit in the second data is 0; or, the bit value of the second bit in the first data is 0, and the bit value of the second bit in the second data is 1. It is understandable that when the bit value of one bit in the first data and the second data is different, the first data and the second data will be different. Of course, the data interference signal and / or the data interference signal may also be used to make the number of bits and the bit value of the first data and the second data different, and the embodiment of the present application does not impose any specific limitation on this.

[0062] In a specific implementation, the clock interference signal can be used to change the number of clock cycles on the clock link and / or change the clock cycle (the length of the clock cycle) on the clock link. It is understandable that any change in the number of clock cycles and the clock cycle will cause the clock signal to change, which will cause the collected second data to be different from the first data, which will be described in detail below.

[0063] It should be pointed out that the embodiment of the present application does not specifically limit the type of data bus. For example, in the IIC protocol, in addition to the data line and the clock line, the IIC bus also includes a ground line and a power line. For the single bus protocol, the data line and other signal lines are shared. Therefore, when the signal line is used as a data line, the consumable chip 210 can interfere with the data signal on the signal line. If the consumable chip 210 and the printing device 110 transmit data in parallel, the data bus includes multiple data lines. At this time, the consumable chip 210 can choose to interfere with the data signals on all data lines, or only interfere with one or part of the data signals. Regardless of the form of the data bus between the printing device 110 and the consumable chip 210, the final result is that the first data sent by the printing device 110 is different from the second data collected on the data bus.

[0064] The consumable chip 210 interferes with the first data transmitted by the printing device 110 on the data link or the clock link, which may be to change the level of the data link or the clock link to a low level or a high level independently of the printing device 110 when the printing device 110 transmits the first data. Generally speaking, when the printing device 110 transmits data to the outside in the downlink period, the level signal on the data link or the clock link is controlled by the printing device 110. If the printing device 110 wants to send data 1, the data link is set to a high level, and if the printing device 110 wants to send data 0, the data link is set to a low level. The clock link is usually a stable square wave signal. During the period when the printing device 110 sends the first data, the consumable chip 210 can actively control the level signal of the data link or the clock link, and set the data link or the clock link to a high level or a low level, so that the data transmitted on the data bus can be changed, so that the second data on the data bus is different from the first data sent by the printing device 110.

[0065] To explain how the interference signal prevents the printing device 110 from sending the first data, a specific circuit structure is described below.

[0066] See also Figure 4 and Figure 5 , is a schematic diagram of a circuit structure of a communication system provided in an embodiment of the present application. Figure 4 and Figure 5 In the embodiment, the printing device 110 communicates with the consumable chip 210 through contact communication (i.e., wired mode), and the printing device 110 includes a communication port 111. In specific implementation, the communication port 111 may be a stylus, a contact point, or a shrapnel that transmits an electrical signal through contact. The consumable chip 210 includes an interface module 211, which may be a stylus, a contact point, or a shrapnel corresponding to the communication port 111. When the consumable chip 210 is installed on the printing device 110, the communication port 111 of the printing device 110 is in physical contact with the interface module 211 of the consumable chip 210, thereby constructing a data bus between the two. The data bus generally includes a data link for transmitting a data signal and a clock link for transmitting a clock signal. By using the clock signal to synchronously interpret the data signal, the communication data between the printing device 110 and the consumable chip 210 can be obtained. It can be understood that in order to interfere with the first data sent by the printing device 110 to the consumable chip 210, it can be achieved by interfering with the data signal or by interfering with the clock signal. For ease of understanding, the interference processes of the data link and the clock link are described below respectively.

[0067] exist Figure 4The data link 311 is shown in FIG. 3 . At the signal collection point K1 on the data link 311 , the data signal waveform of the communication between the printing device 110 and the consumable chip 210 can be detected and collected. Figure 4 The data link 311 in the example is described by using the IIC (Integrated Circuit) communication protocol. The printing device 110 transmits signals to the outside through the communication port 111. The signal node M1 in the printing device 110 is connected to the communication port 111 and is connected to the high-level signal VCC through the pull-up resistor R1. In the downlink period, the controlled switch S1 is selectively connected to the low level according to the signal to be sent (the ground GND is used as the low level in the figure. In order to avoid excessive discharge current, a current limiting resistor R2 can generally be connected in series between the controlled switch S1 and the ground GND). Therefore, the level of the signal node M1 can be changed according to the signal to be transmitted. When the printing device 110 needs to output a high level to the outside, the controlled switch S1 is disconnected, and the communication port 111 connected to the signal node M1 outputs a high level to the outside; when the printing device 110 needs to output a low level to the outside, the controlled switch S1 is closed, and the communication port 111 connected to the signal node M1 outputs a low level to the outside.

[0068] Similarly, in the consumable chip 210, a signal node N1 is also provided, and the signal node N1 is connected to the interface module 211 and connected to the high level signal VCC through the pull-up resistor R3. In the uplink period, the controlled switch S2 is selectively connected to the low level (the ground GND is used as the low level in the figure, and similarly, in order to avoid excessive discharge current, a current limiting resistor R4 can generally be connected in series between the controlled switch S2 and the ground GND), so the level of the signal node N1 can be changed according to the signal to be transmitted. When the consumable chip 210 receives the signal of the printing device 110 as a slave, that is, in the downlink period, the controlled switch S2 is disconnected, so the signal level on the data link 311 is determined by the printing device 110. It is known to those skilled in the art that the level of the signal acquisition point K1 on the data link 311 is the same as the level of the signal node N1 in the consumable chip 210, so changing the level of the signal node N1 can change the level of the data link 311. Since the consumable chip 210 receives the data signal through the data link 311 , the data signal received by the consumable chip at the signal node N1 is the same as the aforementioned data signal detected at the signal collection point K1 .

[0069] From the above circuit analysis, it can be known that when the consumable chip 210 needs to output a data interference signal to the communication port 111 of the printing device 110 through the interface module 211, it can no longer comply with the communication rules in the downlink period and change from the receiving state to the output state. The controlled switch S2 can be closed to output a low level to the outside. At this time, the level on the data link 311 will be forced to be pulled down to a low level, and the signal collected at the signal collection point K1 on the data link 311 will no longer be the same as the data signal sent by the printing device 110. In this embodiment, the pull-up resistor R3, the controlled switch S2 and the current limiting resistor R4 constitute the part of the above-mentioned interference module 212 used to interfere with the data signal, or the pull-up resistor R3 and the controlled switch S2 constitute the part of the above-mentioned interference module 212 used to interfere with the data signal. According to different design requirements, the pull-up circuit may not be set in the consumable chip 210. At this time Figure 4 The pull-up resistor R3 and the high-level signal VCC connected thereto may be omitted. In this case, only the controlled switch S2 constitutes the part of the interference module 212 for interfering with the data signal.

[0070] exist Figure 5 The clock link 312 is shown in FIG. 3 . At the signal collection point K2 on the clock link 312 , the clock signal waveform of the communication between the printing device 110 and the consumable chip 210 can be detected and collected. Figure 5 The clock link 312 in the example is described by using the IIC (IN2ter-IN2integrated Circuit, integrated circuit bus) communication protocol. The printing device 110 transmits signals to the outside through the communication port 111. The signal node M2 ​​in the printing device 110 is connected to the communication port 111 and connected to the high level signal VCC through the pull-up resistor R5. In the downlink period, the controlled switch S3 is selectively connected to the low level according to the signal to be sent (the ground GND is used as the low level in the figure. In order to avoid excessive discharge current, a current limiting resistor R6 can generally be connected in series between the controlled switch S3 and the ground GND). Therefore, the level of the signal node M2 ​​can be changed according to the signal to be transmitted. When the printing device 110 needs to output a high level to the outside, the controlled switch S3 is disconnected, and the communication port 111 connected to the signal node M2 ​​outputs a high level to the outside; when the printing device 110 needs to output a low level to the outside, the controlled switch S3 is closed, and the communication port 111 connected to the signal node M2 ​​outputs a low level to the outside.

[0071] Similarly, in the consumable chip 210, a signal node N2 is also provided, and the signal node N2 is connected to the interface module 211 and connected to the high level signal VCC through the pull-up resistor R7. In the uplink period, the controlled switch S4 is selectively connected to the low level (the ground GND is used as the low level in the figure, and similarly, in order to avoid excessive discharge current, a current limiting resistor R8 can generally be connected in series between the controlled switch S4 and the ground GND), so the level of the signal node N2 can be changed according to the signal to be transmitted. When the consumable chip 210 receives the signal of the printing device 110 as a slave, that is, in the downlink period, the controlled switch S4 is disconnected, so the signal level on the clock link 312 is determined by the printing device 110. It is known to those skilled in the art that the level of the signal acquisition point K2 on the clock link 312 is the same as the level of the signal node N2 in the consumable chip 210, so changing the level of the signal node N2 can change the level of the clock link 312. Since the consumable chip 210 receives the data signal through the clock link 312, the data signal received by the consumable chip at the signal node N2 is the same as the aforementioned data signal detected at the signal acquisition point K2.

[0072] From the above circuit analysis, it can be known that when the consumable chip 210 needs to output a clock interference signal to the communication port 111 of the printing device 110 through the interface module 211, the controlled switch S4 can be closed to output a low level to the outside. At this time, the level on the clock link 312 will be forced to be pulled down to a low level, and the signal collected at the signal collection point K2 on the clock link 312 will no longer be the same as the data signal sent by the printing device 110. In this embodiment, the pull-up resistor R7, the controlled switch S4 and the current limiting resistor R8 constitute the part of the interference module 212 used to interfere with the clock signal, or the pull-up resistor R7 and the controlled switch S4 constitute the part of the interference module 212 used to interfere with the clock signal. According to different design requirements, the pull-up circuit may not be set in the consumable chip 210. At this time Figure 5 The pull-up resistor R7 and the high-level signal VCC connected thereto may be omitted, and only the controlled switch S4 constitutes the part of the interference module 212 for interfering with the clock signal.

[0073] To more specifically explain how the clock interference signal affects the recognition of the first data, a detailed explanation is given below in conjunction with the signal transmission waveform.

[0074] See also Figure 6, which is a schematic diagram of an interference scenario provided by an embodiment of the present application. Among them, "Clock signal" is the clock signal transmitted by the printing device to the consumable chip, "first clock interference signal" is the clock interference signal output by the consumable chip, "mixed clock signal" is a mixed clock signal superimposed with the Clock signal and the first clock interference signal, "Data signal" is the data signal transmitted by the printing device to the consumable chip, and "interpretation data" is the interpretation data obtained by interpreting and identifying the Data signal using the mixed clock signal.

[0075] exist Figure 6 In the example, the transmission of a byte, that is, 8 bits of first data is taken as an example. Figure 6 The first data in is the hexadecimal number 0xE4, which is converted into binary number "1110 0100". The high level represents 1 and the low level represents 0. The waveform of the first data is Figure 6 The Data signal is shown in the figure. Figure 6 The Clock signal transmitted synchronously with the Data signal is a square wave signal with a duty cycle of about 50%.

[0076] According to different settings, the acquisition device can determine the amplitude of the data signal synchronized with the clock signal at the rising edge or falling edge of the clock signal or when the level remains high, thereby identifying the content of the data signal. If the acquisition device determines the amplitude of the data signal at the rising edge of the clock signal, then when the Clock signal on the Clock line (a clock link for transmitting the Clock signal) is not interfered with, the waveform transmitted on the Data line (a data link for transmitting the Data signal) can be identified as an 8-bit binary number "11100100", that is, the first data 0xE4 mentioned above. However, in order to prevent a third party from identifying that the first data is transmitted on the Data line, the consumable chip provided in the embodiment of the present application outputs a clock interference signal to the printing device through the interface module when the printing device transmits the first data, thereby interfering with and affecting the first data identified by the acquisition device, and preventing a third party from detecting and collecting the first data on the communication link between the printing device and the consumable chip.

[0077] Please continue reading Figure 6, when it is determined that the printing device starts to transmit the first data 0xE4, the consumable chip outputs the first clock interference signal to the printing device. The first 5 clock cycles of the first clock interference signal maintain a high level, the 6th clock cycle is pulled low, and the next 2 clock cycles are restored to a high level. Due to the characteristics of the IIC bus, when the 6th clock cycle is pulled low, the level of the 6th clock cycle of the Clock line will be forced to be pulled low, so that the mixed clock signal obtained after the interference will change from the 8 clock square waves originally transmitted by the Clock line to only 7 clock square waves. It can be understood that for the acquisition device that recognizes the data signal at the rising edge of the mixed clock, the number of data bits recognized is related to the number of rising edges of the mixed clock. Therefore, based on the target communication protocol (the communication protocol used by the printing device 110 and the consumable chip 210), the acquisition device recognizes and interprets the 7-bit data "1110 000" at the signal acquisition point of the Data line, that is, the hexadecimal number 0xE0 (it should be noted that when the data is less than 8 bits, 0 will be added in the low position, so "1110 000" will be recognized as "1110 0000"). It can be seen that by outputting the first clock interference signal to the printing device, others cannot use the acquisition device to recognize the first data 0xE4 from the communication port, and the recognized acquisition data is the second data 0xE0, thereby avoiding the leakage of the first data.

[0078] To summarize, in the embodiment of the present application, the consumable chip outputs a clock interference signal during the downlink period of receiving the first data, thereby reducing the number of clock cycles on the clock link, so that the number of bits of the second data collected by the third party on the communication link based on the target communication protocol is smaller than the number of bits of the first data, thereby avoiding the leakage of the first data.

[0079] In a specific implementation, the clock interference signal output by the chip can not only reduce the number of clock cycles on the clock link, but also increase the number of clock cycles on the clock link.

[0080] See also Figure 7 , is a schematic diagram of another interference scenario provided in an embodiment of the present application. Figure 7In the interference scenario shown, the chip outputs a second clock interference signal, which maintains a high level in the first five clock cycles, pulls down the high level period of the sixth clock cycle by a quarter of a clock cycle, and restores the high level in the last two clock cycles. Due to the characteristics of the IIC bus, when the high level period of the sixth clock cycle of the second clock interference signal is pulled down by a quarter of a clock cycle, the high level period of the sixth clock cycle of the Clock line will be forced to be pulled down by a quarter of a clock cycle, so that the mixed clock signal obtained after the interference will be changed from the 8 clock square waves originally transmitted by the Clock line to 7 clock square waves plus 2 clock square waves with higher frequencies (a total of 9 clock square waves). It can be understood that for an acquisition device that identifies a data signal at the rising edge of a mixed clock, the number of data bits identified is related to the number of rising edges of the mixed clock. Therefore, based on the target communication protocol (the communication protocol used by the printing device 110 and the consumable chip 210), the acquisition device recognizes and interprets the 9-bit data "1110 0110 0" at the signal acquisition point of the Data line, that is, the hexadecimal number 0xE600 (it should be noted that when the data is less than 8 bits, 0 will be added to the low bit, so "1110 0110 0" will be recognized as "1110 0110 0000 0000"). It can be seen that by outputting the second clock interference signal to the printing device, others cannot recognize the first data 0xE4 from the communication port using the acquisition device, and the recognized acquisition data is 0xE600, thereby avoiding the leakage of the first data.

[0081] To summarize, in the embodiment of the present application, the consumable chip outputs a clock interference signal during the downlink period of receiving the first data, thereby increasing the number of clock cycles on the clock link, so that the number of bits of the second data collected by the third party on the communication link based on the target communication protocol is greater than the number of bits of the first data, thereby avoiding the leakage of the first data.

[0082] In the above embodiment, the clock interference signal is described by taking a byte of first data as an example. Specifically, the clock interference signal output by the consumable chip causes at least one clock cycle of the clock signal synchronized with the first data to be changed, so that the number of clock signals synchronized with the first data changes. Specifically, the changed clock signal (i.e., the mixed clock signal) can have fewer clock cycles or more clock cycles, so that the collected data identified by using the mixed clock signal is different from the first data, because the identified collected data is shorter than the first data ( Figure 6 embodiment shown) or longer ( Figure 7Of course, the first data may also include multiple bytes, and the clock interference signal output by the consumable chip causes the clock signal of at least one clock cycle in the clock signal synchronized with the first data to be changed.

[0083] In addition, in practical applications, according to the communication protocol between the printing device and the consumable chip, the consumable chip needs to reply a response signal every time it receives a specific amount of data, indicating that the corresponding data has been received. For example, in the IIC communication protocol, the consumable chip needs to reply a response bit (ACK) every time 8 bits are transmitted, indicating that 8 bits that meet the protocol standard have been received. Therefore, when the consumable chip of the embodiment of the present application outputs a clock interference signal to interfere with the clock signal transmitted by the printing device, before the printing device detects the response bit (ACK) of the consumable chip, the output level of the Data line is controlled, thereby replying the response bit of the printing device to avoid the printing device from thinking that the consumable chip is abnormal. However, after the first clock interference signal or the second clock interference signal is used to interfere with the clock signal transmitted by the printing device, when the acquisition device interprets and identifies the collected signal, it will be identified in the manner of one response bit after every 8 bits, so the collected data after the clock signal is interfered may identify the response bit as data, or may identify the identified data as a response bit, so that the identified collected data is different from the first data, thereby avoiding the leakage of the first data.

[0084] Depend on Figure 6 and Figure 7 It can be found in the embodiments that when the acquisition device identifies and interprets data through the rising edge of the clock signal of the synchronous data signal, the number of data bits identified is related to the number of rising edges of the mixed clock signal. The first clock interference signal is to pull down the level of all high-level time periods of one or more clock cycles, thereby reducing the number of rising edges of the mixed clock, and thus shortening the length of the identified acquisition data; the second clock interference signal is to pull down the level of a part of the high-level time periods of one or more clock cycles, thereby increasing the number of rising edges of the mixed clock, and thus lengthening the length of the identified acquisition data. Therefore, when the first clock interference signal or the second clock interference signal is used to interfere with the clock signal transmitted by the printing device, it may be easy for others to identify that the first data transmitted by the printing device has been interfered.

[0085] In a possible implementation, in order to make the interference to the clock signal more concealed and not easily discovered, the embodiment of the present application can also use the first clock interference signal and the second clock interference signal to interfere with the clock signal transmitted by the printing device at the same time, so that the number of rising edges of the clock after the interference is the same as the original number of rising edges, that is, it does not decrease or increase. In other words, the number of clock cycles on the clock link is not changed, but one or more clock cycles (the length of the clock cycle) on the clock link are adjusted.

[0086] like Figure 8 As shown, the third clock interference signal is an interference method that uses the first clock interference signal and the second clock interference signal at the same time. Figure 8 In the embodiment, the first clock interference signal is used to interfere with the third clock cycle, so that the number of rising edges is reduced by 1; the second clock interference signal is used to interfere with the sixth clock cycle, so that the number of rising edges is increased by 1. Therefore, after the consumable chip outputs the third clock interference signal to the communication port of the printing device, the length of the collected data recognized by the acquisition device from the Data line is the same as the length of the first data. However, when the mixed clock signal with the third clock interference signal superimposed is used to identify the first data transmitted from the Data line, since data 1 is no longer recognized at the third clock cycle, but two data 1s are recognized at the sixth clock cycle, the recognized collected data is "1100 1100", that is, the hexadecimal number 0xCC, which is obviously different from the first data 0xE4 transmitted on the Data line, thereby avoiding the leakage of the first data. In addition, since the length of the collected data recognized by the acquisition device from the Data line is the same as the length of the first data, this interference method has a high degree of confusion and is not easy to be discovered.

[0087] To summarize, in the embodiment of the present application, the consumable chip outputs a clock interference signal during the downlink period of receiving the first data, changes the clock cycle (clock cycle length) on the clock link, and keeps the number of clock cycles on the clock link unchanged, so that the bit value of the second data collected on the communication link based on the target communication protocol is different from the first data, and the bit number of the second data is the same as the first data, which has a higher concealment.

[0088] In another possible implementation, the consumable chip can also output a clock interference signal and / or a data interference signal to generate a stop signal in the communication link, thereby truncating the first data, thereby making the number of bits of the collected second data less than the number of bits of the first data, that is, the collected second data is different from the first data, thereby avoiding leakage of the first data.

[0089] To facilitate understanding of how the stop signal is generated, the IIC (Inter-Integrated Circuit) communication protocol is used as an example to illustrate how the clock signal machine data signal is used to generate a stop condition during the communication process, thereby interrupting data transmission.

[0090] See also Fig. 9 , is a waveform diagram of a start signal and a stop signal provided in an embodiment of the present application. Fig. 9 The figure shows two signal waveforms of synchronous transmission on the Clock line and the Data line. It can be understood that the Clock line is used to transmit the Clock signal and the Data line is used to transmit the Data signal. In the IIC communication protocol, the level state of the Data line must remain stable when the Clock line is at a high level, and the level state of the Data line is allowed to change only when the Clock line is at a low level. If the level state of the Data line changes while the Clock line is at a high level, a start or end condition will be generated. Fig. 9 In the embodiment, when the Clock line is at a high level, a start condition is generated when the Data line jumps from a high level to a low level, and the data bus is in a busy state after the start condition is generated. The start condition is often abbreviated as S. In another case, when the Clock line is at a high level, a stop condition is generated when the Data line jumps from a low level to a high level, and the data bus is in an idle state after the stop condition is generated. The stop condition is often abbreviated as P. When the acquisition device identifies the acquired waveform based on the IIC communication protocol, it identifies the data transmitted by the Data line after the start condition S, and no longer identifies the data transmitted by the Data line after the stop condition P. The embodiment of the present application can truncate the transmission of data based on this feature of the communication protocol, so that the third party can only collect part of the first data on the data bus, that is, the number of bits of the collected second data is less than the number of bits of the first data, thereby avoiding leakage of the first data.

[0091] To more specifically explain how the data interference signal and the clock interference signal interrupt the transmission of the first data, in the following embodiment, Fig.10 and Fig.11 Its working principle is explained.

[0092] See also Fig.10 , which is another interference scenario schematic diagram provided by an embodiment of the present application. Among them, "Data signal" is a data signal transmitted from a printing device to a consumable chip, "data interference signal" is used to interfere with the Data signal, "Clock signal" is a clock signal transmitted from a printing device to a consumable chip, and "interfered Data signal" is a mixed data signal with the Data signal and the data interference signal superimposed.

[0093] exist Fig.10 In the example, the transmission of a byte, that is, 8 bits of first data is taken as an example. Fig.10 The first data in is the hexadecimal number 0x9D, which is converted into binary number "1001 1101". The high level represents 1 and the low level represents 0. The waveform of the first data is Fig.10 The graph shown in the Data signal. Fig.10 The Clock signal transmitted synchronously with the Data signal is a square wave signal with a duty cycle of about 50%.

[0094] According to different settings, the acquisition device can determine the amplitude of the data signal synchronized with the clock signal at the rising edge or falling edge of the clock signal or when the level remains high, thereby identifying the content of the data signal. If the acquisition device determines the amplitude of the data signal at the rising edge of the clock signal, the waveform transmitted on the Data line (the data link for transmitting the Data signal) can be identified as an 8-bit binary number "1001 1101" when the Clock signal transmitted by the Clock line (the clock link for transmitting the Clock signal) is not interfered with, that is, the first data 0x9D mentioned above. However, in order to prevent a third party from identifying that the first data is transmitted on the Data line, the consumable chip provided in the embodiment of the present application outputs a data interference signal to the printing device through the interface module when the printing device transmits the first data to actively generate a stop condition, thereby interfering with and affecting the first data identified by the acquisition device, thereby truncating the transmission of the data on the communication protocol, and preventing others from detecting and collecting the first data on the communication link between the printing device and the consumable chip.

[0095] Please continue reading Fig.10 , when it is judged that the printing device starts to transmit the first data 0x9D, the consumable chip outputs a data interference signal to the printing device. After the 4th clock cycle, the data interference signal outputs a low-level signal, thereby pulling down the level of the Data line and continuing until the t1 time after the rising edge of the 5th clock cycle. After reaching the t1 time, the data interference signal is stopped. Since the t1 time is less than the time to maintain a high level in 1 clock cycle (i.e., less than half a clock cycle), if the Data line synchronized with the 5th clock cycle transmits a high level at this time, the high level period of the Data line in this clock cycle is delayed by at least t1 time to jump to a high level. Since the Clock line is at a high level in the 5th clock cycle, the level of the Data line jumps from a low level to a high level after t1 time of the rising edge of the 5th clock cycle, thus generating a stop condition P.

[0096] According to the characteristics of the IIC communication protocol, the acquisition device Fig.10When the Clock signal in the printer recognizes the interfered Data signal, the data signal of the 5th clock cycle is recognized as a stop condition, and the data of the 6th to 8th clock cycles thereafter are no longer recognized. The collected data obtained after the collection device recognizes it is only "1001", that is, 0x9. Therefore, the first data is stopped during the recognition process of the collection device due to the stop condition caused by the data interference signal, and the reception process of the first data is truncated. It can be seen that by outputting the data interference signal to the printing device, others cannot use the collection device to recognize the first data 0x9D from the communication port, and the recognized collected data is 0x9, thereby avoiding the leakage of the first data.

[0097] See also Fig.11 , which is another interference scenario schematic diagram provided by an embodiment of the present application. Among them, the "Clock signal" is the clock signal transmitted by the printing device to the consumable chip, the "clock interference signal" is used to interfere with the Clock signal, the "interfered Clock signal" is a mixed clock signal superimposed with the Clock signal and the clock interference signal, and the "Data signal" is the data signal transmitted by the printing device to the consumable chip.

[0098] exist Fig.11 In the example, the transmission of a byte, i.e., 8 bits of the first data 0x9D, is also used for explanation. In order to prevent a third party from identifying that the first data is transmitted on the Data line (a data link for transmitting Data signals), when the printing device transmits the first data, the consumable chip provided in the embodiment of the present application outputs a clock interference signal to the printing device through the interface module to actively generate a stop condition, thereby interfering with and affecting the first data recognized by the acquisition device, thereby interrupting the transmission of the data on the communication protocol, and preventing others from detecting and acquiring the first data on the communication link between the printing device and the consumable chip.

[0099] Please continue reading Fig.11 , when it is judged that the printing device starts to transmit the first data 0x9D, the consumable chip outputs a clock interference signal to the printing device. The clock interference signal outputs a high-level signal after the t2 time of the fourth clock cycle, thereby forcibly pulling the level of the Clock line high and continuing until the high-level period of the fifth clock cycle (the time the clock interference signal remains high exceeds t3). To avoid generating a start condition, the clock interference signal is stopped from being output before the high-level falling edge of the fifth clock cycle. It can be seen that after the consumable chip outputs the clock interference signal, the high-level period of the clock cycle of the Clock line is jumped from a low level to a high level at least t3 in advance.

[0100] Since the level of the Clock line jumps to a high level in advance at t3 before the rising edge of the fifth clock cycle, when the Data line synchronized with the fifth clock cycle transmits a high level, during the period when the Data line jumps from a low level to a high level in the fifth clock cycle, the clock signal on the corresponding Clock line is disturbed and forced to be pulled high, thus generating a stop condition P. According to the characteristics of the IIC communication protocol, the acquisition device Fig.11 The clock signal of the Clock line in Fig.11 When the data signal of the Data line in the 5th clock cycle is identified, the data signal of the 5th clock cycle is identified as a stop condition, and the data information of the 6th to 8th clock cycles thereafter are no longer identified. The collected data obtained after the collection device identifies it is only "1001" or 0x9. Therefore, the first data is stopped during the recognition process by the collection device due to the stop condition caused by the clock interference signal, and the reception process of the first data is truncated. It can be seen that by outputting the clock interference signal to the printing device, others using the collection device cannot identify the first data 0x9D from the communication port, and the identified collected data is 0x9, thereby avoiding the leakage of the first data.

[0101] In the above embodiment, a byte of first data is taken as an example to illustrate the generation of a stop condition. Specifically, the clock interference signal or data interference signal output by the consumable chip causes the clock signal synchronized with the first data and the first data to be recognized by the acquisition device according to the communication protocol. The first data of at least one clock cycle is recognized as a stop condition, and the data after the stop condition is no longer recognized by the acquisition device. Therefore, the acquired data is different from the first data. The reason is that the recognized acquisition data is shorter than the length of the first data (such as Fig.10 and Fig.11 Of course, the first data may also include multiple bytes, which is not specifically limited in this embodiment of the present application.

[0102] In actual applications, whether the stop condition can be generated depends on whether the first data transmitted by the printing device to the consumable chip contains at least one bit that is a high level (that is, the binary number "1"). It is often difficult for the consumable chip to predict in advance which bits in the first data are high levels unless the first data is fixed or predictable.

[0103] In a possible implementation, an interference signal can be output for a plurality of or all of the clock signals or data signals during the period when the printing device transmits the first data, so that at least one stop condition is generated during the period when the printing device transmits the first data. For example, in the above embodiment, when the first data is 0x9D (1001 1101), when the clock interference signal is output for the clock signals of all the clock cycles during the period when the printing device transmits the first data, as long as the corresponding first data is at a high level, a corresponding number of stop signals can be generated, that is, 5 stop signals can be generated; similarly, when the data interference signal is output for the data signals of all the clock cycles during the period when the printing device transmits the first data, as long as the corresponding first data is at a high level, a corresponding number of stop signals can be generated, that is, 5 stop signals can be generated. Assuming that there is a situation where the first data is all 0 (i.e., the Data line is all at a low level), the first data does not need to be kept confidential at this time, so if this situation cannot generate a stop condition, there is no impact.

[0104] It should be noted that in the above embodiments, the clock interference signal is described by taking a low level as an example. However, in other output signal structures, the clock interference signal may also be a high level signal. The high level and low level referred to in the embodiments of the present application refer to the definition of high and low levels in a digital circuit, for example, a high level is a voltage between 2.5-5V, and a low level is a voltage between 0-1.5V, and the embodiments of the present application do not specifically limit this.

[0105] In addition, although the consumable chip interferes with the first data sent by the printing device in the embodiment of the present application, it does not affect the consumable chip's use of the first data. For example, the data sent by the printing device to the consumable chip can be divided into two parts, one part is data of a predetermined number of bytes, and the other part is the first data. The first data here can be a check value, and the check value can be obtained by the consumable chip through calculation. In other words, the consumable chip itself has a judgment mechanism that can be unaffected by the first data after interference, and chooses not to read (not receive) the first data after interference, but obtains the first data through its own calculation. Therefore, it can be achieved that: the interfered data collected by the acquisition device is wrong, while the data received by the consumable chip from the printing device is correct.

[0106] It is understandable that the interference of the consumable chip on the data transmitted in the data bus cannot affect the normal communication between the printing device and the consumable chip. In other words, the consumable chip only needs to interfere with the first data transmitted in the data bus (that is, the privacy data described above and the unnecessary redundant data), so it is necessary to judge the interference timing of the consumable chip.

[0107] In a possible implementation, before the printing device sends the first data to the consumable chip, it will first send the third data to the consumable chip, so that the consumable chip can determine whether the printing device is to send the first data based on the third data. The third data can be data for interactive authentication, or conventional response data, etc. The third data and the first data can be data in one instruction, or data in different instructions. When the third data and the first data are in one instruction, the third data can be the header of the instruction, and the first data can be the data contained in the instruction. When the third data and the first data are in different instructions, the third data can be data in the first instruction, and the first data can be data in the second instruction, and the first instruction can be sent to the chip before the second instruction.

[0108] In a specific implementation, the consumable chip can judge that the printing device is ready to send the first data by the length of the third data; or, the consumable chip can judge that the printing device is ready to send the first data by the content of the third data. For example, the address information of the first data is given in the third data, and the consumable chip can know that the printing device is ready to send the first data through the address information. It can also be that the third data includes some flag data, and after the consumable chip receives these flag data, it judges that the printing device is ready to send the first data according to these flag data, or the third data clearly indicates that the first data is to be sent. The consumable chip can also judge that the current printing device is ready to send the first data according to the communication result after the printing device sends the third data. For example, the printing device first performs interactive verification of the third data with the consumable chip, and after the verification is completed, it can be determined that the printing device is ready to send the first data. In short, the consumable chip can judge whether the printing device is going to send the first data based on the third data communicated with the printing device, and the specific judgment rules can be flexibly set according to the communication rules between the printing device and the consumable chip.

[0109] Of course, although the printing device sends the third data to the consumable chip before sending the first data, the consumable chip may not judge whether the printing device sends the first data based on the third data. Instead, it is judged based on other signals or signals transmitted by other lines. For example, when the third data starts to be received, the clock timing is used to judge whether the printing device is sending the first data. For another example, based on the clock signal of the communication between the printing device and the consumable chip, or the changes in electrical characteristics or electrical signals such as power signals, reset signals, set signals, and data signals. As long as any signal change matches the preset judgment condition in the communication between the printing device and the consumable chip, it can be used as the basis for the consumable chip to judge whether the printing device is to send the first data.

[0110] In another possible implementation, if the printing device does not send the third data to the consumable chip before sending the first data, the consumable chip can determine whether the printing device is going to send the first data by determining whether the consumable chip is powered. For example, as long as the consumable chip starts to be powered, it is assumed that the data sent by the printing device will be interfered with, so that when the printing device does not send the third data, it can also be determined whether the printing device is going to send the first data. It can also be determined by the reset end, clock end, etc. of the consumable chip. As long as there is a signal sent from these ports, it can be determined that the printing device is going to send the first data. Of course, it is also possible to monitor whether there is a signal at the data end, and if there is a signal, it means that the printing device is going to send the first data. In addition, there are other electrical signal changes, such as continuous power on and power off (power on means that the printing device supplies power to the power port of the consumable chip, and power off means that the printing device stops supplying power to the port of the consumable chip), when a capacitor is set on the consumable chip, by detecting the voltage after the capacitor is charged, etc. These methods can be used to determine whether the printing device sends the first data.

[0111] In one embodiment, after judging that the printing device is ready to send the first data, the consumable chip can interfere with the first data immediately, or wait for a while before executing, which depends on the processing speed of the consumable chip or the setting of the consumable chip. For example, if the processing speed of the consumable chip is fast, it can interfere immediately after judging that the printing device is ready to send the first data. However, if the consumable chip is limited by hardware conditions and has a slow processing speed, it can wait for a while before interfering with the first data after judging that the printing device is ready to send the first data. In the case where the conditions for judging whether the printing device sends the first data are relatively complex, it is preferred to interfere with the last part of the first data, so that the consumable chip has enough time to make a judgment, even if the consumable chip judges that the printing device is sending the first data, the printing device has already sent part of the first data. The consumable chip can also choose to interfere with the middle part of the first data, so that the consumable chip can end the interference with the first data in advance and does not affect the subsequent communication work. When the performance of the consumable chip is very excellent, it can choose to interfere with all the first data. In short, as long as the first data can be interfered with, it is enough to prevent others from obtaining complete or accurate first data.

[0112] When the printing device is sending the first data, from the data bus, the data transmitted on the data bus is the second data that is interfered by the consumable chip, which is different from the first data sent by the printing device itself. In this way, those methods that obtain the communication data between the printing device and the consumable chip by monitoring the data bus can only obtain the second data, and cannot obtain the true and accurate first data. Of course, the consumable chip can also actively send interference data to the data bus, and the interference data and the first data sent by the printing device are superimposed on the data bus to form the second data on the data bus.

[0113] In order to ensure normal communication between the consumable chip and the printing device, the consumable chip needs to correctly respond to various requests of the printing device after interfering with the first data sent by the printing device. It cannot consistently interfere with all data sent by the printing device in the downlink period. Therefore, when the consumable chip stops interfering with the first data, it is also necessary to respond to the printing device according to the communication protocol requirements between the consumable chip and the printing device, indicating that the consumable chip has completed the reception of the first data. This response indicating that the consumable chip has completed the reception of the first data mainly depends on the communication protocol requirements between the consumable chip and the printing device, and different communication protocols have different requirements. It can be set according to actual conditions. For example, in the IIC communication protocol, the consumable chip needs to reply a response bit (ACK) for every 8 bits transmitted, indicating that 8 bits that meet the protocol standard have been received. Therefore, the consumable chip of the present invention stops outputting interference signals before the printing device detects the response bit (ACK) of the consumable chip to avoid the printing device thinking that the consumable chip is abnormal. When the consumable chip replies to the response bit (ACK), the consumable chip is the sender and the printing device is the receiver. When the consumable chip replies to the response bit to the printing device, the printing device can only receive the response bit signal sent by the consumable chip. Therefore, the consumable chip is in the uplink period when replying the response bit. During the uplink period, the consumable chip acts as the sender and the printing device does not transmit information to the outside, so the consumable chip does not need to output interference signals to the outside. At the same time, the consumable chip cannot actively output interference signals to the outside during the uplink period to avoid affecting the normal signals output by the consumable chip. This is also the difference between the selective interference of this application and the random interference during communication abnormalities.

[0114] The consumable chip provided in the embodiment of the present application can both interfere with the first data sent by the printing device and respond normally to the operation of the printing device, thereby ensuring normal communication between the consumable chip and the printing device and preventing a third party from obtaining the first data by monitoring the communication between the consumable chip and the printing device.

[0115] In a specific implementation, the data sent by the printing device to the consumable chip may be various instructions, such as a read instruction, a write instruction, an authentication instruction, a control instruction for a specific operation, etc. The first data may be part or all of the data in the instruction.

[0116] See also Fig.12, is a schematic diagram of an instruction format provided in an embodiment of the present application. The instruction format can be applied to instructions transmitted serially from a printing device to a consumable chip. It includes an instruction header, instruction data, an instruction check value 1, and an instruction check value 2 in sequence. In one embodiment, the instruction header indicates the type, access address, and length of the instruction; the instruction data is the data included in the instruction, indicating the information to be transmitted by the printing device to the consumable chip; the instruction check value 1 indicates that a certain algorithm is used to execute the algorithm on both the "instruction header and instruction data", and the verification result related to the two data is obtained, which is used to verify whether the data (instruction header and instruction data) is transmitted abnormally, for example, the instruction check value 1 is a cyclic redundancy check (CRC) of both the "instruction header and instruction data"; the instruction check value 2 is a further verification result that can be made on the three "instruction header, instruction data, and instruction check value 1", and its algorithm can be CRC or other verification algorithms.

[0117] After receiving this instruction, the consumable chip can identify each part of the instruction and, according to the requirements of the instruction, feedback the execution result after receiving the instruction. In the embodiment of the present application, according to the understanding and needs of the inventor, a type of data or part of the data in "instruction data, instruction check value 1 and instruction check value 2" can be regarded as private data, that is, preset data (that is, the first data mentioned above) that is not expected to be detected or collected by others, for example, instruction check value 2 is regarded as preset data. Therefore, when the consumable chip determines that the printing device has successively transmitted the instruction header, instruction data and instruction check value 1, it can output an interference signal to the printing device through the interface module, thereby interfering with and affecting the instruction check value 2 (that is, preset data / first data) output by the printing device. In this way, a third party cannot detect and collect instruction check value 2 on the communication link between the printing device and the consumable chip, and avoids the leakage of the first data in a clever way, thereby preventing the printing device from transmitting the first data to the outside in disguise.

[0118] In one embodiment, the instruction header, instruction data, and instruction check value 1 have fixed lengths, i.e., the number of bytes. For example, the instruction header is 8 bytes, the instruction data is 32 bytes, the instruction check value 1 is 2 bytes, and the instruction check value 2 is 8 bytes. When the printing device transmits the third data of the predetermined bit / byte quantity (8+32+2, a total of 42 bytes in this embodiment) to the consumable chip, the consumable chip outputs an interference signal to the communication port of the printing device through the interface module. Therefore, when the printing device transmits the 8-byte instruction check value 2 (i.e., the preset data / first data) to the consumable chip, the consumable chip outputs an interference signal to the communication link. The interference signal causes the 8-byte data (i.e., the second data, also referred to as the collected data) detected and collected by others from the communication link to be different from the instruction check value 2 (i.e., the preset data / first data).

[0119] It can be seen that in this embodiment, if the printing device starts to transmit the preset data after transmitting the third data of the predetermined number of bytes to the consumable chip, the interference signal output by the consumable chip of the present invention can make it impossible for others to detect the preset data from the communication port. If others detect and collect the preset data of the printing device at the communication port of the printing device at this time, the collected data (second data) that can be detected must be different from the preset data (first data).

[0120] The consumable chip can determine whether the printing device has transmitted a predetermined number of bits / bytes of data to the consumable chip by counting the number of received data (in bits or bytes). In other embodiments, the consumable chip can identify when the preset data (first data) will appear by judging the content of the instruction, the format of the instruction, and the sending duration of the timing instruction, thereby starting to output an interference signal. For example, in the aforementioned example, the preset data instruction check value 2 is transmitted to the consumable chip after the instruction check value 1, then the consumable chip can judge the content of the instruction, and when it is determined that the instruction check value 1 has been sent, it starts to output an interference signal; for another example, the printing device transmits the instruction header, instruction data and instruction check value 1 for 30ms, then the consumable chip can start timing when receiving the instruction, and start outputting an interference signal after timing to 30ms, thereby interfering with the preset data sent by the printing device, that is, the instruction check value 2.

[0121] In other embodiments, the instruction identifier may be used as the first data. The instruction identifier indicates the type or order of the instruction. For example, if the instruction is an authentication instruction, the instruction identifier may inform the consumable chip which authentication instruction is transmitted, or indicate the location of the verification value.

[0122] See also Fig.13, is another instruction format diagram provided by an embodiment of the present application. The instruction includes an instruction header, instruction data, an instruction identifier and an instruction check value in sequence. In an embodiment of the present application, the instruction identifier can be used as the first data. The instruction identifier indicates the category or order of the instruction. For example, if the instruction is an authentication instruction, the instruction identifier can inform the consumable chip that the instruction is the authentication instruction transmitted for which number, or indicate the location of the check value. For other contents of the embodiment of the present application, please refer to Fig.12 For the sake of brevity, the description of the illustrated embodiment will not be repeated here.

[0123] See also Fig.14 , which is a schematic diagram of the structure of a consumable chip provided in an embodiment of the present application. The consumable chip 1400 can be detachably mounted on a consumable box, and the consumable box can be an ink cartridge containing ink, a toner cartridge containing toner, or a powder box or a powder cartridge containing toner, and the consumable box can also be detachably mounted on a printing device. The consumable chip 1400 includes: a control module 1420, an interface module 1410 and a storage module 1430, and the interface module 1410 and the storage module 1430 are both electrically connected to the control module 1420, wherein:

[0124] The interface module 1410 is used for input and output communication with external devices. When the consumable chip is installed in the printing device, it can be used to receive information / instructions sent by the printing device and send information to the printing device. The storage module 1430 is used to store information about the consumable chip, such as the manufacturing date, manufacturer, color of recording materials (such as ink, toner), capacity of recording materials, remaining number or consumption number of recording materials, number of printable pages, number of printed pages, and other rewritable or read-only information. In an embodiment of the present application, the storage module 1430 can also store data features before and after the printing device transmits preset data (first data), such as the predetermined number of bytes before the printing device transmits preset data. The storage module 1430 can use a common non-volatile memory, or a combination of a non-volatile memory and a volatile memory.

[0125] In the storage module 1430, several configuration fields can be set, which can adjust the consumable chip to determine when the preset data appears. During later maintenance, the predetermined bit / byte number or timing duration determined by the consumable chip can be adjusted by modifying the configuration fields.

[0126] The control module 1420, which may be a single chip microcomputer (MCU), a microcontroller, an FPGA, an ASIC, etc., is used to control the communication between the consumable chip and the printing device, read information from the storage module 1430, and store information in the storage module 1430. In the embodiment of the present application, the functions in the above interference module can be implemented by the control module 1420.

[0127] The consumable chip may further include a circuit board, which carries the control module 1420, the interface module 1410 and the storage module 1430. In one embodiment, the control module 1420, the interface module 1410 and the storage module 1430 are integrated in the same circuit.

[0128] Corresponding to the above-mentioned embodiment, the embodiment of the present application further provides a consumable box, on which any one of the aforementioned consumable chips is installed.

[0129] Corresponding to the above embodiments, an embodiment of the present application further provides a device, which includes any one of the aforementioned chips.

[0130] Corresponding to the above embodiment, the embodiment of the present application also provides a data transmission method, which includes: receiving the first data sent by the host to the chip through the clock link and the data link; wherein, the chip outputs a clock interference signal and / or a data interference signal during the downlink period of receiving the first data, so that the second data collected on the communication link based on the target communication protocol is different from the first data, the clock interference signal is used to interfere with the clock link, the data interference signal is used to interfere with the data link, and the target communication protocol is the communication protocol used by the host to send the first data to the chip. The specific content of the embodiment of the method can be found in the description of the above embodiment, and for the sake of brevity, it will not be repeated here.

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

[0132] In a specific implementation, an embodiment of the present application further provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes some or all of the steps in the above method embodiment.

[0133] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0134] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0135] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0136] In several embodiments provided by the present invention, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0137] The above is only a specific embodiment of the present invention. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A chip for communicating with a host, characterized in that: The chip is used for: Establishing a communication link with the host, wherein the communication link includes a clock link and a data link; receiving first data sent by the host to the chip through the clock link and the data link; Among them, the chip outputs a clock interference signal and / or a data interference signal during the downlink period of receiving the first data, so that the second data collected on the communication link based on the target communication protocol is different from the first data, the clock interference signal is used to interfere with the clock link, and the data interference signal is used to interfere with the data link. The target communication protocol is the communication protocol used by the host to send the first data to the chip.

2. The chip according to claim 1, characterized in that: The chip is specifically used for: During the downlink period of receiving the first data, a clock interference signal and / or a data interference signal is output, so that the number of bits and / or the bit value of the second data collected on the communication link based on the target communication protocol are different from those of the first data.

3. The chip according to claim 2, characterized in that: The chip is specifically used for: During the downlink period of receiving the first data, a clock interference signal is output to change the number of clock cycles and / or clock cycle on the clock link, so that the number of bits and / or bit value of the second data collected on the communication link based on the target communication protocol is different from the first data.

4. The chip according to claim 3, characterized in that: The chip is specifically used for: During the downlink period of receiving the first data, a clock interference signal is output to increase the number of clock cycles on the clock link so that the number of bits of the second data collected on the communication link based on the target communication protocol is greater than the number of bits of the first data.

5. The chip according to claim 3, characterized in that: The chip is specifically used for: During the downlink period of receiving the first data, a clock interference signal is output to reduce the number of clock cycles on the clock link so that the number of bits of the second data collected on the communication link based on the target communication protocol is less than the number of bits of the first data.

6. The chip according to claim 3, characterized in that: The chip is specifically used for: During the downlink period of receiving the first data, a clock interference signal is output to change the clock cycle on the clock link, while keeping the number of clock cycles on the clock link unchanged, so that the bit value of the second data collected on the communication link based on the target communication protocol is different from the first data, and the number of bits of the second data is the same as the first data.

7. The chip according to claim 2, characterized in that: The chip is specifically used for: During the downlink period of receiving the first data, a clock interference signal and / or a data interference signal is output, so that a stop signal is collected on the communication link based on the target communication protocol, so that the number of bits of the collected second data is less than the number of bits of the first data.

8. The chip according to claim 2, characterized in that: The chip is also used for: A response signal is sent to the host according to the target communication protocol.

9. The chip according to claim 1, characterized in that: The step of outputting a clock interference signal and / or a data interference signal during a downlink period of receiving the first data includes: If the chip receives the third data sent by the host, it outputs a clock interference signal and / or a data interference signal during a downlink period of receiving the first data.

10. The chip according to claim 1, characterized in that: The step of outputting a clock interference signal and / or a data interference signal during a downlink period of receiving the first data includes: If the electrical signal of the chip matches the preset judgment condition, a clock interference signal and / or a data interference signal is output during the downlink period of receiving the first data.

11. The chip according to claim 10, characterized in that: The electrical signal includes one or a combination of the following signals: Clock signal, power signal, reset signal, set signal and data signal.

12. A device, characterized in that: A chip comprising any one of claims 1 to 11.

13. A data transmission method, characterized in that: Applied to a chip, the chip is used to connect to a host through a communication link, the communication link includes a clock link and a data link, the method includes: receiving first data sent by the host to the chip through the clock link and the data link; Among them, the chip outputs a clock interference signal and / or a data interference signal during the downlink period of receiving the first data, so that the second data collected on the communication link based on the target communication protocol is different from the first data, the clock interference signal is used to interfere with the clock link, and the data interference signal is used to interfere with the data link. The target communication protocol is the communication protocol used by the host to send the first data to the chip.

Citation Information

Patent Citations

  • Chip, data communication method for chip, consumable container and imaging equipment

    CN102231054A