Summary of the invention
In view of this, the present invention provides a kind of method and apparatus of realizing device activation, has practiced thrift the equipment finite storage space, has guaranteed can be activated when equipment need activate.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
A kind of method that realizes device activation, this method comprises:
A, device id is added random number encryption generate equipment DID; Wherein, said equipment DID is used to obtain active coding;
B, obtaining active coding, is legal if confirm the active coding that obtains, and then uses the said active coding that obtains to carry out the normal operating condition of device activation and access arrangement; Wherein, said active coding comprises equipment DID;
If it is out of date that C carries out the active coding of device activation,, and generate new equipment DID, execution in step B with active coding deletion out of date; Otherwise, keep normal operating condition.
A kind of equipment of realizing device activation, this equipment comprises: generation unit, acquiring unit, activation unit and processing unit;
Said generation unit links to each other with said acquiring unit, is used for that device id is added random number encryption and generates equipment DID; Wherein, said equipment DID is used to obtain active coding;
Said acquiring unit links to each other with said activation unit, is used to obtain active coding, and wherein, said active coding comprises equipment DID;
Said activation unit links to each other with said processing unit, if be used for confirming that the active coding that obtains is legal, then use the said active coding that obtains to carry out device activation and get into self the place equipment normal operating condition;
Said processing unit if it is out of date to carry out the active coding of device activation, with active coding deletion out of date, and starts said generation unit and generates new equipment DID; Otherwise, make self place equipment maintenance normal operating condition.
In sum, the present invention adds random number through device id and generates equipment DID, and obtains active coding through the equipment DID that generates; If it is out of date to carry out the active coding of device activation, then deletion and can generate new equipment DID immediately, so the present invention practiced thrift the equipment finite storage space, has guaranteed can be activated when equipment need activate.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, scheme according to the invention is done to specify further.
Referring to Fig. 1, Fig. 1 is a present device Activiation method process flow diagram.Concrete steps are following:
Step 101 is added random number encryption with device id and is generated equipment unique identification sign indicating number (DID); Wherein, equipment DID is used to obtain active coding.
Step 102 is obtained active coding, is legal if confirm the active coding that obtains, and then uses the active coding that obtains to carry out the normal operating condition of device activation and access arrangement; Wherein, active coding comprises equipment DID.
If it is out of date that step 103 is carried out the active coding of device activation,, and generate new equipment DID, execution in step 102 with active coding deletion out of date.
If it is not out of date that step 104 is carried out the active coding of device activation, equipment keeps normal operating condition.
Referring to accompanying drawing, specify present device Activiation method processing procedure, and prevent that expired active coding from reusing the process of carrying out device activation.Referring to Fig. 2, Fig. 2 realizes the device activation method flow diagram in the specific embodiment of the invention.Concrete steps are following:
Step 201, equipment are added random number encryption with device id and are generated equipment DID.
Random number in this step can be added on the front of device id, also can be at the back, and figure place also can be set according to actual needs.Equipment DID is directly related with device id, but owing to add random number, each equipment DID that generates is different.
Step 202, equipment obtains active coding, and wherein, this active coding that obtains comprises capable field, equipment DID and relational check code.
In this step, the active coding that equipment obtains is the active coding that obtains through DID and authorization code slave unit provider through some networked devices.The capable field that comprises in equipment DID and the active coding of the relational check code that active coding comprises for this active coding of application is passed through and is obtained after the computations.The computations of here mentioning is consistent with existing implementation, as long as equipment is known this encryption computing method too.This relational check code is unique related with equipment DID.
The process of obtaining active coding is consistent with prior art, and just the active coding that obtains of prior art is directly relevant with device id, and present embodiment is directly to be correlated with equipment DID, and equipment DID directly is correlated with device id.
Step 203 if equipment confirms that through the verification relational check code active coding that obtains is legal, is used the active coding activated equipment and the access arrangement normal operating condition that obtain.
Because active coding comprises capable field, equipment DID and relational check code, so equipment can resolve this active coding when obtaining active coding, obtain the capable field and the relational check code of active coding respectively.
Method of calibration in this step is: equipment obtains local verification related sign indicating number with the capable field of resolving the active coding acquisition through corresponding computations with equipment DID; Compare with the relational check code of resolving the active coding acquisition then; If the same, confirm that then this active coding is legal; Otherwise, confirm that this active coding is illegal, can not activated equipment.
When using the active coding activated equipment, can active coding be stored in the storage space of equipment.
Step 204, equipment is significant notation with the active coding set of successful activated equipment, simultaneously this active coding is carried out the countdown function.
Step 205 judges whether the active coding that carries out device activation is out of date, if, execution in step 206; Otherwise, execution in step 209.
Step 206 is an invalid markers with active coding set.
If the active coding of activated equipment is out of date, need to use new active coding to carry out device activation, then obtain new active coding, and carry out legitimate verification with step 202 slave unit provider, use legal active coding activated equipment.
If do not obtain legal active coding through step 202 this moment; But come activated equipment once more with used expired active coding; Then when using this active coding out of date to carry out device activation,, then can not use this active coding activated equipment out of date if when finding the active coding consistent with this active coding out of date in equipment this locality; Otherwise whether this active coding that newly obtains of verification is legal.Method of calibration also is whether the relational check code that comprises with the capable field computations relational check code coactivation sign indicating number that equipment DID coactivation sign indicating number comprises is consistent.
Step 207, whether with active coding deletion out of date, if, execution in step 208; Otherwise execution in step 209.
In equipment, whenever only have an equipment DID, also can be referred to as current device DID, when whether verification will use the active coding of activated equipment legal, DID calculated through current device.Can expired active coding be deleted immediately in this step, also can store several expired active codings and delete together.When not deleting expired active coding, can not generate new equipment DID.
Step 208 generates new equipment DID, execution in step 202.
It is constant to generate the new method of establishing DID, is equally device id to be added random number generate through encrypting, and the DID that comprises in the therefore newly-generated equipment DID and the active coding out of date of deletion scarcely together.
Step 209, equipment is in normal operating condition, and is out of date up to the active coding that uses activated equipment, execution in step 206.
Above-mentioned flow process is obtained the process of authorization code for the equipment DID slave unit provider that generates through authorization code and equipment.The authorization code that obtains so all is legal generally on form; If but the active coding of setting up voluntarily, perhaps the active coding of other equipment is exactly illegal on form; For the same prior art of this situation processing of the present invention; Confirm on form that at first this active coding is inconsistent with the legal active coding of equipment, then such active coding can not carry out device activation, also can not carry out verification again and confirm.Here this situation is repeated no more.
In the time of need carrying out device activation, also might reuse active coding out of date and carry out device activation, referring to Fig. 3, Fig. 3 prevents active coding out of date activated equipment process flow diagram once more in the specific embodiment of the invention.Concrete steps are following:
Step 301, equipment use active coding out of date to carry out device activation.
Step 302, equipment is searched in this locality, determines whether to exist the active coding identical with this active coding out of date, if, execution in step 304; Otherwise, execution in step 303.
For active coding out of date, if also not deletion when reusing, then can find this active coding out of date in equipment this locality again.
For active coding out of date, if delete, reuse again and carry out device activation constantly, when then searching, there be not the active coding identical with this active coding out of date in equipment this locality.
The capable field that step 303, equipment comprise equipment DID and active coding out of date obtains relational check code through computations, and the relational check code that relational check code that this calculates and active coding out of date comprise is inconsistent.Execution in step 304.
In this step non-existent expired active coding in the equipment is further determined whether to be used for device activation.Owing to when deleting expired active coding, can generate new equipment DID immediately, therefore compare with the relational check code of new equipment DID calculating and the relational check code that active coding out of date comprises, scarcely can be consistent.
Step 304, equipment can not be used this active coding activated equipment out of date.
Said process can be found out and prevented well in the present embodiment that active coding out of date from carrying out the problem of device activation once more.No matter whether active coding out of date is in time deleted, can be prevented that all active coding out of date from carrying out device activation.
Based on above-mentioned same inventive concept, the present invention also proposes a kind of equipment of realizing device activation.Referring to Fig. 4, Fig. 4 is a device structure synoptic diagram of realizing device activation in the specific embodiment of the invention.This equipment comprises: generation unit 401, acquiring unit 402, activation unit 403 and processing unit 404.
Generation unit 401 links to each other with acquiring unit, is used for that device id is added random number encryption and generates equipment DID; Wherein, equipment DID is used to obtain active coding.
Acquiring unit 402 links to each other with activation unit 403, is used to obtain active coding, and wherein, active coding comprises equipment DID.
Activate unit 403, link to each other,, then use the active coding that obtains to carry out device activation and get into the normal operating condition that self belongs to equipment if be used for confirming that the active coding that obtains is legal with processing unit 404.
Processing unit 404 if it is out of date to be used for carrying out the active coding of device activation, with active coding deletion out of date, and starts generation unit 401 and generates new equipment DID; Otherwise, make self place equipment maintenance normal operating condition.
Preferably,
The active coding that acquiring unit 402 obtains also comprises capable field and relational check code; Relational check code is that equipment DID and capable field obtain through computations.
Preferably,
Activate unit 403; The capable field that is used for the active coding that equipment DID and acquiring unit 402 obtain is comprised obtains relational check code through computations; The relational check code that comprises in the relational check code that calculates and the active coding that obtains is compared; If comparative result is consistent, confirm that then the active coding that obtains is legal.
Preferably,
Activate unit 403, when being further used for using active coding out of date to carry out device activation,, then can not use this active coding activated equipment out of date if find and the identical active coding of this active coding sign indicating number out of date at self place equipment; If do not find the active coding identical with this active coding out of date; Then the capable field that comprises in equipment DID and this active coding out of date is obtained relational check code through computations; The relational check code that comprises in the relational check code that calculates and this active coding out of date is compared; Comparative result is inconsistent, then can not use this active coding activated equipment out of date.
The unit of the foregoing description can be integrated in one, and also can separate deployment; A unit can be merged into, also a plurality of subelements can be further split into.
In sum; The present invention is through the incidence relation between device id, equipment DID, the active coding; Through the verification relational check code, guaranteed under can not be, the legal active coding of theoretical form to be accomplished on freestanding environment, to carry out confirming of legitimacy through the environment of On line inspection.Because equipment DID is variable; Can the active coding out of date on the equipment be deleted, and generate new equipment DID immediately, participate in verification through newly-generated equipment DID; Prevent active coding reconditioning equipment out of date and that deleted; Therefore when reaching the active coding function of expection, practiced thrift the storage space of equipment, and then guaranteed normally to activate when equipment need activate.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.