Consumable chip data processing method, device, consumable chip and imaging cartridge
Technical field
The present invention relates to printer printing technique field more particularly to consumable chip data processing method, device, consumptive material cores
Piece and imaging cartridge.
Background technique
Printer is the indispensable tool of modern handle official bussiness, and detachable and interchangeable imaging cartridge (including selenium is equipped in printer
Drum, cartridge, print cartridge, carbon ribbon etc.).
Imaging cartridge is built-in with consumable chip, and after the consumptive material placed in imaging cartridge is exhausted, consumable chip be will record
Information is exhausted, at this point, if adding consumptive material (carbon dust, ink, ink powder etc.) into imaging cartridge again, the correspondence recognized due to printer
The consumable information of the consumable chip of the imaging cartridge is that consumptive material exhausts information, even if having enough consumptive materials, printer in imaging cartridge
User is not allowed to print, it is necessary to replace completely new imaging cartridge.
However, in fact, the hardware for only using primary imaging cartridge be it is intact, such imaging cartridge is abandoned obvious
It is the waste to resource, does not meet environmental protection concept, and prints cost can also correspondingly increase.
Summary of the invention
The purpose of the present invention is to provide consumable chip data processing method, device, consumable chip and imaging cartridges, by covering
After sequence number and initialization consumable information that lid printer has recorded, by the imaging cartridge after making printer recognize imaging cartridge information
It is judged as the imaging cartridge of a consumable items allowance abundance, to realize the recycling of imaging cartridge, avoids waste of resource, and save
Print cost.
Based on this, one aspect of the present invention provides consumable chip data processing method, comprising:
Judge whether consumable chip receives the insufficient write-in information of consumable items allowance of printer transmission;
Judge whether the number of the initialization of consumable chip is less than preset limit value;
When consumable chip receive printer transmission the insufficient write-in information of consumable items allowance, and initialize number it is small
When preset limit value, consumable information is initialized, currently running sequence number is switched to sequence coverage number by consumable chip, so that
The sequence number that printer has recorded the sequence coverage override printer.
Consumable chip data processing method as described above, further includes:
When the number of initialization is greater than or equal to preset limit value, toward consumable information write-in consumable items allowance deficiency information;
After completing initialization consumable information and currently running sequence number is switched to sequence coverage by consumable chip, root
It adds up the number of the initialization according to default accumulated value.
Consumable chip data processing method as described above, it is described to have recorded the sequence coverage override printer
Sequence number includes: that the sequence number of consumable chip response printer obtains order, runs the sequence coverage number, printer obtains institute
State the sequence number for the sequence coverage override printer having been recorded after sequence coverage number.
Consumable chip data processing method as described above, in step: judging whether consumable chip receives printer hair
Before the insufficient write-in information of the consumable items allowance sent, further includes:
When upper machine, consumable chip run the second sequence number to consumable chip for the first time, so that printer works normally;
Wherein, the sequence coverage number is the sequence number recorded different from second sequence number and printer.
Consumable chip data processing method as described above, in step: judging whether consumable chip receives printer hair
Before the insufficient write-in information of the consumable items allowance sent, further includes:
When upper machine, consumable chip run First ray number so that the First ray override printer to consumable chip for the first time
The sequence number recorded;
When receiving signal specific, currently running First ray number is switched to the second sequence number by consumable chip, so that
Printer works normally;
Wherein, the sequence coverage number is to have recorded different from the First ray number, the second sequence number and printer
Sequence number.
Consumable chip data processing method as described above, in step: judging whether consumable chip receives printer hair
Before the insufficient write-in information of the consumable items allowance sent, further includes:
When upper machine, consumable chip run First ray number so that the First ray override printer to consumable chip for the first time
The sequence number recorded;
When receiving signal specific, currently running First ray number is switched to the second sequence number by consumable chip, so that
Printer works normally;
Wherein, the sequence coverage number is First ray number or the sequence coverage number is different from second sequence
The sequence number that row number and printer have recorded.
Consumable chip data processing method as described above, second Serial No. be different from the First ray number with
And the sequence number that printer has recorded.
The present invention also provides consumable chip data processing equipments, comprising:
First judging unit, for judging whether consumable chip receives the insufficient write-in of consumable items allowance of printer transmission
Information;
Second judgment unit, for judging whether the number of initialization of consumable chip is less than preset limit value;
Initialization unit, for receiving the insufficient write-in information of consumable items allowance of printer transmission when consumable chip, and
And initialization number be less than preset limit value when, initialize consumable information;
Sequence number switches capping unit, for receiving the insufficient write-in of consumable items allowance of printer transmission when consumable chip
Information, and initialize number be less than preset limit value when, currently running sequence number is switched to sequence coverage number so that
The sequence number that printer has recorded the sequence coverage override printer;
Consumable quantity writing unit is greater than or equal to preset limit value for the number when initialization, is written toward consumable information
Consumable items allowance deficiency information;
Count initialized unit, for working as, completion initializes consumable information and consumable chip cuts currently running sequence number
After being changed to sequence coverage number, added up the number of the initialization according to default accumulated value.
Consumable chip data processing equipment as described above, further includes:
Sequence number running unit, for running the second sequence number, so that printer works normally;
Wherein, the sequence coverage number is the sequence number recorded different from second sequence number and printer.
Consumable chip data processing equipment as described above, further includes:
Sequence number runs capping unit, for working as consumable chip upper machine for the first time, runs First ray number so that described first
The sequence number that sequence number override printer has recorded;
Sequence number switch unit, for when receiving signal specific, currently running First ray number to be switched to second
Sequence number, so that printer works normally;
Wherein, second Serial No. is different from the sequence number that the First ray number and printer have recorded, institute
Stating sequence coverage number is the sequence number recorded different from the First ray number, the second sequence number and printer.
Consumable chip data processing equipment as described above, further includes:
Sequence number runs capping unit, for working as consumable chip upper machine for the first time, runs First ray number so that described first
The sequence number that sequence number override printer has recorded;
Sequence number switch unit, for when receiving signal specific, currently running First ray number to be switched to second
Sequence number, so that printer works normally;
Wherein, second Serial No. is different from the sequence number that the First ray number and printer have recorded, institute
State sequence coverage number be First ray number or the sequence coverage number be different from second sequence number and printer
The sequence number of record.
The present invention also provides consumable chip, the consumable chip includes the processor program of storage, wherein in the processing
Equipment executes consumable chip data processing method as described above device program controls the consumable chip when running where.
The present invention also provides imaging cartridges, including consumable chip as described above.
The implementation of the embodiments of the present invention has the following beneficial effects:
Consumable chip data processing method of the present invention, the sequence number recorded by override printer and initialization
After consumable information, which is judged as to the imaging of a consumable items allowance abundance after so that printer is recognized imaging cartridge information
Box avoids waste of resource to realize the recycling of imaging cartridge, and saves printing cost.On the other hand, by calculating just
The recycling number of imaging cartridge can be controlled in reasonable value, guarantee the quality of printing by the number of beginningization.Described device,
Consumable chip and imaging cartridge apply the consumable chip data processing method, thus have corresponding beneficial effect.
Detailed description of the invention
Fig. 1 is the flow diagram of the preferred embodiment of the present invention 1.
Fig. 2 is the flow diagram of the preferred embodiment of the present invention 2.
Fig. 3 is the flow diagram of the preferred embodiment of the present invention 3.
Fig. 4 is the flow diagram of the preferred embodiment of the present invention 4.
Fig. 5 is the function block exemplary diagram of consumable chip data processing equipment described in the preferred embodiment of the present invention 5.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment 1
As shown in Figure 1, the embodiment of the present invention 1 proposes consumable chip data processing method, comprising:
S101, judges whether consumable chip receives the insufficient write-in information of consumable items allowance of printer transmission;
S102, judges whether the number of the initialization of consumable chip is less than preset limit value;
S103, when consumable chip receive printer transmission the insufficient write-in information of consumable items allowance, and initialize
When number is less than preset limit value, consumable information is initialized, currently running sequence number is switched to sequence coverage by consumable chip
Number, so that the sequence number that printer has recorded the sequence coverage override printer;
S104, when the number of initialization is greater than or equal to preset limit value, toward consumable information write-in consumable items allowance deficiency letter
Breath;
S105, when completing initialization consumable information and currently running sequence number is switched to sequence coverage number by consumable chip
Afterwards, it is added up the number of the initialization according to default accumulated value.
Specifically, the sequence coverage number is one be preset in the sequence number in memory.Alternatively, the covering sequence
Row number is the sequence number generated according to algorithm.
More specifically, the sequence number for having recorded the sequence coverage override printer includes: consumptive material in S103
The sequence number that chip responds printer obtains order, the sequence coverage number is run, after printer obtains the sequence coverage number
The sequence number that the sequence coverage override printer has been recorded.More specifically, the overwrite procedure can be by that will cover sequence
Row number copies to the storage location of the sequence number recorded and replaces the sequence number recorded and realizes;
In step S105, the default accumulated value can be 1 or other numerical value.Such as the default tired numerical value is 1, i.e., initially
The number of change adds 1.The preset limit value is arranged according to the service life of imaging cartridge, and general imaging cartridge prints effect after using 6 times
Fruit is undesirable, therefore the preset limit value can be set as 6.The consumable items allowance deficiency information includes low-material-consumption amount information
Or consumptive material exhausts information.
The sequence number that the sequence coverage override printer has recorded, such as sequence coverage number cover currently used sequence
Row number, then, which is just not printed machine record, i.e., every time after covering, capped sequence number can be made
It is used for new sequence number, so that the current sequence number may be reused.
When consumable quantity is less than the setting value of printer, such as less than 10%, printer can be written low into consumable chip
Consumable quantity information or consumptive material exhaust information, such as 10% this low-material-consumption amount information or the label letter that exhausts of a consumptive material
Breath, so as to prevent the printing of user after printer identification.And after initializing consumable information every time, consumable information can all restore
To sufficient consumptive material state, if the original consumptive material state before use, such as consumable quantity revert to 100%, at this point, printer identifies
To imaging cartridge be equivalent to the imaging cartridge of a new consumable items allowance abundance.
In conclusion the sequence number recorded by override printer identifies printer with after initialization consumable information
The imaging cartridge is judged as to the imaging cartridge of a consumable items allowance abundance, to realize that the circulation of imaging cartridge makes after to imaging cartridge information
With avoiding waste of resource, and save printing cost.It on the other hand, can be by imaging cartridge by calculating the number of initialization
Number control is recycled in reasonable value, guarantees the quality of printing.
Embodiment 2
With reference to Fig. 2, consumable chip data processing method described in the present embodiment only records multiple groups sequence number suitable for printer
The case where, comprising:
S80, when upper machine, consumable chip run the second sequence number to consumable chip for the first time, so that printer works normally;
S101, judges whether consumable chip receives the insufficient write-in information of consumable items allowance of printer transmission;
S102, judges whether the number of the initialization of consumable chip is less than preset limit value;
S103, when consumable chip receive printer transmission the insufficient write-in information of consumable items allowance, and initialize
When number is less than preset limit value, consumable information is initialized, currently running sequence number is switched to sequence coverage by consumable chip
Number, so that the sequence number that printer has recorded the sequence coverage override printer;
S104, when the number of initialization is greater than or equal to preset limit value, toward consumable information write-in consumable items allowance deficiency letter
Breath;
S105, when completing initialization consumable information and currently running sequence number is switched to sequence coverage number by consumable chip
After the completion, it is added up the number of the initialization according to default accumulated value, returns to S101.
Certainly, when the insufficient write-in information of the consumable items allowance that consumable chip is not received by printer transmission, consumptive material core
Piece continues to keep communicating with printer.
Wherein, the sequence coverage number is new to choose or newly-generated be different from second sequence number and printer
The sequence number of record.
Due to the multiple sequence numbers of printer record, the sequence coverage number is before each covering, to choose or generating again
The sequence numbers different from multiple sequence numbers that previous sequence number and printer are recorded.Based on this, when the consumption of printer
After material information initializing, after so that printer is recognized imaging cartridge information by the imaging cartridge be judged as consumable items allowance it is sufficient at
As box, to realize the recycling of imaging cartridge, waste of resource is avoided, and save printing cost.
Embodiment 3
The consumable chip data processing proposed based on consumable chip data processing method described in embodiment 1, the present embodiment
Method, the case where multiple groups sequence number is only recorded suitable for printer, with reference to Fig. 3, comprising:
S90, when consumable chip goes up machine for the first time, consumable chip operation First ray number is so that the First ray number covering is beaten
The sequence number that print machine has recorded;
Currently running First ray number is switched to the second sequence number when receiving signal specific by S91, so that printing
Machine works normally, wherein the signal specific can be to detect that printer carries out write operation This move letter to consumable chip
Number, either, when write operation of the printer to consumable chip is added to the This move signal of pre-determined number, and or, when beating
Print machine carries out the This move signal of read operation to the particular address of consumable chip;
S101, judges whether consumable chip receives the insufficient write-in information of consumable items allowance of printer transmission;
S102, judges whether the number of the initialization of consumable chip is less than preset limit value;
S103, when consumable chip receive printer transmission the insufficient write-in information of consumable items allowance, and initialize
When number is less than preset limit value, consumable information is initialized, currently running sequence number is switched to sequence coverage by consumable chip
Number, so that the sequence number that printer has recorded the sequence coverage override printer, certainly, when consumable chip does not receive
When the insufficient write-in information of consumable items allowance sent to printer, consumable chip continues holding with printer and communicates;
S104, when the number of initialization is greater than or equal to preset limit value, toward consumable information write-in consumable items allowance deficiency letter
Breath;
S105, when completing initialization consumable information and currently running sequence number is switched to sequence coverage number by consumable chip
Afterwards, it is added up the number of the initialization according to default accumulated value, returns to S101.
Due to the multiple sequence numbers of printer record, the sequence coverage number is before each covering, to choose or generating again
The sequence numbers different from multiple sequence numbers that previous sequence number and printer are recorded.Based on this, when the consumption of printer
After material information initializing, after so that printer is recognized imaging cartridge information by the imaging cartridge be judged as consumable items allowance it is sufficient at
As box, to realize the recycling of imaging cartridge, waste of resource is avoided, and save printing cost.
Embodiment 4
The consumable chip data processing proposed based on consumable chip data processing method described in embodiment 1, the present embodiment
Method is suitable for the case where printer only records one group of sequence number, with reference to Fig. 4, comprising:
S90, when consumable chip goes up machine for the first time, consumable chip operation First ray number is so that the First ray number covering is beaten
The sequence number that print machine has recorded;
Currently running First ray number is switched to the second sequence number when receiving signal specific by S91, so that printing
Machine works normally, and second sequence number can be the sequence number recorded different from the First ray number and printer;
S101, judges whether consumable chip receives the insufficient write-in information of consumable items allowance of printer transmission;
S102, judges whether the number of the initialization of consumable chip is less than preset limit value;
S103, when consumable chip receive printer transmission the insufficient write-in information of consumable items allowance, and initialize
When number is less than preset limit value, consumable information is initialized, currently running sequence number is switched to First ray by consumable chip
Number, so that the second sequence number that printer has recorded the First ray override printer, certainly, when consumable chip does not have
When receiving the insufficient write-in information of consumable items allowance of printer transmission, consumable chip continues holding with printer and communicates;
S104, when the number of initialization is greater than or equal to preset limit value, toward consumable information write-in consumable items allowance deficiency letter
Breath;
S105, when completing initialization consumable information and currently running sequence number is switched to sequence coverage number by consumable chip
Afterwards, it is added up the number of the initialization according to default accumulated value, returns to S91.
After executing S90 and S91, printer identifies consumable chip, and consumable chip is guaranteed by the authentication of printer
Consumable chip and printer being capable of normal communications, it should be noted that while general running process, can run and the sequence
Number corresponding code key, printer is by carrying out authentication to code key operation, this is existing technology, and therefore not to repeat here.And
In S90 and S91, the effect of the second sequence number is the authentication by printer, and the normal print applied to printer makes
With in the middle, the effect of the First ray number is the sequence number record of override printer, especially, beats the second sequence number not
Print machine record.
Since printer only records 1 group of sequence number, only a sequence number is needed to be covered, is based on this, First ray number
Effect is the sequence number for covering previous group and having recorded, and after the completion of covering, current First ray number is switched to the second sequence number,
Second sequence number can make authentication of the consumable chip by printer, guarantee that consumable chip and printer being capable of positive normal opens
Letter.Wherein, printer first records the second sequence number, and when the second sequence number is switched to First ray, First ray number covers
The record of the second sequence number of lid, then when switching to the second sequence number next time, the second sequence number is new as what is be not recorded
Sequence number uses, further such that imaging cartridge can recycle, avoids waste of resource.
In conclusion the sequence number recorded by override printer identifies printer with after initialization consumable information
The imaging cartridge is judged as to the imaging cartridge of a consumable items allowance abundance, to realize that the circulation of imaging cartridge makes after to imaging cartridge information
With avoiding waste of resource, and save printing cost.It on the other hand, can be by imaging cartridge by calculating the number of initialization
Number control is recycled in reasonable value, guarantees the quality of printing.
Embodiment 5
The present embodiment also provides consumable chip, and the imaging cartridge including the consumable chip, the consumable chip packet
Include the processor program of storage, wherein equipment where controlling the consumable chip in processor program operation executes institute
The consumable chip data processing method stated.
Illustratively, the processor program can be divided into one or more units, one or more of lists
Member is stored in memory, and is executed by the processor, to complete the present invention.One or more of units can be energy
A series of processor program instruction segments of specific function are enough completed, the instruction segment is for describing the processor program in the consumption
Implementation procedure in material chip data processing unit.
For example, the processor program can be divided into multiple units with reference to Fig. 5, each unit concrete function is as follows:
Sequence number running unit 10, for running the second sequence number, so that printer works normally;
Wherein, the sequence coverage number is the sequence number recorded different from second sequence number and printer;
First judging unit 20 insufficient is write for judging whether consumable chip receives the consumable items allowance of printer transmission
Enter information;
Second judgment unit 30, for judging whether the number of initialization of consumable chip is less than preset limit value;
Initialization unit 40, for receiving the insufficient write-in information of consumable items allowance of printer transmission when consumable chip,
And initialization number be less than preset limit value when, initialize consumable information;
Sequence number switches capping unit 50, and the consumable items allowance for receiving printer transmission when consumable chip is insufficient to be write
When the number for entering information, and initializing is less than preset limit value, currently running sequence number is switched to sequence coverage number, with
The sequence number for having recorded printer by the sequence coverage override printer;
Consumable quantity writing unit 60 is greater than or equal to preset limit value for the number when initialization, writes toward consumable information
Enter consumable items allowance deficiency information;
Count initialized unit 70, for when completing initialization consumable information and consumable chip for currently running sequence number
After being switched to sequence coverage number, added up the number of the initialization according to default accumulated value.
In another example being divided into such as lower unit and its corresponding function:
Sequence number runs capping unit 10, and for when consumable chip upper machine for the first time, operation First ray number is so that described the
The sequence number that one sequence number override printer has recorded;
Currently running First ray number is switched to for when receiving signal specific by sequence number switch unit 11
Two sequence numbers, so that printer works normally;
Wherein, the sequence coverage number is to have recorded different from the First ray number, the second sequence number and printer
Sequence number;
First judging unit 20 insufficient is write for judging whether consumable chip receives the consumable items allowance of printer transmission
Enter information;
Second judgment unit 30, for judging whether the number of initialization of consumable chip is less than preset limit value;
Initialization unit 40, for receiving the insufficient write-in information of consumable items allowance of printer transmission when consumable chip,
And initialization number be less than preset limit value when, initialize consumable information;
Sequence number switches capping unit 50, and the consumable items allowance for receiving printer transmission when consumable chip is insufficient to be write
When the number for entering information, and initializing is less than preset limit value, currently running sequence number is switched to sequence coverage number, with
The sequence number for having recorded printer by the sequence coverage override printer;
Consumable quantity writing unit 60 is greater than or equal to preset limit value for the number when initialization, writes toward consumable information
Enter consumable items allowance deficiency information;
Count initialized unit 70, for when completing initialization consumable information and consumable chip for currently running sequence number
After being switched to sequence coverage number, added up the number of the initialization according to default accumulated value.
In another example being divided into such as lower unit and its corresponding function:
Sequence number runs capping unit 10, and for when consumable chip upper machine for the first time, operation First ray number is so that described the
The sequence number that one sequence number override printer has recorded;
Currently running First ray number is switched to for when receiving signal specific by sequence number switch unit 11
Two sequence numbers, so that printer works normally;
Wherein, second Serial No. is different from the sequence number that the First ray number and printer have recorded, institute
State sequence coverage number be First ray number or the sequence coverage number be different from second sequence number and printer
The sequence number of record;
First judging unit 20 insufficient is write for judging whether consumable chip receives the consumable items allowance of printer transmission
Enter information;
Second judgment unit 30, for judging whether the number of initialization of consumable chip is less than preset limit value;
Initialization unit 40, for receiving the insufficient write-in information of consumable items allowance of printer transmission when consumable chip,
And initialization number be less than preset limit value when, initialize consumable information;
Sequence number switches capping unit 50, and the consumable items allowance for receiving printer transmission when consumable chip is insufficient to be write
When the number for entering information, and initializing is less than preset limit value, currently running sequence number is switched to sequence coverage number, with
The sequence number for having recorded printer by the sequence coverage override printer;
Consumable quantity writing unit 60 is greater than or equal to preset limit value for the number when initialization, writes toward consumable information
Enter consumable items allowance deficiency information;
Count initialized unit 70, for when completing initialization consumable information and consumable chip for currently running sequence number
After being switched to sequence coverage number, added up the number of the initialization according to default accumulated value.
Wherein, if the consumable chip data processing equipment is realized in the form of SFU software functional unit and as independent
Product when selling or using, can store in a computer readable storage medium.
Based on this understanding, the present invention realizes all or part of the process in above-described embodiment method, can also pass through
Processor program is completed to instruct relevant hardware, and the processor program can be stored in a computer readable storage medium
In, the processor program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the processing
Device program includes processor program code, and the processor program code can be source code form, object identification code form, can hold
Style of writing part or certain intermediate forms etc..
The computer-readable medium may include: any entity or dress that can carry the processor program code
It sets, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software
Distribution medium etc..It should be noted that the content that the computer-readable medium includes can be according to making laws in jurisdiction
Requirement with patent practice carries out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, computer
Readable medium does not include electric carrier signal and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.
Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, connection relationship between module indicates there is communication connection between them, tool in device provided by the invention
Body can be implemented as one or more communication bus or signal wire.
Those of ordinary skill in the art can understand and implement without creative efforts.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.