CN112192961B - Identification data switching method, equipment, consumable chip, consumable box and medium - Google Patents

Identification data switching method, equipment, consumable chip, consumable box and medium Download PDF

Info

Publication number
CN112192961B
CN112192961B CN202011120335.9A CN202011120335A CN112192961B CN 112192961 B CN112192961 B CN 112192961B CN 202011120335 A CN202011120335 A CN 202011120335A CN 112192961 B CN112192961 B CN 112192961B
Authority
CN
China
Prior art keywords
similarity
communication information
identification data
consumable chip
consumable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011120335.9A
Other languages
Chinese (zh)
Other versions
CN112192961A (en
Inventor
罗艳辉
刘汉莉
计盼望
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jihai Microelectronics Co ltd
Original Assignee
Apex Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apex Microelectronics Co Ltd filed Critical Apex Microelectronics Co Ltd
Priority to CN202011120335.9A priority Critical patent/CN112192961B/en
Publication of CN112192961A publication Critical patent/CN112192961A/en
Application granted granted Critical
Publication of CN112192961B publication Critical patent/CN112192961B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/17Ink jet characterised by ink handling
    • B41J2/175Ink supply systems ; Circuit parts therefor
    • B41J2/17566Ink level or ink residue control
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03GELECTROGRAPHY; ELECTROPHOTOGRAPHY; MAGNETOGRAPHY
    • G03G15/00Apparatus for electrographic processes using a charge pattern
    • G03G15/50Machine control of apparatus for electrographic processes using a charge pattern, e.g. regulating differents parts of the machine, multimode copiers, microprocessor control
    • G03G15/5075Remote control machines, e.g. by a host
    • G03G15/5091Remote control machines, e.g. by a host for user-identification or authorisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1229Printer resources management or printer maintenance, e.g. device status, power levels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1284Local printer device

Abstract

The embodiment of the invention provides an identification data switching method, equipment, a consumable chip, a consumable box and a medium. According to the embodiment of the invention, the similarity of the communication data between the consumable chip and the printer in the first installation and non-first installation can be calculated by comparing the communication data, and the identification data can be timely switched according to the similarity, so that the condition that a new consumable box cannot be used is avoided, and the printing requirement of a user is met.

Description

Identification data switching method, equipment, consumable chip, consumable box and medium
Technical Field
The embodiment of the invention relates to the technical field of printing, in particular to a method, equipment, a consumable chip, a consumable box and a medium for switching identification data.
Background
A consumptive material chip that is used for the consumptive material box of printer (laser printer, ink jet printer or multifunctional integrated machine), the main function is used for the discernment of identity and record user state. The printer can know the identification data of the consumable chip, such as the serial number, by accessing the consumable chip, and acquire the use condition of the consumable in the consumable box in real time, such as the information of the residual ink amount, the powder amount, whether the consumable is used up or not. When the consumable (e.g., ink, toner) in the consumable cartridge is exhausted, a new consumable cartridge needs to be replaced. The identification data of the consumable box after replacement can be provided for the printer through communication between the consumable chip of the consumable box and the printer.
In the prior art, printers may record identification data, such as serial numbers, of consumable chips of used consumable cartridges to ensure that the serial numbers of the replaced consumable cartridges are different from the recorded serial numbers.
However, consumable cartridges are usually manufactured by multiple manufacturers, and identification data for identification, such as serial numbers, in the chips of the consumable cartridges are inevitably duplicated. If the serial number of the new unused consumable cartridge replaced by the user is identical to the serial number of the used old consumable cartridge recorded by the printer, the printer may not work, which brings inconvenience to the user.
Disclosure of Invention
The embodiment of the invention provides an identification data switching method, equipment, a consumable chip, a consumable box and a medium, which are used for switching in time when identification data of the consumable box is not identified by a printer, so that the problem that a new consumable box cannot be used is solved, and the printing requirements of users are met.
In a first aspect, an embodiment of the present invention provides an identification data switching method, including:
acquiring first communication information of the first installation of the consumable chip;
acquiring second communication information of the consumable chip which is not installed for the first time;
calculating a first similarity of the first communication information and the second communication information;
and determining whether to switch the current identification data or not according to the first similarity.
In one possible design, the determining whether to switch the current identification data according to the first similarity includes:
comparing the first similarity with a first preset value;
and if the first similarity is greater than a first preset value, switching the current identification data.
In one possible design, the determining whether to switch the current identification data according to the first similarity further includes:
and if the first similarity is smaller than or equal to a second preset value, continuing to use the current identification data.
In a possible design, before the obtaining the first communication information of the first installation of the consumable chip, the method further includes:
judging whether the consumable chip is installed for the first time or not according to the installation information in the chip;
if the consumable chip is not installed for the first time, second communication information of the consumable chip installed this time is obtained, and first similarity of the first communication information and the second communication information is calculated.
In one possible design, before the calculating the first similarity between the first communication information and the second communication information, the method further includes:
judging whether the acquisition times of the communication information of the non-first installation of the consumable chip are more than or equal to the preset times;
the calculating a first similarity of the first communication information and the second communication information includes:
if the similarity is larger than or equal to the first similarity, aiming at the communication information which is not installed for the first time and is obtained each time, calculating a second similarity between the communication information and the communication information which is installed for the first time;
the determining whether to switch the current identification data according to the first similarity includes: and determining whether to switch the current identification data or not according to the calculated second similarity.
In one possible design, after determining whether to switch the current identification data according to the first similarity, the method further includes:
if the current identification data is reserved, generating a locking identifier; the locking identification is used for indicating that the consumable chip is locked, and communication information of the non-first-time installation of the consumable chip does not need to be acquired.
In one possible design, the first communication information includes at least one of: the command type, the total number of commands and the command order of all communication commands between the consumable chip and the printer.
In one possible design, the identification data includes at least one of: unique identification code, serial number, seed.
In a second aspect, an embodiment of the present invention provides an identification data switching apparatus, including:
the first acquisition module is used for acquiring first communication information of the first installation of the consumable chip;
the second acquisition module is used for acquiring second communication information of the non-first-time installation of the consumable chip;
the calculation module is used for calculating first similarity of the first communication information and the second communication information;
and the switching module is used for determining whether to switch the current identification data according to the first similarity.
In a third aspect, an embodiment of the present invention provides a consumable chip, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
In a fourth aspect, embodiments of the present invention provide a consumable cartridge comprising a consumable chip as described in the third aspect above.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method according to the first aspect and various possible designs of the first aspect are implemented.
The identification data switching method, the identification data switching device, the consumable chip, the consumable box and the identification data switching medium provided by the embodiment comprise the steps of obtaining first communication information for first installation of the consumable chip, obtaining second communication information for non-first installation of the consumable chip, calculating first similarity of the first communication information and the second communication information, and determining whether to switch current identification data or not according to the first similarity. Therefore, the identification data switching method provided by the embodiment can calculate the similarity of the communication data between the consumable chip and the printer by comparing the communication data between the consumable chip and the printer when the consumable chip is installed for the first time and when the consumable chip is not installed for the first time, and then timely switch the identification data according to the similarity so as to avoid the condition that a new consumable box cannot be used, thereby meeting the printing requirements of users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 2 is a schematic flowchart of an identification data switching method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an identification data switching method according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating an identification data switching method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating an identification data switching method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an identification data switching device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an identification data switching device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention. As shown in fig. 1, the printing system includes a consumable cartridge 100 and a printer 200 for mounting the consumable cartridge 100, wherein the consumable cartridge 100 is configured with a consumable chip 110. In this embodiment, the printer 200 may be a laser printer 200, an inkjet printer 200, or a multifunction peripheral. The consumable cartridge 100 may be an ink cartridge, a toner cartridge, or a powder cartridge, etc. The primary functions of the consumable chip 110 are to identify the consumable cartridge 100 and to record the use status of the consumables in the consumable cartridge 100.
The printer 200 can acquire identification data of the corresponding consumable cartridge 100 and the use condition of the consumable, for example, information on the remaining ink amount, remaining powder amount, and whether the consumable is used up, in real time by accessing the consumable chip 110. The consumable cartridge 100 is detachably mounted to the printer 200, and when the consumable cartridge 100 is mounted, the printer 200 generally needs to open the lid of the printer 200, and during the opening-closing operation, the printer 200 supplies power and accesses to the consumable chip 110, and when the recording material (e.g., ink, toner) in the consumable cartridge 100 is consumed, a new consumable cartridge 100 needs to be replaced. The identification data for identification of the replaced new consumable cartridge 100 and the information for recording the use of the consumable may be provided to the printer 200 through the consumable chip 110 on the consumable cartridge 100.
Communication between the consumable chip 110 and the printer 200 can be achieved by wired contact, for example, the consumable chip 110 includes a plurality of contacts electrically connected to the probes on the printer 200; the communication connection can also be realized in a wireless and contactless manner.
The consumable cartridge 100 is generally identified by using identification data such as UID (Unique IDentifier) or SN (Serial Number). After the consumable cartridge 100 is depleted of consumables, the printer 200 records identification data, such as a serial number, of the consumable cartridge 100 so that the serial number of the consumable cartridge 100 after replacement is different from the serial number of the old consumable cartridge 100, ensuring that the consumable cartridge 100 after replacement is new and unused. However, there are many manufacturers that produce the consumable cartridge 100, and the identification data, such as serial numbers, are often the same, so that the printer 200 may mistakenly assume that the consumable cartridge 100 is not replaced successfully, and stop working, and the user cannot print normally.
In the prior art, the printer 200 recognizes the identification data of the consumable cartridge 100 in two ways, taking the identification data as a serial number as an example, one way is to access the consumable chip 110, read the serial number, determine whether the serial number has been recorded by the printer 200, and if the serial number has been recorded, interrupt communication, that is, not perform complete communication. Alternatively, the printer 200 accesses the consumable chip 110, reads the serial number, and continues communication until all communication instructions have been communicated regardless of whether the serial number has been recorded by the printer 200.
In the first case, the communication interruption time may be set as a switching point, and the consumable chip 110 may be switched between serial numbers at the switching point. For the second case, no distinct switching point is known.
Based on the problem of the second situation, an embodiment of the present invention provides a method for switching identification data. In this method, the inventors have creatively found that the consumable chips 110 in which identification data (e.g., serial numbers) is recorded and the consumable chips 110 in which identification data is not recorded differ in the kind, order, number, or the like of communication instructions at the time of being first installed and installed again. Taking this as a starting point, whether the identification data of the consumable chip 110 is recorded, that is, whether it needs to be switched, can be distinguished according to the similarity of the communication instructions for the first installation and the second installation of the consumable chip 110. The identification data of the consumable chip 110 which is recorded can be switched in time, and the condition that a new consumable box 100 cannot be used is avoided, so that the printing requirement of a user is met.
As shown in fig. 1, a consumable chip 110 provided by an embodiment of the present invention includes an interface circuit 111, a control circuit 112, and a storage circuit 113.
The interface circuit 111 is used for implementing communication and access with external devices (including the printer 200, the chip writing detection device, etc.), and may be contact communication, and then the interface circuit 111 may include several electrical contacts; or contactless communication, the interface circuit 111 may in this case comprise an antenna, coil for wireless communication.
The control circuit 112 is used to implement the control method shown in fig. 2, recognizes an access instruction of the printer 200, responds to the instruction, and controls reading and writing to the memory circuit 113, and the control circuit 112 may be implemented by an ASIC, a CPU, an MCU, an SOC, or the like.
The memory circuit 113 is used to store information related to the consumable cartridge 100, including the above identification data and other data. The memory circuit 113 may be an EEPROM, a ferroelectric memory, a flash, an SRAM, a DRAM, or other common memories, and may be configured with a capacitor, a battery, or other power supply devices when the SRAM or the DRAM is used.
The above three parts of the interface circuit 111, the control circuit 112 and the storage circuit 113 can be integrated on a wafer by an integrated manner, or can be formed by discrete circuits, and the circuits can be fixed on a Printed Circuit Board (PCB) for convenient transportation, installation and use. The above printed circuit board may be a hard board or a flexible board.
In this embodiment, the identification data may include a unique identification code (UID), a Serial Number (SN), or a seed (seed). There may be differences in the identification data of different chips, and some printers 200 record only serial numbers, and the identification data that the consumable chip 110 needs to switch to only include serial numbers. Some printers 200 record the unique identification code and the seed at the same time, and the consumable chip 110 needs to switch the unique identification code and the seed in the identification data at the same time.
Of course, in other possible implementations, if other data stored in the consumable chip 110, such as matching data such as verification data, digital signature data, encrypted data, compressed data, and color calibration, is in matching storage relationship with the above identification data (in other words, the identification data and the data are a set of data), when switching the identification data, the matching data and the identification data are simultaneously switched as a whole.
It should be noted that the above is only an example of an application scenario of the embodiment of the present invention, and may also be applied to other application scenarios according to actual needs, and the present embodiment does not limit this.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart illustrating an identification data switching method according to an embodiment of the present invention. As shown in fig. 2, the method includes:
201. acquiring first communication information of the first installation of the consumable chip.
The execution subject of the present embodiment may be a processor, for example, a control circuit in the consumable chip shown in fig. 1.
In practical application, the first installation of the consumable chip means that the old consumable box needs to be replaced by a new consumable box when the consumable box cannot be used due to the exhaustion of the consumable materials and other reasons. At this moment, can install new consumptive material box through the lid of opening the printer, then close the lid of printer, make the consumptive material chip of consumptive material box power-on, communicate with the printer, accomplish the installation for the first time promptly after the communication.
In this embodiment, the first communication information includes at least one of the following: the command type, the total number of commands, and the command order of all communication commands between the consumable chip and the printer may be any two or three of them, for example.
202. And acquiring second communication information of the consumable chip which is not installed for the first time.
In this embodiment, the non-first installation of consumptive material chip, the mode of also installing again and going up electricity can be multiple, but one kind of implementable mode is that it makes the consumptive material chip go up electricity again to start again after closing the printer, another kind of implementable mode is that extract the consumptive material box from the printer and install again, but another kind of implementable mode is that open the lid on the printer and then close again, let the printer supply power/go up electricity again to the consumptive material chip for the consumptive material chip has the chance to receive all communication instructions of a complete communication process once more. The second communication information that is not first installed may be communication information between the consumable chip and the printer acquired during the second power-on, the third power-on, the fourth power-on, and the like.
In some embodiments, before acquiring the first communication information or the second communication information, it may be determined whether the consumable chip is installed for the first time, so that the consumable chip correctly confirms the first communication information and the second communication information, and therefore, optionally, before acquiring the first communication information of the consumable chip installed for the first time, the method further includes: judging whether the consumable chip is installed for the first time or not according to the installation information in the chip; if the consumable chip is not installed for the first time, second communication information of the consumable chip installed this time is obtained, and first similarity of the first communication information and the second communication information is calculated.
Specifically, when installed for the first time, the printer powers and accesses the consumable chip after the consumable chip has established electrical communication with the printer via the interface circuit. And after the consumable chip receives the power supply, carrying out power-on initialization. When the consumable chip is brand-new, namely when the consumable chip is installed for the first time, the printer writes installation date into the consumable chip or rewrites installation mark position, consumable surplus, consumable consumption and other information in the storage circuit of the consumable chip. Various commands are also issued to the consumable chip, including identification commands, authentication commands, encryption commands, read commands, write commands, and the like. At this time, the consumable chip can record all communication instructions in the storage circuit. The communication instruction generally includes information such as a header, instruction type information, instruction content, and a check code.
In practical application, if the consumable chip is installed for the first time, that is, after the printer sends various communication instructions to the consumable chip, the screen of the printer prompts that the consumable chip is abnormal or cannot be identified, which indicates that the identification data of the consumable chip has been recorded by the printer, and the printer cannot identify and approve the consumable chip, in this case, the user learns through the prompt information (for example, the prompt information may be that "the current consumable box cannot be identified") on the screen of the printer, but the consumable chip cannot learn this situation, and the identification data switching method of this embodiment needs to be adopted to determine that switching is needed. Therefore, the user can be through closing the printer after the restart, extract the consumptive material box from the printer and reinstall or open the lid on the printer and then close the mode on the class again, let the printer supply power again to the consumptive material chip, also be equivalent to making the consumptive material chip installed once more (installation for the non-first time), the consumptive material chip can receive once more whole communication process's communication instruction when this installation for the non-first time. Further, it is possible to make a judgment as to whether or not the identification data needs to be switched, based on the acquired communication instructions for the first installation and the non-first installation. It can be understood that the communication command that is not installed for the first time may be obtained multiple times, that is, the first installation is the first installation, and the second installation, the third installation, the fourth installation, and the like that follow all belong to the non-first installation, and also can be used as the basis for judging whether to switch the identification data subsequently. This embodiment is not limited to this.
203. Calculating a first similarity of the first communication information and the second communication information.
The similarity calculation may be performed according to at least one aspect of instruction category, total number of instructions, and instruction order, and the following description will be given by taking a single letter as an example to represent one instruction:
for example, for instruction classes, examples of higher similarity are:
the communication instruction obtained by the first installation is as follows: A. b, C, D, E are provided.
The communication instruction obtained by non-initial installation is as follows: A. b, D, E, C are provided.
In this example, the first installation is compared to the non-first installation, the categories are the same, and only the order is adjusted, so the category similarity can be considered high.
Examples of lower similarity are:
the communication instruction obtained by the first installation is as follows: A. b, C, D, E are provided.
The communication instruction obtained by non-initial installation is as follows: A. b, E, C, F are provided.
In this example, the first installation is different in category from the non-first installation in that there is a D category installed for the first time, and there is no D category but an F category in the non-first installation, and therefore the category similarity can be considered to be low.
Examples of higher similarity for the total number of instructions are:
the communication instruction obtained by the first installation is as follows: A. b, C, D, E are provided.
The communication instruction obtained by non-initial installation is as follows: A. b, C, D, E, F are provided.
In this example, the total number of instructions differs by 1 in the first installation compared to the non-first installation, and the similarity can be considered to be high.
Examples of lower similarity are:
the communication instruction obtained by the first installation is as follows: A. b, C, D, E are provided.
The communication instruction obtained by non-initial installation is as follows: A. b, C, E, F, G, H, I are provided.
In this example, the total number of instructions differs by 3 in the first installation compared to the non-first installation, and the similarity is considered to be low.
Examples of higher similarity for instruction order are:
the communication instruction obtained by the first installation is as follows: A. b, C, D, E are provided.
The communication instruction obtained by non-initial installation is as follows: A. b, D, E, F are provided.
In this example, the first installation is performed in the same order as the execution of the same instructions, and the similarity may be considered to be higher than the non-first installation.
Examples of lower similarity are:
the communication instruction obtained by the first installation is as follows: A. b, C, D, E are provided.
The communication instruction obtained by non-initial installation is as follows: A. e, C, D, B are provided.
In this example, the execution order of instruction E and instruction B is completely reversed in the first installation compared to the non-first installation, and the similarity may be considered to be low.
It should be understood that the type, order, and total amount of the instructions may be used alone or in combination as the basis for calculating the similarity, which may be determined according to the actual situation of the printer, and this embodiment does not limit this. The above example can be used as a qualitative example, in actual calculation, quantitative calculation can be performed according to actual requirements, and this embodiment does not limit this.
204. And determining whether to switch the current identification data or not according to the first similarity.
Optionally, the determining whether to switch the current identification data according to the first similarity includes: comparing the first similarity with a first preset value;
and if the first similarity is greater than a first preset value, switching the current identification data.
Optionally, the determining whether to switch the current identification data according to the first similarity further includes: and if the first similarity is smaller than or equal to a second preset value, continuing to use the current identification data. The first preset value may be, for example, 60%, 70%, 80%, 90%, etc., and the second preset value may be, for example, 50%, 40%, etc.
It is understood that the basis for switching the current identification data may be obtained only from the first similarity, or may be obtained from a plurality of similarities for the accuracy of switching, for example, the similarity between the first installation and the second installation may be combined, or the similarity between the first installation and the third installation may be combined. When both similarity degrees are high, the switching is performed, which specifically refers to the embodiment of fig. 3 and is not described herein again.
The identification data switching method provided by the embodiment comprises the steps of obtaining first communication information of a consumable chip which is installed for the first time, obtaining second communication information of the consumable chip which is not installed for the first time, calculating first similarity of the first communication information and the second communication information, and determining whether to switch current identification data or not according to the first similarity. Therefore, the identification data switching method provided by the embodiment can calculate the similarity of the communication data between the consumable chip and the printer by comparing the communication data between the consumable chip and the printer when the consumable chip is installed for the first time and when the consumable chip is not installed for the first time, and then timely switch the identification data according to the similarity so as to avoid the condition that a new consumable box cannot be used, thereby meeting the printing requirements of users.
Fig. 3 is a flowchart illustrating an identification data switching method according to another embodiment of the present invention. As shown in fig. 3, the method includes:
301. acquiring first communication information of the first installation of the consumable chip.
302. And acquiring second communication information of the consumable chip which is not installed for the first time.
In this embodiment, step 301 and step 302 are similar to step 201 and step 202 in the above embodiment, and are not described again here.
303. And judging whether the acquisition times of the communication information of the non-first installation of the consumable chip are more than or equal to the preset times.
304. If yes, step 301 to step 303 are repeated.
305. And if the similarity is larger than or equal to the first similarity, calculating a second similarity between the communication information and the first-installed communication information aiming at the communication information which is not first-installed and is obtained every time.
306. And determining whether to switch the current identification data or not according to the calculated second similarity.
In practical applications, in order to ensure the accuracy of the switching, after the similarity calculation is performed for a plurality of times, the judgment of whether the identification data is switched or not may be performed according to the obtained plurality of similarities. Fig. 4 is a flowchart illustrating a method for switching identification data according to another embodiment of the present invention, as shown in fig. 4, after an old consumable cartridge is unusable due to exhaustion of consumables, a new consumable cartridge can be replaced. This is the first installation of new consumptive material box, and when first installation, the consumptive material chip passes through interface circuit and constitutes the electric communication back with the printer, and the printer supplies power and visits the consumptive material chip to the consumptive material chip. And after the consumable chip receives the power supply, carrying out power-on initialization. The printer may issue various commands to the chip including identification commands, authentication commands, encryption commands, read commands, write commands, and the like. At this time, the consumable chip can record all communication instructions in the storage circuit. The communication instruction generally includes information such as a header, instruction type information, instruction content, and a check code. After the installation for the first time, after various communication instructions were sent for the consumptive material chip to the printer, the printer can either normal use, perhaps can indicate the consumptive material chip unusual or unable discernment, if indicate the consumptive material chip unusual then explain the identification data of consumptive material chip have been recorded by the printer. Therefore, in order to enable the consumable chip to execute the method of the embodiment, the user can enable the printer to supply power to the consumable chip again by turning off the printer and then starting up the printer, pulling out the consumable box from the printer and then reinstalling the consumable box or opening the cover on the printer and then closing the consumable box, and the consumable chip has the opportunity to receive the communication instruction of the whole communication process again.
The consumable chip can judge whether the consumable chip is installed for the first time through information such as installation date, installation mark bits, consumable surplus, consumable consumption and the like, and if the consumable chip is installed for the first time, the similarity of each communication instruction stored in the storage circuit of the chip is not analyzed. On the contrary, if the chip is not mounted for the first time, the control circuit of the chip determines whether a communication instruction of a preset number of times (for example, the preset number may be 2 times or any integer greater than 2 times) of power-on processes is stored in the storage circuit. And if the preset times are not reached, returning to continuously obtain all communication instructions of the next installation again. Taking the preset number of times as 2 as an example, if the communication instruction of at least 2 power-on processes has been stored, the chip may start to analyze the similarity of the communication instruction. If the similarity between the instruction of the first communication process and the instruction of the second communication process is smaller than the preset value (namely, the similarity is lower), the chip can confirm that the identification data is approved by the printer, and at the moment, the consumable chip does not switch the current identification data into another identification data.
According to the identification data switching method provided by the embodiment, the number of times of communication instruction acquisition is detected, and the accuracy of identification data switching can be improved through multiple times of similarity calculation, so that the printing requirements of users are met.
Fig. 5 is a schematic flowchart of an identification data switching method according to another embodiment of the present invention, as shown in fig. 5, based on the above-mentioned embodiment, for example, based on the embodiment shown in fig. 2, in another embodiment of the present invention, in order to avoid consuming resources for communication information acquisition and analysis when a consumable box is powered on again each time, a scheme for locking identification data is proposed, where the method includes:
501. acquiring first communication information of the first installation of the consumable chip;
502. acquiring second communication information of the consumable chip which is not installed for the first time;
503. calculating a first similarity of the first communication information and the second communication information;
504. and determining whether to switch the current identification data or not according to the first similarity.
In this embodiment, steps 501 to 504 are similar to steps 201 to 204 in the above embodiment, and are not described again here.
505. If not, namely if the current identification data is reserved, generating a locking identifier; the locking identification is used for indicating that the identification data of the consumable chip is locked, and the consumable chip does not need to acquire the communication information of the non-first-time installation of the consumable chip.
506. If so, i.e. if the current identification data is switched, the identification data is switched.
In this embodiment, the consumable chip can "lock" the current identification data through modes such as setting a mark, that is, the consumable chip can not record and analyze the similarity of the communication instruction afterwards, thereby, the waste of chip resources can be reduced, and the printing efficiency can be promoted, and the printing time of the user is saved.
Of course, in another embodiment, if the consumable chip does not lock the identification data, it is possible to record the communication command each time the consumable chip is powered on, and then analyze the similarity of the commands, so that the consumable chip has the possibility of continuing to switch the identification data. In this way, the situation that the record list of the printer is upgraded can be dealt with, and specifically, if the record list of the printer is upgraded in a networking way, the identification data which is considered to be normal before may be listed in the record list, so that the consumable chip in use cannot continue to work. At the moment, the consumable chip also has the capacity of switching the identification data, and the identification data of the consumable chip can be identified to be recorded in an instruction analyzing mode, so that the identification data can be switched again, normal printing is guaranteed, and the user requirements are met.
Fig. 6 is a schematic structural diagram of an identification data switching device according to an embodiment of the present invention. As shown in fig. 6, the identification data switching device 60 includes: a first obtaining module 601, a second obtaining module 602, a calculating module 603, and a switching module 604.
A first obtaining module 601, configured to obtain first communication information for first installation of a consumable chip;
a second obtaining module 602, configured to obtain second communication information that the consumable chip is not installed for the first time;
a calculating module 603, configured to calculate a first similarity between the first communication information and the second communication information;
a switching module 604, configured to determine whether to switch the current identification data according to the first similarity.
According to the identification data switching equipment provided by the embodiment of the invention, the first communication information of the consumable chip which is firstly installed is obtained through the first obtaining module 601, the second communication information of the consumable chip which is not firstly installed is obtained through the second obtaining module 602, the first similarity between the first communication information and the second communication information is calculated through the calculating module 603, and the switching module 604 determines whether to switch the current identification data according to the first similarity, namely, the similarity is calculated by comparing the communication data between the consumable chip and the printer when the consumable chip is firstly installed and is not firstly installed, and then the identification data is timely switched according to the similarity, so that the condition that a new consumable box cannot be used is avoided, and the printing requirement of a user is met.
Optionally, the switching module 604 is specifically configured to:
comparing the first similarity with a first preset value;
and if the first similarity is greater than a first preset value, switching the current identification data.
Optionally, the switching module 604 is specifically configured to:
and if the first similarity is smaller than or equal to a second preset value, continuing to use the current identification data.
Optionally, the apparatus 60 further comprises: the first judgment module is used for judging whether the consumable chip is installed for the first time or not according to the installation information in the chip;
if the consumable chip is not installed for the first time, second communication information of the consumable chip installed this time is obtained, and first similarity of the first communication information and the second communication information is calculated.
Optionally, the apparatus 60 further comprises: the second judgment module is used for judging whether the acquisition times of the communication information of the non-first installation of the consumable chip are more than or equal to the preset times;
if the similarity is larger than or equal to the first similarity, aiming at the communication information which is not installed for the first time and is obtained each time, calculating a second similarity between the communication information and the communication information which is installed for the first time;
the determining whether to switch the current identification data according to the first similarity includes: and determining whether to switch the current identification data or not according to the calculated second similarity.
Optionally, the apparatus 60 further comprises: the locking module is used for generating a locking identifier if the current identification data is reserved; the locking identification is used for indicating that the consumable chip is locked, and communication information of the non-first-time installation of the consumable chip does not need to be acquired.
Optionally, the first communication information comprises at least one of: the command type, the total number of commands and the command order of all communication commands between the consumable chip and the printer.
Optionally, the identification data comprises at least one of: unique identification code, serial number, seed.
The identification data switching device provided in the embodiment of the present invention may be configured to execute the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic diagram of a hardware structure of a consumable chip according to an embodiment of the present invention. As shown in fig. 7, the consumable chip 70 provided in this embodiment includes: at least one processor 701 and a memory 702. The consumable chip 70 also includes a communication component 703. The processor 701, the memory 702, and the communication section 703 are connected by a bus 704.
In this embodiment, the consumable chip 70 may be the consumable chip shown in fig. 1, and the processor 701 may be the control circuit shown in fig. 1. The communication section 703 may be an interface circuit shown in fig. 1. The memory 702 may be the memory circuit shown in fig. 1.
Specifically, the interface circuit is used for realizing communication and access with external devices (including printers, chip write detection devices, and the like), and may be contact communication, and at this time, the interface circuit may include a plurality of electrical contacts; or contactless communication, the interface circuit may in this case comprise an antenna, coil for wireless communication.
The control circuit is used to implement the control method shown in fig. 2, recognize an access instruction of the printer, respond to the instruction, and control reading and writing to the memory circuit.
The memory circuit is used for storing information related to the consumable cartridge, including the above identification data and other data.
In a specific implementation process, the at least one processor 701 executes the computer-executable instructions stored in the memory 702, so that the at least one processor 701 executes the identification data switching method executed by the consumable chip 70 as described above.
When the steps of similarity calculation and the like of this embodiment are performed by the server, the communication section 703 may transmit the first communication information and the second communication information to the server, so that the server calculates the first similarity between the first communication information and the second communication information.
For a specific implementation process of the processor 701, reference may be made to the above method embodiments, which implement principles and technical effects similar to each other, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 7, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application also provides a consumable cartridge comprising a consumable chip as shown in fig. 7. The consumptive material box that this embodiment provided, through the communication data contrast between consumptive material chip and the printer when installing for the first time and not installing for the first time, calculate its similarity, and then carry out timely switching to the identification data according to this similarity to avoid the unable condition of using of new consumptive material box, thereby satisfy user's printing demand.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the identification data switching method executed by the identification data switching device is realized.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or 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 or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for identifying data handover, comprising:
acquiring first communication information between the consumable chip and a printer when the consumable chip is installed for the first time; the first communication information includes at least one of: the command types, the total number and the command sequences of all communication commands between the consumable chip and the printer;
acquiring second communication information between the consumable chip and the printer when the consumable chip is not installed for the first time, wherein the second communication information is all communication instructions of a complete communication process received when the printer powers on the consumable chip again;
calculating a first similarity of the first communication information and the second communication information;
and determining whether to switch the current identification data or not according to the first similarity.
2. The method of claim 1, wherein determining whether to switch the current identification data according to the first similarity comprises:
comparing the first similarity with a first preset value;
and if the first similarity is greater than a first preset value, switching the current identification data.
3. The method of claim 2, wherein determining whether to switch the current identification data according to the first similarity further comprises:
and if the first similarity is smaller than or equal to a second preset value, continuing to use the current identification data.
4. The method according to any one of claims 1 to 3, wherein before acquiring the first communication information of the first installation of the consumable chip, the method further comprises:
judging whether the consumable chip is installed for the first time or not according to the installation information in the chip;
if the consumable chip is not installed for the first time, second communication information of the consumable chip installed this time is obtained, and first similarity of the first communication information and the second communication information is calculated.
5. The method according to any of claims 1-3, wherein before calculating the first similarity of the first communication information and the second communication information, further comprising:
judging whether the acquisition times of the communication information of the non-first installation of the consumable chip are more than or equal to the preset times;
the calculating a first similarity of the first communication information and the second communication information includes:
if the similarity is larger than or equal to the first similarity, aiming at the communication information which is not installed for the first time and is obtained each time, calculating a second similarity between the communication information and the communication information which is installed for the first time;
the determining whether to switch the current identification data according to the first similarity includes: and determining whether to switch the current identification data or not according to the calculated second similarity.
6. The method according to any one of claims 1-3, wherein after determining whether to switch the current identification data according to the first similarity, further comprising:
if the current identification data is reserved, generating a locking identifier; the locking identification is used for indicating that the consumable chip is locked, and communication information of the non-first-time installation of the consumable chip does not need to be acquired.
7. A method according to any of claims 1-3, wherein the identification data comprises at least one of: unique identification code, serial number, seed.
8. An identification data switching apparatus, comprising:
the first acquisition module is used for acquiring first communication information between the consumable chip and the printer when the consumable chip is installed for the first time; the first communication information includes at least one of: the command types, the total number and the command sequences of all communication commands between the consumable chip and the printer;
the second acquisition module is used for acquiring second communication information between the consumable chip and the printer when the consumable chip is not installed for the first time, wherein the second communication information is all communication instructions of a complete communication process received when the printer powers on the consumable chip again;
the calculation module is used for calculating first similarity of the first communication information and the second communication information;
and the switching module is used for determining whether to switch the current identification data according to the first similarity.
9. A consumable chip, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the memory-stored computer-executable instructions causes the at least one processor to perform the identification data switching method of any of claims 1 to 7.
10. A consumable cartridge, comprising: the consumable chip of claim 9.
11. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the identification data switching method according to any one of claims 1 to 7.
CN202011120335.9A 2020-10-19 2020-10-19 Identification data switching method, equipment, consumable chip, consumable box and medium Active CN112192961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011120335.9A CN112192961B (en) 2020-10-19 2020-10-19 Identification data switching method, equipment, consumable chip, consumable box and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011120335.9A CN112192961B (en) 2020-10-19 2020-10-19 Identification data switching method, equipment, consumable chip, consumable box and medium

Publications (2)

Publication Number Publication Date
CN112192961A CN112192961A (en) 2021-01-08
CN112192961B true CN112192961B (en) 2022-04-15

Family

ID=74009414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011120335.9A Active CN112192961B (en) 2020-10-19 2020-10-19 Identification data switching method, equipment, consumable chip, consumable box and medium

Country Status (1)

Country Link
CN (1) CN112192961B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022163803A1 (en) * 2021-01-29 2022-08-04 ブラザー工業株式会社 Image forming device, initialization method, and control method
CN113157225A (en) * 2021-05-25 2021-07-23 广州众诺电子技术有限公司 Method for switching serial numbers, consumable device and computer storage medium
WO2022257431A1 (en) * 2021-06-08 2022-12-15 珠海艾派克微电子有限公司 Consumable chip, consumable box, and consumable chip authentication method and use method
CN113590056B (en) * 2021-07-23 2024-03-01 极海微电子股份有限公司 Consumable chip and control method thereof
CN113580772B (en) * 2021-08-25 2023-03-17 极海微电子股份有限公司 Data updating method and consumable chip
CN113602020B (en) * 2021-09-30 2021-12-14 北京辰光融信技术有限公司 Printing method, system and device
WO2023077616A1 (en) * 2021-11-02 2023-05-11 珠海艾派克微电子有限公司 Chip, consumable cartridge, and data transmission method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103640339A (en) * 2013-09-23 2014-03-19 珠海艾派克微电子有限公司 Memory chip, imaging box, serial number replacement method and method for using memory chip
CN106671609A (en) * 2017-01-03 2017-05-17 珠海艾派克微电子有限公司 Serial number adjustment method and device
CN107053854A (en) * 2017-01-03 2017-08-18 珠海艾派克微电子有限公司 Control method, device, consumable chip and the printer of consumable chip work
CN110412843A (en) * 2018-04-26 2019-11-05 广州众诺电子技术有限公司 Sequence number switching method and system
CN111421961A (en) * 2020-04-13 2020-07-17 无锡翼盟电子科技有限公司 Method and consumable box capable of realizing rapid power-on and rapid storage of consumable chip

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9635197B2 (en) * 2012-11-30 2017-04-25 Samsung Electronics Co., Ltd. Method of executing application installed in outside server and image forming apparatus to perform the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103640339A (en) * 2013-09-23 2014-03-19 珠海艾派克微电子有限公司 Memory chip, imaging box, serial number replacement method and method for using memory chip
CN106671609A (en) * 2017-01-03 2017-05-17 珠海艾派克微电子有限公司 Serial number adjustment method and device
CN107053854A (en) * 2017-01-03 2017-08-18 珠海艾派克微电子有限公司 Control method, device, consumable chip and the printer of consumable chip work
CN110412843A (en) * 2018-04-26 2019-11-05 广州众诺电子技术有限公司 Sequence number switching method and system
CN111421961A (en) * 2020-04-13 2020-07-17 无锡翼盟电子科技有限公司 Method and consumable box capable of realizing rapid power-on and rapid storage of consumable chip

Also Published As

Publication number Publication date
CN112192961A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN112192961B (en) Identification data switching method, equipment, consumable chip, consumable box and medium
US10012929B2 (en) Imaging cartridge chip, imaging cartridge, and method for switching imaging cartridge chip serial number
US9645546B2 (en) Storage chip, imaging cartridge, method of changing serial number and method of using storage chip
US11148428B2 (en) Printing material cartridge
CN109334259B (en) Consumable chip and its communication means, consumable chip and imaging device communication system, method
US20200070531A1 (en) Printing material cartridge
CN112965351B (en) Image forming cartridge and toner remaining amount detecting method
US9465351B2 (en) Self-transforming imaging cartridge chip
CN112824105B (en) Data processing method of consumable chip, consumable and imaging equipment
WO2018086306A1 (en) Chip version switching method, apparatus and system
CN113352770B (en) Consumable chip and imaging box
CN107301024B (en) Imaging box chip, imaging box and data processing method
WO2022257431A1 (en) Consumable chip, consumable box, and consumable chip authentication method and use method
CN111391512B (en) Consumable chip and consumable
US20120327451A1 (en) Method of Transforming an Imaging Machine
CN114274676B (en) Authentication information switching method, consumable chip and consumable box
CN216139691U (en) Consumable chip and consumable
CN114968135A (en) Authentication method, chip, host and replaceable accessory
CN117435148A (en) Communication method of consumable chip, consumable and image forming device
US20190049877A1 (en) Immunizing Cartridge Chip
US20140085662A1 (en) Methods of Inducing an Imaging Machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 519060 building 01, 83 Guangwan street, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee after: Jihai Microelectronics Co.,Ltd.

Address before: 519060 building 01, 83 Guangwan street, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee before: APEX MICROELECTRONICS Co.,Ltd.