The control device and bicycle of a kind of control method of lock, lock
Technical field
The present invention relates to lock technical field, in particular to a kind of control method of lock, the control device of lock
And bicycle.
Background technology
Bicycle has more and more been appeared in the visual field of people as the vehicles of environmental protection, alleviates friendship
Logical pressure, band gives people the convenience of short distance trip.The degree of convenience for using of the lock of bicycle suspected of user without bringing preferably
Experience Degree.
The unlocking mode of lock of the prior art be mainly by need user pass through with car software be input into license plate number or
Person scans the Quick Response Code that bicycle or vehicle are locked, and lock information is sent into background server, waits background server
The unlocking cipher of transmission is unlocked.
It was discovered by researchers that above-mentioned unlocking mode needs user to download uses car software, and when using the software every time, all
Need in networking state, this just increased to user and uses car cost.
The content of the invention
In view of this, it is an object of the invention to provide a kind of control method of lock, the control device of lock and voluntarily
Car, to improve the convenience of user's unlocking.
In a first aspect, the embodiment of the invention provides a kind of control method of lock, methods described includes:In advance voluntarily
Finger print acquisition module, communication module and processor be set on car, the processor respectively with the finger print acquisition module, described logical
Letter module and lock connection;The finger print information of user is gathered by the finger print acquisition module, and the finger print information is sent
To the processor;Communication connection is set up by the communication module and background server;By the processor by the finger
Line information is sent to the background server, receives the operational order that the background server is returned, and refer to according to the operation
The order control lock is unlocked or is not unlocked.
With reference in a first aspect, the embodiment of the invention provides the first possible implementation method of first aspect, the side
Method also includes:Pressure acquisition module is set on bicycle in advance, and the pressure acquisition module is connected with the processor;Pass through
The pressure acquisition module gathers the pressure value suffered by the bicycle, and the pressure value is sent to the processor;It is logical
Cross the processor and judge whether the pressure value is less than predetermined threshold value in setting time, if so, then controlling the lock to enter
Row shuts.
It is described pre- with reference in a first aspect, the embodiment of the invention provides second possible implementation method of first aspect
First the finger print acquisition module, the communication module and the processor are set on bicycle, including:In advance it is described voluntarily
Finger print acquisition module is set on the handlebar of car or on the lock of the bicycle;And in advance on the handlebar of the bicycle
Or the communication module and the processor are set on the lock of the bicycle.
With reference to the first possible implementation method of first aspect, the third of first aspect is the embodiment of the invention provides
Possible implementation method, it is described that the pressure acquisition module is set on bicycle in advance, including:In advance in the bicycle
The pressure acquisition module is set on handlebar;And the pressure acquisition module is set under the vehicle seat of the bicycle in advance.
With reference to first aspect or second possible implementation method of first aspect, the finger print acquisition module is included extremely
A few fingerprint sensor.
With reference to first aspect or second possible implementation method of first aspect, the communication module includes that the whole world is moved
Dynamic communication system components or general packet radio service technical parts.
With reference to the first possible implementation method or the third possible implementation method of first aspect of first aspect,
The pressure acquisition module includes at least one pressure sensor.
Second aspect, the embodiment of the present invention additionally provides a kind of control device of lock, the lock for controlling bicycle,
The control device include finger print acquisition module, communication module and processor, the processor respectively with the fingerprint collecting mould
The connection of block, the communication module and the lock;The finger print acquisition module, the finger print information for gathering user, and by institute
Fingerprint collecting information is stated to send to the processor;The communication module, communicates to connect for being set up with background server;It is described
Processor, for setting up communication connection by the communication module and the background server, by the finger print information send to
Background server;The operational order that the background server is returned is received, controls lock to be unlocked according to the operational order
Or do not unlock.
With reference to second aspect, the first possible implementation method of second aspect, the control are the embodiment of the invention provides
Device processed also includes pressure acquisition module, and the pressure acquisition module is connected with the processor;The pressure acquisition module, uses
Sent to the processor in the pressure value suffered by the collection bicycle and by the pressure value;The processor, is additionally operable to
Judge whether the pressure value is less than predetermined threshold value in setting time, if so, then controlling the lock to be shut.
The third aspect, the embodiment of the invention provides a kind of bicycle, including lock and second aspect or second party
Control device in the possible implementation method of the first of face.
A kind of control method of lock provided in an embodiment of the present invention, the control device and bicycle of lock, using advance
Finger print acquisition module, communication module and processor be set on bicycle, the processor respectively with the finger print acquisition module,
The communication module and lock are connected;The finger print information of user is gathered by the finger print acquisition module, and the fingerprint is believed
Breath is sent to the processor;Communication connection is set up by the communication module and background server;Will by the processor
The finger print information is sent to the background server, receives the operational order that the background server is returned, and according to described
Operational order controls the lock to be unlocked or do not unlocked.Compared with method for unlocking of the prior art, its unlocking mode
It is convenient, and alleviate the unlocking cost of user.
Further, the control method of a kind of lock provided in an embodiment of the present invention, can also be set on bicycle in advance
Pressure acquisition module, the pressure acquisition module is connected with the processor;It is described certainly by pressure acquisition module collection
The suffered pressure value of driving, and the pressure value is sent to the processor;The pressure value is judged by the processor
Whether predetermined threshold value is less than in setting time, if so, then controlling the lock to be shut.The method can avoid user from forgetting
The inconvenience that note car locking is brought.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows a kind of flow chart of the control method of lock that the embodiment of the present invention is provided;
Fig. 2 shows the flow chart of the control method of another lock that the embodiment of the present invention is provided;
Fig. 3 shows the structural representation of the control device of the first lock that the embodiment of the present invention is provided;
Fig. 4 shows the structural representation of the control device of second lock that the embodiment of the present invention is provided.
Icon:301- finger print acquisition modules;302- communication modules;303- processors;304- pressure acquisition modules.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
Middle accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
It is a part of embodiment of the invention, rather than whole embodiments.The present invention generally described and illustrated in accompanying drawing herein is real
The component for applying example can be arranged and designed with a variety of configurations.Therefore, it is of the invention to what is provided in the accompanying drawings below
The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of selected reality of the invention
Apply example.Based on embodiments of the invention, the institute that those skilled in the art are obtained on the premise of creative work is not made
There is other embodiment, belong to the scope of protection of the invention.
Embodiment 1
A kind of control method of lock is present embodiments provided, Fig. 1 is the flow chart of the method, and step is as follows:
S100, sets finger print acquisition module, communication module and processor on bicycle in advance, processor respectively with fingerprint
The connection of acquisition module, communication module and lock.
S101, the finger print information of user is gathered by finger print acquisition module, and finger print information is sent to processor.
S102, is sent to background server finger print information by processor, and the operation for receiving background server return refers to
Order, and control lock to be unlocked or do not unlocked according to the operational order.
Wherein background server has been prestored the finger print information of validated user, and the place on bicycle is received when background server
Reason device is by that after the finger print information of the active user that communication module sends, can compare, if judging the active user to close
Method user, then can send unlocking operation and instruct to processor, if judging, active user is illegal user, can be sent out to processor
Not unlocking operation is sent to instruct, processor then can be according to unlocking operation instruction or not unlocking operation instruction control lock.
A kind of preferably implementation method, in the technical scheme that the embodiment of the present invention 1 is proposed, the lock includes driver part
And dead bolt, wherein driver part for driving dead bolt rotating opening lock forward under the control of a processor.
A kind of preferably implementation method, in the technical scheme that the embodiment of the present invention 1 is proposed, driver part includes relay
And motor, wherein unlocking operation instruction can be high level signal, by electric current so that the coil in relay produces magnetic field band
Dynamic motor is rotated forward so that dead bolt rotation is unlocked.
Finger print acquisition module, communication module and processor are wherein set on bicycle in advance, including:
Finger print acquisition module is set on the handlebar of bicycle or on the lock of bicycle in advance and in advance voluntarily
Communication module and processor are set on the handlebar of car or on the lock of bicycle.
Wherein finger print acquisition module includes at least one fingerprint sensor, and communication module includes global system for mobile communications
(Global System for Mobile Communication, GSM) part or general packet radio service technology
(General Packet Radio Service, GPRS) part.
A kind of preferably implementation method, in the technical scheme that the embodiment of the present invention 1 is proposed, finger print acquisition module is installed
In bicycle handle bar, when user's both hands hold bicycle handle bar, the finger print information of user is gathered on handlebar.
The control method of above-mentioned lock, also including flow chart as shown in Figure 2, its step is as follows:
S200, sets pressure acquisition module on bicycle in advance, and pressure acquisition module is connected with processor.
S201, gathers the pressure value suffered by bicycle, and pressure value is sent to processor by pressure acquisition module.
S202, judges whether pressure value is less than predetermined threshold value in setting time, if so, then controlling lock by processor
Shut.
Wherein control lock shut including:So that processor send low level shut signal, by electric current so that after
Electrical equipment interior loop produces magnetic field drive motor to rotate backward so that dead bolt rotation is shut.
Pressure acquisition module is wherein set on bicycle in advance, including:Pressure is set on the handlebar of bicycle in advance
Acquisition module and in advance the setting pressure acquisition module under the vehicle seat of bicycle.Wherein pressure acquisition module includes at least one
Pressure sensor.
A kind of preferably implementation method, in the technical scheme that the embodiment of the present invention 1 is proposed, in two handlebars of bicycle
One pressure acquisition module of upper each setting, while under the vehicle seat of bicycle, such as being also provided with a pressure acquisition mould in seat cushion
Block, wherein each pressure acquisition module include three pressure sensors, in the pressure value and vehicle seat that will be gathered on two handlebars
The pressure value of collection is designated as first pressure value, second pressure value and the 3rd pressure value respectively, sends it to processor, by place
Reason device judges that first pressure value, second pressure value and the 3rd pressure value are respectively less than handlebar preset pressure set in advance in 5min
Value and vehicle seat preset pressure value, then processor judges that the bicycle now processes nobody and uses, and shuts signal to lock transmission.
Embodiment 2
The embodiment of the present invention 2 proposes a kind of control device of lock, the lock for controlling bicycle, the control device
As shown in figure 3, including:Finger print acquisition module 301, communication module 302 and processor 303, wherein processor 303 respectively with fingerprint
The connection of acquisition module 301, communication module 302 and lock.
Wherein finger print acquisition module 301, the finger print information for gathering user, and finger print information is sent to processor
303。
Communication module 302, communicates to connect for being set up with background server.
Processor 303, for setting up communication connection by communication module 302 and background server, finger print information is sent
To background server;The operational order that background server is returned is received, controls lock to be unlocked or not according to operational order
Unlock.
Wherein finger print acquisition module 301 includes at least one pressure sensor, and the finger print acquisition module 301 may be located at certainly
On driving handlebar or on lock, it is also possible on the miscellaneous part of bicycle.
A kind of preferably implementation method, in the technical scheme that the embodiment of the present invention 1 is proposed, finger print acquisition module 301
In on the handlebar of bicycle.
Wherein communication module 302 includes global system for mobile communications (Global System for Mobile
Communication, GSM) part or general packet radio service technology (General Packet Radio Service,
GPRS) part.
As shown in figure 4, above-mentioned control device also includes pressure acquisition module 304, the pressure acquisition module 304 and processor
303 connections.
Pressure acquisition module 304, for gathering pressure value suffered by bicycle and sending to processor 303 pressure value;
Processor 303, is additionally operable to judge whether pressure value is less than predetermined threshold value in setting time, if so, then controlling car
Lock is shut.
Embodiment 3
The embodiment of the present invention 3 provides a kind of lock, and the lock includes the control device proposed in embodiment 2.
Embodiment 4
The embodiment of the present invention 4 provides a kind of bicycle, and the bicycle includes the lock proposed in embodiment 3.
Embodiment 5
The embodiment of the present invention 5 provides a kind of bicycle, and the bicycle includes the control dress proposed in lock and embodiment 2
Put.
Finger print acquisition module 301 wherein in control device may be located on the handlebar of bicycle or bicycle lock
On, communication module 302 and processor 303 in control device may be located on the handlebar of bicycle or bicycle lock
On.
Pressure acquisition module 304 in control device is located on the handlebar of bicycle or under the vehicle seat of bicycle, or
It is located at simultaneously on the handlebar of bicycle and under the vehicle seat of bicycle.
It is described in detail with an applied environment below:
Include the control device of lock mentioned in above-described embodiment 2 on a collection of bicycle of same producer and one is received
Control lock, and the bicycle of the producer is shared bicycle, the finger print acquisition module 301 wherein in control device is located at species certainly
On the handlebar of driving, and the species bicycle vehicle seat and handlebar on pressure acquisition module 304 is set simultaneously.If user A
The bicycle of the producer is needed to use, it is necessary to carry out authentication in advance, such as is registered on mobile phone, typing fingerprint turns into legal
User.
After user A turns into validated user, any in this batch of bicycle of the producer is if desired used, it is only necessary to
Walking vehicle handle, completes fingerprint collecting, and checking identity is validated user, then can open lock, carries out using bicycle.
Understood based on above-mentioned analysis, it is provided in an embodiment of the present invention compared with the control method of the lock in correlation technique
The control method of lock is located using finger print acquisition module 301, communication module 302 and processor 303 is set on bicycle in advance
Reason device 303 is connected with finger print acquisition module 301, communication module 302 and lock respectively;Gathered by finger print acquisition module 301 and used
The finger print information at family, and finger print information is sent to processor 303;Set up with background server by communication module 302 and communicated
Connection;Finger print information is sent to background server by processor 303, receives the operational order that background server is returned, and
Lock is controlled to be unlocked or do not unlocked according to operational order.So that user's unlocking is more convenient, and reduce the unlocking of user
Cost.
The computer program product of the control method for carrying out lock that the embodiment of the present invention is provided, including store program
The computer-readable recording medium of code, the instruction that described program code includes can be used to perform described in previous methods embodiment
Method, implement can be found in embodiment of the method, will not be repeated here.
The control device of the lock that the embodiment of the present invention is provided can be that the specific hardware or be installed in equipment sets
Standby upper software or firmware etc..The technique effect of the device that the embodiment of the present invention is provided, its realization principle and generation and foregoing
Embodiment of the method is identical, is to briefly describe, and device embodiment part does not refer to part, refers to corresponding in preceding method embodiment
Content.It is apparent to those skilled in the art that, for convenience and simplicity of description, system, dress described above
The specific work process with unit is put, the corresponding process in above method embodiment is may be referred to, be will not be repeated here.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can be by other sides
Formula is realized.Device embodiment described above is only schematical, for example, the division of the unit, only one kind are patrolled
Collect function to divide, there can be other dividing mode when actually realizing, but for example, multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some communication interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in the embodiment that the present invention is provided can be integrated in a processing unit, also may be used
Being that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing, additionally, term " the
One ", " second ", " the 3rd " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Finally it should be noted that:Embodiment described above, specific embodiment only of the invention, is used to illustrate the present invention
Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art
The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light
Change is readily conceivable that, or equivalent is carried out to which part technical characteristic;And these modifications, change or replacement, do not make
The essence of appropriate technical solution departs from the spirit and scope of embodiment of the present invention technical scheme.Should all cover in protection of the invention
Within the scope of.Therefore, protection scope of the present invention described should be defined by scope of the claims.