A kind of electrombile control method, system and electric vehicle
Technical field
The present embodiments relate to a kind of control technology more particularly to electrombile control method, system and electric vehicles.
Background technology
Nowadays since electric vehicle meets energy conservation and environmental protection trend, and short distance traffic is greatly facilitated, therefore receives people
Extensive favor.Electric vehicle in the present invention refers to electric bicycle, electro-tricycle, battery-operated motor cycle, disabled person's motorized wheel chair
The vehicle of the non-electrical electrical automobile using battery as energy source such as vehicle and tricycle for old men.
Currently, controller for electric vehicle is the core of electric vehicle electronic system, controller electric vehicle in the on state
It can travel, electric vehicle cannot be run under controller closed state.Controller is by master chip (such as microcontroller) and periphery member
The circuit structure that device is constituted often installs mechanical lock to open and close controller in circuit structure, is inserted into key and rotates
To angle of unlocking/shut, circuit turn-on/disconnection, controller is activated/closes.The electrombile control method is fairly simple, antitheft
Poor performance, criminal are easy to forcible entry mechanical lock, will steal electric vehicle after circuit turn-on.
In addition, the control method for sharing electric vehicle on Vehicles Collected from Market is, user is communicated by network and server to obtain
Unlocking authority is obtained, which is not particularly suited for common private electric vehicle, and generalization is poor.
Invention content
In view of this, an embodiment of the present invention provides a kind of electrombile control method, system and electric vehicle, anti-theft effect
Good, user experience is good.
In a first aspect, an embodiment of the present invention provides a kind of electrombile control methods, including:
The lock status instruction that controller periodicity poll central control system is sent;
Lock status instruction is encrypted in the controller, and the instruction of encrypted lock status is sent to latch core
Piece;
Lock status instruction that the controller is sent according to the central control system and/or the latch chip are to the control
The encrypted lock status instruction that device is sent determines the state of a control of electric vehicle, and controls the electricity according to the state of a control
Motor-car.
Optionally, lock status instruction is encrypted in the controller, including:
The controller according to predetermined encryption algorithm, using controller identifier as encryption key to the lock status instruct into
Row encryption;
Correspondingly, being instructed according to lock status after latching the encryption that chip is sent to the controller, the control of electric vehicle is determined
State processed, including:
The controller receives the encrypted lock status instruction that the latch chip is sent, using controller identifier as solution
Encrypted lock status instruction described in close key pair is decrypted, and the state of a control of electric vehicle is determined according to solution confidential information.
Optionally, the lock status instruction includes unlock instruction and lock instruction;
Correspondingly, lock status instruction that the controller is sent according to the central control system and/or the latch chip to
Lock status instructs after the encryption that the controller is sent, and determines the state of a control of electric vehicle, and control according to the state of a control
The electric vehicle, including:
When lock status instruction is unlock instruction, determine that the state of a control of electric vehicle is open state, according to the unlatching
State receives and responds user's driving instruction, control electric vehicle traveling;
When lock status instruction is lock instruction, determine that the state of a control of electric vehicle is in off state, according to the closing
State refusal respond user's driving instruction, and lock the motor of electric vehicle.
Optionally, the unlock instruction is that central control system receives unlocking information, and by the unlocking information and presupposed information
It is matched, is sent when successful match.
Optionally, the unlocking information includes finger print information, voiceprint, gesture information or numerical ciphers.
Second aspect, an embodiment of the present invention provides a kind of electric vehicle control systems, including controller, central control system and lock
Deposit chip;Wherein,
The controller refers to the lock status for the lock status instruction that central control system described in periodical poll is sent
Order is encrypted, and the instruction of encrypted lock status is sent to latch chip;
The central control system is electrically connected with the controller, for sending lock status instruction to the controller;
The latch chip, is electrically connected with the controller, the encrypted lock shape sent for receiving the controller
State instructs, and continues to send encrypted lock status instruction to the controller;
The controller is additionally operable to, according to the central control system send lock status instruction and/or the latch chip to
The encrypted lock status instruction that the controller is sent, determines the state of a control of electric vehicle, and according to the state of a control control
Make the electric vehicle.
Optionally, the controller, is specifically used for:
According to predetermined encryption algorithm, lock status instruction is encrypted using controller identifier as encryption key;
Correspondingly, being instructed according to lock status after latching the encryption that chip is sent to the controller, the control of electric vehicle is determined
State processed, including:
The encrypted lock status instruction is decrypted using controller identifier as decruption key, according to solution confidential information
Determine the state of a control of electric vehicle.
Optionally, the lock status instruction includes unlock instruction and lock instruction;
Correspondingly, the controller is specifically used for:
When lock status instruction is unlock instruction, determine that the state of a control of electric vehicle is open state, according to the unlatching
State receives and responds user's driving instruction, control electric vehicle traveling;
When lock status instruction is lock instruction, determine that the state of a control of electric vehicle is in off state, according to the closing
State refusal respond user's driving instruction, and lock the motor of electric vehicle.
Optionally, the central control system, is specifically used for:
Unlocking information is received, and the unlocking information is matched with presupposed information, when successful match to the control
Device processed sends unlock instruction;Wherein, the unlocking information includes finger print information, voiceprint, gesture information or numerical ciphers.
The third aspect, the embodiment of the present invention additionally provide a kind of electric vehicle, including the electricity that any embodiment of the present invention provides
Motor-car control system and vehicle frame, the electric vehicle control system are set on the vehicle frame.
A kind of electrombile control method, system and electric vehicle provided in an embodiment of the present invention, in controller periodicity poll
The lock status instruction that control system is sent;Lock status instruction is encrypted in controller, and encrypted lock status is instructed and is sent
To chip is latched, continue to send encrypted lock status instruction to controller so as to latch chip;Controller is according to central control system
The lock status of transmission instructs and/or latches the encrypted lock status instruction that chip is sent to the controller, determines electric vehicle
State of a control, and the electric vehicle is controlled according to the state of a control, good anti-theft effect, user experience is good.
Description of the drawings
Fig. 1 is a kind of electrombile control method flow chart that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram of electric vehicle control system provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for electric vehicle that the embodiment of the present invention three provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, technical scheme of the present invention is clearly and completely described by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of electrombile control method flow chart that the embodiment of the present invention one provides, and the present embodiment is applicable to electricity
The case where motor-car controls, this method can be realized by electric vehicle control system, can specifically pass through the software and/or hardware in system
To implement.Referring to Fig. 1, which includes the following steps:
The lock status instruction that S110, controller periodicity poll central control system are sent.
Wherein, two-way communication can be carried out between controller and central control system, it is periodical that uart agreements may be used in controller
The lock status instruction that poll central control system is sent.Wherein, it for the polling cycle of controller, can be adjusted according to actual conditions
It is whole, such as can be 1s, 3s etc..Lock status instruction is instantaneous instruction, it can be understood as user inputs correct solution to central control system
When code information or car locking information, the instantaneous instruction of central control system generation.Wherein, lock status instruction may include unlock instruction and lock
Fixed instruction, controller can switch to open state according to unlock instruction, or can switch to closed state according to lock instruction.
Since lock status instruction is instantaneous instruction, the open state and closed state of controller cannot maintain, therefore add lock status core
Piece instructs for storing lock status and continues to send lock status instruction to controller, until controller receives central control system
New lock status instruction, so that controller maintains open state before receiving the new lock status instruction of central control system or closes shape
State.
Lock status instruction is encrypted in S120, controller, and the instruction of encrypted lock status is sent to latch
Chip.
Wherein, controller can be encrypted lock status instruction as encryption key according to the parameter that it is uniquely determined, example
Such as can be the ID number of controller processor CPU (Central Processing Unit, central processing unit), which can be with
The controller of unique mark electric vehicle, and be not easy to be obtained by the external world.Wherein, the instruction of encrypted lock status is sent and refers to latch core
Piece is stored so that latching chip can continue to send encrypted deposited state to controller, to maintain controller
It is turned on and off state.
By controller to before latching chip transmission lock status instruction, step is encrypted, lock can be further increased
The safety of status command avoids criminal by simply replacing lock status chip into pirate vehicle, and anti-theft effect is more preferable.
What the lock status instruction and/or latch chip that S130, controller are sent according to central control system were sent to controller adds
Lock status instruction after close determines the state of a control of electric vehicle, and controls electric vehicle according to state of a control.
Wherein, the lock status instruction that controller can be sent according to central control system is switched to open state or closed state,
The open state or closed state can also be maintained according to the encrypted lock status instruction that chip is sent to controller is latched, and
User's operation is responded in the on state, in the off state refusal respond user's operation, to realize the antitheft of electric vehicle.
Optionally, lock status instruction is encrypted in controller, including:Controller will be controlled according to predetermined encryption algorithm
Device mark is encrypted lock status instruction as encryption key;
Correspondingly, being instructed according to lock status after latching the encryption that chip is sent to controller, the control shape of electric vehicle is determined
State, including:
Controller, which receives, latches the encrypted lock status instruction that chip is sent, using controller identifier as decruption key pair
Encrypted lock status instruction is decrypted, and the state of a control of electric vehicle is determined according to solution confidential information.
Wherein, predetermined encryption algorithm can be symmetric encipherment algorithm, such as can be DES (Data Encryption
Standard, data encryption standards) algorithm, (Triple Data Encryption Algorithm, triple data add 3DES
It is close) algorithm, RC (Rivest Code) algorithm etc..Wherein, controller identifier can be the ID number of controller processor CPU, may be used also
To be the data of other unique mark controllers.Wherein, the encrypted lock for latching chip and persistently sending is received in controller
When status command, need that the encrypted lock status instruction is decrypted, decrypting process is the inverse operation of ciphering process.Wherein solve
Confidential information can be understood as lock status instruction before encrypting.
Optionally, lock status instruction includes unlock instruction and lock instruction;
It is sent out to controller correspondingly, the controller instructs and/or latch chip according to the lock status that central control system is sent
Lock status instructs after the encryption sent, and determines the state of a control of electric vehicle, and control electric vehicle according to state of a control, including:
When lock status instruction is unlock instruction, determine that the state of a control of electric vehicle is open state, according to open state
Receive and respond user's driving instruction, control electric vehicle traveling;
When lock status instruction is lock instruction, determine that the state of a control of electric vehicle is in off state, according to closed state
Refusal respond user's driving instruction, and lock the motor of electric vehicle.
Wherein, user's driving instruction may include assisted instruction, deceleration instruction and brake instruction etc..Wherein, controller
Open state can be understood as electric vehicle unlocked state, and the closed state of controller can be understood as the lock-out state of electric vehicle,
By determining that controller state can determine the state of a control of electric vehicle, to realize electric vehicle anti-theft.
Optionally, unlock instruction is that central control system receives unlocking information, and unlocking information is matched with presupposed information,
It is sent when successful match.
Optionally, unlocking information includes finger print information, voiceprint, gesture information or numerical ciphers.
Wherein, when unlocking information is finger print information, central control system can prestore at least one fingerprint letter of user
Breath, when the finger print information of input matches with pre-stored at least one finger print information, central control system can send unlock
It instructs to controller;Wherein, when unlock instruction be vocal print instruct when, central control system can prestore user's voiceprint and
Predefined unlock voice flow, when the voice flow of input is matched with default language unlock sound stream, and voiceprint is matched with user, in
Control system can send unlock instruction to controller;Wherein, when unlocking information is gesture information, central control system can be by touching
It touches screen and acquires the unlock gesture of user in advance, such as can click or slide arbitrary graphic, be to unlock when user inputs gesture
When gesture, central control system can send unlock instruction to controller;When unlocking information is numerical ciphers, central control system can lead to
The virtual digit key or physical digital button crossed on touch screen unlock numerical ciphers in advance, when numerical ciphers input by user and in advance
If numerical ciphers match, central control system can send unlock instruction to controller.Wherein it is possible to which a variety of unlocking informations are arranged
Comprehensive unlock is carried out, to improve the anti-theft performance of electric vehicle.
Wherein, user can be such that central control system refers to controller transmission locking by clicking physics or virtual locking press button
It enables;User's voiceprint and predefined locking voice flow can also be prestored, when voice flow and the default locking language of input
Sound stream matches, and when voiceprint is matched with user, and central control system can send lock instruction to controller.
Electrombile control method provided in an embodiment of the present invention, the lock status that controller periodicity poll central control system is sent
Instruction;Lock status instruction is encrypted in controller, and the instruction of encrypted lock status is sent to latch chip, so as to latch
Chip continues to send encrypted lock status instruction to controller;Lock status instruction that controller is sent according to central control system and/
Or the encrypted lock status instruction that chip is sent to controller is latched, the state of a control of electric vehicle is determined in real time, and according to control
State control electric vehicle processed, good anti-theft effect, user experience are good.
Embodiment two
Fig. 2 is a kind of structural schematic diagram of electric vehicle control system provided by Embodiment 2 of the present invention, is applicable to electronic
The case where vehicle controls.Referring to Fig. 2, which includes controller 210, central control system 220 and latch chip 230;
Wherein,
Controller 210 instructs lock status and carries out for the lock status instruction that periodical poll central control system 220 is sent
Encryption, and the instruction of encrypted lock status is sent to and latches chip 230;
Central control system 220, is electrically connected with the controller, for sending lock status instruction to controller;
Chip 230 is latched, is electrically connected with the controller, the encrypted lock status instruction for receiving controller transmission, and
Continue to send encrypted lock status instruction to controller;
Controller 210 is additionally operable to, and is instructed and/or is latched chip according to the lock status that central control system is sent and sent to controller
The instruction of encrypted lock status, determine the state of a control of electric vehicle, and electric vehicle is controlled according to state of a control.
Optionally, controller 210 are specifically used for:
According to predetermined encryption algorithm, lock status instruction is encrypted using controller identifier as encryption key;
Correspondingly, being instructed according to lock status after latching the encryption that chip is sent to controller, the control shape of electric vehicle is determined
State, including:
The instruction of encrypted lock status is decrypted using controller identifier as decruption key, is determined according to solution confidential information
The state of a control of electric vehicle.
Optionally, lock status instruction includes unlock instruction and lock instruction;
Correspondingly, controller 210 is specifically used for:
When lock status instruction is unlock instruction, determine that the state of a control of electric vehicle is open state, according to open state
Receive and respond user's driving instruction, control electric vehicle traveling;
When lock status instruction is lock instruction, determine that the state of a control of electric vehicle is in off state, according to closed state
Refusal respond user's driving instruction, and lock the motor of electric vehicle.
Optionally, central control system 220 are specifically used for:
Unlocking information is received, and unlocking information is matched with presupposed information, is sent to controller when successful match
Unlock instruction;Wherein, unlocking information includes finger print information, voiceprint, gesture information or numerical ciphers.
Electric vehicle control system provided in an embodiment of the present invention, the electrombile control method proposed with embodiment one belong to same
One inventive concept, the technical detail of detailed description not can be found in embodiment one, and the present embodiment and implementation in the present embodiment
One advantageous effect having the same of example.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for electric vehicle that the embodiment of the present invention three provides, it is notable that electric vehicle
Structure is not limited to structure shown in Fig. 3.Referring to Fig. 3, which includes:Electric vehicle control system 10 and vehicle frame 20, it is electronic
Vehicle control 10 is set on vehicle frame 20.
The electrombile control method that the terminal that the present embodiment proposes is proposed with embodiment one belongs to same inventive concept, does not exist
The technical detail of detailed description can be found in embodiment one in the present embodiment, and the present embodiment with embodiment one is having the same has
Beneficial effect.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.