Summary of the invention
In view of this, a kind of control intelligent bicycle lock of being designed to provide of the embodiment of the present invention shuts method, apparatus, intelligence
Lock and bicycle, to prevent from directly shutting since lock tongue moving direction is there are in the case where spoke on wheel or other barriers
And spoke is caused to damage or cause centainly to damage to intelligent bicycle lock.
In a first aspect, the embodiment of the invention provides a kind of control intelligent bicycle locks to shut method, which includes master
Controller, switch lock detection module, machine driving module and infrared detection module, fingerprint identification module, the switch lock detection module, the machinery
Transmission module and the infrared detection module, fingerprint identification module are connected with the master controller, which comprises
Receive user terminal transmission shuts instruction;
Control whether the switch lock detection module detection intelligent bicycle lock is in unlocking condition, if so, control is described red
Whether there are obstacles for outer detection module detection lock tongue moving direction;
If it does not exist, then drive the machine driving module that the intelligent bicycle lock is switched to the state of shutting;
If it exists, then to user terminal transmission lock tongue moving direction, there are the prompt informations of barrier.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute
State shut instruction be the user terminal according to the user received start touch-control long-pressing shut key generate;
The intelligent bicycle lock is switched to the state of shutting by the driving machine driving module, comprising:
Persistently drive the machine driving module that the intelligent bicycle lock is switched to the state of shutting, until receiving described open
Shut detection module return the intelligent bicycle lock be in shut state or receive user terminal transmission the instruction that sets back;
When receive the switch lock detection module return the intelligent bicycle lock be in shut state when, Xiang Suoshu user terminal sends intelligence
Energy lock shuts successful prompt information;When receive user terminal transmission set back instruct when, Xiang Suoshu user terminal
The prompt information that intelligent bicycle lock shuts failure is sent, the instruction that sets back is that user terminal stops according to the user received
Touch-control long-pressing shuts key and do not receive that the intelligent bicycle lock returns shuts what successful prompt information generated.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect
Possible embodiment, wherein the method also includes:
It sets back instruction when receiving or determines lock tongue moving direction there are barrier and do not receive described open
It shuts detection module and returns to the intelligent bicycle lock in when shutting state, drive the machine driving module by the intelligent bicycle lock
Restore to unlocking condition.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides the third of first aspect
Possible embodiment, wherein the method also includes:
Judgement persistently shuts whether number is greater than the first preset threshold or persistently shuts the time whether to be greater than second default
Threshold value;
When shutting number greater than the first preset threshold or when shutting the time greater than the second preset threshold, it is determined that the intelligence
Energy lock shuts exception, and shuts abnormal prompt information to user terminal transmission, and/or send and close to remote server
It one of locks abnormal prompt information, lock mark and is presently in location information or is a variety of.
Second aspect, the embodiment of the invention also provides a kind of control intelligent bicycle lock locking device, which includes:
Wireless communication module, for receive user terminal transmission shut instruction;
Control module, for controlling whether the switch lock detection module detection intelligent bicycle lock is in unlocking condition, if so,
Then controlling the infrared detection module, fingerprint identification module detection lock tongue moving direction, whether there are obstacles;If it does not exist, then the machinery is driven
The intelligent bicycle lock is switched to the state of shutting by transmission module;If it exists, then the wireless communication module is controlled to the user
Terminal sends lock tongue moving direction, and there are the prompt informations of barrier.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute
State shut instruction be the user terminal according to the user received start touch-control long-pressing shut key generate;
The intelligent bicycle lock is switched to specifically for the lasting driving machine driving module and is shut by the control module
State, it is whole in shutting state or receiving user until receiving the switch lock detection module return intelligent bicycle lock
Hold the instruction that sets back sent;State is shut when receiving the switch lock detection module and returning to the intelligent bicycle lock and be in
When, the wireless communication module, which is controlled, to user terminal transmission intelligent bicycle lock shuts successful prompt information;When receiving
What user terminal was sent sets back when instructing, and controls the wireless communication module and sends intelligent bicycle lock to the user terminal and closes
Lock failure prompt information, it is described set back instruction be user terminal according to receive user stopping touch-control long-pressing shut by
Key and do not receive that the intelligent bicycle lock returns shut what successful prompt information generated.
In conjunction with the first possible embodiment of second aspect, the embodiment of the invention provides second of second aspect
Possible embodiment, wherein the control module is also used to set back instruction or determine that lock tongue is mobile when receiving
Direction is there are barrier and does not receive the switch lock detection module return intelligent bicycle lock in when shutting state, drives
The machine driving module restores the intelligent bicycle lock to unlocking condition.
In conjunction with the first possible embodiment of second aspect, the embodiment of the invention provides the third of second aspect
Possible embodiment, wherein the control module, be also used to judge persistently shut number whether be greater than the first preset threshold or
Person persistently shuts whether the time is greater than the second preset threshold;When shutting number greater than the first preset threshold or shut the time and be greater than
When the second preset threshold, it is determined that the intelligent bicycle lock shuts exception, and it is whole to the user to control the wireless communication module
End sends and shuts abnormal prompt information, and/or to remote server transmission shut abnormal prompt information, lock mark, with
And one of it is presently in location information or a variety of.
The third aspect, the embodiment of the invention also provides a kind of intelligent bicycle locks, including master controller, switch lock to detect mould
Block, machine driving module and infrared detection module, fingerprint identification module, the switch lock detection module, the machine driving module and the infrared inspection
Module is surveyed to be connected with the master controller, the master controller include second aspect to second aspect the third is possible
The control intelligent bicycle lock locking device of any one of embodiment.
Fourth aspect, the embodiment of the invention also provides a kind of intelligent bicycles, which includes: the intelligence in the third aspect
Lock;Module is connected with the user terminal with communication the intelligent bicycle lock by wireless communication, wherein described
Wireless communication module includes: one of bluetooth communication, NFC communication module, wifi module or a variety of.
Method, apparatus, intelligent bicycle lock and bicycle, this method packet are shut in control intelligent bicycle lock provided in an embodiment of the present invention
Include: receive user terminal transmission shuts instruction;Whether control switch lock detection module detection intelligent bicycle lock is in unlocking condition,
If so, whether there are obstacles for control infrared detection module, fingerprint identification module detection lock tongue moving direction;If it does not exist, then machine driving is driven
Intelligent bicycle lock is switched to the state of shutting by module;If it exists, then to user terminal transmission lock tongue moving direction, there are barriers
Prompt information.Before execution shuts movement, first pass through infrared detection module, fingerprint identification module detection lock tongue moving direction is the embodiment of the present invention
No there are barriers, and only determining lock tongue moving direction, there is no when barrier, just control machine driving module to execute pass
Lock movement can prevent from directly closing since lock tongue moving direction is there are in the case where spoke on wheel or other barriers in this way
It locks and spoke is caused to damage or cause centainly to damage to intelligent bicycle lock.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
Middle attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
It is a part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is real
The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, of the invention to what is provided in the accompanying drawings below
The detailed description of embodiment is not intended to limit the range of claimed invention, but is merely representative of selected reality of the invention
Apply example.Based on the embodiment of the present invention, those skilled in the art institute obtained without making creative work
There are other embodiments, shall fall within the protection scope of the present invention.
In view of in the related technology either by the way of manual locking, or using the side of automatic directly car locking
Formula is shut in action process in execution if lock tongue moving direction is there are in the case where spoke on wheel or other barriers, directly
Connecing to shut may cause spoke damage or causes centainly to damage to intelligent bicycle lock.Based on this, the embodiment of the invention provides one
Kind control intelligent bicycle lock shuts method, apparatus, intelligent bicycle lock and bicycle, is described below by embodiment.
As shown in Figure 1, the embodiment of the invention provides a kind of control intelligent bicycle locks to shut method, which includes master
Controller, switch lock detection module, machine driving module and infrared detection module, fingerprint identification module, above-mentioned switch lock detection module, machine driving
Module and above-mentioned infrared detection module, fingerprint identification module are connected with above-mentioned master controller, and the above-mentioned method that shuts includes step S102-S108, tool
Body is as follows:
Step S102: receive user terminal transmission shuts instruction;
Step S104: whether control switch lock detection module detection intelligent bicycle lock is in unlocking condition, if so, in control
Stating infrared detection module, fingerprint identification module detection lock tongue moving direction, whether there are obstacles, wherein the infrared detection module, fingerprint identification module can be infrared biography
Sensor;
Step S106: when detecting lock tongue moving direction is that barrier is not present, drive above-mentioned machine driving module will
Above-mentioned intelligent bicycle lock switches to the state of shutting;
Step S108: when detecting that lock tongue moving direction is there are when barrier, Xiang Shangshu user terminal sends lock tongue and moves
There are the prompt informations of barrier in dynamic direction.
In embodiment provided by the invention, before execution shuts movement, infrared detection module, fingerprint identification module detection lock tongue is first passed through
Whether there are obstacles for moving direction, only when determining that barrier is not present in lock tongue moving direction, just controls machine driving
Module execution shut movement, can prevent in this way due to lock tongue moving direction there are spokes on wheel or other barriers the case where
Under, it directly shuts and spoke is caused to damage or cause centainly to damage to intelligent bicycle lock.
Further, it is contemplated that may cause to shut mistake due to there is intelligent bicycle lock void pass or some unit exception
It loses and user is mistakenly considered the problem of having shut, is based on this, above-mentioned to shut instruction be above-mentioned user terminal according to the user received
Start touch-control long-pressing and shuts key generation;
Above-mentioned intelligent bicycle lock is switched to the state of shutting by the above-mentioned above-mentioned machine driving module of driving, comprising:
Persistently drive above-mentioned machine driving module that above-mentioned intelligent bicycle lock is switched to the state of shutting, until receiving above-mentioned open
Shut detection module return above-mentioned intelligent bicycle lock be in shut state or receive user terminal transmission the instruction that sets back;
When receive above-mentioned switch lock detection module return above-mentioned intelligent bicycle lock be in shut state when, Xiang Shangshu user is whole
End sends intelligent bicycle lock and shuts successful prompt information;
When receive user terminal transmission set back instruct when, Xiang Shangshu user terminal send intelligent bicycle lock shut mistake
The prompt information lost, it is above-mentioned set back instruction be user terminal according to receive user stopping touch-control long-pressing shut key and
Do not receive above-mentioned intelligent bicycle lock return shuts what successful prompt information generated.
Specifically, user terminal (end APP) is provided with " long-pressing is shut " key, user is somebody's turn to do " long-pressing is shut " by long-pressing and is pressed
Key, user terminal shut instruction to intelligent bicycle lock transmission through wireless communication, can make receiving end (intelligent bicycle lock
End) automatically control intelligent bicycle lock execution and shut movement, and this shuts to act and continuously carry out, rather than be only performed once shut it is dynamic
Make, and the final situation that shuts is back to user terminal, so that until user ensures to shut successfully, in addition, when determining
When shutting unsuccessfully, the prompt for please check and touch-control long-pressing shuts key again to intelligent bicycle lock is sent to user terminal and is believed
Breath, for example, the problem of prompt user checks for intelligent bicycle lock void pass or some unit exception.
In embodiment provided by the invention, state procedure is shut driving mechanical transmission module to switch to intelligent bicycle lock
In, key is shut to stopping continuously carrying out and shutting movement during touch-control long-pressing shuts key by starting touch-control long-pressing in user
And continue to detect whether lock switches to the state of shutting, while final lock switch state is fed back to user, thus can
Realization is shut automatically, and is reduced and shut failure rate, is avoided the occurrence of user and is mistakenly considered to shut successful phenomenon.
Further, it is contemplated that it is not moved to and is shut at the locked position of coupler finished there may be lock tongue during shutting, and
User stops the case where touch-control long-pressing shuts key, alternatively, detecting lock tongue moving direction again during shutting, there are obstacles
The case where object, is based on this, the above method to influence to shut movement next time further include:
It drives above-mentioned machine driving module to switch to above-mentioned intelligent bicycle lock in execution to shut in state procedure, it is lasting to control
Whether there are obstacles for above-mentioned infrared detection module, fingerprint identification module detection lock tongue moving direction;
When receiving to set back instruction or lock tongue moving direction is determined there are barrier and do not receive above-mentioned open
It shuts detection module and returns to above-mentioned intelligent bicycle lock in when shutting state, drive above-mentioned machine driving module by above-mentioned intelligent bicycle lock
Restore to unlocking condition.
In embodiment provided by the invention, when intelligent bicycle lock is shut unsuccessfully, user terminal is sent to the intelligent bicycle lock
Set back instruction, and intelligent bicycle lock receives this and sets back when instructing, alternatively, detecting that lock tongue is mobile again during shutting
Intelligent bicycle lock is restored to unlocking condition automatically, is shut next time so as to normally execute there are when the case where barrier in direction
Movement, meanwhile, if in the case where causing to shut failure because of spoke on cycle wheel or other barrier obstructions, convenient for using
Spoke on cycle wheel or other barriers are removed to lock tongue shift position by family.
Specifically, above-mentioned intelligent bicycle lock is switched to the state of shutting by the above-mentioned mechanical transmission module of lasting driving, comprising:
Drive above-mentioned machine driving module that above-mentioned intelligent bicycle lock is switched to the state of shutting;
It controls above-mentioned switch lock detection module and detects whether above-mentioned intelligent bicycle lock is in the state of shutting, if so, on determining
It states intelligent bicycle lock and shuts success;
If it is not, then continuing to drive above-mentioned machine driving module that above-mentioned intelligent bicycle lock is switched to the state of shutting, until determination
Number is shut greater than the first preset threshold or shuts the time greater than the second preset threshold.
Further, it is contemplated that in the case that the exceptions such as damage parts occurs in intelligent bicycle lock, even if user's long-pressing always
Long-pressing on user terminal shuts key, can not also intelligent bicycle lock be made to be switched to the state of shutting, at this point, illustrating that intelligent bicycle lock is different
Often, it needs to carry out to repair the intelligent bicycle lock, is based on this, the above method further include:
Judgement persistently shuts whether number is greater than the first preset threshold or persistently shuts the time whether to be greater than second default
Threshold value;
When shutting number greater than the first preset threshold or when shutting the time greater than the second preset threshold, it is determined that above-mentioned intelligence
Energy lock shuts exception, and shuts abnormal prompt information to the transmission of above-mentioned user terminal, and/or send and close to remote server
It one of locks abnormal prompt information, lock mark and is presently in location information or is a variety of.
Wherein, above-mentioned lock mark can be lock sequence number, in addition, may be used also when determining that intelligent bicycle lock shuts abnormal
With according to preset information sender formula to specified maintenance terminal transmission shut abnormal prompt information, lock mark and
It is presently in one of location information or a variety of, so that the corresponding service personnel of the maintenance terminal examines the intelligent bicycle lock
It repairs, which includes any one in following: short message, wechat, QQ or phone.
Further, abnormal prompt information is shut when server receives, lock identifies and lock is presently in position
When confidence ceases, the Auto-matching maintenance terminal nearest away from the intelligent bicycle lock, and the information sender formula of the maintenance terminal is issued
To intelligent bicycle lock, which receives the information sender formula for the maintenance terminal that server is sent, and according to the letter received
Breath sending method shuts abnormal prompt information, lock mark and be presently in position to the transmission of corresponding maintenance terminal to be believed
One of breath is a variety of so that maintenance terminal can reach abnormal lock position at the first time, to the exception lock into
Row maintenance.
In embodiment provided by the invention, when determining that intelligent bicycle lock shuts abnormal, it is automatically stopped and shuts movement, and
Corresponding prompt information is sent to user terminal, maintenance terminal or remote terminal, so that maintenance personal is to abnormal intelligent bicycle lock
It repairs, meanwhile, it reduces and is damaged because continuously carrying out to shut to act to lock components bring.
As shown in Fig. 2, a kind of preferred flow diagram for controlling intelligent bicycle lock and shutting method is given, specifically:
What module reception user terminal was sent by wireless communication shuts instruction;
Whether control switch lock detection module detection intelligent bicycle lock is in unlocking condition, if so, control infrared detection mould
Block detects lock tongue moving direction, and whether there are obstacles;
If it does not exist, then it drives mechanical transmission module execution to shut movement, i.e., intelligent bicycle lock is switched into the state of shutting, and
It receives the locking that switch lock detection module detects and judges signal, it is determined that car locking success;
If it exists and determine that switch lock detection module is not detected locking and judges signal, then controlling machine driving module will
Lock tongue is back to lockset position of coupler, and there are the prompt informations of barrier to user terminal transmission lock tongue moving direction;Secondary control again
Infrared detection module, fingerprint identification module detects lock tongue moving direction, and whether there are obstacles.
It is shut in method in control intelligent bicycle lock provided by the invention, this method comprises: receiving the pass that user terminal is sent
Lock instruction;Whether control switch lock detection module detection intelligent bicycle lock is in unlocking condition, if so, control infrared detection module, fingerprint identification module
Detecting lock tongue moving direction, whether there are obstacles;If it does not exist, then drive mechanical transmission module that intelligent bicycle lock is switched to pass
Lock status;If it exists, then to user terminal transmission lock tongue moving direction, there are the prompt informations of barrier.The embodiment of the present invention exists
Before execution shuts movement, first passing through infrared detection module, fingerprint identification module detection lock tongue moving direction, whether there are obstacles, only in determination
Out lock tongue moving direction be not present barrier when, just control machine driving module execute shuts movement, can prevent in this way due to
Lock tongue moving direction causes spoke to damage or to intelligence there are directly shutting in the case where spoke on wheel or other barriers
Energy lock causes centainly to damage.
The embodiment of the invention also provides a kind of control intelligent bicycle lock locking devices, as shown in figure 3, the device includes:
Wireless communication module 302, for receive user terminal transmission shut instruction;
Whether control module 304 is in unlocking condition for control switch lock detection module detection intelligent bicycle lock, if so,
Then controlling above-mentioned infrared detection module, fingerprint identification module detection lock tongue moving direction, whether there are obstacles;If it does not exist, then above-mentioned machinery is driven
Above-mentioned intelligent bicycle lock is switched to the state of shutting by transmission module;If it exists, then above-mentioned wireless communication module 302 is controlled to above-mentioned use
Family terminal sends lock tongue moving direction, and there are the prompt informations of barrier.
In embodiment provided by the invention, before execution shuts movement, infrared detection module, fingerprint identification module detection lock tongue is first passed through
Whether there are obstacles for moving direction, only when determining that barrier is not present in lock tongue moving direction, just controls machine driving
Module execution shut movement, can prevent in this way due to lock tongue moving direction there are spokes on wheel or other barriers the case where
Under, it directly shuts and spoke is caused to damage or cause centainly to damage to intelligent bicycle lock.
Further, it is above-mentioned shut instruction be above-mentioned user terminal according to the user received start touch-control long-pressing shut by
What key generated;
Above-mentioned control module 304 switches to above-mentioned intelligent bicycle lock specifically for the lasting above-mentioned machine driving module of driving
State is shut, above-mentioned intelligent bicycle lock is returned and is in until receiving above-mentioned switch lock detection module and shut state or receive use
The instruction that sets back that family terminal is sent;Shape is shut when receiving above-mentioned switch lock detection module and returning to above-mentioned intelligent bicycle lock and be in
When state, above-mentioned wireless communication module 302 is controlled to above-mentioned user terminal transmission intelligent bicycle lock and shuts successful prompt information;When connecing
Setting back when instructing for user terminal transmission is received, above-mentioned wireless communication module 302 is controlled to above-mentioned user terminal and sends intelligence
Energy lock shuts the prompt information of failure, and the above-mentioned instruction that sets back is that user terminal is long according to the user's stopping touch-control receiving
By shutting key and do not receive that above-mentioned intelligent bicycle lock returns shuts what successful prompt information generated.
In embodiment provided by the invention, state procedure is shut driving mechanical transmission module to switch to intelligent bicycle lock
In, key is shut to stopping continuously carrying out and shutting movement during touch-control long-pressing shuts key by starting touch-control long-pressing in user
And continue to detect whether lock switches to the state of shutting, while final lock switch state is fed back to user, thus can
Realization is shut automatically, and is reduced and shut failure rate, is avoided the occurrence of user and is mistakenly considered to shut successful phenomenon.
Further, above-mentioned control module 304 is also used to executing the above-mentioned machine driving module of driving for above-mentioned intelligent vehicle
Lock, which switches to, to be shut in state procedure, persistently controls above-mentioned infrared detection module, fingerprint identification module detection lock tongue moving direction with the presence or absence of obstacle
Object;It sets back instruction when receiving or determines lock tongue moving direction there are barrier and do not receive the inspection of above-mentioned switch lock
Survey module and return to above-mentioned intelligent bicycle lock and be in when shutting state, drive above-mentioned machine driving module by above-mentioned intelligent bicycle lock restore to
Unlocking condition.
In embodiment provided by the invention, when intelligent bicycle lock is shut unsuccessfully, user terminal is sent to the intelligent bicycle lock
Set back instruction, and intelligent bicycle lock receives this and sets back when instructing, alternatively, detecting that lock tongue is mobile again during shutting
Intelligent bicycle lock is restored to unlocking condition automatically, is shut next time so as to normally execute there are when the case where barrier in direction
Movement, meanwhile, if in the case where causing to shut failure because of spoke on cycle wheel or other barrier obstructions, convenient for using
Spoke on cycle wheel or other barriers are removed to lock tongue shift position by family.
Further, above-mentioned control module 304, specifically for driving above-mentioned machine driving module to cut above-mentioned intelligent bicycle lock
Shift to the state of shutting;It controls above-mentioned switch lock detection module and detects whether above-mentioned intelligent bicycle lock is in the state of shutting, if so, really
Fixed above-mentioned intelligent bicycle lock shuts success;If it is not, then continuing to drive above-mentioned machine driving module that above-mentioned intelligent bicycle lock is switched to pass
Lock status, until determination shuts number greater than the first preset threshold or shuts the time greater than the second preset threshold.
Further, above-mentioned control module 304, be also used to judge persistently shut number whether be greater than the first preset threshold or
Person persistently shuts whether the time is greater than the second preset threshold;When shutting number greater than the first preset threshold or shut the time and be greater than
When the second preset threshold, it is determined that above-mentioned intelligent bicycle lock shuts exception, and controls above-mentioned wireless communication module 302 to above-mentioned user
Terminal transmission shuts abnormal prompt information, and/or to remote server transmission shut abnormal prompt information, lock mark,
And one of it is presently in location information or a variety of.
In embodiment provided by the invention, when determining that intelligent bicycle lock shuts abnormal, it is automatically stopped and shuts movement, and
Corresponding prompt information is sent to user terminal, maintenance terminal or remote terminal, so that maintenance personal is to abnormal intelligent bicycle lock
It repairs, meanwhile, it reduces and is damaged because continuously carrying out to shut to act to lock components bring.
In control intelligent bicycle lock locking device provided in an embodiment of the present invention, before execution shuts movement, first pass through
Infrared detection module, fingerprint identification module detects lock tongue moving direction, and whether there are obstacles, and only determining lock tongue moving direction, there is no obstacles
When object, just controls the execution of machine driving module and shut movement, can be prevented in this way since there are spokes on wheel for lock tongue moving direction
In the case where item or other barriers, directly shuts and spoke is caused to damage or cause centainly to damage to intelligent bicycle lock;Into one
Step, it is shut in state procedure driving mechanical transmission module to switch to intelligent bicycle lock, by starting touch-control long-pressing in user
Key is shut to stopping during touch-control long-pressing shuts key, continuously carries out to shut and acts and continue to detect whether lock switches to pass
Lock status, while final lock switch state is fed back into user, it is shut automatically to can realize, and reduce and shut mistake
Rate is lost, user is avoided the occurrence of and is mistakenly considered to shut successful phenomenon;Further, when intelligent bicycle lock is shut unsuccessfully, user is whole
It holds to intelligent bicycle lock transmission and sets back instruction, intelligent bicycle lock receives this and sets back when instructing, alternatively, shutting process
In again detect that lock tongue moving direction there are when the case where barrier, automatically restores intelligent bicycle lock to unlocking condition, so that just
It often executes and shuts movement next time, meanwhile, if causing to shut because of spoke on cycle wheel or other barrier obstructions
In the case where failure, spoke on cycle wheel or other barriers are removed to lock tongue shift position convenient for user;And into
One step, when determining that intelligent bicycle lock shuts abnormal, be automatically stopped and shut movement, and to user terminal, maintenance terminal or
Remote terminal sends corresponding prompt information, so that maintenance personal repairs abnormal intelligent bicycle lock, meanwhile, it reduces because continuing
Execution shuts movement and damages to lock components bring.
The embodiment of the invention also provides a kind of intelligent bicycle locks, such as Fig. 4, including master controller 110, switch lock detection module
120, machine driving module 130 and infrared detection module, fingerprint identification module 140, above-mentioned switch lock detection module 120, above-mentioned machine driving module
130 and above-mentioned infrared detection module, fingerprint identification module 140 be connected with above-mentioned master controller 110, above-mentioned master controller 110 includes as in Fig. 3
Control intelligent bicycle lock locking device.
Wherein, above-mentioned intelligent bicycle lock further include: power supply module 160, the power supply module 160 respectively with above-mentioned master controller
110, switch lock detection module 120, machine driving module 130 are connected with infrared detection module, fingerprint identification module 140, and provide for modules
Power supply.
It is powered using 18650 rechargeable battery to entire intelligent bicycle lock specifically, above-mentioned power supply module 160 is main;
Wireless communication module 302 in above-mentioned master controller 110 can completely shut movement by bluetooth and user terminal communication;On
Stating user terminal is cell phone application end;Above-mentioned machine driving module 130 is mainly responsible for the movement that lock tongue is shut and realizes;Above-mentioned switch
Lock detection module 120 is responsible for the state-detection and state feedback of switch lock;Above-mentioned infrared detection module, fingerprint identification module 140 is mainly responsible for detection lock
Whether tongue exit has barrier obstruction.
As shown in figure 5, a kind of mechanical structure schematic diagram of intelligent bicycle lock is given, specifically: it is also set inside intelligent bicycle lock
It is equipped with lock tongue 210, intelligent bicycle lock outer surface is provided with lock tongue outlet, if master controller 110 receives the pass of user terminal transmission
Lock instruction then controls machine driving module 130 and lock tongue 210 is driven to extend out to locked position of coupler from lock tongue outlet.By taking Fig. 5 as an example, lock
Tongue outlet is in Fig. 5 shown in label A, and locked position of coupler is shown in label B in Fig. 5.
As shown in figure 5, machine driving module 130 includes motor 220, worm gear 230 and worm screw 240, motor 220 is in main control
Drive worm gear 230 is rotated along the first locking direction under the control of device 110 (i.e. circuit board 270), and worm gear 230 is along the first locking direction
When rotation, worm screw 240 is driven to rotate along the second locking direction, when worm screw 240 rotates along the second locking direction, drives lock tongue 210
It is extend out to locked position of coupler from lock tongue outlet, shuts movement to realize.
Above-mentioned switch lock detection module 120 includes: unlocking detector and locking detector, which includes first
Whether microswitch 250, the lock tongue 210 that the first microswitch 250 is used to detect intelligent bicycle lock are in contact with the first contact, if inspection
The lock tongue 210 for measuring intelligent bicycle lock is in contact with the first contact, it is determined that intelligent bicycle lock is in unlocking condition.
Be latched detector include the second microswitch 260, for detect intelligent bicycle lock lock tongue 210 whether with the second contact
It is in contact, if detecting, the lock tongue 210 of intelligent bicycle lock is in contact with the second contact, it is determined that intelligent bicycle lock is in and shuts state.
Specifically, as shown in figure 5, being provided with the first contact, the second microswitch on the elastic slice of the first microswitch 250
The second contact is provided on 260 elastic slice, the first touching when intelligent bicycle lock is unlocked, on lock tongue 210 and the first microswitch 250
Point is in contact, and is detached from the second contact on the second microswitch 260, and the first microswitch 250 is opened to the transmission of master controller 110
Lock status signal.When intelligent bicycle lock locking, the first contact on lock tongue 210 and the first microswitch 250 is detached from, micro- with second
The second contact on dynamic switch 260 is in contact, and the second microswitch 260 shuts status signal to the transmission of master controller 110.
As shown in Figure 6 a, the structural schematic diagram of barrier is not present in the lock tongue moving direction for giving intelligent bicycle lock, and
Shown in Fig. 6 b, giving the lock tongue moving direction of intelligent bicycle lock, there are the structural schematic diagrams of barrier, wherein above-mentioned infrared detection
Module 140 includes RF transmitter 1402 and infrared receiver 1401, which is set to lock tongue and goes out
Mouth goes out, which is set to locked position of coupler,
In Fig. 6 a, since barrier being not present between RF transmitter 1402 and infrared receiver 1401, at this time
Infrared receiver 1401 can receive the infrared ray of the sending of RF transmitter 1402, and to the feedback of master controller 110
Receive infrared signal, it is determined that barrier is not present in lock tongue moving direction;
In figure 6b, red at this time since there are barriers between RF transmitter 1402 and infrared receiver 1401
Outer line receiver 1401 cannot receive the infrared ray of the sending of RF transmitter 1402, and not connect to the feedback of master controller 110
Receive infrared signal, it is determined that there are barriers for lock tongue moving direction;
It should be noted that above-mentioned RF transmitter 1402 and infrared receiver 1401 can exchange position, as long as
Can carrying out detection lock tongue moving direction, whether there are obstacles.
The embodiment of the invention also provides a kind of intelligent bicycle, the intelligence bicycle include: such as Fig. 4 or as shown in Figure 5
Intelligent bicycle lock;
Module 302 is connected with above-mentioned user terminal 10 with communication the intelligent bicycle lock by wireless communication,
In, above-mentioned wireless communication module 302 includes: one of bluetooth communication, NFC communication module, wifi module or a variety of.
The embodiment of the invention also provides a kind of control intelligent bicycle locks to shut system, as shown in fig. 7, the system includes: use
Family terminal 10 and above-mentioned intelligent bicycle 20, the intelligence bicycle 20 are led to by above-mentioned intelligent bicycle lock with the user terminal 10
Letter.
It shuts in system in intelligent bicycle lock provided by the invention, intelligent bicycle 20 and control intelligent bicycle lock, is shut in execution
Before movement, first passing through the detection of infrared detection module, fingerprint identification module 140 lock tongue moving direction, whether there are obstacles, is only determining lock tongue
When barrier is not present in moving direction, just controls the execution of machine driving module 130 and shut movement, can prevent due to lock tongue in this way
Moving direction causes spoke to damage or to intelligent vehicle there are directly shutting in the case where spoke on wheel or other barriers
Lock causes centainly to damage;Further, intelligent bicycle lock is switched in driving mechanical transmission module 130 and is shut in state procedure,
Key is shut to stopping during touch-control long-pressing shuts key by starting touch-control long-pressing in user, is continuously carried out to shut and is acted and hold
Whether continuous detection lock switches to the state of shutting, while final lock switch state is fed back to user, to can realize
Automatically it shuts, and reduces and shut failure rate, avoid the occurrence of user and be mistakenly considered to shut successful phenomenon;Further, work as intelligence
When energy lock is shut unsuccessfully, user terminal sends the instruction that sets back to the intelligent bicycle lock, and intelligent bicycle lock receives recovery original
When bit instruction, alternatively, detecting lock tongue moving direction again during shutting there are when the case where barrier, automatically by intelligent vehicle
Lock restores to unlocking condition, shuts movement next time so as to normally execute, meanwhile, if because spoke on cycle wheel or its
His barrier obstruction and cause in the case where shutting failure, spoke on cycle wheel or other barriers are moved convenient for user
It opens to lock tongue shift position;Further, it when determining that intelligent bicycle lock shuts abnormal, is automatically stopped and shuts movement, and to
User terminal, maintenance terminal or remote terminal send corresponding prompt information so that maintenance personal to abnormal intelligent bicycle lock into
Row maintenance, meanwhile, it reduces and is damaged because continuously carrying out to shut to act to lock components bring.
Control intelligent bicycle lock locking device provided by the embodiment of the present invention can be the specific hardware or peace in equipment
Loaded on the software or firmware etc. in equipment.The technical effect of device provided by the embodiment of the present invention, realization principle and generation
Identical with preceding method embodiment, to briefly describe, Installation practice part does not refer to place, can refer to preceding method embodiment
Middle corresponding contents.It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is
The specific work process of system, device and unit, the corresponding process during reference can be made to the above method embodiment, it is no longer superfluous herein
It states.
In embodiment provided by the present invention, it should be understood that disclosed device and method, it can be by others side
Formula is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one kind are patrolled
Function division is collected, there may be another division manner in actual implementation, in another example, multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in embodiment provided by the invention can integrate in one processing unit, it can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited
The various media that can store program code such as reservoir (Random Access Memory, RAM), magnetic or disk.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing, in addition, term " the
One ", " second ", " third " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection 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, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention.Should all it cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.