CN106600797B - Motion graphics coded lock, server, shared system and its unlocking and blocking method - Google Patents

Motion graphics coded lock, server, shared system and its unlocking and blocking method Download PDF

Info

Publication number
CN106600797B
CN106600797B CN201710060952.6A CN201710060952A CN106600797B CN 106600797 B CN106600797 B CN 106600797B CN 201710060952 A CN201710060952 A CN 201710060952A CN 106600797 B CN106600797 B CN 106600797B
Authority
CN
China
Prior art keywords
coded lock
code
mcu
lock
unlocking
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.)
Active
Application number
CN201710060952.6A
Other languages
Chinese (zh)
Other versions
CN106600797A (en
Inventor
郝昱
关树锟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Trust Technology Co Ltd
Original Assignee
Beijing Trust Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Trust Technology Co Ltd filed Critical Beijing Trust Technology Co Ltd
Priority to CN201710060952.6A priority Critical patent/CN106600797B/en
Publication of CN106600797A publication Critical patent/CN106600797A/en
Application granted granted Critical
Publication of CN106600797B publication Critical patent/CN106600797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/00365Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks in combination with a wake-up circuit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/00388Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks code verification carried out according to the challenge/response method
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/0042Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed
    • G07C2009/00476Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed dynamically

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The present invention relates to a kind of motion graphics coded lock, server, shared system and its unlocking and blocking methods, including MCU, display screen, input equipment, electric lock and power supply unit;Wherein, it includes the graphic code for encrypting code-locked that MCU, which is used to generate, and switching working mode judges the current state of coded lock, and controls the operation of electric lock, input equipment, display screen;Display screen is used to show that the graphic code that MCU is generated and user to be latched prompt;Input equipment is used to carry out the input of wake up instruction and unlocking cipher;Electric lock is latched for being unlocked according to the control of MCU according to user's operation;Power supply unit is for being powered MCU, display screen, input equipment, electric lock.It does not need to carry out network communication between motion graphics coded lock and server during entire open and close lock, reduces power consumption, and reduce hardware cost;In addition, generating graphic code by MCU, the safety guarantee performance of shared system is further improved.

Description

Motion graphics coded lock, server, shared system and its unlocking and blocking method
Technical field
The present invention relates to coded lock technology field more particularly to a kind of motion graphics coded lock, server, use Dynamic Graph The shared system and its working method of shape coded lock.
Background technique
In actual life, the concept of shared bicycle has goed deep into people's life, and shared bicycle is sending to convenience for broad masses While, it also because the lockset on its system platform and device causes various drawbacks in real use there are loophole, and is total The popularization and operation for enjoying bicycle bring a series of trouble and obstacle, while also the equity of numerous users can be made by certain Damage.
The lockset of current shared bicycle is there are two kinds, and one is smart lock, another kind is mechanical lock.
The shared bicycle of smart lock is used at present, the process for using of smart lock is as follows: mobile phone barcode scanning → send to server Unlocking request → server to bicycle issue unlocking instruction → bicycle unlocking → user using bicycle → user's car locking → from It drives a vehicle and issues car locking message to server.
In the prior art, the smart lock being mounted on bicycle needs to install GPS module, transmits/receives the electricity such as letter module, antenna Sub-device, for sending the information such as position signal, this vehicle ID to server by wireless network, receiving to unlock from server refers to It enables, sends the information such as position signal, blocking to server.Needed in entire communication process realize at least twice bicycle with Network communication between server causes hardware cost raising, and power consumption is larger, needs to be arranged individually charging dress It sets, further increase cost.And communication is limited to network signal intensity influence, communication failure is easy, to shared bicycle Using causing inconvenience.
Process for using using the shared bicycle of mechanical lock is as follows: mobile phone barcode scanning → cell phone application requests password to server → server to mobile phone send password → bicycle mechanical lock input password → mechanical lock unlocking → user using bicycle → User's car locking.Due to the mechanical lock being mounted on bicycle, password is fixed, and is intended merely to car locking merely, does not have judgement With the function of vehicle beginning and end state.When using the bicycle with mechanical lock, user passes through related software to system platform Instruction is issued, the password of the bicycle mechanical lock is requested, after the password for obtaining system platform feedback, user is manually entered the bicycle Mechanical code lock, so that the bicycle be made to unlock.Car locking is then completely by the conscious of people.So there are problems, because The password of its each shared bicycle mechanical code lock is fixed, thus in use, the safety guarantee performance of lock is greatly Decline.In the use process of bicycle, coded lock and system cannot combine well, judge the beginning and end shape with vehicle State, privately owned so as to cause bus, part payment expense does not pay expense even, does not lock, at will uses, so that loses shows Shape.Which results in the equity of user and bicycle provider to be compromised, while lockset safety guarantee performance is also greatly lowered.
In conclusion sharing the lockset of bicycle in the prior art because leading to the use in some occasions there are the above problem In cannot play shared, safety guarantee effect well, while usage scenario is also further limited.Therefore, it is necessary to provide A kind of safety guarantee performance is good, can guarantee shared use, does not damage user and provides the lock of service enterprise's interests and use and is somebody's turn to do The shared system of lock.
Summary of the invention
In view of above-mentioned analysis, the present invention is intended to provide a kind of motion graphics coded lock, server, shared system and its opening Lock and blocking method, to solve the problems, such as that prior art safety guarantee is not high.
The purpose of the present invention is mainly achieved through the following technical solutions:
Provide a kind of motion graphics coded lock, including MCU, display screen, input equipment, electric lock and power supply unit.
It includes the graphic code for encrypting code-locked that MCU, which is used to generate, and switching working mode judges the current state of coded lock, And the operation of electric lock, input equipment, display screen is controlled;
Display screen is used to show that the graphic code that MCU is generated and user to be latched prompt;
Input equipment is used to carry out the input of wake up instruction and unlocking cipher;
Electric lock is used to be unlocked according to the control of MCU, and is latched according to user's operation;
Power supply unit is for being powered MCU, display screen, input equipment, electric lock.
The MCU includes suspend mode, high-speed mode, low-speed mode, and each mode corresponds to different power consumption;The power supply Unit is accordingly powered according to the operating mode of MCU.
The input equipment uses the keyboard being made of ten digital keys of 0-9, a START key.
The method that the MCU generates graphic code are as follows: MCU generates a random unlocking code PASSCODE, with storage inside Coded lock identification code UID is combined into UID+PASSCODE sequence, by UID+PASSCODE sequence, position instruction position, scrambling code group At plaintext sequence, plaintext sequence is encrypted, generates encryption code-locked, graphic code is further generated according to encryption code-locked.
The present invention also provides the server that a kind of linkage of motion graphics coded lock uses, the operation packet that server executes It includes:
Server receives the encryption code-locked that client end AP P transmission comes;
After being decoded to encryption code-locked, coded lock identification code UID therein and random unlocking code PASSCODE are obtained; Server searches coded lock identification code UID in the database and corresponds to the state that coded lock records in the database;
If recording the coded lock in database is blocking, random unlocking code PASSCODE is sent to client Then the UID state for corresponding to coded lock is set on lock status, and starts charging by APP;
If recording the coded lock in database is unlocking condition, the UID state for corresponding to coded lock is set as being latched State terminates charging.
The present invention also provides a kind of shared systems using motion graphics coded lock, comprising: client end AP P, right are wanted Server described in asking 5, and the common equipment equipped with motion graphics coded lock described in one of Claims 1 to 4;
Graphic code is resolved to and is added for scanning the graphic code shown on motion graphics coded lock by the client end AP P After close code-locked, it is sent to server;
For being decoded to the encryption code-locked received, lookup coded lock identification code UID corresponds to close the server The state of code lock sends the random unlocking code PASSCODE that decoding obtains and gives client end AP P, the state of coded lock is arranged, goes forward side by side Row charging;
The common equipment equipped with motion graphics coded lock, the motion graphics coded lock is for generating graphic code, receiving User's unlocking instruction, carries out the comparison of unlocking code, realizes electric locking at the unlocking code for judging electronic lock status, receiving user's input Lock and unlocking operation.
The present invention also provides a kind of method for unlocking using above-mentioned shared system, comprising the following steps:
After the MCU of motion graphics coded lock receives the wake up instruction of user's triggering, high speed mould is switched to by suspend mode Formula further judges that motion graphics coded lock is in blocking or unlocking condition;
When judging that motion graphics coded lock is in blocking, MCU generates a random unlocking code PASSCODE at random, Encryption code-locked is generated based on PASSCODE and coded lock identification code UID, encryption code-locked is further generated into graphic code, and show Show;
The APP of client scans and parses graphic code, obtains encryption code-locked and sends server;
Server receives the data packet comprising encryption code-locked, by decoding obtain coded lock identification code UID therein, with Machine unlocking code PASSCODE;
Server further searches the state that coded lock identification code UID corresponds to coded lock in the database;
If the password lock status of data-base recording is blocking, the random unlocking code that decoding is obtained PASSCODE is sent to client end AP P, and the state of the coded lock in database is then set on lock status, and starts to count Take;
The PASSCODE that client end AP P is received and display server transmits;
Motion graphics coded lock receives the PASSCODE of user's input, when generate in the PASSCODE and MCU of input with When machine unlocking code matches, then MCU controls electric lock and unlocks;
When PASSCODE is mismatched, then the prompt of password mistake is shown on a display screen.
The present invention also provides a kind of blocking methods using above-mentioned shared system, comprising the following steps:
After motion graphics coded lock receives the wake up instruction of user's input, MCU is transferred to high-speed mode, MCU by suspend mode Judge that motion graphics coded lock is in blocking or unlocking condition in high speed mode;
If motion graphics coded lock is in unlocking condition, MCU control display screen display reminding user is latched Mark;
If motion graphics coded lock is in blocking, MCU generates a random unlocking code PASSCODE, base at random Encryption code-locked is generated in PASSCODE and coded lock identification code UID, encryption code-locked is further generated into graphic code, and show;
After client end AP P is by scanning and parsing graphic code, encryption code-locked is obtained, and be sent to server;
Server receives the data packet comprising encryption code-locked, by decoding obtain coded lock identification code UID therein, with Machine unlocking code PASSCODE;
Server further searches the state that coded lock identification code UID corresponds to coded lock in the database;
If recording in database is unlocking condition, blocking is set by the UID state for corresponding to coded lock, and Terminate charging.
After terminating charging, the information that server uses this is transferred to client;Client receives server and passes The defeated data packet to come and display, so that user checks and delivery operation.
The present invention has the beneficial effect that:
The key of a wake-up MCU is only arranged in motion graphics coded lock by the present invention, is not provided with communication module and is equipped with more Kind operating mode, so that power consumption needed for motion graphics coded lock is extremely low, and saves cost.The interaction of server and client Design, can effectively solve user's not car locking after being finished vehicle, install caused by lockset only part payment expense, even not additional privately The problems such as paying and not being latched at will with vehicle, so that security performance greatly improves.
Other features and advantages of the present invention will illustrate in the following description, also, partial become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
Attached drawing is only used for showing the purpose of specific embodiment, and is not to be construed as limiting the invention, in entire attached drawing In, identical reference symbol indicates identical component.
Fig. 1 is the structural schematic diagram using the shared system of motion graphics coded lock;
Fig. 2 is the schematic diagram for being latched and being unlocked using shared system.
Specific embodiment
Specifically describing the preferred embodiment of the present invention with reference to the accompanying drawing, wherein attached drawing constitutes the application a part, and Together with embodiments of the present invention for illustrating the principle of the present invention.
Following embodiment is illustrated by taking bicycle as an example, but the present invention also can be suitably used for electric bicycle, tricycle, motor Any type of vehicle such as vehicle, automobile, other that can be applicable to need to lock are able to achieve shared common device and public Equipment.
A specific embodiment of the invention, discloses a kind of motion graphics coded lock, including MCU (micro-control unit), Display screen, input equipment, electric lock, power supply unit.
Wherein, it includes the graphic code for encrypting code-locked that the MCU, which is used to generate, and switching working mode judges coded lock Current state, and the operation of electric lock, input equipment, display screen is controlled.
In the present embodiment, MCU is equipped with 3 operating modes, specially suspend mode, high-speed mode, low-speed mode.By setting Different operating modes is set, so that motion graphics coded lock selects corresponding power modes according to workload, in workload hour The operating mode for selecting power consumption small, can save the power consumption of entire motion graphics coded lock in this way.
MCU default is in suspend mode, and the unlocking of the motion graphics coded lock of bicycle and latching process are required to the control of MCU Therefore system is unlocking and is requiring to wake up MCU before latching process, suspend mode is being switched to high-speed mode, to carry out figure The operations such as code generation.After generating graphic code, MCU is switched to low-speed mode from high-speed mode, and display screen is maintained to show and input Equipment scanning.
Specifically, it in the unlocking and latching process of the present embodiment, is sent out when receiving user by the START key of input equipment Wake up instruction out is transferred to high-speed mode by suspend mode, further judges that coded lock is currently at blocking and still unlocks State.
If MCU judges that electric lock is in blocking, MCU generates a random unlocking code PASSCODE, with inside The coded lock identification code UID group of storage is combined into a UID+PASSCODE sequence, UID+PASSCODE sequence is embedded into bright In literary sequence.In the plaintext sequence, other positions in addition to position instruction position and UID+PASSCODE sequence, by what is generated at random Scrambling code is filled up.MCU calls built-in encryption algorithm (such as 128 aes algorithms), encrypts to plaintext sequence, generates encryption code-locked, Graphic code (such as two dimensional code) is further generated according to encryption code-locked.MCU also controls display screen and lights, and shows figure on a display screen Shape code, the display time of graphic code is 15s in embodiment.After graphic code generation is finished and shown, MCU enters low-speed mode, dimension Display screen is held to show and input equipment scanning.Wherein, the UID (user identity prove, User Identification) is in advance It is stored in inside MCU, for uniquely distinguishing coded lock;The random unlocking code PASSCODE is to generate at random when using every time , it is difficult to it predicts and cracks, therefore safety guarantee is good.
User is scanned the graphic code using client, reports to server, and obtains random unlock from server Code PASSCODE.After user inputs the random unlocking code got by input equipment, random unlocking that MCU inputs user Code PASSCODE is compared with the random unlocking code PASSCODE that above-mentioned MCU is generated, and when the two is identical, then MCU control is electric The electronic lock tongue of dynamic lock is unlocked, and then MCU enters suspend mode.Preferably, if user is without behaviour in the 30s that graphic code is shown Make, then MCU is automatically into suspend mode, and closes display screen.
If MCU judges that electric lock is in unlocking condition, MCU controls the text or figure of display reminding locking on display screen Piece.User carries out manual block to coded lock according to prompt.User is after manual block, by the start for pressing input equipment Key, MCU judge whether electric lock is in blocking again, if being in blocking, MCU executes above-mentioned generation again The process of graphic code, and show the graphic code.User is scanned the graphic code again, and reports to server.
Specifically, MCU is currently at blocking or unlocking condition according to the judgement of the electronic latch bolt position of electric lock.It is excellent Choosing, the position of electronic lock tongue can be detected by position sensor, the position sensor can be the limit of pressure sensor Bit switch.
The display screen is used to show the graphic code and user's locking prompt that MCU is generated.Preferably, the display screen is The OLED display screen of 128 × 64 dot matrix.Preferably, the time for lighting display of the graphic code on a display screen is 15s.
The input equipment is used to carry out the input of wake up instruction and unlocking cipher.In the present embodiment, using by 0-9 ten The keyboard that digital keys, a START key form, START key are used to input the control instruction for waking up MCU, digital keys user Input is sent to the unlocking cipher (PASSCODE) on client end AP P by server, thus the unlocking cipher inputted according to user Notify that MCU unlocks by control electric lock.The START key can use other forms, wake up MCU function as long as realizing, all exist In protection scope of the present invention.Embodiment is pressed by START key, issues wake up instruction to MCU, but START key can be with The forms such as wake up instruction, such as touch, rotation are issued to MCU using other forms.The present invention is not limited to matching for above-mentioned keyboard It sets, as long as being able to achieve Password Input, the input equipment of wake up instruction input is within the scope of the invention.
Keyboard is that single-chip microcontroller often uses input equipment, when number of keys is more, in order to save the single-chip microcontrollers such as the port I/O money Source takes the mode of scanning generally to identify which key is pressed, i.e., is pressed by the movement of keyboard scan to determine Key position, and then obtain key assignments to start corresponding function program.
The electric lock can specifically be realized by electronic lock tongue and be unlocked for being unlocked according to the control of MCU;It is electronic The locking of lock uses mechanically, by electric lock manual block.Unlocking in this way is Electronic control, and being latched is Mechanical course, This design more amount of saving energy.
Said supply unit can use in-built electrical for being powered to MCU, display screen, input equipment, electric lock Pond is such as powered using 18650 lithium batteries.Preferably, power supply unit can be supplied accordingly according to MCU different mode Electricity.Since in each open locking process, after user presses START key, MCU is run with high-speed mode, during which calculates and generate figure Shape code, after the completion of unit to be powered supports that graphic code show in display screen, MCU enters low-speed mode, maintenance display screen show and Keyboard scan;After the operation of user's input unlocking code is successful, MCU and electric lock execute corresponding control with after unlocking action, power Unit stops powering to electric lock, and MCU enters suspend mode, and such as 30 seconds without operation MCU also automatically into suspend mode.Power supply Unit carries out corresponding power switching according to the operating mode of above-mentioned MCU, and supplies in the electric lock unlocking stage electric lock Electricity.The power supply volume of each mode is as shown in table 1, and wherein the power supply volume of suspend mode wouldn't be counted.
The power supply volume example of 1 MCU of table, display screen, electric lock
10,000 2 thousand can be supported according to example shown in upper table with 2000 milliamperes of calculation of capacity of 18650 lithium battery of single-unit Secondary unlocking and block action, without charging.
In one alternate embodiment, MCU is set there are two operating mode, specially suspend mode and high-speed mode.MCU is silent Recognize and be in suspend mode, therefore the control that the unlocking of motion graphics coded lock and latching process are required to MCU is being unlocked and closed It requires to wake up MCU before lock process, suspend mode is switched to high-speed mode and carries out carrying out graphic code generation, maintenance display screen The operation such as display and input equipment scanning.
The present invention also provides a kind of server used with motion graphics coded lock linkage, remember in the server Record has a coded lock identification code UID for uniquely distinguishing coded lock, and the corresponding locking/unlocking condition of each UID uses every time Time, GPS and charge information, and decipherment algorithm identical with MCU built-in encryption algorithm (such as 128 aes algorithms).
When user needs to unlock, the figure of the display screen display of motion graphics coded lock is shot by client end AP P Code, and server is sent to by the encryption code-locked in client end AP P identification graphic code, and by the data packet including encryption code-locked Request is unlocked;
Server by utilizing decipherment algorithm to encryption code-locked be decoded after, obtain coded lock identification code UID therein and Random unlocking code PASSCODE;
Server searches coded lock identification code UID in the database and corresponds to the shape that coded lock records in the database State;
If recording the coded lock in database is blocking, random unlocking code PASSCODE is sent to client Then the UID state for corresponding to coded lock is set on lock status, note to inform the unlocking code of user's graphical passwords lock by APP It records the GPS coordinate that client end AP P is reported and starts charging;
If recording the coded lock in database is unlocking condition, the UID state for corresponding to coded lock is set as being latched State, and the GPS coordinate that cell phone application reports is recorded, terminate charging;
The use information of this bicycle, including route, time and charge information packing are also transferred to client by server.
By the setting of above-mentioned server, and the interaction design with client, it can effectively solve user and be finished vehicle Not car locking afterwards, install additional caused by lockset privately only part payment expense, do not pay even and be not latched and at will asked with vehicle etc. Topic, while security performance also greatly improves.
The present invention also provides a kind of shared system using above-mentioned motion graphics coded lock, such as Fig. 1, including client APP, the server used with motion graphics coded lock linkage, and the bicycle equipped with above-mentioned motion graphics coded lock.
Graphic code is resolved to and is added for scanning the graphic code shown on motion graphics coded lock by the client end AP P After close code-locked, it is sent to server.The client can be mobile phone, and client end AP P is cell phone application.
For being decoded to the encryption code-locked received, lookup coded lock identification code UID corresponds to close the server The state of code lock sends the random unlocking code PASSCODE that decoding obtains and gives client end AP P, the state of coded lock is arranged, records GPS coordinate that client end AP P is reported, time, also progress charging etc..
The bicycle equipped with motion graphics coded lock, the motion graphics coded lock are stored with coded lock identification code UID, For generating random unlocking code PASSCODE, generating graphic code in conjunction with UID and PASSCODE, reception user's unlocking instruction, judgement Electronic lock status, realize operating mode switching, receive user input unlocking code, unlocking code compare, realize electric lock locking and The operation such as unlocking.
Due to not needing to realize the network communication between bicycle and server, hardware cost drop during entire open and close lock It is low, and power consumption is lower, does not need that individual charging unit is arranged, further reduces costs.
The present invention also provides a kind of working methods using above-mentioned shared system, including unlock and be latched two processes (Fig. 2), the unlocking process specifically includes the following steps:
Step S1. motion graphics coded lock receives the wake up instruction of user's triggering, and the triggering can pass through input equipment START key carry out, after the MCU of motion graphics coded lock receives wake up instruction, high-speed mode, MCU are transferred to by suspend mode Judge that motion graphics coded lock is in blocking or unlocking condition in high speed mode;
During unlocking, bicycle should be blocking, therefore when judging that motion graphics coded lock is in blocking, MCU generates a random unlocking code PASSCODE, the coded lock identification code of the random unlocking code PASSCODE and storage inside UID and scrambling code are combined into a plaintext sequence, and plaintext sequential encryption is generated encryption code-locked by Encryption Algorithm, further will It encrypts code-locked and generates graphic code, and the display screen for being sent to motion graphics coded lock is shown, and MCU is switched to low-speed mode.
The graphic code of the display screen display of the APP scanning motion graphics coded lock of step S2. client, by the graphic code Encryption code-locked is resolved to, and is sent to server.
Step S3. server receives the data packet comprising encryption code-locked that client end AP P is sended over, server by utilizing solution Close algorithm is decoded encryption code-locked, obtains coded lock identification code UID therein, random unlocking code PASSCODE, GPS letter Breath and temporal information;
After obtaining above- mentioned information, the state that coded lock identification code UID corresponds to coded lock is searched in the database;
If the password lock status of data-base recording is blocking, the random unlocking code that decoding is obtained PASSCODE is sent to client end AP P, the state of the coded lock in database is then set on lock status, and record client The GPS coordinate and time that end APP is reported, start charging.
Step S4. client end AP P receives the PASSCODE that server transport comes, and shows on a display screen.
Step S5. motion graphics coded lock receives the PASSCODE of user's input, which is client in step S4 End APP is obtained from server, and inputs motion graphics coded lock by user;
When the PASSCODE of input is matched with the random unlocking code that MCU is generated in step sl, then MCU controls electric lock It unlocks;When PASSCODE is mismatched, then the prompt of password mistake is shown on a display screen.
Preferably, wherein client end AP P after receiving the random unlocking code PASSCODE that comes of server transport, also with Server carries out synchronizing information, and the information such as charging state are shown on the display interface of client end AP P.
The latching process specifically includes the following steps:
For step S1. after user completes this bicycle use, motion graphics coded lock receives the manual block behavior of user, Then the wake up instruction that user is inputted by the input equipment of motion graphics coded lock is received;MCU receives the wake-up of user's triggering After instruction, MCU is transferred to high-speed mode by suspend mode, and MCU judges that motion graphics coded lock is in latch like in high speed mode State or unlocking condition;
If motion graphics coded lock is still non-latching at this time, MCU controls the text of display screen display reminding user locking And picture;
If motion graphics coded lock is in blocking at this time, MCU generates a random unlocking code PASSCODE, The random unlocking code PASSCODE and the coded lock identification code UID and scrambling code of storage inside are combined into a plaintext sequence, lead to Encryption Algorithm is crossed, by plaintext sequential encryption, generates encryption code-locked, encryption code-locked is further generated into graphic code, and be sent to dynamic The display screen of state graphical passwords lock is shown.
After step S2. client end AP P is by scanning and parsing graphic code, encryption code-locked is obtained, and be sent to server.
Step S3. server receives the data packet comprising encryption code-locked that client end AP P is sended over, server by utilizing solution Close algorithm is decoded encryption code-locked, obtains coded lock identification code UID therein, random unlocking code PASSCODE, GPS letter Breath and temporal information;
After obtaining above- mentioned information, the state that coded lock identification code UID corresponds to coded lock is searched in the database;
If recording in database is unlocking condition, blocking is set by the UID state for corresponding to coded lock, and The GPS coordinate and time that record cell phone application reports, terminate charging;The corresponding information that server uses this, including route, Time and charge information packing are transferred to client.
Step S4. client receives the data packet that comes of server transport, by corresponding information show on the display screen, with It is checked for user and delivery operation.
In conclusion the embodiment of the invention provides a kind of motion graphics coded lock, server, shared system and its unlockings And blocking method, motion graphics coded lock pass through the setting of electric lock, MCU, display screen and input equipment, realize common equipment Locking and unlocking, and motion graphics coded lock do not have communication module, only be arranged one wake-up MCU key and be equipped with a variety of works Operation mode so that power consumption needed for motion graphics coded lock is extremely low, and saves cost.
By the operation setting of server itself, and the interaction design with client, can effectively solve user with Be not latched after complete vehicle, privately install additional lockset caused by only part payment expense, do not pay even and be not latched at will with vehicle etc. Problem, while security performance also greatly improves.
The present invention also provides a kind of shared system and its unlocking and blocking method, do not needed during entire open and close lock Realize the network communication between bicycle and server, hardware cost reduces, and low in energy consumption, does not need to be arranged individually charging dress It sets, further reduces costs.
It will be understood by those skilled in the art that realizing all or part of the process of above-described embodiment method, meter can be passed through Calculation machine program is completed to instruct relevant hardware, and the program can be stored in computer readable storage medium.Wherein, institute Stating computer readable storage medium is disk, CD, read-only memory or random access memory etc..
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art, It should be covered by the protection scope of the present invention.

Claims (9)

1. a kind of motion graphics coded lock, which is characterized in that including MCU, display screen, input equipment, electric lock and power supply unit;
It includes the graphic code for encrypting code-locked that MCU, which is used to generate, and switching working mode judges the current state of coded lock, and Operation control to electric lock, input equipment, display screen;
Display screen is used to show that the graphic code that MCU is generated and user to be latched prompt;
Input equipment is used to carry out the input of wake up instruction and unlocking cipher;
Electric lock is used to be unlocked according to the control of MCU, and is latched according to user's operation;
Power supply unit is for being powered MCU, display screen, input equipment, electric lock;
The method that the MCU generates graphic code are as follows: MCU generates a random unlocking code PASSCODE, the password with storage inside Lock identification code UID is combined into UID+PASSCODE sequence, and UID+PASSCODE sequence, position instruction position, scrambling code composition is bright Literary sequence encrypts plaintext sequence, generates encryption code-locked, further generates graphic code according to encryption code-locked,
The UID is stored in advance in inside MCU, for uniquely distinguishing coded lock;
The UID is also used to search coded lock identification code UID in server database and corresponds to coded lock in the database The state of record.
2. motion graphics coded lock according to claim 1, which is characterized in that the MCU includes suspend mode, high speed mould Formula, low-speed mode, each mode correspond to different power consumption;Said supply unit is accordingly powered according to the operating mode of MCU.
3. motion graphics coded lock according to claim 1, which is characterized in that the input equipment is used by 0-9 ten The keyboard that digital keys, a START key form, the START key is for waking up MCU.
4. motion graphics coded lock according to claim 1, which is characterized in that the MCU is according to the electric lock of electric lock The judgement of tongue position is currently at unlocking condition or blocking.
The server used 5. motion graphics coded lock described in a kind of one of and Claims 1 to 4 links, which is characterized in that The operation that the server executes includes:
Server receives the encryption code-locked that client end AP P transmission comes;
After being decoded to encryption code-locked, coded lock identification code UID therein and random unlocking code PASSCODE are obtained;Service Device searches coded lock identification code UID in the database and corresponds to the state that coded lock records in the database;
If recording the coded lock in database is blocking, random unlocking code PASSCODE is sent to client end AP P, Then the UID state for corresponding to coded lock is set on lock status, and starts charging;
If recording the coded lock in database is unlocking condition, blocking is set by the UID state for corresponding to coded lock, Terminate charging.
6. a kind of shared system using motion graphics coded lock described in one of Claims 1 to 44, which is characterized in that shared System includes: client end AP P, server described in claim 5, and equipped with Dynamic Graph described in one of Claims 1 to 4 The common equipment of shape coded lock;
Graphic code is resolved to encryption lock for scanning the graphic code shown on motion graphics coded lock by the client end AP P After code, it is sent to server;
The server searches coded lock identification code UID and corresponds to coded lock for being decoded to the encryption code-locked received State, send the obtained random unlocking code PASSCODE of decoding and give client end AP P, the state of coded lock is set, and is counted Take;
The common equipment equipped with motion graphics coded lock, the motion graphics coded lock is for generating graphic code, receiving user Unlocking instruction, judge electronic lock status, receive user input unlocking code, carry out the comparison of unlocking code, realize electric lock locking and Unlocking operation.
7. a kind of method for unlocking using shared system as claimed in claim 6, which comprises the following steps:
After the MCU of motion graphics coded lock receives the wake up instruction of user's triggering, high-speed mode is switched to by suspend mode, into One step judges that motion graphics coded lock is in blocking or unlocking condition;
When judging that motion graphics coded lock is in blocking, MCU generates a random unlocking code PASSCODE at random, is based on PASSCODE and coded lock identification code UID generates encryption code-locked, encryption code-locked is further generated graphic code, and show;
The APP of client scans and parses graphic code, obtains encryption code-locked and sends server;
Server receives the data packet comprising encryption code-locked, by decoding acquisition coded lock identification code UID therein, opening at random Code-locked PASSCODE;
Server further searches the state that coded lock identification code UID corresponds to coded lock in the database;
If the password lock status of data-base recording is blocking, the random unlocking code PASSCODE that decoding is obtained is sent out Client end AP P is given, the state of the coded lock in database is then set on lock status, and start charging;
The PASSCODE that client end AP P is received and display server transmits;
Motion graphics coded lock receives the PASSCODE of user's input, when what is generated in the PASSCODE and MCU of input opens at random When code-locked matches, then MCU controls electric lock and unlocks;
When PASSCODE is mismatched, then the prompt of password mistake is shown on a display screen.
8. a kind of blocking method using shared system as claimed in claim 6, which comprises the following steps:
After motion graphics coded lock receives the wake up instruction of user's input, MCU is transferred to high-speed mode by suspend mode, and MCU is in height Fast mode judges that motion graphics coded lock is in blocking or unlocking condition;
If motion graphics coded lock is in unlocking condition, MCU controls the mark of display screen display reminding user locking;
If motion graphics coded lock is in blocking, MCU generates a random unlocking code PASSCODE at random, is based on PASSCODE and coded lock identification code UID generates encryption code-locked, encryption code-locked is further generated graphic code, and show;
After client end AP P is by scanning and parsing graphic code, encryption code-locked is obtained, and be sent to server;
Server receives the data packet comprising encryption code-locked, by decoding acquisition coded lock identification code UID therein, opening at random Code-locked PASSCODE;
Server further searches the state that coded lock identification code UID corresponds to coded lock in the database;
If recording in database is unlocking condition, blocking is set by the UID state for corresponding to coded lock, and terminate Charging.
9. blocking method according to claim 8, which is characterized in that after terminating charging, server uses this Information be transferred to client;Client receives the data packet that comes of server transport and display, for user carry out verification and Delivery operation.
CN201710060952.6A 2017-01-25 2017-01-25 Motion graphics coded lock, server, shared system and its unlocking and blocking method Active CN106600797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710060952.6A CN106600797B (en) 2017-01-25 2017-01-25 Motion graphics coded lock, server, shared system and its unlocking and blocking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710060952.6A CN106600797B (en) 2017-01-25 2017-01-25 Motion graphics coded lock, server, shared system and its unlocking and blocking method

Publications (2)

Publication Number Publication Date
CN106600797A CN106600797A (en) 2017-04-26
CN106600797B true CN106600797B (en) 2019-06-07

Family

ID=58586578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710060952.6A Active CN106600797B (en) 2017-01-25 2017-01-25 Motion graphics coded lock, server, shared system and its unlocking and blocking method

Country Status (1)

Country Link
CN (1) CN106600797B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301697A (en) * 2017-05-09 2017-10-27 南昌大学 The dynamic encryption and localization method of a kind of electronic lock
CN107393061A (en) * 2017-06-16 2017-11-24 汪钰涵 Coded lock and communication system with communication capacity
CN107301703A (en) * 2017-06-23 2017-10-27 钱本宁 Dynamic puzzle-lock system and unlocking method
WO2019000202A1 (en) * 2017-06-27 2019-01-03 深圳市吉亚鲁电子有限公司 Server, shared bicycle, identification display method therefor and control method therefor
WO2019000204A1 (en) * 2017-06-27 2019-01-03 深圳市吉亚鲁电子有限公司 Server, shared bicycle, identification display method therefor, and control method
CN107492174B (en) * 2017-08-24 2018-07-27 东峡大通(北京)管理咨询有限公司 Enabled code introduction method, client and the shared vehicle server of shared vehicle
CN107393100B (en) * 2017-08-24 2018-06-08 东峡大通(北京)管理咨询有限公司 Enabled code synchronous method, client and the shared vehicle server of shared vehicle
TW201913508A (en) * 2017-09-07 2019-04-01 微程式資訊股份有限公司 Smart Handle Bar of Bicycle with Operating System
TWI661372B (en) * 2017-09-07 2019-06-01 微程式資訊股份有限公司 Multi-operation system for a rental bicycle
CN108038983A (en) * 2017-12-06 2018-05-15 广州小明科技有限公司 Tablet computer automatically provides method, unit and system
CN107862779A (en) * 2017-12-15 2018-03-30 中国计量大学 A kind of Dynamic Two-dimensional code electronic lock of low-power consumption
CN110634202A (en) * 2018-06-21 2019-12-31 云泊科技(广州)有限公司 Parking space sharing device and parking space sharing method
CN108961511B (en) * 2018-07-25 2021-11-23 合肥学院 Unlocking method and system applying rational interpolation containing parameter Thiele type continuous fraction
CN109005231A (en) * 2018-08-03 2018-12-14 东南大学 A kind of sharing articles networking method
CN109272612A (en) * 2018-08-27 2019-01-25 北京机械设备研究所 A kind of lock system and its method for opening and closing applied to sharing articles
CN109118630A (en) * 2018-08-30 2019-01-01 蚌埠中科工业设备有限公司 A kind of sampling box
FR3086419B1 (en) * 2018-09-25 2021-11-26 Eneo Tech PROCESS FOR ACTIVATION OF A SERVICE, PROCEDURE FOR ACTIVATION OF A FIRE HYDRANT, ASSOCIATED DEVICE AND SYSTEM
CN109242645A (en) * 2018-10-10 2019-01-18 南京信息工程大学 A kind of shared bicycle charging method based on precise positioning and safe barcode scanning
CN111275861A (en) * 2020-02-13 2020-06-12 上海萃钛智能科技有限公司 Intelligent lock, intelligent lock system and switching method
CN113012320A (en) * 2021-02-02 2021-06-22 天翼物联科技有限公司 Awakening method, system, terminal, platform and storage medium of NB-IOT intelligent lock network

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7019644B2 (en) * 2003-02-04 2006-03-28 Barrie Robert P Mobile object monitoring system
CN204856589U (en) * 2015-09-07 2015-12-09 罗文凤 Bicycle automatic parking system based on two -dimensional code and internet technology
CN204926315U (en) * 2015-09-11 2015-12-30 赛酷特(北京)信息技术有限公司 Intelligence lock system and because public bicycle system of hiring a car of this system
CN105401798A (en) * 2015-10-26 2016-03-16 深圳市便易通科技有限公司 Electronic lock and monitoring method and system of electronic lock
CN205507997U (en) * 2016-03-18 2016-08-24 无锡萨弗特智能科技有限公司 Developments trick lock
CN205531781U (en) * 2016-03-27 2016-08-31 兰州交通大学 Intelligence two -dimensional code lock based on cell -phone APP
CN105956452A (en) * 2016-04-20 2016-09-21 上海斐讯数据通信技术有限公司 Method and system for unlocking device
CN106169209A (en) * 2016-08-25 2016-11-30 储晓峰 A kind of intelligence public bicycles and management system thereof
CN106297041A (en) * 2016-08-20 2017-01-04 江苏宏溥科技有限公司 Public bicycles management System and method for

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204178418U (en) * 2014-06-27 2015-02-25 杭州晶格科技有限公司 Electronic coding lock system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7019644B2 (en) * 2003-02-04 2006-03-28 Barrie Robert P Mobile object monitoring system
CN204856589U (en) * 2015-09-07 2015-12-09 罗文凤 Bicycle automatic parking system based on two -dimensional code and internet technology
CN204926315U (en) * 2015-09-11 2015-12-30 赛酷特(北京)信息技术有限公司 Intelligence lock system and because public bicycle system of hiring a car of this system
CN105401798A (en) * 2015-10-26 2016-03-16 深圳市便易通科技有限公司 Electronic lock and monitoring method and system of electronic lock
CN205507997U (en) * 2016-03-18 2016-08-24 无锡萨弗特智能科技有限公司 Developments trick lock
CN205531781U (en) * 2016-03-27 2016-08-31 兰州交通大学 Intelligence two -dimensional code lock based on cell -phone APP
CN105956452A (en) * 2016-04-20 2016-09-21 上海斐讯数据通信技术有限公司 Method and system for unlocking device
CN106297041A (en) * 2016-08-20 2017-01-04 江苏宏溥科技有限公司 Public bicycles management System and method for
CN106169209A (en) * 2016-08-25 2016-11-30 储晓峰 A kind of intelligence public bicycles and management system thereof

Also Published As

Publication number Publication date
CN106600797A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106600797B (en) Motion graphics coded lock, server, shared system and its unlocking and blocking method
CN203192055U (en) Electronic lock
CN106335572A (en) Low-power-consumption Bluetooth intelligent bicycle lock and public bicycle system adopting bicycle lock under Internet of things technology based on time-space safety
CN104978781B (en) A kind of electronic lock system based on NFC, electronic lock and method for unlocking
CN104680630A (en) Method and system for controlling door locks
CN103026682A (en) Wireless device enabled locking system
CN107146308A (en) A kind of offline internet-based control device and its control system and method
CN106097487A (en) A kind of off-line type gate control system based on smart mobile phone and control method thereof
CN205140035U (en) Mobile terminal and intelligent communication system who locks
CN104123768B (en) A kind of safe and intelligent lock system and unlocking, shut control method
CN205121680U (en) Bluetooth lock system based on intelligent terminal
CN101500232A (en) Method and system for implementing dynamic identity authentication
CN204406513U (en) A kind of dynamic puzzle-lock system
CN200985681Y (en) Multifunctional fingerprint identification vehicle door lock device
CN104123769B (en) The unblanking of a kind of safety intelligent lock, close lock control method
CN204904392U (en) Intelligent lock system is encrypted in high in clouds
CN107795199A (en) The control method and control device of a kind of electronic lock
CN202108335U (en) Fingerprint password anti-theft lock
CN105383443B (en) A kind of motor vehicle can position automatic alarm intelligent burglary-resisting system
CN205068524U (en) Intelligent gate inhibition system
CN203285181U (en) Mobile phone verification code intelligent lock based on GSM
CN113971849A (en) Dynamic coded lock with management system
CN110660147A (en) Multi-party matched unlocking safe and unlocking method thereof
CN108182745A (en) The smart lock and its encryption method of a kind of decentralization
CN101227284B (en) Method for searching dynamic password and dynamic token with searching function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant