A kind of digital cipher lockTechnical field
This utility model relates to a kind of digital cipher lock, belongs to coded lock technology field.
Background technology
Coded lock is the one of lock, and during unlatching is a series of numeral or symbol, and coded lock can be divided into: mechanical code lock, digital cipher lock etc..The password of coded lock is the most all to arrange and non-real combination.Partial password lock only uses a rotating disk, the several video discs in lock or cam rotation;Also some coded lock is to rotate one group of several thumb wheel circle being carved with numeral, directly drives the frame for movement within lock.
The password limited bits of traditional mechanical code lock and keying type electronic permutation lock, uses the method repeatedly attempted just can crack, and its safety cannot meet growing use requirement, especially in the use occasion that some safety requirements degree are higher.
At present, along with the development of circuit integration technique, single-chip microcomputer powerful and cheap, it is obtained extensively application.Utilize singlechip technology to carry out pin design lock and become a kind of mentality of designing of cipher lock.Such as, Chinese patent literature CN204740647U discloses a kind of single-chip microcomputer coded lock, including MCU microprocessor, 4*4 input through keyboard module, display module, voice module and WIFI transceiver module, the output signal of described 4*4 input through keyboard module is transferred to MCU microprocessor, MCU microprocessor respectively with display module, voice module communicates with WIFI transceiver module bidirectional transmit-receive, when 4*4 input through keyboard module input numeral, the MCU microprocessor positive miscount to input numeral, display module display input password, when input error, password is re-entered in voice module prompting, if input code error reaches three times, information is dealt into householder's terminal by WIFI transceiver module.Although this utility model uses singlechip technology to be designed coded lock, single-chip microcomputer therefrom plays positive miscount and display, the control function of voice broadcast judging numeral, but this coded lock still uses input through keyboard password, user needs to remember password, convenient for memory, general limited bits, cracks easily by the method repeatedly soundd out, and its security performance is had a greatly reduced quality.
Chinese patent literature CN2931696Y provides a kind of electronic lock cylinder and special lock remover, this electronic lock cylinder is the structure of electromechanical, lock core has motor and CPU single-chip microcomputer lock core circuit, motor is connected with lock core inner part, and circuit is connected with motor by wire, is turned on lock remover by communication contact or interface line;Special lock remover housing has unlocking cipher to protect numeral keys; having unique identifier chip and single chip circuit, CPU downloads and writes function program, and is powered by 3V battery by VCC and GND interface; the communication contact of lock remover circuit directly turns on lock core communication contact, it is achieved powers with lock core and communicates.Although the technical scheme of this patent designs based on single-chip microcomputer, but single-chip microcomputer played is design and the memory function of lock core, and security performance has much room for improvement.
Utility model content
For the deficiencies in the prior art, this utility model provides a kind of digital cipher lock, and this digital cipher lock utilizes single-chip microcomputer to be unlocked the generation of password, and password position can reach tens place, it is virtually impossible to cracks, thus is greatly improved the safety of digital cipher lock.
The technical solution of the utility model is as follows:
A kind of digital cipher lock, including single-chip microcomputer, crystal oscillator, power supply, decoding slot and circuit board, described single-chip microcomputer, crystal oscillator, power supply, decoding slot are respectively provided with on circuit boards, wherein, some inputs of single-chip microcomputer, output interface are electrically connected by the signalling channel of circuit board with decoding slot, and on single-chip microcomputer, two I/O ports two ends with outside snap close respectively are connected.
Preferably, the perfecting of described circuit board is brushed with multiple signalling channel, and one end of signalling channel is positioned at decoding slot.
Preferably, described digital cipher lock also includes buzzer, and buzzer is arranged on circuit boards, and one end is connected with power supply, and the other end is connected with an I/O port of single-chip microcomputer.
Preferably, described digital cipher lock also includes decoding key, and the shape of decoding key adapts with decoding slot, is used for opening digital cipher lock when decoding key and inserting in decoding slot.
Preferably, described decoding key is the circuit board being printed with multiple signalling channel, each signalling channel respectively with decoding slot in signalling channel one_to_one corresponding, decoding key in several signalling channels be interconnected and with ground turn on.The advantage of this design is, the shape of decoding key adapts with decoding slot, and size just may be inserted in decoding slot, and the mutual UNICOM of several signalling channels in decoding key, remaining signalling channel is unsettled;Which signalling channel is connected to the ground, and i.e. corresponds to unlocking pin.Decoding key insert decoding slot after, decoding key each signalling channel connect with the I/O port of single-chip microcomputer, the port level of ground connection be low, unsettled passage be high level, unlocking pin input single-chip microcomputer unblock.Which signalling channel ground connection the encrypted message of decoding key is exactly, and this decoding key is the circuit board being printed with signalling channel, and thus without by electromagnetic interference, performance is highly stable.The part plastic-packaged that each signalling channel is connected to ground, the external world cannot read encrypted message.If cipher key packed part is destroyed or loses, can revise the program of single-chip microcomputer, reset password position, decoding key originally lost efficacy, and needs basis newly to set password and again makes decoding key, i.e. selects different signalling channel ground connection.Owing to encrypted message is sealed up for safekeeping in key, it is not required to user memory cipher;During use, decoding key is inserted decoding slot, simple to operate.Owing to there is no the position of other input password, it is impossible to decoded by test of many times;Further, since password position is more than 20, the probability decoded by the method for test of many times is zero, and the safety of coded lock is the highest.
Preferably, decoding key in several signalling channels be interconnected and with ground conducting one end be packaged arrange.This design is advantageous in that, owing to which signalling channel ground connection the encrypted message of decoding key is exactly, a really bar printing has the circuit board of multiple signalling channel, several signalling channels and ground UNICOM, after earthing position is packed, decoding key will not as magnetic card stolen brush, substantially increase safety.
Preferably, described single-chip microcomputer uses AT89C2051 type singlechip chip.The singlechip chip cost performance of this model is high, low in energy consumption, utilizes 5V battery to drive, and the singlechip chip of this model has 15 input/output ports simultaneously, and the level height of each port is arbitrarily set by program by singlechip chip.
Preferably, described digital cipher lock is placed in tapered end.
It is further preferred that described tapered end includes bicycle tapered end, electric motor car tapered end, antitheft door tapered end and condom tapered end.
The manufacture method of a kind of digital cipher lock, comprises the steps,
First, write Single Chip Microcomputer (SCM) program and write single-chip microcomputer, then single-chip microcomputer, buzzer, crystal oscillator, power supply, decoding slot are welded on circuit board according to the position being pre-designed successively;Then, it is energized to single-chip microcomputer, single-chip microcomputer then auto-initiation, and it is loaded into the program write, start to patrol and examine work;Finally, circuit board is inserted in the tapered end of lockset, the two ends of lockset snap close are connected with NO position and the check bit of single-chip microcomputer by wire, and decoding slot is exposed tapered end, in order to follow-up insertion decoding key unlocking.
The operation principle of this utility model digital cipher lock is: the core of this coded lock is singlechip chip, utilize 15 input/output ports of single-chip microcomputer, coordinate 10 pseudo-input/output ports again, the level state number that interface produces can be made more than 1,000 ten thousand, i.e. can produce 1,000 ten thousand kinds of passwords, thus the method for exploration cannot be used to crack;When after this coded lock locking, snap close is conductor, and now the NO position of single-chip microcomputer is turned on by snap close, and the check bit level position of UNICOM is identical therewith, now single-chip microcomputer is set to illegal state the position controlling buzzer automatically, and buzzer is kept silent;When decoding key inserts coded lock, and the level of single-chip microcomputer each I/O port is identical with the password position preset, and single-chip microcomputer can be set to illegal state the control bit of buzzer equally, now, solving opening lock catch, buzzer also will not pipe;If coded lock is not inserted into decoding key, disconnect snap close by force, the most stolen unblank, NO position is different from the level of check bit, then single-chip microcomputer is set to electronegative potential the I/O position being connected with buzzer, and buzzer call is reported to the police, even if now snap close being re-closed, coded lock also may proceed to the warning that pipes, until inserting correct decoding key, buzzer just can stop piping.
The beneficial effects of the utility model are:
This utility model coded lock is compared for traditional mechanical code lock needs complicated mechanical component, its small volume, simple in construction, and construction package is easy to get and easy to assembly, the most simple to operate is hardly damaged;Compare traditional keying type electronic permutation lock, this utility model coded lock is without key board, and its structure is the simplest, it is to avoid carries out cracking of coded lock by the method repeatedly soundd out, substantially increases the safety of coded lock.It addition, the piece price used in this utility model coded lock is cheap, greatly reducing the manufacturing cost of digital cipher lock, and coded lock volume of the present utility model is little, can be placed in multiple tapered end, range of application is wider.
Accompanying drawing explanation
Fig. 1 is the structural representation of AT89C2051 type singlechip chip;
Fig. 2 is the structure principle chart of this utility model digital cipher lock;
Fig. 3 is to decode the structural representation of key after encapsulation;
Fig. 4 is the annexation schematic diagram of each assembly in digital cipher lock;
Wherein: 1, decoding key;2, singlechip chip;3, buzzer;4, snap close;5, circuit board;6, crystal oscillator;7, decoding slot;8, wire.
Detailed description of the invention
Below by embodiment and combine accompanying drawing this utility model is described further, but it is not limited to this.
Embodiment 1:
The present embodiment provides a kind of digital cipher lock, this digital cipher lock generates password by single-chip microcomputer, its building block includes single-chip microcomputer, crystal oscillator 6, power supply, buzzer 3, decoding slot 7 and one piece of circuit board 5, single-chip microcomputer, crystal oscillator 6, decoding slot 7 is welded on circuit board 5, power supply, buzzer 3 is also disposed on circuit board 5, wherein, some inputs of single-chip microcomputer, output interface is electrically connected by the signalling channel of circuit board 5 with decoding slot 7, any two I/O port on single-chip microcomputer two ends with outside snap close respectively are connected, in the present embodiment, using wire 8 as snap close 4, realize opening or closing of coded lock in order to illustrating how.
Wherein, single-chip microcomputer uses AT89C2051 type singlechip chip 2.The singlechip chip cost performance of this model is high, low in energy consumption, utilizes 5V battery to drive, and the singlechip chip of this model has 15 input/output ports simultaneously, and the level height of each port is arbitrarily set by program by singlechip chip.Crystal oscillator 6 selects JDL6MHz crystal oscillator.Power supply is two panels button cell, and button cell is arranged on battery holder, and battery holder is welded on circuit board 5.
Wherein, the perfecting of circuit board 5 is brushed with 26 signalling channels, and one end of signalling channel is positioned at decoding slot 7.
This digital cipher lock also includes decoding key 1, and decoding key 1 adapts with decoding slot 7.Decoding key 1 is the circuit board being printed with multiple signalling channel, and the mutual UNICOM of the most several signalling channels is also connected to ground, the password position that the position correspondence of UNICOM's signalling channel is preset.By the circuit board of printing signal passage being inserted in decoding slot, the signalling channel of decoding mutual UNICOM on the key is corresponding with the password position that single-chip microcomputer in decoding slot sets, the coded lock that the pattern matched by this kind of decoding key and decoding slot is manufactured, owing to password is by single-chip microcomputer stochastic generation, eliminate numeric keypad, cannot crack by the way of repeatedly attempting button, substantially increase the safety of its lock.
Which signalling channel ground connection the encrypted message of decoding key is exactly, and really one bar printing has a circuit board of multiple signalling channel, wherein several signalling channels and ground UNICOM, after earthing position is packed, decoding key will not as magnetic card stolen brush.
The core of this coded lock is singlechip chip, utilize 15 input/output ports of single-chip microcomputer, then coordinate 10 pseudo-input/output ports, the level state number that interface produces can be made more than 1,000 ten thousand, i.e. can produce 1,000 ten thousand kinds of passwords, thus the method for exploration cannot be used to crack;When after this coded lock locking, snap close is conductor, and now the NO position of single-chip microcomputer is turned on by snap close, and the check bit level position of UNICOM is identical therewith, now single-chip microcomputer is set to illegal state the position controlling buzzer automatically, and buzzer is kept silent;When decoding key inserts coded lock, and the level of single-chip microcomputer each I/O port is identical with the password position preset, and single-chip microcomputer can be set to illegal state the control bit of buzzer equally, now, solving opening lock catch, buzzer also will not pipe;If coded lock is not inserted into decoding key, disconnect snap close by force, the most stolen unblank, NO position is different from the level of check bit, then single-chip microcomputer is set to electronegative potential the I/O position being connected with buzzer, and buzzer call is reported to the police, even if now snap close being re-closed, coded lock also may proceed to the warning that pipes, until inserting correct decoding key, buzzer just can stop piping.
Embodiment 2:
A kind of digital cipher lock, as described in Example 1, its difference is structure, is placed in tapered end by the digital cipher lock described in embodiment 1, can be applicable to multiple occasion, such as: in bicycle tapered end, electric motor car tapered end, antitheft door tapered end or condom tapered end.
Embodiment 3:
The manufacture method of a kind of digital cipher lock, comprises the steps,
According to coded lock operation principle design and printed circuit board, circuit board typesetting should be around singlechip chip, rational deployment as far as possible, reduce occupied area, in order to follow-up can by this cryptographic system load tapered end.
First, write Single Chip Microcomputer (SCM) program and write singlechip chip 2, then singlechip chip 2, buzzer 3, crystal oscillator 6, power supply, decoding slot 7 are welded on circuit board 5 according to the position being pre-designed successively;Then, it is energized to single-chip microcomputer, single-chip microcomputer then auto-initiation, and it is loaded into the program write, start to patrol and examine work;Finally, circuit board 5 is inserted in the tapered end of lockset, the two ends of lockset snap close are connected with NO position and the check bit of single-chip microcomputer by wire, and decoding slot 7 is exposed tapered end, in order to follow-up insertion decoding key unlocking.