CN101638958B - Coded lock based on singlechip - Google Patents
Coded lock based on singlechip Download PDFInfo
- Publication number
- CN101638958B CN101638958B CN2009103060662A CN200910306066A CN101638958B CN 101638958 B CN101638958 B CN 101638958B CN 2009103060662 A CN2009103060662 A CN 2009103060662A CN 200910306066 A CN200910306066 A CN 200910306066A CN 101638958 B CN101638958 B CN 101638958B
- Authority
- CN
- China
- Prior art keywords
- button
- coded lock
- push
- indicating area
- scm based
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Lock And Its Accessories (AREA)
Abstract
The invention relates to the field of cipher devices, which discloses a coded lock based on a singlechip. The coded lock is characterized by comprising a mechanical executive mechanism, a panel mechanism, a main control unit and an executive circuit, wherein the mechanical executive mechanism, the panel mechanism and the main control unit are connected with the executive circuit. The invention is extremely convenient for use by adopting manual control input, makes up for the bug of cipher trace exposure by adopting an idiomatical mechanical structure design, can have multiple cipher combinations to strengthen the cipher randomness, and provides input functions of alarming, switching modes and limiting errors.
Description
Technical field
The present invention relates to field of cipher devices, particularly a kind of SCM Based coded lock.
Background technology
Common coded lock is the release with the corresponding current potential that changes several fixedly buttons generally; Thereby obtain the effect of antitheft, still, because the uniqueness of essential key; After repeatedly using, cause enter key mechanical loss to a certain degree; Thereby the lawless person can break a code through repeatedly souning out, thereby causes coded lock antitheft failure, causes client's loss.
Summary of the invention
In order to overcome above-mentioned weak point of the prior art, the present invention proposes a kind of SCM Based coded lock, thereby has solved the cipher anti theft problem.
The present invention realizes through following technical scheme: design, a kind of SCM Based coded lock of manufacturing comprise mechanical actuating mechanism, facing, main control unit and executive circuit; Said mechanical actuating mechanism, facing, main control unit are connected with said executive circuit.
The present invention is further improved to be that said facing comprises outside plate, push-button unit, key position indicating area, pulley pull handle, track plate and display unit; Said key position indicating area, display unit and pulley pull handle are positioned on the said outside plate; Said track plate is positioned at said outside plate; Said pulley pull handle is positioned at below, said key position indicating area; Said push-button unit is positioned at the inside of said facing and corresponding with said button indicating area.
The present invention is further improved to be that said main control unit is a singlechip chip.
The present invention is further improved to be that said display unit comprises light emitting diode.
The present invention is further improved to be, said button indicating area comprises digital indicating area at least, the numeral of said digital indicating area indication 0 to 9; Said push-button unit comprises digital keys and operation push-button; Said digital keys comprises that digital keys 0 is to digital keys 9; Said operation push-button comprises acknowledgement key and reset key.
The present invention is further improved to be that said push-button unit is on the same perpendicular; Said push-button unit is arranged in the plate seam of said track plate.
The present invention is further improved to be that said digital keys in the vertical direction is from top to bottom by arranging from small to large; Said operation push-button is positioned at the below of said digital keys; Designation number in the said digital indicating area is docile and obedient preface and is arranged on said outside plate.
The present invention is further improved to be that said pulley pull handle can spur up and down and can touch with said push-button unit; Be connected with the spring part that can let it reset on the said pulley pull handle; Said spring part one end is fixed in the said facing, and its other end is connected with said pulley pull handle.
The present invention is further improved to be that said singlechip chip is AT89C1051, AT89C2051, GMS1051 or GMS2051; Establish software program in the said singlechip chip.
The present invention is further improved to be that said light emitting diode is made up of red light emitting diodes and green LED; Said light emitting diode is used for prompting that whether coded lock is normally opened.
The invention has the beneficial effects as follows: the present invention adopts manual input, and it is extremely convenient to use; Adopt the characteristic Design of Mechanical Structure, remedy the leak that the password person's movements and expression expose; Can establish multiple password combination, strengthen cipher random property; The input function of alarm, pattern switching, limit erroneous is provided simultaneously.
Description of drawings
Fig. 1 is the connection side schematic view figure that the present invention is based on the coded lock of single-chip microcomputer.
Fig. 2 is the connection front view sketch map that the present invention is based on the coded lock of single-chip microcomputer.
Fig. 3 is the cipher lock circuit connection layout that the present invention is based on single-chip microcomputer.
The specific embodiment
Below in conjunction with accompanying drawing, the present invention is done further description.
A kind of SCM Based coded lock comprises mechanical actuating mechanism, facing, main control unit and executive circuit; Said mechanical actuating mechanism, facing, main control unit are connected with said executive circuit.
Said facing comprises outside plate, push-button unit, key position indicating area, pulley pull handle 4, track plate 5 and display unit; Said key position indicating area, display unit and pulley pull handle 4 are positioned on the said outside plate; Said track plate 5 is positioned at said outside plate; Said pulley pull handle 4 is positioned at below, said key position indicating area; Said push-button unit is positioned at the inside of said facing and corresponding with said button indicating area.
Said main control unit is a singlechip chip.
Said display unit comprises light emitting diode 1.
Said button indicating area comprises digital indicating area at least, the numeral of said digital indicating area indication 0 to 9; Said push-button unit comprises digital keys 2 and operation push-button 3; Said digital keys 2 comprises that digital keys 0 is to digital keys 9; Said operation push-button 3 comprises acknowledgement key and reset key.
Said push-button unit is on the same perpendicular; Said push-button unit is arranged in the plate seam of said track plate.
Said digital keys 2 in the vertical directions are from top to bottom by arranging from small to large; Said operation push-button 3 is positioned at the below of said digital keys 2; Designation number in the said digital indicating area is docile and obedient preface and is arranged on said outside plate.
Said pulley pull handle 4 can spur up and down and can touch with said push-button unit; Said pulley pull handle 4 is through showing corresponding digital prompt information with said push-button unit touching in said button indicating area; It is actual key position in the corresponding lock of key position marked region; Therefore when the pulley pull handle moves on to certain key label, promptly show this once touching of button completion.Be connected with on the said pulley pull handle 4 and can let its spring part that resets 6; Said spring part 6 one ends are fixed in the said facing, and its other end is connected with said pulley pull handle 4.
Said singlechip chip is AT89C1051, AT89C2051, GMS1051 or GMS2051; Establish software program in the said singlechip chip.
Said light emitting diode is made up of red light emitting diodes and green LED; Said light emitting diode is used for prompting that whether coded lock is normally opened.
In a kind of preferred embodiment, the Appearance Panel is made up of 11 buttons, 1 elastic force pulley pull handle, a track plate, two light emitting diodes.11 buttons are vertical shape and are arranged in the plate seam that track pulls, and first is an acknowledgement key from lower to upper, and second to the tenth is respectively 0 ~ 9 numerical key.The pulley pull handle can spur up and down, be positioned at acknowledgement key below, can touch button during pulling and obtain data, after receiving extension spring stress to act on stretching, can return rope automatically.The track plate then is the movement locus that is used for fixing pull bar.Because all buttons all are on the same perpendicular; If in the time of will moving to pull bar on the password key; Must pass through the several buttons below this button; The mechanical loss that pulley causes just can feed through to a plurality of buttons, and its vestige is only limited to the maximum value in the password number, and other passwords are difficult to follow the trail of.The input mode that this just button involves pattern has accomplished to cover the mechanical loss area, stop the tracking that concrete password vestige is distributed.
Inner at lock, in the sliding handle moving process, when the sliding handle contact contacted with key contacts, this key was closed.As shown in Figure 2; On the facing, actual key position in the corresponding lock of key position marked region, for example; Digital key position is indicated 12 corresponding digital keys 0-9 in the numeral indicating area; The record key position is indicated 13 corresponding record keys, therefore when the pulley pull handle moves on to certain key label, promptly shows this once touching of button completion.
The control circuit schematic diagram is as shown in Figure 3, and circuit is made up of singlechip chip, motor, buzzer and various gadget commonly used.The selection of singlechip chip is according to general requirement, can choose the AT89C1051/2051 or the GMS1051/2051 of super quality and competitive price, do not need Add-In memory and data storage and other widening parts, and it is little to have a volume, convenient installation.
Acknowledgement key is connected on the port of single-chip microcomputer INT1, and 0 ~ 9 numerical key unification is connected on the port of INT0.When pulley moves, through confirming and numerical key that each numerical key of pulley touching all can change the level of INT0 port, triggers the interruption of an INT0, writes down interruption times one time.Change the level of this port when pulley touches acknowledgement key, trigger INT1 and interrupt, handled as password input single-chip microcomputer, accomplish the input of a password at this moment writing down all INT0 interruption times that pulley moves up and down triggering just now.If password all input is correct, then P0.0, P2.6 input are given high level, light green diode, the positive turn-off door of motor.Otherwise P0.1, P1.0 port are given high level, light red diode, buzzer call warning.In addition, after opening the door, can press reset key and let the motor counter-rotating reset, data will be reset simultaneously, and single-chip microcomputer is reworked.
Arrangement by button can find out that the password of this single-chip microcomputer coded lock release is not 0 ~ 9 digital code, but the INT0 interruption times that 0 ~ 9 numerical key triggers.Therefore the unlocking pin of this coded lock is made up of the hexadecimal form of this interruption times.The effect of each numerical key mainly is an interruption times of writing down an INT0, and for example a password is 3, and 3. pulley is pulled to button, then passes through button 0 ~ 3, and pulley returns and passes through button 2 ~ 0 again behind the rope and just can get back to initial point, has then write down 7 times and has interrupted number.Register data adds 1 during each the interruption, and then data accumulation has arrived 07H, and this hexadecimal number is only real corresponding button password value 3., after acknowledgement key is imported the single-chip microcomputer processing, with this input content as password.Show like following table:
The numbering of numerical key: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
Corresponding interruption number: | 1 time | 3 |
5 times | 7 times | 9 times | 11 |
13 |
15 |
17 |
19 times |
Password in tabling look-up: | 01H | 03H | 05H | 07H | 09H | 0BH | 0DH | 0FH | 0F2H | 0F4H |
The chip program of this single-chip microcomputer adopts modularized design, comprises main program module, INT0 interruption subroutine, INT1 interruption subroutine, pattern switching/alarm subprogram.After the single-chip microcomputer operation, system at first carries out data initialization in main program, element address, register assignment etc. for example are set, by the time data becomes wait password input state after finishing.If when having numerical key to trigger INT0 to interrupt, count to get the number of times that the required triggering of password of input is interrupted synchronously through register data, can use the INC instruction to accomplish.In the INT1 interrupt routine that acknowledgement key triggers; Program is through being provided with input checking, the inspection of wrong mark, the data of tabling look-up comparison, importing these four limited circulations that continuitys instruction is judged that finish; Realized preventing to input the basic anti-theft feature of data for empty, the anti-program redirect of divulging a secret, password check, inspection input number of times; And can use complete operations such as instruction such as JZ, CJNE, MOVC, DJNZ respectively; Shorten the content of instruction greatly, can also realize multiple password combination with the inspection instruction through the interpolation data of tabling look-up simultaneously, strengthen the random coefficient of coded lock password.In addition; Warning system according to circumstances optionally carries out alarm in short-term, short time and can import/and alarm when growing, all inputs of this wait of stopping to import are for a long time accomplished and the program of not carrying out any work; Limit the time that password is soundd out to a certain extent, improved safety.
In the time of in the practical application, this coded lock password figure place can be set 1~10 password according to customer requirements, and every span is 0~9.The user can set up and revise password on their own; If the unlocking cipher of keying in is not exclusively correct, then 5 seconds of buzzer warning, note to remind other people; Password useless is imported in the wrong 3 less important warnings of unlocking cipher 5 minutes during the warning, repeatedly sound out password with anti-theft; The unlocking cipher of keying in is entirely true just can unblank, and 1 second prompt tone will be arranged when unblanking; Coded lock (being on the facing) in appearance only allows 0-9 totally 10 password position indications, 2 luminous tubes, 1 pulley pull handle.Initial point is pulled to and the password value indicating positions from the bottom to rely on sliding handle, and the back sliding handle resilience initial point of loosing one's grip is accomplished a password input.Because do not have button on the panel, the button on the circuit diagram is represented key contacts, inner at lock, in the sliding handle moving process, when the sliding handle contact contacted with key contacts, this key was closed, then showed the numeral that this key is corresponding on the panel, otherwise key breaks off; Simultaneously, reserve battery is arranged in the lock, reset key is positioned at the door lock inboard, has only inner electrification reset or reset key to press and could be provided with or revise password afterwards.
Specify password setting and unblank step through example below.
Password setting:
Electrification reset, system gets into the password setting program, supposes 4 passwords, and the password setting process is following:
By reset key, buzzer rings two, prompting input password.
Be pulled to the corresponding indicating positions of password 4 to sliding handle from the bottom, letting go then makes sliding handle under spring action, get back to initial point.
So analogize, be pulled to the indicating positions corresponding to sliding handle from the bottom, let go then with password 5.
Be pulled to the indicating positions corresponding to sliding handle from the bottom, let go then with password 7.
Be pulled to the indicating positions corresponding to sliding handle from the bottom, let go then with password 3.
Green light flicker 5 seconds, the password input finishes, and password 4573 is kept in the single-chip microcomputer.
Unlock operation:
Suppose that password is: 4573
Be pulled to the indicating positions corresponding with password 4 to sliding handle from the bottom, letting go then makes sliding handle under spring action, get back to initial point.
So analogize, be pulled to the indicating positions corresponding to sliding handle from the bottom, let go then with password 5.
Be pulled to the indicating positions corresponding to sliding handle from the bottom, let go then with password 7.
Be pulled to the indicating positions corresponding to sliding handle from the bottom, let go then with password 3.5, the green light flicker is 5 seconds, and buzzer rang for 1 second, and the prompt cipher input is correct, and motor apparatus starts, and realizes opening the door.
Input by mistake if any password in four cryptographic processes in input, then when four passwords all import finish after, blinking red lamp 5 seconds, in 5 seconds of buzzer warning, password is re-entered in prompting, door is tightly locked.
Password useless is imported in the wrong 3 less important warnings of unlocking cipher 5 minutes during the warning.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.
Claims (9)
1. a SCM Based coded lock is characterized in that: comprise mechanical actuating mechanism, facing, main control unit and executive circuit; Said mechanical actuating mechanism, facing, main control unit are connected with said executive circuit, pulley pull handle (4), track plate (5) and display unit that said facing comprises outside plate, push-button unit, key position indicating area, can spur up and down and can touch with said push-button unit; Said key position indicating area, display unit and pulley pull handle (4) are positioned on the said outside plate; Said track plate (5) is positioned at said outside plate; Said pulley pull handle (4) is positioned at below, said key position indicating area; Said push-button unit is positioned at the inside of said facing and corresponding with said button indicating area.
2. according to the said SCM Based coded lock of claim 1, it is characterized in that: said main control unit is a singlechip chip.
3. according to the said SCM Based coded lock of claim 1, it is characterized in that: said display unit comprises light emitting diode (1).
4. according to claim 1 or 2 said SCM Based coded locks, it is characterized in that: said button indicating area comprises digital indicating area at least, the numeral of said digital indicating area indication 0 to 9; Said push-button unit comprises digital keys (2) and operation push-button (3); Said digital keys (2) comprises that digital keys 0 is to digital keys 9; Said operation push-button (3) comprises acknowledgement key and reset key.
5. according to the said SCM Based coded lock of claim 4, it is characterized in that: said push-button unit is on the same perpendicular; Said push-button unit is arranged in the plate seam of said track plate.
6. according to the said SCM Based coded lock of claim 5, it is characterized in that: said digital keys (2) in the vertical direction is from top to bottom by arranging from small to large; Said operation push-button (3) is positioned at the below of said digital keys (2); Designation number in the said digital indicating area is docile and obedient preface and is arranged on said outside plate.
7. according to the said SCM Based coded lock of claim 6, it is characterized in that: be connected with on the said pulley pull handle (4) and can let its spring part that resets (6); Said spring part (6) one ends are fixed in the said facing, and its other end is connected with said pulley pull handle (4).
8. according to the said SCM Based coded lock of claim 7, it is characterized in that: said singlechip chip is AT89C1051, AT89C2051, GMS1051 or GMS2051; Establish software program in the said singlechip chip.
9. according to the said SCM Based coded lock of claim 3, it is characterized in that: said light emitting diode is made up of red light emitting diodes and green LED; Said light emitting diode is used for prompting that whether coded lock is normally opened.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103060662A CN101638958B (en) | 2009-08-25 | 2009-08-25 | Coded lock based on singlechip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103060662A CN101638958B (en) | 2009-08-25 | 2009-08-25 | Coded lock based on singlechip |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101638958A CN101638958A (en) | 2010-02-03 |
CN101638958B true CN101638958B (en) | 2012-05-30 |
Family
ID=41614114
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009103060662A Expired - Fee Related CN101638958B (en) | 2009-08-25 | 2009-08-25 | Coded lock based on singlechip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101638958B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521952A (en) * | 2011-12-22 | 2012-06-27 | 苏州巴米特信息科技有限公司 | Automatic alarming control circuit |
CN104346589B (en) * | 2013-08-01 | 2018-06-22 | 林玲 | A kind of password setting, unlocking system and method |
CN109308581A (en) * | 2018-09-25 | 2019-02-05 | 安徽灵图壹智能科技有限公司 | A kind of examination cloud platform system based on block chain |
CN110010241A (en) * | 2019-04-03 | 2019-07-12 | 温州康宁医院股份有限公司 | A kind of patient administration system that medical department uses |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0021670A1 (en) * | 1979-06-07 | 1981-01-07 | Bjoern Lyng | Code type lock especially for safes |
US4426862A (en) * | 1981-07-06 | 1984-01-24 | Iwasaki Engineering Co., Ltd. | Electronic locking device |
CN1217413A (en) * | 1997-11-19 | 1999-05-26 | 浙江师范大学 | Electronic puzzle lock |
CN2908708Y (en) * | 2005-08-10 | 2007-06-06 | 刘德国 | Key lock separated electronic trick lock |
CN201141300Y (en) * | 2007-12-21 | 2008-10-29 | 天津华云自控股份有限公司 | Electronic trick lock for single-chip control |
CN201502240U (en) * | 2009-08-25 | 2010-06-09 | 深圳职业技术学院 | Coded lock based on single chip microcomputer |
-
2009
- 2009-08-25 CN CN2009103060662A patent/CN101638958B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0021670A1 (en) * | 1979-06-07 | 1981-01-07 | Bjoern Lyng | Code type lock especially for safes |
US4426862A (en) * | 1981-07-06 | 1984-01-24 | Iwasaki Engineering Co., Ltd. | Electronic locking device |
CN1217413A (en) * | 1997-11-19 | 1999-05-26 | 浙江师范大学 | Electronic puzzle lock |
CN2908708Y (en) * | 2005-08-10 | 2007-06-06 | 刘德国 | Key lock separated electronic trick lock |
CN201141300Y (en) * | 2007-12-21 | 2008-10-29 | 天津华云自控股份有限公司 | Electronic trick lock for single-chip control |
CN201502240U (en) * | 2009-08-25 | 2010-06-09 | 深圳职业技术学院 | Coded lock based on single chip microcomputer |
Non-Patent Citations (1)
Title |
---|
董继成.一种新型安全的单片机密码锁.《电子技术》.2004,(第3期),59-61. * |
Also Published As
Publication number | Publication date |
---|---|
CN101638958A (en) | 2010-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101638958B (en) | Coded lock based on singlechip | |
US10223857B2 (en) | Keyless entry with visual rolling code display | |
US6600406B1 (en) | Electronic information key system | |
US3158317A (en) | Control device | |
CN107143214A (en) | A kind of intelligent touch screen password generating apparatus applied to electronic lock | |
US4103289A (en) | Calculator theft prevention device | |
US20020093488A1 (en) | Information entry device | |
EP0185723A1 (en) | Electronic lock and key | |
EP0147837A2 (en) | Password number inputting device with variable key reassignment | |
CN201502240U (en) | Coded lock based on single chip microcomputer | |
CN205158495U (en) | A control system for intelligence lock | |
CN105809778A (en) | One-chip microcomputer-based electronic coded lock design | |
CN203701748U (en) | Signature authorization and mechanical unlocking integrated type antitheft lock | |
CN106157411A (en) | A kind of electronic password lock | |
CN201297071Y (en) | Electronic lock based on double identification of identity and password | |
WO2006097769A1 (en) | Electronic lock | |
CN103093525B (en) | Safety control device and method of controlling security | |
KR20120121316A (en) | Touch doorlock operated by finger at LED Screen, Screen combined by number and alphabet | |
CN109255866A (en) | Non-contact gesture door lock assembly and implementation method | |
CN103310520A (en) | Intelligent electronic coded lock | |
JP2005317045A (en) | Information input device | |
JP4884879B2 (en) | PIN code input board | |
JPS5840227B2 (en) | Reizou Koshi Yuuchi Yuukanri System | |
TWI550170B (en) | Key identification device and key identification system | |
TW201839646A (en) | Password verification system and method of electronic lock to unlock when the two-word string matches with the preset password |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120530 Termination date: 20120825 |