Summary of the invention
In view of this, the application's is designed to provide a kind of lock control device, method and vehicle, endangered with reducing
The probability of dangerous accident.
In a first aspect, the embodiment of the present application provides a kind of lock control device, comprising:
Governor circuit, for when detecting that vehicle is illegally moved, being executed for switch lock in the case where vehicle is in unlocking condition
Component is powered, and obtains the tachometer value that moves in turn that the switch lock execution unit detects;The tachometer value that moves in turn described in the determination is greater than
Zero and be less than given threshold when, control switch lock execution unit shut;
The switch lock execution unit, for detecting the current tachometer value that moves in turn after powered up, and what be will test moves in turn
Tachometer value is transferred to the governor circuit, and executes under the control of the governor circuit and shut operation.
In one embodiment, the governor circuit is also used to after controlling the switch lock execution unit and shutting,
It is disconnected to the switch lock execution unit if receiving the information that the instruction lock that the switch lock execution unit is sent is turned off
Electricity;
The switch lock execution unit, is also used to after execution shuts operation, detects that vehicle is in lock closed state
When, Xiang Suoshu governor circuit sends the information that instruction lock is turned off.
In one embodiment, the governor circuit is also used to receiving what the switch lock execution unit was sent
After indicating the information that lock is turned off, if can not power off to the switch lock execution unit in setting duration, power-off event is reported
Hinder information.
In one embodiment, the governor circuit is also used to after controlling the switch lock execution unit and shutting,
If receiving the information that the instruction lock that the switch lock execution unit is sent can not close, reports and shut fault message;
The switch lock execution unit, is also used to after execution shuts operation, when detecting vehicle still in unlocking condition,
The information that instruction lock can not close is sent to the governor circuit.
In one embodiment, the governor circuit is also used to detecting that the vehicle is illegally moved, is described
After switch lock execution unit is powered, according to the tachometer value that moves in turn that the switch lock execution unit of acquisition detects, determine described in
The tachometer value that moves in turn be greater than or equal to the given threshold, or be equal to zero when, to the switch lock execution unit power off.
In one embodiment, the governor circuit is also used to receive when being requested with vehicle of user terminal transmission, for institute
Switch lock execution unit is stated to be powered and assign unlocking instruction;Work as receiving the instruction lock that the switch lock execution unit is sent
After the preceding information in unlocking condition, to it is described with vehicle request in the subscriber identity information that carries verify, be verified
It keeps vehicle to be in unlocking condition afterwards, records the vehicle and be in legal riding condition;
The switch lock execution unit after being also used to receive the unlocking instruction, detects the switch state of the lock,
If it is determined that the lock is in unlocking condition, Xiang Suoshu governor circuit sends the information that instruction lock is currently at unlocking condition;
If it is determined that the lock, which is in, shuts state, after controlling the lock opening, Xiang Suoshu governor circuit sends instruction lock and is in
The information of unlocking condition.
In one embodiment, the governor circuit is also used to be powered and assign out for the switch lock execution unit
After lock instruction, when receiving the information that the instruction lock that the switch lock execution unit is sent can not be opened, unlocking is reported
Fault message;
The switch lock execution unit is also used to if it is determined that the lock is in the state that shuts, after executing unlocking operation, still
Detect that the lock is in the state that shuts, Xiang Suoshu governor circuit sends the information that instruction lock can not be opened.
In one embodiment, the governor circuit is also used to after determining that vehicle enters legal riding condition, to institute
State switch lock execution unit power-off, and if the switch lock execution unit can not be powered off within the set duration, report disconnected
Electric fault information.
In one embodiment, the governor circuit, be also used to receive that user terminal sends to the vehicle also
It is that the switch lock execution unit of vehicle is powered, if the wheel that the switch lock execution unit based on acquisition detects when vehicle instructs
Dynamic tachometer value determine the vehicle do not move in turn revolving speed when, record user returns the car success, and vehicle is kept to be in unlocking condition.
In one embodiment, the governor circuit, be also used to receive that user terminal sends to the vehicle also
Vehicle instruction is after the switch lock execution unit of vehicle is powered, if the wheel that the switch lock execution unit based on acquisition detects
Dynamic tachometer value determine the vehicle move in turn revolving speed when, record the vehicle be riding condition.
In one embodiment, the governor circuit is also used to after recording the vehicle and being riding condition, to described
The power-off of switch lock execution unit, if can not power off within the set duration to the switch lock execution unit, reports disconnection fault
Information.
Second aspect, the embodiment of the present application provide a kind of lock control method, are applied to lock, comprising:
In the case where vehicle is in unlocking condition, when detecting that the vehicle is illegally moved, the current tachometer value that moves in turn is detected;
Tachometer value is moved in turn described in the determination greater than zero and when being less than given threshold, execution is shut.
It is in one embodiment, described to detect the current tachometer value that moves in turn when detecting that the vehicle is illegally moved,
Include:
It when detecting that vehicle is illegally moved, is powered for switch lock execution unit, passes through the switch lock enforcement division after being powered
The current tachometer value that moves in turn of part detection;
After the execution is shut, the method also includes:
The switch lock execution unit is powered off.
In one embodiment, the method also includes:
If can not power off to the switch lock execution unit in setting duration, disconnection fault information is reported.
In one embodiment, after the execution is shut, the method also includes:
If execution shuts failure, reports and shut fault message.
In one embodiment, after detecting the current tachometer value that moves in turn, further includes:
When moving in turn tachometer value described in the determination more than or equal to the given threshold, or being equal to zero, to the switch lock
Execution unit power-off.
In one embodiment, the method also includes:
When being requested with vehicle of user terminal transmission is being received, the switch state of the lock is detected;
If it is determined that the lock is in unlocking condition, to it is described with vehicle request in the subscriber identity information that carries test
Card keeps vehicle to be in unlocking condition, records the vehicle and be in legal riding condition after being verified;
If it is determined that the lock is in the state that shuts, unlocking operation is executed.
In one embodiment, the method also includes:
After executing unlocking operation, still detects that the lock is in and shut state, report unlocking fault message.
In one embodiment, described to receive when being requested with vehicle of user terminal transmission, detect opening for the vehicle
Off status, comprising:
When being requested with vehicle of user terminal transmission is being received, is being powered for switch lock execution unit, and is passing through opening after being powered
Shut the switch state of execution unit detection lock;
The method also includes:
After determining that vehicle enters legal riding condition, the switch lock execution unit is powered off, and if in setting
The switch lock execution unit can not be powered off in length, then report disconnection fault information.
In one embodiment, the method also includes:
Receive user terminal transmission return the car instruct when, the current tachometer value that moves in turn is detected, if based on the wheel detected
Dynamic tachometer value determine the vehicle do not move in turn revolving speed when, record user returns the car success, and vehicle is kept to be in unlocking condition.
In one embodiment, receive user terminal transmission return the car instruct when, detect the current tachometer value that moves in turn
Later, the method also includes:
If based on the tachometer value that moves in turn detected determine the vehicle move in turn revolving speed when, recording the vehicle is to ride shape
State, and the vehicle is kept to be in unlocking condition.
In one embodiment, receive user terminal transmission return the car instruct when, detect the current tachometer value that moves in turn,
Include:
Receive user terminal transmission return the car instruct when, for switch lock execution unit be powered, pass through be powered after switch
Lock the current tachometer value that moves in turn of execution unit detection;
It is described record the vehicle be riding condition after, the method also includes:
The switch lock execution unit is powered off, if can not be powered off within the set duration to the switch lock execution unit,
Then report disconnection fault information.
The third aspect, the embodiment of the present application provide a kind of vehicle, and the vehicle installation is any just like first aspect described
Lock control device.
A kind of lock control device, method and vehicle provided by the embodiments of the present application, the master control in the lock control device
Circuit is in the case where vehicle is in unlocking condition, when detecting that vehicle is illegally moved, is powered first for switch lock execution unit,
The tachometer value that moves in turn that switch lock execution unit detects is obtained, the tachometer value that moves in turn is being determined greater than zero and is being less than given threshold
When, then control switch lock execution unit shut.
Here it when detecting that vehicle is illegally moved, not can determine that whether vehicle is illegally ridden, pass through switch lock
Detection part detects move in turn tachometer value after, further determined that the vehicle is illegally ridden, to improve determining vehicle quilt
The accuracy illegally ridden, meanwhile, when determining the tachometer value that moves in turn less than given threshold, ability control switch locks execution unit pass
Lock, given threshold here can be the safe speed being set in advance, and will not make shutting suddenly under this safe speed
It obtains bicyclist to cause danger, avoids and promptly shut bring peril after determining that vehicle is illegally ridden.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it should be understood that attached drawing in the application
The purpose of illustration and description is only played, is not used to limit the protection scope of the application.In addition, it will be appreciated that schematical attached
Figure does not press scale.Process used herein shows the behaviour realized according to some embodiments of the present application
Make.It should be understood that the operation of flow chart can be realized out of order, the step of context relation of logic can not inverted suitable
Sequence is implemented simultaneously.In addition, those skilled in the art are under the guide of teachings herein, can be added to flow chart one or
Other multiple operations, can also remove one or more operations from flow chart.
In addition, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist
The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below
Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
In order to enable those skilled in the art are able to use teachings herein, in conjunction with specific application scene, " shared bicycle makes
With scene ", provide following implementation.To those skilled in the art, spirit and scope is not being departed from
In the case of, the General Principle defined here can be applied to other embodiments and application scenarios.Although the application mainly around
Shared bicycle usage scenario is described, it should be appreciated that, this is only an exemplary embodiment.
It should be noted that term " includes " will be used in the embodiment of the present application, for pointing out the spy stated thereafter
The presence of sign, but the other features of increase are not precluded.
In order to enable user is more convenient during using shared bicycle, sharing bicycle can be with after legal use
Unlocking condition is kept, when next user needs to ride shared bicycle, verifies the legal i.e. permissible user of the subscriber identity information
It rides, does not need to frequently switch on lock process, but the process also brings certain drawback, that is, will appear some situations of illegally riding,
I.e. sending is not requested with vehicle or not by authentication, can detect that shared bicycle is illegally moved in this case
After carry out car locking, but such case be also likely to be since shared bicycle is caused by normal O&M or environment suddenly change,
Unexpected pressure, which is shut, to bring peril to bicyclist, be based on this, and the embodiment of the present application proposes following technical scheme, can
To take into account protection vehicle resources and user's vehicle safety:
As shown in Figure 1, being a kind of lock control device 100 provided by the embodiments of the present application, comprising:
Governor circuit 101, for being switch lock when detecting that vehicle is illegally moved in the case where vehicle is in unlocking condition
Execution unit is powered, and obtains the tachometer value that moves in turn that switch lock execution unit detects;Determine the tachometer value that moves in turn greater than zero and
When less than given threshold, control switch lock execution unit is shut;
Switch lock execution unit 102, for detecting the current tachometer value that moves in turn after powered up, and the wheel turn that will test
Fast value is transferred to governor circuit, and executes under the control of governor circuit and shut operation.
Here, governor circuit, which can refer to, has processing, control including the original parts such as processor or microcontroller, power supply
The circuit of unit, the governor circuit in the embodiment of the present application can be communicated with user terminal, and can control switch lock hold
Row component.
Here control circuit is the switch lock enforcement division of vehicle after receiving the instruction of returning the car that user terminal is sent to vehicle
Part is powered, i.e., wake-up switch locks execution unit, so that switch lock execution unit enters working condition by dormant state.
The switch lock execution unit that the embodiment of the present application provides may include lock lock circuit and wheel speed detection circuit, here
Wheel speed detection circuit is specifically as follows Hall circuit, and wherein Hall circuit can be connect with lock lock circuit, when governor circuit is to lock
After lock circuit is powered, enters working condition, can be unlocked or be shut operation, this external brake lock circuit can also be to connection
Hall circuit be powered so that Hall circuit also enters working condition, into after working condition, Hall circuit can be can detecte
Then the tachometer value that moves in turn of vehicle is sent to governor circuit by the lock lock circuit tachometer value that will move in turn by Hall circuit.
Here Hall circuit can detect the tachometer value that moves in turn of vehicle, and the revolving speed that will move in turn in a short time after powered up
Value is sent to governor circuit by lock lock circuit, then governor circuit can determine whether the tachometer value that moves in turn of vehicle belongs to quickly
Section is stated, i.e., whether be greater than zero and is less than given threshold.
Here given threshold can be the safe speed value determined according to test of many times is shifted to an earlier date, in the safe speed value
Move in turn revolving speed, even if shutting suddenly, will not damage to bicyclist, for example the safe speed value can be solely implementation vehicle
The velocity amplitude of traveling, if the tachometer value that moves in turn detected can determine that vehicle is non-less than the safe speed value and greater than zero
Method is ridden, it can control switch lock execution unit is shut.
The process that above-mentioned determining vehicle is illegally ridden, specific flow chart as shown in Fig. 2, governor circuit lock be in open
Under lock status, the switch state of lock is generally not required to change, and in order to save electricity power consumption, is likely to be at off-position,
When thus governor circuit detects that vehicle is illegally moved, it can generally be powered for switch lock execution unit, so that switch lock
Execution unit enters working condition, and after entering working condition, the Hall circuit in switch lock execution unit can detect vehicle
The tachometer value that moves in turn, and will test result and be sent to governor circuit, governor circuit determines the wheel turn of switch lock execution unit
When speed value is greater than zero and less than or equal to given threshold, that is, determining that vehicle is illegally moved, then control switch lock execution unit is shut,
Switch lock execution unit is executed under the control of governor circuit and is shut, and vehicle can not ride at this time.
In the above process, whether governor circuit detection vehicle is illegally moved, that is, detects that vehicle is moved and the
It does not receive and is requested with vehicle in one setting duration, can determine that vehicle is illegally moved at this time, for how detecting vehicle quilt
It is mobile, it can also include being based on global positioning system (Global in lock control device in one embodiment
Positioning System, GPS), Global Navigation Satellite System (Global Navigation Satellite System,
GLONASS), compass navigation systems (COMPASS), GALILEO positioning system, quasi- zenith satellite system (Quasi-Zenith
Satellite System, QZSS) or Wireless Fidelity (Wireless Fidelity, WiFi) location technology positioning element, it is fixed
Position component and governor circuit can carry out signal transmission, and governor circuit can detect whether vehicle occurs position by positioning element
Set movement.
In another embodiment, the embodiment of the present application can also detect the speed that moves in turn by Hall circuit
To determine whether vehicle moves, in this case, Hall circuit can also be directly connected to governor circuit, i.e., without being opened
Execution unit energization is shut, it can be learnt that the Rotating speed measring that moves in turn that Hall circuit is sent is as a result, if move in turn tachometer value, it is determined that
Vehicle is moved.
Here in order to avoid as vehicle by it is unexpected pushed over or the normal O&M of operation maintenance personnel caused by move in turn revolving speed, can be with
By detecting whether the tachometer value that moves in turn of lasting second setting duration, think that vehicle moves in turn revolving speed, such as second if having
A length of 30 seconds when setting, that is, detect the tachometer value that moves in turn of lasting 30s, it is determined that vehicle is illegally ridden.
It is determining the tachometer value that moves in turn determining greater than zero and is being less than given threshold, i.e., after vehicle is illegally ridden, master control electricity
Road 101 is also used to after control switch lock execution unit is shut, if receiving the instruction lock of switch lock execution unit transmission
The information being turned off powers off switch lock execution unit 102;
Switch lock execution unit 102, is also used to after execution shuts operation, detects that vehicle is in lock closed state
When, the information that instruction lock is turned off is sent to governor circuit 101.
Here governor circuit determines that vehicle is illegally ridden, can by switch lock execution unit transmission shut instruction come
Control switch lock execution unit shut, switch lock execution unit receive governor circuit transmission shut instruction after, execute pass
Lock operation can detect whether vehicle has been switched off after execution shuts operation, if detect that vehicle is in lock closed state,
The information that instruction lock is turned off is sent to governor circuit, the information for indicating that lock is turned off here can be preset number
Word information, such as " 1 " indicate that lock is turned off, and " 0 " indicates that lock is not turned off, and can send instruction vehicle to governor circuit here
Lock the information " 1 " being turned off.
When governor circuit receives information " 1 " that instruction lock is turned off, it is determined that switch lock execution unit has been turned off vehicle
Lock, that is, finish vehicle by illegal riding condition, do not need switch lock execution unit at this time and work again, in order to save function
Consumption, can power off switch lock execution unit.
Governor circuit 101 is also used to after the information that the instruction lock for receiving the transmission of switch lock execution unit is turned off,
If can not power off to switch lock execution unit in third setting duration, disconnection fault information is reported.
Here, after governor circuit control switch lock execution unit is shut, if can not be to switch in third setting duration
Execution unit power-off is locked, equally then judgement may have occurred disconnection fault, at this moment can be sent to disconnection fault information shared
The background server of bicycle, disconnection fault information equally here can carry the identification code and geographical location information of vehicle, just
Related personnel is notified to overhaul in background server.
Governor circuit 101 is also used to after control switch lock execution unit 102 is shut, if receiving switch lock execution
The information that the instruction lock that component 102 is sent can not close, then report and shut fault message;
Switch lock execution unit 102, is also used to after execution shuts operation, when detecting vehicle still in unlocking condition,
The information that instruction lock can not close is sent to governor circuit 101.
This refers to governor circuit controls when determining that vehicle is in illegal riding condition, and control switch locks execution unit pass
After lock, if the information that the instruction lock for receiving the transmission of switch lock execution unit can not close, judges switch lock enforcement division
Part may shut failure, can send to background server shut fault message at this time, here to shut fault message same
Sample may include the identification code and location information of the vehicle.
Here the possible cause for shutting failure includes: being damaged in switch lock execution unit, can not be shut;Vehicle
Lock is damaged, and switch lock execution unit can not close it;Or switch lock execution unit and lock are damaged
It is bad.
Governor circuit is also used to detecting that vehicle is illegally moved, after being powered for switch lock execution unit, according to acquisition
The tachometer value that moves in turn that detects of switch lock execution unit, determine that the tachometer value that moves in turn more than or equal to given threshold, or is equal to
When zero, switch lock execution unit is powered off.
Here, governor circuit is detecting that vehicle is illegally moved, and is after switch lock execution unit is powered, and switch lock is held
Row component starts to detect the tachometer value that moves in turn of vehicle, here it is considered that short-duration failure may occur under normal circumstances for Hall circuit
And can not detection wheel move tachometer value, it is same by detecting the no tachometer value that moves in turn for having lasting second setting duration, such as 30 seconds, if
It does not detect that the tachometer value or do not detect of moving in turn of lasting second setting duration moves in turn in 30 seconds tachometer value or to detect
The tachometer value that moves in turn be zero, then it is assumed that the tachometer value that moves in turn is zero, or detects the revolving speed that moves in turn of lasting second setting duration
Value, and the tachometer value that moves in turn then powers off switch lock execution unit, control is not opened at this time more than or equal to given threshold
Component is shut to shut.
Specifically, when governor circuit detects that vehicle is illegally moved, after being powered for switch lock execution unit, however, it is determined that
Tachometer value currently move in turn equal to 0, may include two kinds of situations here:
The first situation: failure has occurred in the Hall circuit in switch lock execution unit, which can not be
The tachometer value that moves in turn is detected in 30 seconds;
Second situation: of short duration position caused by legal movement caused by the normal O&M of operation maintenance or environmental change
It moves, for example of short duration displacement caused by high wind blows down vehicle, the situation Hall circuit can not detect lasting wheel in 30 seconds
Dynamic tachometer value.
For the first above situation, can not judge at this time change in location whether be as caused by vehicle wheel rotation, even if this
When judge that vehicle is illegally ridden, but can not determine the current tachometer value that moves in turn, be still to protect the peace of bicyclist to the greatest extent
Entirely, it does not still lock;For second situation, i.e., the vehicle is not illegally ridden, also without locking.
Both the above situation is to detect that vehicle is moved by positioning element, and do not receive use in the first setting duration
The situation that the determining vehicle of vehicle request is illegally moved.
If the case where being directly connected to for Hall circuit and governor circuit, detects vehicle quilt by Hall circuit for the first time
It is mobile, and do not receive the vehicle determined when being requested with vehicle and illegally moved, pass through Hall circuit detection wheel turn speed again for the second time
When value, if detecting the tachometer value that moves in turn of lasting second setting duration at this time, it can determine that vehicle is illegally ridden, if at this time
The tachometer value that moves in turn of lasting second setting duration is not detected, then can determine the vehicle detected for the first time by Hall circuit
May be of short duration displacement caused by legal movement caused by the normal O&M of operation maintenance personnel either environmental change by movement, not by
Illegally ride.
It is above-mentioned for the tachometer value that moves in turn detected according to the switch lock execution unit of acquisition, determine that the tachometer value that moves in turn is greater than
Or the case where being equal to given threshold, that is, determine that the tachometer value that currently moves in turn has reached safe speed value, although judging vehicle quilt at this time
It illegally rides, but is still to protect the safety of bicyclist to the greatest extent, still do not lock.
Above procedure, as governor circuit determine the operation that after vehicle is illegally moved and switch lock execution unit executes,
Its overall flow figure illustrates above procedure in conjunction with Fig. 3 as shown in figure 3, below by taking shared bicycle 10010 as an example as follows:
Governor circuit detects that position movement is occurring under unlocking condition for shared bicycle 10010 by positioning element,
And do not receive when being requested with vehicle, determine that shared bicycle 10010 is illegally moved, governor circuit is switch lock execution unit at this time
It is powered, switch lock execution unit detects move in turn tachometer value of the shared bicycle 10010 in the second setting duration after being powered, if inspection
The tachometer value that moves in turn of lasting second setting duration is measured more than or equal to given threshold (illegal riding condition, but riding speed
More than safe speed), or it is equal to zero, governor circuit powers off switch lock execution unit, and control switch is not locked at this time
Execution unit is shut;If switch lock execution unit detects shared bicycle 10010 after being powered have continuing for lasting second setting duration
Move in turn tachometer value, and the tachometer value that moves in turn greater than zero and is less than given threshold, it is determined that the shared bicycle 10010 is in illegal
Riding condition, and riding speed value is not up to safe speed value, governor circuit control switch lock execution unit is shut at this time,
Then switch lock execution unit carries out shutting operation and detects lock state, when switch lock execution unit detects lock for closing
State feeds back to governor circuit, and governor circuit powers off to save power consumption switch lock execution unit at this time, if governor circuit
Switch lock execution unit can not be powered off in third setting duration, then can send disconnection fault letter to background server
Breath;When switch lock execution unit detects that lock for unlocking condition, feeds back to governor circuit, governor circuit determines switch lock at this time
Execution unit shuts failure, can also send to background server and shut fault message.
It is after determining that lock is illegally moved, to the control process of lock, when detecting that vehicle is illegally moved above
Afterwards, the tachometer value that moves in turn for needing to detect vehicle again only detects that the tachometer value that moves in turn of vehicle continues in the second setting duration
Determine that the vehicle is illegally ridden greater than 0, and determine the tachometer value that moves in turn less than given threshold, i.e. not up to safe speed
Value, is just shut, if the tachometer value that currently moves in turn is 0 or has reached safe speed value, without shutting, is directed to vehicle in this way
The case where illegally being ridden really, then it can be avoided to shut suddenly bicyclist damaged, and it is not illegal for vehicle
The case where riding avoids switch lock execution unit from frequently switching to lock without shutting, and is able to extend switch lock execution
The service life of component and lock also facilitates the legal of next user to ride.
Figure 3 above is after detecting that vehicle is illegally moved, and lock control flow chart will receive user terminal below
After what is sent is requested with vehicle, the control flow of lock is introduced.
Governor circuit 101 is also used to receive when being requested with vehicle of user terminal transmission, logical for switch lock execution unit 102
Electricity simultaneously assigns unlocking instruction;The letter of unlocking condition is currently in the instruction lock for receiving the transmission of switch lock execution unit 102
After breath, to vehicle request in the subscriber identity information that carries verify, keep vehicle to be in unlocking condition after being verified,
Record vehicle is in legal riding condition;
Switch lock execution unit 102 after being also used to receive unlocking instruction, detects the switch state of lock, however, it is determined that vehicle
Lock is in unlocking condition, sends the information that instruction lock is currently at unlocking condition to governor circuit 101;If it is determined that lock is in
State is shut, after control lock is opened, sends the information that instruction lock is in unlocking condition to governor circuit 101.
In the embodiment of the present application, governor circuit can directly receive user terminal transmission requested with vehicle, without user terminal to
Background server transmission is requested with vehicle, and in-use automotive stage, user terminal no longer needs to be communicated with background server, avoids communication
Network failure can not carry out the case where authentication, directly be verified by governor circuit to subscriber identity information, this
Sample substantially reduces the verification time with vehicle.
Governor circuit 101 is receiving after being also used to be powered for switch lock execution unit 102 and assign unlocking instruction
When the information that the instruction lock that switch lock execution unit 102 is sent can not be opened, unlocking fault message is reported;
Switch lock execution unit 102 is also used to if it is determined that lock still detects after executing unlocking operation in the state that shuts
It is in lock and shuts state, send the information that instruction lock can not be opened to governor circuit.
Governor circuit 101 is also used to after determining that vehicle enters legal riding condition, powers off to switch lock execution unit,
And if third setting duration in switch lock execution unit 102 can not be powered off, report disconnection fault information.
For the above-mentioned lock control flow received after being requested with vehicle, as shown in figure 4, being still with shared bicycle 10010
Example, is illustrated the process:
Governor circuit is received requested with vehicle after, that is, determine when thering is user to use shared bicycle 10010, held for switch lock
Row component is powered and assigns unlocking instruction, and switch lock execution unit detects the switch state of lock after receiving unlocking instruction,
If detecting that lock is in unlocking condition, the information that instruction lock is currently at unlocking condition is sent to governor circuit, if
It determines that lock is in and shuts state, then control after lock opened, and after determining that lock has been opened, refer to governor circuit transmission
Show that lock is in the information of unlocking condition, if switch lock execution unit determines that lock is in the state that shuts, control lock is carried out
After opening, detecting lock still is the state that shuts, then sends the information that instruction lock can not be opened, at this time master control to governor circuit
The unlocking fault message of shared bicycle 10010 can be sent to background server by circuit, which can carry
The location information of the identification code 10010 of shared bicycle and the shared bicycle.
After if the instruction lock that governor circuit receives the transmission of switch lock execution unit is currently at unlocking condition information,
Determine that the shared bicycle 10010 is rideable state, after it is rideable state that the shared bicycle 10010, which has been determined, to vehicle
The subscriber identity information carried in request is verified, for example subscriber identity information may include whether user is being total to for the type
The registration user of bicycle and the account balance of registration user are enjoyed, if the identity information of user is the registration of the shared bicycle
User, and the corresponding account balance of registration user is greater than the set value, then records vehicle and be in legal riding condition, the i.e. user
Legal can ride the shared bicycle 10010.
After recording shared bicycle 10010 and being in legal riding condition, i.e., user is in normal ride, switch lock
Execution unit no longer needs to progress switch lock operation can power off the switch lock execution unit to save power consumption, if
Third sets in duration such as 15 seconds and can not power off to switch lock execution unit, then power-off event can be reported to background server
Barrier.
The above process is after receiving being requested with vehicle of user, and lock control device below will to the control process of lock
It introduces, when vehicle is in legal riding condition, after receiving the instruction of returning the car that user terminal is sent to vehicle, the process of execution is such as
Under:
Governor circuit 101, is also used to receive that user terminal sends to vehicle returns the car when instructing, and holds for the switch lock of vehicle
Row component 102 is powered, if the tachometer value that moves in turn detected based on the switch lock execution unit of acquisition determines that vehicle does not take turns turn
When fast, record user returns the car success, and vehicle is kept to be in unlocking condition.
Here the Hall circuit in switch lock execution unit can detect in a short time whether vehicle has after powered up
Whether move in turn revolving speed, for example can be detected vehicle in Hall circuit 1 second and move in turn revolving speed, and will test result and pass through lock lock electricity
Road is sent to governor circuit, then governor circuit can determine whether vehicle moves in turn revolving speed quickly.
Governor circuit can receive the instruction of returning the car of transmission of the user terminal for vehicle, illustrate the governor circuit institute before this
Vehicle be in legal riding condition under, it is contemplated that under legal riding condition, the switch state of lock is generally not required to occur
Variation is likely to be at off-position to save electricity power consumption, thus governor circuit is after instruction is returned the car in reception, general meeting
It is powered for switch lock execution unit, so that switch lock execution unit enters working condition;When switch lock execution unit is powered
Afterwards, the Hall circuit in switch lock execution unit can detect vehicle value, and the tachometer value testing result that will move in turn is sent to master
Control circuit, governor circuit according to the tachometer value that moves in turn that switch lock execution unit detects determine vehicle do not move in turn revolving speed when, then
Record user returns the car success, and when record user and return the car successfully after, next user rides for convenience, and holding vehicle is still in opening
Lock status, while in order to save power consumption, after record user returns the car successfully, governor circuit can also to switch lock execution unit into
Row power-off, makes it carry out dormant state.
Governor circuit 101 is also used to hold in the instruction of returning the car for receiving user terminal and sending to vehicle for the switch lock of vehicle
After row component 102 is powered, if the tachometer value that moves in turn detected based on the switch lock execution unit 102 of acquisition determines that vehicle moves in turn
When revolving speed, record vehicle is riding condition, and vehicle is kept to be in unlocking condition.
Such case is that although governor circuit has received instruction of returning the car, but be powered to switch lock execution unit
Afterwards, it determines that the vehicle moves in turn revolving speed according to the tachometer value that moves in turn that switch lock execution unit detects, then judges that the situation may
It is user still in riding condition, the only key of returning the car on false triggering user terminal, will record vehicle at this time is riding condition, not
It will record user to return the car success.
After governor circuit powers off switch lock execution unit, switch lock execution unit enters low power consumpting state,
Hall circuit is also not required to work again in switch lock execution unit at this time, until next governor circuit is again to switch lock enforcement division
Part works again after being powered.
Governor circuit 101 is also used to after record vehicle is riding condition, powers off to switch lock execution unit, if the
Switch lock execution unit can not be powered off in three setting durations, then report disconnection fault information.
Here in order to save power consumption, governor circuit after record vehicle is riding condition can to switch lock execution unit into
Row power-off, so that switch lock execution unit enters low power consumpting state, Hall circuit is also not required in switch lock execution unit at this time
It works again, until next governor circuit works again after being powered again to switch lock execution unit.
In this case, if can not power off to switch lock execution unit in third setting duration, judgement can
Disconnection fault can have occurred, at this moment disconnection fault information can be sent to the background server of shared bicycle, power-off here
Fault message can carry the identification code and geographical location information of vehicle, notify related personnel to examine convenient for background server
It repairs.
Here third setting duration can be 10s~20s, such as when third setting here when a length of 15s, even
Switch lock execution unit can not be powered off in 15s, being specifically as follows governor circuit can be carried out excessive time in this 15s
Trial to the power-off of switch lock execution unit, not successfully, then judgement may have occurred disconnection fault.
After receiving with governor circuit of being taken in and return the car instruction, whether is moved in turn speed by determining vehicle, two can be divided into
The different treatment process of kind, for flow chart as shown in figure 5, by taking vehicle is shared bicycle as an example, which will be with following specific realities
Example is applied to be illustrated:
The governor circuit for the lock control device on shared bicycle that number is 10010 receives returning the car for user terminal A transmission
After instruction, it is powered to share the switch lock execution unit of bicycle 10010, then the Hall circuit in switch lock execution unit
It detects the shared bicycle 10010 whether to move in turn tachometer value, and will test result and be transferred to governor circuit, if according to the switch lock
The testing result of execution unit transmission, which determines, not to move in turn revolving speed, then governor circuit record user returns the car success, and makes this total
It enjoys bicycle 10010 and keeps unlocking condition;If determining the revolving speed that moves in turn according to the testing result of switch lock execution unit transmission,
It is riding condition that governor circuit, which records shared bicycle 10010, and the shared bicycle is equally kept to be in unlocking condition, then in order to save
Power consumption is saved, governor circuit can power off the switch lock execution unit, if it can not be to the switch lock in third setting duration
Execution unit power-off then can send disconnection fault information to the background server of shared bicycle.
Governor circuit first passes through the Hall electricity in lock execution unit after receiving and returning the car instruction in the embodiment of the present application
Whether road detection vehicle moves in turn speed, after determining the speed that do not move in turn, re-records success of returning the car, improving determining user is
The no accuracy returned the car avoids occurring unexpected car locking after erroneous judgement user returns the car and user is caused hazard event occur.
The embodiment of the present application respectively after receiver van request to the control flow of lock, receive return the car instruction after to vehicle
The control process of lock and detecting is expounded the control flow of vehicle when vehicle is illegally moved, below in conjunction with into
Above-mentioned overall process is described in row Fig. 6, which assumes that subscriber identity information is legal:
It receives after being instructed with vehicle, judges whether current lock is in an open state, if current lock is opening state, label
Vehicle enters legal riding condition, if current lock is not opening state, enters legal riding condition after opening lock, later
Judge whether to receive instruction of returning the car, if receiving instruction of returning the car, judges whether to detect the revolving speed that moves in turn, move in turn if detecting
Revolving speed, then recording the vehicle still is legal riding condition, if rotation wheel speed is not detected, labeled as success of returning the car, and is kept
Unlock, if detecting illegal movement after returning the car successfully, detect the tachometer value that moves in turn of lasting third setting duration be greater than zero and
It less than given threshold, is then shut, if the tachometer value that moves in turn detected reaches given threshold, or the rotation wheel speed detected
Value is zero, then still maintains unlocking.
The first setting duration for being mentioned in the application, the second setting duration and " first " in third setting duration, " the
Two " are only to discriminate between effect with " third ", are not offered as size order.
The embodiment of the present application also provides a kind of lock control methods, are applied to lock, as shown in fig. 7, comprises to flow down
Journey S701~S702:
S701 when detecting that vehicle is illegally moved, detects the current revolving speed that moves in turn in the case where vehicle is in unlocking condition
Value;
S702, when determining that the tachometer value that moves in turn is greater than zero and is less than given threshold, execution is shut.
In one embodiment, in step S701, when detecting that vehicle is illegally moved, the current revolving speed that moves in turn is detected
Value, comprising:
It when detecting that vehicle is illegally moved, is powered for switch lock execution unit, passes through the switch lock enforcement division after being powered
The current tachometer value that moves in turn of part detection;
In step S702, after execution is shut, the lock control method further include:
Switch lock execution unit is powered off.
Lock includes governor circuit and switch lock execution unit, in lock control method, specifically, the master control in lock
Circuit is in the case where vehicle is in unlocking condition, when detecting that vehicle is illegally moved, is powered for switch lock execution unit;Switch lock is held
Row component detects the current tachometer value that moves in turn after powered up, and the tachometer value that moves in turn that will test is transferred to governor circuit;Master control
Circuit obtains the tachometer value that moves in turn that switch lock execution unit detects;The tachometer value that moves in turn is being determined greater than zero and is being less than given threshold
When, control switch lock execution unit is shut, and switch lock execution unit detects that vehicle is in lock pass after execution shuts operation
When closed state, the information that instruction lock is turned off is sent to governor circuit;Governor circuit receives the transmission of switch lock execution unit
The information that is turned off of instruction lock, switch lock execution unit is powered off.
In one embodiment, lock control method further include:
If can not power off to switch lock execution unit in setting duration, disconnection fault information is reported.
Specifically, the letter that the governor circuit in lock is turned off in the instruction lock for receiving the transmission of switch lock execution unit
After breath, if can not power off to switch lock execution unit in third setting duration, disconnection fault information is reported.
In one embodiment, after execution is shut, the method also includes:
If execution shuts failure, reports and shut fault message.
Specifically, after control switch lock execution unit execution shuts operation, switch lock executes the governor circuit in lock
If component detects vehicle still in unlocking condition, the information that instruction lock can not close is sent to governor circuit;Master control electricity
When the information that the instruction lock that road receives the transmission of switch lock execution unit can not close, then reports and shut fault message.
In one embodiment, after detecting the current tachometer value that moves in turn, lock control method further include:
When being greater than or equal to given threshold in the determining tachometer value that moves in turn, or being equal to zero, switch lock execution unit is powered off.
Specifically, the governor circuit in lock is detecting that vehicle is illegally moved, after being powered for switch lock execution unit,
According to the tachometer value that moves in turn that the switch lock execution unit of acquisition detects, determine that the tachometer value that moves in turn is greater than or equal to given threshold,
Or when being equal to zero, switch lock execution unit is powered off.
In one embodiment, lock control method further include:
When being requested with vehicle of user terminal transmission is being received, the switch state of the lock is detected;
If it is determined that lock is in unlocking condition, to vehicle request in the subscriber identity information that carries verify, verifying
It is in unlocking condition by rear holding vehicle, record vehicle is in legal riding condition;
If it is determined that lock is in the state that shuts, unlocking operation is executed.
In one embodiment, the lock control method further include:
If after executing unlocking operation, still detecting that the lock is in and shutting state, report unlocking fault message.
Wherein, when being requested with vehicle of user terminal transmission is being received, is detecting the switch state of vehicle, comprising: receiving
When being requested with vehicle of user terminal transmission, is powered for switch lock execution unit, and is detected by the switch lock execution unit after being powered
The switch state of lock;
The lock control method further include:
After determining that vehicle enters legal riding condition, switch lock execution unit is powered off, and if within the set duration
Switch lock execution unit can not be powered off, then report disconnection fault information.
Specifically, the governor circuit in lock receives when being requested with vehicle of user terminal transmission, is switch lock execution unit
It is powered and assigns unlocking instruction;After switch lock execution unit receives unlocking instruction, the switch state of lock is detected, however, it is determined that vehicle
Lock is in unlocking condition, sends the information that instruction lock is currently at unlocking condition to governor circuit;It is closed if it is determined that lock is in
Lock status after control lock is opened, sends the information that instruction lock is in unlocking condition to governor circuit;Governor circuit is receiving
After the instruction lock sent to switch lock execution unit is currently at the information of unlocking condition, to vehicle request in the user that carries
Identity information is verified, and vehicle is kept to be in unlocking condition after being verified, and record vehicle is in legal riding condition.
In addition, after executing unlocking operation, still detecting lock if switch lock execution unit determines that lock is in the state that shuts
In state is shut, the information that instruction lock can not be opened is sent to governor circuit;Governor circuit is receiving switch lock execution
When the information that the instruction lock that component is sent can not be opened, unlocking fault message is reported.
In addition, specifically, governor circuit is disconnected to switch lock execution unit after determining that vehicle enters legal riding condition
Electricity, and if third setting duration in switch lock execution unit can not be powered off, report disconnection fault information.
In one embodiment, lock control method further include:
Receive user terminal transmission return the car instruct when, the current tachometer value that moves in turn is detected, if based on the wheel detected
Dynamic tachometer value determine vehicle do not move in turn revolving speed when, record user returns the car success, and vehicle is kept to be in unlocking condition.
Specifically, the governor circuit in lock is vehicle when returning the car of receiving that user terminal sends to vehicle instructs
Switch lock execution unit is powered, if the tachometer value that moves in turn detected based on the switch lock execution unit of acquisition determines that vehicle is not taken turns
When turn speed, record user returns the car success, and vehicle is kept to be in unlocking condition.
In one embodiment, receive user terminal transmission return the car instruct when, detect the current tachometer value that moves in turn
Later, lock control method further include:
If based on the tachometer value that moves in turn detected determine the vehicle move in turn revolving speed when, record vehicle be riding condition,
And vehicle is kept to be in unlocking condition.
Wherein, receive user terminal transmission return the car instruct when, detect the current tachometer value that moves in turn, comprising: receiving
To user terminal send return the car instruct when, for switch lock execution unit be powered, pass through be powered after switch lock execution unit detection
The current tachometer value that moves in turn.
After recording the vehicle and being riding condition, lock control method further include:
Switch lock execution unit is powered off, if can not be powered off to switch lock execution unit in third setting duration, on
Report disconnection fault information.
Specifically, the governor circuit in lock is in the instruction of returning the car for receiving user terminal and sending to vehicle, for opening for vehicle
After shutting execution unit energization, if the tachometer value that moves in turn detected based on the switch lock execution unit of acquisition determines that vehicle moves in turn
When revolving speed, record vehicle is riding condition, and vehicle is kept to be in unlocking condition.
In addition, the governor circuit in lock powers off switch lock execution unit after record vehicle is riding condition, if
The switch lock execution unit can not be powered off in third setting duration, then report disconnection fault information.
The embodiment of the present application also provides a kind of vehicle, which is equipped with the control dress of the lock in any of the above-described embodiment
It sets.
Here vehicle can for bicycle, electric vehicle and other lock control that above-described embodiment mentions can be installed
The vehicle of device.
A kind of lock control device, method and vehicle provided by the embodiments of the present application, the master control in the lock control device
Circuit is in the case where vehicle is in unlocking condition, when detecting that vehicle is illegally moved, is powered first for switch lock execution unit,
The tachometer value that moves in turn that switch lock execution unit detects is obtained, the tachometer value that moves in turn is being determined greater than zero and is being less than given threshold
When, then control switch lock execution unit shut.
Here it when detecting that vehicle is illegally moved, not can determine that whether vehicle is illegally ridden, pass through switch lock
Detection part detects move in turn tachometer value after, further determined that the vehicle is illegally ridden, to improve determining vehicle quilt
The accuracy illegally ridden, meanwhile, when determining the tachometer value that moves in turn less than given threshold, ability control switch locks execution unit pass
Lock, given threshold here can be the safe speed being set in advance, and will not make shutting suddenly under this safe speed
It obtains bicyclist to cause danger, avoids and promptly shut bring peril after determining that vehicle is illegally ridden.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
With the specific work process of device, the corresponding process in embodiment of the method can be referred to, is repeated no more in the application.In the application
In provided several embodiments, it should be understood that disclosed systems, devices and methods, it can be real by another way
It is existing.The apparatus embodiments described above are merely exemplary, for example, the division of the module, only a kind of logic function
It can divide, there may be another division manner in actual implementation, in another example, multiple module or components can combine or can collect
At another system is arrived, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling
Conjunction or direct-coupling or communication connection can be the indirect coupling or communication connection by some communication interfaces, device or module,
It can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
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.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is 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 the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk
Etc. the various media that can store program code.
The above is only the protection scopes of the specific embodiment of the application, but the application to be not limited thereto, any to be familiar with
Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover
Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.