The ID management method of photon key
Technical field
The present invention relates to the gate control system field, relate in particular to a kind of ID 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 MP.Existing gate control system adopts magnetic identification, RF identification, fingerprint recognition, these four kinds of technology of password identification to realize mostly.Magnetic identification and RF identification are meant the magnetic material that in gate inhibition's card adding is specific and the radio frequency chip of signal specific respectively; Through gate inhibition's receiving end said magnetic medium or radiofrequency signal are discerned and to be unblanked; Yet; It exists demagnetization, Radio frequency interference (RFI), be easy to problem such as intercepting and capturing, thereby is not easy to use and poor stability.Fingerprint recognition and iris recognition technology are meant and utilize biological identification technology; The biological characteristic of target is carried out a kind of technology of judging after discriminance analysis is handled, yet fingerprint is stayed easily on the equipment; Cause potential safety hazard easily, and be inconvenient to dispose and equipment cost higher.
For addressing the above 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, and said photon key is used to launch the light signal that contains encrypted message, and said light-operated door lock is resolved said light signal after receiving said light signal; If said light signal contains unlocking cipher, then control door lock and open.In order to strengthen the security of gate control system, need be assigned ID at said gate inhibition's photon key usually, gate control system is through information such as the door opening times of said this photon key of ID record and the times of opening the door when opening the door.Yet,, therefore also can't carry out empowerment management to the user because the user did not have ID to bind with it before taking photon key or photon key.Therefore; How to utilize effective I D management method that all available ID are carried out a dynamic management;, subscription client carries out the operation that an ID distributes before need authorizing; And guarantee distribution and the recovery of ID, also will guarantee the uniqueness of ID in this process simultaneously, become problem demanding prompt solution.
Summary of the invention
Technical matters to be solved by this invention is, to the deficiency of above-mentioned prior art, proposes a kind of ID management method of photon key, and this ID management method can effectively improve the ID efficiency of managing, also can guarantee ID uniqueness and security in use.
The technical solution adopted for the present invention to solve the technical problems is, proposes a kind of ID management method of photon key, and it comprises application ID step:
S11, user are through photon key accessing database and file an application the ID request;
S12, database are handled the application ID request that receives, and processing result information are returned to the photon key;
S13, photon ID management software is on the key resolved said result, if said processing result information contains available ID, then this ID is written to said photon on the key.
Further, said application ID step comprises that also step: S14, database move to said ID the unavailable table of ID from the ID free list.
Further, the present invention also comprises recovery ID step:
S21, keeper are through database access photon key and obtain the ID of said photon key;
S22, database move to the ID identical with said photon key in the ID free list from the unavailable table of ID.
Further, the present invention also comprises and reports the loss the ID step:
S31, user propose to report the loss the ID request through the photon key to database;
The ID management software of S32, database is resolved the ID request of reporting the loss that receives;
S33, database move to the ID of the said photon key that needs are reported the loss the ID forbidden list from the unavailable table of ID.
Further, said photon key comprises the light signal transmitter module and is provided with the USB module of USB interface that said light signal transmitter module is used to launch the light signal that contains unlocking cipher; Said USB module is used to obtain the electric energy of usb host, and is said light signal transmitter module power supply.
Further, said USB module also is provided with the power supply adaptor interface, and said power supply adaptor interface is used for being connected with power supply adaptor.
Further, said USB module comprises said USB interface, power supply adaptor interface, power management chip and rechargeable battery, and said power management chip is used to monitor said USB interface, power supply adaptor interface and said rechargeable battery is carried out management of charging and discharging.
Further, said photon key also comprises signal conversion module, and said signal conversion module comprises that Mini USB interface and USB change serial port chip, and said Mini USB interface is used for being connected with external interface, and just signal sends said USB commentaries on classics serial port chip to; Said USB changes serial port chip and is used for the conversion of signals that said Mini USB interface biography is come is become serial signal, and carries out alternately with the light signal transmitter module.
Further, said light signal transmitter module comprises microprocessor unit, driver element and luminescence unit, and said microprocessor unit is used to control said driver element, makes the said emitted of said drive unit drives contain the light signal of unlocking cipher.
Further, said luminescence unit is a light emitting diode.
In sum; ID management method of the present invention through application ID, reclaim ID and report the loss three steps of ID the ID of photon key is managed; Store corresponding ID through the corresponding form of database simultaneously; Utilize database to come that ID is carried out dynamic management and can effectively improve the ID efficiency of managing, also can guarantee ID uniqueness and security in use.
Description of drawings
Fig. 1 is the process flow diagram of application ID of the present invention.
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 light signal transmitter 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 accompanying drawing and specific embodiment the present invention is done further description:
See also Fig. 1, the ID management method of photon key of the present invention comprises application ID step, reclaims the ID step and report the loss the ID step, and wherein, said application ID step comprises the steps:
S11, user are through photon key accessing database and file an application the ID request;
S12, database are handled the application ID request that receives, and processing result information are returned to the photon key;
S13, photon ID management software is on the key resolved said result, if said processing result information contains available ID, then this ID is written to said photon on the key.
S14, database move to said ID the unavailable table of ID from the ID free list.
Said ID can be the sequence that letter, numeral etc. are formed, and behind application ID, each photon key all has unique, different with other photon key ID; Among the said step S12, said processing result information can directly be ID or through forming ID number information after the artificial.
See also Fig. 2, said recovery ID step of the present invention comprises the steps:
S21, keeper are through database access photon key and obtain the ID of said photon key;
S22, database move to the ID identical with said photon key in the ID free list from the unavailable table of ID.
The present invention through reclaiming said ID, can realize the purpose of recycling working in an office when leaving company, has avoided the wasting of resources.
See also Fig. 3, the said ID of reporting the loss step of the present invention comprises the steps:
S31, user propose to report the loss the ID request through the photon key to database;
The ID management software of S32, database is resolved the ID request of reporting the loss that receives;
S33, database move to the ID of the said photon key that needs are reported the loss the ID forbidden list from the unavailable table of ID.
The present invention is through the said ID step of reporting the loss, thereby can realize the security of ID.
See also Fig. 4 to Fig. 6, photon key of the present invention roughly becomes lip pencil, and it comprises light signal transmitter module 1, USB module 2 and signal conversion module 3.Said light signal transmitter module 1 is used to launch the light signal that contains unlocking cipher; Said light signal transmitter module 1 comprises storage unit 11, microprocessor unit 12, driver element 13 and luminescence unit 14, and said storage unit 11 is used to store the ID of unlocking cipher and photon key; Said microprocessor unit 12 is used to control said driver element 13, makes said driver element 13 drive the light signal that said luminescence unit 14 emissions contain unlocking cipher and ID.In the present embodiment, said luminescence unit 14 is light emitting diodes.
Said USB module 2 is used to obtain the electric energy of usb host, and is said light signal transmitter module 1 power supply, and it comprises USB interface 21, power supply adaptor interface 22, power management chip 23 and rechargeable battery 24.Said USB interface 21 is used for directly being connected with usb host or being connected with usb host through data line, and said usb host can be the equipment that desktop computer or notebook computer etc. have USB interface 21.Said power supply adaptor interface 22 is connected with said power management chip 23, and is used for being connected with power supply adaptor.Can be the present invention's charging or power supply through power supply adaptor, thereby can further facilitate.Said power management chip 23 is used to monitor said USB interface 21, power supply adaptor interface 22 and said rechargeable battery 24 is carried out management of charging and discharging.Said rechargeable battery 24 is lithium battery, ickel-cadmium cell or Ni-MH battery.Therefore, through said USB module 2 is set, thereby can carry out said rechargeable battery 24 chargings, said rechargeable battery 24 be that said light signal transmitter module 1 is supplied power.
In the present embodiment, the model of said power management chip 23 is bq24090, and the pin 7 of said power management chip 23 is connected with the Host chip, and said Host chip is electrically connected with said USB interface 21 each other.Be electrically connected said rechargeable battery 24 between the pin 9 of said power management chip 23 and the pin 10.The positive pole of said pin 10 and said rechargeable battery 24 is electrically connected to said light signal transmitter module 1 through the P1 port.The pin 1 of said power management chip 23, pin 2 and pin 4 are electrically connected with an end of capacitor C 1, resistance R 1 and resistance R 2 respectively, and the other end of said capacitor C 1, resistance R 1 and resistance R 2 is electrically connected to the grounding pin GND of said USB interface 21.Be electrically connected with mutual resistance R of connecting 3 and light emitting diode D1 between the pin 5 of said power management chip 23 and the pin 10; Be electrically connected with mutual resistance R of connecting 4 and charging indicator light D2 between said pin 10 and the pin 8; Said pin 10 also is connected with capacitor C 2, and the other end of said capacitor C 2 is electrically connected to the grounding pin GND of said USB interface 21.
See also Fig. 6, said signal conversion module 3 comprises that Mini USB interface 31 and USB change serial port chip 32, and said Mini USB interface 31 is used for being connected with external interface, and just signal sends said USB commentaries on classics serial port chip 32 to.Said USB changes serial port chip 32 and is used for the conversion of signals that said Mini USB interface 31 biographies are come is become serial signal, and carries out alternately with light signal transmitter module 1.In the present embodiment, the model of said USB commentaries on classics serial port chip 32 is PL-2303HX.The pin 1 that said USB changes serial port chip 32 is electrically connected respectively with the I/O pin TXD and the RXD of said microprocessor unit 12 with pin 5, and said USB changes the pin 4 of serial port chip 32 and the voltage that pin 8 meets 3.3V and 5.0V respectively.Said signal conversion module 3 comprises that also resistance R 14 arrives C14 and crystal oscillator U12 to resistance R 18, capacitor C 12, and this repeats no more their annexation again.Through said signal conversion module 3 is set, thereby can download password in the storer of said light signal transmitter module 1, conveniently change unlocking cipher at any time, avoid the use of complicated burning equipment, practice thrift cost through computer.Can the ID management software of photon key be installed and carry out the information payment through said Mini USB interface with database.
In sum; ID management method of the present invention through application ID, reclaim ID and report the loss three steps of ID the ID of photon key is managed; Store corresponding ID through the corresponding form of database simultaneously; Utilize database to come that ID is carried out dynamic management and can effectively improve the ID efficiency of managing, also can guarantee ID uniqueness and security in use.
Combine accompanying drawing that embodiments of the invention are described above, but the present invention is not limited to above-mentioned embodiment, above-mentioned embodiment only is schematic; Rather than it is restrictive; Those of ordinary skill in the art not breaking away under the scope situation that aim of the present invention and claim protect, also can make a lot of forms under enlightenment of the present invention; For example; Said photon key is a mobile phone, and the photon key carries out information interaction etc. through wireless mode and database, and these all belong within the protection of the present invention.