The content of the invention
According to an aspect of the present invention, there is provided a kind of printer authoring system, including read-write card unit and control unit, read
Write card unit and be connected to control unit.Read-write card unit is used for the information for reading the label of film cartridge, and the information of label is sent out
Deliver to control unit;Control unit is used to be carried out authorizing judgement processing according to the information of label, if authorizing the result for judging processing
For success, then the information of authorization labels is effective;If authorizing the result for judging processing, the information for judging label is to be unsuccessful
It is invalid.
In one embodiment of the invention, the information for the label that read-write card unit is read includes the sequence number of label;
Control unit includes sequence number judge module, and sequence number judge module is used to receive the sequence number information of label and according to label
Sequence number carries out sequence number mandate judgement, if the result that sequence number mandate judges has as success, the Serial No. of authorization labels
Effect;If the result that sequence number mandate judges to be unsuccessful, judges that the Serial No. of label is invalid.
In one embodiment, the mode of sequence number mandate judgement is:Sequence number judge module is according to the sequence of label
Number carry out algorithm decryption;If the result of algorithm decryption is that successfully, the Serial No. of authorization labels is effective;If the knot of algorithm decryption
Fruit is unsuccessful, then judges that the Serial No. of label is invalid.
In another embodiment of the invention, film of the information including label for the label that read-write card unit is read remains
Surplus;Control unit includes surplus judge module, and surplus judge module is for receiving the film surplus information of label simultaneously
Judge whether the film surplus of label meets print conditions;If surplus judge module judges that the film surplus of label meets
Print conditions, then the film surplus of authorization labels is effective;If surplus judge module judges the film surplus of label not
Meet print conditions, then judge the film surplus of label to be invalid.
In one embodiment, surplus judge module judges whether the film surplus of label meets print conditions
Mode is:Surplus judge module judges whether the film surplus of label is more than threshold value printing amount;If surplus judge module
Judge that the film surplus of label is more than threshold value printing amount, then the film surplus of authorization labels is effective;If surplus judges
Module judges that the film surplus of label is less than or equal to threshold value printing amount, then judges the film surplus of label to be invalid.
In one embodiment, control unit also includes numeration module, and numeration module is used for:Glue has been used in printer
During the film of the predetermined amount of piece cylinder, the film surplus of erasable label, so as to which the film surplus of label is updated into subduction
Value after predetermined amount.
In one embodiment, control unit also includes authorization module, and authorization module is connected to sequence number judge module
With surplus judge module;Authorization module is used to judge whether the label of film cartridge to be available;In sequence number judge module mandate
The Serial No. of label effectively and surplus judge module authorization labels film surplus for it is effective when, authorization module mandate glue
The label of piece cylinder is available;Judge that the Serial No. of label is invalid or surplus judge module judges in sequence number judge module
When the film surplus of label is invalid, authorization module judges the label of film cartridge to be unavailable, when film surplus is zero,
Label self-destruction, this label are forever unavailable.
According to the second aspect of the invention, there is provided a kind of printer authorization method, including Card Reader process and deterministic process.
Card Reader process is:Read the information of the label of film cartridge.
Deterministic process is:Carried out authorizing judgement processing according to the information of label;If authorizing the result for judging processing as success,
Then the information of authorization labels is effective;If the result for judging processing is authorized to judge the information of label to be invalid to be unsuccessful.
In one embodiment, the information of the label of reading includes the sequence number of label;Deterministic process specifically includes:Root
Sequence number mandate judgement is carried out according to the sequence number of label;If the result that sequence number mandate judges is success, the sequence of authorization labels
Row number is effective;If the result that sequence number mandate judges to be unsuccessful, judges that the Serial No. of label is invalid.
In one embodiment, the information of the label of reading includes the film surplus of label;Deterministic process is specifically gone back
Including:Judge whether the film surplus of label meets print conditions;If surplus judge module judges that the film of label is remaining
Amount meets print conditions, then the film surplus of authorization labels is effective;If surplus judge module judges that the film of label remains
Surplus is unsatisfactory for print conditions, then judges the film surplus of label to be invalid.
In one embodiment, printer authorization method also includes licensing process:Have in the Serial No. of authorization labels
When the film surplus of effect and authorization labels is effective, the label for authorizing film cartridge is available;Judging the Serial No. of label
When film surplus that is invalid or judging label is invalid, the label of film cartridge is judged to be unavailable, when film surplus is
When zero, label self-destruction, this label is forever unavailable.
By the present invention, the read-write card unit of printer authoring system can read the letter of the label of current film storage device
Breath, control unit can carry out authorizing judgement processing according to the information of label, if authorizing the result for judging processing to be awarded for success
The information of token label is effective;If the result for judging processing is authorized to judge the information of label to be invalid to be unsuccessful.Work people
Member can be continuing with current film storage device in the case of label information is effective;In the invalid feelings of label information
Under condition, then the film storage device for meeting printer requirement is changed, so as to avoid beating using the film not matched with printer
Impression piece.
Embodiment one:
Sentence as shown in figure 1, printer authoring system 10 includes card reading module 101, sequence number judge module 102, surplus
Disconnected module 103, numeration module 104, authorization module 105.
In the present embodiment, printer authoring system 10 is connected with printer control system 30, and printer control system 30 is used
Specific printing function is realized in control printer, existing any printing technique can be used, therefore repeat no more.
The authorization technique of the present embodiment can be realized using wireless radio-frequency, and the label 201 of film cartridge 20 is to penetrate
Frequency blocks, and label 201 is stored with the relevant information of current film cylinder 20.In the other embodiments of the present invention, the skill of this area
Art personnel can be that radio-frequency card is built in label 201 according to being actually needed, or by radio frequency chip embedded tags 201
In, the data of 32 bytes can be stored in the present embodiment label, the data of 16 bytes can also be stored.Each film cartridge is going out
A label corresponding to all being posted during factory, the information in label are all write in advance by producer so that the information of respective labels and phase
The film cartridge answered is corresponding.
Card reading module 101 is radio frequency antenna module, and card reading module 101 is used to read label 201 so as to obtain in label 201
The relevant information of storage.
Film cartridge 20 can be drum-type, and film cartridge 20 is placed in the appropriate location of printer by user, as long as it is set
Card reading module 101 is facilitated to read the information of label 201, such as current film cylinder 20 can be placed in the film cartridge of printer
(not shown) on device is supported, the distance between card reading module 101 and label 201 are no more than 35mm, implement in others
In example, card reading module 101 and the surface distance of label 201 are 10mm.
When user starts printing, read-write card unit 101 reads the letter such as sequence number and film surplus of label 201
Breath, and the information of label is sent to control unit 10;Sequence number judge module 102 carries out sequence to the sequence number of label 201
Number judgement processing is authorized, surplus judge module 103 judges whether the film surplus of label 201 meets print conditions.For
One not yet used film cartridge, the film surplus of the label of the film cartridge is the initial film amount of film cartridge;For
One used film cartridge, the film surplus of the label of the film cartridge is remaining film amount in film cartridge.This reality
Apply in example, globally unique ID number is included in the sequence number of label 201, while be provided with ciphered data information.
Specifically, in the present embodiment, sequence number mandate is judged as sequence of the sequence number judge module 102 according to label 201
Number carry out algorithm decryption;If the result of algorithm decryption is successfully to illustrate that the sequence number of the label 201 is to meet current printer
And the legal effective sequence number of current printer authoring system 10, then authorizing the Serial No. of the label 201 of film cartridge 20 has
Effect;If the result of algorithm decryption is unsuccessful, judge that the Serial No. of the label 201 of film cartridge 20 is invalid, unsuccessful feelings
Condition for example can be that sequence number judge module 102 can not carry out algorithm decryption according to the sequence number of label 201, or can be calculated
Method is decrypted but the result of decryption is illegal invalid.After sequence number judge module 102 judges that the Serial No. of label 201 is invalid,
Printing function stops, and printer can not be printed using the film cartridge.
In the present embodiment, specifically, algorithm is decrypted by the way of signature algorithm.The data bit of the sequence number of label 201
Number is 16 bytes, wherein, 1-4 is encoder client, and 4-8 are that consumptive material counts, and 8-16 are that data check is signed.Before dispatching from the factory,
During the chip initiation of label 201, encoder client and initial consumptive material are counted signed data is generated according to programmed algorithm, will signed
Data write-in data check signature region.When carrying out printing, the data of the sequence number of label 201 are read, its algorithm
Decryption be sequence number judge module 102 by chip id, encoder client, consumptive material count with it is close inside sequence number judge module 102
Key is calculated so as to generate signature value, then the signature value is compared with the signature value inside the chips of label 201, such as
The result of the identical then algorithm decryption of fruit is that successfully, the result of algorithm decryption is unsuccessful if different, the chips of label 201
Data are considered as illegal.The characteristics of this signature algorithm is that key is not present in inside chip data, and any other algorithm is all
Key information can not be obtained by chip;Algorithm combines chip id, and different chips will have different ID and signed data,
It can accomplish that chip can not be replicated;Signature algorithm belongs to rivest, shamir, adelman, whether can only carry out unidirectional authentication signature value
Legal effective, user does not have the content that algorithm and key then can not reversely derive signed data.Those skilled in the art
Algorithm decryption oprerations can be carried out using the algorithm of other forms according to being actually needed.
In the present embodiment, surplus judge module 103 judges whether the film surplus of label 201 meets print conditions
Mode is that surplus judge module 103 is contrasted the film surplus of label 201 with threshold value printing amount;If judge label
201 film surplus is more than threshold value printing amount, then judges that the film surplus of label 201 meets print conditions, then authorizes mark
The film surplus of label 201 is effective;If judging, the film surplus of label 201 is less than threshold value printing amount, judges label 201
Film surplus be unsatisfactory for print conditions, then judge the film surplus of label 201 to be invalid.Threshold value printing amount can be set
It is zero, i.e., when the film surplus of label 201 is more than zero, the film surplus of label 201 is just effective;The film of label 201 remains
When surplus is equal to zero, the film surplus of label 201 is invalid.
In the present embodiment, the amount of film and the number that the surplus of film is film, i.e. the film number of label 201 are big
When zero, represent that film cartridge 20 also has film to be available for printing corresponding to label 201, the film number of label 201 is effective;Label
When 201 film number is equal to zero, represent that film has run out in film cartridge 20 corresponding to label 201, the film of label 201
Number is invalid, can not continue to print.Threshold value printing amount both could be arranged to zero, can also be arranged in other embodiments big
In zero integer, such as five, then when the film number of label 201 is more than five, its film number be it is effective, it is otherwise invalid.
In another embodiment of the present invention, the amount of film and the length that the surplus of film is film, i.e. label 201
Film length when being more than zero, represent that film cartridge 20 also has film to be available for printing corresponding to label 201, the film of label 201 length
Spend to be effective;When the film length of label 201 is equal to zero, represent that film has run out in film cartridge 20 corresponding to label 201, marks
The film length of label 201 is invalid, can not continue to print.Threshold value printing amount both could be arranged to length zero, in other embodiment
In can also be set greater than zero length value, such as 100cm, then when the film length of label 201 is more than 100cm, its glue
Leaf length be it is effective, it is otherwise invalid.Those skilled in the art according to being actually needed, can set the surplus of film as film
Number either length or other amount.
Authorization module 105 is connected to sequence number judge module 102 and surplus judge module 103, and its effect is to judge glue
Whether the label of piece cylinder is available.In the Serial No. of the authorization labels 201 of sequence number judge module 102, effective and surplus judges
When the film surplus of the authorization labels 201 of module 103 is effective, authorization module 105 authorizes the label 201 of film cartridge 20 to be can
With printer control system 30 can control printer normal print, and printer control system 30 can also set printing automatically
Parameter, including media type, size, printing model, maintenance parameters etc., the print parameters that printer control system 30 is set automatically
It can be the default value under the usual working condition of printer;Sequence number judge module 102 judge the Serial No. of label 201 without
When effect or surplus judge module 103 judge the film surplus of label 201 to be invalid, authorization module 105 judges film cartridge
20 label 201 is unavailable, and 30 uncontrollable printer of printer control system continues to print, when film surplus is zero
When, label self-destruction, this label is forever unavailable.That is, sequence number information and film the surplus letter only stored in the label
In the case of breath is all effective, it is available that could assert the label, it is allowed to which printer implements printing;In sequence number information and
In the case that one of film surplus information is undesirable, printer can not all continue to print, and printer can prompt to cure
Business personnel, notice that replacing meets defined film cartridge.
During printing, the film quantity of film cartridge 20 gradually decreases, and numeration module 104 is used to use in printer
During the film of the predetermined amount of film cartridge 20, the film surplus information that is recorded in erasable label 201, so as to by label 201
Film surplus is updated to reduce the value after predetermined amount, i.e., during work, numeration module 104 is simultaneously by current film
Real surplus amount information write-in label 201.The module 104 that counts can directly carry out information transfer so as to erasable with label 201
The film surplus of label 201, can also by read-write card unit 101 with label 201 carry out information transfer so as to it is erasable its
Film surplus.Specifically, such as the film of current film cylinder 20 can print 50 pictures, and label 201 stores initial
Film surplus is 50, and predetermined amount is arranged to 10, then printer has often printed 10 pictures, and numeration module 104 is just wiped
The film surplus of label 201 is write, after first 10 have been beaten, numeration module 104 is by the film surplus of label 201 by 50
Erasable is 40, and after second 10 have been beaten, the film surplus of label 201 is changed into 30, by that analogy, until label 201
Film surplus be finally reduced to zero.
In another embodiment of the present invention, the amount of film and the surplus of film are calculated with length, current film
The film of cylinder 20 can print 2900cm picture, and the initial film surplus that label 201 stores is 2900cm, predetermined amount
100cm is arranged to, then printer often prints 100cm picture (film for having used 100cm), and numeration module 104 is just erasable
The film surplus of label 201, after first 100cm has been beaten, numeration module 104 by the film surplus of label 201 by
2900cm erasable is 2800cm, and after second 100cm has been beaten, the film surplus of label 201 is changed into 2700cm, by that analogy,
Until the film surplus of label 201 is finally reduced to zero.
After the film surplus of label 201 is less than threshold value printing amount, the label 201 just can no longer be used, and also just anticipate
The film that taste the film cartridge 20 corresponding to the label 201 has run out.
Therefore, when used in user being the film cartridge newly dispatched from the factory, the sequence number of label is usually effective, and film is remaining
Amount is also effective, and the film cartridge can be normally used for printing.During the film cartridge being previously used before being used in user,
The sequence number of label generally remains as effectively, but film surplus both may be effective, it is also possible to insufficient.When user is made
When not being the film cartridge of the manufacturer production required by printer, read-write card unit 101 can not be read, and such film cartridge is then
It can not be used by the printer.
Sequence number and film surplus are stored in the information in label 201, and the quantity of film is exactly it in film cartridge 20
The film surplus of label 201, label 201 are attached to the inwall of film cartridge 20 under normal circumstances.Sequence number judge module 102 is logical
The sequence number for crossing label 201 carries out algorithm decryption, can parse the relevant information of the film corresponding to the sequence number, such as glue
Piece consumptive material (material information of film), film manufacturer, film size, clip pin, authority checking data etc. are write, only in label
201 sequence number or the information that is parsed by it can with current printer successful match in the case of, sequence number judges mould
Block 102 just assert that the Serial No. of label 201 is effective.It is an object of the invention to promote user to be beaten using what corresponding manufacturer manufactured
Print machine with the film that the manufacturer produces is supporting is printed, so as to avoid printer from causing to print from different manufacturers with film
The problem of effect difference.Therefore, if user uses the film of other producers, due to no label, then printer authoring system 10
It can not authorize, will be unable to print.After having been used due to a film, the film surplus of its label is zero, then user can not
Label as reusing, which is attached in other film cartridges, to be printed.
It will be appreciated by those skilled in the art that the mandate current label of the present invention represents to be available:Printer authoring system
Judge that current label and its film cartridge meet the requirement of printer, printer will carry out follow-up printing using current film cylinder
Work.
Medical worker is continuing with current film cartridge in the case of current film cylinder is effective;In current film cylinder
In the case of invalid, then the film cartridge for meeting printer requirement is changed, so as to avoid using the film not matched with printer
To print picture.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to assert this hair
Bright specific implementation is confined to these explanations.For general technical staff of the technical field of the invention, do not taking off
On the premise of from present inventive concept, some simple deduction or replace can also be made.