Consumable chip control method and device and storage medium

By dynamically setting the communication address in the consumable chip and using the communication results between the main control chip and the consumable chip to determine its authenticity, the problem of easy imitation of the consumable chip is solved and the security and legality are improved.

CN119444254AActive Publication Date: 2025-02-14ZHUHAI PANTUM ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411537193.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-14
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

In the prior art, consumable chips are easily imitated and have low safety.

Method used

The main control chip randomly generates the first address information and address calculation strategy information. The consumable chip determines the second address information based on these information and performs a set operation. The main control chip communicates with the consumable chip based on the second address information to determine whether it is Authentic.

Benefits of technology

It improves the difficulty of cracking consumable chips, enhances its safety, and ensures the legality of genuine consumable chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444254A_ABST
    Figure CN119444254A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a consumable chip control method and device and a storage medium, and the method comprises the steps: a main control chip sends randomly generated first address information and address operation strategy information to a consumable chip, and the consumable chip determines second address information based on the address operation strategy information and the first address information, and carries out the setting operation; and the main control chip communicates with the consumable chip based on the second address information, and if normal communication can be carried out, the current consumable chip is determined to be a certified consumable chip. In the embodiment of the invention, the first address information and the address operation strategy information are randomly generated by the main control chip, many selectable examples exist, and specific rules of the first address information and the address operation strategy information are difficult to crack, so that the compatibility difficulty of a forged chip is effectively improved, and the security of a certified consumable chip is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image forming technology, and in particular to a control method, device and storage medium for a consumable chip. Background Art

[0002] The image forming device is equipped with a detachable consumable device for providing consumables for printing, such as ink required for an inkjet printer or toner required for a laser printer. A consumable chip is generally installed on the housing of the consumable device, and the consumable chip stores consumable information, such as consumable model, consumable capacity, and remaining consumables. After the consumable device is installed on the image forming device, the main control chip of the image forming device can communicate with the consumable chip.

[0003] Nowadays, the communication method between the main control chip and the consumable chip is relatively simple. Usually, the main control chip directly reads and writes the electrically erasable programmable read only memory (EEPROM) in the consumable chip. The consumable chip is easy to copy and its security is difficult to guarantee. Summary of the invention

[0004] In view of this, the present application provides a control method, device and storage medium for a consumable chip, so as to solve the problem in the prior art that the consumable chip is easy to copy and has low security.

[0005] In a first aspect, an embodiment of the present application provides a control method for a consumable chip, which is applied to a consumable chip, comprising:

[0006] Receiving first address information and address calculation strategy information sent by the main control chip;

[0007] Determine second address information of the consumable chip according to the first address information and the address operation strategy information;

[0008] Communicate with the main control chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result.

[0009] In an optional embodiment, determining the second address information of the consumable chip according to the first address information and the address calculation strategy information includes:

[0010] Parsing the address operation strategy information to obtain an operation code;

[0011] Determine the target operation corresponding to the operation code according to the mapping relationship between the preset operation code and the preset operation;

[0012] The target operation is performed on the first address information to obtain the second address information; wherein the preset operation includes but is not limited to an address random matching operation and an address interference operation, the address random matching operation is used to characterize that the first address information does not contain interference information, and the address interference operation is used to characterize that the first address information contains the interference information.

[0013] In an optional embodiment, when the preset operation is an address random matching operation, determining the target operation corresponding to the operation code according to the mapping relationship between the preset operation code and the preset operation includes:

[0014] If the lowest bit of the operation code is 1, the target operation is determined to be an inversion operation of all bits of the address code according to the mapping relationship;

[0015] If the middle bit of the operation code is 1, determining the target operation as an inversion operation of the middle bit of the address code according to the mapping relationship;

[0016] If the second lowest bit of the operation code is 1, the target operation is determined to be an operation of swapping high and low bits of the address code according to the mapping relationship.

[0017] In an optional embodiment, when the preset operation is an address interference operation, determining the target operation corresponding to the operation code according to the mapping relationship between the preset operation code and the preset operation includes:

[0018] If the lowest bit of the operation code is 1, the target operation is determined to be the operation of taking the highest three bits of the address code according to the mapping relationship;

[0019] If the second lowest bit of the operation code is 1, the target operation is determined to be the operation of taking the lowest three bits of the address code according to the mapping relationship.

[0020] In an optional embodiment, the consumable chip is configured with a memory, and the communication with the main control chip based on the second address information to determine whether the consumable chip is a genuine consumable chip includes:

[0021] performing an address setting operation on the memory according to the second address information;

[0022] If the address of the memory can be set normally within the preset time, the memory communicates with the main control chip;

[0023] If the memory can communicate normally with the main control chip, it is determined that the consumable chip is a genuine consumable chip.

[0024] In an optional embodiment, the method further comprises: if the memory cannot be set to normal within a preset time, determining that the consumable chip is a non-genuine consumable chip;

[0025] Feedback the information of setting failure to the main control chip.

[0026] In a second aspect, an embodiment of the present application provides a control method for a consumable chip, which is applied to a main control chip, and the method includes:

[0027] In response to the communication request, sending first address information and address calculation strategy information to the consumable chip;

[0028] After receiving feedback that the address setting of the consumable chip is normal, communicate with the consumable chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result; wherein the feedback carries the second address information determined by the consumable chip based on the address calculation strategy information and the first address information.

[0029] In an optional embodiment, the step of responding to the communication request and sending the first address information and the address calculation strategy information to the consumable chip includes:

[0030] In response to the communication request, randomly selecting a candidate address code as the first address information;

[0031] Obtaining an operation code corresponding to the candidate address code, each operation code being used to represent a candidate operation;

[0032] Encoding the operation code to obtain the address operation strategy information;

[0033] The first address information and the address calculation strategy information are sent to the consumable chip.

[0034] In an optional embodiment, the communicating with the consumable chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result includes:

[0035] If the main control chip can communicate normally with the consumable chip based on the second address information, it is determined that the consumable chip is a genuine consumable chip;

[0036] If the main control chip cannot communicate normally with the consumable chip based on the second address information, it is determined that the consumable chip is a non-genuine consumable chip.

[0037] In an optional embodiment, the normal communication is characterized by the normal execution of the read operation and / or the normal execution of the write operation on the consumable chip.

[0038] In a third aspect, an embodiment of the present application provides a control device for a consumable chip, the control device comprising a consumable chip and a main control chip, the control device comprising:

[0039] The main control chip is used to respond to the communication request and send the first address information and address calculation strategy information to the consumable chip;

[0040] The consumable chip is used to receive and determine the second address information of the consumable chip according to the first address information and the address calculation strategy information;

[0041] The consumable chip is further used to perform a setting operation on the second address information and feed back the result of the setting operation to the main control chip;

[0042] The main control chip is further used to communicate with the consumable chip based on the second address information after receiving feedback that the address setting of the consumable chip is normal, so as to determine whether the consumable chip is a genuine consumable chip based on the communication result.

[0043] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in the first aspect or the method described in the second aspect.

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

[0045] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes the method described in the first aspect or the method described in the second aspect.

[0046] Using the solution provided in the embodiment of the present application, the main control chip sends the randomly generated first address information and address operation strategy information to the consumable chip. The consumable chip determines the second address information based on the address operation strategy information and the first address information, and performs a set operation. The main control chip communicates with the consumable chip based on the second address information. If the communication is normal, it is determined that the current consumable chip is a genuine consumable chip. In the embodiment of the present application, the first address information and the address operation strategy information are randomly generated by the main control chip, and there are many optional examples. The specific rules are difficult to crack, which effectively increases the compatibility difficulty of counterfeit chips and ensures the security of genuine consumable chips. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] 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.

[0048] Figure 1 An exemplary schematic diagram of a method for controlling a consumable chip provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of a circuit example of a main control chip and a consumable chip provided in an embodiment of the present application;

[0050] Figure 3 A schematic diagram of another circuit example of a main control chip and a consumable chip provided in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of a flow chart of a method for controlling a consumable chip provided in an embodiment of the present application;

[0052] Figure 5 A schematic flow chart of another method for controlling a consumable chip provided in an embodiment of the present application;

[0053] Figure 6 A schematic flow chart of another method for controlling a consumable chip provided in an embodiment of the present application;

[0054] Figure 7 A schematic flow chart of another method for controlling a consumable chip provided in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of another circuit example of a main control chip and a consumable chip provided in an embodiment of the present application;

[0056] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] 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.

[0058] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of 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.

[0059] 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.

[0060] 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.

[0061] Common image forming devices are usually equipped with a detachable consumable device, in which consumables (such as ink, toner, etc.) are installed, and a consumable chip for recording consumable data is installed on the housing of the consumable device. Figure 1 The image forming device may include: an image forming device and a consumable device. The image forming device is used to perform operations related to image formation to output a printed image. The consumable device is a replaceable accessory in the image forming device. For example, when the image forming device is an inkjet printer, a laser printer, a 3D printer, a label printer, or a dot matrix printer, the consumable device is an ink cartridge, a toner cartridge, a toner cartridge, a toner cartridge, a ribbon cartridge, etc.

[0062] The consumable chip is an electronic device with a storage function. When the consumable device is installed on the image forming device, the consumable chip is connected to the main control chip of the image forming device. The communication connection can be a communication connection through a contact, an antenna or a coil, which is not limited in the embodiment of the present application. It should be noted that the consumable chip stores information including raw data, and the raw data is information related to the image forming device. For example, the raw data can include at least one of the following categories: (1) imaging control related parameters, such as: printing engine control parameter information, specifically high voltage control parameters, fixing temperature parameters, paper feed speed control parameters, etc. When the image forming device is a color printer, it also includes color calibration parameter information or calibration patterns; (2) consumable related parameters, such as: various proportional factors for calculating toner consumption; or basic attribute information of consumables, wherein the basic attribute information of consumables can specifically be information such as consumable model, consumable serial number, consumable capacity life, etc. It should be noted that those skilled in the art can also design the consumable chip to store other types of raw data according to actual needs, which is not limited in the embodiment of the present application.

[0063] The main control chip and the consumable chip simulate the I2C bus based on the General Purpose Input Output (GPIO) pins, and then communicate based on the simulated I2C bus. The I2C bus includes a clock line and a data line. The data line is used to transmit data, and the clock line is used to synchronize the clocks of both parties. The I2C bus has a simple structure, which can reduce system costs and improve system reliability.

[0064] Reference Figure 2 , the main control board is equipped with a main control chip SoC (System on Chip), and the consumable board is equipped with a consumable chip and EEPROM (Electrically Erasable Programmable Read-Only Memory), wherein EEPROM is the memory of the consumable chip. The main control chip SoC and EEPROM each simulate the generation of the I2C clock line and data line through two GPIO pins. Specifically, the A pin of the main control chip and the C pin of the EEPROM are connected to simulate the generation of the clock line, and the B pin of the main control chip and the D pin of the EEPROM are connected to simulate the generation of the data line. The main control chip is also provided with a power supply VCC pin and a ground GND pin. The VCC pin and the GND pin are connected to the consumable board through wires to provide power and ground potential for the EEPROM. The E pin, F pin and G pin of the EEPROM are address bits. The address setting of the EEPROM can be achieved by setting the three address bits to a high level or a low level. With Figure 2 For example, the E pin and the F pin are connected to VCC through resistors R1 and R2 respectively, and the potential is high, and the G pin is grounded and the potential is low, then the current EEPROM address is 110. This address is only an exemplary description, and in other embodiments, the EEPROM address can also be set to other values.

[0065] After the consumable device is installed on the image forming device, the main control chip can read / write the EEPROM based on the address bit of the EEPROM. The address bit of the current EEPROM is usually a fixed value with low complexity. The specific information of its address bit is easy to crack and has low security, which will lead to the consumable chip being counterfeited. When the address bit of the counterfeit chip is set to the same as the genuine consumable chip, the main control chip can also communicate with the counterfeit chip.

[0066] In response to the above problems, an embodiment of the present application provides a control method for a consumable chip, which can effectively increase the difficulty of cracking address bit information and improve security by dynamically setting the address bits of the EEPROM.

[0067] Reference Figure 3 ,and Figure 2The difference shown is that the embodiment of the present application adds a microcontroller unit (MCU) on the consumable board. On the one hand, the MCU shares the clock line and data line with the EEPROM, and is connected to the clock line and data line corresponding to the main control chip to interact with the main control chip. On the other hand, it is also connected to the EEPROM through the address line (E / F / G pin), and the address bit of the EEPROM can be modified.

[0068] Figure 4 The flowchart of a method for controlling a consumable chip provided in an embodiment of the present application is shown in FIG. The method is applied to a main control chip, such as Figure 4 As shown, the method may include:

[0069] Step 401, responding to a communication request, sending first address information and address calculation strategy information to a consumable chip.

[0070] Step 402, after receiving feedback that the address setting of the consumable chip is normal, communicate with the consumable chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result; wherein the feedback carries the second address information determined by the consumable chip based on the address calculation strategy information and the first address information.

[0071] In the embodiment of the present application, the first address information is used to represent a group of address codes, which are false address codes used to hide the real address bits for communicating with the consumable chip, and the address operation strategy information is used to represent the operation performed on the address code in the first address information, which is a calculation rule for obtaining the real address bits for communicating with the consumable chip. The first address information and the address operation strategy information are not unique. In response to the communication request of the consumable chip, the main control chip will randomly generate the first address information and the address operation strategy information and send them to the consumable chip. After receiving the consumable chip, the first address information is processed based on the address operation strategy information to obtain the second address information. The second address information is used to indicate the final communication address of the consumable chip. If the main control chip can communicate with the consumable chip based on the second address information and receives feedback that the address setting of the consumable chip is normal, the current consumable chip can be determined to be a genuine consumable chip. If the main control chip cannot communicate normally with the consumable chip based on the second address information, it can be determined that the current consumable chip is a non-genuine consumable chip. If the feedback of the address setting failure of the consumable chip is received, the main control chip does not communicate with the consumable chip, and determines that the consumable chip is a non-genuine consumable chip.

[0072] In an optional embodiment, in order to improve detection accuracy, when the consumable chip setting operation fails once, the setting operation will be repeated multiple times within a preset time. If there is no normal setting within the preset time, it is determined that the address setting has failed.

[0073] In an optional embodiment, the process of the main control chip randomly generating the first address information and the address operation strategy information can be as follows: first randomly select a candidate address code as the first address information. Then obtain the operation code corresponding to the candidate address code, and then encode the operation code to obtain the address operation strategy information. Based on the mapping relationship between the optional candidate address code and the operation code, and the mapping relationship between the operation code and the operation, the main control chip can store the optional combinations, each combination containing an address code and a corresponding operation code (operation). In response to the communication request, the main control chip can select any one of the multiple combinations and send it to the consumable chip.

[0074] In an optional embodiment, the operation includes but is not limited to an address random matching operation and an address interference operation. The address random matching operation is used to characterize that the first address information does not contain interference information, and the address interference operation is used to characterize that the first address information contains interference information. The interference information is used to cover up the real address communicating with the consumable chip, making the real address difficult to identify, thereby increasing the difficulty of cracking the real address. Specifically, the number of address codes in the first address information can be used to determine whether the operation adopts an address random matching operation or an address interference operation. In this embodiment, if the number of address codes in the first address information exceeds the number of real address codes in the consumable chip communication, it means that the operation adopts an address interference operation. If the number of address codes in the first address information is equal to or less than the number of real address codes in the consumable chip communication, it means that the operation adopts an address random matching operation.

[0075] Furthermore, if the number of real address codes of the consumable information communication is greater than the number of address codes of the first address information, 0 is added to make the number of address codes after calculation consistent with the number of real address codes.

[0076] Each operation code can represent a candidate operation for the address code, and different address codes and different operation codes (candidate operations) will obtain different second address information. Therefore, the information sent by the main control chip to the consumable chip is not fixed, and the communication address finally determined by the consumable chip is also not fixed. Compared with setting the communication address of the consumable chip to a fixed value, the embodiment of the present application can increase the difficulty of cracking the consumable chip and protect the security of the genuine consumable chip by dynamically setting the communication address of the consumable chip.

[0077] Figure 5 The following is a flow chart of a method for controlling a consumable chip provided in an embodiment of the present application. The method is applied to an MCU, such as Figure 5 As shown, the method may include:

[0078] Step 501: Receive first address information and address calculation strategy information sent by a main control chip.

[0079] Step 502: Determine second address information of the consumable chip according to the first address information and the address calculation strategy information.

[0080] Step 503: communicate with the main control chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result.

[0081] In the embodiment of the present application, the consumable chip can parse the address operation strategy information to obtain an operation code. The consumable chip internally stores a mapping relationship between a preset operation code and a preset operation, and the target operation corresponding to the current operation code can be determined in multiple sets of mapping relationships. The preset operation and the target operation can be regarded as an operation operation for the first address information. The consumable chip performs the target operation on the first address information to obtain the second address information, and the second address information is used to represent the real address bit that can communicate with the consumable chip. Afterwards, the consumable chip can communicate with the main control chip based on the second address information. If the communication is normal, the current consumable chip can be confirmed as a genuine consumable chip.

[0082] In an optional embodiment, the preset operation includes but is not limited to an address random matching operation and an address interference operation, the address random matching operation is used to characterize that the first address information does not contain interference information, and the address interference operation is used to characterize that the first address information contains interference information. Specifically, when the first address information does not contain interference information, the first address information and the second address information can be regarded as having the same data bits, and the address random matching operation is used to modify the specific value of each data bit in the first address information to obtain the second address information. When the first address information contains interference information, the first address information and the second address information can be regarded as having different data bits, and the address interference operation is used to delete the interference information in the first address information to obtain the second address information.

[0083] The consumable chip will determine different target operations according to different operation codes, and then operate on the received first address information to obtain different second address information. The consumable chip determines whether the target operation is an address random matching operation or an address interference operation by parsing the number of operation codes obtained by the address operation strategy information. This is consistent with the determination method used in the main control chip mentioned above and will not be repeated here. Taking the case where the consumable chip identifies that the first address information uses an address random matching operation as an example, for the address random matching operation, taking the operation code after parsing the address operation strategy information as five data bits and the address code of the first address information as three data bits as an example, if the lowest bit of the operation code is 1, the consumable chip can determine the target operation as the inversion operation of all bits of the address code according to the mapping relationship, which is characterized by the inversion of all address code values ​​in the first address information. In other words, the mapping relationship between the operation code and the operation is not a unique mapping relationship. As long as the lowest bit of the operation code is 1 and the address codes of other bits are randomly combined, it can be determined that the target operation corresponding to the operation code is the inversion operation of all bits of the address code. For example, the target operation corresponding to the operation codes "001", "011", "111", and "101" is the inversion operation of all the bits of the address code. Of course, in order to further improve security, it is defined that the operation code and the operation have a unique mapping relationship, that is, only when the lowest bit of the operation code is 1 and the other bits are 0, can the target operation be determined to be the inversion operation of all the bits of the address code. Similarly, if the middle bit of the operation code is 1, then the target operation is determined to be the inversion operation of the middle bit of the address code according to the mapping relationship, which is characterized by the inversion of the address code value in the middle position in the first address information. If the second lowest bit of the operation code is 1, then the target operation is determined to be the high and low bit swap operation of the address code according to the mapping relationship, which is characterized by the interchange of the values ​​of the highest bit address code and the lowest bit address code in the first address information.

[0084] The following is a specific example of a unique mapping relationship. When the operation code is "00001" and the address code of the first address information is "110", the consumable chip detects that the lowest bit of the operation code is 1 and the other bits are 0. According to the mapping relationship, it can be determined that the target operation is the inversion operation of all bits of the address code. The consumable chip inverts all bits in "110" to obtain "001", which is the address code indicated by the second address information.

[0085] When the operation code is "00100" and the address code of the first address information is "110", the consumable chip detects that the middle bit of the operation code is 1 and the other bits are 0. According to the mapping relationship, it can be determined that the target operation is the inversion operation of the middle bit of the address code. The consumable chip inverts the middle bit of "110" to get "100", which is the address code indicated by the second address information.

[0086] When the operation code is "10000" and the address code of the first address information is "110", the consumable chip detects that the highest bit of the operation code is 1 and the other bits are 0. According to the mapping relationship, it can be determined that the target operation is the high-low bit swap operation of the address code. The consumable chip swaps the high and low bits of "110" to obtain "011", which is the address code indicated by the second address information.

[0087] Taking the case where the consumable chip recognizes that the first address information is using an address interference operation as an example, for the address interference operation, taking the operation code after the address operation strategy information is parsed as three data bits and the address code of the first address information as five data bits, if the lowest bit of the operation code is 1, the consumable chip determines the target operation as the operation of taking the highest three bits of the address code according to the mapping relationship, which is characterized by selecting the highest three bits of data in the first address information, that is, the data not selected in the first address information is the interference information. If the second lowest bit of the operation code is 1, the consumable chip determines the target operation as the operation of taking the lowest three bits of the address code according to the mapping relationship, which is characterized by selecting the lowest three bits of data in the first address information.

[0088] Similarly, the specific embodiment of the unique mapping relationship is described below. When the operation code is "001" and the address code of the first address information is "11011", the consumable chip determines that the target operation is an address interference operation and detects that the lowest bit of the operation code is 1. According to the mapping relationship, it can be determined that the target operation is an operation of taking the highest three bits of the address code. The consumable chip will select the highest three bits in "11011" to obtain "110", and "110" is the address code indicated by the second address information.

[0089] When the operation code is "010" and the address code is "11011", the consumable chip determines that the target operation is an address interference operation and detects that the second lowest bit of the operation code is 1. According to the mapping relationship, it can be determined that the target operation is an address code taking the lowest three bits operation. The consumable chip will select the lowest three bits in "11011" to get "011", and "011" is the address code indicated by the second address information.

[0090] The above is only an exemplary description of the target operation. In other embodiments, the data bits of the address code and the operation code may include other numbers, for example, the address code and the operation code are both 4 data bits. The target operation may also include other operation modes, such as high or low bit inversion, middle bit inversion, odd bit inversion, even bit inversion, taking the middle three bits, etc., which are not limited here.

[0091] The consumable chip is equipped with a memory EEPROM, and the consumable chip performs an address setting operation on the memory according to the second address information. If the address setting of the memory can be normal within the preset time, the memory can communicate with the main control chip. If the memory can communicate normally with the main control chip, it is determined that the consumable chip is a genuine consumable chip. If the memory cannot be set normally within the preset time, it is determined that the consumable chip is a non-genuine consumable chip, and the consumable chip feeds back the information of the setting failure to the main control chip.

[0092] In the embodiment of the present application, based on different first address information and address calculation strategy information, the consumable chip can determine the corresponding second address information, thereby realizing flexible setting of the communication address. Under the condition that there are multiple options for the second address information, the consumable chip is difficult to crack and imitate, thereby ensuring the security of the genuine consumable chip and the legitimate rights and interests of the manufacturer.

[0093] Figure 6 Schematic diagram of a flow chart of a method for controlling a consumable chip provided in an embodiment of the present application. The method is mainly executed by the main control chip 61 and the MCU 62, such as Figure 6 As shown, the method may include:

[0094] 601. The main control chip 61 randomly generates first address information and address calculation strategy information.

[0095] 602. The main control chip 61 sends the first address information and address calculation strategy information to the MCU 62.

[0096] 603. MCU62 determines the second address information according to the first address information and the address operation strategy information.

[0097] 604. MCU62 performs a set operation on the EEPROM based on the second address information.

[0098] 605. After the setting operation is executed, the MCU 62 feeds back the setting result information indicating that the setting is normal to the main control chip 61.

[0099] 606. The main control chip 61 performs a read / write operation on the address bit of the EEPROM based on the second address information.

[0100] 607. MCU62 feeds back the result of the read / write operation.

[0101] 608. When the main control chip 61 detects that the read / write operation can be performed normally, it continues the communication; when it detects that the read / write operation cannot be performed normally, it terminates the communication and displays an error message.

[0102] In the embodiment of the present application, the first address information is an address code randomly generated by the main control chip 61 (such as the aforementioned candidate address code), and the address operation strategy information includes a target operation for the first address information. The MCU 62 processes the first address information based on the target operation indicated in the address operation strategy information to obtain the second address information that can communicate with the consumable chip. The MCU 62 performs a set operation on the EEPROM based on the second address information, that is, sets the address of the EEPROM to the address code indicated by the second address information.

[0103] by Figure 3 For example, when the address code of the second address information is "001", the MCU 62 can set the E pin to a low level, the F pin to a low level, and the G pin to a high level. After the setting operation is completed, the MCU 62 can notify the main control chip 61 of the successful setting, that is, normal information. The main control chip 61 can address based on "001" and perform read / write operations on the EEPROM. If it can read / write normally, the main control chip 61 can determine that the current consumable chip is a genuine consumable chip, and subsequent communication can be normal.

[0104] In an optional embodiment, if the EEPROM fails to be set, the MCU 62 will also feed back the information of the setting failure to the main control chip 61, and the main control chip 61 can directly determine that the current consumable chip is a non-genuine consumable chip, and subsequently not communicate with the consumable chip and display an error message through the control panel. If the EEPROM is set successfully, but the main control chip 61 cannot perform a read / write operation on the EEPROM based on the second address information, the main control chip 61 will also determine that the current consumable chip is a non-genuine consumable chip.

[0105] In the embodiment of the present application, the address code of the first address information is composed of multiple data bits, and there are multiple options for the first address information. The operation code is also composed of multiple data bits, and there are multiple options for the address operation strategy information. The options for the information sent by the main control chip 61 to the MCU62 are the product of the two. For example, if the first address information has 8 options and the address operation strategy information has 32 options, the information sent by the main control chip 61 to the MCU62 has a total of 8*32=256 options, and the number of specific options is not limited. Since the information sent by the main control chip 61 may be different each time, the compatibility difficulty of non-genuine consumable chips is greatly increased, ensuring the safety of genuine consumable chips.

[0106] Figure 7 The flowchart of a method for controlling a consumable chip provided in an embodiment of the present application is shown in FIG. 1 , which can be applied to a main control chip. Figure 7 As shown, the method may include:

[0107] Step 701, randomly generate first address information and address calculation strategy information.

[0108] Step 702: Send the first address information and address calculation strategy information to the MCU.

[0109] Step 703, receiving the setting result information sent by the MCU.

[0110] Step 704, determine whether the setting operation is successful, if the setting is successful, go to step 705, otherwise go to step 708.

[0111] Step 705: Perform a read / write operation on the EEPROM based on the second address information.

[0112] Step 706, determine whether the read / write operation is successful, if successful, proceed to step 707, otherwise proceed to step 708.

[0113] Step 707, confirming that the current consumable chip is a genuine consumable chip.

[0114] Step 708, confirming that the current consumable chip is a non-genuine consumable chip.

[0115] The following example illustrates that when the second address information is "110", the MCU performs a set operation on the EEPROM based on "110". Figure 3 For example, the MCU sets the level of the E pin to a high level, the level of the F pin to a high level, and the level of the G pin to a low level. After the setting is completed, the MCU sends the setting information to the main control chip. The setting information contains the result of the setting operation, including normal setting and setting failure.

[0116] If the setting fails, the main control chip can directly confirm that the current consumable chip is a non-genuine consumable chip. If the setting is successful, the EEPROM is read / write based on the second address information. The main control chip and the genuine consumable chip are manufactured by the same manufacturer. The main control chip and the MCU store the same mapping relationship between the target operation and the operation code. Therefore, the second address information can be regarded as a known quantity for the main control chip. If the current consumable chip is a genuine consumable chip, the address of the EEPROM will be set to the same as the second address information, and the read / write operation of the main control chip can be completed. If the current consumable chip is a non-genuine consumable chip, since the address setting of the EEPROM is more complicated, the non-genuine consumable chip is difficult to crack, and the address of the EEPROM in the non-genuine consumable chip is usually not the same as the second address information. Through the results of the read / write operation, the main control chip can accurately determine whether the current consumable chip is a genuine consumable chip, or determine whether the current consumable device is produced by the original manufacturer.

[0117] In an optional embodiment, the configuration method of the MCU is not unique. Figure 3This is one of the settings. The MCU is connected to the main control chip through the existing clock line and data line, and the three address pins of the EEPROM are connected to the MCU. No additional connection lines are added, and no additional resources of the SoC are occupied. For another setting method, please refer to Figure 8 The main control chip adds a set of universal asynchronous receiver / transmitter (UART) interfaces, including: data receiving RX interface and data sending TX interface.

[0118] In an optional embodiment, the first address information and the address operation strategy information can also be implemented through analog signals. For example, the main control chip can send a voltage value to the MCU, the voltage value within 0v-0.8v can represent 001, the voltage value within 0.8v-1.2V can represent 010, and other address information and address operation strategy information can also be used to represent the corresponding voltage value. After receiving the voltage value, the MCU can determine the corresponding first address information and address operation strategy information based on the internally configured protocol, and then determine the second address information and perform a set operation.

[0119] The embodiment of the present application also provides a control device for a consumable chip, which includes a consumable chip and a main control chip. Specifically, the main control chip is used to respond to a communication request and send first address information and address operation strategy information to the consumable chip; the consumable chip is used to receive and determine the second address information of the consumable chip based on the first address information and the address operation strategy information; the consumable chip is also used to set the second address information and feed back the result of the setting operation to the main control chip; the main control chip is also used to communicate with the consumable chip based on the second address information after receiving feedback that the address setting of the consumable chip is normal, so as to determine whether the consumable chip is a genuine consumable chip based on the communication result. The specific process can refer to the description in the above method flow chart.

[0120] Corresponding to the above embodiment, the present application also provides an electronic device, which can be used to implement the above main control chip. Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device 900 may include: a processor 901, a memory 902 and a communication unit 903. These components communicate through one or more buses, and those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present application, it can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

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

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

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

[0124] When the execution instructions in the memory 902 are executed by the processor 901, the electronic device 900 can execute Figure 4 or Figure 5 Some or all of the steps in the illustrated embodiments.

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

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

[0127] The embodiment of the present application also provides a non-temporary computer-readable storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the control method of the consumable chip provided in the embodiment of the present application.

[0128] The above-mentioned non-temporary computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (Read Only Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (ErasableProgrammable Read Only Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0129] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0130] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

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

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

Claims

1. A method for controlling a consumable chip, characterized in that: Applied to consumable chips, the method comprises: Receiving first address information and address calculation strategy information sent by the main control chip; Determine second address information of the consumable chip according to the first address information and the address operation strategy information; Communicate with the main control chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result.

2. The method according to claim 1, characterized in that The determining the second address information of the consumable chip according to the first address information and the address operation strategy information includes: Parsing the address operation strategy information to obtain an operation code; Determine the target operation corresponding to the operation code according to the mapping relationship between the preset operation code and the preset operation; The target operation is performed on the first address information to obtain the second address information; wherein the preset operation includes but is not limited to an address random matching operation and an address interference operation, the address random matching operation is used to characterize that the first address information does not contain interference information, and the address interference operation is used to characterize that the first address information contains the interference information.

3. The method according to claim 2, characterized in that When the preset operation is an address random matching operation, determining the target operation corresponding to the operation code according to the mapping relationship between the preset operation code and the preset operation includes: If the lowest bit of the operation code is 1, the target operation is determined to be an inversion operation of all bits of the address code according to the mapping relationship; If the middle bit of the operation code is 1, determining the target operation as an inversion operation of the middle bit of the address code according to the mapping relationship; If the second lowest bit of the operation code is 1, the target operation is determined to be an operation of swapping high and low bits of the address code according to the mapping relationship.

4. The method according to claim 2, characterized in that: When the preset operation is an address interference operation, determining the target operation corresponding to the operation code according to the mapping relationship between the preset operation code and the preset operation includes: If the lowest bit of the operation code is 1, the target operation is determined to be the operation of taking the highest three bits of the address code according to the mapping relationship; If the second lowest bit of the operation code is 1, the target operation is determined to be the operation of taking the lowest three bits of the address code according to the mapping relationship.

5. The method according to claim 1, characterized in that The consumable chip is configured with a memory, and the communication with the main control chip based on the second address information to determine whether the consumable chip is a genuine consumable chip includes: performing an address setting operation on the memory according to the second address information; If the address of the memory can be set normally within the preset time, the memory communicates with the main control chip; If the memory can communicate normally with the main control chip, it is determined that the consumable chip is a genuine consumable chip.

6. A method for controlling a consumable chip, characterized in that: Applied to the main control chip, the method includes: In response to the communication request, sending first address information and address calculation strategy information to the consumable chip; After receiving feedback that the address setting of the consumable chip is normal, communicate with the consumable chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result; wherein the feedback carries the second address information determined by the consumable chip based on the address calculation strategy information and the first address information.

7. The method according to claim 6, characterized in that The responding to the communication request and sending the first address information and the address calculation strategy information to the consumable chip includes: In response to the communication request, randomly selecting a candidate address code as the first address information; Obtaining an operation code corresponding to the candidate address code, each operation code being used to represent a candidate operation; Encoding the operation code to obtain the address operation strategy information; The first address information and the address calculation strategy information are sent to the consumable chip.

8. The method according to claim 6, characterized in that The communicating with the consumable chip based on the second address information to determine whether the consumable chip is a genuine consumable chip based on the communication result includes: If the main control chip can communicate normally with the consumable chip based on the second address information, it is determined that the consumable chip is a genuine consumable chip; If the main control chip cannot communicate normally with the consumable chip based on the second address information, it is determined that the consumable chip is a non-genuine consumable chip.

9. A control device for a consumable chip, characterized in that: The control device includes a consumable chip and a main control chip, and the control device includes: The main control chip is used to respond to the communication request and send the first address information and address calculation strategy information to the consumable chip; The consumable chip is used to receive and determine the second address information of the consumable chip according to the first address information and the address calculation strategy information; The consumable chip is further used to perform a setting operation on the second address information and feed back the result of the setting operation to the main control chip; The main control chip is further used to communicate with the consumable chip based on the second address information after receiving feedback that the address setting of the consumable chip is normal, so as to determine whether the consumable chip is a genuine consumable chip based on the communication result.

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

Citation Information

Patent Citations

  • Radio frequency chip, consumable material container, data writing method and verifying method

    CN101894285A

  • Electronic locking system based on random key

    CN105469489A

  • Burst access of registers at non-consecutive addresses using a mapping control word

    US6189082B1