The ID allocation management method of photon key
Technical field
The present invention relates to gate control system field, particularly relate to a kind of ID allocation management method of photon key.
Background technology
Gate control system belongs to the category of public safety system, is widely used a kind of high-tech safety installations.Existing gate control system adopts magnetic identification, radio-frequency (RF) identification, fingerprint recognition, these four kinds of technology of password identification to realize mostly.Magnetic identification and radio-frequency (RF) identification refer to the radio frequency chip adding specific magnetic material and signal specific in access card respectively, carry out identification to unblank to described magnetic medium or radiofrequency signal by gate inhibition's receiving end, but, there is demagnetization, Radio frequency interference (RFI), be easy to the problems such as intercepting and capturing in it, is thus not easy to use and poor stability.Fingerprint recognition and iris recognition technology refer to and utilize biological identification technology, a kind of technology judged after discriminance analysis process is carried out to the biological characteristic of target, but fingerprint is easily stayed on equipment, easily cause potential safety hazard, and be inconvenient to configure and equipment cost higher.
For solving the problem, light-operated gate control system is arisen at the historic moment, light-operated gate control system generally includes photon key and light-operated door lock, described photon key is for launching the light signal containing encrypted message, after described light-operated door lock receives described light signal, described light signal is resolved, if described light signal contains unlocking cipher, then control door lock and open.In order to strengthen the security of gate control system, usually need to be assigned ID in described gate inhibition's photon key, during enabling, gate control system records the information such as the door opening times of this photon key and opening time by described ID.But, because user did not have ID to bind with it before taking photon key or photon key, therefore also empowerment management cannot be carried out to user.Therefore, effective ID management method how is utilized to carry out a dynamic management to all available ID, the operation that an ID distributes was carried out before subscription client needs to authorize, and ensure the allocate and recycle of ID, also to guarantee ID uniqueness in the process simultaneously, become problem demanding prompt solution.
Summary of the invention
Technical matters to be solved by this invention is, for above-mentioned the deficiencies in the prior art, propose a kind of ID allocation management method of photon key, this ID management method effectively can improve the efficiency of ID management, also can guarantee ID uniqueness in use and security.
The technical solution adopted for the present invention to solve the technical problems is, proposes a kind of ID allocation management method of photon key, and it comprises application ID step:
After S11, photon key are connected with computer, the ID management software of computer automatically detects described photon key and whether distributes ID, and testing result is informed user;
If the described testing result of S12 is described photon key do not distribute ID, then user clicks the distribution ID button on ID management software, can obtain an available ID and distribute to described photon key, and described ID is write described photon key from database.
Further, described application ID step also comprises step: described ID moves to the unavailable table of ID from ID free list by S13, database.
Further, the present invention also comprises recovery ID step:
S21, keeper are by database access photon key and obtain the ID of described photon key;
The ID identical with described photon key moves in ID free list by S22, database from the unavailable table of ID.
Further, the present invention also comprises and reports the loss ID step:
S31, user propose to report the loss ID request to database by photon key;
The ID management software of S32, database is resolved the ID request of reporting the loss received;
S33, database move to needing the ID of the described photon key of reporting the loss ID forbidden list from the unavailable table of ID.
Further, described photon key comprises optical emitting module and is provided with the USB module of USB interface, and described optical emitting module is for launching the light signal containing unlocking cipher; Described USB module for obtaining the electric energy of usb host, and is powered for described optical emitting module.
Further, described USB module is also provided with power adaptor interface, and described power adaptor interface is used for being connected with power supply adaptor.
Further, described USB module comprises described USB interface, power adaptor interface, power management chip and rechargeable battery, and described power management chip is for monitoring described USB interface, power adaptor interface and carrying out management of charging and discharging to described rechargeable battery.
Further, described photon key also comprises signal conversion module, and described signal conversion module comprises Mini USB interface and USB turns serial port chip, and described Mini USB interface is used for being connected with external interface, and just signal sends described USB to and turns serial port chip; Described USB turns serial port chip and converts serial signal to for described Mini USB interface is passed the signal of coming, and carries out alternately with optical emitting module.
Further, described optical emitting module comprises microprocessor unit, driver element and luminescence unit, and described microprocessor unit, for controlling described driver element, makes luminescence unit described in described drive unit drives launch the light signal containing unlocking cipher.
Further, described luminescence unit is light emitting diode.
In sum, ID management method of the present invention automatically detects photon key by computer and whether distributes ID, distribute again, undertaken storing corresponding ID by the corresponding form of database simultaneously, utilize database to carry out to ID the efficiency that dynamic management effectively can improve ID management, also can guarantee ID uniqueness in use and security.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the present patent application ID.
Fig. 2 is the process flow diagram that the present invention reclaims ID.
Fig. 3 is the process flow diagram that the present invention reports the loss ID.
Fig. 4 is the theory diagram of optical emitting module of the present invention.
Fig. 5 is the circuit diagram of USB module of the present invention.
Fig. 6 is the circuit diagram of signal conversion module of the present invention.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention will be further described:
Refer to Fig. 1, the ID allocation management method of photon key of the present invention comprises application ID step, reclaims ID step and report the loss ID step, and wherein, described application ID step comprises the steps:
After S11, photon key are connected with computer, the ID management software of computer automatically detects described photon key and whether distributes ID, and testing result is informed user;
If the described testing result of S12 is described photon key do not distribute ID, then user clicks the distribution ID button on ID management software, can obtain an available ID and distribute to described photon key, and described ID is write described photon key from database.
Described ID moves to the unavailable table of ID from ID free list by S13, database.
Described ID can be the sequence of the composition such as alphabetical, digital, and after application ID, each photon key has unique, different from other photon key ID(identity code); In described step S11, after described key is connected with computer, the information of described computer also automatic-prompting successful connection; In described step S12, if described testing result is described photon key be assigned with ID, then the same photon key of computer controlled can not be reallocated the information of ID.In addition, when described computer distributes described ID to described photon key, first described ID is encrypted, then writes in described photon key.
Refer to Fig. 2, described recovery ID step of the present invention comprises the steps:
S21, keeper are by database access photon key and obtain the ID of described photon key;
The ID identical with described photon key moves in ID free list by S22, database from the unavailable table of ID.
The present invention work in an office leave company time, by reclaiming described ID, the object of recycling can be realized, avoids the wasting of resources.
Refer to Fig. 3, report the loss ID step described in of the present invention and comprise the steps:
S31, user propose to report the loss ID request to database by photon key;
The ID management software of S32, database is resolved the ID request of reporting the loss received;
S33, database move to needing the ID of the described photon key of reporting the loss ID forbidden list from the unavailable table of ID.
Report the loss ID step described in the present invention passes through, thus the security of ID can be realized.
Refer to Fig. 4 to Fig. 6, photon key of the present invention roughly becomes lip pencil, and it comprises optical emitting module 1, USB module 2 and signal conversion module 3.Described optical emitting module 1 is for launching the light signal containing unlocking cipher, described optical emitting module 1 comprises storage unit 11, microprocessor unit 12, driver element 13 and luminescence unit 14, and described storage unit 11 is for storing the ID of unlocking cipher and photon key; Described microprocessor unit 12, for controlling described driver element 13, makes described driver element 13 drive described luminescence unit 14 to launch the light signal containing unlocking cipher and ID.In the present embodiment, described luminescence unit 14 is light emitting diodes.
Described USB module 2 for obtaining the electric energy of usb host, and is powered for described optical emitting module 1, and it comprises USB interface 21, power adaptor interface 22, power management chip 23 and rechargeable battery 24.Described USB interface 21 is for being directly connected with usb host or being connected with usb host by data line, and described usb host can be the equipment that desktop computer or notebook computer etc. have USB interface 21.Described power adaptor interface 22 is connected with described power management chip 23, and for being connected with power supply adaptor.Be that the present invention charges or powers by power supply adaptor, thus can provide convenient further.Described power management chip 23 is for monitoring described USB interface 21, power adaptor interface 22 and carrying out management of charging and discharging to described rechargeable battery 24.Described rechargeable battery 24 is lithium battery, ickel-cadmium cell or Ni-MH battery.Therefore, by arranging described USB module 2, thus can carry out charging to described rechargeable battery 24, described rechargeable battery 24 is powered for described optical emitting module 1.
In the present embodiment, the model of described power management chip 23 is bq24090, and the pin 7 of described power management chip 23 is connected with Host chip, and described Host chip and described USB interface 21 are electrically connected to each other.The pin 9 of described power management chip 23 be electrically connected described rechargeable battery 24 between pin 10.The positive pole of described pin 10 and described rechargeable battery 24 is electrically connected to described optical emitting module 1 by P1 port.The pin 1 of described power management chip 23, pin 2 and pin 4 are electrically connected with one end of electric capacity C1, resistance R1 and resistance R2 respectively, and the other end of described electric capacity C1, resistance R1 and resistance R2 is electrically connected to the grounding pin GND of described USB interface 21.The pin 5 of described power management chip 23 be electrically connected with the resistance R3 and light emitting diode D1 that mutually connect between pin 10, described pin 10 be electrically connected with the resistance R4 and charging indicator light D2 that mutually connect between pin 8, described pin 10 is also connected with electric capacity C2, and the other end of described electric capacity C2 is electrically connected to the grounding pin GND of described USB interface 21.
Refer to Fig. 6, described signal conversion module 3 comprises Mini USB interface 31 and USB turns serial port chip 32, and described Mini USB interface 31 is for being connected with external interface, and just signal sends described USB to and turns serial port chip 32.Described USB turns serial port chip 32 and converts serial signal to for described Mini USB interface 31 is passed the signal of coming, and carries out alternately with optical emitting module 1.In the present embodiment, described USB turns the model of serial port chip 32 is PL-2303HX.The pin 1 that described USB turns serial port chip 32 is electrically connected with I/O pin TXD and RXD of described microprocessor unit 12 respectively with pin 5, and the pin 4 that described USB turns serial port chip 32 and pin 8 connect the voltage of 3.3V and 5.0V respectively.Described signal conversion module 3 also comprises resistance R14 to resistance R18, electric capacity C12 to C14 and crystal oscillator U12, and this repeats no more their annexation again.By arranging described signal conversion module 3, thus downloading password in the storer of described optical emitting module 1 by computer, conveniently changing unlocking cipher at any time, avoid using complicated recording device, saved cost.By described Mini USB interface, the ID management software of photon key be installed and carry out information payment with database.
In sum, ID management method of the present invention by application ID, reclaim ID and report the loss ID tri-IDs of step to photon key and manage, computer automatically detects photon key and whether distributes ID, distribute again, undertaken storing corresponding ID by the corresponding form of database simultaneously, utilize database to carry out to ID the efficiency that dynamic management effectively can improve ID management, also can guarantee ID uniqueness in use and security.
By reference to the accompanying drawings embodiments of the invention are described above; but the present invention is not limited to above-mentioned embodiment; above-mentioned embodiment is only schematic; instead of it is restrictive; those of ordinary skill in the art is under enlightenment of the present invention; do not departing under the ambit that present inventive concept and claim protect; also can make a lot of form; such as; described photon key is mobile phone; photon key wirelessly carries out information interaction etc. with database, and these all belong within protection of the present invention.