Disclosure of Invention
In view of this, the invention aims to provide an intelligent lock, a locking method of the intelligent lock and an intelligent bicycle, which can realize automatic locking and solve the problem that a vehicle lock in the prior art has certain potential safety hazard in the aspect of vehicle anti-loss.
In a first aspect, an embodiment of the present invention provides an intelligent lock, where a master controller, a clock module, and a mechanical transmission module are arranged inside the intelligent lock;
the clock module is used for providing reference time for the master controller, and the master controller is used for detecting whether the current time is first preset time according to the reference time provided by the clock module;
if the main controller detects that the current time is the first preset time, the main controller controls the mechanical transmission module to execute a locking action.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein an unlocking detector is further disposed inside the smart lock;
if the main controller detects that the current time is the first preset time, whether the intelligent lock is in an unlocking state is detected through the unlocking detector, and if yes, the mechanical transmission module is controlled to execute the locking action.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, wherein a lock detector is further disposed inside the smart lock;
the main controller controls the mechanical transmission module to execute a locking action, and then detects whether the intelligent lock is in a locking state through the locking detector, if not, the main controller repeatedly controls the mechanical transmission module to execute the locking action, and repeatedly detects whether the intelligent lock is in the locking state through the locking detector until the intelligent lock is detected to be in the locking state.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein a lock tongue is further disposed inside the smart lock; a bolt outlet is formed in the outer surface of the intelligent lock;
if the main controller detects that the current time is the first preset time, the main controller controls the mechanical transmission module to drive the lock tongue to extend out of the lock tongue outlet to a locking position.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the mechanical transmission module includes a motor, a worm wheel, and a worm;
the motor is in drive under the control of master controller the worm wheel is rotatory along first shutting direction, the worm wheel is followed when first shutting direction is rotatory, drive the worm is rotatory along second shutting direction, the worm is followed when second shutting direction is rotatory, drive the spring bolt is followed the spring bolt export stretches out to the shutting position.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the unlocking detector includes a first micro switch, and is configured to detect whether a locking bolt of the smart lock is in contact with a first contact, and if it is detected that the locking bolt of the smart lock is in contact with the first contact, it is determined that the smart lock is in the unlocked state.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, wherein the lock-out detector includes a second micro switch, and is configured to detect whether a lock tongue of the smart lock is in contact with a second contact, and determine that the smart lock is in the lock-out state if the lock tongue of the smart lock is detected to be in contact with the second contact.
With reference to the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, wherein the master further detects whether the current time is a second preset time according to the reference time provided by the clock module;
and if the main controller detects that the current time is the second preset time, controlling the mechanical transmission module to execute an unlocking action.
In a second aspect, an embodiment of the present invention provides a locking method for an intelligent lock, where the intelligent lock is the intelligent lock in the first aspect, and the method includes:
the clock module provides reference time to the master controller;
the master controller detects whether the current time is first preset time according to the reference time provided by the clock module;
and if the main controller detects that the current time is the first preset time, controlling the mechanical transmission module to execute a locking action.
In a third aspect, an embodiment of the present invention provides an intelligent bicycle, where the intelligent bicycle includes the intelligent lock according to the first aspect.
By the intelligent lock, the locking method of the intelligent lock and the intelligent bicycle, when the current time reaches the first preset time, the intelligent lock can automatically execute the locking action. Compared with the vehicle lock in the prior art, the intelligent lock, the locking method of the intelligent lock and the intelligent bicycle in the embodiment of the invention can realize automatic locking at a certain moment, so that the vehicle is prevented from being lost, and the problem that the vehicle lock in the prior art has certain potential safety hazard in the aspect of vehicle anti-loss is solved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In consideration of the problem that a vehicle lock in the prior art has a certain potential safety hazard in the aspect of vehicle anti-loss, embodiments of the present invention provide an intelligent lock, a locking method of the intelligent lock, and an intelligent bicycle, which can achieve automatic locking, and alleviate the problem that the vehicle lock in the prior art has a certain potential safety hazard in the aspect of vehicle anti-loss, and the following is described in detail through embodiments.
Example one
A first embodiment of the present invention provides an intelligent lock, which can be used for an intelligent bicycle, and fig. 1 is a schematic circuit structure diagram of the intelligent lock according to the embodiment of the present invention, as shown in fig. 1, amaster controller 110, aclock module 120 and a mechanical transmission module 130 are disposed inside the intelligent lock;
theclock module 120 is configured to provide a reference time to themaster controller 110, and themaster controller 110 is configured to detect whether the current time is a first preset time according to the reference time provided by theclock module 120;
if themain controller 110 detects that the current time is the first preset time, themain controller 110 controls the mechanical transmission module 130 to perform a locking action.
In the embodiment of the invention, when the current time reaches the first preset time, the intelligent lock can automatically execute the locking action. Compared with the vehicle lock in the prior art, the intelligent lock in the embodiment of the invention can realize automatic locking at a certain moment, thereby preventing the vehicle from being lost and relieving the problem that the vehicle lock in the prior art has certain potential safety hazard in the aspect of vehicle anti-loss.
In the shared bicycle system, when the intelligent lock is applied to locking the bicycle in the embodiment of the invention, first preset time can be set according to needs, preferably the first preset time is the time when a user does not ride the bicycle, and all bicycles in the shared bicycle system are automatically locked at the first preset time, so that the vehicle is prevented from being lost. Wherein, the first preset time is preferably set to three points in the morning or two points in the morning.
In the shared bicycle system, when the intelligent lock is applied to locking the bicycle, automatic locking is realized based on time, and the first preset time can be set in the production process of the bicycle lock, so that the automatic locking realized at the first preset time is automatic control of the cloud platform of the shared bicycle system on the bicycle, and the condition of vehicle privatization can be avoided based on the control mode of the cloud platform on the bicycle.
In this embodiment, theclock module 120 includes a clock chip and a crystal oscillator, the crystal oscillator provides a time source for the clock chip, and the clock chip provides the reference time to themaster controller 110 according to the time source provided by the crystal oscillator. Themain controller 110 is responsible for controlling functions of the intelligent lock, and may be an MCU (micro controller Unit), themain controller 110 performs timing according to a reference time provided by a clock chip, a first preset time is preset inside themain controller 110, if the time is 3 am, themain controller 110 detects whether the current time reaches the first preset time, if the current time reaches the first preset time, a lock closing instruction is sent to the mechanical transmission module 130, and the mechanical transmission module 130 performs lock closing according to the received lock closing instruction.
Fig. 2 is a schematic mechanical structure diagram of the intelligent lock according to the embodiment of the present invention, as shown in fig. 2, alock tongue 210 is further disposed inside the intelligent lock, a lock tongue outlet is disposed on an outer surface of the intelligent lock, and if themain controller 110 detects that the current time is the first preset time, a lock closing instruction is sent to the mechanical transmission module 130, and the mechanical transmission module 130 is controlled to drive thelock tongue 210 to extend out from the lock tongue outlet to a locking position. Taking fig. 2 as an example, the outlet of the latch bolt is indicated by reference sign a in fig. 2, and the locking position is indicated by reference sign B in fig. 2.
As shown in fig. 2, the mechanical transmission module 130 includes amotor 220, aworm wheel 230 and aworm 240, themotor 220 drives theworm wheel 230 to rotate along a first locking direction under the control of themain controller 110, theworm wheel 230 drives theworm 240 to rotate along a second locking direction when rotating along the first locking direction, and theworm 240 drives thelatch 210 to extend out from the latch outlet to a locking position when rotating along the second locking direction, so as to implement a locking action.
Specifically, themaster controller 110 performs time detection according to the reference time provided by theclock module 120, if themaster controller 110 detects that the current time is a first preset time, a lock closing instruction is sent to themotor 220 in the mechanical transmission module 130, themotor 220 starts to rotate after receiving the lock closing instruction, the output shaft of themotor 220 drives theworm wheel 230 to rotate along the first locking direction when rotating, theworm wheel 230 drives theworm 240 to rotate along the second locking direction when rotating along the first locking direction, and thebolt 210 is driven to extend out from the bolt outlet to the locking position through gear engagement when theworm 240 rotates along the second locking direction, so that a locking action is realized.
Correspondingly, when the mechanical transmission module 130 performs an unlocking action under the control of themaster controller 110, themaster controller 110 sends an unlocking instruction to themotor 220 in the mechanical transmission module 130, themotor 220 starts to rotate after receiving the unlocking instruction, the output shaft of themotor 220 drives theworm wheel 230 to rotate in the first unlocking direction when rotating, theworm wheel 230 drives theworm 240 to rotate in the second unlocking direction when rotating in the first unlocking direction, and theworm 240 drives thebolt 210 to retract from the locking position to the bolt outlet through gear engagement when rotating in the second unlocking direction, so that the unlocking action is realized.
Themotor 220 is a dc motor, the first locking direction is opposite to the first unlocking direction, and the second locking direction is opposite to the second unlocking direction.
Considering that when the intelligent lock is in the lock closing state at the first preset time, the lock does not need to be closed repeatedly, as shown in fig. 1, anunlocking detector 140 is further disposed inside the intelligent lock, if themain controller 110 detects that the current time is the first preset time, whether the intelligent lock is in the unlocking state is detected by theunlocking detector 140, if so, the mechanical transmission module 130 is controlled to perform the locking action, and if not, the operation is not performed.
Correspondingly, in order to ensure that the intelligent lock is in a locked state after the locking action is performed, as shown in fig. 1, a lockingdetector 150 is further disposed inside the intelligent lock, after themain controller 110 controls the mechanical transmission module 130 to perform the locking action, the lockingdetector 150 is further used to detect whether the intelligent lock is in the locked state, if not, the mechanical transmission module 130 is repeatedly controlled to perform the locking action, and the lockingdetector 150 is used to detect whether the intelligent lock is in the locked state until the intelligent lock is detected to be in the locked state.
As shown in fig. 2, the unlockingdetector 140 includes a firstmicro switch 250, and the firstmicro switch 250 is configured to detect whether thebolt 210 of the smart lock is in contact with a first contact, and if thebolt 210 of the smart lock is detected to be in contact with the first contact, it is determined that the smart lock is in the unlocked state.
Thelock detector 150 includes a secondmicro switch 260 for detecting whether thelocking bolt 210 of the smart lock is in contact with the second contact, and if thelocking bolt 210 of the smart lock is detected to be in contact with the second contact, it is determined that the smart lock is in the locked state.
Specifically, as shown in fig. 2, a first contact is disposed on the elastic sheet of the firstmicro switch 250, a second contact is disposed on the elastic sheet of the secondmicro switch 260, when the intelligent lock is unlocked, thebolt 210 contacts with the first contact on the firstmicro switch 250 and is separated from the second contact on the secondmicro switch 260, and the firstmicro switch 250 sends an unlocking state signal to themaster controller 110. When the smart lock is locked, thelatch 210 is disengaged from the first contact of the firstmicro switch 250 and contacts the second contact of the secondmicro switch 260, and the secondmicro switch 260 sends a locking state signal to themaster controller 110.
As shown in fig. 1, apower supply module 160 and a backup power supply 170 are further arranged inside the intelligent lock in the embodiment of the present invention, thepower supply module 160 mainly uses 18650 rechargeable batteries to supply power to the entire intelligent lock, the backup power supply 170 is used to supply power to theclock module 120, and a two-way power supply is used to supply power to theclock module 120, so that it is ensured that the time reference is not disturbed.
As shown in fig. 2, thepower supply module 160 in fig. 2 is located above thelatch 210, and acircuit board 270 is further disposed inside the smart lock, as shown in fig. 2. Thecircuit board 270 is located on the right side of thelatch 210, and includes themaster 110, theclock module 120, and the backup power source 170.
Further, in order to achieve unlocking at the preset time, in the embodiment of the present invention, themain controller 110 further detects whether the current time is the second preset time according to the reference time provided by theclock module 120, and if themain controller 110 detects that the current time is the second preset time, controls the mechanical transmission module 130 to perform the unlocking action.
The action of themaster controller 110 controlling the mechanical transmission module 130 to unlock specifically is: themaster controller 110 controls the mechanical transmission module 130 to drive thelatch 210 to retract from the locked position to the outlet of thelatch 210.
In conclusion, the intelligent lock in the embodiment of the invention can improve the safety of the vehicle, prevent the vehicle from being lost and prevent the vehicle from being privatized.
Example two
A second embodiment of the present invention provides a locking method of an intelligent lock, where the intelligent lock is the intelligent lock in the first embodiment, as shown in fig. 3, the method includes:
step S301, a clock module provides reference time for a master controller;
step S302, the master controller detects whether the current time is a first preset time according to the reference time provided by the clock module;
step S303, if the main controller detects that the current time is the first preset time, the main controller controls the mechanical transmission module to execute a locking action.
In the embodiment of the invention, when the current time reaches the first preset time, the intelligent lock can automatically execute the locking action. Compared with the vehicle lock in the prior art, the locking method of the intelligent lock in the embodiment of the invention can realize automatic locking at a certain moment, thereby preventing the vehicle from being lost and relieving the problem that the vehicle lock in the prior art has certain potential safety hazard in the aspect of vehicle anti-loss.
In the shared bicycle system, when the locking method is applied to locking the bicycle, first preset time can be set according to needs, preferably the first preset time is the time when a user does not ride the bicycle, and all bicycles in the shared bicycle system are automatically locked at the first preset time, so that the loss of the bicycle is prevented. Wherein, the first preset time is preferably set to three points in the morning or two points in the morning.
In the shared bicycle system, when the locking method is applied to locking the bicycle, automatic locking is realized based on time, and the first preset time can be set by research personnel in the production process of the bicycle lock, so that the automatic locking realized at the first preset time is automatic control of the cloud platform of the shared bicycle system on the bicycle, and the condition of vehicle privatization can be avoided based on the control mode of the cloud platform on the bicycle.
Further, as shown in fig. 4, another locking method in this embodiment includes the following steps:
step S401, a clock module provides reference time for a master controller;
step S402, the master controller detects whether the current time is a first preset time according to the reference time provided by the clock module, if so, step S403 is executed, otherwise, the process is finished;
step S403, the main controller detects whether the intelligent lock is in an unlocking state through the unlocking detector, if so, step S404 is executed, and if not, the operation is finished;
step S404, the main controller controls the mechanical transmission module to execute locking action;
and step S405, the master controller detects whether the intelligent lock is in a locked state through the locking detector, if so, the operation is finished, otherwise, the operation returns to the step S404.
By the locking method of the intelligent lock in fig. 4, it can be ensured that the intelligent lock is locked when the intelligent lock is in the unlocking state, and the success of the intelligent lock is ensured by the locking state detection mode.
EXAMPLE III
The third embodiment of the invention provides an intelligent bicycle which comprises the intelligent lock in the first embodiment.
In the embodiment of the invention, when the current time reaches the first preset time, the intelligent lock can automatically execute the locking action. Compared with the vehicle lock in the prior art, the intelligent bicycle in the embodiment of the invention can realize automatic locking at a certain moment, so that the vehicle is prevented from being lost, and the problem that the vehicle lock in the prior art has certain potential safety hazard in the aspect of vehicle anti-loss is solved.
In the shared bicycle system, when the intelligent bicycle in the embodiment of the invention is applied, first preset time can be set according to requirements, preferably, the first preset time is the time when a user does not ride the bicycle, and all bicycles in the shared bicycle system are automatically locked at the first preset time, so that the vehicle is prevented from being lost. Wherein, the first preset time is preferably set to three points in the morning or two points in the morning.
In the shared bicycle system, when the intelligent bicycle is applied, automatic locking is realized based on time, and the first preset time can be set by research personnel in the production process of the bicycle lock, so that the automatic locking realized at the first preset time is automatic control of the cloud platform of the shared bicycle system on the bicycle, and the condition of vehicle privatization can be avoided based on the control mode of the cloud platform on the bicycle.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided by the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the present invention in its spirit and scope. Are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.