Smart lock, the blocking method of smart lock, intelligent bicycle
Technical field
The present invention relates to smart lock technical field, in particular to a kind of smart lock, the blocking method of smart lock, intelligence
Can bicycle.
Background technology
The life idea of people's trip and response green low-carbon (LC) for convenience, many cities all establish the shared system of bicycle
System, for citizen provide substantial amounts of public bicycle, the life for giving people brings greatly convenient.
At present, share in bicycle system, be that each bicycle is equipped with lock, when user needs to use bicycle, user
Using the advance password or key operated lock for obtaining, using bicycle, when user stops cycling, be fixed on for bicycle by user
On spud pile, and close lock.
Existing bicycle lock is mostly transmission lock, such as utilizes key operated lock, also has part bicycle to use electronics
Lock, the lock such as opened using radio-frequency card or password, however, using lock of the prior art, after user leaves, if forgetting
Shut, then vehicle may be caused to lose, it is seen then that lock of the prior art has certain potential safety hazard at the anti-lost aspect of vehicle.
The content of the invention
In view of this, it is an object of the invention to provide a kind of smart lock, the blocking method of smart lock, intelligent bicycle, energy
Automatic blocking is enough realized, is alleviated lock of the prior art and be there is a problem of certain potential safety hazard at the anti-lost aspect of vehicle.
In a first aspect, the embodiment of the invention provides a kind of smart lock, the smart lock is internally provided with main controller, clock
Module and machine driving module;
The clock module is used to provide fiducial time to the main controller, and the main controller is used for according to the clock mould
Whether the fiducial time detection current time that block is provided is the first Preset Time;
If the main controller detects the current time for first Preset Time, the main controller control is described
Machine driving module performs block action.
With reference in a first aspect, the embodiment of the invention provides first aspect the first possible implementation method, wherein, it is described
Unlocking detector is additionally provided with inside smart lock;
If the main controller detects the current time for first Preset Time, by the unlocking detector
Whether the smart lock is detected in unlocking condition, if so, then controlling the machine driving module to perform the block action.
With reference in a first aspect, the embodiment of the invention provides second possible implementation method of first aspect, wherein, it is described
Locking detector is additionally provided with inside smart lock;
The main controller after controlling the machine driving module to perform block action, also by the locking detector
Whether the smart lock is detected in blocking, if it is not, then the machine driving module execution locking is moved described in Repetitive controller
Make, and whether iterate through the locking detector detection smart lock in the blocking, until detecting described
Smart lock is in the blocking.
With reference in a first aspect, the embodiment of the invention provides first aspect the third possible implementation method, wherein, it is described
Dead bolt is additionally provided with inside smart lock;The smart lock outer surface is provided with dead bolt outlet;
If the main controller detects the current time for first Preset Time, the machine driving mould is controlled
Block drives the dead bolt to extend out to locked position of coupler from dead bolt outlet.
The third possible implementation method with reference to first aspect, the embodiment of the invention provides the 4th kind of possibility of first aspect
Implementation method, wherein, the machine driving module include motor, worm gear and worm screw;
The motor drives the worm gear to be rotated along the first locking direction under the control of the main controller, the worm gear edge
When the first locking direction rotates, the worm screw is driven to be rotated along the second locking direction, the worm screw is along second locking
When direction rotates, the dead bolt is driven to extend out to locked position of coupler from dead bolt outlet.
The first possible implementation method with reference to first aspect, the embodiment of the invention provides the 5th kind of possibility of first aspect
Implementation method, wherein, the unlocking detector include the first microswitch, for detect the smart lock dead bolt whether with
First contact is in contact, if the dead bolt for detecting the smart lock is in contact with first contact, it is determined that the smart lock
In the unlocking condition.
With reference to second possible implementation method of first aspect, the 6th kind of possibility of first aspect is the embodiment of the invention provides
Implementation method, wherein, the locking detector include the second microswitch, for detect the smart lock dead bolt whether with
Second contact is in contact, if the dead bolt for detecting the smart lock is in contact with second contact, it is determined that the smart lock
In the blocking.
With reference in a first aspect, the embodiment of the invention provides the 7th kind of possible implementation method of first aspect, wherein, it is described
Whether main controller is the second Preset Time always according to the fiducial time detection current time that the clock module is provided;
If the main controller detects the current time for second Preset Time, the machine driving mould is controlled
Block performs unlocking action.
Second aspect, the embodiment of the invention provides a kind of blocking method of smart lock, and the smart lock is above-mentioned first
Smart lock described in aspect, methods described includes:
The clock module provides fiducial time to the main controller;
Whether the main controller is first pre- according to the fiducial time detection current time that the clock module is provided
If the time;
If the main controller detects the current time for first Preset Time, the machine driving mould is controlled
Block performs block action.
The third aspect, the embodiment of the invention provides a kind of intelligent bicycle, and the intelligent bicycle includes above-mentioned first aspect
Described smart lock.
By the smart lock in the embodiment of the present invention, the blocking method of smart lock, intelligent bicycle, when current time reaches the
During one Preset Time, smart lock can automatically perform block action.Compared with lock of the prior art, in the embodiment of the present invention
Smart lock, the blocking method of smart lock, intelligent bicycle, automatic blocking can be at a time realized, so as to prevent vehicle from losing
Lose, alleviate lock of the prior art and there is a problem of certain potential safety hazard at the anti-lost aspect of vehicle.
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 is the electrical block diagram of smart lock provided in an embodiment of the present invention;
Fig. 2 is the mechanical structure schematic diagram of smart lock provided in an embodiment of the present invention;
The first schematic flow sheet of the blocking method of the smart lock that Fig. 3 is provided by the embodiment of the present invention;
Second schematic flow sheet of the blocking method of the smart lock that Fig. 4 is provided by the embodiment of the present invention.
Reference:
Main controller 110, clock module 120, machine driving module 130, unlocking detector 140, locking detector 150, confession
Electric module 160, stand-by power supply 170;
Dead bolt 210, motor 220, worm gear 230, worm screw 240, the first microswitch 250, the second microswitch 260, circuit
Plate 270.
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.
There is a problem of certain potential safety hazard at the anti-lost aspect of vehicle in view of lock of the prior art, the present invention is implemented
Example provides a kind of smart lock, the blocking method of smart lock, intelligent bicycle, can realize automatic blocking, alleviates in the prior art
Lock there is a problem of certain potential safety hazard at the anti-lost aspect of vehicle, be specifically described below by embodiment.
Embodiment one
First embodiment of the invention provides a kind of smart lock, and the smart lock can be used in intelligent bicycle, and Fig. 1 is the present invention
The electrical block diagram of the smart lock that embodiment is provided, as shown in figure 1, the smart lock is internally provided with main controller 110, clock
Module 120 and machine driving module 130;
Clock module 120 is used to provide fiducial time to main controller 110, and main controller 110 is used to be carried according to clock module 120
Whether the fiducial time detection current time of confession is the first Preset Time;
If main controller 110 detects current time for the first Preset Time, the control machinery transmission module of main controller 110
130 perform block action.
In the embodiment of the present invention, when current time reaches the first Preset Time, smart lock can automatically perform locking and move
Make.Compared with lock of the prior art, the smart lock in the embodiment of the present invention can at a time realize automatic blocking, from
And prevent vehicle from losing, alleviate lock of the prior art and there is a problem of certain potential safety hazard at the anti-lost aspect of vehicle.
In shared bicycle system, during using smart lock car locking in the embodiment of the present invention, can be arranged as required to
One Preset Time, preferably the first Preset Time are the time that user does not cycle, in the first Preset Time in shared bicycle system
All bicycles carry out automatic blocking, so as to prevent vehicle from losing.Wherein, the first Preset Time be preferably arranged to 3 points of morning or
Person's two o'clock in the morning.
In shared bicycle system, during using smart lock car locking in the embodiment of the present invention, realize closing automatically based on the time
Lock, because the first Preset Time can be set in lock production process, therefore realizes automatic blocking in the first Preset Time
It is a kind of Automated condtrol of the cloud platform to bicycle of shared bicycle system, based on this cloud platform to the control mode of bicycle,
The situation of vehicle privatization can be avoided.
In the present embodiment, clock module 120 includes clock chip and crystal oscillator, and crystal oscillator provides time source to clock chip, when
The time source that clock chip is provided according to crystal oscillator provides fiducial time to main controller 110.Main controller 110 is responsible for the function control of smart lock
System, can be MCU (Microcontroller Unit, micro-control unit), the benchmark that main controller 110 is provided according to clock chip
Time carries out timing, and the first Preset Time, such as 3:00 AM are also previously provided with inside main controller 110, and the detection of main controller 110 is worked as
It is preceding whether to reach the first Preset Time, if reaching, sent to machine driving module 130 and shut instruction, machine driving module 130
The instruction that shuts according to receiving is shut.
Fig. 2 is the mechanical structure schematic diagram of smart lock provided in an embodiment of the present invention, as shown in Fig. 2 smart lock inside is also
Dead bolt 210 is provided with, smart lock outer surface is provided with dead bolt outlet, if main controller 110 detects current time for first presets
Time, then sent to machine driving module 130 and shut instruction, control machinery transmission module 130 drives dead bolt 210 to be exported from dead bolt
It extend out to locked position of coupler.By taking Fig. 2 as an example, shown in label A in Fig. 2, locked position of coupler is in Fig. 2 shown in label B for dead bolt outlet.
As shown in Fig. 2 machine driving module 130 includes motor 220, worm gear 230 and worm screw 240, motor 220 is in main controller
Drive worm gear 230 rotates along the first locking direction under 110 control, when worm gear 230 rotates along the first locking direction, drives worm screw
240 rotate along the second locking direction, when worm screw 240 rotates along the second locking direction, drive dead bolt 210 to be extend out to from dead bolt outlet
Locked position of coupler, so as to realize block action.
Specifically, main controller 110 carries out time detecting according to the fiducial time that clock module 120 is provided, if main controller 110
Current time is detected for the first Preset Time, is then sent to the motor 220 in machine driving module 130 and is shut instruction, motor
220 are received and shut the output shaft of motor 220 after instruction and start rotation, and the edge of worm gear 230 is driven when the output shaft of motor 220 rotates
First locking direction rotates, and when worm gear 230 rotates along the first locking direction, drives worm screw 240 to be rotated along the second locking direction, snail
When bar 240 rotates along the second locking direction, engaged by gear and drive dead bolt 210 to extend out to locked position of coupler from dead bolt outlet, from
And realize block action.
Correspondingly, when under control of the machine driving module 130 in main controller 110 perform unlocking action when, main controller 110 to
Motor 220 in machine driving module 130 sends unlocking instruction, and motor 220 receives the output shaft of motor 220 after unlocking instruction
Start rotation, drive worm gear 230 to be rotated along the first unlocking direction when the output shaft of motor 220 rotates, worm gear 230 is unlocked along first
When direction rotates, worm screw 240 is driven to be rotated along the second unlocking direction, when worm screw 240 rotates along the second unlocking direction, by gear
Engagement drives dead bolt 210 to bounce back to dead bolt outlet from locked position of coupler, so as to realize unlocking action.
Wherein, motor 220 is direct current generator, the first locking direction unlocked with first it is in opposite direction, the second locking direction with
Second unlocks in the opposite direction.
In view of when smart lock is in and shuts state in the first Preset Time, without repeating to shut, therefore such as Fig. 1 institutes
Show, unlocking detector 140 is additionally provided with inside smart lock, if main controller 110 detects current time for the first Preset Time,
Detect whether smart lock is in unlocking condition by unlocking detector 140, if so, then the execution of control machinery transmission module 130 is closed
Lock is acted, if it is not, not operated.
Correspondingly, in order to ensure block action perform after smart lock be in blocking, as shown in figure 1, inside smart lock
Be additionally provided with locking detector 150, main controller 110 after control machinery transmission module 130 performs block action, also by closing
Whether the lock detection of detector 150 smart lock is in blocking, if it is not, then Repetitive controller machine driving module 130 performs locking
Action, and whether the detection of locking detector 150 smart lock is iterated through in blocking, closed until detecting smart lock and being in
Lock status.
As shown in Fig. 2 unlocking detector 140 includes the first microswitch 250, the first microswitch 250 is used to detect intelligence
Whether the dead bolt 210 that can be locked is in contact with the first contact, if the dead bolt 210 for detecting smart lock is in contact with the first contact,
Determine that smart lock is in unlocking condition.
Locking detector 150 includes the second microswitch 260, and whether the dead bolt 210 for detecting smart lock touches with second
Point is in contact, if detecting the dead bolt 210 of smart lock and the second contact is in contact, it is determined that smart lock is in blocking.
Specifically, as shown in Fig. 2 being provided with the first contact, the second microswitch on the shell fragment of the first microswitch 250
The second contact is provided with 260 shell fragment, when smart lock is unlocked, the first contact on the microswitch 250 of dead bolt 210 and first
It is in contact, departs from the second contact on the second microswitch 260, the first microswitch 250 sends unlocking shape to main controller 110
State signal.When smart lock locking, the first contact on the microswitch 250 of dead bolt 210 and first departs from, with the second microswitch
The second contact on 260 is in contact, and the second microswitch 260 sends blocking signal to main controller 110.
As shown in figure 1, power supply module 160 and stand-by power supply 170 are additionally provided with inside smart lock in the embodiment of the present invention,
Power supply module 160 mainly use 18650 rechargeable battery for whole smart lock is powered, and stand-by power supply 170 is for being clock mould
Block 120 is powered, and uses double loop power supply to ensure that time reference will not entanglement for the power supply of clock module 120.
As shown in Fig. 2 power supply module 160 is located at the top of dead bolt 210 in Fig. 2, circuit board is additionally provided with inside smart lock
In 270, Fig. 2.Circuit board 270 is located at the right side of dead bolt 210, including main controller 110, clock module 120 and stand-by power supply
170。
Further, in order to realize being unlocked in predetermined time, in the embodiment of the present invention, main controller 110 is always according to clock mould
Whether the fiducial time detection current time that block 120 is provided is the second Preset Time, if main controller 110 detects current time being
Second Preset Time, then control machinery transmission module 130 perform unlocking action.
110 control machinery transmission module of main controller 130 performs the action unlocked and is specially:The control machinery of main controller 110 is passed
Dynamic model block 130 drives dead bolt 210 to bounce back to dead bolt 210 from locked position of coupler and exports.
To sum up, by the smart lock in the embodiment of the present invention, it is possible to increase the security of vehicle, pre- anti-vehicle is lost, and
Pre- anti-vehicle privatization.
Embodiment two
Second embodiment of the invention provides a kind of blocking method of smart lock, and the smart lock is in above-described embodiment one
Smart lock, as shown in figure 3, the method includes:
Step S301, clock module provides fiducial time to main controller;
Step S302, when whether main controller is first default according to the fiducial time detection current time that clock module is provided
Between;
Step S303, if main controller detects current time for the first Preset Time, control machinery transmission module is performed
Block action.
In the embodiment of the present invention, when current time reaches the first Preset Time, smart lock can automatically perform locking and move
Make.Compared with lock of the prior art, the blocking method of the smart lock in the embodiment of the present invention can be realized at a time
Automatic blocking, so as to prevent vehicle from losing, alleviates lock of the prior art and there is certain potential safety hazard at the anti-lost aspect of vehicle
Problem.
In shared bicycle system, during using blocking method car locking in the embodiment of the present invention, can be arranged as required to
First Preset Time, preferably the first Preset Time are the time that user does not cycle, in the first Preset Time to shared bicycle system
Interior all bicycles carry out automatic blocking, so as to prevent vehicle from losing.Wherein, the first Preset Time is preferably arranged to 3 points of morning
Or two o'clock in the morning.
In shared bicycle system, during using blocking method car locking in the embodiment of the present invention, realized based on the time automatic
Locking, because the first Preset Time can be research staff's setting in lock production process, therefore in the first Preset Time reality
Existing automatic blocking is a kind of Automated condtrol of the cloud platform to bicycle of shared bicycle system, based on this cloud platform to bicycle
Control mode, can avoid the situation of vehicle privatization.
Further, as shown in figure 4, another blocking method in the present embodiment is comprised the following steps:
Step S401, clock module provides fiducial time to main controller;
Step S402, when whether main controller is first default according to the fiducial time detection current time that clock module is provided
Between, if so, then performing step S403, otherwise terminate;
Step S403, main controller detects whether smart lock is in unlocking condition by unlocking detector, if so, then performing step
Rapid S404, otherwise terminates;
Step S404, main controller control machinery transmission module performs block action;
Step S405, main controller detects whether smart lock is in blocking by locking detector, if so, then terminate,
Otherwise, return to step S404.
By the blocking method of the smart lock in Fig. 4, to ensure that and carry out locking when smart lock is in unlocking condition, and
Ensure smart lock locking success by way of blocking is detected.
Embodiment three
Third embodiment of the invention provides a kind of intelligent bicycle, and the intelligent bicycle includes the smart lock in embodiment one.
In the embodiment of the present invention, when current time reaches the first Preset Time, smart lock can automatically perform locking and move
Make.Compared with lock of the prior art, the intelligent bicycle in the embodiment of the present invention can at a time realize automatic blocking,
So as to prevent vehicle from losing, alleviate lock of the prior art and there is a problem of certain potential safety hazard at the anti-lost aspect of vehicle.
In shared bicycle system, during using intelligent bicycle in the embodiment of the present invention, first can be arranged as required to
Preset Time, preferably the first Preset Time are the time that user does not cycle, in the first Preset Time in shared bicycle system
All bicycles carry out automatic blocking, so as to prevent vehicle from losing.Wherein, the first Preset Time be preferably arranged to 3 points of morning or
Two o'clock in the morning.
In shared bicycle system, during using intelligent bicycle in the embodiment of the present invention, automatic blocking is realized based on the time,
Because the first Preset Time can be research staff's setting in lock production process, therefore realized in the first Preset Time automatic
Locking is a kind of Automated condtrol of the cloud platform to bicycle of shared bicycle system, based on this cloud platform to the controlling party of bicycle
Formula, can avoid the situation of vehicle privatization.
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.